diff --git a/src/me/topchetoeu/jscript/Main.java b/src/me/topchetoeu/jscript/Main.java index 76407f7..bf0f549 100644 --- a/src/me/topchetoeu/jscript/Main.java +++ b/src/me/topchetoeu/jscript/Main.java @@ -10,6 +10,7 @@ import me.topchetoeu.jscript.engine.Engine; import me.topchetoeu.jscript.engine.Environment; import me.topchetoeu.jscript.engine.debug.DebugServer; import me.topchetoeu.jscript.engine.debug.SimpleDebugger; +import me.topchetoeu.jscript.engine.values.ArrayValue; import me.topchetoeu.jscript.engine.values.NativeFunction; import me.topchetoeu.jscript.engine.values.Values; import me.topchetoeu.jscript.events.Observer; @@ -50,6 +51,10 @@ public class Main { var server = new DebugServer(); server.targets.put("target", (ws, req) -> SimpleDebugger.get(ws, engine)); + engineTask = engine.start(); + debugTask = server.start(new InetSocketAddress("127.0.0.1", 9229), true); + // server.awaitConnection(); + engine.pushMsg(false, null, new NativeFunction((ctx, thisArg, _a) -> { new Internals().apply(env); @@ -69,10 +74,29 @@ public class Main { }); return null; - }), null); + }), null).await(); + + try { + var ts = engine.pushMsg( + false, new Context(engine).pushEnv(env), + new Filename("file", "/mnt/data/repos/java-jscript/src/me/topchetoeu/jscript/js/ts.js"), + Reading.resourceToString("js/ts.js"), null + ).await(); + System.out.println("Loaded typescript!"); + engine.pushMsg( + false, new Context(engine).pushEnv(env.child()), + new Filename("jscript", "internals/bootstrap.js"), Reading.resourceToString("js/bootstrap.js"), null, + ts, env, new ArrayValue(null, Reading.resourceToString("js/lib.d.ts")) + ).await(); + } + catch (EngineException e) { + Values.printError(e, "(while initializing TS)"); + System.out.println("engine reported stack trace:"); + for (var el : e.stackTrace) { + System.out.println(el); + } + } - engineTask = engine.start(); - debugTask = server.start(new InetSocketAddress("127.0.0.1", 9229), true); var reader = new Thread(() -> { try { diff --git a/src/me/topchetoeu/jscript/compilation/Instruction.java b/src/me/topchetoeu/jscript/compilation/Instruction.java index 0ba8e06..c1dae6e 100644 --- a/src/me/topchetoeu/jscript/compilation/Instruction.java +++ b/src/me/topchetoeu/jscript/compilation/Instruction.java @@ -251,8 +251,8 @@ public class Instruction { return new Instruction(null, Type.TYPEOF, varName); } - public static Instruction keys() { - return new Instruction(null, Type.KEYS); + public static Instruction keys(boolean forInFormat) { + return new Instruction(null, Type.KEYS, forInFormat); } public static Instruction defProp() { diff --git a/src/me/topchetoeu/jscript/compilation/control/ForInStatement.java b/src/me/topchetoeu/jscript/compilation/control/ForInStatement.java index 7ce5d6d..f5d04d8 100644 --- a/src/me/topchetoeu/jscript/compilation/control/ForInStatement.java +++ b/src/me/topchetoeu/jscript/compilation/control/ForInStatement.java @@ -12,6 +12,7 @@ public class ForInStatement extends Statement { public final boolean isDeclaration; public final Statement varValue, object, body; public final String label; + public final Location varLocation; @Override public void declare(ScopeRecord globScope) { @@ -22,6 +23,8 @@ public class ForInStatement extends Statement { @Override public void compile(CompileTarget target, ScopeRecord scope, boolean pollute) { var key = scope.getKey(varName); + + int first = target.size(); if (key instanceof String) target.add(Instruction.makeVar((String)key)); if (varValue != null) { @@ -29,45 +32,37 @@ public class ForInStatement extends Statement { target.add(Instruction.storeVar(scope.getKey(varName))); } - object.compile(target, scope, true); - target.add(Instruction.keys()); - + object.compileWithDebug(target, scope, true); + target.add(Instruction.keys(true)); + int start = target.size(); target.add(Instruction.dup()); - target.add(Instruction.loadMember("length")); - target.add(Instruction.loadValue(0)); - target.add(Instruction.operation(Operation.LESS_EQUALS)); + target.add(Instruction.loadValue(null)); + target.add(Instruction.operation(Operation.EQUALS)); int mid = target.size(); target.add(Instruction.nop()); - target.add(Instruction.dup()); - target.add(Instruction.dup()); - target.add(Instruction.loadMember("length")); - target.add(Instruction.loadValue(1)); - target.add(Instruction.operation(Operation.SUBTRACT)); - target.add(Instruction.dup(1, 2)); - target.add(Instruction.loadValue("length")); - target.add(Instruction.dup(1, 2)); - target.add(Instruction.storeMember()); - target.add(Instruction.loadMember()); + target.add(Instruction.loadMember("value").locate(varLocation)); + target.setDebug(); target.add(Instruction.storeVar(key)); - for (var i = start; i < target.size(); i++) target.get(i).locate(loc()); - body.compileWithDebug(target, scope, false); int end = target.size(); WhileStatement.replaceBreaks(target, label, mid + 1, end, start, end + 1); - target.add(Instruction.jmp(start - end).locate(loc())); - target.add(Instruction.discard().locate(loc())); - target.set(mid, Instruction.jmpIf(end - mid + 1).locate(loc())); - if (pollute) target.add(Instruction.loadValue(null).locate(loc())); + target.add(Instruction.jmp(start - end)); + target.add(Instruction.discard()); + target.set(mid, Instruction.jmpIf(end - mid + 1)); + if (pollute) target.add(Instruction.loadValue(null)); + target.get(first).locate(loc()); + target.setDebug(first); } - public ForInStatement(Location loc, String label, boolean isDecl, String varName, Statement varValue, Statement object, Statement body) { + public ForInStatement(Location loc, Location varLocation, String label, boolean isDecl, String varName, Statement varValue, Statement object, Statement body) { super(loc); + this.varLocation = varLocation; this.label = label; this.isDeclaration = isDecl; this.varName = varName; diff --git a/src/me/topchetoeu/jscript/compilation/control/SwitchStatement.java b/src/me/topchetoeu/jscript/compilation/control/SwitchStatement.java index 5e5b970..0d07093 100644 --- a/src/me/topchetoeu/jscript/compilation/control/SwitchStatement.java +++ b/src/me/topchetoeu/jscript/compilation/control/SwitchStatement.java @@ -43,7 +43,7 @@ public class SwitchStatement extends Statement { ccase.value.compile(target, scope, true); target.add(Instruction.operation(Operation.EQUALS).locate(loc())); caseMap.put(target.size(), ccase.statementI); - target.add(Instruction.nop()); + target.add(Instruction.nop().locate(ccase.value.loc())); } int start = target.size(); diff --git a/src/me/topchetoeu/jscript/compilation/values/ChangeStatement.java b/src/me/topchetoeu/jscript/compilation/values/ChangeStatement.java index 4642c40..2221d0b 100644 --- a/src/me/topchetoeu/jscript/compilation/values/ChangeStatement.java +++ b/src/me/topchetoeu/jscript/compilation/values/ChangeStatement.java @@ -15,7 +15,7 @@ public class ChangeStatement extends Statement { @Override public void compile(CompileTarget target, ScopeRecord scope, boolean pollute) { - value.toAssign(new ConstantStatement(loc(), -addAmount), Operation.SUBTRACT).compile(target, scope, postfix); + value.toAssign(new ConstantStatement(loc(), -addAmount), Operation.SUBTRACT).compile(target, scope, true); if (!pollute) target.add(Instruction.discard().locate(loc())); } diff --git a/src/me/topchetoeu/jscript/compilation/values/CommaStatement.java b/src/me/topchetoeu/jscript/compilation/values/CommaStatement.java new file mode 100644 index 0000000..f92f41c --- /dev/null +++ b/src/me/topchetoeu/jscript/compilation/values/CommaStatement.java @@ -0,0 +1,38 @@ +package me.topchetoeu.jscript.compilation.values; + +import java.util.Vector; + +import me.topchetoeu.jscript.Location; +import me.topchetoeu.jscript.compilation.CompileTarget; +import me.topchetoeu.jscript.compilation.Statement; +import me.topchetoeu.jscript.engine.scope.ScopeRecord; + +public class CommaStatement extends Statement { + public final Statement[] values; + + @Override + public void compile(CompileTarget target, ScopeRecord scope, boolean pollute) { + for (var i = 0; i < values.length; i++) { + values[i].compile(target, scope, i == values.length - 1 && pollute); + } + } + + @Override + public Statement optimize() { + var res = new Vector(values.length); + + for (var i = 0; i < values.length; i++) { + var stm = values[i].optimize(); + if (i < values.length - 1 && stm.pure()) continue; + res.add(stm); + } + + if (res.size() == 1) return res.get(0); + else return new CommaStatement(loc(), res.toArray(Statement[]::new)); + } + + public CommaStatement(Location loc, Statement ...args) { + super(loc); + this.values = args; + } +} diff --git a/src/me/topchetoeu/jscript/compilation/values/VariableAssignStatement.java b/src/me/topchetoeu/jscript/compilation/values/VariableAssignStatement.java index 2644233..28f46e9 100644 --- a/src/me/topchetoeu/jscript/compilation/values/VariableAssignStatement.java +++ b/src/me/topchetoeu/jscript/compilation/values/VariableAssignStatement.java @@ -20,15 +20,13 @@ public class VariableAssignStatement extends Statement { if (value instanceof FunctionStatement) ((FunctionStatement)value).compile(target, scope, name, false); else value.compile(target, scope, true); target.add(Instruction.operation(operation).locate(loc())); - target.add(Instruction.storeVar(i, false).locate(loc())); + target.add(Instruction.storeVar(i, pollute).locate(loc())); } else { if (value instanceof FunctionStatement) ((FunctionStatement)value).compile(target, scope, name, false); else value.compile(target, scope, true); - target.add(Instruction.storeVar(i, false).locate(loc())); + target.add(Instruction.storeVar(i, pollute).locate(loc())); } - - if (pollute) target.add(Instruction.loadValue(null).locate(loc())); } public VariableAssignStatement(Location loc, String name, Statement val, Operation operation) { diff --git a/src/me/topchetoeu/jscript/engine/Context.java b/src/me/topchetoeu/jscript/engine/Context.java index 44d7c32..40fa042 100644 --- a/src/me/topchetoeu/jscript/engine/Context.java +++ b/src/me/topchetoeu/jscript/engine/Context.java @@ -6,6 +6,8 @@ import java.util.TreeSet; import me.topchetoeu.jscript.Filename; import me.topchetoeu.jscript.Location; import me.topchetoeu.jscript.engine.values.FunctionValue; +import me.topchetoeu.jscript.engine.values.NativeFunction; +import me.topchetoeu.jscript.engine.values.ObjectValue; import me.topchetoeu.jscript.engine.values.Values; import me.topchetoeu.jscript.parsing.Parsing; @@ -27,11 +29,24 @@ public class Context { } public FunctionValue compile(Filename filename, String raw) { - var src = Values.toString(this, environment().compile.call(this, null, raw, filename)); + var transpiled = environment().compile.call(this, null, raw, filename.toString()); + String source = null; + FunctionValue runner = null; + + if (transpiled instanceof ObjectValue) { + source = Values.toString(this, Values.getMember(this, transpiled, "source")); + var _runner = Values.getMember(this, transpiled, "runner"); + if (_runner instanceof FunctionValue) runner = (FunctionValue)_runner; + } + else source = Values.toString(this, transpiled); + var debugger = StackData.getDebugger(this); var breakpoints = new TreeSet(); - var res = Parsing.compile(engine.functions, breakpoints, environment(), filename, src); - if (debugger != null) debugger.onSource(filename, src, breakpoints); + FunctionValue res = Parsing.compile(engine.functions, breakpoints, environment(), filename, source); + if (debugger != null) debugger.onSource(filename, source, breakpoints); + + if (runner != null) res = (FunctionValue)runner.call(this, null, res); + return res; } diff --git a/src/me/topchetoeu/jscript/engine/Environment.java b/src/me/topchetoeu/jscript/engine/Environment.java index 30c055b..6208325 100644 --- a/src/me/topchetoeu/jscript/engine/Environment.java +++ b/src/me/topchetoeu/jscript/engine/Environment.java @@ -17,7 +17,7 @@ public class Environment { private HashMap prototypes = new HashMap<>(); public final Data data = new Data(); - public final HashMap symbols = new HashMap<>(); + public static final HashMap symbols = new HashMap<>(); public GlobalScope global; public WrappersProvider wrappers; @@ -57,7 +57,8 @@ public class Environment { } @Native public Environment fork() { - var res = new Environment(compile, wrappers, global); + var res = new Environment(compile, null, global); + res.wrappers = wrappers.fork(res); res.regexConstructor = regexConstructor; res.prototypes = new HashMap<>(prototypes); return res; diff --git a/src/me/topchetoeu/jscript/engine/WrappersProvider.java b/src/me/topchetoeu/jscript/engine/WrappersProvider.java index 4c594ba..d17a9fe 100644 --- a/src/me/topchetoeu/jscript/engine/WrappersProvider.java +++ b/src/me/topchetoeu/jscript/engine/WrappersProvider.java @@ -7,4 +7,6 @@ public interface WrappersProvider { public ObjectValue getProto(Class obj); public ObjectValue getNamespace(Class obj); public FunctionValue getConstr(Class obj); + + public WrappersProvider fork(Environment env); } diff --git a/src/me/topchetoeu/jscript/engine/debug/DebugServer.java b/src/me/topchetoeu/jscript/engine/debug/DebugServer.java index 02e7176..5d7248a 100644 --- a/src/me/topchetoeu/jscript/engine/debug/DebugServer.java +++ b/src/me/topchetoeu/jscript/engine/debug/DebugServer.java @@ -10,6 +10,7 @@ import java.util.HashMap; import me.topchetoeu.jscript.Metadata; import me.topchetoeu.jscript.engine.debug.WebSocketMessage.Type; +import me.topchetoeu.jscript.events.Notifier; import me.topchetoeu.jscript.exceptions.SyntaxException; import me.topchetoeu.jscript.exceptions.UncheckedException; import me.topchetoeu.jscript.exceptions.UncheckedIOException; @@ -23,6 +24,7 @@ public class DebugServer { public final HashMap targets = new HashMap<>(); private final byte[] favicon, index, protocol; + private final Notifier connNotifier = new Notifier(); private static void send(HttpRequest req, String val) throws IOException { req.writeResponse(200, "OK", "application/json", val.getBytes()); @@ -67,7 +69,9 @@ public class DebugServer { try { switch (msg.name) { - case "Debugger.enable": debugger.enable(msg); continue; + case "Debugger.enable": + connNotifier.next(); + debugger.enable(msg); continue; case "Debugger.disable": debugger.disable(msg); continue; case "Debugger.setBreakpoint": debugger.setBreakpoint(msg); continue; @@ -151,6 +155,10 @@ public class DebugServer { }, "Debug Handler"); } + public void awaitConnection() { + connNotifier.await(); + } + public void run(InetSocketAddress address) { try { ServerSocket server = new ServerSocket(); diff --git a/src/me/topchetoeu/jscript/engine/debug/SimpleDebugger.java b/src/me/topchetoeu/jscript/engine/debug/SimpleDebugger.java index eec8872..c11f802 100644 --- a/src/me/topchetoeu/jscript/engine/debug/SimpleDebugger.java +++ b/src/me/topchetoeu/jscript/engine/debug/SimpleDebugger.java @@ -256,7 +256,7 @@ public class SimpleDebugger implements Debugger { return id; } } - private JSONMap serializeObj(Context ctx, Object val, boolean recurse) { + private JSONMap serializeObj(Context ctx, Object val) { val = Values.normalize(null, val); if (val == Values.NULL) { @@ -277,13 +277,6 @@ public class SimpleDebugger implements Debugger { if (obj instanceof FunctionValue) type = "function"; if (obj instanceof ArrayValue) subtype = "array"; - if (Values.isWrapper(val, RegExpLib.class)) subtype = "regexp"; - if (Values.isWrapper(val, DateLib.class)) subtype = "date"; - if (Values.isWrapper(val, MapLib.class)) subtype = "map"; - if (Values.isWrapper(val, SetLib.class)) subtype = "set"; - if (Values.isWrapper(val, Generator.class)) subtype = "generator"; - if (Values.isWrapper(val, PromiseLib.class)) subtype = "promise"; - try { className = Values.toString(ctx, Values.getMember(ctx, obj.getMember(ctx, "constructor"), "name")); } catch (Exception e) { } @@ -311,6 +304,7 @@ public class SimpleDebugger implements Debugger { if (Double.POSITIVE_INFINITY == num) res.set("unserializableValue", "Infinity"); else if (Double.NEGATIVE_INFINITY == num) res.set("unserializableValue", "-Infinity"); else if (Double.doubleToRawLongBits(num) == Double.doubleToRawLongBits(-0d)) res.set("unserializableValue", "-0"); + else if (Double.doubleToRawLongBits(num) == Double.doubleToRawLongBits(0d)) res.set("unserializableValue", "0"); else if (Double.isNaN(num)) res.set("unserializableValue", "NaN"); else res.set("value", num); @@ -319,9 +313,6 @@ public class SimpleDebugger implements Debugger { throw new IllegalArgumentException("Unexpected JS object."); } - private JSONMap serializeObj(Context ctx, Object val) { - return serializeObj(ctx, val, true); - } private void setObjectGroup(String name, Object val) { if (val instanceof ObjectValue) { var obj = (ObjectValue)val; @@ -626,7 +617,7 @@ public class SimpleDebugger implements Debugger { propDesc.set("isOwn", currOwn); res.add(propDesc); } - else if (!accessorPropertiesOnly) { + else { propDesc.set("name", Values.toString(ctx, key)); propDesc.set("value", serializeObj(ctx, obj.getMember(ctx, key))); propDesc.set("writable", obj.memberWritable(key)); @@ -651,7 +642,7 @@ public class SimpleDebugger implements Debugger { } currOwn = false; - if (own) break; + if (true) break; } ws.send(msg.respond(new JSONMap().set("result", res))); diff --git a/src/me/topchetoeu/jscript/engine/debug/WebSocket.java b/src/me/topchetoeu/jscript/engine/debug/WebSocket.java index f9e5c3c..d1c0e26 100644 --- a/src/me/topchetoeu/jscript/engine/debug/WebSocket.java +++ b/src/me/topchetoeu/jscript/engine/debug/WebSocket.java @@ -10,7 +10,7 @@ import me.topchetoeu.jscript.engine.debug.WebSocketMessage.Type; import me.topchetoeu.jscript.exceptions.UncheckedIOException; public class WebSocket implements AutoCloseable { - public long maxLength = 2000000; + public long maxLength = 1 << 20; private Socket socket; private boolean closed = false; @@ -61,39 +61,45 @@ public class WebSocket implements AutoCloseable { else return new byte[4]; } - private void writeLength(long len) { + private void writeLength(int len) { try { if (len < 126) { out().write((int)len); } - else if (len < 0xFFFF) { + else if (len <= 0xFFFF) { out().write(126); out().write((int)(len >> 8) & 0xFF); out().write((int)len & 0xFF); } else { out().write(127); - out().write((int)(len >> 56) & 0xFF); - out().write((int)(len >> 48) & 0xFF); - out().write((int)(len >> 40) & 0xFF); - out().write((int)(len >> 32) & 0xFF); - out().write((int)(len >> 24) & 0xFF); - out().write((int)(len >> 16) & 0xFF); - out().write((int)(len >> 8) & 0xFF); - out().write((int)len & 0xFF); + out().write((len >> 56) & 0xFF); + out().write((len >> 48) & 0xFF); + out().write((len >> 40) & 0xFF); + out().write((len >> 32) & 0xFF); + out().write((len >> 24) & 0xFF); + out().write((len >> 16) & 0xFF); + out().write((len >> 8) & 0xFF); + out().write(len & 0xFF); } } catch (IOException e) { throw new UncheckedIOException(e); } } private synchronized void write(int type, byte[] data) { try { - out().write(type | 0x80); - writeLength(data.length); - for (int i = 0; i < data.length; i++) { - out().write(data[i]); + for (int i = 0; i < (data.length >> 16); i++) { + out().write(type); + writeLength(0xFFFF); + out().write(data, i << 16, 0xFFFF); } + + out().write(type | 0x80); + writeLength(data.length & 0xFFFF); + out().write(data, data.length & 0xFFFF0000, data.length & 0xFFFF); + } + catch (IOException e) { + throw new UncheckedIOException(e); } - catch (IOException e) { throw new UncheckedIOException(e); } } public void send(String data) { diff --git a/src/me/topchetoeu/jscript/engine/frame/CodeFrame.java b/src/me/topchetoeu/jscript/engine/frame/CodeFrame.java index 1e2b4c7..bbddf6c 100644 --- a/src/me/topchetoeu/jscript/engine/frame/CodeFrame.java +++ b/src/me/topchetoeu/jscript/engine/frame/CodeFrame.java @@ -125,12 +125,15 @@ public class CodeFrame { } private void setCause(Context ctx, EngineException err, EngineException cause) { - err.cause = cause; + // err.cause = cause; + err.setCause(cause); } private Object nextNoTry(Context ctx, Instruction instr) { if (Thread.currentThread().isInterrupted()) throw new InterruptException(); if (codePtr < 0 || codePtr >= function.body.length) return null; + if (instr.location != null) prevLoc = instr.location; + try { this.jumpFlag = false; return Runners.exec(ctx, instr, this); diff --git a/src/me/topchetoeu/jscript/engine/frame/Runners.java b/src/me/topchetoeu/jscript/engine/frame/Runners.java index 0c5366d..bba29a9 100644 --- a/src/me/topchetoeu/jscript/engine/frame/Runners.java +++ b/src/me/topchetoeu/jscript/engine/frame/Runners.java @@ -100,19 +100,29 @@ public class Runners { public static Object execKeys(Context ctx, Instruction instr, CodeFrame frame) { var val = frame.pop(); - var arr = new ObjectValue(); - var i = 0; - var members = Values.getMembers(ctx, val, false, false); Collections.reverse(members); + + frame.push(ctx, null); + for (var el : members) { if (el instanceof Symbol) continue; - arr.defineProperty(ctx, i++, el); + var obj = new ObjectValue(); + obj.defineProperty(ctx, "value", el); + frame.push(ctx, obj); } + // var arr = new ObjectValue(); - arr.defineProperty(ctx, "length", i); + // var members = Values.getMembers(ctx, val, false, false); + // Collections.reverse(members); + // for (var el : members) { + // if (el instanceof Symbol) continue; + // arr.defineProperty(ctx, i++, el); + // } - frame.push(ctx, arr); + // arr.defineProperty(ctx, "length", i); + + // frame.push(ctx, arr); frame.codePtr++; return NO_RETURN; } diff --git a/src/me/topchetoeu/jscript/engine/values/ArrayValue.java b/src/me/topchetoeu/jscript/engine/values/ArrayValue.java index 44a9543..f0bc2ea 100644 --- a/src/me/topchetoeu/jscript/engine/values/ArrayValue.java +++ b/src/me/topchetoeu/jscript/engine/values/ArrayValue.java @@ -14,13 +14,14 @@ public class ArrayValue extends ObjectValue implements Iterable { private Object[] values; private int size; - private void alloc(int index) { - if (index < values.length) return; + private Object[] alloc(int index) { + index++; + if (index < values.length) return values; if (index < values.length * 2) index = values.length * 2; var arr = new Object[index]; System.arraycopy(values, 0, arr, 0, values.length); - values = arr; + return arr; } public int size() { return size; } @@ -28,7 +29,7 @@ public class ArrayValue extends ObjectValue implements Iterable { if (val < 0) return false; if (size > val) shrink(size - val); else { - alloc(val); + values = alloc(val); size = val; } return true; @@ -43,7 +44,7 @@ public class ArrayValue extends ObjectValue implements Iterable { public void set(Context ctx, int i, Object val) { if (i < 0) return; - alloc(i); + values = alloc(i); val = Values.normalize(ctx, val); if (val == null) val = UNDEFINED; @@ -97,7 +98,7 @@ public class ArrayValue extends ObjectValue implements Iterable { } public void move(int srcI, int dstI, int n) { - alloc(dstI + n); + values = alloc(dstI + n); System.arraycopy(values, srcI, values, dstI, n); diff --git a/src/me/topchetoeu/jscript/engine/values/Values.java b/src/me/topchetoeu/jscript/engine/values/Values.java index ccc94bf..1911f4f 100644 --- a/src/me/topchetoeu/jscript/engine/values/Values.java +++ b/src/me/topchetoeu/jscript/engine/values/Values.java @@ -117,6 +117,7 @@ public class Values { if (val instanceof Boolean) return ((Boolean)val) ? 1 : 0; if (val instanceof String) { try { return Double.parseDouble((String)val); } + catch (NumberFormatException e) { return Double.NaN; } catch (Throwable e) { throw new UncheckedException(e); } } return Double.NaN; @@ -257,7 +258,8 @@ public class Values { public static Object getMember(Context ctx, Object obj, Object key) { obj = normalize(ctx, obj); key = normalize(ctx, key); - if (obj == null) throw new IllegalArgumentException("Tried to access member of undefined."); + if (obj == null) + throw new IllegalArgumentException("Tried to access member of undefined."); if (obj == NULL) throw new IllegalArgumentException("Tried to access member of null."); if (isObject(obj)) return object(obj).getMember(ctx, key); @@ -277,7 +279,8 @@ public class Values { } public static boolean setMember(Context ctx, Object obj, Object key, Object val) { obj = normalize(ctx, obj); key = normalize(ctx, key); val = normalize(ctx, val); - if (obj == null) throw EngineException.ofType("Tried to access member of undefined."); + if (obj == null) + throw EngineException.ofType("Tried to access member of undefined."); if (obj == NULL) throw EngineException.ofType("Tried to access member of null."); if (key.equals("__proto__")) return setPrototype(ctx, obj, val); if (isObject(obj)) return object(obj).setMember(ctx, key, val, false); @@ -366,18 +369,24 @@ public class Values { } public static Object call(Context ctx, Object func, Object thisArg, Object ...args) { - if (!isFunction(func)) throw EngineException.ofType("Tried to call a non-function value."); + if (!isFunction(func)) + throw EngineException.ofType("Tried to call a non-function value."); return function(func).call(ctx, thisArg, args); } public static Object callNew(Context ctx, Object func, Object ...args) { var res = new ObjectValue(); - var proto = Values.getMember(ctx, func, "prototype"); - res.setPrototype(ctx, proto); - - var ret = call(ctx, func, res, args); - - if (ret != null && func instanceof FunctionValue && ((FunctionValue)func).special) return ret; - return res; + try { + var proto = Values.getMember(ctx, func, "prototype"); + res.setPrototype(ctx, proto); + + var ret = call(ctx, func, res, args); + + if (ret != null && func instanceof FunctionValue && ((FunctionValue)func).special) return ret; + return res; + } + catch (IllegalArgumentException e) { + throw EngineException.ofType("Tried to call new on an invalid constructor."); + } } public static boolean strictEquals(Context ctx, Object a, Object b) { @@ -515,6 +524,8 @@ public class Values { public static Iterable toJavaIterable(Context ctx, Object obj) { return () -> { try { + var _ctx = ctx; + var _obj = obj; var symbol = ctx.environment().symbol("Symbol.iterator"); var iteratorFunc = getMember(ctx, obj, symbol); diff --git a/src/me/topchetoeu/jscript/exceptions/EngineException.java b/src/me/topchetoeu/jscript/exceptions/EngineException.java index 3f740b1..e63169f 100644 --- a/src/me/topchetoeu/jscript/exceptions/EngineException.java +++ b/src/me/topchetoeu/jscript/exceptions/EngineException.java @@ -45,10 +45,10 @@ public class EngineException extends RuntimeException { catch (EngineException e) { ss.append("[Error while stringifying]\n"); } - // for (var line : stackTrace) { - // ss.append(" ").append(line).append('\n'); - // } - // if (cause != null) ss.append("Caused by ").append(cause.toString(ctx)).append('\n'); + for (var line : stackTrace) { + ss.append(" ").append(line).append('\n'); + } + if (cause != null) ss.append("Caused by ").append(cause.toString(ctx)).append('\n'); ss.deleteCharAt(ss.length() - 1); return ss.toString(); } diff --git a/src/me/topchetoeu/jscript/interop/NativeWrapperProvider.java b/src/me/topchetoeu/jscript/interop/NativeWrapperProvider.java index c70043c..0d4db6c 100644 --- a/src/me/topchetoeu/jscript/interop/NativeWrapperProvider.java +++ b/src/me/topchetoeu/jscript/interop/NativeWrapperProvider.java @@ -33,7 +33,7 @@ public class NativeWrapperProvider implements WrappersProvider { var val = target.values.get(name); - if (!(val instanceof OverloadFunction)) target.defineProperty(null, name, val = new OverloadFunction(name.toString())); + if (!(val instanceof OverloadFunction)) target.defineProperty(null, name, val = new OverloadFunction(name.toString()), true, true, false); ((OverloadFunction)val).add(Overload.fromMethod(method, nat.thisArg())); } @@ -53,7 +53,7 @@ public class NativeWrapperProvider implements WrappersProvider { else getter = new OverloadFunction("get " + name); getter.add(Overload.fromMethod(method, get.thisArg())); - target.defineProperty(null, name, getter, setter, true, true); + target.defineProperty(null, name, getter, setter, true, false); } if (set != null) { if (set.thisArg() && !member || !set.thisArg() && !memberMatch) continue; @@ -70,7 +70,7 @@ public class NativeWrapperProvider implements WrappersProvider { else setter = new OverloadFunction("set " + name); setter.add(Overload.fromMethod(method, set.thisArg())); - target.defineProperty(null, name, getter, setter, true, true); + target.defineProperty(null, name, getter, setter, true, false); } } } @@ -211,8 +211,8 @@ public class NativeWrapperProvider implements WrappersProvider { if (constr == null) constr = makeConstructor(env, clazz); if (proto == null) proto = makeProto(env, clazz); - proto.values.put("constructor", constr); - constr.values.put("prototype", proto); + proto.defineProperty(null, "constructor", constr, true, false, false); + constr.defineProperty(null, "prototype", proto, true, false, false); prototypes.put(clazz, proto); constructors.put(clazz, constr); @@ -240,6 +240,11 @@ public class NativeWrapperProvider implements WrappersProvider { return constructors.get(clazz); } + @Override + public WrappersProvider fork(Environment env) { + return new NativeWrapperProvider(env); + } + public void setProto(Class clazz, ObjectValue value) { prototypes.put(clazz, value); } diff --git a/src/me/topchetoeu/jscript/interop/Overload.java b/src/me/topchetoeu/jscript/interop/Overload.java index 0da14c1..34871e0 100644 --- a/src/me/topchetoeu/jscript/interop/Overload.java +++ b/src/me/topchetoeu/jscript/interop/Overload.java @@ -44,9 +44,11 @@ public class Overload { public static Overload setterFromField(Field field) { if (Modifier.isFinal(field.getModifiers())) return null; return new Overload( - (ctx, th, args) -> { field.set(th, args[0]); return null; }, false, false, + (ctx, th, args) -> { + field.set(th, args[0]); return null; + }, false, false, Modifier.isStatic(field.getModifiers()) ? null : field.getDeclaringClass(), - new Class[0] + new Class[] { field.getType() } ); } diff --git a/src/me/topchetoeu/jscript/interop/OverloadFunction.java b/src/me/topchetoeu/jscript/interop/OverloadFunction.java index 593378a..3ec35ec 100644 --- a/src/me/topchetoeu/jscript/interop/OverloadFunction.java +++ b/src/me/topchetoeu/jscript/interop/OverloadFunction.java @@ -84,6 +84,7 @@ public class OverloadFunction extends FunctionValue { throw ((EngineException)e.getTargetException()).add(name, loc); } else if (e.getTargetException() instanceof NullPointerException) { + e.printStackTrace(); throw EngineException.ofType("Unexpected value of 'undefined'.").add(name, loc); } else { diff --git a/src/me/topchetoeu/jscript/js/bootstrap.js b/src/me/topchetoeu/jscript/js/bootstrap.js index 6bbe7c1..ab68384 100644 --- a/src/me/topchetoeu/jscript/js/bootstrap.js +++ b/src/me/topchetoeu/jscript/js/bootstrap.js @@ -1,86 +1,89 @@ -// TODO: load this in java -var ts = require('./ts'); -log("Loaded typescript!"); +(function (_arguments) { + var ts = _arguments[0]; + log("Loaded typescript!"); -var src = '', lib = libs.concat([ 'declare const exit: never;' ]).join(''), decls = '', version = 0; -var libSnapshot = ts.ScriptSnapshot.fromString(lib); + var src = '', lib = _arguments[2].concat([ 'declare const exit: never;' ]).join(''), decls = '', version = 0; + var libSnapshot = ts.ScriptSnapshot.fromString(lib); -var settings = { - outDir: "/out", - declarationDir: "/out", - target: ts.ScriptTarget.ES5, - lib: [ ], - module: ts.ModuleKind.None, - declaration: true, - stripInternal: true, - downlevelIteration: true, - forceConsistentCasingInFileNames: true, - experimentalDecorators: true, - strict: true, -}; + var settings = { + outDir: "/out", + declarationDir: "/out", + target: ts.ScriptTarget.ES5, + lib: [ ], + module: ts.ModuleKind.None, + declaration: true, + stripInternal: true, + downlevelIteration: true, + forceConsistentCasingInFileNames: true, + experimentalDecorators: true, + strict: true, + }; -var reg = ts.createDocumentRegistry(); -var service = ts.createLanguageService({ - getCurrentDirectory: function() { return "/"; }, - getDefaultLibFileName: function() { return "/lib_.d.ts"; }, - getScriptFileNames: function() { return [ "/src.ts", "/lib.d.ts", "/glob.d.ts" ]; }, - getCompilationSettings: function () { return settings; }, - fileExists: function(filename) { return filename === "/lib.d.ts" || filename === "/src.ts" || filename === "/glob.d.ts"; }, + var reg = ts.createDocumentRegistry(); + var service = ts.createLanguageService({ + getCurrentDirectory: function() { return "/"; }, + getDefaultLibFileName: function() { return "/lib_.d.ts"; }, + getScriptFileNames: function() { return [ "/src.ts", "/lib.d.ts", "/glob.d.ts" ]; }, + getCompilationSettings: function () { return settings; }, + fileExists: function(filename) { return filename === "/lib.d.ts" || filename === "/src.ts" || filename === "/glob.d.ts"; }, + + getScriptSnapshot: function(filename) { + if (filename === "/lib.d.ts") return libSnapshot; + if (filename === "/src.ts") return ts.ScriptSnapshot.fromString(src); + if (filename === "/glob.d.ts") return ts.ScriptSnapshot.fromString(decls); + throw new Error("File '" + filename + "' doesn't exist."); + }, + getScriptVersion: function (filename) { + if (filename === "/lib.d.ts") return 0; + else return version; + }, + }, reg); - getScriptSnapshot: function(filename) { - if (filename === "/lib.d.ts") return libSnapshot; - if (filename === "/src.ts") return ts.ScriptSnapshot.fromString(src); - if (filename === "/glob.d.ts") return ts.ScriptSnapshot.fromString(decls); - throw new Error("File '" + filename + "' doesn't exist."); - }, - getScriptVersion: function (filename) { - if (filename === "/lib.d.ts") return 0; - else return version; - }, -}, reg); + service.getEmitOutput('/lib.d.ts'); + log('Loaded libraries!'); -service.getEmitOutput('/lib.d.ts'); -log('Loaded libraries!'); + function compile(filename, code) { + src = code, version++; -function compile(filename, code) { - src = code, version++; + var emit = service.getEmitOutput("/src.ts"); - var emit = service.getEmitOutput("/src.ts"); + var diagnostics = [] + .concat(service.getCompilerOptionsDiagnostics()) + .concat(service.getSyntacticDiagnostics("/src.ts")) + .concat(service.getSemanticDiagnostics("/src.ts")) + .map(function (diagnostic) { + var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n"); + if (diagnostic.file) { + var pos = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start); + var file = diagnostic.file.fileName.substring(1); + if (file === "src.ts") file = filename; + return file + ":" + (pos.line + 1) + ":" + (pos.character + 1) + ": " + message; + } + else return "Error: " + message; + }); - var diagnostics = [] - .concat(service.getCompilerOptionsDiagnostics()) - .concat(service.getSyntacticDiagnostics("/src.ts")) - .concat(service.getSemanticDiagnostics("/src.ts")) - .map(function (diagnostic) { - var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n"); - if (diagnostic.file) { - var pos = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start); - var file = diagnostic.file.fileName.substring(1); - if (file === "src.ts") file = filename; - return file + ":" + (pos.line + 1) + ":" + (pos.character + 1) + ": " + message; - } - else return "Error: " + message; - }); + if (diagnostics.length > 0) { + throw new SyntaxError(diagnostics.join('\n')); + } - if (diagnostics.length > 0) { - throw new SyntaxError(diagnostics.join('\n')); + return { + result: emit.outputFiles[0].text, + declaration: emit.outputFiles[1].text + }; } - return { - result: emit.outputFiles[0].text, - declaration: emit.outputFiles[1].text - }; -} + _arguments[1].compile = function (filename, code) { + var res = compile(filename, code); -init(function (filename, code) { - var res = compile(filename, code); - - return [ - res.result, - function(func, th, args) { - var val = func.apply(th, args); - decls += res.declaration; - return val; + return { + source: res.result, + runner: function(func) { + return function() { + var val = func.apply(this, arguments); + decls += res.declaration; + return val; + } + } } - ]; -}); + } +})(arguments); diff --git a/src/me/topchetoeu/jscript/js/ts-bs.js b/src/me/topchetoeu/jscript/js/ts-bs.js new file mode 100644 index 0000000..8c1dc0f --- /dev/null +++ b/src/me/topchetoeu/jscript/js/ts-bs.js @@ -0,0 +1,88 @@ +"use strict";var ts,__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;is[0]&&t[1]>1);switch(n(r(e[s],s),t)){case-1:a=s+1;break;case 0:return s;case 1:o=s-1}}return~a}function f(e,t,r,n,i){if(e&&0r.length>>1&&(e=r.length-n,r.copyWithin(0,n),r.length=e,n=0),t},isEmpty:i}},u.createSet=function(a,o){var s=new u.Map,i=0;function e(){var t,r=s.values();return{next:function(){for(;;)if(t){if(!(e=t.next()).done)return{value:e.value};t=void 0}else{var e;if((e=r.next()).done)return{value:void 0,done:!0};if(!S(e.value))return{value:e.value};t=d(e.value)}}}}return{has:function(e){var t=a(e);if(s.has(t)){t=s.get(t);if(!S(t))return o(t,e);for(var r=0,n=t;r=r.length+e.length&&O(t,r)&&w(t,e)}u.getUILocale=function(){return F},u.setUILocale=function(e){F!==e&&(F=e,A=void 0)},u.compareStringsCaseSensitiveUI=function(e,t){return(A=A||G(F))(e,t)},u.compareProperties=function(e,t,r,n){return e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r])},u.compareBooleans=function(e,t){return k(e?1:0,t?1:0)},u.getSpellingSuggestion=function(e,t,r){for(var n,i=Math.max(2,Math.floor(.34*e.length)),a=Math.floor(.4*e.length)+1,o=0,s=t;or+o?r+o:t.length),u=i[0]=o,_=1;_i&&(i=c.prefix.length,n=s)}return n},u.startsWith=O,u.removePrefix=function(e,t){return O(e,t)?e.substr(t.length):e},u.tryRemovePrefix=function(e,t,r){return O((r=void 0===r?C:r)(e),r(t))?e.substring(t.length):void 0},u.isPatternMatch=M,u.and=function(t,r){return function(e){return t(e)&&r(e)}},u.or=function(){for(var a=[],e=0;e=i.level&&(f[n]=i,o[n]=void 0)}},f.shouldAssert=L,f.fail=c,f.failBadSyntaxKind=function e(t,r,n){return c("".concat(r||"Unexpected node.","\r\nNode ").concat(b(t.kind)," was unexpected."),n||e)},f.assert=l,f.assertEqual=function e(t,r,n,i,a){t!==r&&(i=n?i?"".concat(n," ").concat(i):n:"",c("Expected ".concat(t," === ").concat(r,". ").concat(i),a||e))},f.assertLessThan=function e(t,r,n,i){r<=t&&c("Expected ".concat(t," < ").concat(r,". ").concat(n||""),i||e)},f.assertLessThanOrEqual=function e(t,r,n){r= ").concat(r),n||e)},f.assertIsDefined=u,f.checkDefined=function e(t,r,n){return u(t,r,n||e),t},f.assertEachIsDefined=_,f.checkEachDefined=function e(t,r,n){return _(t,r,n||e),t},f.assertNever=d,f.assertEachNode=function e(t,r,n,i){s(1,"assertEachNode")&&l(void 0===r||p.every(t,r),n||"Unexpected node.",function(){return"Node array did not pass test '".concat(y(r),"'.")},i||e)},f.assertNode=function e(t,r,n,i){s(1,"assertNode")&&l(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",function(){return"Node ".concat(b(null==t?void 0:t.kind)," did not pass test '").concat(y(r),"'.")},i||e)},f.assertNotNode=function e(t,r,n,i){s(1,"assertNotNode")&&l(void 0===t||void 0===r||!r(t),n||"Unexpected node.",function(){return"Node ".concat(b(t.kind)," should not have passed test '").concat(y(r),"'.")},i||e)},f.assertOptionalNode=function e(t,r,n,i){s(1,"assertOptionalNode")&&l(void 0===r||void 0===t||r(t),n||"Unexpected node.",function(){return"Node ".concat(b(null==t?void 0:t.kind)," did not pass test '").concat(y(r),"'.")},i||e)},f.assertOptionalToken=function e(t,r,n,i){s(1,"assertOptionalToken")&&l(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",function(){return"Node ".concat(b(null==t?void 0:t.kind)," was not a '").concat(b(r),"' token.")},i||e)},f.assertMissingNode=function e(t,r,n){s(1,"assertMissingNode")&&l(void 0===t,r||"Unexpected node.",function(){return"Node ".concat(b(t.kind)," was unexpected'.")},n||e)},f.type=R,f.getFunctionName=y,f.formatSymbol=function(e){return"{ name: ".concat(p.unescapeLeadingUnderscores(e.escapedName),"; flags: ").concat(C(e.flags),"; declarations: ").concat(p.map(e.declarations,function(e){return b(e.kind)})," }")},f.formatEnum=h;var v=new p.Map;function b(e){return h(e,p.SyntaxKind,!1)}function x(e){return h(e,p.NodeFlags,!0)}function D(e){return h(e,p.ModifierFlags,!0)}function S(e){return h(e,p.TransformFlags,!0)}function T(e){return h(e,p.EmitFlags,!0)}function C(e){return h(e,p.SymbolFlags,!0)}function E(e){return h(e,p.TypeFlags,!0)}function k(e){return h(e,p.SignatureFlags,!0)}function N(e){return h(e,p.ObjectFlags,!0)}function A(e){return h(e,p.FlowFlags,!0)}f.formatSyntaxKind=b,f.formatSnippetKind=function(e){return h(e,p.SnippetKind,!1)},f.formatNodeFlags=x,f.formatModifierFlags=D,f.formatTransformFlags=S,f.formatEmitFlags=T,f.formatSymbolFlags=C,f.formatTypeFlags=E,f.formatSignatureFlags=k,f.formatObjectFlags=N,f.formatFlowFlags=A,f.formatRelationComparisonResult=function(e){return h(e,p.RelationComparisonResult,!0)},f.formatCheckMode=function(e){return h(e,p.CheckMode,!0)},f.formatSignatureCheckMode=function(e){return h(e,p.SignatureCheckMode,!0)};var F,P,w,I=!(f.formatTypeFacts=function(e){return h(e,p.TypeFacts,!0)});function O(e){return function(){if(j(),F)return F;throw new Error("Debugging helpers could not be loaded.")}().formatControlFlowGraph(e)}function M(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return"".concat(e).concat(t?" (".concat(A(t),")"):"")}},__debugFlowFlags:{get:function(){return h(this.flags,p.FlowFlags,!0)}},__debugToString:{value:function(){return O(this)}}})}function B(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(e)}}})}function j(){if(!I){var r,a;Object.defineProperties(p.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return"".concat(e," '").concat(p.symbolName(this),"'").concat(t?" (".concat(C(t),")"):"")}},__debugFlags:{get:function(){return C(this.flags)}}}),Object.defineProperties(p.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var e=98304&this.flags?"NullableType":384&this.flags?"LiteralType ".concat(JSON.stringify(this.value)):2048&this.flags?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType ".concat(this.intrinsicName):1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return"".concat(e).concat(this.symbol?" '".concat(p.symbolName(this.symbol),"'"):"").concat(t?" (".concat(N(t),")"):"")}},__debugFlags:{get:function(){return E(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?N(this.objectFlags):""}},__debugTypeToString:{value:function(){var e=r=void 0===r&&"function"==typeof WeakMap?new WeakMap:r,t=null==e?void 0:e.get(this);return void 0===t&&(t=this.checker.typeToString(this),null!=e)&&e.set(this,t),t}}}),Object.defineProperties(p.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return k(this.flags)}},__debugSignatureToString:{value:function(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});for(var e,t,n=0,i=[p.objectAllocator.getNodeConstructor(),p.objectAllocator.getIdentifierConstructor(),p.objectAllocator.getTokenConstructor(),p.objectAllocator.getSourceFileConstructor()];n ").concat(this.target.__debugTypeToString());case 1:return p.zipWith(this.sources,this.targets||p.map(this.sources,function(){return"any"}),function(e,t){return"".concat(e.__debugTypeToString()," -> ").concat("string"==typeof t?t:t.__debugTypeToString())}).join(", ");case 2:return p.zipWith(this.sources,this.targets,function(e,t){return"".concat(e.__debugTypeToString()," -> ").concat(t().__debugTypeToString())}).join(", ");case 5:case 4:return"m1: ".concat(this.mapper1.__debugToString().split("\n").join("\n "),"\nm2: ").concat(this.mapper2.__debugToString().split("\n").join("\n "));default:return d(this)}};var U=K;function K(){}f.DebugTypeMapper=U,f.attachDebugPrototypeIfDebug=function(e){return f.isDebugging?Object.setPrototypeOf(e,U.prototype):e}}(ts=ts||{}),!function(u){var a=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,o=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,s=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,c=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,l=/^[a-z0-9-]+$/i,_=/^(0|[1-9]\d*)$/,d=(p.tryParse=function(e){e=f(e);if(e)return new p(e.major,e.minor,e.patch,e.prerelease,e.build)},p.prototype.compareTo=function(e){return this===e?0:void 0===e?1:u.compareValues(this.major,e.major)||u.compareValues(this.minor,e.minor)||u.compareValues(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;for(var r=Math.min(e.length,t.length),n=0;n":return 0=":return 0<=n;case"=":return 0===n;default:return u.Debug.assertNever(t)}}(e,i.operator,i.operand))return}return 1}(t,i))return!0}return!1},r.prototype.toString=function(){return e=this._alternatives,u.map(e,t).join(" || ")||"*";var e},u.VersionRange=r;var g=/\|\|/g,m=/\s+/g,y=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,h=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,v=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function n(e){for(var t=[],r=0,n=u.trimString(e).split(g);r=",e.version));x(t.major)||r.push(x(t.minor)?D("<",t.version.increment("major")):x(t.patch)?D("<",t.version.increment("minor")):D("<=",t.version));return 1}(o[1],o[2],i))return}else for(var s=0,c=a.split(m);s"!==e||r.push(D("<",d.zero));else switch(e){case"~":r.push(D(">=",n)),r.push(D("<",n.increment(x(a)?"major":"minor")));break;case"^":r.push(D(">=",n)),r.push(D("<",n.increment(0=":r.push(x(a)||x(o)?D(e,n.with({prerelease:"0"})):D(e,n));break;case"<=":case">":r.push(x(a)?D("<="===e?"<":">=",n.increment("major").with({prerelease:"0"})):x(o)?D("<="===e?"<":">=",n.increment("minor").with({prerelease:"0"})):D(e,n));break;case"=":case void 0:x(a)||x(o)?(r.push(D(">=",n.with({prerelease:"0"}))),r.push(D("<",n.increment(x(a)?"major":"minor").with({prerelease:"0"})))):r.push(D("=",n));break;default:return}return 1}(l[1],l[2],i))return}t.push(i)}return t}function b(e){var t,r,n,i,e=y.exec(e);if(e)return t=e[1],r=void 0===(r=e[2])?"*":r,n=void 0===(n=e[3])?"*":n,i=e[4],e=e[5],{version:new d(x(t)?0:parseInt(t,10),x(t)||x(r)?0:parseInt(r,10),x(t)||x(r)||x(n)?0:parseInt(n,10),i,e),major:t,minor:r,patch:n}}function x(e){return"*"===e||"x"===e||"X"===e}function D(e,t){return{operator:e,operand:t}}function t(e){return u.map(e,i).join(" ")}function i(e){return"".concat(e.operator).concat(e.operand)}}(ts=ts||{}),!function(a){function o(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof e.clearMarks&&"function"==typeof e.clearMeasures&&"function"==typeof t}var e=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&o(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver}}()||function(){if("undefined"!=typeof process&&process.nextTick&&!process.browser&&"object"==typeof module&&"function"==typeof require)try{var e,t,r=require("perf_hooks"),n=r.performance,i=r.PerformanceObserver;if(o(n,i))return e=n,t=new a.Version(process.versions.node),{shouldWriteNativeEvents:!1,performance:e=new a.VersionRange("<12.16.3 || 13 <13.13").test(t)?{get timeOrigin(){return n.timeOrigin},now:function(){return n.now()},mark:function(e){return n.mark(e)},measure:function(e,t,r){void 0===t&&(t="nodeStart"),void 0===r&&n.mark(r="__performance.measure-fix__"),n.measure(e,t,r),"__performance.measure-fix__"===r&&n.clearMarks("__performance.measure-fix__")},clearMarks:function(e){return n.clearMarks(e)},clearMeasures:function(e){return n.clearMeasures(e)}}:e,PerformanceObserver:i}}catch(e){}}(),t=null==e?void 0:e.performance;a.tryGetNativePerformanceHooks=function(){return e},a.timestamp=t?function(){return t.now()}:Date.now||function(){return+new Date}}(ts=ts||{}),!function(o){var i,r,s,c,l,u,n,_;function a(e,t,r){var n=0;return{enter:function(){1==++n&&d(t)},exit:function(){0==--n?(d(r),p(e,t,r)):n<0&&o.Debug.fail("enter/exit count does not match.")}}}function d(e){var t;c&&(t=null!=(t=n.get(e))?t:0,n.set(e,t+1),u.set(e,o.timestamp()),null!=s)&&s.mark(e)}function p(e,t,r){var n,i,a;c&&(n=null!=(n=void 0!==r?u.get(r):void 0)?n:o.timestamp(),i=null!=(i=void 0!==t?u.get(t):void 0)?i:l,a=_.get(e)||0,_.set(e,a+(n-i)),null!=s)&&s.measure(e,t,r)}(i=o.performance||(o.performance={})).createTimerIf=function(e,t,r,n){return e?a(t,r,n):i.nullTimer},i.createTimer=a,c=!(i.nullTimer={enter:o.noop,exit:o.noop}),l=o.timestamp(),u=new o.Map,n=new o.Map,_=new o.Map,i.mark=d,i.measure=p,i.getCount=function(e){return n.get(e)||0},i.getDuration=function(e){return _.get(e)||0},i.forEachMeasure=function(r){_.forEach(function(e,t){return r(t,e)})},i.forEachMark=function(r){u.forEach(function(e,t){return r(t)})},i.clearMeasures=function(e){void 0!==e?_.delete(e):_.clear(),null!=s&&s.clearMeasures(e)},i.clearMarks=function(e){void 0!==e?(n.delete(e),u.delete(e)):(n.clear(),u.clear()),null!=s&&s.clearMarks(e)},i.isEnabled=function(){return c},i.enable=function(e){var t;return void 0===e&&(e=o.sys),c||(c=!0,(r=r||o.tryGetNativePerformanceHooks())&&(l=r.performance.timeOrigin,r.shouldWriteNativeEvents||null!=(t=null==e?void 0:e.cpuProfilingEnabled)&&t.call(e)||null!=e&&e.debugMode)&&(s=r.performance)),!0},i.disable=function(){c&&(u.clear(),n.clear(),_.clear(),s=void 0,c=!1)}}(ts=ts||{}),!function(e){var t,r={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{var n=null!=(t=process.env.TS_ETW_MODULE_PATH)?t:"./node_modules/@microsoft/typescript-etw",i=require(n)}catch(e){i=void 0}e.perfLogger=i&&i.logEvent?i:r}(ts=ts||{}),!function(b){var e,i,x,D,a,t,o,S,T,C,s,c;function r(e,t,r){var e=s[e],n=e.phase,i=e.name,a=e.args,o=e.time;e.separateBeginAndEnd?(b.Debug.assert(!r,"`results` are not supported for events with `separateBeginAndEnd`"),l("E",n,i,a,void 0,t)):c-o%c<=t-o&&l("X",n,i,__assign(__assign({},a),{results:r}),'"dur":'.concat(t-o),o)}function l(e,t,r,n,i,a){void 0===a&&(a=1e3*b.timestamp()),"server"===D&&"checkTypes"===t||(b.performance.mark("beginTracing"),x.writeSync(S,',\n{"pid":1,"tid":1,"ph":"'.concat(e,'","cat":"').concat(t,'","ts":').concat(a,',"name":"').concat(r,'"')),i&&x.writeSync(S,",".concat(i)),n&&x.writeSync(S,',"args":'.concat(JSON.stringify(n))),x.writeSync(S,"}"),b.performance.mark("endTracing"),b.performance.measure("Tracing","beginTracing","endTracing"))}function E(e){var t=b.getSourceFileOfNode(e);return t?{path:t.path,start:r(b.getLineAndCharacterOfPosition(t,e.pos)),end:r(b.getLineAndCharacterOfPosition(t,e.end))}:void 0;function r(e){return{line:e.line+1,character:e.character+1}}}i=e=e||{},S=o=0,T=[],C=[],i.startTracing=function(e,t,r){if(b.Debug.assert(!b.tracing,"Tracing already started"),void 0===x)try{x=require("fs")}catch(e){throw new Error("tracing requires having fs\n(original error: ".concat(e.message||e,")"))}D=e,void(T.length=0)===a&&(a=b.combinePaths(t,"legend.json")),x.existsSync(t)||x.mkdirSync(t,{recursive:!0});var e="build"===D?".".concat(process.pid,"-").concat(++o):"server"===D?".".concat(process.pid):"",n=b.combinePaths(t,"trace".concat(e,".json")),t=b.combinePaths(t,"types".concat(e,".json")),e=(C.push({configFilePath:r,tracePath:n,typesPath:t}),S=x.openSync(n,"w"),b.tracing=i,{cat:"__metadata",ph:"M",ts:1e3*b.timestamp(),pid:1,tid:1});x.writeSync(S,"[\n"+[__assign({name:"process_name",args:{name:"tsc"}},e),__assign({name:"thread_name",args:{name:"Main"}},e),__assign(__assign({name:"TracingStartedInBrowser"},e),{cat:"disabled-by-default-devtools.timeline"})].map(function(e){return JSON.stringify(e)}).join(",\n"))},i.stopTracing=function(){if(b.Debug.assert(b.tracing,"Tracing is not in progress"),b.Debug.assert(!!T.length==("server"!==D)),x.writeSync(S,"\n]\n"),x.closeSync(S),b.tracing=void 0,T.length){var e=T;b.performance.mark("beginDumpTypes");for(var t,r=C[C.length-1].typesPath,n=x.openSync(r,"w"),i=new b.Map,a=(x.writeSync(n,"["),e.length),o=0;ot.length&&_.endsWith(e,t)}function c(e){return 0=t.length&&46===e.charCodeAt(e.length-t.length)){e=e.slice(e.length-t.length);if(r(e,t))return e}}function m(e,t,r){if(t){var n=E(e),i=r?_.equateStringsCaseInsensitive:_.equateStringsCaseSensitive;if("string"==typeof t)return g(n,t,i)||"";for(var a=0,o=t;a type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:t(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:t(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:t(1145,e.DiagnosticCategory.Error,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:t(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:t(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:t(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:t(1209,e.DiagnosticCategory.Error,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:t(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:t(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:t(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:t(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:t(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:t(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:t(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:t(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:t(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided:t(1269,e.DiagnosticCategory.Error,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269","Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided."),Decorator_function_return_type_0_is_not_assignable_to_type_1:t(1270,e.DiagnosticCategory.Error,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:t(1271,e.DiagnosticCategory.Error,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:t(1272,e.DiagnosticCategory.Error,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:t(1273,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:t(1274,e.DiagnosticCategory.Error,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:t(1275,e.DiagnosticCategory.Error,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:t(1276,e.DiagnosticCategory.Error,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:t(1309,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:t(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:t(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:t(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:t(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:t(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:t(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:t(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:t(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:t(1341,e.DiagnosticCategory.Error,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:t(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:t(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:t(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:t(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:t(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:t(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:t(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:t(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:t(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:t(1360,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:t(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:t(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:t(1368,e.DiagnosticCategory.Error,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:t(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:t(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:t(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:t(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:t(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:t(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:t(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:t(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:t(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:t(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:t(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:t(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:t(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:t(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:t(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:t(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:t(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:t(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:t(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:t(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:t(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:t(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:t(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:t(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:t(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:t(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:t(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:t(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:t(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:t(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:t(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:t(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:t(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:t(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:t(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:t(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:t(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:t(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:t(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:t(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:t(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:t(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:t(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:t(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:t(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:t(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:t(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:t(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:t(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:t(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:t(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:t(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:t(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:t(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:t(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1444,e.DiagnosticCategory.Error,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1446,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled:t(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:t(1449,e.DiagnosticCategory.Message,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:t(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:t(1451,e.DiagnosticCategory.Error,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:t(1452,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:t(1453,e.DiagnosticCategory.Error,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:t(1454,e.DiagnosticCategory.Error,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:t(1455,e.DiagnosticCategory.Error,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:t(1456,e.DiagnosticCategory.Error,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:t(1457,e.DiagnosticCategory.Message,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:t(1458,e.DiagnosticCategory.Message,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:t(1459,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:t(1460,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:t(1461,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:t(1470,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:t(1471,e.DiagnosticCategory.Error,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:t(1472,e.DiagnosticCategory.Error,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1473,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1474,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:t(1475,e.DiagnosticCategory.Message,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:t(1476,e.DiagnosticCategory.Message,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:t(1477,e.DiagnosticCategory.Error,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:t(1478,e.DiagnosticCategory.Error,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:t(1479,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:t(1480,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:t(1481,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:t(1482,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:t(1483,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),The_types_of_0_are_incompatible_between_these_types:t(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:t(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:t(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:t(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:t(2206,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:t(2207,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:t(2208,e.DiagnosticCategory.Error,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2209,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2210,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:t(2211,e.DiagnosticCategory.Message,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:t(2212,e.DiagnosticCategory.Message,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:t(2311,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:t(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:t(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:t(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:t(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:t(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2375,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2379,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:t(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:t(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2401,e.DiagnosticCategory.Error,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:t(2412,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:t(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:t(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:t(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:t(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:t(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:t(2514,e.DiagnosticCategory.Error,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:t(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:t(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:t(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:t(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:t(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:t(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:t(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:t(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:t(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:t(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:t(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:t(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:t(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:t(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:t(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:t(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:t(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:t(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:t(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:t(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:t(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:t(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:t(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:t(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:t(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:t(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:t(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:t(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:t(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:t(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:t(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:t(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:t(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:t(2635,e.DiagnosticCategory.Error,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:t(2636,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:t(2637,e.DiagnosticCategory.Error,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:t(2638,e.DiagnosticCategory.Error,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:t(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:t(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:t(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:t(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:t(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:t(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:t(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:t(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:t(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:t(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:t(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:t(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:t(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:t(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:t(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:t(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:t(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:t(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:t(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:t(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:t(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:t(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:t(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:t(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:t(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:t(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:t(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:t(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:t(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:t(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:t(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:t(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:t(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:t(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:t(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:t(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:t(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:t(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:t(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:t(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:t(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:t(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:t(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:t(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:t(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:t(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:t(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:t(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:t(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:t(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:t(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:t(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:t(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:t(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:t(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:t(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:t(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:t(2810,e.DiagnosticCategory.Error,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:t(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:t(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:t(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:t(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:t(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:t(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:t(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:t(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:t(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:t(2820,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:t(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:t(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:t(2833,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:t(2834,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:t(2835,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:t(2836,e.DiagnosticCategory.Error,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:t(2837,e.DiagnosticCategory.Error,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:t(2838,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:t(2839,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:t(2840,e.DiagnosticCategory.Error,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(2841,e.DiagnosticCategory.Error,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:t(2842,e.DiagnosticCategory.Error,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:t(2843,e.DiagnosticCategory.Error,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2844,e.DiagnosticCategory.Error,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:t(2845,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:t(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:t(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:t(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:t(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:t(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:t(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:t(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:t(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:t(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:t(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:t(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:t(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:t(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:t(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:t(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:t(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4119,e.DiagnosticCategory.Error,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4120,e.DiagnosticCategory.Error,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:t(4121,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:t(4122,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4123,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4124,e.DiagnosticCategory.Error,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4125,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:t(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:t(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:t(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:t(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:t(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:t(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:t(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:t(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:t(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:t(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:t(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:t(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:t(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:t(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:t(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:t(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:t(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:t(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:t(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:t(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:t(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:t(6041,e.DiagnosticCategory.Message,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:t(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:t(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:t(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:t(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:t(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:t(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:t(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:t(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:t(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:t(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:t(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:t(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:t(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:t(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:t(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:t(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:t(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:t(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:t(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:t(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:t(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:t(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:t(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:t(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:t(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:t(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:t(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:t(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:t(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:t(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:t(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:t(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:t(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:t(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:t(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:t(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:t(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:t(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:t(6258,e.DiagnosticCategory.Error,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:t(6259,e.DiagnosticCategory.Message,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:t(6260,e.DiagnosticCategory.Message,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:t(6261,e.DiagnosticCategory.Message,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:t(6270,e.DiagnosticCategory.Message,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6271,e.DiagnosticCategory.Message,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:t(6272,e.DiagnosticCategory.Message,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:t(6273,e.DiagnosticCategory.Message,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:t(6274,e.DiagnosticCategory.Message,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:t(6275,e.DiagnosticCategory.Message,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6276,e.DiagnosticCategory.Message,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:t(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:t(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:t(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:t(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:t(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:t(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:t(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:t(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:t(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:t(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:t(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:t(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:t(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:t(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:t(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:t(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:t(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:t(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:t(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:t(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:t(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:t(6399,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:t(6400,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:t(6401,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:t(6402,e.DiagnosticCategory.Message,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:t(6403,e.DiagnosticCategory.Message,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:t(6404,e.DiagnosticCategory.Message,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:t(6405,e.DiagnosticCategory.Message,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:t(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:t(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:t(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:t(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:t(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:t(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:t(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:t(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:t(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:t(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:t(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:t(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:t(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:t(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:t(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:t(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:t(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:t(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:t(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:t(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:t(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:t(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:t(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:t(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:t(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:t(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:t(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:t(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:t(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:t(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:t(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:t(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:t(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:t(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:t(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:t(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:t(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:t(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:t(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:t(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:t(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:t(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:t(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:t(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:t(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:t(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:t(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:t(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:t(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:t(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:t(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:t(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:t(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:t(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:t(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:t(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:t(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:t(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:t(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:t(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:t(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:t(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:t(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:t(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:t(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:t(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:t(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:t(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:t(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:t(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:t(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:t(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:t(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:t(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:t(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:t(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:t(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:t(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:t(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:t(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:t(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:t(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:t(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:t(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:t(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:t(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:t(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:t(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:t(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:t(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:t(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:t(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:t(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:t(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:t(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:t(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:t(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:t(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:t(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:t(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:t(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:t(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:t(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:t(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:t(6707,e.DiagnosticCategory.Message,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:t(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:t(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:t(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:t(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:t(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:t(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:t(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:t(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:t(6803,e.DiagnosticCategory.Message,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:t(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:t(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:t(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:t(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:t(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:t(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:t(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:t(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:t(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:t(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:t(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:t(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:t(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:t(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:t(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:t(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:t(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:t(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:t(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:t(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:t(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:t(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:t(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:t(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:t(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:t(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:t(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:t(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:t(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:t(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:t(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:t(6931,e.DiagnosticCategory.Error,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:t(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:t(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:t(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:t(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:t(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:t(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:t(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:t(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:t(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:t(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:t(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:t(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:t(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:t(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:t(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:t(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:t(7058,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:t(7059,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:t(7060,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:t(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:t(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:t(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:t(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:t(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:t(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:t(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:t(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:t(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:t(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:t(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:t(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:t(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:t(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:t(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:t(8035,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:t(8036,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:t(8037,e.DiagnosticCategory.Error,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:t(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:t(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:t(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:t(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:t(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:t(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:t(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:t(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:t(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:t(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:t(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:t(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:t(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:t(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:t(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:t(90055,e.DiagnosticCategory.Message,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:t(90056,e.DiagnosticCategory.Message,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:t(90057,e.DiagnosticCategory.Message,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:t(90058,e.DiagnosticCategory.Message,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:t(90059,e.DiagnosticCategory.Message,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:t(90060,e.DiagnosticCategory.Message,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:t(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:t(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:t(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:t(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:t(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:t(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:t(95102,e.DiagnosticCategory.Message,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:t(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:t(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:t(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:t(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:t(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:t(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:t(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:t(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:t(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:t(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:t(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:t(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:t(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:t(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:t(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:t(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:t(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:t(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:t(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:t(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:t(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:t(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:t(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:t(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:t(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:t(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:t(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:t(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:t(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:t(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:t(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:t(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:t(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:t(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:t(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:t(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:t(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:t(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:t(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:t(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:t(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:t(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:t(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:t(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:t(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:t(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:t(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:t(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:t(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:t(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:t(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:t(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:t(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:t(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:t(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:t(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:t(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:t(95170,e.DiagnosticCategory.Message,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:t(95171,e.DiagnosticCategory.Message,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:t(95172,e.DiagnosticCategory.Message,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:t(95173,e.DiagnosticCategory.Message,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:t(95174,e.DiagnosticCategory.Message,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:t(95175,e.DiagnosticCategory.Message,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:t(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:t(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:t(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:t(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:t(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:t(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:t(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:t(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:t(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:t(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:t(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:t(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:t(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:t(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:t(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:t(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:t(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:t(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:t(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:t(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:t(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:t(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:t(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:t(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:t(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:t(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:t(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:t(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:t(18042,e.DiagnosticCategory.Error,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:t(18043,e.DiagnosticCategory.Error,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:t(18044,e.DiagnosticCategory.Message,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18045,e.DiagnosticCategory.Error,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:t(18046,e.DiagnosticCategory.Error,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:t(18047,e.DiagnosticCategory.Error,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:t(18048,e.DiagnosticCategory.Error,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:t(18049,e.DiagnosticCategory.Error,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:t(18050,e.DiagnosticCategory.Error,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here.")}}(ts=ts||{}),!function(V){var e;function t(e){return 79<=e}V.tokenIsIdentifierOrKeyword=t,V.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||79<=e},V.textToKeywordObj=((e={abstract:126,accessor:127,any:131,as:128,asserts:129,assert:130,bigint:160,boolean:134,break:81,case:82,catch:83,class:84,continue:86,const:85}).constructor=135,e.debugger=87,e.declare=136,e.default=88,e.delete=89,e.do=90,e.else=91,e.enum=92,e.export=93,e.extends=94,e.false=95,e.finally=96,e.for=97,e.from=158,e.function=98,e.get=137,e.if=99,e.implements=117,e.import=100,e.in=101,e.infer=138,e.instanceof=102,e.interface=118,e.intrinsic=139,e.is=140,e.keyof=141,e.let=119,e.module=142,e.namespace=143,e.never=144,e.new=103,e.null=104,e.number=148,e.object=149,e.package=120,e.private=121,e.protected=122,e.public=123,e.override=161,e.out=145,e.readonly=146,e.require=147,e.global=159,e.return=105,e.satisfies=150,e.set=151,e.static=124,e.string=152,e.super=106,e.switch=107,e.symbol=153,e.this=108,e.throw=109,e.true=110,e.try=111,e.type=154,e.typeof=112,e.undefined=155,e.unique=156,e.unknown=157,e.var=113,e.void=114,e.while=115,e.with=116,e.yield=125,e.async=132,e.await=133,e.of=162,e);var q=new V.Map(V.getEntries(V.textToKeywordObj)),r=new V.Map(V.getEntries(__assign(__assign({},V.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,">":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),n=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],h=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],b=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],x=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],D=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],S=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],se=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,ce=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function i(e,t){if(!(e=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:V.Debug.fail("Bad line number. Line: ".concat(t,", lineStarts.length: ").concat(e.length," , line map is correct? ").concat(void 0!==n?V.arraysEqual(e,s(n)):"unknown")));r=e[t]+r;return i?r>e[t+1]?e[t+1]:"string"==typeof n&&r>n.length?n.length:r:(t=e.start&&t=e.pos&&t<=e.end},d.textSpanContainsTextSpan=function(e,t){return t.start>=e.start&&p(t)<=p(e)},d.textSpanOverlapsWith=function(e,t){return void 0!==r(e,t)},d.textSpanOverlap=r,d.textSpanIntersectsWithTextSpan=function(e,t){return n(e.start,e.length,t.start,t.length)},d.textSpanIntersectsWith=function(e,t,r){return n(e.start,e.length,t,r)},d.decodedTextSpanIntersectsWith=n,d.textSpanIntersectsWithPosition=function(e,t){return t<=p(e)&&t>=e.start},d.textSpanIntersection=i,d.createTextSpan=a,d.createTextSpanFromBounds=f,d.textChangeRangeNewSpan=function(e){return a(e.span.start,e.newLength)},d.textChangeRangeIsUnchanged=function(e){return t(e.span)&&0===e.newLength},d.createTextChangeRange=g,d.unchangedTextChangeRange=g(a(0,0),0),d.collapseTextChangeRangesAcrossMultipleVersions=function(e){if(0===e.length)return d.unchangedTextChangeRange;if(1===e.length)return e[0];for(var t=e[0],r=t.span.start,n=p(t.span),i=r+t.newLength,a=1;a=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),S.Debug.assert(c<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),S.createTextSpanFromBounds(c,r.end)}function ge(e){return 6===e.scriptKind}function me(e){return!!(2&S.getCombinedNodeFlags(e))}function ye(e){return 210===e.kind&&100===e.expression.kind}function he(e){return S.isImportTypeNode(e)&&S.isLiteralTypeNode(e.argument)&&S.isStringLiteral(e.argument.literal)}function ve(e){return 241===e.kind&&10===e.expression.kind}function be(e){return!!(1048576&s(e))}function xe(e){return S.isIdentifier(e.name)&&!e.initializer}S.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||L(e,t)},S.optionsHaveModuleResolutionChanges=L,S.changesAffectingProgramStructure=function(e,t){return i(e,t,S.optionsAffectingProgramStructure)},S.optionsHaveChanges=i,S.forEachAncestor=function(e,t){for(;;){var r=t(e);if("quit"===r)return;if(void 0!==r)return r;if(S.isSourceFile(e))return;e=e.parent}},S.forEachEntry=function(e,t){for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=i[0],i=t(i[1],a);if(i)return i}},S.forEachKey=function(e,t){for(var r=e.keys(),n=r.next();!n.done;n=r.next()){var i=t(n.value);if(i)return i}},S.copyEntries=function(e,r){e.forEach(function(e,t){r.set(t,e)})},S.usingSingleLineStringWriter=function(e){var t=r.getText();try{return e(r),r.getText()}finally{r.clear(),r.writeKeyword(t)}},S.getFullWidth=R,S.getResolvedModule=function(e,t,r){return e&&e.resolvedModules&&e.resolvedModules.get(t,r)},S.setResolvedModule=function(e,t,r,n){e.resolvedModules||(e.resolvedModules=S.createModeAwareCache()),e.resolvedModules.set(t,n,r)},S.setResolvedTypeReferenceDirective=function(e,t,r){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=S.createModeAwareCache()),e.resolvedTypeReferenceDirectiveNames.set(t,void 0,r)},S.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},S.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&(e=e.packageId,t=t.packageId,e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version)},S.packageIdToPackageName=B,S.packageIdToString=function(e){return"".concat(B(e),"@").concat(e.version)},S.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary&&e.originalPath===t.originalPath},S.hasChangesInResolutions=function(e,t,r,n,i){S.Debug.assert(e.length===t.length);for(var a=0;a=S.ModuleKind.ES2015)&&t.noImplicitUseStrict))},S.isAmbientPropertyDeclaration=function(e){return!!(16777216&e.flags)||T(e,2)},S.isBlockScope=ne,S.isDeclarationWithTypeParameters=function(e){switch(e.kind){case 341:case 348:case 326:return!0;default:return S.assertType(e),ie(e)}},S.isDeclarationWithTypeParameterChildren=ie,S.isAnyImportSyntax=ae,S.isAnyImportOrBareOrAccessedRequire=function(e){return ae(e)||We(e)},S.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 269:case 268:case 240:case 260:case 259:case 264:case 262:case 261:case 263:return!0;default:return!1}},S.hasPossibleExternalModuleReference=function(e){return oe(e)||S.isModuleDeclaration(e)||S.isImportTypeNode(e)||ye(e)},S.isAnyImportOrReExport=oe,S.getEnclosingBlockScopeContainer=se,S.forEachEnclosingBlockScopeContainer=function(e,t){for(var r=se(e);r;)t(r),r=se(r)},S.declarationNameToString=ce,S.getNameFromIndexInfo=function(e){return e.declaration?ce(e.declaration.parameters[0].name):void 0},S.isComputedNonLiteralName=function(e){return 164===e.kind&&!v(e.expression)},S.tryGetTextOfPropertyName=le,S.getTextOfPropertyName=function(e){return S.Debug.checkDefined(le(e))},S.entityNameToString=c,S.createDiagnosticForNode=function(e,t,r,n,i,a){return ue(o(e),e,t,r,n,i,a)},S.createDiagnosticForNodeArray=function(e,t,r,n,i,a,o){var s=S.skipTrivia(e.text,t.pos);return yn(e,s,t.end-s,r,n,i,a,o)},S.createDiagnosticForNodeInSourceFile=ue,S.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=o(e),e=fe(n,e);return de(n,e.start,e.length,t,r)},S.createFileDiagnosticFromMessageChain=de,S.createDiagnosticForFileFromMessageChain=function(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},S.createDiagnosticMessageChainFromDiagnostic=function(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText},S.createDiagnosticForRange=function(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}},S.getSpanOfTokenAtPosition=pe,S.getErrorSpanForNode=fe,S.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},S.isJsonSourceFile=ge,S.isEnumConst=function(e){return!!(2048&S.getCombinedModifierFlags(e))},S.isDeclarationReadonly=function(e){return!(!(64&S.getCombinedModifierFlags(e))||S.isParameterPropertyDeclaration(e,e.parent))},S.isVarConst=me,S.isLet=function(e){return!!(1&S.getCombinedNodeFlags(e))},S.isSuperCall=function(e){return 210===e.kind&&106===e.expression.kind},S.isImportCall=ye,S.isImportMeta=function(e){return S.isMetaProperty(e)&&100===e.keywordToken&&"meta"===e.name.escapedText},S.isLiteralImportTypeNode=he,S.isPrologueDirective=ve,S.isCustomPrologue=be,S.isHoistedFunction=function(e){return be(e)&&S.isFunctionDeclaration(e)},S.isHoistedVariableStatement=function(e){return be(e)&&S.isVariableStatement(e)&&S.every(e.declarationList.declarations,xe)},S.getLeadingCommentRangesOfNode=function(e,t){return 11!==e.kind?S.getLeadingCommentRanges(t.text,e.pos):void 0},S.getJSDocCommentRanges=function(e,t){return e=166===e.kind||165===e.kind||215===e.kind||216===e.kind||214===e.kind||257===e.kind||278===e.kind?S.concatenate(S.getTrailingCommentRanges(t,e.pos),S.getLeadingCommentRanges(t,e.pos)):S.getLeadingCommentRanges(t,e.pos),S.filter(e,function(e){return 42===t.charCodeAt(e.pos+1)&&42===t.charCodeAt(e.pos+2)&&47!==t.charCodeAt(e.pos+3)})},S.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/;var e,De=/^(\/\/\/\s*/,Se=(S.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/,/^(\/\/\/\s*/);function Te(e){if(179<=e.kind&&e.kind<=202)return!0;switch(e.kind){case 131:case 157:case 148:case 160:case 152:case 134:case 153:case 149:case 155:case 144:return!0;case 114:return 219!==e.parent.kind;case 230:return S.isHeritageClause(e.parent)&&!Gr(e);case 165:return 197===e.parent.kind||192===e.parent.kind;case 79:(163===e.parent.kind&&e.parent.right===e||208===e.parent.kind&&e.parent.name===e)&&(e=e.parent),S.Debug.assert(79===e.kind||163===e.kind||208===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 163:case 208:case 108:var t=e.parent;if(183===t.kind)return!1;if(202===t.kind)return!t.isTypeOf;if(179<=t.kind&&t.kind<=202)return!0;switch(t.kind){case 230:return S.isHeritageClause(t.parent)&&!Gr(t);case 165:case 347:return e===t.constraint;case 169:case 168:case 166:case 257:return e===t.type;case 259:case 215:case 216:case 173:case 171:case 170:case 174:case 175:return e===t.type;case 176:case 177:case 178:case 213:return e===t.type;case 210:case 211:return S.contains(t.typeArguments,e);case 212:return!1}}return!1}function Ce(e){if(e)switch(e.kind){case 205:case 302:case 166:case 299:case 169:case 168:case 300:case 257:return!0}return!1}function Ee(e){return 258===e.parent.kind&&240===e.parent.parent.kind}function ke(e){return!!u(e)&&S.isBinaryExpression(e)&&1===p(e)}function Ne(e,t,r){return e.properties.filter(function(e){return 299===e.kind&&(e=le(e.name),t===e||!!r&&r===e)})}function Ae(e){if(e&&e.statements.length)return e=e.statements[0].expression,S.tryCast(e,S.isObjectLiteralExpression)}function Fe(e,t){e=Ae(e);return e?Ne(e,t):S.emptyArray}function Pe(e,t){for(S.Debug.assert(308!==e.kind);;){if(!(e=e.parent))return S.Debug.fail();switch(e.kind){case 164:if(S.isClassLike(e.parent.parent))return e;e=e.parent;break;case 167:166===e.parent.kind&&S.isClassElement(e.parent.parent)?e=e.parent.parent:S.isClassElement(e.parent)&&(e=e.parent);break;case 216:if(!t)continue;case 259:case 215:case 264:case 172:case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 176:case 177:case 178:case 263:case 308:return e}}}function we(e){var t=e.kind;return(208===t||209===t)&&106===e.expression.kind}function Ie(e,t,r){if(!S.isNamedDeclaration(e)||!S.isPrivateIdentifier(e.name))switch(e.kind){case 260:return!0;case 169:return 260===t.kind;case 174:case 175:case 171:return void 0!==e.body&&260===t.kind;case 166:return void 0!==t.body&&(173===t.kind||171===t.kind||175===t.kind)&&260===r.kind}return!1}function Oe(e,t,r){return Ir(e)&&Ie(e,t,r)}function Me(e,t,r){return Oe(e,t,r)||Le(e,t)}function Le(t,r){switch(t.kind){case 260:return S.some(t.members,function(e){return Me(e,t,r)});case 171:case 175:case 173:return S.some(t.parameters,function(e){return Oe(e,t,r)});default:return!1}}function Re(e){var t=e.parent;return(283===t.kind||282===t.kind||284===t.kind)&&t.tagName===e}function Be(e){switch(e.kind){case 106:case 104:case 110:case 95:case 13:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 231:case 213:case 235:case 232:case 214:case 215:case 228:case 216:case 219:case 217:case 218:case 221:case 222:case 223:case 224:case 227:case 225:case 229:case 281:case 282:case 285:case 226:case 220:case 233:return!0;case 230:return!S.isHeritageClause(e.parent);case 163:for(;163===e.parent.kind;)e=e.parent;return 183===e.parent.kind||S.isJSDocLinkLike(e.parent)||S.isJSDocNameReference(e.parent)||S.isJSDocMemberName(e.parent)||Re(e);case 314:for(;S.isJSDocMemberName(e.parent);)e=e.parent;return 183===e.parent.kind||S.isJSDocLinkLike(e.parent)||S.isJSDocNameReference(e.parent)||S.isJSDocMemberName(e.parent)||Re(e);case 80:return S.isBinaryExpression(e.parent)&&e.parent.left===e&&101===e.parent.operatorToken.kind;case 79:if(183===e.parent.kind||S.isJSDocLinkLike(e.parent)||S.isJSDocNameReference(e.parent)||S.isJSDocMemberName(e.parent)||Re(e))return!0;case 8:case 9:case 10:case 14:case 108:return je(e);default:return!1}}function je(e){var t=e.parent;switch(t.kind){case 257:case 166:case 169:case 168:case 302:case 299:case 205:return t.initializer===e;case 241:case 242:case 243:case 244:case 250:case 251:case 252:case 292:case 254:return t.expression===e;case 245:return t.initializer===e&&258!==t.initializer.kind||t.condition===e||t.incrementor===e;case 246:case 247:return t.initializer===e&&258!==t.initializer.kind||t.expression===e;case 213:case 231:case 236:case 164:return e===t.expression;case 167:case 291:case 290:case 301:return!0;case 230:return t.expression===e&&!Te(t);case 300:return t.objectAssignmentInitializer===e;case 235:return e===t.expression;default:return Be(t)}}function Je(e){for(;163===e.kind||79===e.kind;)e=e.parent;return 183===e.kind}function ze(e){return 268===e.kind&&280===e.moduleReference.kind}function Ue(e){return u(e)}function u(e){return!!e&&!!(262144&e.flags)}function Ke(e){return!!e&&!!(8388608&e.flags)}function Ve(e,t){var r;return 210===e.kind&&(r=e.expression,e=e.arguments,79===r.kind)&&"require"===r.escapedText&&1===e.length&&(r=e[0],!t||S.isStringLiteralLike(r))}function qe(e){return He(e,!1)}function We(e){return He(e,!0)}function He(e,t){return S.isVariableDeclaration(e)&&!!e.initializer&&Ve(t?ln(e.initializer):e.initializer,!0)}function Ge(e){return S.isBinaryExpression(e)||P(e)||S.isIdentifier(e)||S.isCallExpression(e)}function Qe(e){return u(e)&&e.initializer&&S.isBinaryExpression(e.initializer)&&(56===e.initializer.operatorToken.kind||60===e.initializer.operatorToken.kind)&&e.name&&C(e.name)&&d(e.name,e.initializer.left)?e.initializer.right:e.initializer}function _(e,t){var r;return S.isCallExpression(e)?215===(r=St(e.expression)).kind||216===r.kind?e:void 0:215===e.kind||228===e.kind||216===e.kind||S.isObjectLiteralExpression(e)&&(0===e.properties.length||t)?e:void 0}function d(e,t){return jt(e)&&jt(t)?Jt(e)===Jt(t):S.isMemberName(e)&&tt(t)&&(108===t.expression.kind||S.isIdentifier(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?d(e,nt(t)):!(!tt(e)||!tt(t))&&y(e)===y(t)&&d(e.expression,t.expression)}function Xe(e){for(;Hr(e,!0);)e=e.right;return e}function Ye(e){return S.isIdentifier(e)&&"exports"===e.escapedText}function Ze(e){return S.isIdentifier(e)&&"module"===e.escapedText}function $e(e){return(S.isPropertyAccessExpression(e)||f(e))&&Ze(e.expression)&&"exports"===y(e)}function p(e){var t=function(e){{var t;if(S.isCallExpression(e))return et(e)?Ye(t=e.arguments[0])||$e(t)?8:g(t)&&"prototype"===y(t)?9:7:0}if(63!==e.operatorToken.kind||!P(e.left)||function(e){return S.isVoidExpression(e)&&S.isNumericLiteral(e.expression)&&"0"===e.expression.text}(Xe(e)))return 0;if(m(e.left.expression,!0)&&"prototype"===y(e.left)&&S.isObjectLiteralExpression(ot(e)))return 6;return at(e.left)}(e);return 5===t||u(e)?t:0}function et(e){return 3===S.length(e.arguments)&&S.isPropertyAccessExpression(e.expression)&&S.isIdentifier(e.expression.expression)&&"Object"===S.idText(e.expression.expression)&&"defineProperty"===S.idText(e.expression.name)&&v(e.arguments[1])&&m(e.arguments[0],!0)}function tt(e){return S.isPropertyAccessExpression(e)||f(e)}function f(e){return S.isElementAccessExpression(e)&&v(e.argumentExpression)}function g(e,t){return S.isPropertyAccessExpression(e)&&(!t&&108===e.expression.kind||S.isIdentifier(e.name)&&m(e.expression,!0))||rt(e,t)}function rt(e,t){return f(e)&&(!t&&108===e.expression.kind||C(e.expression)||g(e.expression,!0))}function m(e,t){return C(e)||g(e,t)}function nt(e){return S.isPropertyAccessExpression(e)?e.name:e.argumentExpression}function it(e){var t;return S.isPropertyAccessExpression(e)?e.name:(t=St(e.argumentExpression),S.isNumericLiteral(t)||S.isStringLiteralLike(t)?t:e)}function y(e){e=it(e);if(e){if(S.isIdentifier(e))return e.escapedText;if(S.isStringLiteralLike(e)||S.isNumericLiteral(e))return S.escapeLeadingUnderscores(e.text)}}function at(e){if(108===e.expression.kind)return 4;if($e(e))return 2;if(m(e.expression,!0)){if(E(e.expression))return 3;for(var t=e;!S.isIdentifier(t.expression);)t=t.expression;var r=t.expression;if(("exports"===r.escapedText||"module"===r.escapedText&&"exports"===y(t))&&g(e))return 1;if(m(e,!0)||S.isElementAccessExpression(e)&&Rt(e))return 5}return 0}function ot(e){for(;S.isBinaryExpression(e.right);)e=e.right;return e.right}function st(e){switch(e.parent.kind){case 269:case 275:return e.parent;case 280:return e.parent.parent;case 210:return ye(e.parent)||Ve(e.parent,!1)?e.parent:void 0;case 198:return S.Debug.assert(S.isStringLiteral(e)),S.tryCast(e.parent.parent,S.isImportTypeNode);default:return}}function ct(e){switch(e.kind){case 269:case 275:return e.moduleSpecifier;case 268:return 280===e.moduleReference.kind?e.moduleReference.expression:void 0;case 202:return he(e)?e.argument.literal:void 0;case 210:return e.arguments[0];case 264:return 10===e.name.kind?e.name:void 0;default:return S.Debug.assertNever(e)}}function lt(e){return 348===e.kind||341===e.kind||342===e.kind}function ut(e){return S.isExpressionStatement(e)&&S.isBinaryExpression(e.expression)&&0!==p(e.expression)&&S.isBinaryExpression(e.expression.right)&&(56===e.expression.right.operatorToken.kind||60===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function _t(e){switch(e.kind){case 240:var t=h(e);return t&&t.initializer;case 169:case 299:return e.initializer}}function h(e){return S.isVariableStatement(e)?S.firstOrUndefined(e.declarationList.declarations):void 0}function dt(e){return S.isModuleDeclaration(e)&&e.body&&264===e.body.kind?e.body:void 0}function pt(t,e){var r;return S.isJSDoc(e)?(r=S.filter(e.tags,function(e){return ft(t,e)}),e.tags===r?[e]:r):ft(t,e)?[e]:void 0}function ft(e,t){return!(S.isJSDocTypeTag(t)&&t.parent&&S.isJSDoc(t.parent)&&S.isParenthesizedExpression(t.parent.parent)&&t.parent.parent!==e)}function gt(e){var t=e.parent;return 299===t.kind||274===t.kind||169===t.kind||241===t.kind&&208===e.kind||250===t.kind||dt(t)||S.isBinaryExpression(e)&&63===e.operatorToken.kind?t:t.parent&&(h(t.parent)===e||S.isBinaryExpression(t)&&63===t.operatorToken.kind)?t.parent:t.parent&&t.parent.parent&&(h(t.parent.parent)||_t(t.parent.parent)===e||ut(t.parent.parent))?t.parent.parent:void 0}function mt(e){e=yt(e);if(e)return S.isPropertySignature(e)&&e.type&&S.isFunctionLike(e.type)?e.type:S.isFunctionLike(e)?e:void 0}function yt(e){var t,e=ht(e);if(e)return ut(e)||(t=e,S.isExpressionStatement(t)&&S.isBinaryExpression(t.expression)&&63===t.expression.operatorToken.kind?Xe(t.expression):void 0)||_t(e)||h(e)||dt(e)||e}function ht(e){var t,e=vt(e);return e&&(t=e.parent)&&t.jsDoc&&e===S.lastOrUndefined(t.jsDoc)?t:void 0}function vt(e){return S.findAncestor(e.parent,S.isJSDoc)}function bt(e){for(var t=e.parent;;){switch(t.kind){case 223:var r=t.operatorToken.kind;return Vr(r)&&t.left===e?63===r||Kr(r)?1:2:0;case 221:case 222:r=t.operator;return 45===r||46===r?2:0;case 246:case 247:return t.initializer===e?1:0;case 214:case 206:case 227:case 232:e=t;break;case 301:e=t.parent;break;case 300:if(t.name!==e)return 0;e=t.parent;break;case 299:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function xt(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function Dt(e){return xt(e,214)}function St(e,t){return S.skipOuterExpressions(e,t?17:1)}function Tt(e){return C(e)||S.isClassExpression(e)}function Ct(e){return Tt(Et(e))}function Et(e){return S.isExportAssignment(e)?e.expression:e.right}function kt(e){var t=Nt(e);if(t&&u(e)){e=S.getJSDocAugmentsTag(e);if(e)return e.class}return t}function Nt(e){e=Pt(e.heritageClauses,94);return e&&0S.getRootLength(t)&&!n(t)&&(e(S.getDirectoryPath(t),r,n),r(t))}(S.getDirectoryPath(S.normalizePath(t)),a,o),i(t,r,n)}},S.getLineOfLocalPosition=function(e,t){return e=S.getLineStarts(e),S.computeLineOfPosition(e,t)},S.getLineOfLocalPositionFromLineMap=D,S.getFirstConstructorWithBody=vr,S.getSetAccessorValueParameter=br,S.getSetAccessorTypeAnnotationNode=function(e){return(e=br(e))&&e.type},S.getThisParameter=function(e){if(e.parameters.length&&!S.isJSDocSignature(e)){e=e.parameters[0];if(xr(e))return e}},S.parameterIsThisKeyword=xr,S.isThisIdentifier=Dr,S.isThisInTypeQuery=function(e){if(!Dr(e))return!1;for(;S.isQualifiedName(e.parent)&&e.parent.left===e;)e=e.parent;return 183===e.parent.kind},S.identifierIsThisKeyword=Sr,S.getAllAccessorDeclarations=function(e,t){var r,n,i,a;return Lt(t)?174===(r=t).kind?i=t:175===t.kind?a=t:S.Debug.fail("Accessor has wrong kind"):S.forEach(e,function(e){S.isAccessor(e)&&Fr(e)===Fr(t)&&Bt(e.name)===Bt(t.name)&&(r?n=n||e:r=e,174===e.kind&&(i=i||e),175===e.kind)&&(a=a||e)}),{firstAccessor:r,secondAccessor:n,getAccessor:i,setAccessor:a}},S.getEffectiveTypeAnnotationNode=Tr,S.getTypeAnnotationNode=function(e){return e.type},S.getEffectiveReturnTypeNode=function(e){return S.isJSDocSignature(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(u(e)?S.getJSDocReturnType(e):void 0)},S.getJSDocTypeParameterDeclarations=function(e){return S.flatMap(S.getJSDocTags(e),function(e){return t=e,!S.isJSDocTemplateTag(t)||323===t.parent.kind&&t.parent.tags.some(lt)?void 0:e.typeParameters;var t})},S.getEffectiveSetAccessorTypeAnnotationNode=function(e){return(e=br(e))&&Tr(e)},S.emitNewLineBeforeLeadingComments=Cr,S.emitNewLineBeforeLeadingCommentsOfPosition=Er,S.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&D(e,r)!==D(e,n)&&t.writeLine()},S.emitComments=kr,S.emitDetachedComments=function(t,e,r,n,i,a,o){var s,c;if(o?0===i.pos&&(s=S.filter(S.getLeadingCommentRanges(t,i.pos),function(e){return q(t,e.pos)})):s=S.getLeadingCommentRanges(t,i.pos),s){for(var l=[],u=void 0,_=0,d=s;_>6|192),t.push(63&i|128)):i<65536?(t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128)):i<131072?(t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128)):S.Debug.assert(!1,"Unexpected code point")}return t}(e),s=0,c=o.length;s>2,r=(3&o[s])<<4|o[s+1]>>4,n=(15&o[s+1])<<2|o[s+2]>>6,i=63&o[s+2],c<=s+1?n=i=64:c<=s+2&&(i=64),a+=k.charAt(t)+k.charAt(r)+k.charAt(n)+k.charAt(i),s+=3;return a}function Zr(e,t){t=S.isString(t)?t:t.readFile(e);return!t||(e=S.parseConfigFileTextToJson(e,t)).error?void 0:e.config}S.convertToBase64=Yr,S.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Yr(t)},S.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i>4&3,o=(15&o)<<4|s>>2&15,l=(3&s)<<6|63&c;0==o&&0!==s?n.push(a):0==l&&0!==c?n.push(a,o):n.push(a,o,l),i+=4}for(var u=n,_="",d=0,p=u.length;dr.next.length)return 1}return 0}(e.messageText,t.messageText)||0}function Dn(e){if(2&e.transformFlags)return S.isJsxOpeningLikeElement(e)||S.isJsxFragment(e)?e:S.forEachChild(e,Dn)}function Sn(e){return e.isDeclarationFile?void 0:Dn(e)}function Tn(e){return!(e.impliedNodeFormat!==S.ModuleKind.ESNext&&!S.fileExtensionIsOneOf(e.fileName,[".cjs",".cts",".mjs",".mts"])||e.isDeclarationFile)||void 0}function Cn(e){return e.target||(e.module===S.ModuleKind.Node16?9:e.module===S.ModuleKind.NodeNext&&99)||0}function O(e){return"number"==typeof e.module?e.module:2<=Cn(e)?S.ModuleKind.ES2015:S.ModuleKind.CommonJS}function En(e){return e.moduleDetection||(O(e)===S.ModuleKind.Node16||O(e)===S.ModuleKind.NodeNext?S.ModuleDetectionKind.Force:S.ModuleDetectionKind.Auto)}function kn(e){if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(O(e)){case S.ModuleKind.Node16:case S.ModuleKind.NodeNext:return!0}}function Nn(e){return!(!e.declaration&&!e.composite)}function An(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function Fn(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function Pn(e,t){return t.strictFlag?An(e,t.name):e[t.name]}function wn(e,t){return void 0!==e&&("node_modules"===t(e)||S.startsWith(e,"@"))}S.getNewLineCharacter=function(e,t){switch(e.newLine){case 0:return"\r\n";case 1:return"\n"}return t?t():S.sys?S.sys.newLine:"\r\n"},S.createRange=en,S.moveRangeEnd=function(e,t){return en(e.pos,t)},S.moveRangePos=tn,S.moveRangePastDecorators=rn,S.moveRangePastModifiers=function(e){var t=S.canHaveModifiers(e)?S.lastOrUndefined(e.modifiers):void 0;return t&&!M(t.end)?tn(e,t.end):rn(e)},S.isCollapsedRange=function(e){return e.pos===e.end},S.createTokenRange=function(e,t){return en(e,e+S.tokenToString(t).length)},S.rangeIsOnSingleLine=function(e,t){return nn(e,e,t)},S.rangeStartPositionsAreOnSameLine=function(e,t,r){return N(A(e,r,!1),A(t,r,!1),r)},S.rangeEndPositionsAreOnSameLine=function(e,t,r){return N(e.end,t.end,r)},S.rangeStartIsOnSameLineAsRangeEnd=nn,S.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return N(e.end,A(t,r,!1),r)},S.getLinesBetweenRangeEndAndRangeStart=function(e,t,r,n){return t=A(t,r,n),S.getLinesBetweenPositions(r,e.end,t)},S.getLinesBetweenRangeEndPositions=function(e,t,r){return S.getLinesBetweenPositions(r,e.end,t.end)},S.isNodeArrayMultiLine=function(e,t){return!N(e.pos,e.end,t)},S.positionsAreOnSameLine=N,S.getStartPositionOfRange=A,S.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(e,t,r,n){return e=S.skipTrivia(r.text,e,!1,n),n=function(e,t,r){void 0===t&&(t=0);for(;e-- >t;)if(!S.isWhiteSpaceLike(r.text.charCodeAt(e)))return e}(e,t,r),S.getLinesBetweenPositions(r,null!=n?n:t,e)},S.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(e,t,r,n){return n=S.skipTrivia(r.text,e,!1,n),S.getLinesBetweenPositions(r,e,Math.min(t,n))},S.isDeclarationNameOfEnumOrNamespace=function(e){var t=S.getParseTreeNode(e);if(t)switch(t.parent.kind){case 263:case 264:return t===t.parent.name}return!1},S.getInitializedVariables=function(e){return S.filter(e.declarations,an)},S.isWatchSet=function(e){return e.watch&&S.hasProperty(e,"watch")},S.closeFileWatcher=function(e){e.close()},S.getCheckFlags=on,S.getDeclarationModifierFlagsFromSymbol=function(e,t){return void 0===t&&(t=!1),e.valueDeclaration?(t=t&&e.declarations&&S.find(e.declarations,S.isSetAccessorDeclaration)||32768&e.flags&&S.find(e.declarations,S.isGetAccessorDeclaration)||e.valueDeclaration,t=S.getCombinedModifierFlags(t),e.parent&&32&e.parent.flags?t:-29&t):6&on(e)?(1024&(t=e.checkFlags)?8:256&t?4:16)|(2048&t?32:0):4194304&e.flags?36:0},S.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},S.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},S.isWriteOnlyAccess=function(e){return 1===F(e)},S.isWriteAccess=function(e){return 0!==F(e)},S.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"==typeof t[n]){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},S.clearMap=function(e,t){e.forEach(t),e.clear()},S.mutateMapSkippingNewValues=sn,S.mutateMap=function(r,e,t){sn(r,e,t);var n=t.createNewValue;e.forEach(function(e,t){r.has(t)||r.set(t,n(t,e))})},S.isAbstractConstructorSymbol=function(e){return!!(32&e.flags)&&!!(e=cn(e))&&T(e,256)},S.getClassLikeDeclarationOfSymbol=cn,S.getObjectFlags=function(e){return 3899393&e.flags?e.objectFlags:0},S.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},S.forSomeAncestorDirectory=function(e,t){return!!S.forEachAncestorDirectory(e,function(e){return!!t(e)||void 0})},S.isUMDExportSymbol=function(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&S.isNamespaceExportDeclaration(e.declarations[0])},S.showModuleSpecifier=function(e){return e=e.moduleSpecifier,S.isStringLiteral(e)?e.text:G(e)},S.getLastChild=function(e){var r;return S.forEachChild(e,function(e){z(e)&&(r=e)},function(e){for(var t=e.length-1;0<=t;t--)if(z(e[t])){r=e[t];break}}),r},S.addToSeen=function(e,t,r){return void 0===r&&(r=!0),!e.has(t)&&(e.set(t,r),!0)},S.isObjectTypeDeclaration=function(e){return S.isClassLike(e)||S.isInterfaceDeclaration(e)||S.isTypeLiteralNode(e)},S.isTypeNodeKind=function(e){return 179<=e&&e<=202||131===e||157===e||148===e||160===e||149===e||134===e||152===e||153===e||114===e||155===e||144===e||230===e||315===e||316===e||317===e||318===e||319===e||320===e||321===e},S.isAccessExpression=P,S.getNameOfAccessExpression=function(e){return 208===e.kind?e.name:(S.Debug.assert(209===e.kind),e.argumentExpression)},S.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},S.isNamedImportsOrExports=function(e){return 272===e.kind||276===e.kind},S.getLeftmostAccessExpression=ln,S.forEachNameInAccessChainWalkingLeft=function(e,n){if(P(e.parent)&&Xr(e))return function e(t){if(208===t.kind){if(void 0!==(r=n(t.name)))return r}else if(209===t.kind){if(!S.isIdentifier(t.argumentExpression)&&!S.isStringLiteralLike(t.argumentExpression))return;var r;if(void 0!==(r=n(t.argumentExpression)))return r}if(P(t.expression))return e(t.expression);if(S.isIdentifier(t.expression))return n(t.expression);return}(e.parent)},S.getLeftmostExpression=function(e,t){for(;;){switch(e.kind){case 222:e=e.operand;continue;case 223:e=e.left;continue;case 224:e=e.condition;continue;case 212:e=e.tag;continue;case 210:if(t)return e;case 231:case 209:case 208:case 232:case 353:case 235:e=e.expression;continue}return e}},S.objectAllocator={getNodeConstructor:function(){return pn},getTokenConstructor:function(){return fn},getIdentifierConstructor:function(){return gn},getPrivateIdentifierConstructor:function(){return pn},getSourceFileConstructor:function(){return pn},getSymbolConstructor:function(){return un},getTypeConstructor:function(){return _n},getSignatureConstructor:function(){return dn},getSourceMapSourceConstructor:function(){return mn}},S.setObjectAllocator=function(e){Object.assign(S.objectAllocator,e)},S.formatStringFromArgs=w,S.setLocalizedDiagnosticMessages=function(e){$r=e},S.maybeSetLocalizedDiagnosticMessages=function(e){!$r&&e&&($r=e())},S.getLocaleSpecificMessage=I,S.createDetachedDiagnostic=function(e,t,r,n){_e(void 0,t,r);var i=I(n);return{file:void 0,start:t,length:r,messageText:i=4>>4)+(15&a?1:0)),s=i-1,c=0;2<=s;s--,c+=t){var l=c>>>4,u=e.charCodeAt(s),u=(u<=57?u-48:10+u-(u<=70?65:97))<<(15&c),u=(o[l]|=u,u>>>16);u&&(o[l+1]|=u)}for(var _="",d=o.length-1,p=!0;p;){for(var f=0,p=!1,l=d;0<=l;l--){var g=f<<16|o[l],m=g/10|0,f=g-10*(o[l]=m);m&&!p&&(d=l,p=!0)}_=f+_}return _},S.pseudoBigIntToString=function(e){var t=e.negative,e=e.base10Value;return(t&&"0"!==e?"-":"")+e},S.isValidTypeOnlyAliasUseSite=function(e){return!!(16777216&e.flags)||Je(e)||79===(t=e).kind&&(117===(null==(t=S.findAncestor(t.parent,function(e){switch(e.kind){case 294:return!0;case 208:case 230:return!1;default:return"quit"}}))?void 0:t.token)||261===(null==t?void 0:t.parent.kind))||function(e){for(;79===e.kind||208===e.kind;)e=e.parent;if(164!==e.kind)return!1;if(T(e.parent,256))return!0;var t=e.parent.parent.kind;return 261===t||184===t}(e)||!(Be(e)||(t=e,S.isIdentifier(t)&&S.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t));var t},S.isIdentifierTypeReference=function(e){return S.isTypeReferenceNode(e)&&S.isIdentifier(e.typeName)},S.arrayIsHomogeneous=function(e,t){if(void 0===t&&(t=S.equateValues),!(e.length<2))for(var r=e[0],n=1,i=e.length;n= 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 };'},d.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},d.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},d.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},d.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},d.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[d.awaitHelper],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},d.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[d.awaitHelper],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},d.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},d.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},d.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},d.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},d.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},d.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},d.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},d.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},d.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},d.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},d.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'},d.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[d.createBindingHelper,d.setModuleDefaultHelper],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},d.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},d.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[d.createBindingHelper],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},d.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},d.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},d.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},d.getAllUnscopedEmitHelpers=function(){return t=t||d.arrayToMap([d.decorateHelper,d.metadataHelper,d.paramHelper,d.assignHelper,d.awaitHelper,d.asyncGeneratorHelper,d.asyncDelegator,d.asyncValues,d.restHelper,d.awaiterHelper,d.extendsHelper,d.templateObjectHelper,d.spreadArrayHelper,d.valuesHelper,d.readHelper,d.generatorHelper,d.importStarHelper,d.importDefaultHelper,d.exportStarHelper,d.classPrivateFieldGetHelper,d.classPrivateFieldSetHelper,d.classPrivateFieldInHelper,d.createBindingHelper,d.setModuleDefaultHelper],function(e){return e.name})},d.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:e(__makeTemplateObject(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},d.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:e(__makeTemplateObject(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")},d.isCallToHelper=function(e,t){return d.isCallExpression(e)&&d.isIdentifier(e.expression)&&0!=(4096&d.getEmitFlags(e.expression))&&e.expression.escapedText===t}}(ts=ts||{}),!function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isDotDotDotToken=function(e){return 25===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isPlusToken=function(e){return 39===e.kind},e.isMinusToken=function(e){return 40===e.kind},e.isAsteriskToken=function(e){return 41===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isColonToken=function(e){return 58===e.kind},e.isQuestionDotToken=function(e){return 28===e.kind},e.isEqualsGreaterThanToken=function(e){return 38===e.kind},e.isIdentifier=function(e){return 79===e.kind},e.isPrivateIdentifier=function(e){return 80===e.kind},e.isExportModifier=function(e){return 93===e.kind},e.isAsyncModifier=function(e){return 132===e.kind},e.isAssertsKeyword=function(e){return 129===e.kind},e.isAwaitKeyword=function(e){return 133===e.kind},e.isReadonlyKeyword=function(e){return 146===e.kind},e.isStaticModifier=function(e){return 124===e.kind},e.isAbstractModifier=function(e){return 126===e.kind},e.isOverrideModifier=function(e){return 161===e.kind},e.isAccessorModifier=function(e){return 127===e.kind},e.isSuperKeyword=function(e){return 106===e.kind},e.isImportKeyword=function(e){return 100===e.kind},e.isQualifiedName=function(e){return 163===e.kind},e.isComputedPropertyName=function(e){return 164===e.kind},e.isTypeParameterDeclaration=function(e){return 165===e.kind},e.isParameter=function(e){return 166===e.kind},e.isDecorator=function(e){return 167===e.kind},e.isPropertySignature=function(e){return 168===e.kind},e.isPropertyDeclaration=function(e){return 169===e.kind},e.isMethodSignature=function(e){return 170===e.kind},e.isMethodDeclaration=function(e){return 171===e.kind},e.isClassStaticBlockDeclaration=function(e){return 172===e.kind},e.isConstructorDeclaration=function(e){return 173===e.kind},e.isGetAccessorDeclaration=function(e){return 174===e.kind},e.isSetAccessorDeclaration=function(e){return 175===e.kind},e.isCallSignatureDeclaration=function(e){return 176===e.kind},e.isConstructSignatureDeclaration=function(e){return 177===e.kind},e.isIndexSignatureDeclaration=function(e){return 178===e.kind},e.isTypePredicateNode=function(e){return 179===e.kind},e.isTypeReferenceNode=function(e){return 180===e.kind},e.isFunctionTypeNode=function(e){return 181===e.kind},e.isConstructorTypeNode=function(e){return 182===e.kind},e.isTypeQueryNode=function(e){return 183===e.kind},e.isTypeLiteralNode=function(e){return 184===e.kind},e.isArrayTypeNode=function(e){return 185===e.kind},e.isTupleTypeNode=function(e){return 186===e.kind},e.isNamedTupleMember=function(e){return 199===e.kind},e.isOptionalTypeNode=function(e){return 187===e.kind},e.isRestTypeNode=function(e){return 188===e.kind},e.isUnionTypeNode=function(e){return 189===e.kind},e.isIntersectionTypeNode=function(e){return 190===e.kind},e.isConditionalTypeNode=function(e){return 191===e.kind},e.isInferTypeNode=function(e){return 192===e.kind},e.isParenthesizedTypeNode=function(e){return 193===e.kind},e.isThisTypeNode=function(e){return 194===e.kind},e.isTypeOperatorNode=function(e){return 195===e.kind},e.isIndexedAccessTypeNode=function(e){return 196===e.kind},e.isMappedTypeNode=function(e){return 197===e.kind},e.isLiteralTypeNode=function(e){return 198===e.kind},e.isImportTypeNode=function(e){return 202===e.kind},e.isTemplateLiteralTypeSpan=function(e){return 201===e.kind},e.isTemplateLiteralTypeNode=function(e){return 200===e.kind},e.isObjectBindingPattern=function(e){return 203===e.kind},e.isArrayBindingPattern=function(e){return 204===e.kind},e.isBindingElement=function(e){return 205===e.kind},e.isArrayLiteralExpression=function(e){return 206===e.kind},e.isObjectLiteralExpression=function(e){return 207===e.kind},e.isPropertyAccessExpression=function(e){return 208===e.kind},e.isElementAccessExpression=function(e){return 209===e.kind},e.isCallExpression=function(e){return 210===e.kind},e.isNewExpression=function(e){return 211===e.kind},e.isTaggedTemplateExpression=function(e){return 212===e.kind},e.isTypeAssertionExpression=function(e){return 213===e.kind},e.isParenthesizedExpression=function(e){return 214===e.kind},e.isFunctionExpression=function(e){return 215===e.kind},e.isArrowFunction=function(e){return 216===e.kind},e.isDeleteExpression=function(e){return 217===e.kind},e.isTypeOfExpression=function(e){return 218===e.kind},e.isVoidExpression=function(e){return 219===e.kind},e.isAwaitExpression=function(e){return 220===e.kind},e.isPrefixUnaryExpression=function(e){return 221===e.kind},e.isPostfixUnaryExpression=function(e){return 222===e.kind},e.isBinaryExpression=function(e){return 223===e.kind},e.isConditionalExpression=function(e){return 224===e.kind},e.isTemplateExpression=function(e){return 225===e.kind},e.isYieldExpression=function(e){return 226===e.kind},e.isSpreadElement=function(e){return 227===e.kind},e.isClassExpression=function(e){return 228===e.kind},e.isOmittedExpression=function(e){return 229===e.kind},e.isExpressionWithTypeArguments=function(e){return 230===e.kind},e.isAsExpression=function(e){return 231===e.kind},e.isSatisfiesExpression=function(e){return 235===e.kind},e.isNonNullExpression=function(e){return 232===e.kind},e.isMetaProperty=function(e){return 233===e.kind},e.isSyntheticExpression=function(e){return 234===e.kind},e.isPartiallyEmittedExpression=function(e){return 353===e.kind},e.isCommaListExpression=function(e){return 354===e.kind},e.isTemplateSpan=function(e){return 236===e.kind},e.isSemicolonClassElement=function(e){return 237===e.kind},e.isBlock=function(e){return 238===e.kind},e.isVariableStatement=function(e){return 240===e.kind},e.isEmptyStatement=function(e){return 239===e.kind},e.isExpressionStatement=function(e){return 241===e.kind},e.isIfStatement=function(e){return 242===e.kind},e.isDoStatement=function(e){return 243===e.kind},e.isWhileStatement=function(e){return 244===e.kind},e.isForStatement=function(e){return 245===e.kind},e.isForInStatement=function(e){return 246===e.kind},e.isForOfStatement=function(e){return 247===e.kind},e.isContinueStatement=function(e){return 248===e.kind},e.isBreakStatement=function(e){return 249===e.kind},e.isReturnStatement=function(e){return 250===e.kind},e.isWithStatement=function(e){return 251===e.kind},e.isSwitchStatement=function(e){return 252===e.kind},e.isLabeledStatement=function(e){return 253===e.kind},e.isThrowStatement=function(e){return 254===e.kind},e.isTryStatement=function(e){return 255===e.kind},e.isDebuggerStatement=function(e){return 256===e.kind},e.isVariableDeclaration=function(e){return 257===e.kind},e.isVariableDeclarationList=function(e){return 258===e.kind},e.isFunctionDeclaration=function(e){return 259===e.kind},e.isClassDeclaration=function(e){return 260===e.kind},e.isInterfaceDeclaration=function(e){return 261===e.kind},e.isTypeAliasDeclaration=function(e){return 262===e.kind},e.isEnumDeclaration=function(e){return 263===e.kind},e.isModuleDeclaration=function(e){return 264===e.kind},e.isModuleBlock=function(e){return 265===e.kind},e.isCaseBlock=function(e){return 266===e.kind},e.isNamespaceExportDeclaration=function(e){return 267===e.kind},e.isImportEqualsDeclaration=function(e){return 268===e.kind},e.isImportDeclaration=function(e){return 269===e.kind},e.isImportClause=function(e){return 270===e.kind},e.isImportTypeAssertionContainer=function(e){return 298===e.kind},e.isAssertClause=function(e){return 296===e.kind},e.isAssertEntry=function(e){return 297===e.kind},e.isNamespaceImport=function(e){return 271===e.kind},e.isNamespaceExport=function(e){return 277===e.kind},e.isNamedImports=function(e){return 272===e.kind},e.isImportSpecifier=function(e){return 273===e.kind},e.isExportAssignment=function(e){return 274===e.kind},e.isExportDeclaration=function(e){return 275===e.kind},e.isNamedExports=function(e){return 276===e.kind},e.isExportSpecifier=function(e){return 278===e.kind},e.isMissingDeclaration=function(e){return 279===e.kind},e.isNotEmittedStatement=function(e){return 352===e.kind},e.isSyntheticReference=function(e){return 357===e.kind},e.isMergeDeclarationMarker=function(e){return 355===e.kind},e.isEndOfDeclarationMarker=function(e){return 356===e.kind},e.isExternalModuleReference=function(e){return 280===e.kind},e.isJsxElement=function(e){return 281===e.kind},e.isJsxSelfClosingElement=function(e){return 282===e.kind},e.isJsxOpeningElement=function(e){return 283===e.kind},e.isJsxClosingElement=function(e){return 284===e.kind},e.isJsxFragment=function(e){return 285===e.kind},e.isJsxOpeningFragment=function(e){return 286===e.kind},e.isJsxClosingFragment=function(e){return 287===e.kind},e.isJsxAttribute=function(e){return 288===e.kind},e.isJsxAttributes=function(e){return 289===e.kind},e.isJsxSpreadAttribute=function(e){return 290===e.kind},e.isJsxExpression=function(e){return 291===e.kind},e.isCaseClause=function(e){return 292===e.kind},e.isDefaultClause=function(e){return 293===e.kind},e.isHeritageClause=function(e){return 294===e.kind},e.isCatchClause=function(e){return 295===e.kind},e.isPropertyAssignment=function(e){return 299===e.kind},e.isShorthandPropertyAssignment=function(e){return 300===e.kind},e.isSpreadAssignment=function(e){return 301===e.kind},e.isEnumMember=function(e){return 302===e.kind},e.isUnparsedPrepend=function(e){return 304===e.kind},e.isSourceFile=function(e){return 308===e.kind},e.isBundle=function(e){return 309===e.kind},e.isUnparsedSource=function(e){return 310===e.kind},e.isJSDocTypeExpression=function(e){return 312===e.kind},e.isJSDocNameReference=function(e){return 313===e.kind},e.isJSDocMemberName=function(e){return 314===e.kind},e.isJSDocLink=function(e){return 327===e.kind},e.isJSDocLinkCode=function(e){return 328===e.kind},e.isJSDocLinkPlain=function(e){return 329===e.kind},e.isJSDocAllType=function(e){return 315===e.kind},e.isJSDocUnknownType=function(e){return 316===e.kind},e.isJSDocNullableType=function(e){return 317===e.kind},e.isJSDocNonNullableType=function(e){return 318===e.kind},e.isJSDocOptionalType=function(e){return 319===e.kind},e.isJSDocFunctionType=function(e){return 320===e.kind},e.isJSDocVariadicType=function(e){return 321===e.kind},e.isJSDocNamepathType=function(e){return 322===e.kind},e.isJSDoc=function(e){return 323===e.kind},e.isJSDocTypeLiteral=function(e){return 325===e.kind},e.isJSDocSignature=function(e){return 326===e.kind},e.isJSDocAugmentsTag=function(e){return 331===e.kind},e.isJSDocAuthorTag=function(e){return 333===e.kind},e.isJSDocClassTag=function(e){return 335===e.kind},e.isJSDocCallbackTag=function(e){return 341===e.kind},e.isJSDocPublicTag=function(e){return 336===e.kind},e.isJSDocPrivateTag=function(e){return 337===e.kind},e.isJSDocProtectedTag=function(e){return 338===e.kind},e.isJSDocReadonlyTag=function(e){return 339===e.kind},e.isJSDocOverrideTag=function(e){return 340===e.kind},e.isJSDocDeprecatedTag=function(e){return 334===e.kind},e.isJSDocSeeTag=function(e){return 349===e.kind},e.isJSDocEnumTag=function(e){return 342===e.kind},e.isJSDocParameterTag=function(e){return 343===e.kind},e.isJSDocReturnTag=function(e){return 344===e.kind},e.isJSDocThisTag=function(e){return 345===e.kind},e.isJSDocTypeTag=function(e){return 346===e.kind},e.isJSDocTemplateTag=function(e){return 347===e.kind},e.isJSDocTypedefTag=function(e){return 348===e.kind},e.isJSDocUnknownTag=function(e){return 330===e.kind},e.isJSDocPropertyTag=function(e){return 350===e.kind},e.isJSDocImplementsTag=function(e){return 332===e.kind},e.isSyntaxList=function(e){return 351===e.kind}}(ts=ts||{}),!function(f){function _(e,t,r,n){return f.isComputedPropertyName(r)?f.setTextRange(e.createElementAccessExpression(t,r.expression),n):(n=f.setTextRange(f.isMemberName(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r),f.getOrCreateEmitNode(n).flags|=64,n)}function g(e,t){e=f.parseNodeFactory.createIdentifier(e||"React");return f.setParent(e,f.getParseTreeNode(t)),e}function m(e,t,r){var n,i;return f.isQualifiedName(t)?(n=m(e,t.left,r),(i=e.createIdentifier(f.idText(t.right))).escapedText=t.right.escapedText,e.createPropertyAccessExpression(n,i)):g(f.idText(t),r)}function y(e,t,r,n){return t?m(e,t,n):e.createPropertyAccessExpression(g(r,n),"createElement")}function d(e,t){return f.isIdentifier(t)?e.createStringLiteralFromNode(t):f.isComputedPropertyName(t)?f.setParent(f.setTextRange(e.cloneNode(t.expression),t.expression),t.expression.parent):f.setParent(f.setTextRange(e.cloneNode(t),t),t.parent)}function i(e){return f.isStringLiteral(e.expression)&&"use strict"===e.expression.text}function r(e){return f.isParenthesizedExpression(e)&&f.isInJSFile(e)&&!!f.getJSDocTypeTag(e)}function n(e,t){switch(void 0===t&&(t=15),e.kind){case 214:return 16&t&&r(e)?!1:0!=(1&t);case 213:case 231:case 235:return 0!=(2&t);case 232:return 0!=(4&t);case 353:return 0!=(8&t)}return!1}function t(e,t){for(void 0===t&&(t=15);n(e,t);)e=e.expression;return e}function h(e){return f.setStartsOnNewLine(e,!0)}function l(e){e=f.getOriginalNode(e,f.isSourceFile),e=e&&e.emitNode;return e&&e.externalHelpersModuleName}function p(e,t,r,n,i){if(r.importHelpers&&f.isEffectiveExternalModule(t,r)){var a=l(t);if(a)return a;var a=f.getEmitModuleKind(r),o=(n||f.getESModuleInterop(r)&&i)&&a!==f.ModuleKind.System&&(a=f.ModuleKind.ES2015&&c<=f.ModuleKind.ESNext||n.impliedNodeFormat===f.ModuleKind.ESNext){c=f.getEmitHelpers(n);if(c){for(var l=[],u=0,_=c;u<_.length;u++){var d=_[u];d.scoped||(d=d.importName)&&f.pushIfUnique(l,d)}f.some(l)&&(l.sort(f.compareStringsCaseSensitive),s=t.createNamedImports(f.map(l,function(e){return f.isFileLevelUniqueName(n,e)?t.createImportSpecifier(!1,void 0,t.createIdentifier(e)):t.createImportSpecifier(!1,t.createIdentifier(e),r.getUnscopedHelperName(e))})),c=f.getOriginalNode(n,f.isSourceFile),f.getOrCreateEmitNode(c).externalHelpers=!0)}}else{c=p(t,n,e,i,a||o);c&&(s=t.createNamespaceImport(c))}if(s)return e=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,s),t.createStringLiteral(f.externalHelpersModuleNameText),void 0),f.addEmitFlags(e,67108864),e}},f.getOrCreateExternalHelpersModuleNameIfNeeded=p,f.getLocalNameForExternalImport=function(e,t,r){var n=f.getNamespaceDeclarationNode(t);return!n||f.isDefaultImport(t)||f.isExportNamespaceAsDefaultDeclaration(t)?269===t.kind&&t.importClause||275===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0:(t=n.name,f.isGeneratedIdentifier(t)?t:e.createIdentifier(f.getSourceTextOfNodeFromSourceFile(r,t)||f.idText(t)))},f.getExternalModuleNameLiteral=function(e,t,r,n,i,a){var o=f.getExternalModuleName(t);if(o&&f.isStringLiteral(o))return n=n,a=a,s(e,i.getExternalModuleFileFromDeclaration(t),n,a)||function(e,t,r){r=r.renamedDependencies&&r.renamedDependencies.get(t.text);return r?e.createStringLiteral(r):void 0}(e,o,r)||e.cloneNode(o)},f.tryGetModuleNameFromFile=s,f.getInitializerOfBindingOrAssignmentElement=function e(t){var r;return f.isDeclarationBindingElement(t)?t.initializer:f.isPropertyAssignment(t)?(r=t.initializer,f.isAssignmentExpression(r,!0)?r.right:void 0):f.isShorthandPropertyAssignment(t)?t.objectAssignmentInitializer:f.isAssignmentExpression(t,!0)?t.right:f.isSpreadElement(t)?e(t.expression):void 0},f.getTargetOfBindingOrAssignmentElement=a,f.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 166:case 205:return e.dotDotDotToken;case 227:case 301:return e}},f.getPropertyNameOfBindingOrAssignmentElement=function(e){var t=o(e);return f.Debug.assert(!!t||f.isSpreadAssignment(e),"Invalid property name for binding element."),t},f.tryGetPropertyNameOfBindingOrAssignmentElement=o,f.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 203:case 204:case 206:return e.elements;case 207:return e.properties}},f.getJSDocTypeAliasName=function(e){if(e)for(var t=e;;){if(f.isIdentifier(t)||!t.body)return f.isIdentifier(t)?t:t.name;t=t.body}},f.canHaveIllegalType=function(e){return 173===(e=e.kind)||175===e},f.canHaveIllegalTypeParameters=function(e){return 173===(e=e.kind)||174===e||175===e},f.canHaveIllegalDecorators=function(e){return 299===(e=e.kind)||300===e||259===e||173===e||178===e||172===e||279===e||240===e||261===e||262===e||263===e||264===e||268===e||269===e||267===e||275===e||274===e},f.canHaveIllegalModifiers=function(e){return 172===(e=e.kind)||299===e||300===e||181===e||279===e||267===e},f.isTypeNodeOrTypeParameterDeclaration=f.or(f.isTypeNode,f.isTypeParameterDeclaration),f.isQuestionOrExclamationToken=f.or(f.isQuestionToken,f.isExclamationToken),f.isIdentifierOrThisTypeNode=f.or(f.isIdentifier,f.isThisTypeNode),f.isReadonlyKeywordOrPlusOrMinusToken=f.or(f.isReadonlyKeyword,f.isPlusToken,f.isMinusToken),f.isQuestionOrPlusOrMinusToken=f.or(f.isQuestionToken,f.isPlusToken,f.isMinusToken),f.isModuleName=f.or(f.isIdentifier,f.isStringLiteral),f.isLiteralTypeLikeExpression=function(e){var t=e.kind;return 104===t||110===t||95===t||f.isLiteralExpression(e)||f.isPrefixUnaryExpression(e)},f.isBinaryOperatorToken=function(e){return u(e.kind)},(e=v=v||{}).enter=b,e.left=x,e.operator=D,e.right=S,e.exit=T,e.done=C,e.nextState=E;var A=function(e,t,r,n,i,a){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=n,this.onExit=i,this.foldState=a};function F(e,t){return"object"==typeof e?w(!1,e.prefix,e.node,e.suffix,t):"string"==typeof e?0=t.pos})),r=0<=e?G.findIndex(o,function(e){return e.start>=n.pos},e):-1;0<=e&&G.addRange(d,o,e,0<=r?r:void 0),yt(function(){var e=p;for(p|=32768,Q.setTextPos(n.pos),te();1!==X;){var t=Q.getStartPos(),r=$t(0,C);if(a.push(r),t===Q.getStartPos()&&te(),0<=s){t=i.statements[s];if(r.end===t.pos)break;r.end>t.pos&&(s=_(i.statements,s+1))}}p=e},2),c=0<=s?u(i.statements,s):-1}();return 0<=s&&(t=i.statements[s],G.addRange(a,i.statements,s),0<=(e=G.findIndex(o,function(e){return e.start>=t.pos})))&&G.addRange(d,o,e),w=r,Y.updateSourceFile(i,G.setTextRange(Y.createNodeArray(a),i.statements));function l(e){return!(32768&e.flags)&&67108864&e.transformFlags}function u(e,t){for(var r=t;rn.length+2&&G.startsWith(e,n))return"".concat(n," ").concat(e.slice(n.length))}return}(t);n?V(r,e.end,G.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,n):0!==X&&V(r,e.end,G.Diagnostics.Unexpected_keyword_or_identifier)}else K(G.Diagnostics._0_expected,G.tokenToString(26))}}function bt(e,t,r){X===r?K(t):K(e,Q.getTokenValue())}function xt(e){X===e?q():K(G.Diagnostics._0_expected,G.tokenToString(e))}function Dt(e,t,r,n){var i;X===t?te():(i=K(G.Diagnostics._0_expected,G.tokenToString(t)),r&&i&&G.addRelatedInfo(i,G.createDetachedDiagnostic(pe,n,1,G.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,G.tokenToString(e),G.tokenToString(t))))}function oe(e){return X===e&&(te(),!0)}function T(e){if(X===e)return _()}function St(e){if(X===e)return e=ee(),t=X,q(),se(Y.createToken(t),e);var t}function Tt(e,t,r){return T(e)||Nt(e,!1,t||G.Diagnostics._0_expected,r||G.tokenToString(e))}function _(){var e=ee(),t=X;return te(),se(Y.createToken(t),e)}function Ct(){return 26===X||19===X||1===X||Q.hasPrecedingLineBreak()}function Et(){return!!Ct()&&(26===X&&te(),!0)}function kt(){Et()||ae(26)}function W(e,t,r,n){e=Y.createNodeArray(e,n);return G.setTextRangePosEnd(e,t,null!=r?r:Q.getStartPos()),e}function se(e,t,r){return G.setTextRangePosEnd(e,t,null!=r?r:Q.getStartPos()),p&&(e.flags|=p),B&&(B=!1,e.flags|=131072),e}function Nt(e,t,r,n){t?ot(Q.getStartPos(),0,r,n):r&&K(r,n);t=ee();return se(79===e?Y.createIdentifier("",void 0,void 0):G.isTemplateLiteralKind(e)?Y.createTemplateLiteralLikeNode(e,"","",void 0):8===e?Y.createNumericLiteral("",void 0):10===e?Y.createStringLiteral("",void 0):279===e?Y.createMissingDeclaration():Y.createToken(e),t)}function At(e){var t=O.get(e);return void 0===t&&O.set(e,t=e),t}function Ft(e,t,r){if(e)return fe++,e=ee(),i=X,n=At(Q.getTokenValue()),a=Q.hasExtendedUnicodeEscape(),lt(),se(Y.createIdentifier(n,void 0,i,a),e);if(80===X)return K(r||G.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ft(!0);if(0===X&&Q.tryScan(function(){return 79===Q.reScanInvalidIdentifier()}))return Ft(!0);fe++;var n=1===X,i=Q.isReservedWord(),a=Q.getTokenText(),e=i?G.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:G.Diagnostics.Identifier_expected;return Nt(79,n,t||e,a)}function Pt(e){return Ft(ht(),void 0,e)}function ce(e,t){return Ft(ie(),e,t)}function le(e){return Ft(G.tokenIsIdentifierOrKeyword(X),e)}function wt(){return G.tokenIsIdentifierOrKeyword(X)||10===X||8===X}function It(e){var t;return 10===X||8===X?((t=dr()).text=At(t.text),t):e&&22===X?(t=ee(),ae(22),e=x(H),ae(23),se(Y.createComputedPropertyName(e),t)):(80===X?Mt:le)()}function Ot(){return It(!0)}function Mt(){var e,t=ee(),r=Y.createPrivateIdentifier((r=Q.getTokenValue(),void 0===(e=M.get(r))&&M.set(r,e=r),e));return te(),se(r,t)}function Lt(e){return X===e&&ne(Bt)}function Rt(){return te(),!Q.hasPrecedingLineBreak()&&zt()}function Bt(){switch(X){case 85:return 92===te();case 93:return te(),88===X?re(Ut):154===X?re(Jt):jt();case 88:return Ut();case 127:case 124:case 137:case 151:return te(),zt();default:return Rt()}}function jt(){return 41!==X&&128!==X&&18!==X&&zt()}function Jt(){return te(),jt()}function zt(){return 22===X||18===X||41===X||25===X||wt()}function Ut(){return te(),84===X||98===X||118===X||126===X&&re(ui)||132===X&&re(_i)}function Kt(e,t){if(er(e))return 1;switch(e){case 0:case 1:case 3:return(26!==X||!t)&&gi();case 2:return 82===X||88===X;case 4:return re(Or);case 5:return re(Li)||26===X&&!t;case 6:return 22===X||wt();case 12:switch(X){case 22:case 41:case 25:case 24:return 1;default:return wt()}case 18:return wt();case 9:return 22===X||25===X||wt();case 24:return G.tokenIsIdentifierOrKeyword(X)||10===X;case 7:return 18===X?re(Vt):t?ie()&&!Gt():gn()&&!Gt();case 8:return Si();case 10:return 27===X||25===X||Si();case 19:return 101===X||ie();case 15:switch(X){case 27:case 24:return 1}case 11:return 25===X||mn();case 16:return Sr(!1);case 17:return Sr(!0);case 20:case 21:return 27===X||$r();case 22:return Zi();case 23:return G.tokenIsIdentifierOrKeyword(X);case 13:return G.tokenIsIdentifierOrKeyword(X)||18===X;case 14:return 1}return G.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Vt(){var e;return G.Debug.assert(18===X),19!==te()||27===(e=te())||18===e||94===e||117===e}function qt(){return te(),ie()}function Wt(){return te(),G.tokenIsIdentifierOrKeyword(X)}function Ht(){return te(),G.tokenIsIdentifierOrKeywordOrGreaterThan(X)}function Gt(){return(117===X||94===X)&&re(Qt)}function Qt(){return te(),mn()}function Xt(){return te(),$r()}function Yt(e){if(1===X)return 1;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 19===X;case 3:return 19===X||82===X||88===X;case 7:return 18===X||94===X||117===X;case 8:return Ct()?1:Tn(X)||38===X;case 19:return 31===X||20===X||18===X||94===X||117===X;case 11:return 21===X||26===X;case 15:case 21:case 10:return 23===X;case 17:case 16:case 18:return 21===X||23===X;case 20:return 27!==X;case 22:return 18===X||19===X;case 13:return 31===X||43===X;case 14:return 29===X&&re(ia);default:return}}function Zt(e,t){for(var r=l,n=(l|=1<");var i=Y.createParameterDeclaration(void 0,void 0,t,void 0,void 0,void 0),t=(se(i,t.pos),W([i],i.pos,i.end)),i=Tt(38),r=Dn(!!n,r);return ze(se(Y.createArrowFunction(n,void 0,t,void 0,i,r),e))}function vn(){if(132===X){if(te(),Q.hasPrecedingLineBreak())return 0;if(20!==X&&29!==X)return 0}var e=X,t=te();if(20!==e)return G.Debug.assert(29===e),ie()?1===F?re(function(){var e=te();if(94===e)switch(te()){case 63:case 31:return!1;default:return!0}else if(27===e||63===e)return!0;return!1})?1:0:2:0;if(21===t)switch(te()){case 38:case 58:case 18:return 1;default:return 0}if(22===t||18===t)return 2;if(25===t)return 1;if(G.isModifierKind(t)&&132!==t&&re(qt))return 128===te()?0:1;if(ie()||108===t)switch(te()){case 58:return 1;case 57:return te(),58===X||27===X||63===X||21===X?1:0;case 27:case 63:case 21:return 2}return 0}function bn(){if(132===X){if(te(),Q.hasPrecedingLineBreak()||38===X)return 0;var e=Sn(0);if(!Q.hasPrecedingLineBreak()&&79===e.kind&&38===X)return 1}return 0}function xn(e,t){var r,n=ee(),i=D(),a=Vi(),o=G.some(a,G.isAsyncModifier)?2:0,s=Dr();if(ae(20)){if(e)r=kr(o,e);else{o=kr(o,e);if(!o)return;r=o}if(!ae(21)&&!e)return}else{if(!e)return;r=ir()}var o=58===X,c=Er(58,!1);if(!c||e||!function e(t){switch(t.kind){case 180:return G.nodeIsMissing(t.typeName);case 181:case 182:var r=t.parameters,n=t.type;return!!r.isMissingList||e(n);case 193:return e(t.type);default:return!1}}(c)){for(var l=c;193===(null==l?void 0:l.kind);)l=l.type;var u=l&&G.isJSDocFunctionType(l);if(e||38===X||!u&&18===X){e=X,u=Tt(38),e=38===e||18===e?Dn(G.some(a,G.isAsyncModifier),t):ce();if(t||!o||58===X)return Z(se(Y.createArrowFunction(a,s,r,c,u,e),n),i)}}}function Dn(e,t){var r,n;return 18===X?ni(e?2:0):26===X||98===X||84===X||!gi()||18!==X&&98!==X&&84!==X&&59!==X&&mn()?(r=R,R=!1,n=(e?Ze:$e)(function(){return _e(t)}),R=r,n):ni(16|(e?2:0))}function Sn(e){var t=ee();return Cn(e,An(),t)}function Tn(e){return 101===e||162===e}function Cn(e,t,r){for(;;){_t();var n=G.getBinaryOperatorPrecedence(X);if(!(42===X?e<=n:et&&p.push(a.slice(t-r)),r+=a.length;break;case 1:break e;case 18:var e=2,a=Q.getStartPos(),o=b(Q.getTextPos()-1);if(o){_||y(p),f.push(se(Y.createJSDocText(p.join("")),null!=_?_:c,a)),f.push(o),p=[],_=Q.getTextPos();break}default:e=2,n(Q.getTokenText())}q()}h(p),f.length&&p.length&&f.push(se(Y.createJSDocText(p.join("")),null!=_?_:c,d)),f.length&&C&&G.Debug.assertIsDefined(d,"having parsed tags implies that the end of the comment span should be set");var s=C&&W(C,l,u);return se(Y.createJSDocComment(f.length?W(f,c,d):p.length?p.join(""):void 0,s),c,m)});function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function h(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function n(){for(;;){if(q(),1===X)return!0;if(5!==X&&4!==X)return!1}}function E(){if(5!==X&&4!==X||!re(n))for(;5===X||4===X;)q()}function k(){if((5===X||4===X)&&re(n))return"";for(var e=Q.hasPrecedingLineBreak(),t=!1,r="";e&&41===X||5===X||4===X;)r+=Q.getTokenText(),4===X?(t=e=!0,r=""):41===X&&(e=!1),q();return t?r:""}function N(e){G.Debug.assert(59===X);var t,r,n,i,a,o,s,c,l,u,_,d,p,f,g,m,y,h,v,b,x,D=Q.getTokenPos(),S=(q(),z(void 0)),T=k();switch(S.escapedText){case"author":t=function(e,t,r,n){var i=ee(),a=function(){var e=[],t=!1,r=Q.getToken();for(;1!==r&&4!==r;){if(29===r)t=!0;else{if(59===r&&!t)break;if(31===r&&t){e.push(Q.getTokenText()),Q.setTextPos(Q.getTokenPos()+1);break}}e.push(Q.getTokenText()),r=q()}return Y.createJSDocText(e.join(""))}(),o=Q.getStartPos(),r=A(e,o,r,n);r||(o=Q.getStartPos());n="string"!=typeof r?W(G.concatenate([se(a,i,o)],r),i):a.text+r;return se(Y.createJSDocAuthorTag(t,n),e)}(D,S,e,T);break;case"implements":y=D,h=S,v=e,b=T,x=L(),t=se(Y.createJSDocImplementsTag(h,x,A(y,ee(),v,b)),y);break;case"augments":case"extends":h=D,x=S,v=e,b=T,y=L(),t=se(Y.createJSDocAugmentsTag(x,y,A(h,ee(),v,b)),h);break;case"class":case"constructor":t=R(D,Y.createJSDocClassTag,S,e,T);break;case"public":t=R(D,Y.createJSDocPublicTag,S,e,T);break;case"private":t=R(D,Y.createJSDocPrivateTag,S,e,T);break;case"protected":t=R(D,Y.createJSDocProtectedTag,S,e,T);break;case"readonly":t=R(D,Y.createJSDocReadonlyTag,S,e,T);break;case"override":t=R(D,Y.createJSDocOverrideTag,S,e,T);break;case"deprecated":ge=!0,t=R(D,Y.createJSDocDeprecatedTag,S,e,T);break;case"this":d=D,p=S,f=e,g=T,m=da(!0),E(),t=se(Y.createJSDocThisTag(p,m,A(d,ee(),f,g)),d);break;case"enum":p=D,m=S,f=e,g=T,d=da(!0),E(),t=se(Y.createJSDocEnumTag(m,d,A(p,ee(),f,g)),p);break;case"arg":case"argument":case"param":return O(D,S,2,e);case"return":case"returns":s=D,c=S,l=e,u=T,G.some(C,G.isJSDocReturnTag)&&V(c.pos,Q.getTokenPos(),G.Diagnostics._0_tag_already_specified,c.escapedText),_=w(),t=se(Y.createJSDocReturnTag(c,_,A(s,ee(),l,u)),s);break;case"template":c=D,_=S,l=e,u=T,s=18===X?da():void 0,o=function(){var e=ee(),t=[];do{E();var r=function(){var e=ee(),t=J(22);t&&E();var r,n=z(G.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);t&&(E(),ae(63),r=U(8388608,br),ae(23));if(G.nodeIsMissing(n))return;return se(Y.createTypeParameterDeclaration(void 0,n,void 0,r),e)}()}while(void 0!==r&&t.push(r),k(),J(27));return W(t,e)}(),t=se(Y.createJSDocTemplateTag(_,s,o,A(c,ee(),l,u)),c);break;case"type":t=M(D,S,e,T);break;case"typedef":t=function(e,t,r,n){var i,a=w(),o=(k(),B()),s=(E(),F(r));if(!a||I(a.type)){for(var c,l=void 0,u=void 0,_=void 0,d=!1;l=ne(function(){return j(1,r)});)if(d=!0,346===l.kind){if(u){var p=K(G.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);p&&G.addRelatedInfo(p,G.createDetachedDiagnostic(pe,0,0,G.Diagnostics.The_tag_was_first_specified_here));break}u=l}else _=G.append(_,l);d&&(c=a&&185===a.type.kind,c=Y.createJSDocTypeLiteral(_,c),a=u&&u.typeExpression&&!I(u.typeExpression.type)?u.typeExpression:se(c,e),c=a.end)}c=c||void 0!==s?ee():(null!=(i=null!=o?o:a)?i:t).end,s=s||A(e,c,r,n);return se(Y.createJSDocTypedefTag(t,a,o,s),e,c)}(D,S,e,T);break;case"callback":t=function(e,t,r,n){var i=B(),a=(E(),F(r)),o=function(e){var t,r,n=ee();for(;t=ne(function(){return j(4,e)});)r=G.append(r,t);return W(r||[],n)}(r),s=ne(function(){if(J(59)){var e=N(r);if(e&&344===e.kind)return e}}),o=se(Y.createJSDocSignature(void 0,o,s),e);a=a||A(e,ee(),r,n);s=void 0!==a?ee():o.end;return se(Y.createJSDocCallbackTag(t,o,i,a),e,s)}(D,S,e,T);break;case"see":o=D,r=S,n=e,i=T,a=22===X||re(function(){return 59===q()&&G.tokenIsIdentifierOrKeyword(q())&&P(Q.getTokenValue())})?void 0:pa(),n=void 0!==n&&void 0!==i?A(o,ee(),n,i):void 0,t=se(Y.createJSDocSeeTag(r,a,n),o);break;default:i=D,r=e,a=T,t=se(Y.createJSDocUnknownTag(S,A(i,ee(),r,a)),i)}return t}function A(e,t,r,n){return n||(r+=t-e),F(r,n.slice(r))}function F(t,e){var r,n,i=ee(),a=[],o=[],s=0,c=!0;function l(e){n=n||t,a.push(e),t+=e.length}void 0!==e&&(""!==e&&l(e),s=1);var u=X;e:for(;;){switch(u){case 4:s=0,a.push(Q.getTokenText()),t=0;break;case 59:if(3===s||2===s&&(!c||re(v))){a.push(Q.getTokenText());break}Q.setTextPos(Q.getTextPos()-1);case 1:break e;case 5:2===s||3===s?l(Q.getTokenText()):(_=Q.getTokenText(),void 0!==n&&t+_.length>n&&a.push(_.slice(n-t)),t+=_.length);break;case 18:var s=2,_=Q.getStartPos(),d=b(Q.getTextPos()-1);d?(o.push(se(Y.createJSDocText(a.join("")),null!=r?r:i,_)),o.push(d),a=[],r=Q.getTextPos()):l(Q.getTokenText());break;case 61:s=3===s?2:3,l(Q.getTokenText());break;case 41:if(0===s){t+=s=1;break}default:3!==s&&(s=2),l(Q.getTokenText())}c=5===X,u=q()}return y(a),h(a),o.length?(a.length&&o.push(se(Y.createJSDocText(a.join("")),null!=r?r:i)),W(o,i,Q.getTextPos())):a.length?a.join(""):void 0}function v(){var e=q();return 5===e||4===e}function b(e){var t=ne(x);if(t){q(),E();var r=ee(),n=G.tokenIsIdentifierOrKeyword(X)?or(!0):void 0;if(n)for(;80===X;)ft(),q(),n=se(Y.createJSDocMemberName(n,ce()),r);for(var i=[];19!==X&&4!==X&&1!==X;)i.push(Q.getTokenText()),q();return se(("link"===t?Y.createJSDocLink:"linkcode"===t?Y.createJSDocLinkCode:Y.createJSDocLinkPlain)(n,i.join("")),e,Q.getTextPos())}}function x(){if(k(),18===X&&59===q()&&G.tokenIsIdentifierOrKeyword(q())){var e=Q.getTokenValue();if(P(e))return e}}function P(e){return"link"===e||"linkcode"===e||"linkplain"===e}function w(){return k(),18===X?da():void 0}function D(){var e=J(22),t=(e&&E(),J(61)),r=function(){var e=z();oe(22)&&ae(23);for(;oe(24);){var t=z();oe(22)&&ae(23),e=function(e,t){return se(Y.createQualifiedName(e,t),e.pos)}(e,t)}return e}();return t&&!St(t=61)&&Nt(t,!1,G.Diagnostics._0_expected,G.tokenToString(t)),e&&(E(),T(63)&&H(),ae(23)),{name:r,isBracketed:e}}function I(e){switch(e.kind){case 149:return!0;case 185:return I(e.elementType);default:return G.isTypeReferenceNode(e)&&G.isIdentifier(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function O(e,t,r,n){var i=w(),a=!i,o=(k(),D()),s=o.name,o=o.isBracketed,c=k(),c=(a&&!re(x)&&(i=w()),A(e,ee(),n,c)),n=4!==r&&function(e,t,r,n){if(e&&I(e.type)){for(var i=ee(),a=void 0,o=void 0;a=ne(function(){return j(r,n,t)});)343!==a.kind&&350!==a.kind||(o=G.append(o,a));if(o)return e=se(Y.createJSDocTypeLiteral(o,185===e.type.kind),i),se(Y.createJSDocTypeExpression(e),i)}}(i,s,r,n);return n&&(i=n,a=!0),se(1===r?Y.createJSDocPropertyTag(t,s,o,i,a,c):Y.createJSDocParameterTag(t,s,o,i,a,c),e)}function M(e,t,r,n){G.some(C,G.isJSDocTypeTag)&&V(t.pos,Q.getTokenPos(),G.Diagnostics._0_tag_already_specified,t.escapedText);var i=da(!0),r=void 0!==r&&void 0!==n?A(e,ee(),r,n):void 0;return se(Y.createJSDocTypeTag(t,i,r),e)}function L(){var e=oe(18),t=ee(),r=function(){var e=ee(),t=z();for(;oe(24);){var r=z();t=se(Y.createPropertyAccessExpression(t,r),e)}return t}(),n=Yi(),r=se(Y.createExpressionWithTypeArguments(r,n),t);return e&&ae(19),r}function R(e,t,r,n,i){return se(t(r,A(e,ee(),n,i)),e)}function B(e){var t,r,n=Q.getTokenPos();if(G.tokenIsIdentifierOrKeyword(X))return t=z(),oe(24)?(r=B(!0),se(Y.createModuleDeclaration(void 0,t,r,e?4:void 0),n)):(e&&(t.isInJSDocNamespace=!0),t)}function j(e,t,r){for(var n,i=!0,a=!1;;)switch(q()){case 59:if(i)return!((n=function(e,t){G.Debug.assert(59===X);var r,n=Q.getStartPos(),i=(q(),z());switch(E(),i.escapedText){case"type":return 1===e&&M(n,i);case"prop":case"property":r=1;break;case"arg":case"argument":case"param":r=6;break;default:return!1}return!!(e&r)&&O(n,i,e,t)}(e,t))&&(343===n.kind||350===n.kind)&&4!==e&&r&&(G.isIdentifier(n.name)||!function(e,t){for(;!G.isIdentifier(e)||!G.isIdentifier(t);){if(G.isIdentifier(e)||G.isIdentifier(t)||e.right.escapedText!==t.right.escapedText)return;e=e.left,t=t.left}return e.escapedText===t.escapedText}(r,n.name.left)))&&n;a=!1;break;case 4:a=!(i=!0);break;case 41:a&&(i=!1),a=!0;break;case 79:i=!1;break;case 1:return!1}}function J(e){return X===e&&(q(),!0)}function z(e){if(!G.tokenIsIdentifierOrKeyword(X))return Nt(79,!e,e||G.Diagnostics.Identifier_expected);fe++;var e=Q.getTokenPos(),t=Q.getTextPos(),r=X,n=At(Q.getTokenValue()),n=se(Y.createIdentifier(n,void 0,r),e,t);return q(),n}}function ga(e,t,i,a,o,s){function c(e){var t="";if(s&&ma(e)&&(t=a.substring(e.pos,e.end)),e._children&&(e._children=void 0),G.setTextRangePosEnd(e,e.pos+i,e.end+i),s&&ma(e)&&G.Debug.assert(t===o.substring(e.pos,e.end)),Ie(e,c,l),G.hasJSDocNodes(e))for(var r=0,n=e.jsDoc;r=t,"Adjusting an element that was entirely before the change range"),G.Debug.assert(e.pos<=r,"Adjusting an element that was entirely after the change range"),G.Debug.assert(e.pos<=e.end);t=Math.min(e.pos,n),r=e.end>=r?e.end+i:Math.min(e.end,n);G.Debug.assert(t<=r),e.parent&&(G.Debug.assertGreaterThanOrEqual(t,e.parent.pos),G.Debug.assertLessThanOrEqual(r,e.parent.end)),G.setTextRangePosEnd(e,t,r)}function ha(e,t){if(t){var r=e.pos,n=function(e){G.Debug.assert(e.pos>=r),r=e.end};if(G.hasJSDocNodes(e))for(var i=0,a=e.jsDoc;i=e.pos&&a=e.pos&&ac.checkJsDirective.pos)&&(c.checkJsDirective={enabled:"ts-check"===t,end:e.range.end,pos:e.range.pos})});break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:G.Debug.fail("Unhandled pragma kind")}})}G.forEachChild=Ie,G.forEachChildRecursively=function(e,t,r){for(var n=Oe(e),i=[];i.lengthr),!0;{if(t.pos>=i.pos&&(i=t),ri.pos&&(i=e);return i}(e,r),i=(G.Debug.assert(i.pos<=r),i.pos);r=Math.max(0,i-1)}var a=G.createTextSpanFromBounds(r,G.textSpanEnd(t.span)),t=t.newLength+(t.span.start-r);return G.createTextChangeRange(a,t)}(e,r),va(e,t,f,n),G.Debug.assert(f.span.start<=r.span.start),G.Debug.assert(G.textSpanEnd(f.span)===G.textSpanEnd(r.span)),G.Debug.assert(G.textSpanEnd(G.textChangeRangeNewSpan(f))===G.textSpanEnd(G.textChangeRangeNewSpan(r))),r=G.textChangeRangeNewSpan(f).length-f.span.length,_=_,i=f.span.start,a=G.textSpanEnd(f.span),o=G.textSpanEnd(G.textChangeRangeNewSpan(f)),s=r,c=d,l=t,u=n,g(_),(_=y.parseSourceFile(e.fileName,t,e.languageVersion,p,!0,e.scriptKind,e.setExternalModuleIndicator)).commentDirectives=function(e,t,r,n,i,a,o,s){if(!e)return t;for(var c,l=!1,u=0,_=e;u<_.length;u++){var d=_[u],p=d.range,f=d.type;p.endn&&(g(),d={range:{pos:p.pos+i,end:p.end+i},type:f},c=G.append(c,d),s)&&G.Debug.assert(a.substring(p.pos,p.end)===o.substring(d.range.pos,d.range.end))}return g(),c;function g(){l||(l=!0,c?t&&c.push.apply(c,t):c=t)}}(e.commentDirectives,_.commentDirectives,f.span.start,G.textSpanEnd(f.span),r,d,t,n),_.impliedNodeFormat=e.impliedNodeFormat,_);function g(e){if(G.Debug.assert(e.pos<=e.end),e.pos>a)ga(e,!1,s,c,l,u);else{var t=e.end;if(i<=t){if(e.intersectsChange=!0,e._children=void 0,ya(e,i,a,o,s),Ie(e,g,m),G.hasJSDocNodes(e))for(var r=0,n=e.jsDoc;ra)ga(e,!0,s,c,l,u);else{var t=e.end;if(i<=t){e.intersectsChange=!0,e._children=void 0,ya(e,i,a,o,s);for(var r=0,n=e;r/im,Ea=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function ka(e,t,r,n){var i,a;n&&(i=n[1].toLowerCase(),a=G.commentPragmas[i])&&a.kind&r&&"fail"!==(r=function(e,t){if(!t)return{};if(!e.args)return{};for(var r=G.trimString(t).split(/\s+/),n={},i=0;i=o.length)break;var l=c;if(34===o.charCodeAt(l)){for(c++;c "))),{raw:e||H(t,o)}):(null!=(e=(c=e?function(e,t,r,n,i){b.hasProperty(e,"excludes")&&i.push(b.createCompilerDiagnostic(b.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var a,o=ce(e.compilerOptions,r,i,n),s=le(e.typeAcquisition||e.typingOptions,r,i,n),c=function(e,t,r){return w(q(),e,t,void 0,T,r)}(e.watchOptions,r,i);e.compileOnSave=function(e,t,r){return!!b.hasProperty(e,b.compileOnSaveCommandLineOption.name)&&"boolean"==typeof(e=I(b.compileOnSaveCommandLineOption,e.compileOnSave,t,r))&&e}(e,r,i),e.extends&&(b.isString(e.extends)?(n=n?F(n,r):r,a=oe(e.extends,t,n,i,b.createCompilerDiagnostic)):i.push(b.createCompilerDiagnostic(b.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string")));return{raw:e,options:o,watchOptions:c,typeAcquisition:s,extendedConfigPath:a}}(e,r,n,i,o):function(i,a,o,s,c){var l,u,_,d,p,f=se(s),e=W(i,c,!0,{onSetValidOptionKeyValueInParent:function(e,t,r){var n;switch(e){case"compilerOptions":n=f;break;case"watchOptions":n=_=_||{};break;case"typeAcquisition":n=l=l||P(s);break;case"typingOptions":n=u=u||P(s);break;default:b.Debug.fail("Unknown option")}n[t.name]=function t(e,r,n){if(A(n))return;{var i;if("list"===e.type)return(i=e).element.isFilePath||!b.isString(i.element.type)?b.filter(b.map(n,function(e){return t(i.element,r,e)}),function(e){return!!i.listPreserveFalsyValues||!!e}):n;if(!b.isString(e.type))return e.type.get(b.isString(n)?n.toLowerCase():n)}return ue(e,r,n)}(t,o,r)},onSetValidOptionKeyValueInRoot:function(e,t,r,n){"extends"===e&&(e=s?F(s,o):o,d=oe(r,a,e,c,function(e,t){return b.createDiagnosticForNodeInSourceFile(i,n,e,t)}))},onSetUnknownOptionKeyValueInRoot:function(t,e,r,n){"excludes"===t&&c.push(b.createDiagnosticForNodeInSourceFile(i,e,b.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),b.find(g,function(e){return e.name===t})&&(p=b.append(p,e))}});l=l||(u?void 0!==u.enableAutoDiscovery?{enable:u.enableAutoDiscovery,include:u.include,exclude:u.exclude}:u:P(s));p&&e&&void 0===e.compilerOptions&&c.push(b.createDiagnosticForNodeInSourceFile(i,p[0],b.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,b.getTextOfPropertyName(p[0])));return{raw:e,options:f,watchOptions:_,typeAcquisition:l,extendedConfigPath:d}}(t,r,n,i,o)).options)&&e.paths&&(c.options.pathsBasePath=n),c.extendedConfigPath&&(a=a.concat([d]),i=function(e,t,r,n,i,a){var o,s,c,l=r.useCaseSensitiveFileNames?t:b.toFileNameLowerCase(t);a&&(o=a.get(l))?(s=o.extendedResult,c=o.extendedConfig):((s=B(t,function(e){return r.readFile(e)})).parseDiagnostics.length||(c=ae(void 0,s,r,b.getDirectoryPath(t),b.getBaseFileName(t),n,i,a)),a&&a.set(l,{extendedResult:s,extendedConfig:c}));e&&(e.extendedSourceFiles=[s.fileName],s.extendedSourceFiles)&&(o=e.extendedSourceFiles).push.apply(o,s.extendedSourceFiles);if(s.parseDiagnostics.length)return void i.push.apply(i,s.parseDiagnostics);return c}(t,c.extendedConfigPath,r,a,o,s))&&i.options&&(l=i.raw,u=c.raw,(e=function(e){!u[e]&&l[e]&&(u[e]=b.map(l[e],function(e){return b.isRootedDiskPath(e)?e:b.combinePaths(_=_||b.convertToRelativePath(b.getDirectoryPath(c.extendedConfigPath),n,b.createGetCanonicalFileName(r.useCaseSensitiveFileNames)),e)}))})("include"),e("exclude"),e("files"),void 0===u.compileOnSave&&(u.compileOnSave=l.compileOnSave),c.options=b.assign({},i.options,c.options),c.watchOptions=c.watchOptions&&i.watchOptions?b.assign({},i.watchOptions,c.watchOptions):c.watchOptions||i.watchOptions),c)}function oe(e,t,r,n,i){var a;return e=b.normalizeSlashes(e),b.isRootedDiskPath(e)||b.startsWith(e,"./")||b.startsWith(e,"../")?(a=b.getNormalizedAbsolutePath(e,r),t.fileExists(a)||b.endsWith(a,".json")||(a="".concat(a,".json"),t.fileExists(a))?a:void n.push(i(b.Diagnostics.File_0_not_found,e))):(a=b.nodeModuleNameResolver(e,b.combinePaths(r,"tsconfig.json"),{moduleResolution:b.ModuleResolutionKind.NodeJs},t,void 0,void 0,!0)).resolvedModule?a.resolvedModule.resolvedFileName:void n.push(i(b.Diagnostics.File_0_not_found,e))}function se(e){return e&&"jsconfig.json"===b.getBaseFileName(e)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function ce(e,t,r,n){var i=se(n);return w(V(),e,t,i,b.compilerOptionsDidYouMeanDiagnostics,r),n&&(i.configFilePath=b.normalizeSlashes(n)),i}function P(e){return{enable:!!e&&"jsconfig.json"===b.getBaseFileName(e),include:[],exclude:[]}}function le(e,t,r,n){n=P(n),e=o(e);return w(C(),e,t,n,D,r),n}function w(e,t,r,n,i,a){if(t){for(var o in t){var s=e.get(o);s?(n=n||{})[s.name]=I(s,t[o],r,a):a.push(y(o,i,b.createCompilerDiagnostic))}return n}}function I(e,t,r,n){var i,a,o,s;if(G(e,t))return"list"===(i=e.type)&&b.isArray(t)?(a=e,o=r,s=n,b.filter(b.map(t,function(e){return I(a.element,e,o,s)}),function(e){return!!a.listPreserveFalsyValues||!!e})):b.isString(i)?A(i=O(e,t,n))?i:ue(e,r,i):_e(e,t,n);n.push(b.createCompilerDiagnostic(b.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,e.name,k(e)))}function ue(e,t,r){return r=e.isFilePath&&""===(r=b.getNormalizedAbsolutePath(r,t))?".":r}function O(e,t,r){var n;if(!A(t))return(n=null==(n=e.extraValidation)?void 0:n.call(e,t))?void r.push(b.createCompilerDiagnostic.apply(void 0,n)):t}function _e(e,t,r){if(!A(t))return t=t.toLowerCase(),void 0!==(t=e.type.get(t))?O(e,t,r):void r.push(s(e))}b.convertToObject=H,b.convertToObjectWorker=E,b.convertToTSConfig=function(e,t,r){var n=b.createGetCanonicalFileName(r.useCaseSensitiveFileNames),i=b.map(b.filter(e.fileNames,null!=(i=null==(i=e.options.configFile)?void 0:i.configFileSpecs)&&i.validatedIncludeSpecs?function(e,t,r,n){if(t){var e=b.getFileMatcherPatterns(e,r,t,n.useCaseSensitiveFileNames,n.getCurrentDirectory()),i=e.excludePattern&&b.getRegexFromPattern(e.excludePattern,n.useCaseSensitiveFileNames),a=e.includeFilePattern&&b.getRegexFromPattern(e.includeFilePattern,n.useCaseSensitiveFileNames);if(a)return i?function(e){return!(a.test(e)&&!i.test(e))}:function(e){return!a.test(e)};if(i)return function(e){return i.test(e)}}return b.returnTrue}(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):b.returnTrue),function(e){return b.getRelativePathFromFile(b.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),b.getNormalizedAbsolutePath(e,r.getCurrentDirectory()),n)}),a=X(e.options,{configFilePath:b.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames}),o=e.watchOptions&&Y(e.watchOptions,J());return __assign(__assign({compilerOptions:__assign(__assign({},Q(a)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:o&&Q(o),references:b.map(e.projectReferences,function(e){return __assign(__assign({},e),{path:e.originalPath||"",originalPath:void 0})}),files:b.length(i)?i:void 0},null!=(a=e.options.configFile)&&a.configFileSpecs?{include:(o=e.options.configFile.configFileSpecs.validatedIncludeSpecs,!b.length(o)||1===b.length(o)&&o[0]===b.defaultIncludeSpec?void 0:o),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!e.compileOnSave||void 0})},b.getNameOfCompilerOptionValue=N,b.getCompilerOptionsDiffValue=function(e,t){var n,i,a=Z(e);return n=[],i=Array(3).join(" "),g.forEach(function(e){var t,r;a.has(e.name)&&((t=a.get(e.name))!==(r=he(e))?n.push("".concat(i).concat(e.name,": ").concat(t)):b.hasProperty(b.defaultInitCompilerOptions,e.name)&&n.push("".concat(i).concat(e.name,": ").concat(r)))}),n.join(t)+t},b.generateTSConfig=function(e,t,r){var o=Z(e),n=new b.Map;n.set(b.Diagnostics.Projects,[]),n.set(b.Diagnostics.Language_and_Environment,[]),n.set(b.Diagnostics.Modules,[]),n.set(b.Diagnostics.JavaScript_Support,[]),n.set(b.Diagnostics.Emit,[]),n.set(b.Diagnostics.Interop_Constraints,[]),n.set(b.Diagnostics.Type_Checking,[]),n.set(b.Diagnostics.Completeness,[]);for(var i=0,a=b.optionDeclarations;i=O.ModuleResolutionKind.Node16&&O.getEmitModuleResolutionKind(s)<=O.ModuleResolutionKind.NodeNext&&D(c,O.Diagnostics.Resolving_in_0_mode_with_conditions_1,i&S.EsmMode?"ESM":"CJS",n.map(function(e){return"'".concat(e,"'")}).join(", ")),O.forEach(e,function(e){var t,r,n=X(e,a,o,function(e,t,r,n){return C(e,t,r,n,!0)},p);return n?j({resolved:n,isExternalLibraryImport:E(n.path)}):O.isExternalModuleNameRelative(a)?(n=te(o,a),t=n.path,n=n.parts,(t=C(e,t,!1,p,!0))&&j({resolved:t,isExternalLibraryImport:O.contains(n,"node_modules")})):((r=!(r=i&S.Imports&&O.startsWith(a,"#")?function(e,t,r,n,i,a){if("#"===t||O.startsWith(t,"#/"))n.traceEnabled&&D(n.host,O.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,t);else{var o=O.getNormalizedAbsolutePath(O.combinePaths(r,"dummy"),null==(o=(r=n.host).getCurrentDirectory)?void 0:o.call(r)),r=k(o,n);if(r)if(r.contents.packageJsonContent.imports){e=_e(e,n,i,a,t,r.contents.packageJsonContent.imports,r,!0);if(e)return e;n.traceEnabled&&D(n.host,O.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,r.packageDirectory)}else n.traceEnabled&&D(n.host,O.Diagnostics.package_json_scope_0_has_no_imports_defined,r.packageDirectory);else n.traceEnabled&&D(n.host,O.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,o)}return j(void 0)}(e,a,o,p,l,u):r)&&i&S.SelfName?function(e,t,r,n,i,a){var o=k(O.getNormalizedAbsolutePath(O.combinePaths(r,"dummy"),null==(o=(r=n.host).getCurrentDirectory)?void 0:o.call(r)),n);if(!o||!o.contents.packageJsonContent.exports)return;if("string"!=typeof o.contents.packageJsonContent.name)return;var s=O.getPathComponents(t),r=O.getPathComponents(o.contents.packageJsonContent.name);if(O.every(r,function(e,t){return s[t]===e}))return t=s.slice(r.length),le(o,e,O.length(t)?".".concat(O.directorySeparator).concat(t.join(O.directorySeparator)):".",n,i,a)}(e,a,o,p,l,u):r)||(_&&D(c,O.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,a,L[e]),r=pe(e,a,o,p,l,u)),r?(t=r.value,s.preserveSymlinks||!t||t.originalPath||(n=re(t.path,c,_),e=V(n,t.path,c),r=e?void 0:t.path,t=__assign(__assign({},t),{path:e?t.path:n,originalPath:r})),{value:t&&{resolved:t,isExternalLibraryImport:!0}}):void 0)}));return f(null==(e=null==n?void 0:n.value)?void 0:e.resolved,null==(e=null==n?void 0:n.value)?void 0:e.isExternalLibraryImport,t,r,d,p.resultFromCache)}function te(e,t){var e=O.combinePaths(e,t),t=O.getPathComponents(e),r=O.lastOrUndefined(t);return{path:"."===r||".."===r?O.ensureTrailingDirectorySeparator(O.normalizePath(e)):O.normalizePath(e),parts:t}}function re(e,t,r){var n;return t.realpath?(n=O.normalizePath(t.realpath(e)),r&&D(t,O.Diagnostics.Resolving_real_path_for_0_result_1,e,n),O.Debug.assert(t.fileExists(n),"".concat(e," linked to nonexistent file ").concat(n)),n):e}function C(e,t,r,n,i){if(n.traceEnabled&&D(n.host,O.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,t,L[e]),!O.hasTrailingDirectorySeparator(t)){r||(o=O.getDirectoryPath(t),O.directoryProbablyExists(o,n.host))||(n.traceEnabled&&D(n.host,O.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,o),r=!0);var a,o=m(e,t,r,n);if(o)return M((a=i?ne(o.path):void 0)?N(a,!1,n):void 0,o)}if(r||O.directoryProbablyExists(t,n.host)||(n.traceEnabled&&D(n.host,O.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(n.features&S.EsmMode))return se(e,t,r,n,i)}function E(e){return O.stringContains(e,O.nodeModulesPathPart)}function ne(e){var t,e=O.normalizePath(e),r=e.lastIndexOf(O.nodeModulesPathPart);if(-1!==r)return t=ie(e,r=r+O.nodeModulesPathPart.length),64===e.charCodeAt(r)&&(t=ie(e,t)),e.slice(0,t)}function ie(e,t){e=e.indexOf(O.directorySeparator,t+1);return-1===e?t:e}function g(e,t,r,n){return _(m(e,t,r,n))}function m(e,t,r,n){var i;if(e===L.Json||e===L.TSConfig)return i=(a=O.tryRemoveExtension(t,".json"))?t.substring(a.length):"",void 0===a&&e===L.Json?void 0:o(a||t,e,i,r,n);if(!(n.features&S.EsmMode)){var a=o(t,e,"",r,n);if(a)return a}return ae(e,t,r,n)}function ae(e,t,r,n){var i,a;if(O.hasJSFileExtension(t)||O.fileExtensionIs(t,".json")&&n.compilerOptions.resolveJsonModule)return i=O.removeFileExtension(t),a=t.substring(i.length),n.traceEnabled&&D(n.host,O.Diagnostics.File_name_0_has_a_1_extension_stripping_it,t,a),o(i,e,a,r,n)}function R(e,t,r,n){return e!==L.TypeScript&&e!==L.DtsOnly||!O.fileExtensionIsOneOf(t,O.supportedTSExtensionsFlat)?ae(e,t,r,n):void 0!==y(t,r,n)?{path:t,ext:O.tryExtractTSExtension(t)}:void 0}function o(r,e,t,n,i){var a;switch(n||(a=O.getDirectoryPath(r))&&(n=!O.directoryProbablyExists(a,i.host)),e){case L.DtsOnly:switch(t){case".mjs":case".mts":case".d.mts":return s(".d.mts");case".cjs":case".cts":case".d.cts":return s(".d.cts");case".json":return r+=".json",s(".d.ts");default:return s(".d.ts")}case L.TypeScript:case L.TsOnly:var o=e===L.TypeScript;switch(t){case".mjs":case".mts":case".d.mts":return s(".mts")||(o?s(".d.mts"):void 0);case".cjs":case".cts":case".d.cts":return s(".cts")||(o?s(".d.cts"):void 0);case".json":return r+=".json",o?s(".d.ts"):void 0;default:return s(".ts")||s(".tsx")||(o?s(".d.ts"):void 0)}case L.JavaScript:switch(t){case".mjs":case".mts":case".d.mts":return s(".mjs");case".cjs":case".cts":case".d.cts":return s(".cjs");case".json":return s(".json");default:return s(".js")||s(".jsx")}case L.TSConfig:case L.Json:return s(".json")}function s(e){var t=y(r+e,n,i);return void 0===t?void 0:{path:t,ext:e}}}function y(e,t,r){var n,i,a;return null!=(n=r.compilerOptions.moduleSuffixes)&&n.length?(i=null!=(n=O.tryGetExtensionFromPath(e))?n:"",a=i?O.removeExtension(e,i):e,O.forEach(r.compilerOptions.moduleSuffixes,function(e){return oe(a+e+i,t,r)})):oe(e,t,r)}function oe(e,t,r){if(!t){if(r.host.fileExists(e))return r.traceEnabled&&D(r.host,O.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&D(r.host,O.Diagnostics.File_0_does_not_exist,e)}r.failedLookupLocations.push(e)}function se(e,t,r,n,i){i=(i=void 0===i?!0:i)?N(t,r,n):void 0;return M(i,A(e,t,r,n,i&&i.contents.packageJsonContent,i&&i.contents.versionPaths))}function h(e,t,r){return{host:t,compilerOptions:r,traceEnabled:v(r,t),failedLookupLocations:O.noopPush,affectingLocations:O.noopPush,packageJsonInfoCache:e,features:S.None,conditions:O.emptyArray,requestContainingDirectory:void 0,reportDiagnostic:O.noop}}function k(e,t){var r=O.getPathComponents(e);for(r.pop();0t.length?-1:t.length>e.length?1:0}function _e(e,t,r,n,i,a,o,s){var c=de(e,t,r,n,i,o,s);if(!O.endsWith(i,O.directorySeparator)&&-1===i.indexOf("*")&&O.hasProperty(a,i))return c(f=a[i],"",!1,i);for(var l,u,_=0,d=O.sort(O.filter(O.getOwnKeys(a),function(e){return-1!==e.indexOf("*")||O.endsWith(e,"/")}),ue);_"+e.moduleSpecifier.text:">"});if(t.length!==r.length)for(var n=0,i=t;n(1&e.flags?OS.noTruncationMaximumTruncationLength:OS.defaultMaximumTruncationLength))}function Ne(e,t){var r=t.flags,e=function(e,g){f&&f.throwIfCancellationRequested&&f.throwIfCancellationRequested();var t=8388608&g.flags;if(g.flags&=-8388609,!e)return 262144&g.flags?(g.approximateLength+=3,OS.factory.createKeywordTypeNode(131)):void(g.encounteredError=!0);536870912&g.flags||(e=eu(e));if(1&e.flags)return e.aliasSymbol?OS.factory.createTypeReferenceNode(function e(t){var r=OS.factory.createIdentifier(OS.unescapeLeadingUnderscores(t.escapedName));return t.parent?OS.factory.createQualifiedName(e(t.parent),r):r}(e.aliasSymbol),Fe(e.aliasTypeArguments,g)):e===Fr?OS.addSyntheticLeadingComment(OS.factory.createKeywordTypeNode(131),3,"unresolved"):(g.approximateLength+=3,OS.factory.createKeywordTypeNode(e===wr?139:131));if(2&e.flags)return OS.factory.createKeywordTypeNode(157);if(4&e.flags)return g.approximateLength+=6,OS.factory.createKeywordTypeNode(152);if(8&e.flags)return g.approximateLength+=6,OS.factory.createKeywordTypeNode(148);if(64&e.flags)return g.approximateLength+=6,OS.factory.createKeywordTypeNode(160);if(16&e.flags&&!e.aliasSymbol)return g.approximateLength+=7,OS.factory.createKeywordTypeNode(134);if(1024&e.flags&&!(1048576&e.flags))return o=xo(e.symbol),r=Ue(o,g,788968),Pc(o)===e?r:(o=OS.symbolName(e.symbol),OS.isIdentifierText(o,0)?y(r,OS.factory.createTypeReferenceNode(o,void 0)):OS.isImportTypeNode(r)?(r.isTypeOf=!0,OS.factory.createIndexedAccessTypeNode(r,OS.factory.createLiteralTypeNode(OS.factory.createStringLiteral(o)))):OS.isTypeReferenceNode(r)?OS.factory.createIndexedAccessTypeNode(OS.factory.createTypeQueryNode(r.typeName),OS.factory.createLiteralTypeNode(OS.factory.createStringLiteral(o))):OS.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`."));if(1056&e.flags)return Ue(e.symbol,g,788968);if(128&e.flags)return g.approximateLength+=e.value.length+2,OS.factory.createLiteralTypeNode(OS.setEmitFlags(OS.factory.createStringLiteral(e.value,!!(268435456&g.flags)),16777216));if(256&e.flags)return r=e.value,g.approximateLength+=(""+r).length,OS.factory.createLiteralTypeNode(r<0?OS.factory.createPrefixUnaryExpression(40,OS.factory.createNumericLiteral(-r)):OS.factory.createNumericLiteral(r));if(2048&e.flags)return g.approximateLength+=OS.pseudoBigIntToString(e.value).length+1,OS.factory.createLiteralTypeNode(OS.factory.createBigIntLiteral(e.value));if(512&e.flags)return g.approximateLength+=e.intrinsicName.length,OS.factory.createLiteralTypeNode("true"===e.intrinsicName?OS.factory.createTrue():OS.factory.createFalse());if(8192&e.flags){if(!(1048576&g.flags)){if(Vo(e.symbol,g.enclosingDeclaration))return g.approximateLength+=6,Ue(e.symbol,g,111551);g.tracker.reportInaccessibleUniqueSymbolError&&g.tracker.reportInaccessibleUniqueSymbolError()}return g.approximateLength+=13,OS.factory.createTypeOperatorNode(156,OS.factory.createKeywordTypeNode(153))}if(16384&e.flags)return g.approximateLength+=4,OS.factory.createKeywordTypeNode(114);if(32768&e.flags)return g.approximateLength+=9,OS.factory.createKeywordTypeNode(155);if(65536&e.flags)return g.approximateLength+=4,OS.factory.createLiteralTypeNode(OS.factory.createNull());if(131072&e.flags)return g.approximateLength+=5,OS.factory.createKeywordTypeNode(144);if(4096&e.flags)return g.approximateLength+=6,OS.factory.createKeywordTypeNode(153);if(67108864&e.flags)return g.approximateLength+=6,OS.factory.createKeywordTypeNode(149);if(OS.isThisTypeParameter(e))return 4194304&g.flags&&(g.encounteredError||32768&g.flags||(g.encounteredError=!0),g.tracker.reportInaccessibleThisError)&&g.tracker.reportInaccessibleThisError(),g.approximateLength+=4,OS.factory.createThisTypeNode();if(!t&&e.aliasSymbol&&(16384&g.flags||Ko(e.aliasSymbol,g.enclosingDeclaration)))return o=Fe(e.aliasTypeArguments,g),!Oo(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?1===OS.length(o)&&e.aliasSymbol===ht.symbol?OS.factory.createArrayTypeNode(o[0]):Ue(e.aliasSymbol,g,788968,o):OS.factory.createTypeReferenceNode(OS.factory.createIdentifier(""),o);var r=OS.getObjectFlags(e);if(4&r)return OS.Debug.assert(!!(524288&e.flags)),e.node?u(e,d):d(e);if(262144&e.flags||3&r)return 262144&e.flags&&OS.contains(g.inferTypeParameters,e)?(g.approximateLength+=OS.symbolName(e.symbol).length+6,t=void 0,!(o=Ml(e))||(a=Qu(e,!0))&&sf(o,a)||(g.approximateLength+=9,t=o&&Ne(o,g)),OS.factory.createInferTypeNode(Ie(e,g,t))):4&g.flags&&262144&e.flags&&!Ko(e.symbol,g.enclosingDeclaration)?(a=Ke(e,g),g.approximateLength+=OS.idText(a).length,OS.factory.createTypeReferenceNode(OS.factory.createIdentifier(OS.idText(a)),void 0)):e.symbol?Ue(e.symbol,g,788968):(o=(e===Tn||e===Cn)&&h&&h.symbol?(e===Cn?"sub-":"super-")+OS.symbolName(h.symbol):"?",OS.factory.createTypeReferenceNode(OS.factory.createIdentifier(o),void 0));1048576&e.flags&&e.origin&&(e=e.origin);if(3145728&e.flags)return t=1048576&e.flags?function(e){for(var t=[],r=0,n=0;n=Su(t.target.typeParameters)}function Ye(t,e,r,n,i,a){if(!_e(e)&&n){n=Qe(r,n);if(n&&!OS.isFunctionLikeDeclaration(n)&&!OS.isGetAccessorDeclaration(n)){var o=OS.getEffectiveTypeAnnotationNode(n);if(function(e,t,r){e=K(e);if(e===r)return 1;if(OS.isParameter(t)&&t.questionToken)return ny(r,524288)===e;return}(o,n,e)&&Xe(o,e)){n=$e(t,o,i,a);if(n)return n}}}o=t.flags,8192&e.flags&&e.symbol===r&&(!t.enclosingDeclaration||OS.some(r.declarations,function(e){return OS.getSourceFileOfNode(e)===OS.getSourceFileOfNode(t.enclosingDeclaration)}))&&(t.flags|=1048576),i=Ne(e,t);return t.flags=o,i}function Ze(e,t,r){var n=!1,i=OS.getFirstIdentifier(e);if(OS.isInJSFile(e)&&(OS.isExportsIdentifier(i)||OS.isModuleExportsAccessExpression(i.parent)||OS.isQualifiedName(i.parent)&&OS.isModuleIdentifier(i.parent.left)&&OS.isExportsIdentifier(i.parent.right)))return{introducesError:n=!0,node:e};var a,o,i=ro(i,67108863,!0,!0);if(i&&(0!==Wo(i,t.enclosingDeclaration,67108863,!1).accessibility?n=!0:(null!=(a=null==(o=t.tracker)?void 0:o.trackSymbol)&&a.call(o,i,t.enclosingDeclaration,67108863),null!=r&&r(i)),OS.isIdentifier(e)))return a=Pc(i),(o=262144&i.flags&&!Ko(a.symbol,t.enclosingDeclaration)?Ke(a,t):OS.factory.cloneNode(e)).symbol=i,{introducesError:n,node:OS.setEmitFlags(OS.setOriginalNode(o,e),16777216)};return{introducesError:n,node:e}}function $e(c,e,l,u){f&&f.throwIfCancellationRequested&&f.throwIfCancellationRequested();var _=!1,d=OS.getSourceFileOfNode(e),t=OS.visitNode(e,function n(i){if(OS.isJSDocAllType(i)||322===i.kind)return OS.factory.createKeywordTypeNode(131);if(OS.isJSDocUnknownType(i))return OS.factory.createKeywordTypeNode(157);if(OS.isJSDocNullableType(i))return OS.factory.createUnionTypeNode([OS.visitNode(i.type,n),OS.factory.createLiteralTypeNode(OS.factory.createNull())]);if(OS.isJSDocOptionalType(i))return OS.factory.createUnionTypeNode([OS.visitNode(i.type,n),OS.factory.createKeywordTypeNode(155)]);if(OS.isJSDocNonNullableType(i))return OS.visitNode(i.type,n);if(OS.isJSDocVariadicType(i))return OS.factory.createArrayTypeNode(OS.visitNode(i.type,n));if(OS.isJSDocTypeLiteral(i))return OS.factory.createTypeLiteralNode(OS.map(i.jsDocPropertyTags,function(e){var t=OS.isIdentifier(e.name)?e.name:e.name.right,r=ys(K(i),t.escapedText),r=r&&e.typeExpression&&K(e.typeExpression.type)!==r?Ne(r,c):void 0;return OS.factory.createPropertySignature(void 0,t,e.isBracketed||e.typeExpression&&OS.isJSDocOptionalType(e.typeExpression.type)?OS.factory.createToken(57):void 0,r||e.typeExpression&&OS.visitNode(e.typeExpression.type,n)||OS.factory.createKeywordTypeNode(131))}));if(OS.isTypeReferenceNode(i)&&OS.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return OS.setOriginalNode(OS.factory.createKeywordTypeNode(131),i);if((OS.isExpressionWithTypeArguments(i)||OS.isTypeReferenceNode(i))&&OS.isJSDocIndexSignature(i))return OS.factory.createTypeLiteralNode([OS.factory.createIndexSignature(void 0,[OS.factory.createParameterDeclaration(void 0,void 0,"x",void 0,OS.visitNode(i.typeArguments[0],n))],OS.visitNode(i.typeArguments[1],n))]);{var r;if(OS.isJSDocFunctionType(i))return OS.isJSDocConstructSignature(i)?OS.factory.createConstructorTypeNode(void 0,OS.visitNodes(i.typeParameters,n),OS.mapDefined(i.parameters,function(e,t){return e.name&&OS.isIdentifier(e.name)&&"new"===e.name.escapedText?void(r=e.type):OS.factory.createParameterDeclaration(void 0,a(e),o(e,t),e.questionToken,OS.visitNode(e.type,n),void 0)}),OS.visitNode(r||i.type,n)||OS.factory.createKeywordTypeNode(131)):OS.factory.createFunctionTypeNode(OS.visitNodes(i.typeParameters,n),OS.map(i.parameters,function(e,t){return OS.factory.createParameterDeclaration(void 0,a(e),o(e,t),e.questionToken,OS.visitNode(e.type,n),void 0)}),OS.visitNode(i.type,n)||OS.factory.createKeywordTypeNode(131))}if(OS.isTypeReferenceNode(i)&&OS.isInJSDoc(i)&&(!Xe(i,K(i))||y_(i)||L===l_(i,788968,!0)))return OS.setOriginalNode(Ne(K(i),c),i);if(OS.isLiteralImportTypeNode(i))return e=H(i).resolvedSymbol,!OS.isInJSDoc(i)||!e||(i.isTypeOf||788968&e.flags)&&OS.length(i.typeArguments)>=Su(pc(e))?OS.factory.updateImportTypeNode(i,OS.factory.updateLiteralTypeNode(i.argument,s(i,i.argument.literal)),i.assertions,i.qualifier,OS.visitNodes(i.typeArguments,n,OS.isTypeNode),i.isTypeOf):OS.setOriginalNode(Ne(K(i),c),i);if(OS.isEntityName(i)||OS.isEntityNameExpression(i)){var e=Ze(i,c,l),t=e.introducesError,e=e.node;if(_=_||t,e!==i)return e}d&&OS.isTupleTypeNode(i)&&OS.getLineAndCharacterOfPosition(d,i.pos).line===OS.getLineAndCharacterOfPosition(d,i.end).line&&OS.setEmitFlags(i,1);return OS.visitEachChild(i,n,OS.nullTransformationContext);function a(e){return e.dotDotDotToken||(e.type&&OS.isJSDocVariadicType(e.type)?OS.factory.createToken(25):void 0)}function o(e,t){return e.name&&OS.isIdentifier(e.name)&&"this"===e.name.escapedText?"this":a(e)?"args":"arg".concat(t)}function s(e,t){if(u){if(c.tracker&&c.tracker.moduleResolverHost){var r,e=nS(e);if(e)return r=OS.createGetCanonicalFileName(!!g.useCaseSensitiveFileNames),r={getCanonicalFileName:r,getCurrentDirectory:function(){return c.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return c.tracker.moduleResolverHost.getCommonSourceDirectory()}},r=OS.getResolvedExternalModuleName(r,e),OS.factory.createStringLiteral(r)}}else c.tracker&&c.tracker.trackExternalModuleSymbolOfImportTypeNode&&(e=ao(t,t,void 0))&&c.tracker.trackExternalModuleSymbolOfImportTypeNode(e);return t}});if(!_)return t===e?OS.setTextRange(OS.factory.cloneNode(e),e):t}var et,tt=OS.createSymbolTable(),rt=B(4,"undefined"),nt=(rt.declarations=[],B(1536,"globalThis",8)),it=(nt.exports=tt,nt.declarations=[],tt.set(nt.escapedName,nt),B(4,"arguments")),at=B(4,"require"),ot={getNodeCount:function(){return OS.sum(g.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return OS.sum(g.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return OS.sum(g.getSourceFiles(),"symbolCount")+s},getTypeCount:function(){return a},getInstantiationCount:function(){return _},getRelationCacheSizes:function(){return{assignable:Di.size,identity:Ti.size,subtype:bi.size,strictSubtype:xi.size}},isUndefinedSymbol:function(e){return e===rt},isArgumentsSymbol:function(e){return e===it},isUnknownSymbol:function(e){return e===L},getMergedSymbol:bo,getDiagnostics:cD,getGlobalDiagnostics:function(){return lD(),oe.getGlobalDiagnostics()},getRecursionIdentity:ng,getUnmatchedProperties:gm,getTypeOfSymbolAtLocation:function(e,t){t=OS.getParseTreeNode(t);if(t){if(e=e.exportSymbol||e,(79===t.kind||80===t.kind)&&(OS.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),OS.isExpressionNode(t))&&(!OS.isAssignmentTarget(t)||OS.isWriteAccess(t))){var r=C2(t);if(Eo(H(t).resolvedSymbol)===e)return r}return OS.isDeclarationName(t)&&OS.isSetAccessor(t.parent)&&Qs(t.parent)?Zs(t.parent.symbol):oc(e)}return R},getTypeOfSymbol:de,getSymbolsOfParameterPropertyDeclaration:function(e,t){var r,e=OS.getParseTreeNode(e,OS.isParameter);return void 0===e?OS.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(e=e,t=OS.escapeLeadingUnderscores(t),r=e.parent,e=e.parent.parent,r=ma(r.locals,t,111551),e=ma(Qc(e.symbol),t,111551),r&&e?[r,e]:OS.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration"))},getDeclaredTypeOfSymbol:Pc,getPropertiesOfType:pe,getPropertyOfType:function(e,t){return fe(e,OS.escapeLeadingUnderscores(t))},getPrivateIdentifierPropertyOfType:function(e,t,r){r=OS.getParseTreeNode(r);return r&&(t=Oh(OS.escapeLeadingUnderscores(t),r))?Rh(e,t):void 0},getTypeOfPropertyOfType:function(e,t){return ys(e,OS.escapeLeadingUnderscores(t))},getIndexInfoOfType:function(e,t){return _u(e,0===t?ne:ie)},getIndexInfosOfType:uu,getIndexInfosOfIndexSymbol:Wu,getSignaturesOfType:ge,getIndexTypeOfType:function(e,t){return du(e,0===t?ne:ie)},getIndexType:function(e){return Sd(e)},getBaseTypes:xc,getBaseTypeOfLiteralType:Dg,getWidenedType:Xg,getTypeFromTypeNode:function(e){e=OS.getParseTreeNode(e,OS.isTypeNode);return e?K(e):R},getParameterType:h1,getParameterIdentifierNameAtPosition:function(e,t){if(320===(null==(r=e.declaration)?void 0:r.kind))return;var r=e.parameters.length-(YS(e)?1:0);if(t>",0,ee)),kn=$c(void 0,void 0,void 0,OS.emptyArray,ee,void 0,0,0),Nn=$c(void 0,void 0,void 0,OS.emptyArray,R,void 0,0,0),An=$c(void 0,void 0,void 0,OS.emptyArray,ee,void 0,0,0),Fn=$c(void 0,void 0,void 0,OS.emptyArray,Hr,void 0,0,0),Pn=Vu(ie,ne,!0),wn=new OS.Map,In={get yieldType(){return OS.Debug.fail("Not supported")},get returnType(){return OS.Debug.fail("Not supported")},get nextType(){return OS.Debug.fail("Not supported")}},On=Qb(ee,ee,ee),Mn=Qb(ee,ee,te),Ln=Qb(ae,ee,re),Rn={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return(Vt=Vt||E_("AsyncIterator",3,e))||mn},getGlobalIterableType:M_,getGlobalIterableIteratorType:function(e){return(qt=qt||E_("AsyncIterableIterator",1,e))||mn},getGlobalGeneratorType:function(e){return(Wt=Wt||E_("AsyncGenerator",3,e))||mn},resolveIterationType:ab,mustHaveANextMethodDiagnostic:OS.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:OS.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:OS.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Bn={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return(Bt=Bt||E_("Iterator",3,e))||mn},getGlobalIterableType:L_,getGlobalIterableIteratorType:function(e){return(jt=jt||E_("IterableIterator",1,e))||mn},getGlobalGeneratorType:function(e){return(Jt=Jt||E_("Generator",3,e))||mn},resolveIterationType:function(e,t){return e},mustHaveANextMethodDiagnostic:OS.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:OS.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:OS.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},jn=new OS.Map,Jn=!1,zn=new OS.Map,Un=0,Kn=0,Vn=0,qn=!1,Wn=0,Hn=bp(""),Gn=xp(0),Qn=Dp({negative:!1,base10Value:"0"}),Xn=[],Yn=[],Zn=[],$n=0,ei=10,ti=[],ri=[],ni=[],ii=[],ai=[],oi=[],si=[],ci=[],li=[],ui=[],_i=[],di=[],pi=[],fi=[],gi=[],mi=[],yi=[],oe=OS.createDiagnosticCollection(),hi=OS.createDiagnosticCollection(),vi=he(OS.arrayFrom(JS.keys(),bp)),bi=new OS.Map,xi=new OS.Map,Di=new OS.Map,Si=new OS.Map,Ti=new OS.Map,Ci=new OS.Map,Ei=((dn=OS.createSymbolTable()).set(rt.escapedName,rt),[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===Z.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]]),ki=0,Ni=g.getSourceFiles();ki=n&&s.pos<=i){var c=OS.factory.createPropertyAccessExpression(OS.factory.createThis(),e);if(OS.setParent(c.expression,c),OS.setParent(c,s),c.flowNode=s.returnFlowNode,!Af(Vy(c,t,Mg(t))))return 1}}return}(t,de(G(n)),OS.filter(n.parent.members,OS.isClassStaticBlockDeclaration),n.parent.pos,e.pos))return!0}}else if(!(169===n.kind&&!OS.isStatic(n))||OS.getContainingClass(r)!==OS.getContainingClass(n))return!0;return!1})}function l(t,e,r){return!(e.end>t.end)&&void 0===OS.findAncestor(e,function(e){if(e===t)return"quit";switch(e.kind){case 216:return!0;case 169:return!r||!(OS.isPropertyDeclaration(t)&&e.parent===t.parent||OS.isParameterPropertyDeclaration(t,t.parent)&&e.parent===t.parent.parent)||"quit";case 238:switch(e.parent.kind){case 174:case 171:case 175:return!0;default:return!1}default:return!1}})}}function ha(e,t,r){var n=OS.getEmitScriptTarget(Z);if(OS.isParameter(r)&&t.body&&e.valueDeclaration&&e.valueDeclaration.pos>=t.body.pos&&e.valueDeclaration.end<=t.body.end&&2<=n)return void 0===(r=H(t)).declarationRequiresScopeChange&&(r.declarationRequiresScopeChange=OS.forEach(t.parameters,function(e){return i(e.name)||!!e.initializer&&i(e.initializer)})||!1),!r.declarationRequiresScopeChange;function i(e){switch(e.kind){case 216:case 215:case 259:case 173:return!1;case 171:case 174:case 175:case 299:return i(e.name);case 169:return OS.hasStaticModifier(e)?n<99||!W:i(e.name);default:return OS.isNullishCoalesce(e)||OS.isOptionalChain(e)?n<7:OS.isBindingElement(e)&&e.dotDotDotToken&&OS.isObjectBindingPattern(e.parent)?n<4:!OS.isTypeNode(e)&&OS.forEachChild(e,i)||!1}}}function va(e,t,r,n,i,a,o,s){return ba(e,t,r,n,i,a,o=void 0===o?!1:o,s=void 0===s?!0:s,ma)}function ba(e,a,o,s,c,t,r,l,n){var i,u,_,d,p,f=e,g=!1,m=e,y=!1;e:for(;e;){if("const"===a&&(h=e,OS.isAssertionExpression(h)&&OS.isConstTypeReference(h.type)||OS.isJSDocTypeTag(h)&&OS.isConstTypeReference(h.typeExpression)))return;if(e.locals&&!ga(e)&&(i=n(e.locals,a,o))){var h=!0;if(OS.isFunctionLike(e)&&u&&u!==e.body?(o&i.flags&788968&&323!==u.kind&&(h=!!(262144&i.flags)&&(u===e.type||166===u.kind||343===u.kind||344===u.kind||165===u.kind)),o&i.flags&3&&(ha(i,e,u)?h=!1:1&i.flags&&(h=166===u.kind||u===e.type&&!!OS.findAncestor(i.valueDeclaration,OS.isParameter)))):191===e.kind&&(h=u===e.trueType),h)break;i=void 0}switch(g=g||function(e,t){if(216!==e.kind&&215!==e.kind)return OS.isTypeQueryNode(e)||(OS.isFunctionLikeDeclaration(e)||169===e.kind&&!OS.isStatic(e))&&(!t||t!==e.name);if(t&&t===e.name)return!1;if(e.asteriskToken||OS.hasSyntacticModifier(e,512))return!0;return!OS.getImmediatelyInvokedFunctionExpression(e)}(e,u),e.kind){case 308:if(!OS.isExternalOrCommonJsModule(e))break;y=!0;case 264:var v=(null==(v=G(e))?void 0:v.exports)||E;if(308===e.kind||OS.isModuleDeclaration(e)&&16777216&e.flags&&!OS.isGlobalScopeAugmentation(e)){if(i=v.get("default")){var b=OS.getLocalSymbolForExportDefault(i);if(b&&i.flags&o&&b.escapedName===a)break e;i=void 0}b=v.get(a);if(b&&2097152===b.flags&&(OS.getDeclarationOfKind(b,278)||OS.getDeclarationOfKind(b,277)))break}if("default"!==a&&(i=n(v,a,2623475&o))){if(!OS.isSourceFile(e)||!e.commonJsModuleIndicator||null!=(v=i.declarations)&&v.some(OS.isJSDocTypeAlias))break e;i=void 0}break;case 263:if(i=n((null==(v=G(e))?void 0:v.exports)||E,a,8&o))break e;break;case 169:OS.isStatic(e)||(x=No(e.parent))&&x.locals&&n(x.locals,a,111551&o)&&(OS.Debug.assertNode(e,OS.isPropertyDeclaration),d=e);break;case 260:case 228:case 261:if(i=n(G(e).members||E,a,788968&o)){if(!function(e,t){if(e.declarations)for(var r=0,n=e.declarations;rp.pos&&e.parent.locals&&n(e.parent.locals,t.escapedName,o)===t&&se(m,OS.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,OS.declarationNameToString(p.name),OS.declarationNameToString(m))),!(i&&m&&111551&o&&2097152&i.flags)||111551&i.flags||OS.isValidTypeOnlyAliasUseSite(m)||(e=Ya(i,111551))&&(t=278===e.kind?OS.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:OS.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,r=OS.unescapeLeadingUnderscores(a),xa(se(m,t,r),e,r))}),i}else s&&q(function(){var e,t,r,n,i;m&&(function(e,t,r){if(OS.isIdentifier(e)&&e.escapedText===t&&!_D(e)&&!jm(e))for(var n=OS.getThisContainer(e,!1),i=n;i;){if(OS.isClassLike(i.parent)){var a=G(i.parent);if(!a)break;if(fe(de(a),t))return se(e,OS.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Da(r),le(a)),1;if(i===n&&!OS.isStatic(i))if(fe(Pc(a).thisType,t))return se(e,OS.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Da(r)),1}i=i.parent}return}(m,a,c)||C()||Sa(m)||function(e,t,r){var n=1920|(OS.isInJSFile(e)?111551:0);if(r===n){r=Wa(va(e,t,788968&~n,void 0,void 0,!1)),n=e.parent;if(r){if(OS.isQualifiedName(n)){OS.Debug.assert(n.left===e,"Should only be resolving left side of qualified name as a namespace");var i=n.right.escapedText;if(fe(Pc(r),i))return se(n,OS.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,OS.unescapeLeadingUnderscores(t),OS.unescapeLeadingUnderscores(i)),1}return se(e,OS.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,OS.unescapeLeadingUnderscores(t)),1}}return}(m,a,o)||function(e,t){if(Ta(t)&&278===e.parent.kind)return se(e,OS.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),1;return}(m,a)||function(e,t,r){if(111127&r){if(Wa(va(e,t,1024,void 0,void 0,!1)))return se(e,OS.Diagnostics.Cannot_use_namespace_0_as_a_value,OS.unescapeLeadingUnderscores(t)),1}else if(788544&r)if(Wa(va(e,t,1536,void 0,void 0,!1)))return se(e,OS.Diagnostics.Cannot_use_namespace_0_as_a_type,OS.unescapeLeadingUnderscores(t)),1;return}(m,a,o)||function(e,t,r){if(111551&r){if(Ta(t))return!function(e){var e=e.parent.parent,t=e.parent;if(e&&t)return e=OS.isHeritageClause(e)&&94===e.token,t=OS.isInterfaceDeclaration(t),e&&t;return}(e)?se(e,OS.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,OS.unescapeLeadingUnderscores(t)):se(e,OS.Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,OS.unescapeLeadingUnderscores(t)),1;var r=Wa(va(e,t,788544,void 0,void 0,!1)),n=r&&Ga(r);if(r&&void 0!==n&&!(111551&n))return n=OS.unescapeLeadingUnderscores(t),!function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return 1}return}(t)?!function(e,t){e=OS.findAncestor(e.parent,function(e){return!OS.isComputedPropertyName(e)&&!OS.isPropertySignature(e)&&(OS.isTypeLiteralNode(e)||"quit")});if(e&&1===e.members.length)return 1048576&(e=Pc(t)).flags&&Z1(e,384,!0);return}(e,r)?se(e,OS.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,n):se(e,OS.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,n,"K"===n?"P":"K"):se(e,OS.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,n),1}return}(m,a,o)||function(e,t,r){if(788584&r){r=Wa(va(e,t,111127,void 0,void 0,!1));if(r&&!(1920&r.flags))return se(e,OS.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,OS.unescapeLeadingUnderscores(t)),1}return}(m,a,o))||(e=t=void 0,c&&(e=function(e){for(var t=Da(e),r=OS.getScriptTargetFeatures(),e=OS.getOwnKeys(r),n=0,i=e;n=OS.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",o=e.exports.get("export=").valueDeclaration,r=se(t.name,OS.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,le(e),i),o&&OS.addRelatedInfo(r,OS.createDiagnosticForNode(o,OS.Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,i))):OS.isImportClause(t)?(a=t,null!=(o=(r=e).exports)&&o.has(a.symbol.escapedName)?se(a.name,OS.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,le(r),le(a.symbol)):(o=se(a.name,OS.Diagnostics.Module_0_has_no_default_export,le(r)),(r=null==(a=r.exports)?void 0:a.get("__export"))&&(r=null==(a=r.declarations)?void 0:a.find(function(e){return!!(OS.isExportDeclaration(e)&&e.moduleSpecifier&&null!=(e=null==(e=io(e,e.moduleSpecifier))?void 0:e.exports)&&e.has("default"))}))&&OS.addRelatedInfo(o,OS.createDiagnosticForNode(r,OS.Diagnostics.export_Asterisk_does_not_re_export_a_default)))):Ja(e,e,t,OS.isImportOrExportSpecifier(t)&&t.propertyName||t.name);Qa(t,n,void 0,!1)}return n}function Ba(e){switch(e.kind){case 270:return e.parent.moduleSpecifier;case 268:return OS.isExternalModuleReference(e.moduleReference)?e.moduleReference.expression:void 0;case 271:return e.parent.parent.moduleSpecifier;case 273:return e.parent.parent.parent.moduleSpecifier;case 278:return e.parent.parent.moduleSpecifier;default:return OS.Debug.assertNever(e)}}function ja(e,t,r){void 0===r&&(r=!1);var n=OS.getExternalModuleRequireArgument(e)||e.moduleSpecifier,i=io(e,n),a=!OS.isPropertyAccessExpression(t)&&t.propertyName||t.name;if(OS.isIdentifier(a)){var o,s,c=lo(i,n,!1,"default"===a.escapedText&&!(!Z.allowSyntheticDefaultImports&&!OS.getESModuleInterop(Z)));if(c)if(a.escapedText)return OS.isShorthandAmbientModuleSymbol(i)?i:(o=void 0,o=i&&i.exports&&i.exports.get("export=")?fe(de(c),a.escapedText,!0):function(e,t){if(3&e.flags){e=e.valueDeclaration.type;if(e)return Wa(fe(K(e),t))}}(c,a.escapedText),o=Wa(o,r),(s=(t=void 0===(t=function(e,t,r,n){if(1536&e.flags)return Qa(r,r=mo(e).get(t.escapedText),e=Wa(r,n),!1),e}(c,a,t,r))&&"default"===a.escapedText&&(s=null==(s=i.declarations)?void 0:s.find(OS.isSourceFile),Ma(n)||La(s,i,r,n))?co(i,r)||Wa(i,r):t)&&o&&t!==o?(s=t,(n=o)===L&&s===L?L:790504&n.flags?n:((r=B(n.flags|s.flags,n.escapedName)).declarations=OS.deduplicate(OS.concatenate(n.declarations,s.declarations),OS.equateValues),r.parent=n.parent||s.parent,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration),s.members&&(r.members=new OS.Map(s.members)),n.exports&&(r.exports=new OS.Map(n.exports)),r)):t||o)||Ja(i,c,e,a),s)}}function Ja(e,t,r,n){var i,a,o,s,c,l,u=to(e,r),_=OS.declarationNameToString(n),t=Xh(n,t);void 0!==t?(o=le(t),c=se(n,OS.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,u,_,o),t.valueDeclaration&&OS.addRelatedInfo(c,OS.createDiagnosticForNode(t.valueDeclaration,OS.Diagnostics._0_is_declared_here,o))):null!=(c=e.exports)&&c.has("default")?se(n,OS.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,u,_):(t=r,o=n,s=_,c=u,l=null==(n=null==(n=(r=e).valueDeclaration)?void 0:n.locals)?void 0:n.get(o.escapedText),n=r.exports,l?(r=null==n?void 0:n.get("export="))?Co(r,l)?(_=t,u=o,e=s,i=c,v>=OS.ModuleKind.ES2015?(a=OS.getESModuleInterop(Z)?OS.Diagnostics._0_can_only_be_imported_by_using_a_default_import:OS.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,se(u,a,e)):OS.isInJSFile(_)?(a=OS.getESModuleInterop(Z)?OS.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:OS.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,se(u,a,e)):(a=OS.getESModuleInterop(Z)?OS.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:OS.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,se(u,a,e,e,i))):se(o,OS.Diagnostics.Module_0_has_no_exported_member_1,c,s):(r=n?OS.find(yu(n),function(e){return!!Co(e,l)}):void 0,t=r?se(o,OS.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,c,s,le(r)):se(o,OS.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,c,s),l.declarations&&OS.addRelatedInfo.apply(void 0,__spreadArray([t],OS.map(l.declarations,function(e,t){return OS.createDiagnosticForNode(e,0===t?OS.Diagnostics._0_is_declared_here:OS.Diagnostics.and_here,s)}),!1))):se(o,OS.Diagnostics.Module_0_has_no_exported_member_1,c,s))}function za(e){if(OS.isVariableDeclaration(e)&&e.initializer&&OS.isPropertyAccessExpression(e.initializer))return e.initializer}function Ua(e,t,r){if("default"===OS.idText(e.propertyName||e.name)){var n=Ba(e),n=n&&io(e,n);if(n)return Ra(n,e,!!r)}n=e.parent.parent.moduleSpecifier?ja(e.parent.parent,e,r):ro(e.propertyName||e.name,t,!1,r);return Qa(e,void 0,n,!1),n}function Ka(e,t){return OS.isClassExpression(e)?u2(e).symbol:OS.isEntityName(e)||OS.isEntityNameExpression(e)?ro(e,901119,!0,t)||(u2(e),H(e).resolvedSymbol):void 0}function Va(e,t){switch(void 0===t&&(t=!1),e.kind){case 268:case 257:return Fa(e,t);case 270:var r=e,n=t,i=io(r,r.parent.moduleSpecifier);return i?Ra(i,r,n):void 0;case 271:return i=t,n=(r=e).parent.parent.moduleSpecifier,d=io(r,n),n=lo(d,n,i,!1),Qa(r,d,n,!1),n;case 277:return d=t,_=(o=(u=e).parent.moduleSpecifier)&&io(u,o),o=o&&lo(_,o,d,!1),Qa(u,_,o,!1),o;case 273:case 205:u=e,_=t;if(OS.isImportSpecifier(u)&&"default"===OS.idText(u.propertyName||u.name)){var a=Ba(u),a=a&&io(u,a);if(a)return Ra(a,u,_)}var o=za(a=OS.isBindingElement(u)?OS.getRootDeclaration(u):u.parent.parent.parent),a=ja(a,o||u,_),s=u.propertyName||u.name;return o&&a&&OS.isIdentifier(s)?Wa(fe(de(a),s.escapedText),_):(Qa(u,void 0,a,!1),a);case 278:return Ua(e,901119,t);case 274:case 223:return s=e,a=t,a=Ka(OS.isExportAssignment(s)?s.expression:s.right,a),Qa(s,void 0,a,!1),a;case 267:return l=t,l=co((c=e).parent.symbol,l),Qa(c,void 0,l,!1),l;case 300:return ro(e.name,901119,!0,t);case 299:return Ka(e.initializer,t);case 209:case 208:c=e,l=t;return OS.isBinaryExpression(c.parent)&&c.parent.left===c&&63===c.parent.operatorToken.kind?Ka(c.parent.right,l):void 0;default:return OS.Debug.fail()}var c,l,u,_,o,d}function qa(e,t){return void 0===t&&(t=901119),e&&(2097152==(e.flags&(2097152|t))||2097152&e.flags&&67108864&e.flags)}function Wa(e,t){return!t&&qa(e)?Ha(e):e}function Ha(e){OS.Debug.assert(0!=(2097152&e.flags),"Should only get Alias here.");var t=ce(e);if(t.aliasTarget)t.aliasTarget===Cr&&(t.aliasTarget=L);else{t.aliasTarget=Cr;var r=ka(e);if(!r)return OS.Debug.fail();var n=Va(r);t.aliasTarget===Cr?t.aliasTarget=n||L:se(r,OS.Diagnostics.Circular_definition_of_import_alias_0,le(e))}return t.aliasTarget}function Ga(e){for(var t,r=e.flags;2097152&e.flags;){var n=Ha(e);if(n===L)return 67108863;if(n===e||null!=t&&t.has(n))break;2097152&n.flags&&(t?t.add(n):t=new OS.Set([e,n])),r|=n.flags,e=n}return r}function Qa(e,t,r,n){var i;if(e&&!OS.isPropertyAccessExpression(e))return i=G(e),OS.isTypeOnlyImportOrExportDeclaration(e)?(ce(i).typeOnlyDeclaration=e,1):Xa(e=ce(i),t,n)||Xa(e,r,n)}function Xa(e,t,r){return t&&(void 0===e.typeOnlyDeclaration||r&&!1===e.typeOnlyDeclaration)&&(t=(r=null!=(r=null==(r=t.exports)?void 0:r.get("export="))?r:t).declarations&&OS.find(r.declarations,OS.isTypeOnlyImportOrExportDeclaration),e.typeOnlyDeclaration=null!=(t=null!=t?t:ce(r).typeOnlyDeclaration)&&t),!!e.typeOnlyDeclaration}function Ya(e,t){if(2097152&e.flags)return e=ce(e),void 0===t?e.typeOnlyDeclaration||void 0:e.typeOnlyDeclaration&&Ga(Ha(e.typeOnlyDeclaration.symbol))&t?e.typeOnlyDeclaration:void 0}function Za(e){var e=G(e),t=Ha(e);t&&(t===L||111551&Ga(t)&&!OD(t)&&!Ya(e,111551))&&$a(e)}function $a(e){var t=ce(e);if(!t.referenced){t.referenced=!0;t=ka(e);if(!t)return OS.Debug.fail();OS.isInternalModuleImportEqualsDeclaration(t)&&111551&Ga(Wa(e))&&u2(t.moduleReference)}}function eo(e,t){return 79===(e=79===e.kind&&OS.isRightSideOfQualifiedNameOrPropertyAccess(e)?e.parent:e).kind||163===e.parent.kind?ro(e,1920,!1,t):(OS.Debug.assert(268===e.parent.kind),ro(e,901119,!1,t))}function to(e,t){return e.parent?to(e.parent,t)+"."+le(e):le(e,t,void 0,36)}function ro(e,t,r,n,i){if(!OS.nodeIsMissing(e)){var a=1920|(OS.isInJSFile(e)?111551&t:0);if(79===e.kind){var o=t===a||OS.nodeIsSynthesized(e)?OS.Diagnostics.Cannot_find_namespace_0:Rm(OS.getFirstIdentifier(e)),s=OS.isInJSFile(e)&&!OS.nodeIsSynthesized(e)?function(e,t){if(g_(e.parent)){var r=function(e){var t=OS.findAncestor(e,function(e){return OS.isJSDocNode(e)||8388608&e.flags?OS.isJSDocTypeAlias(e):"quit"});if(!t){t=OS.getJSDocHost(e);if(t&&OS.isExpressionStatement(t)&&OS.isPrototypePropertyAssignment(t.expression))if(r=G(t.expression.left))return no(r);if(t&&OS.isFunctionExpression(t)&&OS.isPrototypePropertyAssignment(t.parent)&&OS.isExpressionStatement(t.parent.parent))if(r=G(t.parent.left))return no(r);if(t&&(OS.isObjectLiteralMethod(t)||OS.isPropertyAssignment(t))&&OS.isBinaryExpression(t.parent.parent)&&6===OS.getAssignmentDeclarationKind(t.parent.parent))if(r=G(t.parent.parent.left))return no(r);var r,t=OS.getEffectiveJSDocHost(e);if(t&&OS.isFunctionLike(t))return(r=G(t))&&r.valueDeclaration}}(e.parent);if(r)return va(r,e.escapedText,t,void 0,e,!0)}}(e,t):void 0;if(!(o=bo(va(i||e,e.escapedText,t,r||s?void 0:o,e,!0,!1))))return bo(s)}else{if(163!==e.kind&&208!==e.kind)throw OS.Debug.assertNever(e,"Unknown entity name kind.");var s=163===e.kind?e.left:e.expression,c=163===e.kind?e.right:e.name,s=ro(s,a,r,!1,i);if(!s||OS.nodeIsMissing(c))return;if(s===L)return s;if(!(o=bo(ma(mo(s=s.valueDeclaration&&OS.isInJSFile(s.valueDeclaration)&&OS.isVariableDeclaration(s.valueDeclaration)&&s.valueDeclaration.initializer&&a1(s.valueDeclaration.initializer)&&(i=io(a=s.valueDeclaration.initializer.arguments[0],a))&&(a=co(i))?a:s),c.escapedText,t)))){if(!r){i=to(s),a=OS.declarationNameToString(c),r=Xh(c,s);if(r)return void se(c,OS.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,i,a,le(r));r=OS.isQualifiedName(e)&&function(e){for(;OS.isQualifiedName(e.parent);)e=e.parent;return e}(e);if(ft&&788968&t&&r&&!OS.isTypeOfExpression(r.parent)&&function(e){var t=OS.getFirstIdentifier(e),r=va(t,t.escapedText,111551,void 0,t,!0);if(r){for(;OS.isQualifiedName(t.parent);){if(!(r=fe(de(r),t.parent.right.escapedText)))return;t=t.parent}return r}}(r))return void se(r,OS.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,OS.entityNameToString(r));if(1920&t&&OS.isQualifiedName(e.parent)){r=bo(ma(mo(s),c.escapedText,788968));if(r)return void se(e.parent.right,OS.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,le(r),OS.unescapeLeadingUnderscores(e.parent.right.escapedText))}se(c,OS.Diagnostics.Namespace_0_has_no_exported_member_1,i,a)}return}}return OS.Debug.assert(0==(1&OS.getCheckFlags(o)),"Should never get an instantiated symbol here."),!OS.nodeIsSynthesized(e)&&OS.isEntityName(e)&&(2097152&o.flags||274===e.parent.kind)&&Qa(OS.getAliasDeclarationFromName(e),o,void 0,!0),o.flags&t||n?o:Ha(o)}}function no(e){e=e.parent.valueDeclaration;if(e)return(OS.isAssignmentDeclaration(e)?OS.getAssignedExpandoInitializer(e):OS.hasOnlyExpressionInitializer(e)?OS.getDeclaredExpandoInitializer(e):void 0)||e}function io(e,t,r){var n=OS.getEmitModuleResolutionKind(Z)===OS.ModuleResolutionKind.Classic?OS.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:OS.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return ao(e,t,r?void 0:n)}function ao(e,t,r,n){return void 0===n&&(n=!1),OS.isStringLiteralLike(t)?oo(e,t.text,r,t,n):void 0}function oo(e,t,r,n,i){void 0===i&&(i=!1),OS.startsWith(t,"@types/")&&se(n,c=OS.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,OS.removePrefix(t,"@types/"),t);var a=vu(t,!0);if(a)return a;var o,s,c,l,a=OS.getSourceFileOfNode(e),u=OS.isStringLiteralLike(e)?e:(null==(u=OS.findAncestor(e,OS.isImportCall))?void 0:u.arguments[0])||(null==(u=OS.findAncestor(e,OS.isImportDeclaration))?void 0:u.moduleSpecifier)||(null==(u=OS.findAncestor(e,OS.isExternalModuleImportEqualsDeclaration))?void 0:u.moduleReference.expression)||(null==(u=OS.findAncestor(e,OS.isExportDeclaration))?void 0:u.moduleSpecifier)||(null==(u=OS.isModuleDeclaration(e)?e:e.parent&&OS.isModuleDeclaration(e.parent)&&e.parent.name===e?e.parent:void 0)?void 0:u.name)||(null==(u=OS.isLiteralImportTypeNode(e)?e:void 0)?void 0:u.argument.literal),u=u&&OS.isStringLiteralLike(u)?OS.getModeForUsageLocation(a,u):a.impliedNodeFormat,_=OS.getResolvedModule(a,t,u),d=_&&OS.getResolutionDiagnostic(Z,_),p=_&&(!d||d===OS.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&g.getSourceFile(_.resolvedFileName);if(p)return d&&se(n,d,t,_.resolvedFileName),p.symbol?(_.isExternalLibraryImport&&!OS.resolutionExtensionIsTSOrJson(_.extension)&&so(!1,n,_,t),OS.getEmitModuleResolutionKind(Z)!==OS.ModuleResolutionKind.Node16&&OS.getEmitModuleResolutionKind(Z)!==OS.ModuleResolutionKind.NodeNext||(f=a.impliedNodeFormat===OS.ModuleKind.CommonJS&&!OS.findAncestor(e,OS.isImportCall)||!!OS.findAncestor(e,OS.isImportEqualsDeclaration),o=(s=OS.findAncestor(e,function(e){return OS.isImportTypeNode(e)||OS.isExportDeclaration(e)||OS.isImportDeclaration(e)}))&&OS.isImportTypeNode(s)?null==(o=s.assertions)?void 0:o.assertClause:null==s?void 0:s.assertClause,f&&p.impliedNodeFormat===OS.ModuleKind.ESNext&&!OS.getResolutionModeOverrideForClause(o)&&(OS.findAncestor(e,OS.isImportEqualsDeclaration)?se(n,OS.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,t):(s=void 0,".ts"!==(f=OS.tryGetExtensionFromPath(a.fileName))&&".js"!==f&&".tsx"!==f&&".jsx"!==f||(o=".ts"===f?".mts":".js"===f?".mjs":void 0,s=(e=a.packageJsonScope)&&!e.contents.packageJsonContent.type?o?OS.chainDiagnosticMessages(void 0,OS.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,o,OS.combinePaths(e.packageDirectory,"package.json")):OS.chainDiagnosticMessages(void 0,OS.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,OS.combinePaths(e.packageDirectory,"package.json")):o?OS.chainDiagnosticMessages(void 0,OS.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,o):OS.chainDiagnosticMessages(void 0,OS.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)),oe.add(OS.createDiagnosticForNodeFromMessageChain(n,OS.chainDiagnosticMessages(s,OS.Diagnostics.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,t)))))),bo(p.symbol)):void(r&&se(n,OS.Diagnostics.File_0_is_not_a_module,p.fileName));if(dt){var f=OS.findBestPatternMatch(dt,function(e){return e.pattern},t);if(f)return bo(pt&&pt.get(t)||f.symbol)}if(_&&!OS.resolutionExtensionIsTSOrJson(_.extension)&&void 0===d||d===OS.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)i?se(n,c=OS.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,t,_.resolvedFileName):so(Te&&!!r,n,_,t);else if(r){if(_){var e=g.getProjectReferenceRedirect(_.resolvedFileName);if(e)return void se(n,OS.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,e,_.resolvedFileName)}d?se(n,d,t,_.resolvedFileName):(o=OS.tryExtractTSExtension(t),s=OS.pathIsRelative(t)&&!OS.hasExtension(t),f=(p=OS.getEmitModuleResolutionKind(Z))===OS.ModuleResolutionKind.Node16||p===OS.ModuleResolutionKind.NodeNext,o?(c=OS.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,i=OS.removeExtension(t,o),v>=OS.ModuleKind.ES2015&&(i+=".mts"===o?".mjs":".cts"===o?".cjs":".js"),se(n,c,o,i)):!Z.resolveJsonModule&&OS.fileExtensionIs(t,".json")&&OS.getEmitModuleResolutionKind(Z)!==OS.ModuleResolutionKind.Classic&&OS.hasJsonModuleEmitEnabled(Z)?se(n,OS.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,t):u===OS.ModuleKind.ESNext&&f&&s?(l=OS.getNormalizedAbsolutePath(t,OS.getDirectoryPath(a.path)),(d=null==(e=Ei.find(function(e){var t=e[0];e[1];return g.fileExists(l+t)}))?void 0:e[1])?se(n,OS.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,t+d):se(n,OS.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)):se(n,r,t))}}function so(e,t,r,n){var i=r.packageId,r=r.resolvedFileName,a=!OS.isExternalModuleNameRelative(n)&&i?(a=i.name,o().has(OS.getTypesPackageName(a))?OS.chainDiagnosticMessages(void 0,OS.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,i.name,OS.mangleScopedPackageName(i.name)):(a=i.name,o().get(a)?OS.chainDiagnosticMessages(void 0,OS.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i.name,n):OS.chainDiagnosticMessages(void 0,OS.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,OS.mangleScopedPackageName(i.name)))):void 0;ra(e,t,OS.chainDiagnosticMessages(a,OS.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,n,r))}function co(e,t){if(null!=e&&e.exports)return t=function(e,t){if(!e||e===L||e===t||1===t.exports.size||2097152&e.flags)return e;var r=ce(e);if(r.cjsExportMerged)return r.cjsExportMerged;var n=33554432&e.flags?e:la(e);n.flags=512|n.flags,void 0===n.exports&&(n.exports=OS.createSymbolTable());return t.exports.forEach(function(e,t){"export="!==t&&n.exports.set(t,n.exports.has(t)?ua(n.exports.get(t),e):e)}),ce(n).cjsExportMerged=n,r.cjsExportMerged=n}(bo(Wa(e.exports.get("export="),t)),bo(e)),bo(t)||e}function lo(e,t,r,n){var i=co(e,r);if(!r&&i){if(!(n||1539&i.flags||OS.getDeclarationOfKind(i,308)))return r=v>=OS.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",se(t,OS.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,r),i;n=t.parent;if(OS.isImportDeclaration(n)&&OS.getNamespaceDeclarationNode(n)||OS.isImportCall(n)){var r=OS.isImportCall(n)?n.arguments[0]:n.moduleSpecifier,t=de(i),a=n1(t,i,e,r);if(a)return uo(i,a,n);a=null==(a=null==e?void 0:e.declarations)?void 0:a.find(OS.isSourceFile),a=a&&Oa(Ia(r),a.impliedNodeFormat);if(OS.getESModuleInterop(Z)||a){var o=au(t,0);if((o=o&&o.length?o:au(t,1))&&o.length||fe(t,"default",!0)||a)return uo(i,i1(t,i,e,r),n)}}}return i}function uo(e,t,r){var n=B(e.flags,e.escapedName),r=(n.declarations=e.declarations?e.declarations.slice():[],n.parent=e.parent,n.target=e,n.originatingImport=r,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(n.constEnumOnlyModule=!0),e.members&&(n.members=new OS.Map(e.members)),e.exports&&(n.exports=new OS.Map(e.exports)),Fl(t));return n.type=Bo(n,r.members,OS.emptyArray,OS.emptyArray,r.indexInfos),n}function _o(e){return void 0!==e.exports.get("export=")}function po(e){return yu(yo(e))}function fo(e,t){t=yo(t);if(t)return t.get(e)}function go(e){return!(131068&e.flags||1&OS.getObjectFlags(e)||sg(e)||De(e))}function mo(e){return 6256&e.flags?Gc(e,"resolvedExports"):1536&e.flags?yo(e):e.exports||E}function yo(e){var t=ce(e);return t.resolvedExports||(t.resolvedExports=vo(e))}function ho(n,e,i,a){e&&e.forEach(function(e,t){var r;"default"!==t&&((r=n.get(t))?i&&a&&r&&Wa(r)!==Wa(e)&&((r=i.get(t)).exportsWithDuplicate?r.exportsWithDuplicate.push(a):r.exportsWithDuplicate=[a]):(n.set(t,e),i&&a&&i.set(t,{specifierText:OS.getTextOfNode(a.moduleSpecifier)})))})}function vo(e){var l=[];return function e(t){if(!(t&&t.exports&&OS.pushIfUnique(l,t)))return;var a=new OS.Map(t.exports);t=t.exports.get("__export");if(t){var r=OS.createSymbolTable(),o=new OS.Map;if(t.declarations)for(var n=0,i=t.declarations;n=r?e.substr(0,r-"...".length)+"...":e)}function es(e,t){var r=rs(e.symbol)?ue(e,e.symbol.valueDeclaration):ue(e),n=rs(t.symbol)?ue(t,t.symbol.valueDeclaration):ue(t);return r===n&&(r=ts(e),n=ts(t)),[r,n]}function ts(e){return ue(e,void 0,64)}function rs(e){return e&&e.valueDeclaration&&OS.isExpression(e.valueDeclaration)&&!rf(e.valueDeclaration)}function ns(e){return 848330091&(e=void 0===e?0:e)}function is(e){return e.symbol&&32&e.symbol.flags&&(e===Sc(e.symbol)||524288&e.flags&&16777216&OS.getObjectFlags(e))}function as(i,a,o,e){return void 0===o&&(o=16384),e?t(e).getText():OS.usingSingleLineStringWriter(t);function t(e){var t=OS.factory.createTypePredicateNode(2===i.kind||3===i.kind?OS.factory.createToken(129):void 0,1===i.kind||3===i.kind?OS.factory.createIdentifier(i.parameterName):OS.factory.createThisTypeNode(),i.type&&P.typeToTypeNode(i.type,a,70222336|ns(o))),r=OS.createPrinter({removeComments:!0}),n=a&&OS.getSourceFileOfNode(a);return r.writeNode(4,t,n,e),e}}function os(e){return 8===e?"private":16===e?"protected":"public"}function ss(e){return e&&e.parent&&265===e.parent.kind&&OS.isExternalModuleAugmentation(e.parent.parent)}function cs(e){return 308===e.kind||OS.isAmbientModule(e)}function ls(e,t){var r,e=ce(e).nameType;if(e)return 384&e.flags?(r=""+e.value,OS.isIdentifierText(r,OS.getEmitScriptTarget(Z))||OS.isNumericLiteralName(r)?OS.isNumericLiteralName(r)&&OS.startsWith(r,"-")?"[".concat(r,"]"):r:'"'.concat(OS.escapeString(r,34),'"')):8192&e.flags?"[".concat(us(e.symbol,t),"]"):void 0}function us(e,t){if(t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&OS.findAncestor(e.declarations[0],cs)!==OS.findAncestor(t.enclosingDeclaration,cs)))return"default";if(e.declarations&&e.declarations.length){var r=OS.firstDefined(e.declarations,function(e){return OS.getNameOfDeclaration(e)?e:void 0}),n=r&&OS.getNameOfDeclaration(r);if(r&&n){if(OS.isCallExpression(r)&&OS.isBindableObjectDefinePropertyCall(r))return OS.symbolName(e);if(OS.isComputedPropertyName(n)&&!(4096&OS.getCheckFlags(e))){var i=ce(e).nameType;if(i&&384&i.flags){i=ls(e,t);if(void 0!==i)return i}}return OS.declarationNameToString(n)}if((r=r||e.declarations[0]).parent&&257===r.parent.kind)return OS.declarationNameToString(r.parent.name);switch(r.kind){case 228:case 215:case 216:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),228===r.kind?"(Anonymous class)":"(Anonymous function)"}}i=ls(e,t);return void 0!==i?i:OS.symbolName(e)}function _s(t){var e;return!!t&&(void 0===(e=H(t)).isVisible&&(e.isVisible=!!function(){switch(t.kind){case 341:case 348:case 342:return t.parent&&t.parent.parent&&t.parent.parent.parent&&OS.isSourceFile(t.parent.parent.parent);case 205:return _s(t.parent.parent);case 257:if(OS.isBindingPattern(t.name)&&!t.name.elements.length)return;case 264:case 260:case 261:case 262:case 259:case 263:case 268:var e;return OS.isExternalModuleAugmentation(t)?1:(e=ms(t),(1&OS.getCombinedModifierFlags(t)||268!==t.kind&&308!==e.kind&&16777216&e.flags?_s:ga)(e));case 169:case 168:case 174:case 175:case 171:case 170:if(OS.hasEffectiveModifier(t,24))return;case 173:case 177:case 176:case 178:case 166:case 265:case 181:case 182:case 184:case 180:case 185:case 186:case 189:case 190:case 193:case 199:return _s(t.parent);case 270:case 271:case 273:return;case 165:case 308:case 267:return 1;default:return}}()),e.isVisible)}function ds(e,n){var t,i,a;return e.parent&&274===e.parent.kind?t=va(e,e.escapedText,2998271,void 0,e,!1):278===e.parent.kind&&(t=Ua(e.parent,2998271)),t&&((a=new OS.Set).add(WS(t)),function r(e){OS.forEach(e,function(e){var t=Ea(e)||e;n?H(e).isVisible=!0:(i=i||[],OS.pushIfUnique(i,t)),OS.isInternalModuleImportEqualsDeclaration(e)&&(t=e.moduleReference,t=OS.getFirstIdentifier(t),e=va(e,t.escapedText,901119,void 0,void 0,!1))&&a&&OS.tryAddToSet(a,WS(e))&&r(e.declarations)})}(t.declarations)),i}function ps(e,t){var r=fs(e,t);if(!(0<=r))return Xn.push(e),Yn.push(!0),Zn.push(t),1;for(var n=Xn.length,i=r;i=Su(e.typeParameters))&&n<=OS.length(e.typeParameters)})}function hc(e,t,r){var e=yc(e,t,r),n=OS.map(t,K);return OS.sameMap(e,function(e){return OS.some(e.typeParameters)?Lu(e,n,OS.isInJSFile(r)):e})}function vc(e){if(!e.resolvedBaseConstructorType){var t=OS.getClassLikeDeclarationOfSymbol(e.symbol),t=t&&OS.getEffectiveBaseTypeNode(t),r=mc(e);if(!r)return e.resolvedBaseConstructorType=re;if(!ps(e,1))return R;var n,i=V(r.expression);if(t&&r!==t&&(OS.Debug.assert(!t.typeArguments),V(t.expression)),2621440&i.flags&&Fl(i),!gs())return se(e.symbol.valueDeclaration,OS.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,le(e.symbol)),e.resolvedBaseConstructorType=R;if(!(1&i.flags||i===Br||gc(i)))return t=se(r.expression,OS.Diagnostics.Type_0_is_not_a_constructor_function_type,ue(i)),262144&i.flags&&(r=Xu(i),n=te,r&&(r=ge(r,1))[0]&&(n=me(r[0])),i.symbol.declarations)&&OS.addRelatedInfo(t,OS.createDiagnosticForNode(i.symbol.declarations[0],OS.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,le(i.symbol),ue(n))),e.resolvedBaseConstructorType=R;e.resolvedBaseConstructorType=i}return e.resolvedBaseConstructorType}function bc(e,t){se(e,OS.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ue(t,void 0,2))}function xc(e){if(!e.baseTypesResolved){if(ps(e,7)){if(8&e.objectFlags)e.resolvedBaseTypes=[(d=e,z_(he(OS.sameMap(d.typeParameters,function(e,t){return 8&d.elementFlags[t]?qd(e,ie):e})||OS.emptyArray),d.readonly))];else if(96&e.symbol.flags){if(32&e.symbol.flags&&!function(e){e.resolvedBaseTypes=OS.resolvingEmptyArray;var t=Ql(vc(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=OS.emptyArray;var r=mc(e),n=t.symbol?Pc(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){var t=e.outerTypeParameters;{var r;if(t)return r=t.length-1,e=ye(e),t[r].symbol!==e[r].symbol}return 1}(n))i=a_(r,t.symbol);else if(1&t.flags)i=t;else{n=hc(t,r.typeArguments,r);if(!n.length)return se(r.expression,OS.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=OS.emptyArray;i=me(n[0])}if(_e(i))return e.resolvedBaseTypes=OS.emptyArray;t=eu(i);{var i;if(!Dc(t))return n=iu(void 0,i),i=OS.chainDiagnosticMessages(n,OS.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,ue(t)),oe.add(OS.createDiagnosticForNodeFromMessageChain(r.expression,i)),e.resolvedBaseTypes=OS.emptyArray}if(e===t||lc(t,e))return se(e.symbol.valueDeclaration,OS.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ue(e,void 0,2)),e.resolvedBaseTypes=OS.emptyArray;e.resolvedBaseTypes===OS.resolvingEmptyArray&&(e.members=void 0);e.resolvedBaseTypes=[t]}(e),64&e.symbol.flags){var t=e;if(t.resolvedBaseTypes=t.resolvedBaseTypes||OS.emptyArray,t.symbol.declarations)for(var r=0,n=t.symbol.declarations;r=D1(a)&&_>=D1(o),g=n<=_?void 0:g1(e,_),m=i<=_?void 0:g1(t,_),f=B(1|(f&&!p?16777216:0),(g===m?g:g?m?void 0:g:m)||"arg".concat(_));f.type=p?z_(d):d,u[_]=f}{var y;l&&((y=B(1,"args")).type=z_(h1(o,s)),o===t&&(y.type=be(y.type,r)),u[s]=y)}return u}(e,r,t),o=function(e,t,r){return e&&t?(r=ve([de(e),be(de(t),r)]),qg(e,r)):e||t}(e.thisParameter,r.thisParameter,t),s=Math.max(e.minArgumentCount,r.minArgumentCount);return(i=$c(i,n,o,a,void 0,void 0,s,39&(e.flags|r.flags))).compositeKind=1048576,i.compositeSignatures=OS.concatenate(2097152!==e.compositeKind&&e.compositeSignatures||[e],[r]),t&&(i.mapper=2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures?jp(e.mapper,t):t),i})))return"break"}},f=0,g=e;f=D1(t,3)):!!(r=OS.getImmediatelyInvokedFunctionExpression(e.parent))&&!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=r.arguments.length)}function xu(e){var t;return!!OS.isJSDocPropertyLikeTag(e)&&(t=e.isBracketed,e=e.typeExpression,t||!!e&&319===e.type.kind)}function Du(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function Su(e){var t=0;if(e)for(var r=0;rs.arguments.length&&!d||hu(u)||(i=r.length)}174!==e.kind&&175!==e.kind||!qc(e)||o&&a||(c=174===e.kind?175:174,(c=OS.getDeclarationOfKind(G(e),c))&&(a=(c=bS(c=c))&&c.symbol));c=173===e.kind?Sc(bo(e.parent.symbol)):void 0,c=c?c.localTypeParameters:mu(e);(OS.hasRestParameter(e)||OS.isInJSFile(e)&&function(e,t){if(OS.isJSDocSignature(e)||!ku(e))return;var r=OS.lastOrUndefined(e.parameters),r=r?OS.getJSDocParameterTags(r):OS.getJSDocTags(e).filter(OS.isJSDocParameterTag),e=OS.firstDefined(r,function(e){return e.typeExpression&&OS.isJSDocVariadicType(e.typeExpression.type)?e.typeExpression.type:void 0}),r=B(3,"args",32768);e?r.type=z_(K(e.type)):(r.checkFlags|=65536,r.deferralParent=ae,r.deferralConstituents=[Ct],r.deferralWriteConstituents=[Ct]);e&&t.pop();return t.push(r),1}(e,r))&&(n|=1),(OS.isConstructorTypeNode(e)&&OS.hasSyntacticModifier(e,256)||OS.isConstructorDeclaration(e)&&OS.hasSyntacticModifier(e.parent,256))&&(n|=4),t.resolvedSignature=$c(e,c,a,r,void 0,void 0,i,n)}return t.resolvedSignature}function Eu(e){if(OS.isInJSFile(e)&&OS.isFunctionLikeDeclaration(e))return(null==(e=OS.getJSDocTypeTag(e))?void 0:e.typeExpression)&&gv(K(e.typeExpression))}function ku(e){var t=H(e);return void 0===t.containsArgumentsReference&&(8192&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function e(t){if(!t)return!1;switch(t.kind){case 79:return t.escapedText===it.escapedName&&YD(t)===it;case 169:case 171:case 174:case 175:return 164===t.name.kind&&e(t.name);case 208:case 209:return e(t.expression);case 299:return e(t.initializer);default:return!OS.nodeStartsNewLexicalEnvironment(t)&&!OS.isPartOfTypeNode(t)&&!!OS.forEachChild(t,e)}}(e.body)),t.containsArgumentsReference}function Nu(e){if(!e||!e.declarations)return OS.emptyArray;for(var t=[],r=0;rn.length)){i=o&&OS.isExpressionWithTypeArguments(e)&&!OS.isJSDocAugmentsTag(e.parent);if(se(e,a===n.length?i?OS.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:OS.Diagnostics.Generic_type_0_requires_1_type_argument_s:i?OS.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:OS.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,ue(r,void 0,2),a,n.length),!o)return R}return 180===e.kind&&q_(e,OS.length(e.typeArguments)!==n.length)?n_(r,e,void 0):t_(r,OS.concatenate(r.outerTypeParameters,Tu(v_(e),n,a,o)))}return m_(e,t)?r:R}function o_(e,t,r,n){var i,a,o,s,c=Pc(e);return c===wr&&US.has(e.escapedName)&&t&&1===t.length?kd(e,t[0]):(a=(i=ce(e)).typeParameters,o=Zu(t)+$u(r,n),(s=i.instantiations.get(o))||i.instantiations.set(o,s=Zp(c,wp(a,Tu(t,a,Su(a),OS.isInJSFile(e.valueDeclaration))),r,n)),s)}function s_(e){e=null==(e=e.declarations)?void 0:e.find(OS.isTypeAlias);return e&&OS.getContainingFunction(e)}function c_(e){var t,r,n=(163===e.kind?e.right:208===e.kind?e.name:e).escapedText;return n?(t=(e=163===e.kind?c_(e.left):208===e.kind?c_(e.expression):void 0)?"".concat(function e(t){return t.parent?"".concat(e(t.parent),".").concat(t.escapedName):t.escapedName}(e),".").concat(n):n,(r=Er.get(t))||(Er.set(t,r=B(524288,n,1048576)),r.parent=e,r.declaredType=Fr),r):L}function l_(e,t,r){e=function(e){switch(e.kind){case 180:return e.typeName;case 230:var t=e.expression;if(OS.isEntityNameExpression(t))return t}}(e);return e?(t=ro(e,t,r))&&t!==L?t:r?L:c_(e):L}function u_(e,t){var r,n,i,a,o,s;return t===L?R:96&(t=function(e){var t=e.valueDeclaration;if(t&&OS.isInJSFile(t)&&!(524288&e.flags)&&!OS.getExpandoInitializer(t,!1)){t=OS.isVariableDeclaration(t)?OS.getDeclaredExpandoInitializer(t):OS.getAssignedExpandoInitializer(t);if(t){t=G(t);if(t)return Xv(t,e)}}}(t)||t).flags?a_(e,t):524288&t.flags?(r=e,n=t,1048576&OS.getCheckFlags(n)?(s=$u(n,i=v_(r)),(a=kr.get(s))||((a=Po(1,"error")).aliasSymbol=n,a.aliasTypeArguments=i,kr.set(s,a)),a):(i=Pc(n),(s=ce(n).typeParameters)?(a=OS.length(r.typeArguments))<(o=Su(s))||a>s.length?(se(r,o===s.length?OS.Diagnostics.Generic_type_0_requires_1_type_argument_s:OS.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,le(n),o,s.length),R):(o=!(a=cp(r))||!s_(n)&&s_(a)?void 0:a,o_(n,v_(r),o,lp(o))):m_(r,n)?i:R)):(s=wc(t))?m_(e,t)?hp(s):R:111551&t.flags&&g_(e)?function(e,t){var r=H(e);{var n,i,a;r.resolvedJSDocType||(n=de(t),i=n,t.valueDeclaration&&(a=202===e.kind&&e.qualifier,n.symbol)&&n.symbol!==t&&a&&(i=u_(e,n.symbol)),r.resolvedJSDocType=i)}return r.resolvedJSDocType}(e,t)||(l_(e,788968),de(t)):R}function __(e,t){var r,n;return 3&t.flags||t===e||!Rd(e)&&!Rd(t)?e:(r="".concat(e.id,">").concat(t.id),vr.get(r)||((n=Ao(33554432)).baseType=e,n.constraint=t,vr.set(r,n),n))}function d_(e){return ve([e.constraint,e.baseType])}function p_(e){return 186===e.kind&&1===e.elements.length}function f_(e,t){for(var r,n=!0;t&&!OS.isStatement(t)&&323!==t.kind;){var i,a,o=t.parent;((n=166===o.kind?!n:n)||8650752&e.flags)&&191===o.kind&&t===o.trueType?(a=function e(t,r,n){return p_(r)&&p_(n)?e(t,r.elements[0],n.elements[0]):Xd(K(r))===Xd(t)?K(n):void 0}(e,o.checkType,o.extendsType))&&(r=OS.append(r,a)):262144&e.flags&&197===o.kind&&t===o.type&&vl(i=K(o))===Xd(e)&&(i=Wp(i))&&(a=Ml(i))&&Dy(a,lg)&&(r=OS.append(r,he([ie,rn]))),t=o}return r?__(e,ve(r)):e}function g_(e){return!!(8388608&e.flags)&&(180===e.kind||202===e.kind)}function m_(e,t){if(!e.typeArguments)return 1;se(e,OS.Diagnostics.Type_0_is_not_generic,t?le(t):e.typeName?OS.declarationNameToString(e.typeName):RS)}function y_(e){if(OS.isIdentifier(e.typeName)){var t,r,n=e.typeArguments;switch(e.typeName.escapedText){case"String":return m_(e),ne;case"Number":return m_(e),ie;case"Boolean":return m_(e),Vr;case"Void":return m_(e),Wr;case"Undefined":return m_(e),re;case"Null":return m_(e),Rr;case"Function":case"function":return m_(e),gt;case"array":return n&&n.length||Te?void 0:Ct;case"promise":return n&&n.length||Te?void 0:A1(ee);case"Object":return n&&2===n.length?OS.isJSDocIndexSignature(e)?(r=K(n[0]),t=K(n[1]),r=r===ne||r===ie?[Vu(r,t,!1)]:OS.emptyArray,Bo(void 0,E,OS.emptyArray,OS.emptyArray,r)):ee:(m_(e),Te?void 0:ee)}}}function h_(e){var t=H(e);if(!t.resolvedType){if(OS.isConstTypeReference(e)&&OS.isAssertionExpression(e.parent))return t.resolvedSymbol=L,t.resolvedType=u2(e.parent.expression);var r=void 0,n=void 0,i=788968;!g_(e)||(n=y_(e))||((r=l_(e,i,!0))===L?r=l_(e,900095):l_(e,i),n=u_(e,r)),n=n||u_(e,r=l_(e,i)),t.resolvedSymbol=r,t.resolvedType=n}return t.resolvedType}function v_(e){return OS.map(e.typeArguments,K)}function b_(e){var t=H(e);return t.resolvedType||(e=l1(e),t.resolvedType=hp(Xg(e))),t.resolvedType}function x_(e,t){function r(e){e=e.declarations;if(e)for(var t=0,r=e;tn.fixedLength?function(e){e=Ag(e);return e&&z_(e)}(e)||H_(OS.emptyArray):H_(ye(e).slice(t,r),n.elementFlags.slice(t,r),!1,n.labeledElementDeclarations&&n.labeledElementDeclarations.slice(t,r))}function Y_(e){return he(OS.append(OS.arrayOf(e.target.fixedLength,function(e){return bp(""+e)}),Sd(e.target.readonly?vt:ht)))}function Z_(e,t){var r=OS.findIndex(e.elementFlags,function(e){return!(e&t)});return 0<=r?r:e.elementFlags.length}function $_(e,t){return e.elementFlags.length-OS.findLastIndex(e.elementFlags,function(e){return!(e&t)})-1}function ed(e){return e.id}function td(e,t){return 0<=OS.binarySearch(e,t,ed,OS.compareValues)}function rd(e,t){var r=OS.binarySearch(e,t,ed,OS.compareValues);return r<0&&(e.splice(~r,0,t),1)}function nd(e,t,r){for(var n,i,a,o,s=0,c=r;sn[a-1].id?~a:OS.binarySearch(n,l,ed,OS.compareValues))<0&&n.splice(~o,0,l)),i)}return t}function id(e){var r=OS.filter(e,Ld);if(r.length)for(var n=e.length;0fd(i)?ad(2097152,i):void 0)}else e=i,i=t,t=r,(r=Ao(2097152)).objectFlags=e_(e,98304),r.types=e,r.aliasSymbol=i,r.aliasTypeArguments=t,l=r;_r.set(n,l)}return l}function dd(e){return OS.reduceLeft(e,function(e,t){return 1048576&t.flags?e*t.types.length:131072&t.flags?0:e},1)}function pd(e){var t=dd(e);return!(1e5<=t&&(null!==OS.tracing&&void 0!==OS.tracing&&OS.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:e.map(function(e){return e.id}),size:t}),se(Se,OS.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function fd(e){return OS.reduceLeft(e,function(e,t){return e+function e(t){return 3145728&t.flags&&!t.aliasSymbol?1048576&t.flags&&t.origin?e(t.origin):fd(t.types):1}(t)},0)}function gd(e,t){var r=Ao(4194304);return r.type=e,r.stringsOnly=t,r}function md(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=gd(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=gd(e,!1))}function yd(e){var r=vl(e);return function e(t){return!!(68157439&t.flags)||(16777216&t.flags?t.root.isDistributive&&t.checkType===r:137363456&t.flags?OS.every(t.types,e):8388608&t.flags?e(t.objectType)&&e(t.indexType):33554432&t.flags?e(t.baseType)&&e(t.constraint):!!(268435456&t.flags)&&e(t.type))}(xl(e)||r)}function hd(e){return OS.isPrivateIdentifier(e)?ae:OS.isIdentifier(e)?bp(OS.unescapeLeadingUnderscores(e.escapedText)):hp((OS.isComputedPropertyName(e)?q0:V)(e))}function vd(e,t,r){if(r||!(24&OS.getDeclarationModifierFlagsFromSymbol(e))){var n,r=ce(Xc(e)).nameType;if(r||(n=OS.getNameOfDeclaration(e.valueDeclaration),r="default"===e.escapedName?bp("default"):n&&hd(n)||(OS.isKnownSymbol(e)?void 0:bp(OS.symbolName(e)))),r&&r.flags&t)return r}return ae}function bd(e,t,r){var r=r&&(7&OS.getObjectFlags(e)||e.aliasSymbol)?(r=e,(n=Fo(4194304)).type=r,n):void 0,n=OS.map(pe(e),function(e){return vd(e,t)}),e=OS.map(uu(e),function(e){return e!==Pn&&function t(e,r){return!!(e.flags&r||2097152&e.flags&&OS.some(e.types,function(e){return t(e,r)}))}(e.keyType,t)?e.keyType===ne&&8&t?Yr:e.keyType:ae});return he(OS.concatenate(n,e),1,void 0,void 0,r)}function xd(e){e=262143&(e=e).flags?e:e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=be(e,sn));return eu(e)!==e}function Dd(e){return 58982400&e.flags||kg(e)||Al(e)&&!yd(e)||1048576&e.flags&&OS.some(e.types,xd)||2097152&e.flags&&X1(e,465829888)&&OS.some(e.types,Nf)}function Sd(e,t,r){{if(void 0===t&&(t=S),Dd(e=eu(e)))return md(e,t);if(1048576&e.flags)return ve(OS.map(e.types,function(e){return Sd(e,t,r)}));if(2097152&e.flags)return he(OS.map(e.types,function(e){return Sd(e,t,r)}));if(!(32&OS.getObjectFlags(e)))return e===Ar?Ar:2&e.flags?ae:131073&e.flags?$r:bd(e,(r?128:402653316)|(t?0:12584),t===S&&!r);var n=e,i=t,a=r,o=vl(n),s=bl(n),c=xl(n.target||n);if(!c&&!a)return s;var l=[];if(Tl(n)){if(jd(s))return md(n,i);yl(Ql(Cl(n)),8576,i,u)}else by(gl(s),u);return jd(s)&&by(s,u),1048576&(i=a?Sy(he(l),function(e){return!(5&e.flags)}):he(l)).flags&&1048576&s.flags&&Zu(i.types)===Zu(s.types)?s:i;function u(e){e=c?be(c,zp(n.mapper,o,e)):e;l.push(e===ne?Yr:e)}}}function Td(e){var t;return S?e:(t=(Yt=Yt||T_("Extract",2,!0)||L)===L?void 0:Yt)?o_(t,[e,ne]):ne}function Cd(t,r){var n=OS.findIndex(r,function(e){return!!(1179648&e.flags)});if(0<=n)return pd(r)?Cy(r[n],function(e){return Cd(t,OS.replaceElement(r,n,e))}):R;if(OS.contains(r,Ar))return Ar;var s=[],c=[],l=t[0];if(!function e(t,r){var n=OS.isArray(t);for(var i=0;ic:D1(e)>c))return 0;var l=x1(e=e.typeParameters&&e.typeParameters!==t.typeParameters?hv(e,t=Ju(t),void 0,o):e),u=C1(e),_=C1(t),d=((u||_)&&be(u||_,s),t.declaration?t.declaration.kind:0),p=!(3&r)&&X&&171!==d&&170!==d&&173!==d,f=-1,d=Fu(e);if(d&&d!==Wr){var g=Fu(t);if(g){if(!(x=!p&&o(d,g,!1)||o(g,d,n)))return n&&i(OS.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;f&=x}}for(var m=u||_?Math.min(l,c):Math.max(l,c),y=u||_?m-1:-1,h=0;h=D1(e)&&h=o.types.length&&a.length%o.types.length==0){var l=W(c,o.types[s%o.types.length],3,!1,void 0,n);if(l){i&=l;continue}}l=W(c,t,1,r,void 0,n);if(!l)return 0;i&=l}return i})(e,t,r&&!(131068&e.flags),n);if(1048576&t.flags)return _(Wg(e),t,r&&!(131068&e.flags)&&!(131068&t.flags));if(2097152&t.flags){for(var i=e,a=r,o=2,s=-1,n=(n=t).types,c=0,l=n;c";continue}r+="-"+a.id}return r}}function Yf(e,t,r,n,i){n===Ti&&e.id>t.id&&(n=e,e=t,t=n);n=r?":"+r:"";return Qf(e)&&Qf(t)?Xf(e,t,n,i):"".concat(e.id,",").concat(t.id).concat(n)}function Zf(e,t){if(!(6&OS.getCheckFlags(e)))return t(e);for(var r=0,n=e.containingType.types;r=o&&n<=++a)return 1;o=c.id}}}function ng(e){if(524288&e.flags&&!Pm(e)){if(OS.getObjectFlags(e)&&e.node)return e.node;if(e.symbol&&!(16&OS.getObjectFlags(e)&&32&e.symbol.flags))return e.symbol;if(De(e))return e.target}if(262144&e.flags)return e.symbol;if(8388608&e.flags){for(;8388608&(e=e.objectType).flags;);return e}return 16777216&e.flags?e.root:e}function ig(e,t,r){if(e===t)return-1;var n=24&OS.getDeclarationModifierFlagsFromSymbol(e);if(n!=(24&OS.getDeclarationModifierFlagsFromSymbol(t)))return 0;if(n){if(Fx(e)!==Fx(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return K1(e)!==K1(t)?0:r(de(e),de(t))}function ag(e,t,r,n,i,a){if(e===t)return-1;if(d=t,r=r,l=x1(_=e),u=x1(d),f=D1(_),p=D1(d),_=S1(_),d=S1(d),(l!==u||f!==p||_!==d)&&!(r&&f<=p))return 0;if(OS.length(e.typeParameters)!==OS.length(t.typeParameters))return 0;if(t.typeParameters){for(var o=wp(e.typeParameters,t.typeParameters),s=0;sOS.length(t.typeParameters)&&(r=Yc(r,OS.last(ye(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}}function fg(e){return $?e===Gr:e===Or}function gg(e){e=_g(e);return e&&fg(e)}function mg(e){return De(e)||!!fe(e,"0")}function yg(e){return dg(e)||mg(e)}function hg(e){return!(240512&e.flags)}function vg(e){return!!(109440&e.flags)}function bg(e){e=zl(e);return 2097152&e.flags?OS.some(e.types,vg):vg(e)}function xg(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||OS.every(e.types,vg):vg(e))}function Dg(e){return 1024&e.flags?kc(e):402653312&e.flags?ne:256&e.flags?ie:2048&e.flags?jr:512&e.flags?Vr:1048576&e.flags?(n="B".concat((t=e).id),null!=(r=Gi(n))?r:Qi(n,Cy(t,Dg))):e;var t,r,n}function Sg(e){return 1024&e.flags&&vp(e)?kc(e):128&e.flags&&vp(e)?ne:256&e.flags&&vp(e)?ie:2048&e.flags&&vp(e)?jr:512&e.flags&&vp(e)?Vr:1048576&e.flags?Cy(e,Sg):e}function Tg(e){return 8192&e.flags?qr:1048576&e.flags?Cy(e,Tg):e}function Cg(e,t){return hp(e=f2(e,t)?e:Tg(Sg(e)))}function Eg(e,t,r,n){return e=e&&vg(e)?Cg(e,t?px(r,t,n):void 0):e}function De(e){return!!(4&OS.getObjectFlags(e)&&8&e.target.objectFlags)}function kg(e){return De(e)&&!!(8&e.target.combinedFlags)}function Ng(e){return kg(e)&&1===e.target.elementFlags.length}function Ag(e){return Fg(e,e.target.fixedLength)}function Fg(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var i=i_(e)-r;if(tf.target.minLength||!a.target.hasRestElement&&(f.target.hasRestElement||a.target.fixedLength=e.length?i:void 0}function Gm(e){var t,r=e.types;if(!(r.length<10||32768&OS.getObjectFlags(e)||OS.countWhere(r,function(e){return!!(59506688&e.flags)})<10))return void 0===e.keyPropertyName&&(r=(t=OS.forEach(r,function(e){return 59506688&e.flags?OS.forEach(pe(e),function(e){return vg(de(e))?e.escapedName:void 0}):void 0}))&&Hm(r,t),e.keyPropertyName=r?t:"",e.constituentMap=r),e.keyPropertyName.length?e.keyPropertyName:void 0}function Qm(e,t){e=null==(e=e.constituentMap)?void 0:e.get(hp(t).id);return e!==te?e:void 0}function Xm(e,t){var r=Gm(e),t=r&&ys(t,r);return t&&Qm(e,t)}function Ym(e,t){return Jm(e,t)||Km(e,t)}function Zm(e,t){if(e.arguments)for(var r=0,n=e.arguments;r=D1(a)&&_>=D1(o),g=n<=_?void 0:g1(e,_),m=i<=_?void 0:g1(t,_),f=B(1|(f&&!p?16777216:0),(g===m?g:g?m?void 0:g:m)||"arg".concat(_));f.type=p?z_(d):d,u[_]=f}{var y;l&&((y=B(1,"args")).type=z_(h1(o,s)),o===t&&(y.type=be(y.type,r)),u[s]=y)}return u}(r,t,n),s=function(e,t,r){return e&&t?(r=he([de(e),be(de(t),r)]),qg(e,r)):e||t}(r.thisParameter,t.thisParameter,n),c=Math.max(r.minArgumentCount,t.minArgumentCount),(a=$c(a,i,s,o,void 0,void 0,c,39&(r.flags|t.flags))).compositeKind=2097152,a.compositeSignatures=OS.concatenate(2097152===r.compositeKind&&r.compositeSignatures||[r],[t]),n&&(a.mapper=2097152===r.compositeKind&&r.mapper&&r.compositeSignatures?jp(r.mapper,n):n),a):void 0:e}}):void 0}function B0(e,i){e=ge(e,0),e=OS.filter(e,function(e){for(var t=i,r=0;r=D1(r)&&(S1(r)||c=e&&t.length<=r}function gv(e){return yv(e,0,!1)}function mv(e){return yv(e,0,!1)||yv(e,1,!1)}function yv(e,t,r){if(524288&e.flags){e=Fl(e);if(r||0===e.properties.length&&0===e.indexInfos.length){if(0===t&&1===e.callSignatures.length&&0===e.constructSignatures.length)return e.callSignatures[0];if(1===t&&1===e.constructSignatures.length&&0===e.callSignatures.length)return e.constructSignatures[0]}}}function hv(e,t,r,n){var i=rm(e.typeParameters,e,0,n),n=T1(t),n=r&&(n&&262144&n.flags?r.nonFixingMapper:r.mapper);return em(n?Kp(t,n):t,e,function(e,t){km(i.inferences,e,t)}),r||tm(t,e,function(e,t){km(i.inferences,e,t,128)}),Lu(e,Lm(i),OS.isInJSFile(t.declaration))}function vv(e){var t;return e?(t=V(e),OS.isOptionalChainRoot(e.parent)?Lg(t):OS.isOptionalChain(e.parent)?Bg(t):t):Wr}function bv(e,t,r,n,i){if(OS.isJsxOpeningLikeElement(e))return a=n,c=i,s=M0(s=t,o=e),o=l2(o.attributes,s,c,a),km(c.inferences,o,s),Lm(c);167!==e.kind&&(a=OS.every(t.typeParameters,function(e){return!!ql(e)}),o=I0(e,a?8:0))&&lm(s=me(t))&&(c=O0(e),!a&&I0(e,8)!==o||(l=(l=gv(u=be(o,cm((void 0===(u=1)&&(u=0),(l=c)&&nm(OS.map(l.inferences,sm),l.signature,l.flags|u,l.compareTypes))))))&&l.typeParameters?zu(Ru(l,l.typeParameters)):u,km(i.inferences,l,s,128)),u=rm(t.typeParameters,t,i.flags),l=be(o,c&&c.returnMapper),km(u.inferences,l,s),i.returnMapper=OS.some(u.inferences,x2)?cm((f=u,(_=OS.filter(f.inferences,x2)).length?nm(OS.map(_,sm),f.signature,f.flags,f.compareTypes):void 0)):void 0);var a,o,s,c,l,u,_,d=C1(t),p=d?Math.min(x1(t)-1,r.length):r.length,f=(d&&262144&d.flags&&(_=OS.find(i.inferences,function(e){return e.typeParameter===d}))&&(_.impliedArity=OS.findIndex(r,lv,p)<0?r.length-p:void 0),Fu(t));f&&lm(f)&&(e=kv(e),km(i.inferences,vv(e),f));for(var g=0;gt.length;)n.pop();for(;n.length=OS.ModuleKind.ES2015&&!ko(n)&&!OS.some(n.declarations,OS.isTypeOnlyImportOrExportDeclaration)&&(t=se(e,OS.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),e=OS.find(n.declarations||OS.emptyArray,Na))&&OS.addRelatedInfo(t,OS.createDiagnosticForNode(e,OS.Diagnostics._0_was_imported_here,OS.idText(r))):$a(n))}function cb(e){e=lb(e);e&&OS.isEntityName(e)&&sb(e,!0)}function lb(e){if(e)switch(e.kind){case 190:case 189:return ub(e.types);case 191:return ub([e.trueType,e.falseType]);case 193:case 199:return lb(e.type);case 180:return e.typeName}}function ub(e){for(var t,r=0,n=e;r=OS.ModuleKind.ES2015&&!(v>=OS.ModuleKind.Node16&&OS.getSourceFileOfNode(n).impliedNodeFormat===OS.ModuleKind.CommonJS)||!r||!kb(n,r,"require")&&!kb(n,r,"exports")||OS.isModuleDeclaration(n)&&1!==OS.getModuleInstanceState(n)||308===(n=ms(n)).kind&&OS.isExternalOrCommonJsModule(n)&&$i("noEmit",r,OS.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,OS.declarationNameToString(r),OS.declarationNameToString(r)),n=e,!(r=t)||4<=U||!kb(n,r,"Promise")||OS.isModuleDeclaration(n)&&1!==OS.getModuleInstanceState(n)||308===(n=ms(n)).kind&&OS.isExternalOrCommonJsModule(n)&&2048&n.flags&&$i("noEmit",r,OS.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,OS.declarationNameToString(r),OS.declarationNameToString(r)),n=e,r=t,U<=8&&(kb(n,r,"WeakMap")||kb(n,r,"WeakSet"))&&fi.push(n),r=e,(n=t)&&2<=U&&U<=8&&kb(r,n,"Reflect")&&gi.push(r),OS.isClassLike(e)?(Dx(t,OS.Diagnostics.Class_name_cannot_be_0),16777216&e.flags||(n=t,1<=U&&"Object"===n.escapedText&&(v>i;case 49:return n>>>i;case 47:return n<=OS.ModuleKind.ES2015&&void 0===OS.getSourceFileOfNode(e).impliedNodeFormat)||e.isTypeOnly||16777216&e.flags||J(e,OS.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead))}(r);case 275:return Gx(r);case 274:return function(e){var t,r,n;Qx(e,e.isExportEquals?OS.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:OS.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration)||(264!==(t=(308===e.parent.kind?e:e.parent).parent).kind||OS.isAmbientModule(t)?(!aS(e)&&OS.hasEffectiveModifiers(e)&&kS(e,OS.Diagnostics.An_export_assignment_cannot_have_modifiers),(r=OS.getEffectiveTypeAnnotationNode(e))&&gf(u2(e.expression),K(r),e.expression),79===e.expression.kind?((!(n=ro(r=e.expression,67108863,!0,!0,e))||($y(n,r),111551&Ga(2097152&n.flags?Ha(n):n)))&&u2(e.expression),OS.getEmitDeclarations(Z)&&ds(e.expression,!0)):u2(e.expression),$x(t),16777216&e.flags&&!OS.isEntityNameExpression(e.expression)&&J(e.expression,OS.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!e.isExportEquals||16777216&e.flags||(v>=OS.ModuleKind.ES2015&&OS.getSourceFileOfNode(e).impliedNodeFormat!==OS.ModuleKind.CommonJS?J(e,OS.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):v===OS.ModuleKind.System&&J(e,OS.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))):e.isExportEquals?se(e,OS.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):se(e,OS.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module))}(r);case 239:case 256:return FS(r);case 279:(function(e){db(e)})(r)}}(Se=e),Se=t)}function tD(e){OS.isArray(e)&&OS.forEach(e,function(e){OS.isJSDocLinkLike(e)&&Q(e)})}function rD(e){OS.isInJSFile(e)||J(e,OS.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function nD(e){var t=H(OS.getSourceFileOfNode(e));1&t.flags||(t.deferredNodes||(t.deferredNodes=new OS.Set),t.deferredNodes.add(e))}function iD(e){null!==OS.tracing&&void 0!==OS.tracing&&OS.tracing.push("check","checkDeferredNode",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});var t,r,n,i,a,o,s=Se;switch(d=0,(Se=e).kind){case 210:case 211:case 212:case 167:case 283:sv(e);break;case 215:case 216:case 171:case 170:n=e,OS.Debug.assert(171!==n.kind||OS.isObjectLiteralMethod(n)),a=OS.getFunctionFlags(n),o=Iu(n),j1(n,o),n.body&&(OS.getEffectiveReturnTypeNode(n)||me(Cu(n)),238===n.body.kind?Q(n.body):(i=V(n.body),(o=o&&mx(o,a))&&mf(2==(3&a)?$2(i,!1,n.body,OS.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,o,n.body,n.body)));break;case 174:case 175:B2(e);break;case 228:a=e,OS.forEach(a.members,Q),gb(a);break;case 165:i=e,(OS.isInterfaceDeclaration(i.parent)||OS.isClassLike(i.parent)||OS.isTypeAliasDeclaration(i.parent))&&(n=Gf(o=Fc(G(i))))&&(r=G(i.parent),!OS.isTypeAliasDeclaration(i.parent)||48&OS.getObjectFlags(Pc(r))?32768!==n&&65536!==n||(null!==OS.tracing&&void 0!==OS.tracing&&OS.tracing.push("checkTypes","checkTypeParameterDeferred",{parent:Pc(r).id,id:o.id}),t=Wf(r,o,65536===n?Cn:Tn),r=Wf(r,o,65536===n?Tn:Cn),h=n=o,gf(t,r,i,OS.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),h=n,null!==OS.tracing&&void 0!==OS.tracing&&OS.tracing.pop()):se(i,OS.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types));break;case 282:fh(e);break;case 281:fh((t=e).openingElement),Z0(t.closingElement.tagName)?ih(t.closingElement):V(t.closingElement.tagName),eh(t)}Se=s,null!==OS.tracing&&void 0!==OS.tracing&&OS.tracing.pop()}function aD(e){{var t;null!==OS.tracing&&void 0!==OS.tracing&&OS.tracing.push("check","checkSourceFile",{path:e.path},!0),OS.performance.mark("beforeCheck"),1&(e=H(a=e)).flags||OS.skipTypeChecking(a,Z,g)||(16777216&(t=a).flags&&function(e){for(var t=0,r=e.statements;t=ni.length)&&(null==(e=ni[e])?void 0:e.flags)||0}function UD(e){return Lx(e.parent),H(e).enumMemberValue}function KD(e){switch(e.kind){case 302:case 208:case 209:return!0}return!1}function VD(e){if(302===e.kind)return UD(e);e=H(e).resolvedSymbol;if(e&&8&e.flags){e=e.valueDeclaration;if(OS.isEnumConst(e.parent))return UD(e)}}function qD(e){return 524288&e.flags&&0".length-r,OS.Diagnostics.Type_parameter_list_cannot_be_empty)}function uS(e){if(3<=U){var t=e.body&&OS.isBlock(e.body)&&OS.findUseStrictPrologue(e.body.statements);if(t){e=e.parameters;e=OS.filter(e,function(e){return!!e.initializer||OS.isBindingPattern(e.name)||OS.isRestParameter(e)});if(OS.length(e))return OS.forEach(e,function(e){OS.addRelatedInfo(se(e,OS.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),OS.createDiagnosticForNode(t,OS.Diagnostics.use_strict_directive_used_here))}),e=e.map(function(e,t){return 0===t?OS.createDiagnosticForNode(e,OS.Diagnostics.Non_simple_parameter_declared_here):OS.createDiagnosticForNode(e,OS.Diagnostics.and_here)}),OS.addRelatedInfo.apply(void 0,__spreadArray([se(t,OS.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],e,!1)),!0}}return!1}function _S(e){var t=OS.getSourceFileOfNode(e);return aS(e)||lS(e.typeParameters,t)||function(e){for(var t=!1,r=e.length,n=0;n".length-r,OS.Diagnostics.Type_argument_list_cannot_be_empty));var r}function pS(e){var t,r=e.types;if(!cS(r))return r&&0===r.length?(t=OS.tokenToString(e.token),NS(e,r.pos,0,OS.Diagnostics._0_list_cannot_be_empty,t)):void OS.some(r,fS)}function fS(e){return OS.isExpressionWithTypeArguments(e)&&OS.isImportKeyword(e.expression)&&e.typeArguments?J(e,OS.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):dS(e,e.typeArguments)}function gS(e){return 164===e.kind&&223===e.expression.kind&&27===e.expression.operatorToken.kind?J(e.expression,OS.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):void 0}function mS(e){return e.asteriskToken&&(OS.Debug.assert(259===e.kind||215===e.kind||171===e.kind),16777216&e.flags?J(e.asteriskToken,OS.Diagnostics.Generators_are_not_allowed_in_an_ambient_context):!e.body&&J(e.asteriskToken,OS.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator))}function yS(e,t){return e&&J(e,t)}function hS(e,t){return e&&J(e,t)}function vS(e){if(!FS(e))if(247!==e.kind||!e.awaitModifier||32768&e.flags)if(!OS.isForOfStatement(e)||32768&e.flags||!OS.isIdentifier(e.initializer)||"async"!==e.initializer.escapedText){if(258===e.initializer.kind){var t=e.initializer;if(!CS(t)){var r=t.declarations;if(!r.length)return;if(1a.line||m.generatedLine===a.line&&m.generatedCharacter>a.character))break;i&&(m.generatedLine>=5)&&(t|=32),w(0<=(t=t)&&t<26?65+t:26<=t&&t<52?97+t-26:52<=t&&t<62?48+t-52:62===t?43:63===t?47:J.Debug.fail("".concat(t,": not a base64 value")))}while(0=i.length)return p("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var n=65<=(n=i.charCodeAt(a))&&n<=90?n-65:97<=n&&n<=122?n-97+26:48<=n&&n<=57?n-48+52:43===n?62:47===n?63:-1;if(-1==n)return p("Invalid character in VLQ"),-1;e=0!=(32&n),r|=(31&n)<>=1:r=-(r>>=1),r}}function p(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function f(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function g(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function m(e,t){return J.Debug.assert(e.sourceIndex===t.sourceIndex),J.compareValues(e.sourcePosition,t.sourcePosition)}function y(e,t){return J.compareValues(e.generatedPosition,t.generatedPosition)}function h(e){return e.sourcePosition}function v(e){return e.generatedPosition}J.getLineInfo=function(t,r){return{getLineCount:function(){return r.length},getLineText:function(e){return t.substring(r[e],r[e+1])}}},J.tryGetSourceMappingURL=function(e){for(var t=e.getLineCount()-1;0<=t;t--){var r=e.getLineText(t),n=i.exec(r);if(n)return J.trimStringEnd(n[1]);if(!r.match(a))break}},J.isRawSourceMap=r,J.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(r(t))return t}catch(e){}},J.decodeMappings=z,J.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},J.isSourceMapping=p,J.createDocumentPositionMapper=function(i,a,e){var r,o,s,e=J.getDirectoryPath(e),t=a.sourceRoot?J.getNormalizedAbsolutePath(a.sourceRoot,e):e,c=J.getNormalizedAbsolutePath(a.file,e),l=i.getSourceFileLike(c),u=a.sources.map(function(e){return J.getNormalizedAbsolutePath(e,t)}),_=new J.Map(u.map(function(e,t){return[i.getCanonicalFileName(e),t]}));return{getSourcePosition:function(e){var t=function(){if(void 0===o){for(var e=[],t=0,r=d();t=be.ModuleKind.ES2015)&&!be.isJsonSourceFile(e);return k.updateSourceFile(e,be.visitLexicalEnvironment(e.statements,U,D,0,t))}function i(e){return!!(8192&e.transformFlags)}function M(e){return be.hasDecorators(e)||be.some(e.typeParameters)||be.some(e.heritageClauses,i)||be.some(e.members,i)}function L(e){var t=[],r=be.getFirstConstructorWithBody(e),n=r&&be.filter(r.parameters,function(e){return be.isParameterPropertyDeclaration(e,r)});if(n)for(var i=0,a=n;i=c.length&&null!=(a=t.body.multiLine)?a:0=e.end))for(var n=ot.getEnclosingBlockScopeContainer(e);r;){if(r===n||r===e)return;if(ot.isClassElement(r)&&r.parent===e)return 1;r=r.parent}return}(t,e)))return ot.setTextRange(Ae.getGeneratedNameForNode(ot.getNameOfDeclaration(t)),e)}return e}(e);case 108:return function(e){if(1&i&&16&ke)return ot.setTextRange(Ae.createUniqueName("_this",48),e);return e}(e)}return e}(t);if(ot.isIdentifier(t))return function(e){if(2&i&&!ot.isInternalName(e)){var t=ot.getParseTreeNode(e,ot.isIdentifier);if(t&&function(e){switch(e.parent.kind){case 205:case 260:case 263:case 257:return e.parent.name===e&&f.isDeclarationWithCollidingName(e.parent)}return}(t))return ot.setTextRange(Ae.getGeneratedNameForNode(t),e)}return e}(t);return t},ot.chainBundle(Ce,function(e){if(e.isDeclarationFile)return e;o=(Ee=e).text;e=function(e){var t=Pe(8064,64),r=[],n=[],i=(l(),Ae.copyPrologue(e.statements,r,!1,Ie));ot.addRange(n,ot.visitNodes(e.statements,Ie,ot.isStatement,i)),a&&n.push(Ae.createVariableStatement(void 0,Ae.createVariableDeclarationList(a)));return Ae.mergeLexicalEnvironment(r,p()),m(r,e),we(t,0,0),Ae.updateSourceFile(e,ot.setTextRange(Ae.createNodeArray(ot.concatenate(r,n)),e.statements))}(e);return ot.addEmitHelpers(e,Ce.readEmitHelpers()),Ee=void 0,o=void 0,a=void 0,ke=0,e});function Pe(e,t){var r=ke;return ke=32767&(ke&~e|t),r}function we(e,t,r){ke=-32768&(ke&~t|r)|e}function Ke(e){return 0!=(8192&ke)&&250===e.kind&&!e.expression}function n(e){return 0!=(1024&e.transformFlags)||void 0!==Ne||8192&ke&&4194304&(t=e).transformFlags&&(ot.isReturnStatement(t)||ot.isIfStatement(t)||ot.isWithStatement(t)||ot.isSwitchStatement(t)||ot.isCaseBlock(t)||ot.isCaseClause(t)||ot.isDefaultClause(t)||ot.isTryStatement(t)||ot.isCatchClause(t)||ot.isLabeledStatement(t)||ot.isIterationStatement(t,!1)||ot.isBlock(t))||ot.isIterationStatement(e,!1)&&I(e)||0!=(33554432&ot.getEmitFlags(e));var t}function Ie(e){return n(e)?s(e,!1):e}function Oe(e){return n(e)?s(e,!0):e}function Ve(e){var t,r;return n(e)?(t=ot.getOriginalNode(e),ot.isPropertyDeclaration(t)&&ot.hasStaticModifier(t)?(t=Pe(32670,16449),r=s(e,!1),we(t,98304,0),r):s(e,!1)):e}function Me(e){return 106===e.kind?it(!0):Ie(e)}function s(e,L){switch(e.kind){case 124:return;case 260:var t=e,r=Ae.createVariableDeclaration(Ae.getLocalName(t,!0),void 0,void 0,He(t)),n=(ot.setOriginalNode(r,t),[]),r=Ae.createVariableStatement(void 0,Ae.createVariableDeclarationList([r])),i=(ot.setOriginalNode(r,t),ot.setTextRange(r,t),ot.startOnNewLine(r),n.push(r),ot.hasSyntacticModifier(t,1)&&(i=ot.hasSyntacticModifier(t,1024)?Ae.createExportDefault(Ae.getLocalName(t)):Ae.createExternalModuleExport(Ae.getLocalName(t)),ot.setOriginalNode(i,r),n.push(i)),ot.getEmitFlags(t));return 0==(4194304&i)&&(n.push(Ae.createEndOfDeclarationMarker(t)),ot.setEmitFlags(r,4194304|i)),ot.singleOrMany(n);case 228:return He(e);case 166:t=e;return t.dotDotDotToken?void 0:ot.isBindingPattern(t.name)?ot.setOriginalNode(ot.setTextRange(Ae.createParameterDeclaration(void 0,void 0,Ae.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?ot.setOriginalNode(ot.setTextRange(Ae.createParameterDeclaration(void 0,void 0,t.name,void 0,void 0,void 0),t),t):t;case 259:return r=e,i=Ne,Ne=void 0,n=Pe(32670,65),Se=ot.visitParameterList(r.parameters,Ie,Ce),Te=Re(r),M=32768&ke?Ae.getLocalName(r):r.name,we(n,98304,0),Ne=i,Ae.updateFunctionDeclaration(r,ot.visitNodes(r.modifiers,Ie,ot.isModifier),r.asteriskToken,M,void 0,Se,void 0,Te);case 216:return 16384&(M=e).transformFlags&&!(16384&ke)&&(ke|=65536),Se=Ne,Ne=void 0,Te=Pe(15232,66),O=Ae.createFunctionExpression(void 0,void 0,void 0,void 0,ot.visitParameterList(M.parameters,Ie,Ce),void 0,Re(M)),ot.setTextRange(O,M),ot.setOriginalNode(O,M),ot.setEmitFlags(O,8),we(Te,0,0),Ne=Se,O;case 215:return O=e,P=262144&ot.getEmitFlags(O)?Pe(32662,69):Pe(32670,65),xe=Ne,Ne=void 0,w=ot.visitParameterList(O.parameters,Ie,Ce),De=Re(O),I=32768&ke?Ae.getLocalName(O):O.name,we(P,98304,0),Ne=xe,Ae.updateFunctionExpression(O,void 0,O.asteriskToken,I,void 0,w,void 0,De);case 257:return Be(e);case 79:return We(e);case 258:P=e;return 3&P.flags||524288&P.transformFlags?(3&P.flags&&at(),xe=ot.flatMap(P.declarations,1&P.flags?Xe:Be),I=Ae.createVariableDeclarationList(xe),ot.setOriginalNode(I,P),ot.setTextRange(I,P),ot.setCommentRange(I,P),524288&P.transformFlags&&(ot.isBindingPattern(P.declarations[0].name)||ot.isBindingPattern(ot.last(P.declarations).name))&&ot.setSourceMapRange(I,function(e){for(var t=-1,r=-1,n=0,i=e;n($.isExportName(t)?1:0);return!1}((n=e).left)?$.flattenDestructuringAssignment(n,z,O,0,!i,X):$.visitEachChild(n,z,O);break;case 221:case 222:var s=e,c=t;if((45===s.operator||46===s.operator)&&$.isIdentifier(s.operand)&&!$.isGeneratedIdentifier(s.operand)&&!$.isLocalName(s.operand)&&!$.isDeclarationNameOfEnumOrNamespace(s.operand)){var l=T(s.operand);if(l){var u=void 0,_=$.visitNode(s.operand,z,$.isExpression);$.isPrefixUnaryExpression(s)?_=M.updatePrefixUnaryExpression(s,_):(_=M.updatePostfixUnaryExpression(s,_),c||(u=M.createTempVariable(y),_=M.createAssignment(u,_),$.setTextRange(_,s)),_=M.createComma(_,M.cloneNode(s.operand)),$.setTextRange(_,s));for(var d=0,p=l;d=g.ModuleKind.Node16?(a=e,g.Debug.assert(g.isExternalModuleImportEqualsDeclaration(a),"import= for internal module references should be handled in an earlier transformer."),i=function(e,t){g.hasSyntacticModifier(t,1)&&(e=g.append(e,c.createExportDeclaration(void 0,t.isTypeOnly,c.createNamedExports([c.createExportSpecifier(!1,void 0,g.idText(t.name))]))));return e}(i=g.append(void 0,g.setOriginalNode(g.setTextRange(c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(c.cloneNode(a.name),void 0,void 0,function(e){var e=g.getExternalModuleNameLiteral(c,e,g.Debug.checkDefined(o),l,u,_),t=[];e&&t.push(e);{var r,n;s||(e=c.createUniqueName("_createRequire",48),r=c.createImportDeclaration(void 0,c.createImportClause(!1,void 0,c.createNamedImports([c.createImportSpecifier(!1,c.createIdentifier("createRequire"),e)])),c.createStringLiteral("module")),n=c.createUniqueName("__require",48),n=c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(n,void 0,void 0,c.createCallExpression(c.cloneNode(e),void 0,[c.createPropertyAccessExpression(c.createMetaProperty(100,c.createIdentifier("meta")),c.createIdentifier("url"))]))],2<=d?2:0)),s=[r,n])}e=s[1].declarationList.declarations[0].name;return g.Debug.assertNode(e,g.isIdentifier),c.createCallExpression(c.cloneNode(e),void 0,t)}(a))],2<=d?2:0)),a),a)),a),g.singleOrMany(i)):void 0;case 274:return(a=e).isExportEquals?void 0:a;case 275:var t,r,n,i=e;return void 0!==_.module&&_.module>g.ModuleKind.ES2015?i:i.exportClause&&g.isNamespaceExport(i.exportClause)&&i.moduleSpecifier?(t=i.exportClause.name,n=c.getGeneratedNameForNode(t),r=c.createImportDeclaration(void 0,c.createImportClause(!1,void 0,c.createNamespaceImport(n)),i.moduleSpecifier,i.assertClause),g.setOriginalNode(r,i.exportClause),n=g.isExportNamespaceAsDefaultDeclaration(i)?c.createExportDefault(n):c.createExportDeclaration(void 0,!1,c.createNamedExports([c.createExportSpecifier(!1,n,t)])),g.setOriginalNode(n,i),[r,n]):i}var a,i;return e}}}(ts=ts||{}),!function(d){d.transformNodeModule=function(t){var n,r=t.onSubstituteNode,i=t.onEmitNode,a=d.transformECMAScriptModule(t),o=t.onSubstituteNode,s=t.onEmitNode,c=(t.onSubstituteNode=r,t.onEmitNode=i,d.transformModule(t)),l=t.onSubstituteNode,u=t.onEmitNode;return t.onSubstituteNode=function(e,t){return d.isSourceFile(t)?r(e,n=t):(n?n.impliedNodeFormat===d.ModuleKind.ESNext?o:l:r)(e,t)},t.onEmitNode=function(e,t,r){d.isSourceFile(t)&&(n=t);return(n?n.impliedNodeFormat!==d.ModuleKind.ESNext?u:s:i)(e,t,r)},t.enableSubstitution(308),t.enableEmitNotification(308),function(e){return(308===e.kind?_:function(e){return t.factory.createBundle(d.map(e.sourceFiles,_),e.prepends)})(e)};function _(e){return e.isDeclarationFile||(e=((n=e).impliedNodeFormat===d.ModuleKind.ESNext?a:c)(e),n=void 0,d.Debug.assert(d.isSourceFile(e))),e}}}(ts=ts||{}),!function(n){function e(r){return n.isVariableDeclaration(r)||n.isPropertyDeclaration(r)||n.isPropertySignature(r)||n.isPropertyAccessExpression(r)||n.isBindingElement(r)||n.isConstructorDeclaration(r)?e:n.isSetAccessor(r)||n.isGetAccessor(r)?function(e){e=175===r.kind?n.isStatic(r)?e.errorModuleName?n.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?n.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:n.isStatic(r)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?2===e.accessibility?n.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:e,errorNode:r.name,typeName:r.name}}:n.isConstructSignatureDeclaration(r)||n.isCallSignatureDeclaration(r)||n.isMethodDeclaration(r)||n.isMethodSignature(r)||n.isFunctionDeclaration(r)||n.isIndexSignatureDeclaration(r)?function(e){var t;switch(r.kind){case 177:t=e.errorModuleName?n.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:n.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 176:t=e.errorModuleName?n.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:n.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 178:t=e.errorModuleName?n.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:n.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 171:case 170:t=n.isStatic(r)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:n.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:n.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:260===r.parent.kind?e.errorModuleName?2===e.accessibility?n.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:n.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:n.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:e.errorModuleName?n.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:n.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 259:t=e.errorModuleName?2===e.accessibility?n.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:n.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:n.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return n.Debug.fail("This is unknown kind for signature: "+r.kind)}return{diagnosticMessage:t,errorNode:r.name||r}}:n.isParameter(r)?n.isParameterPropertyDeclaration(r,r.parent)&&n.hasSyntacticModifier(r.parent,8)?e:function(e){e=function(e){switch(r.parent.kind){case 173:return e.errorModuleName?2===e.accessibility?n.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 177:case 182:return e.errorModuleName?n.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 176:return e.errorModuleName?n.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 178:return e.errorModuleName?n.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 171:case 170:return n.isStatic(r.parent)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:260===r.parent.parent.kind?e.errorModuleName?2===e.accessibility?n.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?n.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 259:case 181:return e.errorModuleName?2===e.accessibility?n.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 175:case 174:return e.errorModuleName?2===e.accessibility?n.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return n.Debug.fail("Unknown parent for parameter: ".concat(n.Debug.formatSyntaxKind(r.parent.kind)))}}(e);return void 0!==e?{diagnosticMessage:e,errorNode:r,typeName:r.name}:void 0}:n.isTypeParameterDeclaration(r)?function(){var e;switch(r.parent.kind){case 260:e=n.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 261:e=n.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 197:e=n.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 182:case 177:e=n.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 176:e=n.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 171:case 170:e=n.isStatic(r.parent)?n.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:260===r.parent.parent.kind?n.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:n.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 181:case 259:e=n.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 262:e=n.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return n.Debug.fail("This is unknown parent for type parameter: "+r.parent.kind)}return{diagnosticMessage:e,errorNode:r,typeName:r.name}}:n.isExpressionWithTypeArguments(r)?function(){var e;e=n.isClassDeclaration(r.parent.parent)?n.isHeritageClause(r.parent)&&117===r.parent.token?n.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:r.parent.parent.name?n.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:n.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:n.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:e,errorNode:r,typeName:n.getNameOfDeclaration(r.parent.parent)}}:n.isImportEqualsDeclaration(r)?function(){return{diagnosticMessage:n.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:r,typeName:r.name}}:n.isTypeAliasDeclaration(r)||n.isJSDocTypeAlias(r)?function(e){return{diagnosticMessage:e.errorModuleName?n.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:n.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:n.isJSDocTypeAlias(r)?n.Debug.checkDefined(r.typeExpression):r.type,typeName:n.isJSDocTypeAlias(r)?n.getNameOfDeclaration(r):r.name}}:n.Debug.assertNever(r,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(n.Debug.formatSyntaxKind(r.kind)));function e(e){e=e;e=257===r.kind||205===r.kind?e.errorModuleName?2===e.accessibility?n.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:169===r.kind||208===r.kind||168===r.kind||166===r.kind&&n.hasSyntacticModifier(r.parent,8)?n.isStatic(r)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:260===r.parent.kind||166===r.kind?e.errorModuleName?2===e.accessibility?n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:e.errorModuleName?n.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0;return void 0!==e?{diagnosticMessage:e,errorNode:r,typeName:r.name}:void 0}}n.canProduceDiagnostics=function(e){return n.isVariableDeclaration(e)||n.isPropertyDeclaration(e)||n.isPropertySignature(e)||n.isBindingElement(e)||n.isSetAccessor(e)||n.isGetAccessor(e)||n.isConstructSignatureDeclaration(e)||n.isCallSignatureDeclaration(e)||n.isMethodDeclaration(e)||n.isMethodSignature(e)||n.isFunctionDeclaration(e)||n.isParameter(e)||n.isTypeParameterDeclaration(e)||n.isExpressionWithTypeArguments(e)||n.isImportEqualsDeclaration(e)||n.isTypeAliasDeclaration(e)||n.isConstructorDeclaration(e)||n.isIndexSignatureDeclaration(e)||n.isPropertyAccessExpression(e)||n.isJSDocTypeAlias(e)},n.createGetSymbolAccessibilityDiagnosticForNodeName=function(t){return n.isSetAccessor(t)||n.isGetAccessor(t)?function(e){e=function(e){return n.isStatic(t)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:260===t.parent.kind?e.errorModuleName?2===e.accessibility?n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:e.errorModuleName?n.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(e);return void 0!==e?{diagnosticMessage:e,errorNode:t,typeName:t.name}:void 0}:n.isMethodSignature(t)||n.isMethodDeclaration(t)?function(e){e=function(e){return n.isStatic(t)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:260===t.parent.kind?e.errorModuleName?2===e.accessibility?n.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:e.errorModuleName?n.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(e);return void 0!==e?{diagnosticMessage:e,errorNode:t,typeName:t.name}:void 0}:e(t)},n.createGetSymbolAccessibilityDiagnosticForNode=e}(ts=ts||{}),!function(ce){function a(e,t){t=t.text.substring(e.pos,e.end);return ce.stringContains(t,"@internal")}function r(e,t){var r,n,i=ce.getParseTreeNode(e);return i&&166===i.kind?(r=0<(r=i.parent.parameters.indexOf(i))?i.parent.parameters[r-1]:void 0,n=t.text,(r=r?ce.concatenate(ce.getTrailingCommentRanges(n,ce.skipTrivia(n,r.end+1,!1,!0)),ce.getLeadingCommentRanges(n,e.pos)):ce.getTrailingCommentRanges(n,ce.skipTrivia(n,e.pos,!1,!0)))&&r.length&&a(ce.last(r),t)):(n=i&&ce.getLeadingCommentRangesOfNode(i,t),!!ce.forEach(n,function(e){return a(e,t)}))}ce.getDeclarationDiagnostics=function(e,t,r){var n=e.getCompilerOptions();return ce.transformNodes(t,e,ce.factory,n,r?[r]:ce.filter(e.getSourceFiles(),ce.isSourceFileNotJson),[i],!1).diagnostics},ce.isInternalDeclaration=r;var le=531469;function i(d){function x(){return ce.Debug.fail("Diagnostic emitted without context")}var S,u,T,C,p,_,E,k,f,g,m,y,N=x,A=!0,h=!1,F=!1,P=!1,w=!1,I=d.factory,v=d.getEmitHost(),O={trackSymbol:function(e,t,r){return!(262144&e.flags)&&(t=n(M.isSymbolAccessible(e,t,r,!0)),b(M.getTypeReferenceDirectivesForSymbol(e,r)),t)},reportInaccessibleThisError:function(){(E||k)&&d.addDiagnostic(ce.createDiagnosticForNode(E||k,ce.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,t(),"this"))},reportInaccessibleUniqueSymbolError:function(){(E||k)&&d.addDiagnostic(ce.createDiagnosticForNode(E||k,ce.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,t(),"unique symbol"))},reportCyclicStructureError:function(){(E||k)&&d.addDiagnostic(ce.createDiagnosticForNode(E||k,ce.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,t()))},reportPrivateInBaseOfClassExpression:function(e){(E||k)&&d.addDiagnostic(ce.createDiagnosticForNode(E||k,ce.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,e))},reportLikelyUnsafeImportRequiredError:function(e){(E||k)&&d.addDiagnostic(ce.createDiagnosticForNode(E||k,ce.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,t(),e))},reportTruncationError:function(){(E||k)&&d.addDiagnostic(ce.createDiagnosticForNode(E||k,ce.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:v,trackReferencedAmbientModule:function(e,t){t=M.getTypeReferenceDirectivesForSymbol(t,67108863);if(ce.length(t))return b(t);t=ce.getSourceFileOfNode(e);g.set(ce.getOriginalNodeId(t),t)},trackExternalModuleSymbolOfImportTypeNode:function(e){h||(_=_||[]).push(e)},reportNonlocalAugmentation:function(t,e,r){var n=null==(e=e.declarations)?void 0:e.find(function(e){return ce.getSourceFileOfNode(e)===t}),e=ce.filter(r.declarations,function(e){return ce.getSourceFileOfNode(e)!==t});if(n&&e)for(var i=0,a=e;i"],e[8192]=["[","]"];var e,_n=e;function n(e,t,r,n,i,a){void 0===n&&(n=!1);var r=un.isArray(r)?r:un.getSourceFilesToEmit(e,r,n),o=e.getCompilerOptions();if(un.outFile(o)){var s=e.getPrependNodes();if(r.length||s.length){s=un.factory.createBundle(r,s);if(u=t(p(s,e,n),s))return u}}else{if(!i)for(var c=0,l=r;c"),yt(),ot(_.type),Nr(_);case 182:return kr(_=t),lt(_,_.modifiers),mt("new"),yt(),dt(_,_.typeParameters),ur(_,_.parameters),yt(),ft("=>"),yt(),ot(_.type),Nr(_);case 183:return ae=t,mt("typeof"),yt(),ot(ae.exprName),_t(ae,ae.typeArguments);case 184:return ae=t,ft("{"),ie=1&un.getEmitFlags(ae)?768:32897,pt(ae,ae.members,524288|ie),ft("}");case 185:return ot(t.elementType,at.parenthesizeNonArrayTypeOfPostfixType),ft("["),ft("]");case 186:return ct(22,(ie=t).pos,ft,ie),ne=1&un.getEmitFlags(ie)?528:657,pt(ie,ie.elements,524288|ne,at.parenthesizeElementTypeOfTupleType),ct(23,ie.elements.end,ft,ie);case 187:return ot(t.type,at.parenthesizeTypeOfOptionalType),ft("?");case 189:return pt(t,t.types,516,at.parenthesizeConstituentTypeOfUnionType);case 190:return pt(t,t.types,520,at.parenthesizeConstituentTypeOfIntersectionType);case 191:return ot((ne=t).checkType,at.parenthesizeCheckTypeOfConditionalType),yt(),mt("extends"),yt(),ot(ne.extendsType,at.parenthesizeExtendsTypeOfConditionalType),yt(),ft("?"),yt(),ot(ne.trueType),yt(),ft(":"),yt(),ot(ne.falseType);case 192:return re=t,mt("infer"),yt(),ot(re.typeParameter);case 193:return re=t,ft("("),ot(re.type),ft(")");case 230:return Lt(t);case 194:return mt("this");case 195:return br((te=t).operator,mt),yt(),v=146===te.operator?at.parenthesizeOperandOfReadonlyTypeOperator:at.parenthesizeOperandOfTypeOperator,ot(te.type,v);case 196:return ot((te=t).objectType,at.parenthesizeNonArrayTypeOfPostfixType),ft("["),ot(te.indexType),ft("]");case 197:var v=t,Te=un.getEmitFlags(v);return ft("{"),(1&Te?yt:(ht(),vt))(),v.readonlyToken&&(ot(v.readonlyToken),146!==v.readonlyToken.kind&&mt("readonly"),yt()),ft("["),At(3,v.typeParameter),v.nameType&&(yt(),mt("as"),yt(),ot(v.nameType)),ft("]"),v.questionToken&&(ot(v.questionToken),57!==v.questionToken.kind)&&ft("?"),ft(":"),yt(),ot(v.type),gt(),(1&Te?yt:(ht(),bt))(),pt(v,v.members,2),void ft("}");case 198:return st(t.literal);case 199:return ot((Te=t).dotDotDotToken),ot(Te.name),ot(Te.questionToken),ct(58,Te.name.end,ft,Te),yt(),ot(Te.type);case 200:return ot((ee=t).head),pt(ee,ee.templateSpans,262144);case 201:return ot((ee=t).type),ot(ee.literal);case 202:var Ce,b=t;return b.isTypeOf&&(mt("typeof"),yt()),mt("import"),ft("("),ot(b.argument),b.assertions&&(ft(","),yt(),ft("{"),yt(),mt("assert"),ft(":"),yt(),Ce=b.assertions.assertClause.elements,pt(b.assertions.assertClause,Ce,526226),yt(),ft("}")),ft(")"),b.qualifier&&(ft("."),ot(b.qualifier)),void _t(b,b.typeArguments);case 203:return Ce=t,ft("{"),pt(Ce,Ce.elements,525136),ft("}");case 204:return b=t,ft("["),pt(b,b.elements,524880),ft("]");case 205:var Ee=t;return ot(Ee.dotDotDotToken),Ee.propertyName&&(ot(Ee.propertyName),ft(":"),yt()),ot(Ee.name),void or(Ee.initializer,Ee.name.end,Ee,at.parenthesizeExpressionForDisallowedComma);case 236:return st((Ee=t).expression),ot(Ee.literal);case 237:return gt();case 238:return Rt($=t,!$.multiLine&&Cr($));case 240:return lt($=t,$.modifiers),ot($.declarationList),gt();case 239:return Bt(!1);case 241:return st((u=t).expression,at.parenthesizeExpressionOfExpressionStatement),Ze&&un.isJsonSourceFile(Ze)&&!un.nodeIsSynthesized(u.expression)||gt();case 242:return x=ct(99,(u=t).pos,mt,u),yt(),ct(20,x,ft,u),st(u.expression),ct(21,u.expression.end,ft,u),lr(u,u.thenStatement),u.elseStatement&&(xr(u,u.thenStatement,u.elseStatement),ct(91,u.thenStatement.end,mt,u),242===u.elseStatement.kind?(yt(),ot(u.elseStatement)):lr(u,u.elseStatement));case 243:var x=t;return ct(90,x.pos,mt,x),lr(x,x.statement),un.isBlock(x.statement)&&!tt?yt():xr(x,x.statement,x.expression),jt(x,x.statement.end),void gt();case 244:return jt(l=t,l.pos),lr(l,l.statement);case 245:return c=ct(97,(l=t).pos,mt,l),yt(),c=ct(20,c,ft,l),Jt(l.initializer),c=ct(26,l.initializer?l.initializer.end:c,ft,l),cr(l.condition),c=ct(26,l.condition?l.condition.end:c,ft,l),cr(l.incrementor),ct(21,l.incrementor?l.incrementor.end:c,ft,l),lr(l,l.statement);case 246:return s=ct(97,(c=t).pos,mt,c),yt(),ct(20,s,ft,c),Jt(c.initializer),yt(),ct(101,c.initializer.end,mt,c),yt(),st(c.expression),ct(21,c.expression.end,ft,c),lr(c,c.statement);case 247:Z=ct(97,(s=t).pos,mt,s),yt();var ke=s.awaitModifier;return ke&&(ot(ke),yt()),ct(20,Z,ft,s),Jt(s.initializer),yt(),ct(162,s.initializer.end,mt,s),yt(),st(s.expression),ct(21,s.expression.end,ft,s),lr(s,s.statement);case 248:return ct(86,(ke=t).pos,mt,ke),sr(ke.label),gt();case 249:return ct(81,(Z=t).pos,mt,Z),sr(Z.label),gt();case 250:return ct(105,(o=t).pos,mt,o),cr(o.expression&&zt(o.expression),zt),gt();case 251:return Y=ct(116,(o=t).pos,mt,o),yt(),ct(20,Y,ft,o),st(o.expression),ct(21,o.expression.end,ft,o),lr(o,o.statement);case 252:return X=ct(107,(Y=t).pos,mt,Y),yt(),ct(20,X,ft,Y),st(Y.expression),ct(21,Y.expression.end,ft,Y),yt(),ot(Y.caseBlock);case 253:return ot((X=t).label),ct(58,X.label.end,ft,X),yt(),ot(X.statement);case 254:return ct(109,(D=t).pos,mt,D),cr(zt(D.expression),zt),gt();case 255:var D=t;return ct(111,D.pos,mt,D),yt(),ot(D.tryBlock),D.catchClause&&(xr(D,D.tryBlock,D.catchClause),ot(D.catchClause)),void(D.finallyBlock&&(xr(D,D.catchClause||D.tryBlock,D.finallyBlock),ct(96,(D.catchClause||D.tryBlock).end,mt,D),yt(),ot(D.finallyBlock)));case 256:return hr(87,t.pos,mt),gt();case 257:return ot((i=t).name),ot(i.exclamationToken),ut(i.type),or(i.initializer,null!=(a=null!=(a=null==(a=i.type)?void 0:a.end)?a:null==(a=null==(a=i.name.emitNode)?void 0:a.typeNode)?void 0:a.end)?a:i.name.end,i,at.parenthesizeExpressionForDisallowedComma);case 258:return a=t,mt(un.isLet(a)?"let":un.isVarConst(a)?"const":"var"),yt(),pt(a,a.declarations,528);case 259:return Kt(t);case 260:return Ht(t);case 261:return lt(i=t,i.modifiers),mt("interface"),yt(),ot(i.name),dt(i,i.typeParameters),pt(i,i.heritageClauses,512),yt(),ft("{"),pt(i,i.members,129),ft("}");case 262:return lt(n=t,n.modifiers),mt("type"),yt(),ot(n.name),dt(n,n.typeParameters),yt(),ft("="),yt(),ot(n.type),gt();case 263:return lt(n=t,n.modifiers),mt("enum"),yt(),ot(n.name),yt(),ft("{"),pt(n,n.members,145),ft("}");case 264:var S=t,Ne=(lt(S,S.modifiers),1024&~S.flags&&(mt(16&S.flags?"namespace":"module"),yt()),ot(S.name),S.body);if(!Ne)return gt();for(;Ne&&un.isModuleDeclaration(Ne);)ft("."),ot(Ne.name),Ne=Ne.body;return yt(),void ot(Ne);case 265:return kr(S=t),un.forEach(S.statements,St),Rt(S,Cr(S)),Nr(S);case 266:return ct(18,(r=t).pos,ft,r),pt(r,r.clauses,129),ct(19,r.clauses.end,ft,r,!0);case 267:return T=ct(93,(r=t).pos,mt,r),yt(),T=ct(128,T,mt,r),yt(),T=ct(143,T,mt,r),yt(),ot(r.name),gt();case 268:var T=t,C=(lt(T,T.modifiers),ct(100,T.modifiers?T.modifiers.end:T.pos,mt,T),yt(),T.isTypeOnly&&(ct(154,T.pos,mt,T),yt()),ot(T.name),yt(),ct(63,T.name.end,ft,T),yt(),T.moduleReference);return(79===C.kind?st:ot)(C),void gt();case 269:C=t;return lt(C,C.modifiers),ct(100,C.modifiers?C.modifiers.end:C.pos,mt,C),yt(),C.importClause&&(ot(C.importClause),yt(),ct(158,C.importClause.end,mt,C),yt()),st(C.moduleSpecifier),C.assertClause&&sr(C.assertClause),void gt();case 270:var E=t;return E.isTypeOnly&&(ct(154,E.pos,mt,E),yt()),ot(E.name),E.name&&E.namedBindings&&(ct(27,E.name.end,ft,E),yt()),void ot(E.namedBindings);case 271:return Q=ct(41,(E=t).pos,ft,E),yt(),ct(128,Q,mt,E),yt(),ot(E.name);case 277:return Ae=ct(41,(Q=t).pos,ft,Q),yt(),ct(128,Ae,mt,Q),yt(),ot(Q.name);case 272:return Gt(t);case 273:return Qt(t);case 274:var Ae=t,k=ct(93,Ae.pos,mt,Ae);return yt(),Ae.isExportEquals?ct(63,k,fr,Ae):ct(88,k,mt,Ae),yt(),st(Ae.expression,Ae.isExportEquals?at.getParenthesizeRightSideOfBinaryForOperator(63):at.parenthesizeExpressionOfExportDefault),void gt();case 275:var k=t,Fe=(lt(k,k.modifiers),ct(93,k.pos,mt,k));return yt(),k.isTypeOnly&&(Fe=ct(154,Fe,mt,k),yt()),k.exportClause?ot(k.exportClause):Fe=ct(41,Fe,ft,k),k.moduleSpecifier&&(yt(),ct(158,k.exportClause?k.exportClause.end:Fe,mt,k),yt(),st(k.moduleSpecifier)),k.assertClause&&sr(k.assertClause),void gt();case 276:return Gt(t);case 278:return Qt(t);case 296:return ct(130,(Fe=t).pos,mt,Fe),yt(),Pe=Fe.elements,pt(Fe,Pe,526226);case 297:var Pe=t;return ot(Pe.name),ft(":"),yt(),Pe=Pe.value,0==(512&un.getEmitFlags(Pe))&&Qr(un.getCommentRange(Pe).pos),void ot(Pe);case 279:return;case 280:return G=t,mt("require"),ft("("),st(G.expression),ft(")");case 11:return G=t,$e.writeLiteral(G.text);case 283:case 286:var we,N=t;return ft("<"),un.isJsxOpeningElement(N)&&(we=Sr(N.tagName,N),Xt(N.tagName),_t(N,N.typeArguments),N.attributes.properties&&0");case 284:case 287:N=t;return ft("");case 288:ot((we=t).name);var A="=",Ie=ft,Oe=we.initializer,Me=Nt;return void(Oe&&(Ie(A),Me(Oe)));case 289:return pt(t,t.properties,262656);case 290:return Ie=t,ft("{..."),st(Ie.expression),ft("}");case 291:var Le,A=t;return void((A.expression||!it&&!un.nodeIsSynthesized(A)&&function(e){return function(e){var t=!1;return un.forEachTrailingCommentRange((null==Ze?void 0:Ze.text)||"",e+1,function(){return t=!0}),t}(e)||function(e){var t=!1;return un.forEachLeadingCommentRange((null==Ze?void 0:Ze.text)||"",e+1,function(){return t=!0}),t}(e)}(A.pos))&&((Me=Ze&&!un.nodeIsSynthesized(A)&&un.getLineAndCharacterOfPosition(Ze,A.pos).line!==un.getLineAndCharacterOfPosition(Ze,A.end).line)&&$e.increaseIndent(),Oe=ct(18,A.pos,ft,A),ot(A.dotDotDotToken),st(A.expression),ct(19,(null==(Le=A.expression)?void 0:Le.end)||Oe,ft,A),Me)&&$e.decreaseIndent());case 292:return ct(82,(Le=t).pos,mt,Le),yt(),st(Le.expression,at.parenthesizeExpressionForDisallowedComma),Yt(Le,Le.statements,Le.expression.end);case 293:return Re=ct(88,(H=t).pos,mt,H),Yt(H,H.statements,Re);case 294:return H=t,yt(),br(H.token,mt),yt(),pt(H,H.types,528);case 295:var Re=t,Be=ct(83,Re.pos,mt,Re);return yt(),Re.variableDeclaration&&(ct(20,Be,ft,Re),ot(Re.variableDeclaration),ct(21,Re.variableDeclaration.end,ft,Re),yt()),void ot(Re.block);case 299:Be=t;return ot(Be.name),ft(":"),yt(),Be=Be.initializer,0==(512&un.getEmitFlags(Be))&&Qr(un.getCommentRange(Be).pos),void st(Be,at.parenthesizeExpressionForDisallowedComma);case 300:return ot((W=t).name),W.objectAssignmentInitializer&&(yt(),ft("="),yt(),st(W.objectAssignmentInitializer,at.parenthesizeExpressionForDisallowedComma));case 301:return(W=t).expression&&(ct(25,W.pos,ft,W),st(W.expression,at.parenthesizeExpressionForDisallowedComma));case 302:return ot((q=t).name),or(q.initializer,q.name.end,q,at.parenthesizeExpressionForDisallowedComma);case 303:return wt(t);case 310:case 304:for(var je=0,Je=t.texts;je"),st(Ge.expression,at.parenthesizeOperandOfPrefixUnary);case 214:return ge=ct(20,(y=t).pos,ft,y),me=Sr(y.expression,y),st(y.expression,void 0),Tr(y.expression,y),Dr(me),ct(21,y.expression?y.expression.end:ge,ft,y);case 215:return Fr((me=t).name),Kt(me);case 216:return lt(ge=t,ge.modifiers),Vt(ge,Mt);case 217:return ct(89,(y=t).pos,mt,y),yt(),st(y.expression,at.parenthesizeOperandOfPrefixUnary);case 218:return ct(112,(fe=t).pos,mt,fe),yt(),st(fe.expression,at.parenthesizeOperandOfPrefixUnary);case 219:return ct(114,(fe=t).pos,mt,fe),yt(),st(fe.expression,at.parenthesizeOperandOfPrefixUnary);case 220:return ct(133,(Qe=t).pos,mt,Qe),yt(),st(Qe.expression,at.parenthesizeOperandOfPrefixUnary);case 221:var Qe=t;return br(Qe.operator,fr),function(e){var t=e.operand;return 221===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(Qe)&&yt(),void st(Qe.operand,at.parenthesizeOperandOfPrefixUnary);case 222:return st((m=t).operand,at.parenthesizeOperandOfPostfixUnary),br(m.operator,fr);case 223:return Ct(t);case 224:return ue=Dt(m=t,m.condition,m.questionToken),_e=Dt(m,m.questionToken,m.whenTrue),de=Dt(m,m.whenTrue,m.colonToken),pe=Dt(m,m.colonToken,m.whenFalse),st(m.condition,at.parenthesizeConditionOfConditionalExpression),xt(ue,!0),ot(m.questionToken),xt(_e,!0),st(m.whenTrue,at.parenthesizeBranchOfConditionalExpression),Dr(ue,_e),xt(de,!0),ot(m.colonToken),xt(pe,!0),st(m.whenFalse,at.parenthesizeBranchOfConditionalExpression),Dr(de,pe);case 225:return ot((ue=t).head),pt(ue,ue.templateSpans,262144);case 226:return ct(125,(_e=t).pos,mt,_e),ot(_e.asteriskToken),cr(_e.expression&&zt(_e.expression),Ut);case 227:return ct(25,(de=t).pos,ft,de),st(de.expression,at.parenthesizeExpressionForDisallowedComma);case 228:return Fr((pe=t).name),Ht(pe);case 229:return;case 231:return st((le=t).expression,void 0),le.type&&(yt(),mt("as"),yt(),ot(le.type));case 232:return st(t.expression,at.parenthesizeLeftSideOfAccess),fr("!");case 230:return Lt(t);case 235:return st((le=t).expression,void 0),le.type&&(yt(),mt("satisfies"),yt(),ot(le.type));case 233:return hr((ce=t).keywordToken,ce.pos,ft),ft("."),ot(ce.name);case 234:return un.Debug.fail("SyntheticExpression should never be printed.");case 281:return ot((ce=t).openingElement),pt(ce,ce.children,262144),ot(ce.closingElement);case 282:return se=t,ft("<"),Xt(se.tagName),_t(se,se.typeArguments),yt(),ot(se.attributes),ft("/>");case 285:return ot((se=t).openingFragment),pt(se,se.children,262144),ot(se.closingFragment);case 351:return un.Debug.fail("SyntaxList should not be printed");case 352:return;case 353:var Xe=t,Ye=un.getEmitFlags(Xe);return 512&Ye||Xe.pos===Xe.expression.pos||Qr(Xe.expression.pos),st(Xe.expression),void(1024&Ye||Xe.end===Xe.expression.end||Hr(Xe.expression.end));case 354:return dr(t,t.elements,528,void 0);case 355:case 356:return;case 357:return un.Debug.fail("SyntheticReferenceExpression should not be printed")}return un.isKeyword(t.kind)?vr(t,mt):un.isTokenKind(t.kind)?vr(t,ft):void un.Debug.fail("Unhandled SyntaxKind: ".concat(un.Debug.formatSyntaxKind(t.kind),"."))}function Se(e,t){var r=be(1,e,t);un.Debug.assertIsDefined(n),t=n,n=void 0,r(e,t)}function Te(e){var t=309===e.kind?e:void 0;if(!t||L!==un.ModuleKind.None)for(var r=t?t.prepends.length:0,n=t?t.sourceFiles.length+r:1,i=0;i'),nt&&nt.sections.push({pos:u,end:$e.getTextPos(),kind:"no-default-lib"}),ht()),Ze&&Ze.moduleName&&(Be('/// ')),ht()),Ze&&Ze.amdDependencies)for(var i=0,a=Ze.amdDependencies;i')):Be('/// ')),ht()}for(var s=0,c=t;s')),nt&&nt.sections.push({pos:u,end:$e.getTextPos(),kind:"reference",data:l.fileName}),ht()}for(var _=0,d=r;_")),nt&&nt.sections.push({pos:u,end:$e.getTextPos(),kind:l.resolutionMode?l.resolutionMode===un.ModuleKind.ESNext?"type-import":"type-require":"type",data:l.fileName}),ht()}for(var f=0,g=n;f')),nt&&nt.sections.push({pos:u,end:$e.getTextPos(),kind:"lib",data:l.fileName}),ht()}}function Fe(e){var t,r=e.statements,n=(kr(e),un.forEach(e.statements,St),Te(e),un.findIndex(r,function(e){return!un.isPrologueDirective(e)}));(t=e).isDeclarationFile&&Ae(t.hasNoDefaultLib,t.referencedFiles,t.typeReferenceDirectives,t.libReferenceDirectives),pt(e,r,1,void 0,-1===n?r.length:n),Nr(e)}function Pe(e,t,r,n){for(var i=!!t,a=0;a=r.length||0===o)&&32768&n?(null!=P&&P(r),null!=w&&w(r)):(15360&n&&(ft(_n[15360&n][0]),s)&&r&&Qr(r.pos,!0),null!=P&&P(r),s?!(1&n)||tt&&(!t||Ze&&un.rangeIsOnSingleLine(t,Ze))?256&n&&!(524288&n)&&yt():ht():Le(e,t,r,n,i,a,o,r.hasTrailingComma,r),null!=w&&w(r),15360&n&&(s&&r&&Hr(r.end),ft(_n[15360&n][1]))))}function Le(e,t,r,n,i,a,o,s,c){for(var l,u,_=0==(262144&n),d=_,p=Je(t,r[a],n),f=(p?(ht(p),d=!1):256&n&&yt(),128&n&&vt(),p=i,1===e.length?dn:"object"==typeof p?pn:fn),g=!1,m=0;m=Zt.length(null==a?void 0:a.imports)+Zt.length(null==a?void 0:a.moduleAugmentations))return!1;var t=Zt.getResolvedModule(a,e,a&&nr(a,t)),r=t&&M.getSourceFile(t.resolvedFileName);if(t&&r)return!1;t=te.get(e);if(!t)return!1;Zt.isTraceEnabled(I,B)&&Zt.trace(B,Zt.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,e,t);return!0}(u,s),p?(n=n||new Array(e.length))[s]=d:(r=r||[]).push(u)}var f=r&&r.length?Re(r,t,i):Zt.emptyArray;if(!n)return Zt.Debug.assert(f.length===e.length),f;for(var g=0,s=0;sa?Zt.createDiagnosticForNodeInSourceFile(o,s.elements[a],e.kind===Zt.FileIncludeKind.OutputFromProjectReference?Zt.Diagnostics.File_is_output_from_referenced_project_specified_here:Zt.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0):void 0;case Zt.FileIncludeKind.AutomaticTypeDirectiveFile:if(!I.types)return;n=Kt("types",e.typeReference),i=Zt.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case Zt.FileIncludeKind.LibFile:void 0!==e.index?(n=Kt("lib",I.lib[e.index]),i=Zt.Diagnostics.File_is_library_specified_here):(o=Zt.forEachEntry(Zt.targetOptionDeclaration.type,function(e,t){return e===Zt.getEmitScriptTarget(I)?t:void 0}),n=o?function(e,t){e=zt(e);return e&&Zt.firstDefined(e,function(e){return Zt.isStringLiteral(e.initializer)&&e.initializer.text===t?e.initializer:void 0})}("target",o):void 0,i=Zt.Diagnostics.File_is_default_library_for_target_specified_here);break;default:Zt.Debug.assertNever(e)}return n&&Zt.createDiagnosticForNodeInSourceFile(I.configFile,n,i)}(e))),e===t&&(t=void 0)}}function Rt(e,t,r,n){(N=N||[]).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:r,args:n})}function Bt(e,t,r){f.add(Lt(e,void 0,t,r))}function jt(e,t,r,n,i,a){for(var o=!0,s=0,c=Ut();st&&(f.add(Zt.createDiagnosticForNodeInSourceFile(I.configFile,d.elements[t],r,n,i,a)),o=!1)}}o&&f.add(Zt.createCompilerDiagnostic(r,n,i,a))}function Jt(e,t,r,n){for(var i=!0,a=0,o=Ut();at?f.add(Zt.createDiagnosticForNodeInSourceFile(e||I.configFile,a.elements[t],r,n,i)):f.add(Zt.createCompilerDiagnostic(r,n,i))}function Wt(e,t,r,n,i,a,o){var s=Ht();s&&Gt(s,e,t,r,n,i,a,o)||f.add(Zt.createCompilerDiagnostic(n,i,a,o))}function Ht(){if(void 0===q){q=!1;var e=Zt.getTsConfigObjectLiteralExpression(I.configFile);if(e)for(var t=0,r=Zt.getPropertyAssignment(e,"compilerOptions");tr)for(i=r;iC+1?{dir:n.slice(0,C+1).join(le.directorySeparator),dirPath:r.slice(0,C+1).join(le.directorySeparator)}:{dir:S,dirPath:T,nonRecursive:!1}):H(le.getDirectoryPath(le.getNormalizedAbsolutePath(e,_())),le.getDirectoryPath(t))}function H(e,t){for(;le.pathContainsNodeModules(t);)e=le.getDirectoryPath(e),t=le.getDirectoryPath(t);if(le.isNodeModulesDirectory(t))return _e(le.getDirectoryPath(t))?{dir:e,dirPath:t}:void 0;var r,n,i=!0;if(void 0!==T)for(;!E(t,T);){var a=le.getDirectoryPath(t);if(a===t)break;i=!1,r=t,n=e,t=a,e=le.getDirectoryPath(e)}return _e(t)?{dir:n||e,dirPath:r||t,nonRecursive:i}:void 0}function G(e){return le.fileExtensionIsOneOf(e,w)}function Q(e){le.Debug.assert(!!e.refCount);var t=e.failedLookupLocations,r=e.affectingLocations;if(t.length||r.length){t.length&&d.push(e);for(var n=!1,i=0,a=t;i=b.ModuleResolutionKind.Node16&&r===b.ModuleKind.ESNext)return[2];switch(e){case 2:return[2,0,1];case 1:return[1,0,2];case 0:return[0,1,2];default:b.Debug.assertNever(e)}}function S(l,e,u,r,_){for(var d in e)for(var t=0,n=e[d];t=n.length+i.length&&b.startsWith(s,n)&&b.endsWith(s,i)&&p({ending:c,value:s}))return c=s.substring(n.length,s.length-i.length),{value:d.replace("*",c)}}else if(b.some(r,function(e){return 0!==e.ending&&t===e.value})||b.some(r,function(e){return 0===e.ending&&t===e.value&&p(e)}))return{value:d}}(n[t]);if("object"==typeof i)return i.value}function p(e){var t=e.ending,e=e.value;return 0!==t||e===C(l,t,_,r)}}function v(e,t,o,s,c,r,n,l){var u=e.path,e=e.isRedirect,_=t.getCanonicalFileName,t=t.sourceDirectory;if(s.fileExists&&s.readFile){var d=b.getNodeModulePathParts(u);if(d){var p=x(s,r,c,o),i=u,a=!1;if(!n)for(var f=d.packageRootIndex,g=void 0;;){var m=function(e){var e=u.substring(0,e),t=b.combinePaths(e,"package.json"),r=u,n=!1,i=null==(i=null==(i=s.getPackageJsonInfoCache)?void 0:i.call(s))?void 0:i.getPackageJsonInfo(t);if("object"==typeof i||void 0===i&&s.fileExists(t)){i=(null==i?void 0:i.contents.packageJsonContent)||JSON.parse(s.readFile(t)),t=l||o.impliedNodeFormat;if(b.getEmitModuleResolutionKind(c)===b.ModuleResolutionKind.Node16||b.getEmitModuleResolutionKind(c)===b.ModuleResolutionKind.NodeNext){var a=["node",t===b.ModuleKind.ESNext?"import":"require","types"],a=i.exports&&"string"==typeof i.name?function n(i,a,o,s,c,l,e){if(void 0===e&&(e=0),"string"==typeof c){var t=b.getNormalizedAbsolutePath(b.combinePaths(o,c),void 0),r=b.hasTSFileExtension(a)?b.removeFileExtension(a)+E(a,i):void 0;switch(e){case 0:if(0===b.comparePaths(a,t)||r&&0===b.comparePaths(r,t))return{moduleFileToTry:s};break;case 1:if(b.containsPath(t,a))return _=b.getRelativePathFromDirectory(t,a,!1),{moduleFileToTry:b.getNormalizedAbsolutePath(b.combinePaths(b.combinePaths(s,c),_),void 0)};break;case 2:var u,_=t.indexOf("*"),d=t.slice(0,_),_=t.slice(_+1);return b.startsWith(a,d)&&b.endsWith(a,_)?(u=a.slice(d.length,a.length-_.length),{moduleFileToTry:s.replace("*",u)}):r&&b.startsWith(r,d)&&b.endsWith(r,_)?(u=r.slice(d.length,r.length-_.length),{moduleFileToTry:s.replace("*",u)}):void 0}}else{if(Array.isArray(c))return b.forEach(c,function(e){return n(i,a,o,s,e,l)});if("object"==typeof c&&null!==c){if(b.allKeysStartWithDot(c))return b.forEach(b.getOwnKeys(c),function(e){var t=b.getNormalizedAbsolutePath(b.combinePaths(s,e),void 0),r=b.endsWith(e,"/")?1:b.stringContains(e,"*")?2:0;return n(i,a,o,t,c[e],l,r)});for(var p=0,f=b.getOwnKeys(c);pa)return 2;if(46===t.charCodeAt(0))return 3;if(95===t.charCodeAt(0))return 4;if(r){var n,r=/^@([^/]+)\/([^/]+)$/.exec(t);if(r)return 0!==(n=e(r[1],!1))?{name:r[1],isScopeName:!0,result:n}:0!==(n=e(r[2],!1))?{name:r[2],isScopeName:!1,result:n}:0}if(encodeURIComponent(t)!==t)return 5;return 0}(e,!0)},t.renderPackageNameValidationFailure=function(e,t){return"object"==typeof e?r(t,e.result,e.name,e.isScopeName):r(t,e,t,!1)}}(ts=ts||{}),!function(e){var t,r,n,i;function a(e){this.text=e}function o(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:r.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:n.Ignore,trimTrailingWhitespace:!0}}i=e.ScriptSnapshot||(e.ScriptSnapshot={}),a.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},a.prototype.getLength=function(){return this.text.length},a.prototype.getChangeRange=function(){},t=a,i.fromString=function(e){return new t(e)},(i=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}))[i.Dependencies=1]="Dependencies",i[i.DevDependencies=2]="DevDependencies",i[i.PeerDependencies=4]="PeerDependencies",i[i.OptionalDependencies=8]="OptionalDependencies",i[i.All=15]="All",(i=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}))[i.Off=0]="Off",i[i.On=1]="On",i[i.Auto=2]="Auto",(i=e.LanguageServiceMode||(e.LanguageServiceMode={}))[i.Semantic=0]="Semantic",i[i.PartialSemantic=1]="PartialSemantic",i[i.Syntactic=2]="Syntactic",e.emptyOptions={},(i=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})).Original="original",i.TwentyTwenty="2020",(i=e.OrganizeImportsMode||(e.OrganizeImportsMode={})).All="All",i.SortAndCombine="SortAndCombine",i.RemoveUnused="RemoveUnused",(i=e.CompletionTriggerKind||(e.CompletionTriggerKind={}))[i.Invoked=1]="Invoked",i[i.TriggerCharacter=2]="TriggerCharacter",i[i.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",(i=e.InlayHintKind||(e.InlayHintKind={})).Type="Type",i.Parameter="Parameter",i.Enum="Enum",(i=e.HighlightSpanKind||(e.HighlightSpanKind={})).none="none",i.definition="definition",i.reference="reference",i.writtenReference="writtenReference",(i=r=e.IndentStyle||(e.IndentStyle={}))[i.None=0]="None",i[i.Block=1]="Block",i[i.Smart=2]="Smart",(i=n=e.SemicolonPreference||(e.SemicolonPreference={})).Ignore="ignore",i.Insert="insert",i.Remove="remove",e.getDefaultFormatCodeSettings=o,e.testFormatSettings=o("\n"),(i=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}))[i.aliasName=0]="aliasName",i[i.className=1]="className",i[i.enumName=2]="enumName",i[i.fieldName=3]="fieldName",i[i.interfaceName=4]="interfaceName",i[i.keyword=5]="keyword",i[i.lineBreak=6]="lineBreak",i[i.numericLiteral=7]="numericLiteral",i[i.stringLiteral=8]="stringLiteral",i[i.localName=9]="localName",i[i.methodName=10]="methodName",i[i.moduleName=11]="moduleName",i[i.operator=12]="operator",i[i.parameterName=13]="parameterName",i[i.propertyName=14]="propertyName",i[i.punctuation=15]="punctuation",i[i.space=16]="space",i[i.text=17]="text",i[i.typeParameterName=18]="typeParameterName",i[i.enumMemberName=19]="enumMemberName",i[i.functionName=20]="functionName",i[i.regularExpressionLiteral=21]="regularExpressionLiteral",i[i.link=22]="link",i[i.linkName=23]="linkName",i[i.linkText=24]="linkText",(i=e.CompletionInfoFlags||(e.CompletionInfoFlags={}))[i.None=0]="None",i[i.MayIncludeAutoImports=1]="MayIncludeAutoImports",i[i.IsImportStatementCompletion=2]="IsImportStatementCompletion",i[i.IsContinuation=4]="IsContinuation",i[i.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",i[i.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",i[i.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",(i=e.OutliningSpanKind||(e.OutliningSpanKind={})).Comment="comment",i.Region="region",i.Code="code",i.Imports="imports",(i=e.OutputFileType||(e.OutputFileType={}))[i.JavaScript=0]="JavaScript",i[i.SourceMap=1]="SourceMap",i[i.Declaration=2]="Declaration",(i=e.EndOfLineState||(e.EndOfLineState={}))[i.None=0]="None",i[i.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",i[i.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",i[i.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",i[i.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",i[i.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",i[i.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",(i=e.TokenClass||(e.TokenClass={}))[i.Punctuation=0]="Punctuation",i[i.Keyword=1]="Keyword",i[i.Operator=2]="Operator",i[i.Comment=3]="Comment",i[i.Whitespace=4]="Whitespace",i[i.Identifier=5]="Identifier",i[i.NumberLiteral=6]="NumberLiteral",i[i.BigIntLiteral=7]="BigIntLiteral",i[i.StringLiteral=8]="StringLiteral",i[i.RegExpLiteral=9]="RegExpLiteral",(i=e.ScriptElementKind||(e.ScriptElementKind={})).unknown="",i.warning="warning",i.keyword="keyword",i.scriptElement="script",i.moduleElement="module",i.classElement="class",i.localClassElement="local class",i.interfaceElement="interface",i.typeElement="type",i.enumElement="enum",i.enumMemberElement="enum member",i.variableElement="var",i.localVariableElement="local var",i.functionElement="function",i.localFunctionElement="local function",i.memberFunctionElement="method",i.memberGetAccessorElement="getter",i.memberSetAccessorElement="setter",i.memberVariableElement="property",i.memberAccessorVariableElement="accessor",i.constructorImplementationElement="constructor",i.callSignatureElement="call",i.indexSignatureElement="index",i.constructSignatureElement="construct",i.parameterElement="parameter",i.typeParameterElement="type parameter",i.primitiveType="primitive type",i.label="label",i.alias="alias",i.constElement="const",i.letElement="let",i.directory="directory",i.externalModuleName="external module name",i.jsxAttribute="JSX attribute",i.string="string",i.link="link",i.linkName="link name",i.linkText="link text",(i=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})).none="",i.publicMemberModifier="public",i.privateMemberModifier="private",i.protectedMemberModifier="protected",i.exportedModifier="export",i.ambientModifier="declare",i.staticModifier="static",i.abstractModifier="abstract",i.optionalModifier="optional",i.deprecatedModifier="deprecated",i.dtsModifier=".d.ts",i.tsModifier=".ts",i.tsxModifier=".tsx",i.jsModifier=".js",i.jsxModifier=".jsx",i.jsonModifier=".json",i.dmtsModifier=".d.mts",i.mtsModifier=".mts",i.mjsModifier=".mjs",i.dctsModifier=".d.cts",i.ctsModifier=".cts",i.cjsModifier=".cjs",(i=e.ClassificationTypeNames||(e.ClassificationTypeNames={})).comment="comment",i.identifier="identifier",i.keyword="keyword",i.numericLiteral="number",i.bigintLiteral="bigint",i.operator="operator",i.stringLiteral="string",i.whiteSpace="whitespace",i.text="text",i.punctuation="punctuation",i.className="class name",i.enumName="enum name",i.interfaceName="interface name",i.moduleName="module name",i.typeParameterName="type parameter name",i.typeAliasName="type alias name",i.parameterName="parameter name",i.docCommentTagName="doc comment tag name",i.jsxOpenTagName="jsx open tag name",i.jsxCloseTagName="jsx close tag name",i.jsxSelfClosingTagName="jsx self closing tag name",i.jsxAttribute="jsx attribute",i.jsxText="jsx text",i.jsxAttributeStringLiteralValue="jsx attribute string literal value",(i=e.ClassificationType||(e.ClassificationType={}))[i.comment=1]="comment",i[i.identifier=2]="identifier",i[i.keyword=3]="keyword",i[i.numericLiteral=4]="numericLiteral",i[i.operator=5]="operator",i[i.stringLiteral=6]="stringLiteral",i[i.regularExpressionLiteral=7]="regularExpressionLiteral",i[i.whiteSpace=8]="whiteSpace",i[i.text=9]="text",i[i.punctuation=10]="punctuation",i[i.className=11]="className",i[i.enumName=12]="enumName",i[i.interfaceName=13]="interfaceName",i[i.moduleName=14]="moduleName",i[i.typeParameterName=15]="typeParameterName",i[i.typeAliasName=16]="typeAliasName",i[i.parameterName=17]="parameterName",i[i.docCommentTagName=18]="docCommentTagName",i[i.jsxOpenTagName=19]="jsxOpenTagName",i[i.jsxCloseTagName=20]="jsxCloseTagName",i[i.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",i[i.jsxAttribute=22]="jsxAttribute",i[i.jsxText=23]="jsxText",i[i.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",i[i.bigintLiteral=25]="bigintLiteral"}(ts=ts||{}),!function(g){function L(e){switch(e.kind){case 257:return g.isInJSFile(e)&&g.getJSDocEnumTag(e)?7:1;case 166:case 205:case 169:case 168:case 299:case 300:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 295:case 288:return 1;case 165:case 261:case 262:case 184:return 2;case 348:return void 0===e.name?3:2;case 302:case 260:return 3;case 264:return g.isAmbientModule(e)||1===g.getModuleInstanceState(e)?5:4;case 263:case 272:case 273:case 268:case 269:case 274:case 275:return 7;case 308:return 5}return 7}function R(e){for(;163===e.parent.kind;)e=e.parent;return g.isInternalModuleImportEqualsDeclaration(e.parent)&&e.parent.moduleReference===e}function n(e){return e.expression}function B(e){return e.tag}function j(e){return e.tagName}function i(e,t,r,n,i){n=(n?z:J)(e);return!!(n=i?g.skipOuterExpressions(n):n)&&!!n.parent&&t(n.parent)&&r(n.parent)===n}function J(e){return t(e)?e.parent:e}function z(e){return t(e)||V(e)?e.parent:e}function U(e){var t;return g.isIdentifier(e)&&(null==(t=g.tryCast(e.parent,g.isBreakOrContinueStatement))?void 0:t.label)===e}function K(e){var t;return g.isIdentifier(e)&&(null==(t=g.tryCast(e.parent,g.isLabeledStatement))?void 0:t.label)===e}function t(e){var t;return(null==(t=g.tryCast(e.parent,g.isPropertyAccessExpression))?void 0:t.name)===e}function V(e){var t;return(null==(t=g.tryCast(e.parent,g.isElementAccessExpression))?void 0:t.argumentExpression)===e}g.scanner=g.createScanner(99,!0),(e=g.SemanticMeaning||(g.SemanticMeaning={}))[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",g.getMeaningFromDeclaration=L,g.getMeaningFromLocation=function(e){var t,r=(e=ne(e)).parent;return 308===e.kind?1:g.isExportAssignment(r)||g.isExportSpecifier(r)||g.isExternalModuleReference(r)||g.isImportSpecifier(r)||g.isImportClause(r)||g.isImportEqualsDeclaration(r)&&e===r.name?7:R(e)?(t=163===(t=e).kind?t:g.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0)&&268===t.parent.kind?7:4:g.isDeclarationName(e)?L(r):g.isEntityName(e)&&g.findAncestor(e,g.or(g.isJSDocNameReference,g.isJSDocLinkLike,g.isJSDocMemberName))?7:function(e){g.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent);switch(e.kind){case 108:return!g.isExpressionNode(e);case 194:return 1}switch(e.parent.kind){case 180:return 1;case 202:return!e.parent.isTypeOf;case 230:return g.isPartOfTypeNode(e.parent)}return}(e)?2:function(e){var t=e,r=!0;if(163===t.parent.kind){for(;t.parent&&163===t.parent.kind;)t=t.parent;r=t.right===e}return 180===t.parent.kind&&!r}(t=e)||function(e){var t=e,r=!0;if(208===t.parent.kind){for(;t.parent&&208===t.parent.kind;)t=t.parent;r=t.name===e}return!r&&230===t.parent.kind&&294===t.parent.parent.kind&&(260===(e=t.parent.parent.parent).kind&&117===t.parent.parent.token||261===e.kind&&94===t.parent.parent.token)}(t)?4:g.isTypeParameterDeclaration(r)?(g.Debug.assert(g.isJSDocTemplateTag(r.parent)),2):g.isLiteralTypeNode(r)?3:1},g.isInRightSideOfInternalImportEqualsDeclaration=R,g.isCallExpressionTarget=function(e,t,r){return i(e,g.isCallExpression,n,t=void 0===t?!1:t,r=void 0===r?!1:r)},g.isNewExpressionTarget=function(e,t,r){return i(e,g.isNewExpression,n,t=void 0===t?!1:t,r=void 0===r?!1:r)},g.isCallOrNewExpressionTarget=function(e,t,r){return i(e,g.isCallOrNewExpression,n,t=void 0===t?!1:t,r=void 0===r?!1:r)},g.isTaggedTemplateTag=function(e,t,r){return i(e,g.isTaggedTemplateExpression,B,t=void 0===t?!1:t,r=void 0===r?!1:r)},g.isDecoratorTarget=function(e,t,r){return i(e,g.isDecorator,n,t=void 0===t?!1:t,r=void 0===r?!1:r)},g.isJsxOpeningLikeElementTagName=function(e,t,r){return i(e,g.isJsxOpeningLikeElement,j,t=void 0===t?!1:t,r=void 0===r?!1:r)},g.climbPastPropertyAccess=J,g.climbPastPropertyOrElementAccess=z,g.getTargetLabel=function(e,t){for(;e;){if(253===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},g.hasPropertyAccessExpressionWithName=function(e,t){return!!g.isPropertyAccessExpression(e.expression)&&e.expression.name.text===t},g.isJumpStatementTarget=U,g.isLabelOfLabeledStatement=K,g.isLabelName=function(e){return K(e)||U(e)},g.isTagName=function(e){var t;return(null==(t=g.tryCast(e.parent,g.isJSDocTag))?void 0:t.tagName)===e},g.isRightSideOfQualifiedName=function(e){var t;return(null==(t=g.tryCast(e.parent,g.isQualifiedName))?void 0:t.right)===e},g.isRightSideOfPropertyAccess=t,g.isArgumentExpressionOfElementAccess=V,g.isNameOfModuleDeclaration=function(e){var t;return(null==(t=g.tryCast(e.parent,g.isModuleDeclaration))?void 0:t.name)===e},g.isNameOfFunctionDeclaration=function(e){var t;return g.isIdentifier(e)&&(null==(t=g.tryCast(e.parent,g.isFunctionLike))?void 0:t.name)===e},g.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(e){switch(e.parent.kind){case 169:case 168:case 299:case 302:case 171:case 170:case 174:case 175:case 264:return g.getNameOfDeclaration(e.parent)===e;case 209:return e.parent.argumentExpression===e;case 164:return!0;case 198:return 196===e.parent.parent.kind;default:return!1}},g.isExpressionOfExternalModuleImportEqualsDeclaration=function(e){return g.isExternalModuleImportEqualsDeclaration(e.parent.parent)&&g.getExternalModuleImportEqualsDeclarationExpression(e.parent.parent)===e},g.getContainerNode=function(e){for(g.isJSDocTypeAlias(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 308:case 171:case 170:case 259:case 215:case 174:case 175:case 260:case 261:case 263:case 264:return e}}},g.getNodeKind=function e(t){switch(t.kind){case 308:return g.isExternalModule(t)?"module":"script";case 264:return"module";case 260:case 228:return"class";case 261:return"interface";case 262:case 341:case 348:return"type";case 263:return"enum";case 257:return o(t);case 205:return o(g.getRootDeclaration(t));case 216:case 259:case 215:return"function";case 174:return"getter";case 175:return"setter";case 171:case 170:return"method";case 299:var r=t.initializer;return g.isFunctionLike(r)?"method":"property";case 169:case 168:case 300:case 301:return"property";case 178:return"index";case 177:return"construct";case 176:return"call";case 173:case 172:return"constructor";case 165:return"type parameter";case 302:return"enum member";case 166:return g.hasSyntacticModifier(t,16476)?"property":"parameter";case 268:case 273:case 278:case 271:case 277:return"alias";case 223:var n=g.getAssignmentDeclarationKind(t),i=t.right;switch(n){case 7:case 8:case 9:case 0:return"";case 1:case 2:var a=e(i);return""===a?"const":a;case 3:return g.isFunctionExpression(i)?"method":"property";case 4:return"property";case 5:return g.isFunctionExpression(i)?"method":"property";case 6:return"local class";default:return g.assertType(n),""}case 79:return g.isImportClause(t.parent)?"alias":"";case 274:return""===(r=e(t.expression))?"const":r;default:return""}function o(e){return g.isVarConst(e)?"const":g.isLet(e)?"let":"var"}},g.isThis=function(e){switch(e.kind){case 108:return!0;case 79:return g.identifierIsThisKeyword(e)&&166===e.parent.kind;default:return!1}};var e,q=/^\/\/\/\s*=r.end}function a(e,t,r,n){return Math.max(e,r)n.end||e.pos===n.end;return t&&m(e,i)?r(e):void 0})}(e)}function _(o,s,c,l){var e=function e(t){if(oe(t)&&1!==t.kind)return t;var r=t.getChildren(s);var n=g.binarySearchKey(r,o,function(e,t){return t},function(e,t){return o=r[e-1].end?0:1:-1});if(0<=n&&r[n]){var i,a=r[n];if(o=t})}function le(e,t){if(-1!==t.text.lastIndexOf("<",e?e.pos:t.text.length))for(var r=e,n=0,i=0;r;){switch(r.kind){case 29:if(!(r=(r=_(r.getFullStart(),t))&&28===r.kind?_(r.getFullStart(),t):r)||!g.isIdentifier(r))return;if(!n)return g.isDeclarationName(r)?void 0:{called:r,nTypeArguments:i};n--;break;case 49:n=3;break;case 48:n=2;break;case 31:n++;break;case 19:if(r=f(r,18,t))break;return;case 21:if(r=f(r,20,t))break;return;case 23:if(r=f(r,22,t))break;return;case 27:i++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 141:case 24:case 51:case 57:case 58:break;default:if(g.isTypeNode(r))break;return}r=_(r.getFullStart(),t)}}function ue(e,t,r){return g.formatting.getRangeOfEnclosingComment(e,t,void 0,r)}function m(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function _e(e,t,r){t=ue(e,t,void 0);return!!t&&r===q.test(e.text.substring(t.pos,t.end))}function y(e,t,r){return g.createTextSpanFromBounds(e.getStart(t),(r||e).getEnd())}function de(e){if(!e.isUnterminated)return g.createTextSpanFromBounds(e.getStart()+1,e.getEnd()-1)}function pe(e,t){return{span:e,newText:t}}function h(e){return 154===e.kind}function fe(t,e){return{fileExists:function(e){return t.fileExists(e)},getCurrentDirectory:function(){return e.getCurrentDirectory()},readFile:g.maybeBind(e,e.readFile),useCaseSensitiveFileNames:g.maybeBind(e,e.useCaseSensitiveFileNames),getSymlinkCache:g.maybeBind(e,e.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:g.maybeBind(e,e.getModuleSpecifierCache),getPackageJsonInfoCache:function(){var e;return null==(e=t.getModuleResolutionCache())?void 0:e.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:g.maybeBind(e,e.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},getNearestAncestorDirectoryWithPackageJson:g.maybeBind(e,e.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return t.getFileIncludeReasons()}}}function ge(e,t){return __assign(__assign({},fe(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function me(e,t,r,n,i){return g.factory.createImportDeclaration(void 0,e||t?g.factory.createImportClause(!!i,e,t&&t.length?g.factory.createNamedImports(t):void 0):void 0,"string"==typeof r?ye(r,n):r,void 0)}function ye(e,t){return g.factory.createStringLiteral(e,0===t)}function he(e,t){return g.isStringDoubleQuoted(e,t)?1:0}function ve(e,t){return t.quotePreference&&"auto"!==t.quotePreference?"single"===t.quotePreference?0:1:(t=e.imports&&g.find(e.imports,function(e){return g.isStringLiteral(e)&&!g.nodeIsSynthesized(e.parent)}))?he(t,e):1}function be(e){return"default"!==e.escapedName?e.escapedName:g.firstDefined(e.declarations,function(e){e=g.getNameOfDeclaration(e);return e&&79===e.kind?e.escapedText:void 0})}function v(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function b(e,t,r){t=t.tryGetSourcePosition(e);return t&&(!r||r(g.normalizePath(t.fileName))?t:void 0)}function xe(e,t,r){var n=e.contextSpan&&b({fileName:e.fileName,pos:e.contextSpan.start},t,r),e=e.contextSpan&&b({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,r);return n&&e?{start:n.pos,length:e.pos-n.pos}:void 0}function De(e){e=e.declarations?g.firstOrUndefined(e.declarations):void 0;return!!g.findAncestor(e,function(e){return!!g.isParameter(e)||!(g.isBindingElement(e)||g.isObjectBindingPattern(e)||g.isArrayBindingPattern(e))&&"quit"})}g.getLineStartPositionForPosition=function(e,t){return g.getLineStarts(t)[t.getLineAndCharacterOfPosition(e).line]},g.rangeContainsRange=W,g.rangeContainsRangeExclusive=function(e,t){return r(e,t.pos)&&r(e,t.end)},g.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},g.rangeContainsPositionExclusive=r,g.startEndContainsRange=H,g.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},g.rangeOverlapsWithStartEnd=function(e,t,r){return a(e.pos,e.end,t,r)},g.nodeOverlapsWithStartEnd=function(e,t,r,n){return a(e.getStart(t),e.end,r,n)},g.startEndOverlapsWithStartEnd=a,g.positionBelongsToNode=function(e,t,r){return g.Debug.assert(e.pos<=t),tr.getStart(e)&&tr.getStart(e)},g.isInJSXText=function(e,t){return e=c(e,t),!!g.isJsxText(e)||!(18!==e.kind||!g.isJsxExpression(e.parent)||!g.isJsxElement(e.parent.parent))||!(29!==e.kind||!g.isJsxOpeningLikeElement(e.parent)||!g.isJsxElement(e.parent.parent))},g.isInsideJsxElement=function(e,t){for(var r=c(e,t);r;){if(!(282<=r.kind&&r.kind<=291||11===r.kind||29===r.kind||31===r.kind||79===r.kind||19===r.kind||18===r.kind||43===r.kind)){if(281!==r.kind)return!1;if(t>r.getStart(e))return!0}r=r.parent}return!1},g.findPrecedingMatchingToken=f,g.removeOptionality=se,g.isPossiblyTypeArgumentPosition=function e(t,r,n){t=le(t,r);return void 0!==t&&(g.isPartOfTypeNode(t.called)||0!==ce(t.called,t.nTypeArguments,n).length||e(t.called,r,n))},g.getPossibleGenericSignatures=ce,g.getPossibleTypeArgumentsInfo=le,g.isInComment=ue,g.hasDocComment=function(e,t){return e=c(e,t),!!g.findAncestor(e,g.isJSDoc)},g.getNodeModifiers=function(e,t){void 0===t&&(t=0);var r=[];return 8&(t=g.isDeclaration(e)?g.getCombinedNodeFlagsAlwaysIncludeJSDoc(e)&~t:0)&&r.push("private"),16&t&&r.push("protected"),4&t&&r.push("public"),(32&t||g.isClassStaticBlockDeclaration(e))&&r.push("static"),256&t&&r.push("abstract"),1&t&&r.push("export"),8192&t&&r.push("deprecated"),16777216&e.flags&&r.push("declare"),274===e.kind&&r.push("export"),0=g.ModuleResolutionKind.Node16&&e<=g.ModuleResolutionKind.NodeNext},g.moduleResolutionUsesNodeModules=function(e){return e===g.ModuleResolutionKind.NodeJs||e>=g.ModuleResolutionKind.Node16&&e<=g.ModuleResolutionKind.NodeNext},g.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?me(e,t,r,n):void 0},g.makeImport=me,g.makeStringLiteral=ye,(e=g.QuotePreference||(g.QuotePreference={}))[e.Single=0]="Single",e[e.Double=1]="Double",g.quotePreferenceFromString=he,g.getQuotePreference=ve,g.getQuoteFromPreference=function(e){switch(e){case 0:return"'";case 1:return'"';default:return g.Debug.assertNever(e)}},g.symbolNameNoDefault=function(e){return void 0===(e=be(e))?void 0:g.unescapeLeadingUnderscores(e)},g.symbolEscapedNameNoDefault=be,g.isModuleSpecifierLike=function(e){return g.isStringLiteralLike(e)&&(g.isExternalModuleReference(e.parent)||g.isImportDeclaration(e.parent)||g.isRequireCall(e.parent,!1)&&e.parent.arguments[0]===e||g.isImportCall(e.parent)&&e.parent.arguments[0]===e)},g.isObjectBindingElementWithoutPropertyName=function(e){return g.isBindingElement(e)&&g.isObjectBindingPattern(e.parent)&&g.isIdentifier(e.name)&&!e.propertyName},g.getPropertySymbolFromBindingElement=function(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},g.getParentNodeInSpan=function(e,t,r){var n,i;if(e)for(;e.parent;){if(g.isSourceFile(e.parent)||(n=r,i=e.parent,!(g.textSpanContainsPosition(n,i.getStart(t))&&i.getEnd()<=g.textSpanEnd(n))))return e;e=e.parent}},g.findModifier=function(e,t){return g.canHaveModifiers(e)?g.find(e.modifiers,function(e){return e.kind===t}):void 0},g.insertImports=function(e,t,r,n){var i=240===(g.isArray(r)?r[0]:r).kind?g.isRequireVariableStatement:g.isAnyImportSyntax,a=g.filter(t.statements,i),i=g.isArray(r)?g.stableSort(r,g.OrganizeImports.compareImportsOrRequireStatements):[r];if(a.length)if(a&&g.OrganizeImports.importsAreSorted(a))for(var o=0,s=i;o"===e[r]&&t--,r++,!t)return r;return 0}(e.text),n=g.getTextOfNode(e.name)+e.text.slice(0,r),i=function(e){var t=0;if(124!==e.charCodeAt(t++))return e;for(;ta)break;g.textSpanContainsTextSpan(e,o)&&i.push(o),n++}return i},g.getRefactorContextSpan=function(e){var t=e.startPosition,e=e.endPosition;return g.createTextSpanFromBounds(t,void 0===e?t:e)},g.getFixableErrorSpanExpression=function(t,r){var e=c(t,r.start);return g.findAncestor(e,function(e){return e.getStart(t)g.textSpanEnd(r)?"quit":g.isExpression(e)&&v(r,y(e,t))})},g.mapOneOrMany=function(e,t,r){return void 0===r&&(r=g.identity),e?g.isArray(e)?r(g.map(e,t)):t(e,0):void 0},g.firstOrOnly=function(e){return g.isArray(e)?g.first(e):e},g.getNamesForExportedSymbol=function(e,t){var r;return Ge(e)?Qe(e)||((r=g.codefix.moduleSymbolToValidIdentifier(Xe(e),t,!1))===(t=g.codefix.moduleSymbolToValidIdentifier(Xe(e),t,!0))?r:[r,t]):e.name},g.getNameForExportedSymbol=function(e,t,r){return Ge(e)?Qe(e)||g.codefix.moduleSymbolToValidIdentifier(Xe(e),t,!!r):e.name},g.stringContainsAt=function(e,t,r){var n=t.length;if(n+r>e.length)return!1;for(var i=0;i=e.length&&void 0!==(m=function(e,t,r){switch(t){case 10:if(!e.isUnterminated())return;for(var n=e.getTokenText(),i=n.length-1,a=0;92===n.charCodeAt(i-a);)a++;return 0==(1&a)?void 0:34===n.charCodeAt(0)?3:2;case 3:return e.isUnterminated()?1:void 0;default:if(b.isTemplateLiteralKind(t)){if(!e.isUnterminated())return;switch(t){case 17:return 5;case 14:return 4;default:return b.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 15===r?6:void 0}}(h,c,b.lastOrUndefined(u)))&&(p=m)}while(1!==c);return{endOfLineState:p,spans:f}}return{getClassificationsForLine:function(e,t,r){for(var t=_(e,t,r),r=e,n=[],i=t.spans,a=0,o=0;o])*)(\/>)?)?/im.exec(n);if(!n)return;if(!(n[3]&&n[3]in b.commentPragmas))return;var i=e,a=(y(i,n[1].length),m(i+=n[1].length,n[2].length,10),m(i+=n[2].length,n[3].length,21),i+=n[3].length,n[4]),o=i;for(;;){var s=r.exec(a);if(!s)break;var c=i+s.index+s[1].length;oo&&y(o,i-o);n[5]&&(m(i,n[5].length,10),i+=n[5].length);n=e+t;ie.parameters.length))return e=e.getTypeParameterAtPosition(u.argumentIndex),E.isJsxOpeningLikeElement(c)&&(t=_.getTypeOfPropertyOfType(e,g.name.text))&&(e=t),d=d||!!(4&e.flags),F(e,p)}),E.length(l)?{kind:2,types:l,isNewIdentifier:d}:void 0)||C();case 269:case 275:case 280:return{kind:0,paths:P(e,t,i,a,n,o)};default:return C()}function C(){return{kind:2,types:F(E.getContextualTypeFromParent(t,n)),isNewIdentifier:!1}}}function N(e){switch(e.kind){case 193:return E.walkUpParenthesizedTypes(e);case 214:return E.walkUpParenthesizedExpressions(e);default:return e}}function A(e){return e&&{kind:1,symbols:E.filter(e.getApparentProperties(),function(e){return!(e.valueDeclaration&&E.isPrivateIdentifierClassElementDeclaration(e.valueDeclaration))}),hasIndexSignature:E.hasIndexSignature(e)}}function F(e,t){return void 0===t&&(t=new E.Map),e?(e=E.skipConstraint(e)).isUnion()?E.flatMap(e.types,function(e){return F(e,t)}):!e.isStringLiteral()||1024&e.flags||!E.addToSeen(t,e.value)?E.emptyArray:[e]:E.emptyArray}function T(e,t,r){return{name:e,kind:t,extension:r}}function y(e){return T(e,"directory",void 0)}function C(e,t,r){n=e,i=t,a=-1!==(a=Math.max(n.lastIndexOf(E.directorySeparator),n.lastIndexOf(E.altDirectorySeparator)))?a+1:0;var n,i,a,o,s=0==(o=n.length-a)||E.isIdentifierText(n.substr(a,o),99)?void 0:E.createTextSpan(i+a,o),c=0===e.length?void 0:E.createTextSpan(t,e.length);return r.map(function(e){var t=e.name,r=e.kind,e=e.extension;return-1!==Math.max(t.indexOf(E.directorySeparator),t.indexOf(E.altDirectorySeparator))?{name:t,kind:r,extension:e,span:c}:{name:t,kind:r,extension:e,span:s}})}function P(e,t,r,n,i,a){return C(t.text,t.getStart(e)+1,(s=e,c=t,e=r,t=n,r=i,l=a,n=E.normalizeSlashes(c.text),i=E.isStringLiteralLike(c)?E.getModeForUsageLocation(s,c):void 0,a=s.path,u=E.getDirectoryPath(a),function(e){{var t;if(e&&2<=e.length&&46===e.charCodeAt(0))return t=3<=e.length&&46===e.charCodeAt(1)?2:1,47===(e=e.charCodeAt(t))||92===e}return}(n)||!e.baseUrl&&(E.isRootedDiskPath(n)||E.isUrl(n))?function(e,t,r,n,i,a){a=w(r,a);return r.rootDirs?function(e,t,r,n,i,a,o){var i=i.project||a.getCurrentDirectory(),s=!(a.useCaseSensitiveFileNames&&a.useCaseSensitiveFileNames()),e=function(e,t,r,n){e=e.map(function(e){return E.normalizePath(E.isRootedDiskPath(e)?e:E.combinePaths(t,e))});var i=E.firstDefined(e,function(e){return E.containsPath(e,r,t,n)?r.substr(e.length):void 0});return E.deduplicate(__spreadArray(__spreadArray([],e.map(function(e){return E.combinePaths(e,i)}),!0),[r],!1),E.equateStringsCaseSensitive,E.compareStringsCaseSensitive)}(e,i,r,s);return E.flatMap(e,function(e){return E.arrayFrom(O(t,e,n,a,o).values())})}(r.rootDirs,e,t,a,r,n,i):E.arrayFrom(O(e,t,a,n,i).values())}(n,u,e,t,a,o()):function(o,e,s,t,c,r,n){var i=t.baseUrl,a=t.paths,l=x(),u=w(t,r);i&&(r=t.project||c.getCurrentDirectory(),r=E.normalizePath(E.combinePaths(r,i)),O(o,r,u,c,void 0,l),a)&&M(l,o,r,u,c,a);for(var i=R(o),_=0,d=function(t,e,r){var n,r=r.getAmbientModules().map(function(e){return E.stripQuotes(e.name)}).filter(function(e){return E.startsWith(e,t)});return void 0===e?r:(n=E.ensureTrailingDirectorySeparator(e),r.map(function(e){return E.removePrefix(e,n)}))}(o,i,n);_=e.pos&&t<=e.end});if(!i)return;var a,o,s,c=e.text.slice(i.pos,t),c=v.exec(c);if(c)return a=c[1],o=c[2],c=c[3],s=E.getDirectoryPath(e.path),e="path"===o?O(c,s,w(r,1),n,e.path):"types"===o?j(n,r,s,R(c),w(r)):E.Debug.fail(),C(c,i.pos+a.length,E.arrayFrom(e.values()))}(e,t,n,i))&&D(c);if(E.isInString(e,t,r)&&r&&E.isStringLiteralLike(r)){var c,l=c=S(e,r,t,a.getTypeChecker(),n,i,s),u=r,_=e,d=i,p=a,f=o,g=n,m=s;if(void 0!==l){var y=E.createTextSpanFromStringLiteralLikeContent(u);switch(l.kind){case 0:return D(l.paths);case 1:var h=E.createSortedArray();return k.getCompletionEntriesFromSymbols(l.symbols,h,u,u,_,_,d,p,99,f,4,m,g,void 0),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:l.hasIndexSignature,optionalReplacementSpan:y,entries:h};case 2:h=l.types.map(function(e){return{name:e.value,kindModifiers:"",kind:"string",sortText:k.SortText.LocationPriority,replacementSpan:E.getReplacementSpanForContextToken(u)}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:l.isNewIdentifier,optionalReplacementSpan:y,entries:h};default:return E.Debug.assertNever(l)}}}},e.getStringLiteralCompletionDetails=function(e,t,r,n,i,a,o,s,c){if(n&&E.isStringLiteralLike(n))return(r=S(t,n,r,i,a,o,c))&&function(t,e,r,n,i,a){switch(r.kind){case 0:return(o=E.find(r.paths,function(e){return e.name===t}))&&k.createCompletionDetails(t,l(o.extension),o.kind,[E.textPart(t)]);case 1:var o;return(o=E.find(r.symbols,function(e){return e.name===t}))&&k.createCompletionDetailsForSymbol(o,i,n,e,a);case 2:return E.find(r.types,function(e){return e.value===t})?k.createCompletionDetails(t,"","type",[E.textPart(t)]):void 0;default:return E.Debug.assertNever(r)}}(e,n,r,t,i,s)},v=/^(\/\/\/\s*se.moduleSpecifierResolutionLimit}}),r=g?" (".concat((f/g*100).toFixed(1),"% hit rate)"):"";return null!=(c=t.log)&&c.call(t,"".concat(e,": resolved ").concat(p," module specifiers, plus ").concat(d," ambient and ").concat(f," from cache").concat(r)),null!=(c=t.log)&&c.call(t,"".concat(e,": response is ").concat(_?"incomplete":"complete")),null!=(r=t.log)&&r.call(t,"".concat(e,": ").concat(oe.timestamp()-l)),n}function j(e,t){var r,n=oe.compareStringsCaseSensitiveUI(e.sortText,t.sortText);return 0===(n=0===(n=0===n?oe.compareStringsCaseSensitiveUI(e.name,t.name):n)&&null!=(r=e.data)&&r.moduleSpecifier&&null!=(r=t.data)&&r.moduleSpecifier?oe.compareNumberOfDirectorySeparators(e.data.moduleSpecifier,t.data.moduleSpecifier):n)?-1:n}function g(e){return null!=e&&e.moduleSpecifier}function m(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function le(e,t,r){return{kind:4,keywordCompletions:W(e,t),isNewIdentifierLocation:r}}function ue(e,t){return!oe.isSourceFileJS(e)||!!oe.isCheckJsEnabledForFile(e,t)}function J(e,t,r){return"object"==typeof r?oe.pseudoBigIntToString(r)+"n":oe.isString(r)?oe.quote(e,t,r):JSON.stringify(r)}function q(e,t,r,n,i,a,o,s,c,l,u,_,d,p,f,g,m,y,h,v,b,x){var D,S,T,C,E,k,r=oe.getReplacementSpanForContextToken(r),N=K(u),A=s.getTypeChecker(),F=u&&!!(16&u.kind),P=u&&!!(2&u.kind)||l;if(u&&1&u.kind)E=l?"this".concat(F?"?.":"","[").concat(U(a,y,c),"]"):"this".concat(F?"?.":".").concat(c);else if((P||F)&&d){E=P?"[".concat(l?U(a,y,c):c,"]"):c,(F||d.questionDotToken)&&(E="?.".concat(E));var P=oe.findChildOfKind(d,24,a)||oe.findChildOfKind(d,28,a);if(!P)return;var w=(oe.startsWith(c,d.name.text)?d.name:P).end,r=oe.createTextSpanFromBounds(P.getStart(a),w)}if(p&&(void 0===E&&(E=c),E="{".concat(E,"}"),"boolean"!=typeof p)&&(r=oe.createTextSpanFromNode(p,a)),u&&8&u.kind&&d&&(void 0===E&&(E=c),P="",(w=oe.findPrecedingToken(d.pos,a))&&oe.positionIsASICandidate(w.end,w.parent,a)&&(P=";"),P+="(await ".concat(d.expression.getText(),")"),E=(l?"".concat(P):"".concat(P).concat(F?"?.":".")).concat(E),r=oe.createTextSpanFromBounds(d.getStart(a),d.end)),M(u)&&(S=[oe.textPart(u.moduleSpecifier)],f)&&(E=(p=function(e,t,r,n,i,a,o){var s=t.replacementSpan,c=oe.quote(i,o,r.moduleSpecifier),r=r.isDefaultExport?1:"export="===r.exportName?2:0,l=o.includeCompletionsWithSnippetText?"$1":"",o=oe.codefix.getImportKind(i,r,a,!0),i=t.couldBeTypeOnlyImportSpecifier,u=t.isTopLevelTypeOnly?" ".concat(oe.tokenToString(154)," "):" ",_=i?"".concat(oe.tokenToString(154)," "):"",d=n?";":"";switch(o){case 3:return{replacementSpan:s,insertText:"import".concat(u).concat(oe.escapeSnippetText(e)).concat(l," = require(").concat(c,")").concat(d)};case 1:return{replacementSpan:s,insertText:"import".concat(u).concat(oe.escapeSnippetText(e)).concat(l," from ").concat(c).concat(d)};case 2:return{replacementSpan:s,insertText:"import".concat(u,"* as ").concat(oe.escapeSnippetText(e)," from ").concat(c).concat(d)};case 0:return{replacementSpan:s,insertText:"import".concat(u,"{ ").concat(_).concat(oe.escapeSnippetText(e)).concat(l," } from ").concat(c).concat(d)}}}(c,f,u,g,a,m,y)).insertText,r=p.replacementSpan,k=!!y.includeCompletionsWithSnippetText||void 0),64===(null==u?void 0:u.kind)&&(T=!0),y.includeCompletionsWithClassMemberSnippets&&y.includeCompletionsWithInsertText&&3===h&&function(e,t,r){if(oe.isInJSFile(t))return;return 106500&e.flags&&(oe.isClassLike(t)||t.parent&&t.parent.parent&&oe.isClassElement(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&oe.isClassLike(t.parent.parent)||t.parent&&oe.isSyntaxList(t)&&oe.isClassLike(t.parent))}(e,i,a)&&(w=void 0,E=(l=B(o,s,m,y,c,e,i,n,v)).insertText,k=l.isSnippet,w=l.importAdder,r=l.replacementSpan,t=se.SortText.ClassMemberSnippets,null!=w)&&w.hasFixes()&&(T=!0,N=I.ClassMemberSnippet),u&&R(u)&&(E=u.insertText,k=u.isSnippet,C=u.labelDetails,y.useLabelDetailsInCompletionEntries||(c+=C.detail,C=void 0),N=I.ObjectLiteralMethodSnippet,t=se.SortText.SortBelow(t)),b&&!x&&y.includeCompletionsWithSnippetText&&y.jsxAttributeCompletionStyle&&"none"!==y.jsxAttributeCompletionStyle&&(P="braces"===y.jsxAttributeCompletionStyle,F=A.getTypeOfSymbolAtLocation(e,i),"auto"!==y.jsxAttributeCompletionStyle||528&F.flags||1048576&F.flags&&oe.find(F.types,function(e){return!!(528&e.flags)})||(402653316&F.flags||1048576&F.flags&&oe.every(F.types,function(e){return!!(402686084&e.flags)})?(E="".concat(oe.escapeSnippetText(c),"=").concat(oe.quote(a,y,"$1")),k=!0):P=!0),P)&&(E="".concat(oe.escapeSnippetText(c),"={$1}"),k=!0),void 0===E||y.includeCompletionsWithInsertText)return(O(u)||M(u))&&(D=z(u),T=!f),{name:c,kind:oe.SymbolDisplay.getSymbolKind(A,e,i),kindModifiers:oe.SymbolDisplay.getSymbolModifiers(A,e),sortText:t,source:N,hasAction:!!T||void 0,isRecommended:(d=A,(g=e)===(p=_)||!!(1048576&g.flags)&&d.getExportSymbolOfSymbol(g)===p||void 0),insertText:E,replacementSpan:r,sourceDisplay:S,labelDetails:C,isSnippet:k,isPackageJsonImport:(O(h=u)||M(h))&&!!h.isFromPackageJson||void 0,isImportStatementCompletion:!!f||void 0,data:D}}function B(e,t,r,n,i,a,o,s,c){var l,u,_,d,p,f,g,m,y,h,v,b=oe.findAncestor(o,oe.isClassLike);return b?(v=i,l=t.getTypeChecker(),o=o.getSourceFile(),r=x({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:oe.getNewLineKind(oe.getNewLineCharacter(r,oe.maybeBind(e,e.getNewLine)))}),u=oe.codefix.createImportAdder(o,t,n,e),n.includeCompletionsWithSnippetText?(_=!0,f=oe.factory.createEmptyStatement(),d=oe.factory.createBlock([f],!0),oe.setSnippetElement(f,{kind:0,order:0})):d=oe.factory.createBlock([],!0),p=0,f=function(e){if(!e)return{modifiers:0};var t,r,n=0;(r=function(e){if(oe.isModifier(e))return e.kind;if(oe.isIdentifier(e)&&e.originalKeywordKind&&oe.isModifierKind(e.originalKeywordKind))return e.originalKeywordKind;return}(e))&&(n|=oe.modifierToFlag(r),t=oe.createTextSpanFromNode(e));oe.isPropertyDeclaration(e.parent)&&(n|=126975&oe.modifiersToFlags(e.parent.modifiers),t=oe.createTextSpanFromNode(e.parent));return{modifiers:n,span:t}}(s),g=f.modifiers,s=f.span,y=[],oe.codefix.addNewNodeForMemberSymbol(a,b,o,{program:t,host:e},n,u,function(e){var t=0;m&&(t|=256),oe.isClassElement(e)&&1===l.getMemberOverrideModifierStatus(b,e)&&(t|=16384),y.length||(p=e.modifierFlagsCache|t|g),e=oe.factory.updateModifiers(e,p),y.push(e)},d,2,m=!!(256&g)),y.length&&(h=s,v=c?r.printAndFormatSnippetList(131073,oe.factory.createNodeArray(y),o,c):r.printSnippetList(131073,oe.factory.createNodeArray(y),o)),{insertText:v,isSnippet:_,importAdder:u,replacementSpan:h}):{insertText:i}}function be(e,t,r,n,i,a,o,s){var c=o.includeCompletionsWithSnippetText||void 0,l=r.getSourceFile(),e=function(e,t,r,n,i,a){var o=e.getDeclarations();if(!o||!o.length)return;var s=n.getTypeChecker(),o=o[0],c=oe.getSynthesizedDeepClone(oe.getNameOfDeclaration(o),!1),l=s.getWidenedType(s.getTypeOfSymbolAtLocation(e,t)),u=33554432|(0===oe.getQuotePreference(r,a)?268435456:0);switch(o.kind){case 168:case 169:case 170:case 171:var _,d=1048576&l.flags&&l.types.length<10?s.getUnionType(l.types,2):l;if(1048576&d.flags){var p=oe.filter(d.types,function(e){return 0=e.pos;case 24:return 204===r;case 58:return 205===r;case 22:return 204===r;case 20:return 295===r||re(r);case 18:return 263===r;case 29:return 260===r||228===r||261===r||262===r||oe.isFunctionLikeKind(r);case 124:return 169===r&&!oe.isClassLike(t.parent);case 25:return 166===r||!!t.parent&&204===t.parent.kind;case 123:case 121:case 122:return 166===r&&!oe.isConstructorDeclaration(t.parent);case 128:return 273===r||278===r||271===r;case 137:case 151:return!he(e);case 79:if(273===r&&e===t.name&&"type"===e.text)return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 138:return!0;case 154:return 273!==r;case 41:return oe.isFunctionLike(e.parent)&&!oe.isMethodDeclaration(e.parent)}if(fe(ge(e))&&he(e))return!1;if(ee(e)&&(!oe.isIdentifier(e)||oe.isParameterPropertyModifier(ge(e))||M(e)))return!1;switch(ge(e)){case 126:case 84:case 85:case 136:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 132:return oe.isPropertyDeclaration(e.parent)}if(oe.findAncestor(e.parent,oe.isClassLike)&&e===u&&te(e,d))return!1;var n=oe.getAncestor(e.parent,169);if(n&&e!==u&&oe.isClassLike(u.parent.parent)&&d<=u.end){if(te(e,u.end))return!1;if(63!==e.kind&&(oe.isInitializedProperty(n)||oe.hasType(n)))return!0}return oe.isDeclarationName(e)&&!oe.isShorthandPropertyAssignment(e.parent)&&!oe.isJsxAttribute(e.parent)&&!(oe.isClassLike(e.parent)&&(e!==u||d>u.end))}(t)||function(e){return 8===e.kind&&"."===(e=e.getFullText()).charAt(e.length-1)}(t)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(S===e.parent&&(283===S.kind||282===S.kind))return!1;if(283===e.parent.kind)return 283!==S.parent.kind;if(284===e.parent.kind||282===e.parent.kind)return!!e.parent.parent&&281===e.parent.parent.kind}return!1}(t)||oe.isBigIntLiteral(t),e("getCompletionsAtPosition: isCompletionListBlocker: "+(oe.timestamp()-n)),t))return e("Returning an empty list because completion was requested in an invalid position."),T?le(T,i,$()):void 0;var k=v.parent;if(24===v.kind||28===v.kind)switch(x=24===v.kind,D=28===v.kind,k.kind){case 208:var N,b=(N=k).expression,U=oe.getLeftmostAccessExpression(N);if(oe.nodeIsMissing(U)||(oe.isCallExpression(b)||oe.isFunctionLike(b))&&b.end===v.pos&&b.getChildCount(g)&&21!==oe.last(b.getChildren(g)).kind)return;break;case 163:b=k.left;break;case 264:b=k.name;break;case 202:b=k;break;case 233:b=k.getFirstToken(g),oe.Debug.assert(100===b.kind||103===b.kind);break;default:return}else if(!l){if(k&&208===k.kind&&(k=(v=k).parent),r.parent===S)switch(r.kind){case 31:281!==r.parent.kind&&283!==r.parent.kind||(S=r);break;case 43:282===r.parent.kind&&(S=r)}switch(k.kind){case 284:43===v.kind&&(z=!0,S=v);break;case 223:if(!De(k))break;case 282:case 281:case 283:o=!0,29===v.kind&&(f=!0,S=v);break;case 291:case 290:19===u.kind&&31===r.kind&&(o=!0);break;case 288:if(k.initializer===u&&u.end"),r=oe.createTextSpanFromNode(e.tagName),{isGlobalCompletion:!(e={name:t,kind:"class",kindModifiers:void 0,sortText:se.SortText.LocationPriority}),isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:r,entries:[e]}}}(f,e);if(C)return C}var E=oe.createSortedArray(),C=ue(e,n);if(C&&!p&&(!l||0===l.length)&&0===m)return;var k=V(l,E,void 0,u,f,e,t,r,oe.getEmitScriptTarget(n),i,_,o,n,s,x,g,D,b,T,v,h,R,D,S);if(0!==m)for(var N=0,A=W(m,!L&&oe.isSourceFileJS(e));N=a.end;c--)if(!l.isWhiteSpaceSingleLine(t.text.charCodeAt(c))){s=!1;break}if(s){n.push({fileName:t.fileName,textSpan:l.createTextSpanFromBounds(a.getStart(),o.end),kind:"reference"}),i++;continue}}n.push(u(r[i],t))}return n}(e.parent,n):void 0;case 105:return i(e.parent,l.isReturnStatement,g);case 109:return i(e.parent,l.isThrowStatement,f);case 111:case 83:case 96:return i((83===e.kind?e.parent:e).parent,l.isTryStatement,p);case 107:return i(e.parent,l.isSwitchStatement,d);case 82:case 88:return l.isDefaultClause(e.parent)||l.isCaseClause(e.parent)?i(e.parent.parent.parent,l.isSwitchStatement,d):void 0;case 81:case 86:return i(e.parent,l.isBreakOrContinueStatement,c);case 97:case 115:case 90:return i(e.parent,function(e){return l.isIterationStatement(e,!0)},s);case 135:return t(l.isConstructorDeclaration,[135]);case 137:case 151:return t(l.isAccessor,[137,151]);case 133:return i(e.parent,l.isAwaitExpression,m);case 132:return a(m(e));case 125:return a(function(e){var t,e=l.getContainingFunction(e);if(e)return t=[],l.forEachChild(e,function(e){y(e,function(e){l.isYieldExpression(e)&&_(t,e.getFirstToken(),125)})}),t}(e));case 101:return;default:return l.isModifierKind(e.kind)&&(l.isDeclaration(e.parent)||l.isVariableStatement(e.parent))?a(function(t,e){return l.mapDefined(function(e,t){var r=e.parent;switch(r.kind){case 265:case 308:case 238:case 292:case 293:return 256&t&&l.isClassDeclaration(e)?__spreadArray(__spreadArray([],e.members,!0),[e],!1):r.statements;case 173:case 171:case 259:return __spreadArray(__spreadArray([],r.parameters,!0),l.isClassLike(r.parent)?r.parent.members:[],!0);case 260:case 228:case 261:case 184:var n=r.members;if(92&t){var i=l.find(r.members,l.isConstructorDeclaration);if(i)return __spreadArray(__spreadArray([],n,!0),i.parameters,!0)}else if(256&t)return __spreadArray(__spreadArray([],n,!0),[r],!1);return n;case 207:return;default:l.Debug.assertNever(r,"Invalid container kind.")}}(e,l.modifierToFlag(t)),function(e){return l.findModifier(e,t)})}(e.kind,e.parent)):void 0}function t(t,r){return i(e.parent,t,function(e){return l.mapDefined(e.symbol.declarations,function(e){return t(e)?l.find(e.getChildren(n),function(e){return l.contains(r,e.kind)}):void 0})})}function i(e,t,r){return t(e)?a(r(e,n)):void 0}function a(e){return e&&e.map(function(e){return u(e,n)})}}(e,t);return e&&[{fileName:t.fileName,highlightSpans:e}]}(o,r)}}(ts=ts||{}),!function(D){function S(e){return e.sourceFile}function r(e,o,h){void 0===o&&(o="");var v=new D.Map,s=D.createGetCanonicalFileName(!!e);function b(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function c(e,t,r,n,i,a,o,s){return u(e,t,r,n,i,a,!0,o,s)}function l(e,t,r,n,i,a,o,s){return u(e,t,b(r),n,i,a,!1,o,s)}function x(e,t){e=S(e)?e:e.get(D.Debug.checkDefined(t,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return D.Debug.assert(void 0===t||!e||e.sourceFile.scriptKind===t,"Script kind should match provided ScriptKind:".concat(t," and sourceFile.scriptKind: ").concat(null==e?void 0:e.sourceFile.scriptKind,", !entry: ").concat(!e)),e}function u(e,r,t,n,i,a,o,s,c){s=D.ensureScriptKind(e,s);var l,u=b(t),t=t===u?void 0:t,_=6===s?100:D.getEmitScriptTarget(u),c="object"==typeof c?c:{languageVersion:_,impliedNodeFormat:t&&D.getImpliedNodeFormatForFile(r,null==(d=null==(d=null==(c=null==(c=t.getCompilerHost)?void 0:c.call(t))?void 0:c.getModuleResolutionCache)?void 0:d.call(c))?void 0:d.getPackageJsonInfoCache(),t,u),setExternalModuleIndicator:D.getSetExternalModuleIndicator(u)},d=(c.languageVersion=_,v.size),p=T(n,c.impliedNodeFormat),f=D.getOrUpdate(v,p,function(){return new D.Map}),g=(D.tracing&&(v.size>d&&D.tracing.instant("session","createdDocumentRegistryBucket",{configFilePath:u.configFilePath,key:p}),t=!D.isDeclarationFileName(r)&&D.forEachEntry(v,function(e,t){return t!==p&&e.has(r)&&t}))&&D.tracing.instant("session","documentRegistryBucketOverlap",{path:r,key1:t,key2:p}),f.get(r)),m=g&&x(g,s);return!m&&h&&(l=h.getDocument(p,r))&&(D.Debug.assert(o),m={sourceFile:l,languageServiceRefCount:0},y()),m?(m.sourceFile.version!==a&&(m.sourceFile=D.updateLanguageServiceSourceFile(m.sourceFile,i,a,i.getChangeRange(m.sourceFile.scriptSnapshot)),h)&&h.setDocument(p,r,m.sourceFile),o&&m.languageServiceRefCount++):(l=D.createLanguageServiceSourceFile(e,i,c,a,!1,s),h&&h.setDocument(p,r,l),m={sourceFile:l,languageServiceRefCount:1},y()),D.Debug.assert(0!==m.languageServiceRefCount),m.sourceFile;function y(){var e;g?S(g)?((e=new D.Map).set(g.sourceFile.scriptKind,g),e.set(s,m),f.set(r,e)):g.set(s,m):f.set(r,m)}}function i(e,t,r,n){var t=D.Debug.checkDefined(v.get(T(t,n))),n=t.get(e),i=x(n,r);i.languageServiceRefCount--,D.Debug.assert(0<=i.languageServiceRefCount),0===i.languageServiceRefCount&&(S(n)?t.delete(e):(n.delete(r),1===n.size&&t.set(e,D.firstDefinedIterator(n.values(),D.identity))))}return{acquireDocument:function(e,t,r,n,i,a){return c(e,D.toPath(e,o,s),t,_(b(t)),r,n,i,a)},acquireDocumentWithKey:c,updateDocument:function(e,t,r,n,i,a){return l(e,D.toPath(e,o,s),t,_(b(t)),r,n,i,a)},updateDocumentWithKey:l,releaseDocument:function(e,t,r,n){return i(D.toPath(e,o,s),_(t),r,n)},releaseDocumentWithKey:i,getLanguageServiceRefCounts:function(r,n){return D.arrayFrom(v.entries(),function(e){var t=e[0],e=e[1].get(r),e=e&&x(e,n);return[t,e&&e.languageServiceRefCount]})},reportStats:function(){var e=D.arrayFrom(v.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=v.get(e),n=[];return t.forEach(function(e,r){S(e)?n.push({name:r,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach(function(e,t){return n.push({name:r,scriptKind:t,refCount:e.languageServiceRefCount})})}),n.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:n}});return JSON.stringify(e,void 0,2)},getKeyForCompilationSettings:_}}function _(t){return D.sourceFileAffectingCompilerOptions.map(function(e){return function e(t){var r;if(null===t||"object"!=typeof t)return""+t;if(D.isArray(t))return"[".concat(null==(r=D.map(t,e))?void 0:r.join(","),"]");var n,i="{";for(n in t)D.hasProperty(t,n)&&(i+="".concat(n,": ").concat(e(t[n])));return i+"}"}(D.getCompilerOptionValue(t,e))}).join("|")+(t.pathsBasePath?"|".concat(t.pathsBasePath):void 0)}function T(e,t){return t?"".concat(e,"|").concat(t):e}D.createDocumentRegistry=function(e,t){return r(e,t)},D.createDocumentRegistryInternal=r}(ts=ts||{}),!function(E){var e,t;function k(e,t){return E.forEach((308===e.kind?e:e.body).statements,function(e){return t(e)||F(e)&&E.forEach(e.body&&e.body.statements,t)})}function g(e,r){if(e.externalModuleIndicator||void 0!==e.imports)for(var t=0,n=e.imports;tr.end);){var c=s+o;0!==s&&b.isIdentifierPart(i.charCodeAt(s-1),99)||c!==a&&b.isIdentifierPart(i.charCodeAt(c),99)||n.push(s),s=i.indexOf(t,s+o+1)}return n}function q(e,t){var r=e.getSourceFile(),n=t.text,r=b.mapDefined(F(r,n,e),function(e){return e===t||b.isJumpStatementTarget(e)&&b.getTargetLabel(e,n)===t?g(e):void 0});return[{definition:{type:1,node:t},references:r}]}function P(e,t,r,n){void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),W(e,e,t,r,n)}function W(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=V(t,r.text,e);a";case 274:return x.isExportAssignment(e)&&e.isExportEquals?"export=":"default";case 216:case 259:case 215:case 260:case 228:return 1024&x.getSyntacticModifierFlags(e)?"default":V(e);case 173:return"constructor";case 177:return"new()";case 176:return"()";case 178:return"[]";default:return""}}function J(e){return{text:h(e.node,e.name),kind:x.getNodeKind(e.node),kindModifiers:K(e.node),spans:v(e),nameSpan:e.name&&O(e.name),childItems:x.map(e.children,J)}}function z(e){return{text:h(e.node,e.name),kind:x.getNodeKind(e.node),kindModifiers:K(e.node),spans:v(e),childItems:x.map(e.children,function(e){return{text:h(e.node,e.name),kind:x.getNodeKind(e.node),kindModifiers:x.getNodeModifiers(e.node),spans:v(e),childItems:t,indent:0,bolded:!1,grayed:!1}})||t,indent:e.indent,bolded:!1,grayed:!1}}function v(e){var t=[O(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r";if(x.isCallExpression(t)){e=function e(t){{var r;return x.isIdentifier(t)?t.text:x.isPropertyAccessExpression(t)?(r=e(t.expression),t=t.name.text,void 0===r?t:"".concat(r,".").concat(t)):void 0}}(t.expression);if(void 0!==e)return(e=M(e)).length>r?"".concat(e," callback"):(t=M(x.mapDefined(t.arguments,function(e){return x.isStringLiteralLike(e)?e.getText(n):void 0}).join(", ")),"".concat(e,"(").concat(t,") callback"))}return""}function M(e){return(e=e.length>r?e.substring(0,r)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(ts=ts||{}),!function(b){var e;function m(e,t){for(var r=b.createScanner(e.languageVersion,!1,e.languageVariant),n=[],i=0,a=0,o=t;a...")}(a);case 285:return function(e){e=D.createTextSpanFromBounds(e.openingFragment.getStart(o),e.closingFragment.getEnd());return N(e,"code",e,!1,"<>...")}(a);case 282:case 283:return function(e){if(0!==e.properties.length)return E(e.getStart(o),e.getEnd(),"code")}(a.attributes);case 225:case 14:return function(e){if(14!==e.kind||0!==e.text.length)return E(e.getStart(o),e.getEnd(),"code")}(a);case 204:return r(a,!1,!D.isBindingElement(a.parent),22);case 216:return function(e){if(D.isBlock(e.body)||D.isParenthesizedExpression(e.body)||D.positionsAreOnSameLine(e.body.getFullStart(),e.body.getEnd(),o))return;return N(D.createTextSpanFromBounds(e.body.getFullStart(),e.body.getEnd()),"code",D.createTextSpanFromNode(e))}(a);case 210:return function(e){if(!e.arguments.length)return;var t=D.findChildOfKind(e,20,o),r=D.findChildOfKind(e,21,o);if(t&&r&&!D.positionsAreOnSameLine(t.pos,r.pos,o))return k(t,r,e,o,!1,!0)}(a);case 214:return function(e){return D.positionsAreOnSameLine(e.getStart(),e.getEnd(),o)?void 0:N(D.createTextSpanFromBounds(e.getStart(),e.getEnd()),"code",D.createTextSpanFromNode(e))}(a)}function t(e,t){return void 0===t&&(t=18),r(e,!1,!D.isArrayLiteralExpression(e.parent)&&!D.isCallExpression(e.parent),t)}function r(e,t,r,n,i){void 0===t&&(t=!1),void 0===r&&(r=!0),void 0===n&&(n=18),void 0===i&&(i=18===n?19:23);n=D.findChildOfKind(a,n,o),i=D.findChildOfKind(a,i,o);return n&&i&&k(n,i,e,o,t,r)}}(e,n))&&a.push(t),o--,D.isCallExpression(e)?(o++,d(e.expression),o--,e.arguments.forEach(d),null!=(t=e.typeArguments)&&t.forEach(d)):D.isIfStatement(e)&&e.elseStatement&&D.isIfStatement(e.elseStatement)?(d(e.expression),d(e.thenStatement),o++,d(e.elseStatement),o--):e.forEachChild(d),o++)}for(var p=e,f=r,g=[],t=p.getLineStarts(),m=0,y=t;mn.length)){for(var o=i.length-2,s=n.length-1;0<=o;--o,--s)r=p(r,d(n[s],i[o],a));return r}},getMatchForLastSegmentOfPattern:function(e){return d(e,_.last(l),c)},patternContainsDots:1r)break e;var l=f.singleOrUndefined(f.getTrailingCommentRanges(e.text,s.end));if(l&&2===l.kind){d=_=u=void 0;for(var u=l.pos,_=l.end,d=(p(u,_),u);47===e.text.charCodeAt(d);)d++;p(d,_)}if(function(e,t,r){if(f.Debug.assert(r.pos<=t),tr+1),e[r+1]}(n.parent,n,a),argumentIndex:0}:(a=x.findContainingList(n))&&{list:a,argumentIndex:function(e,t){for(var r=0,n=0,i=e.getChildren();n=t.getStart(),"Assumed 'position' could not occur before node."),x.isTemplateLiteralToken(t))return x.isInsideTemplateLiteral(t,r,n)?0:e+2;return e+1}(i.parent.templateSpans.indexOf(i),e,t,r),r):void 0):x.isJsxOpeningLikeElement(n)?(c=n.attributes.pos,i=x.skipTrivia(r.text,n.attributes.end,!1),{isTypeParameterList:!1,invocation:{kind:0,node:n},argumentsSpan:x.createTextSpan(c,i-c),argumentIndex:0,argumentCount:1}):(i=x.getPossibleTypeArgumentsInfo(e,r))?(c=i.called,i=i.nTypeArguments,{isTypeParameterList:!0,invocation:s={kind:1,called:c},argumentsSpan:o=x.createTextSpanFromBounds(c.getStart(r),e.end),argumentIndex:i,argumentCount:i+1}):void 0}var i,a,o,s=n,c=g(e,t,r);if(c)return i=c.list,a=c.argumentIndex,e=c.argumentCount,o=c.argumentsSpan,{isTypeParameterList:!!n.typeArguments&&n.typeArguments.pos===i.pos,invocation:{kind:0,node:s},argumentsSpan:o,argumentIndex:a,argumentCount:e}}function y(e){return x.isBinaryExpression(e.left)?y(e.left)+1:2}function l(e,t,r){var n=x.isNoSubstitutionTemplateLiteral(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&x.Debug.assertLessThan(t,n),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:function(e,t){var e=e.template,r=e.getStart(),n=e.getEnd();225===e.kind&&0===x.last(e.templateSpans).literal.getFullWidth()&&(n=x.skipTrivia(t.text,n,!1));return x.createTextSpan(r,n-r)}(e,r),argumentIndex:t,argumentCount:n}}function S(e){return 0===e.kind?x.getInvokedExpression(e.node):e.called}function T(e){return 0!==e.kind&&1===e.kind?e.called:e.node}function h(e,t,r,n,i,a){for(var o=r.isTypeParameterList,s=r.argumentCount,c=r.argumentsSpan,l=r.invocation,r=r.argumentIndex,p=T(l),l=2===l.kind?l.symbol:i.getSymbolAtLocation(S(l))||a&&(null==(l=t.declaration)?void 0:l.symbol),f=l?x.symbolToDisplayParts(i,l,a?n:void 0,void 0):x.emptyArray,u=x.map(e,function(e){var l=e,u=f,e=o,_=i,d=p;return e=(o?C:E)(l,_,d,n),x.map(e,function(e){var r,n,i,t=e.isVariadic,a=e.parameters,o=e.prefix,e=e.suffix,o=__spreadArray(__spreadArray([],u,!0),o,!0),e=__spreadArray(__spreadArray([],e,!0),(r=l,n=d,i=_,x.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var t=i.getTypePredicateOfSignature(r);t?i.writeTypePredicate(t,n,void 0,e):i.writeType(i.getReturnTypeOfSignature(r),n,void 0,e)})),!0),s=l.getDocumentationComment(_),c=l.getJsDocTags();return{isVariadic:t,prefixDisplayParts:o,suffixDisplayParts:e,separatorDisplayParts:D,parameters:a,documentation:s,tags:c}})}),_=(0!==r&&x.Debug.assertLessThan(r,s),0),d=0,g=0;g=s){_=d+y;break}y++}d+=m.length}x.Debug.assert(-1!==_);l={items:x.flatMapToMutable(u,x.identity),applicableSpan:c,selectedItemIndex:_,argumentIndex:r,argumentCount:s},a=l.items[_];return a.isVariadic&&(-1<(c=x.findIndex(a.parameters,function(e){return!!e.isRest}))&&ct?e.substr(0,t-"...".length)+"...":e}function b(r){var n=D.createPrinter({removeComments:!0});return D.usingSingleLineStringWriter(function(e){var t=p.typeToTypeNode(r,void 0,71286784,e);D.Debug.assertIsDefined(t,"should always get typenode"),n.writeNode(4,t,l,e)})}function x(e){return!(D.isParameterDeclaration(e)||D.isVariableDeclaration(e)&&D.isVarConst(e))||!e.initializer||!(m(e=D.skipParentheses(e.initializer))||D.isNewExpression(e)||D.isObjectLiteralExpression(e)||D.isAssertionExpression(e))}}}(ts=ts||{}),!function(d){var u=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function _(e,t,r){t=d.tryParseRawSourceMap(t);if(t&&t.sources&&t.file&&t.mappings&&(!t.sourcesContent||!t.sourcesContent.some(d.isString)))return d.createDocumentPositionMapper(e,t,r)}d.getSourceMapper=function(a){var o=d.createGetCanonicalFileName(a.useCaseSensitiveFileNames()),n=a.getCurrentDirectory(),i=new d.Map,s=new d.Map;return{tryGetSourcePosition:function e(t){if(!d.isDeclarationFileName(t.fileName))return;var r=u(t.fileName);if(!r)return;r=l(t.fileName).getSourcePosition(t);return r&&r!==t?e(r)||r:void 0},tryGetGeneratedPosition:function(e){if(d.isDeclarationFileName(e.fileName))return;var t=u(e.fileName);if(!t)return;var r=a.getProgram();if(r.isSourceOfProjectReferenceRedirect(t.fileName))return;t=r.getCompilerOptions(),t=d.outFile(t),t=t?d.removeFileExtension(t)+".d.ts":d.getDeclarationEmitOutputFilePathWorker(e.fileName,r.getCompilerOptions(),n,r.getCommonSourceDirectory(),o);return void 0===t||(r=l(t,e.fileName).getGeneratedPosition(e))===e?void 0:r},toLineColumnOffset:function(e,t){return _(e).getLineAndCharacterOfPosition(t)},clearCache:function(){i.clear(),s.clear()}};function c(e){return d.toPath(e,n,o)}function l(e,t){var r,n=c(e),i=s.get(n);return i||(a.getDocumentPositionMapper?r=a.getDocumentPositionMapper(e,t):a.readFile&&(r=(i=_(e))&&d.getDocumentPositionMapper({getSourceFileLike:_,getCanonicalFileName:o,log:function(e){return a.log(e)}},e,d.getLineInfo(i.text,d.getLineStarts(i)),function(e){return!a.fileExists||a.fileExists(e)?a.readFile(e):void 0})),s.set(n,r||d.identitySourceMapConsumer),r)||d.identitySourceMapConsumer}function u(e){var t=a.getProgram();if(t)return e=c(e),(t=t.getSourceFileByPath(e))&&t.resolvedPath===e?t:void 0}function t(e){var t,e=c(e),r=i.get(e);return void 0!==r?r||void 0:!a.readFile||a.fileExists&&!a.fileExists(e)?void i.set(e,!1):(r=a.readFile(e),i.set(e,e=!!r&&{text:r,lineMap:t,getLineAndCharacterOfPosition:function(e){return d.computeLineAndCharacterOfPosition(d.getLineStarts(this),e)}}),e||void 0)}function _(e){return a.getSourceFileLike?a.getSourceFileLike(e):u(e)||t(e)}},d.getDocumentPositionMapper=function(e,t,r,n){if(r=d.tryGetSourceMappingURL(r)){var i=u.exec(r);if(i){if(i[1])return i=i[1],_(e,d.base64decode(d.sys,i),t);r=void 0}}for(var i=[],a=(r&&i.push(r),i.push(t+".map"),r&&d.getNormalizedAbsolutePath(r,d.getDirectoryPath(t))),o=0,s=i;ot)&&(e.arguments.length>=y;return r}(a,r),0,t),n[i]=function(e,t){var r=1+(e>>t&h);return f.Debug.assert((r&h)==r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(h<=t.pos?e.pos:n.end),a.end,function(e){return _(a,l,R.SmartIndenter.getIndentationForNode(l,a,o,s.options),function(e,t,r){for(var n,i=-1;e;){var a=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==i&&a!==i)break;if(R.SmartIndenter.shouldIndentChildNode(t,e,n,r))return t.indentSize;i=a,e=(n=e).parent}return 0}(l,s.options,o),e,s,c,(e=o.parseDiagnostics,r=a,e.length&&(n=e.filter(function(e){return L.rangeOverlapsWithStartEnd(r,e.start,e.start+e.length)}).sort(function(e,t){return e.start-t.start})).length?(i=0,function(e){for(;;){if(i>=n.length)return!1;var t=n[i];if(e.end<=t.start)return!1;if(L.startEndOverlapsWithStartEnd(e.pos,e.end,t.start,t.start+t.length))return!0;i++}}):t),o);function t(){return!1}var r,n,i})}function _(T,t,e,r,h,n,i,v,C){var b,x,o,s,D,E=n.options,u=n.getRules,_=n.host,d=new R.FormattingContext(C,i,E),S=-1,p=[];if(h.advance(),h.isOnToken()&&(i=n=C.getLineAndCharacterOfPosition(t.getStart(C)).line,L.hasDecorators(t)&&(i=C.getLineAndCharacterOfPosition(L.getNonDecoratorTokenPosOfNode(t,C)).line),function p(f,e,t,r,n,i){if(!L.rangeOverlapsWithStartEnd(T,f.getStart(C),f.getEnd()))return;var a=A(f,t,n,i);var g=e;L.forEachChild(f,function(e){m(e,-1,f,a,t,r,!1)},function(e){s(e,f,t,a)});for(;h.isOnToken()&&h.getStartPos()Math.min(f.end,T.end))break;y(o,f,a,f)}function m(e,t,r,n,i,a,o,s){if(L.Debug.assert(!L.nodeIsSynthesized(e)),!L.nodeIsMissing(e)){var c=e.getStart(C),l=C.getLineAndCharacterOfPosition(c).line,u=l,_=(L.hasDecorators(e)&&(u=C.getLineAndCharacterOfPosition(L.getNonDecoratorTokenPosOfNode(e,C)).line),-1);if(o&&L.rangeContainsRange(T,r)&&-1!==(_=k(c,e.end,i,T,t))&&(t=_),L.rangeOverlapsWithStartEnd(T,e.pos,e.end)){if(0!==e.getFullWidth()){for(;h.isOnToken()&&h.getStartPos()T.end)return t;if(d.token.end>c){d.token.pos>c&&h.skipToStartOf(e);break}y(d,f,n,f)}if(h.isOnToken()&&!(h.getStartPos()>=T.end)){if(L.isToken(e)){var d=h.readTokenInfo(e);if(11!==e.kind)return L.Debug.assert(d.token.end===e.end,"Token end is child end"),y(d,f,n,e),t}o=167===e.kind?l:a,i=N(e,l,_,f,n,o);p(e,g,l,u,i.indentation,i.delta),g=f,s&&206===r.kind&&-1===t&&(t=i.indentation)}}}else e.ende.pos)break;d.token.kind===o?(c=C.getLineAndCharacterOfPosition(d.token.pos).line,y(d,t,n,t),i=void 0,i=-1!==S?S:(a=L.getLineStartPositionForPosition(d.token.pos,C),R.SmartIndenter.findFirstNonWhitespaceColumn(a,d.token.pos,C,E)),s=A(t,r,i,E.indentSize)):y(d,t,n,t)}for(var l=-1,u=0;u=T.end&&(e=h.isOnEOF()?h.readEOFTokenRange():h.isOnToken()?h.readTokenInfo(t).token:void 0)&&e.pos===b&&(i=(null==(n=L.findPrecedingToken(e.end,C,t))?void 0:n.parent)||o,g(e,C.getLineAndCharacterOfPosition(e.pos).line,i,x,s,o,i,void 0)),p;function k(e,t,r,n,i){if(L.rangeOverlapsWithStartEnd(n,e,t)||L.rangeContainsStartEnd(n,e,t)){if(-1!==i)return i}else{var n=C.getLineAndCharacterOfPosition(e).line,t=L.getLineStartPositionForPosition(e,C),i=R.SmartIndenter.findFirstNonWhitespaceColumn(t,e,C,E);if(n!==r||e===i)return i<(t=R.SmartIndenter.getBaseIndentation(E))?t:i}return-1}function N(e,t,r,n,i,a){var o=R.SmartIndenter.shouldIndentChildNode(E,e)?E.indentSize:0;return a===t?{indentation:t===D?S:i.getIndentation(),delta:Math.min(E.indentSize,i.getDelta(e)+o)}:-1===r?20===e.kind&&t===D?{indentation:S,delta:i.getDelta(e)}:R.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(n,e,t,C)||R.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(n,e,t,C)||R.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(n,e,t,C)?{indentation:i.getIndentation(),delta:o}:{indentation:i.getIndentation()+i.getDelta(e),delta:o}:{indentation:r,delta:o}}function A(i,a,o,r){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return o+s(r)}return-1!==t?t:o},getIndentationForToken:function(e,t,r,n){return!n&&function(e,t,r){switch(t){case 18:case 19:case 21:case 91:case 115:case 59:return;case 43:case 31:switch(r.kind){case 283:case 284:case 282:return}break;case 22:case 23:if(197!==r.kind)return}return a!==e&&(!L.hasDecorators(i)||t!==function(e){if(L.canHaveModifiers(e)){var t=L.find(e.modifiers,L.isModifier,L.findIndex(e.modifiers,L.isDecorator));if(t)return t.kind}switch(e.kind){case 260:return 84;case 261:return 118;case 259:return 98;case 263:return 263;case 174:return 137;case 175:return 151;case 171:if(e.asteriskToken)return 41;case 169:case 166:var r=L.getNameOfDeclaration(e);if(r)return r.kind}}(i))}(e,t,r)?o+s(r):o},getIndentation:function(){return o},getDelta:s,recomputeIndentation:function(e,t){R.SmartIndenter.shouldIndentChildNode(E,t,i,C)&&(o+=e?E.indentSize:-E.indentSize,r=R.SmartIndenter.shouldIndentChildNode(E,i)?E.indentSize:0)}};function s(e){return R.SmartIndenter.nodeWillIndentChild(E,i,e,C,!0)?r:0}}function F(e,t,r,n){for(var i=0,a=e;io||-1!==(i=function(e,t){var r=t;for(;e<=r&&L.isWhiteSpaceSingleLine(C.text.charCodeAt(r));)r--;return r===t?-1:r+1}(a,o))&&(L.Debug.assert(i===a||!L.isWhiteSpaceSingleLine(C.text.charCodeAt(i-1))),O(i,o+1-i))}}function y(e,t,r){m(C.getLineAndCharacterOfPosition(e).line,C.getLineAndCharacterOfPosition(t).line+1,r)}function O(e,t){t&&p.push(L.createTextChangeFromStartLength(e,t,""))}function M(e,t,r){(t||r)&&p.push(L.createTextChangeFromStartLength(e,t,r))}}function B(e,t){switch(e.kind){case 173:case 259:case 215:case 171:case 170:case 216:case 176:case 177:case 181:case 182:case 174:case 175:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 210:case 211:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 260:case 228:case 261:case 262:if(e.typeParameters===t)return 29;break;case 180:case 212:case 183:case 230:case 202:if(e.typeArguments===t)return 29;break;case 184:return 18}return 0}function j(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}function J(e,t){var r,n,i;return(!a||a.tabSize!==t.tabSize||a.indentSize!==t.indentSize)&&(a={tabSize:t.tabSize,indentSize:t.indentSize},o=s=void 0),t.convertTabsToSpaces?(i=void 0,r=Math.floor(e/t.indentSize),n=e%t.indentSize,void 0===(s=s||[])[r]?(i=L.repeatString(" ",t.indentSize*r),s[r]=i):i=s[r],n?i+L.repeatString(" ",n):i):(n=e-(r=Math.floor(e/t.tabSize))*t.tabSize,(i=void 0)===(o=o||[])[r]?o[r]=i=L.repeatString("\t",r):i=o[r],n?i+L.repeatString(" ",n):i)}(R=L.formatting||(L.formatting={})).createTextRangeWithKind=function(e,t,r){return e={pos:e,end:t,kind:r},L.Debug.isDebugging&&Object.defineProperty(e,"__debugKind",{get:function(){return L.Debug.formatSyntaxKind(r)}}),e},R.formatOnEnter=function(e,t,r){if(0===(e=t.getLineAndCharacterOfPosition(e).line))return[];for(var n=L.getEndLinePosition(e,t);L.isWhiteSpaceSingleLine(t.text.charCodeAt(n));)n--;return L.isLineBreak(t.text.charCodeAt(n))&&n--,l({pos:L.getStartPositionOfLine(e-1,t),end:n+1},t,r,2)},R.formatOnSemicolon=function(e,t,r){return n(c(i(e,26,t)),t,r,3)},R.formatOnOpeningCurly=function(e,t,r){var n=i(e,18,t);return n?(n=c(n.parent),l({pos:L.getLineStartPositionForPosition(n.getStart(t),t),end:e},t,r,4)):[]},R.formatOnClosingCurly=function(e,t,r){return n(c(i(e,19,t)),t,r,5)},R.formatDocument=function(e,t){return l({pos:0,end:e.text.length},e,t,0)},R.formatSelection=function(e,t,r,n){return l({pos:L.getLineStartPositionForPosition(e,r),end:t},r,n,1)},R.formatNodeGivenIndentation=function(t,r,e,n,i,a){var o={pos:t.pos,end:t.end};return R.getFormattingScanner(r.text,e,o.pos,o.end,function(e){return _(o,t,n,i,e,a,1,function(e){return!1},r)})},R.getRangeOfEnclosingComment=function(t,r,e,n){void 0===n&&(n=L.getTokenAtPosition(t,r));var i=L.findAncestor(n,L.isJSDoc),i=(n=i?i.parent:n).getStart(t);if(!(i<=r&&rr.end),function(e,t,r){t=v(t,r),t=t?t.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(t)}(d,e,i)),g=f.line===t.line||h(d,e,t.line,i);if(p){p=null==(p=v(e,i))?void 0:p[0],p=w(e,i,o,!!p&&A(p,i).line>f.line);if(-1!==p)return p+n;if(m=e,s=d,c=t,l=g,u=i,_=o,-1!==(p=!C.isDeclaration(m)&&!C.isStatementButNotDeclaration(m)||308!==s.kind&&l?-1:b(c,u,_)))return p+n}L(o,d,e,i,a)&&!g&&(n+=o.indentSize);var m=y(d,e,t.line,i),d=(e=d).parent;t=m?i.getLineAndCharacterOfPosition(e.getStart(i)):f}return n+k(o)}function A(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function y(e,t,r,n){return!(!C.isCallExpression(e)||!C.contains(e.arguments,t))&&(t=e.expression.getEnd(),C.getLineAndCharacterOfPosition(n,t).line===r)}function h(e,t,r,n){return 242===e.kind&&e.elseStatement===t&&(t=C.findChildOfKind(e,91,n),C.Debug.assert(void 0!==t),A(t,n).line===r)}function v(e,t){return e.parent&&F(e.getStart(t),e.getEnd(),e.parent,t)}function F(t,r,n,i){switch(n.kind){case 180:return e(n.typeArguments);case 207:return e(n.properties);case 206:return e(n.elements);case 184:return e(n.members);case 259:case 215:case 216:case 171:case 170:case 176:case 173:case 182:case 177:return e(n.typeParameters)||e(n.parameters);case 174:return e(n.parameters);case 260:case 228:case 261:case 262:case 347:return e(n.typeParameters);case 211:case 210:return e(n.typeArguments)||e(n.arguments);case 258:return e(n.declarations);case 272:case 276:return e(n.elements);case 203:case 204:return e(n.elements)}function e(e){return e&&C.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;it.text.length)return k(r);if(r.indentStyle===C.IndentStyle.None)return 0;var i=C.findPrecedingToken(e,t,void 0,!0);if((l=E.getRangeOfEnclosingComment(t,e,i||null))&&3===l.kind)return c=t,f=e,_=r,l=l,s=C.getLineAndCharacterOfPosition(c,f).line-1,l=C.getLineAndCharacterOfPosition(c,l.pos).line,C.Debug.assert(0<=l),s<=l?M(C.getStartPositionOfLine(l,c),f,c,_):(l=C.getStartPositionOfLine(s,c),s=O(l,f,c,_),f=s.column,_=s.character,0!==f&&42===c.text.charCodeAt(l+_)?f-1:f);if(!i)return k(r);if(C.isStringOrRegularExpressionOrTemplateLiteral(i.kind)&&i.getStart(t)<=e&&ei)break;if(i",joiner:", "})},n.prototype.getOptionsForInsertNodeBefore=function(e,t,r){return y.isStatement(e)||y.isClassElement(e)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:y.isVariableDeclaration(e)?{suffix:", "}:y.isParameter(e)?y.isParameter(t)?{suffix:", "}:{}:y.isStringLiteral(e)&&y.isImportDeclaration(e.parent)||y.isNamedImports(e)?{suffix:", "}:y.isImportSpecifier(e)?{suffix:","+(r?this.newLineCharacter:" ")}:y.Debug.failBadSyntaxKind(e)},n.prototype.insertNodeAtConstructorStart=function(e,t,r){var n=y.firstOrUndefined(t.body.statements);n&&t.body.multiLine?this.insertNodeBefore(e,n,r):this.replaceConstructorBody(e,t,__spreadArray([r],t.body.statements,!0))},n.prototype.insertNodeAtConstructorStartAfterSuperCall=function(e,t,r){var n=y.find(t.body.statements,function(e){return y.isExpressionStatement(e)&&y.isSuperCall(e.expression)});n&&t.body.multiLine?this.insertNodeAfter(e,n,r):this.replaceConstructorBody(e,t,__spreadArray(__spreadArray([],t.body.statements,!0),[r],!1))},n.prototype.insertNodeAtConstructorEnd=function(e,t,r){var n=y.lastOrUndefined(t.body.statements);n&&t.body.multiLine?this.insertNodeAfter(e,n,r):this.replaceConstructorBody(e,t,__spreadArray(__spreadArray([],t.body.statements,!0),[r],!1))},n.prototype.replaceConstructorBody=function(e,t,r){this.replaceNode(e,t.body,y.factory.createBlock(r,!0))},n.prototype.insertNodeAtEndOfScope=function(e,t,r){var n=h(e,t.getLastToken(),{});this.insertNodeAt(e,n,r,{prefix:y.isLineBreak(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},n.prototype.insertMemberAtStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},n.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},n.prototype.insertNodeAtStartWorker=function(e,t,r){var n=null!=(n=this.guessIndentationFromExistingMembers(e,t))?n:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,S(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,n))},n.prototype.guessIndentationFromExistingMembers=function(e,t){for(var r,n=t,i=0,a=S(t);ic.textSpanEnd(r)?"quit":(c.isArrowFunction(e)||c.isMethodDeclaration(e)||c.isFunctionExpression(e)||c.isFunctionDeclaration(e))&&c.textSpansEqual(r,c.createTextSpanFromNode(e,t))})}t=c.codefix||(c.codefix={}),r="addMissingAsync",e=[c.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,c.Diagnostics.Type_0_is_not_assignable_to_type_1.code,c.Diagnostics.Type_0_is_not_comparable_to_type_1.code],t.registerCodeFix({fixIds:[r],errorCodes:e,getCodeActions:function(t){var i,a,e=t.sourceFile,r=t.errorCode,n=t.cancellationToken,o=t.program,s=t.span,o=c.find(o.getTypeChecker().getDiagnostics(e,n),(i=s,a=r,function(e){var t=e.start,r=e.length,n=e.relatedInformation,e=e.code;return c.isNumber(t)&&c.isNumber(r)&&c.textSpansEqual({start:t,length:r},i)&&e===a&&!!n&&c.some(n,function(e){return e.code===c.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})})),n=u(e,o&&o.relatedInformation&&c.find(o.relatedInformation,function(e){return e.code===c.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}));if(n)return[l(t,n,function(e){return c.textChanges.ChangeTracker.with(t,e)})]},getAllCodeActions:function(r){var n=r.sourceFile,i=new c.Set;return t.codeFixAll(r,e,function(t,e){e=e.relatedInformation&&c.find(e.relatedInformation,function(e){return e.code===c.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),e=u(n,e);if(e)return l(r,e,function(e){return e(t),[]},i)})}})}(ts=ts||{}),!function(p){var u,o,f,g,d;function _(e,t,r,n,i){var a=p.getFixableErrorSpanExpression(e,r);return a&&function(e,i,a,t,r){r=r.getTypeChecker().getDiagnostics(e,t);return p.some(r,function(e){var t=e.start,r=e.length,n=e.relatedInformation,e=e.code;return p.isNumber(t)&&p.isNumber(r)&&p.textSpansEqual({start:t,length:r},a)&&e===i&&!!n&&p.some(n,function(e){return e.code===p.Diagnostics.Did_you_forget_to_use_await.code})})}(e,t,r,n,i)&&h(a)?a:void 0}function m(e,r,n,i,t,a){var o=e.sourceFile,s=e.program,e=e.cancellationToken,c=function(e,s,i,c,l){e=function(e,t){if(p.isPropertyAccessExpression(e.parent)&&p.isIdentifier(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(p.isIdentifier(e))return{identifiers:[e],isCompleteFix:!0};if(p.isBinaryExpression(e)){for(var r=void 0,n=!0,i=0,a=[e.left,e.right];i=C.ModuleKind.ES2015)return s?1:2;if(c)return C.isExternalModule(i)||o?s?1:2:3;for(var l=0,u=i.statements;l"),[s.Diagnostics.Convert_function_expression_0_to_arrow_function,a?a.text:s.ANONYMOUS]):(e.replaceNode(t,i,s.factory.createToken(85)),e.insertText(t,a.end," = "),e.insertText(t,o.pos," =>"),[s.Diagnostics.Convert_function_declaration_0_to_arrow_function,a.text]))}a=s.codefix||(s.codefix={}),o="fixImplicitThis",e=[s.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],a.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t,r=e.sourceFile,n=e.program,i=e.span,e=s.textChanges.ChangeTracker.with(e,function(e){t=c(e,r,i.start,n.getTypeChecker())});return t?[a.createCodeFixAction(o,e,t,o,s.Diagnostics.Fix_all_implicit_this_errors)]:s.emptyArray},fixIds:[o],getAllCodeActions:function(r){return a.codeFixAll(r,e,function(e,t){c(e,t.file,t.start,r.program.getTypeChecker())})}})}(ts=ts||{}),!function(c){var l,n,t;function u(e,t,r){var n,t=c.getTokenAtPosition(e,t);return!c.isIdentifier(t)||void 0===(n=c.findAncestor(t,c.isImportDeclaration))||void 0===(n=c.isStringLiteral(n.moduleSpecifier)?n.moduleSpecifier.text:void 0)||void 0===(e=c.getResolvedModule(e,n,void 0))||void 0===(e=r.getSourceFile(e.resolvedFileName))||c.isSourceFileFromLibrary(r,e)||void 0===(r=null==(r=e.symbol.valueDeclaration)?void 0:r.locals)||void 0===(r=r.get(t.escapedText))||void 0===(r=function(e){if(void 0===e.valueDeclaration)return c.firstOrUndefined(e.declarations);var e=e.valueDeclaration,t=c.isVariableDeclaration(e)?c.tryCast(e.parent.parent,c.isVariableStatement):void 0;return t&&1===c.length(t.declarationList.declarations)?t:e}(r))?void 0:{exportName:{node:t,isTypeOnly:c.isTypeDeclaration(r)},node:r,moduleSourceFile:e,moduleSpecifier:n}}function o(e,t,r,n,i){c.length(n)&&(i?d(e,t,r,i,n):p(e,t,r,n))}function _(e,t){return c.findLast(e.statements,function(e){return c.isExportDeclaration(e)&&(t&&e.isTypeOnly||!e.isTypeOnly)})}function d(e,t,r,n,i){var a=n.exportClause&&c.isNamedExports(n.exportClause)?n.exportClause.elements:c.factory.createNodeArray([]),t=!(n.isTypeOnly||!t.getCompilerOptions().isolatedModules&&!c.find(a,function(e){return e.isTypeOnly}));e.replaceNode(r,n,c.factory.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,c.factory.createNamedExports(c.factory.createNodeArray(__spreadArray(__spreadArray([],a,!0),s(i,t),!0),a.hasTrailingComma)),n.moduleSpecifier,n.assertClause))}function p(e,t,r,n){e.insertNodeAtEndOfScope(r,r,c.factory.createExportDeclaration(void 0,!1,c.factory.createNamedExports(s(n,!!t.getCompilerOptions().isolatedModules)),void 0,void 0))}function s(e,t){return c.factory.createNodeArray(c.map(e,function(e){return c.factory.createExportSpecifier(t&&e.isTypeOnly,void 0,e.node)}))}l=c.codefix||(c.codefix={}),n="fixImportNonExportedMember",t=[c.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported.code],l.registerCodeFix({errorCodes:t,fixIds:[n],getCodeActions:function(e){var t=e.sourceFile,r=e.span,o=e.program,s=u(t,r.start,o);if(void 0!==s)return t=c.textChanges.ChangeTracker.with(e,function(e){var t,r,n,i,a;e=e,t=o,n=(r=s).exportName,i=r.node,r=r.moduleSourceFile,(a=_(r,n.isTypeOnly))?d(e,t,r,a,[n]):c.canHaveExportModifier(i)?e.insertExportModifier(r,i):p(e,t,r,[n])}),[l.createCodeFixAction(n,t,[c.Diagnostics.Export_0_from_module_1,s.exportName.node.text,s.moduleSpecifier],n,c.Diagnostics.Export_all_referenced_locals)]},getAllCodeActions:function(e){var a=e.program;return l.createCombinedCodeActions(c.textChanges.ChangeTracker.with(e,function(n){var i=new c.Map;l.eachDiagnostic(e,t,function(e){var t,r,e=u(e.file,e.start,a);void 0!==e&&(t=e.exportName,r=e.node,void 0===_(e=e.moduleSourceFile,t.isTypeOnly)&&c.canHaveExportModifier(r)?n.insertExportModifier(e,r):(r=i.get(e)||{typeOnlyExports:[],exports:[]},(t.isTypeOnly?r.typeOnlyExports:r.exports).push(t),i.set(e,r)))}),i.forEach(function(e,t){var r=_(t,!0);r&&r.isTypeOnly?(o(n,a,t,e.typeOnlyExports,r),o(n,a,t,e.exports,_(t,!1))):o(n,a,t,__spreadArray(__spreadArray([],e.exports,!0),e.typeOnlyExports,!0),r)})}))}})}(ts=ts||{}),!function(l){var r,n,e;r=l.codefix||(l.codefix={}),n="fixIncorrectNamedTupleSyntax",e=[l.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,l.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],r.registerCodeFix({errorCodes:e,getCodeActions:function(e){var s=e.sourceFile,t=e.span,c=function(e,t){e=l.getTokenAtPosition(e,t);return l.findAncestor(e,function(e){return 199===e.kind})}(s,t.start),t=l.textChanges.ChangeTracker.with(e,function(e){var t=s,r=c;if(r){for(var n=r.type,i=!1,a=!1;187===n.kind||188===n.kind||193===n.kind;)187===n.kind?i=!0:188===n.kind&&(a=!0),n=n.type;var o=l.factory.updateNamedTupleMember(r,r.dotDotDotToken||(a?l.factory.createToken(25):void 0),r.name,r.questionToken||(i?l.factory.createToken(57):void 0),n);o!==r&&e.replaceNode(t,r,o)}});return[r.createCodeFixAction(n,t,l.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,n,l.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[n]})}(ts=ts||{}),!function(s){var o,c,e;function l(e,t,r,n){var i,a,t=s.getTokenAtPosition(e,t),o=t.parent;if(n!==s.Diagnostics.No_overload_matches_this_call.code&&n!==s.Diagnostics.Type_0_is_not_assignable_to_type_1.code||s.isJsxAttribute(o))return n=r.program.getTypeChecker(),s.isPropertyAccessExpression(o)&&o.name===t?(s.Debug.assert(s.isMemberName(t),"Expected an identifier for spelling (property access)"),i=n.getTypeAtLocation(o.expression),32&o.flags&&(i=n.getNonNullableType(i)),i=n.getSuggestedSymbolForNonexistentProperty(t,i)):s.isBinaryExpression(o)&&101===o.operatorToken.kind&&o.left===t&&s.isPrivateIdentifier(t)?(a=n.getTypeAtLocation(o.right),i=n.getSuggestedSymbolForNonexistentProperty(t,a)):s.isQualifiedName(o)&&o.right===t?(a=n.getSymbolAtLocation(o.left))&&1536&a.flags&&(i=n.getSuggestedSymbolForNonexistentModule(o.right,a)):s.isImportSpecifier(o)&&o.name===t?(s.Debug.assertNode(t,s.isIdentifier,"Expected an identifier for spelling (import)"),a=s.findAncestor(t,s.isImportDeclaration),e=e,r=r,(a=(a=a)&&s.isStringLiteralLike(a.moduleSpecifier)&&(e=s.getResolvedModule(e,a.moduleSpecifier.text,s.getModeForUsageLocation(e,a.moduleSpecifier)))?r.program.getSourceFile(e.resolvedFileName):void 0)&&a.symbol&&(i=n.getSuggestedSymbolForNonexistentModule(t,a.symbol))):s.isJsxAttribute(o)&&o.name===t?(s.Debug.assertNode(t,s.isIdentifier,"Expected an identifier for JSX attribute"),r=s.findAncestor(t,s.isJsxOpeningLikeElement),e=n.getContextualTypeForArgumentAtIndex(r,0),i=n.getSuggestedSymbolForNonexistentJSXAttribute(t,e)):s.hasSyntacticModifier(o,16384)&&s.isClassElement(o)&&o.name===t?(e=(r=(a=s.findAncestor(t,s.isClassLike))?s.getEffectiveBaseTypeNode(a):void 0)?n.getTypeAtLocation(r):void 0)&&(i=n.getSuggestedSymbolForNonexistentClassMember(s.getTextOfNode(t),e)):(o=s.getMeaningFromLocation(t),a=s.getTextOfNode(t),s.Debug.assert(void 0!==a,"name should be defined"),i=n.getSuggestedSymbolForNonexistentSymbol(t,a,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(o))),void 0===i?void 0:{node:t,suggestedSymbol:i}}function u(e,t,r,n,i){var a=s.symbolName(n);s.isIdentifierText(a,i)||!s.isPropertyAccessExpression(r.parent)||(i=n.valueDeclaration)&&s.isNamedDeclaration(i)&&s.isPrivateIdentifier(i.name)?e.replaceNode(t,r,s.factory.createIdentifier(a)):e.replaceNode(t,r.parent,s.factory.createElementAccessExpression(r.parent.expression,s.factory.createStringLiteral(a)))}o=s.codefix||(s.codefix={}),c="fixSpelling",e=[s.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,s.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,s.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,s.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,s.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,s.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,s.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,s.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,s.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,s.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,s.Diagnostics.No_overload_matches_this_call.code,s.Diagnostics.Type_0_is_not_assignable_to_type_1.code],o.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t,r,n,i=e.sourceFile,a=e.errorCode,a=l(i,e.span.start,e,a);if(a)return t=a.node,r=a.suggestedSymbol,n=s.getEmitScriptTarget(e.host.getCompilationSettings()),a=s.textChanges.ChangeTracker.with(e,function(e){return u(e,i,t,r,n)}),[o.createCodeFixAction("spelling",a,[s.Diagnostics.Change_spelling_to_0,s.symbolName(r)],c,s.Diagnostics.Fix_all_detected_spelling_errors)]},fixIds:[c],getAllCodeActions:function(n){return o.codeFixAll(n,e,function(e,t){var t=l(t.file,t.start,n,t.code),r=s.getEmitScriptTarget(n.host.getCompilationSettings());t&&u(e,n.sourceFile,t.node,t.suggestedSymbol,r)})}})}(ts=ts||{}),!function(g){var m,y,e,h,v,b,x,t;function s(e,t,r){t=e.createSymbol(4,t.escapedText),t.type=e.getTypeAtLocation(r),r=g.createSymbolTable([t]);return e.createAnonymousType(void 0,r,[],[],[])}function c(e,t,r,n){if(t.body&&g.isBlock(t.body)&&1===g.length(t.body.statements)){var i=g.first(t.body.statements);if(g.isExpressionStatement(i)&&l(e,t,e.getTypeAtLocation(i.expression),r,n))return{declaration:t,kind:y.MissingReturnStatement,expression:i.expression,statement:i,commentSource:i.expression};if(g.isLabeledStatement(i)&&g.isExpressionStatement(i.statement)){var a=g.factory.createObjectLiteralExpression([g.factory.createPropertyAssignment(i.label,i.statement.expression)]);if(l(e,t,s(e,i.label,i.statement.expression),r,n))return g.isArrowFunction(t)?{declaration:t,kind:y.MissingParentheses,expression:a,statement:i,commentSource:i.statement.expression}:{declaration:t,kind:y.MissingReturnStatement,expression:a,statement:i,commentSource:i.statement.expression}}else if(g.isBlock(i)&&1===g.length(i.statements)){var o=g.first(i.statements);if(g.isLabeledStatement(o)&&g.isExpressionStatement(o.statement)){a=g.factory.createObjectLiteralExpression([g.factory.createPropertyAssignment(o.label,o.statement.expression)]);if(l(e,t,s(e,o.label,o.statement.expression),r,n))return{declaration:t,kind:y.MissingReturnStatement,expression:a,statement:i,commentSource:o}}}}}function l(e,t,r,n,i){return i&&(r=(i=e.getSignatureFromDeclaration(t))?(g.hasSyntacticModifier(t,512)&&(r=e.createPromiseType(r)),t=e.createSignature(t,i.typeParameters,i.thisParameter,i.parameters,r,void 0,i.minArgumentCount,i.flags),e.createAnonymousType(void 0,g.createSymbolTable(),[t],[],[])):e.getAnyType()),e.isTypeAssignableTo(r,n)}function D(e,t,r,n){var i=g.getTokenAtPosition(t,r);if(i.parent){var a,o=g.findAncestor(i.parent,g.isFunctionLikeDeclaration);switch(n){case g.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return o&&o.body&&o.type&&g.rangeContainsRange(o.type,i)?c(e,o,e.getTypeFromTypeNode(o.type),!1):void 0;case g.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:return o&&g.isCallExpression(o.parent)&&o.body?(a=o.parent.arguments.indexOf(o),(a=e.getContextualTypeForArgumentAtIndex(o.parent,a))?c(e,o,a,!0):void 0):void 0;case g.Diagnostics.Type_0_is_not_assignable_to_type_1.code:return g.isDeclarationName(i)&&(g.isVariableLike(i.parent)||g.isJsxAttribute(i.parent))?(a=function(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:return e.initializer;case 288:return e.initializer&&(g.isJsxExpression(e.initializer)?e.initializer.expression:void 0);case 300:case 168:case 302:case 350:case 343:return}}(i.parent))&&g.isFunctionLikeDeclaration(a)&&a.body?c(e,a,e.getTypeAtLocation(i.parent),!0):void 0:void 0}}}function S(e,t,r,n){g.suppressLeadingAndTrailingTrivia(r);var i=g.probablyUsesSemicolons(t);e.replaceNode(t,n,g.factory.createReturnStatement(r),{leadingTriviaOption:g.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:g.textChanges.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function T(e,t,r,n,i,a){a=a||g.needsParentheses(n)?g.factory.createParenthesizedExpression(n):n;g.suppressLeadingAndTrailingTrivia(i),g.copyComments(i,a),e.replaceNode(t,r.body,a)}function C(e,t,r,n){e.replaceNode(t,r.body,g.factory.createParenthesizedExpression(n))}m=g.codefix||(g.codefix={}),h="returnValueCorrect",v="fixAddReturnStatement",b="fixRemoveBracesFromArrowFunctionBody",x="fixWrapTheBlockWithParen",t=[g.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,g.Diagnostics.Type_0_is_not_assignable_to_type_1.code,g.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],(e=y=y||{})[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses",m.registerCodeFix({errorCodes:t,fixIds:[v,b,x],getCodeActions:function(e){var t,r,n,i,a,o,s,c,l,u,_=e.program,d=e.sourceFile,p=e.span.start,f=e.errorCode,_=D(_.getTypeChecker(),d,p,f);if(_)return _.kind===y.MissingReturnStatement?g.append([(c=e,l=_.expression,u=_.statement,d=g.textChanges.ChangeTracker.with(c,function(e){return S(e,c.sourceFile,l,u)}),m.createCodeFixAction(h,d,g.Diagnostics.Add_a_return_statement,v,g.Diagnostics.Add_all_missing_return_statement))],g.isArrowFunction(_.declaration)?(i=e,a=_.declaration,o=_.expression,s=_.commentSource,p=g.textChanges.ChangeTracker.with(i,function(e){return T(e,i.sourceFile,a,o,s,!1)}),m.createCodeFixAction(h,p,g.Diagnostics.Remove_braces_from_arrow_function_body,b,g.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)):void 0):[(t=e,r=_.declaration,n=_.expression,f=g.textChanges.ChangeTracker.with(t,function(e){return C(e,t.sourceFile,r,n)}),m.createCodeFixAction(h,f,g.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,x,g.Diagnostics.Wrap_all_object_literal_with_parentheses))]},getAllCodeActions:function(n){return m.codeFixAll(n,t,function(e,t){var r=D(n.program.getTypeChecker(),t.file,t.start,t.code);if(r)switch(n.fixId){case v:S(e,t.file,r.expression,r.statement);break;case b:g.isArrowFunction(r.declaration)&&T(e,t.file,r.declaration,r.expression,r.commentSource,!1);break;case x:g.isArrowFunction(r.declaration)&&C(e,t.file,r.declaration,r.expression);break;default:g.Debug.fail(JSON.stringify(n.fixId))}})}})}(ts=ts||{}),!function(d){var p,f,e,u,a,o,s,t;function g(e,t,r,n,i){var t=d.getTokenAtPosition(e,t),a=t.parent;if(r===d.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code)return 18===t.kind&&d.isObjectLiteralExpression(a)&&d.isCallExpression(a.parent)&&!((r=d.findIndex(a.parent.arguments,function(e){return e===a}))<0)&&(c=n.getResolvedSignature(a.parent))&&c.declaration&&c.parameters[r]&&(o=c.parameters[r].valueDeclaration)&&d.isParameter(o)&&d.isIdentifier(o.name)&&(s=d.arrayFrom(n.getUnmatchedProperties(n.getTypeAtLocation(a),n.getParameterType(c,r),!1,!1)),d.length(s))?{kind:f.ObjectLiteral,token:o.name,properties:s,parentDeclaration:a}:void 0;if(d.isMemberName(t)){if(d.isIdentifier(t)&&d.hasInitializer(a)&&a.initializer&&d.isObjectLiteralExpression(a.initializer))return s=d.arrayFrom(n.getUnmatchedProperties(n.getTypeAtLocation(a.initializer),n.getTypeAtLocation(t),!1,!1)),d.length(s)?{kind:f.ObjectLiteral,token:t,properties:s,parentDeclaration:a.initializer}:void 0;if(d.isIdentifier(t)&&d.isJsxOpeningLikeElement(t.parent))return r=function(e,t,r){var n=e.getContextualType(r.attributes);if(void 0===n)return d.emptyArray;n=n.getProperties();if(!d.length(n))return d.emptyArray;for(var i=new d.Set,a=0,o=r.attributes.properties;a=o.ModuleKind.ES2015&&r":">","}":"}"}}(ts=ts||{}),!function(d){var p,c,f,e;function l(e,t){e=d.getTokenAtPosition(e,t);if(e.parent&&d.isJSDocParameterTag(e.parent)&&d.isIdentifier(e.parent.name)){var t=e.parent,r=d.getHostSignatureFromJSDoc(t);if(r)return{signature:r,name:e.parent.name,jsDocParameterTag:t}}}p=d.codefix||(d.codefix={}),c="deleteUnmatchedParameter",f="renameUnmatchedParameter",e=[d.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],p.registerCodeFix({fixIds:[c,f],errorCodes:e,getCodeActions:function(e){var t,r,n,i,a,o=[],s=l(e.sourceFile,e.span.start);if(s)return d.append(o,(t=e,n=(r=s).name,i=s.signature,a=s.jsDocParameterTag,r=d.textChanges.ChangeTracker.with(t,function(e){return e.filterJSDocTags(t.sourceFile,i,function(e){return e!==a})}),p.createCodeFixAction(c,r,[d.Diagnostics.Delete_unused_param_tag_0,n.getText(t.sourceFile)],c,d.Diagnostics.Delete_all_unused_param_tags))),d.append(o,function(e,t){var r=t.name,n=t.signature,i=t.jsDocParameterTag;if(!d.length(n.parameters))return;for(var a=e.sourceFile,o=d.getJSDocTags(n),s=new d.Set,c=0,l=o;cc,y=S.isPropertyAccessExpression(g.node.parent)&&S.isSuperKeyword(g.node.parent.expression)&&S.isCallExpression(g.node.parent.parent)&&g.node.parent.parent.arguments.length>c,g=(S.isMethodDeclaration(g.node.parent)||S.isMethodSignature(g.node.parent))&&g.node.parent!==r.parent&&g.node.parent.parameters.length>c;if(m||y||g)return}}return 1;case 259:return!s.name||!function(e,t,r){return S.FindAllReferences.Core.eachSymbolReferenceInFile(r,e,t,function(e){return S.isIdentifier(e)&&S.isCallExpression(e.parent)&&0<=e.parent.arguments.indexOf(e)})}(e,t,s.name)||A(s,r,o);case 215:case 216:return A(s,r,o);case 175:return;case 174:return 1;default:return S.Debug.failBadSyntaxKind(s)}}(_,l,u,d,a,o,p=void 0===x?!1:p))if(u.modifiers&&0n})}function A(e,t,r){e=e.parameters,t=e.indexOf(t);return S.Debug.assert(-1!==t,"The parameter should already be in the list"),r?e.slice(t+1).every(function(e){return S.isIdentifier(e.name)&&!e.symbol.isReferenced}):t===e.length-1}p=S.codefix||(S.codefix={}),f="unusedIdentifier",g="unusedIdentifier_prefix",u="unusedIdentifier_delete",m="unusedIdentifier_deleteImports",y="unusedIdentifier_infer",e=[S.Diagnostics._0_is_declared_but_its_value_is_never_read.code,S.Diagnostics._0_is_declared_but_never_used.code,S.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,S.Diagnostics.All_imports_in_import_declaration_are_unused.code,S.Diagnostics.All_destructured_elements_are_unused.code,S.Diagnostics.All_variables_are_unused.code,S.Diagnostics.All_type_parameters_are_unused.code],p.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t,r,n,i,a,o=e.errorCode,s=e.sourceFile,c=e.program,l=e.cancellationToken,u=c.getTypeChecker(),_=c.getSourceFiles(),d=S.getTokenAtPosition(s,e.span.start);return S.isJSDocTemplateTag(d)?[v(S.textChanges.ChangeTracker.with(e,function(e){return e.delete(s,d)}),S.Diagnostics.Remove_template_tag)]:29===d.kind?[v(a=S.textChanges.ChangeTracker.with(e,function(e){return b(e,s,d)}),S.Diagnostics.Remove_type_parameters)]:(t=D(d))?(a=S.textChanges.ChangeTracker.with(e,function(e){return e.delete(s,t)}),[p.createCodeFixAction(f,a,[S.Diagnostics.Remove_import_from_0,S.showModuleSpecifier(t)],m,S.Diagnostics.Delete_all_unused_imports)]):x(d)&&(n=S.textChanges.ChangeTracker.with(e,function(e){return k(s,d,e,u,_,c,l,!1)})).length?[p.createCodeFixAction(f,n,[S.Diagnostics.Remove_unused_declaration_for_Colon_0,d.getText(s)],m,S.Diagnostics.Delete_all_unused_imports)]:S.isObjectBindingPattern(d.parent)||S.isArrayBindingPattern(d.parent)?S.isParameter(d.parent.parent)?(r=[1<(r=d.parent.elements).length?S.Diagnostics.Remove_unused_declarations_for_Colon_0:S.Diagnostics.Remove_unused_declaration_for_Colon_0,S.map(r,function(e){return e.getText(s)}).join(", ")],[v(S.textChanges.ChangeTracker.with(e,function(e){var t,r;t=e,r=s,e=d.parent,S.forEach(e.elements,function(e){return t.delete(r,e)})}),r)]):[v(S.textChanges.ChangeTracker.with(e,function(e){return e.delete(s,d.parent.parent)}),S.Diagnostics.Remove_unused_destructuring_declaration)]:T(s,d)?[v(S.textChanges.ChangeTracker.with(e,function(e){return C(e,s,d.parent)}),S.Diagnostics.Remove_variable_statement)]:(r=[],138===d.kind?(a=S.textChanges.ChangeTracker.with(e,function(e){return h(e,s,d)}),i=S.cast(d.parent,S.isInferTypeNode).typeParameter.name.text,r.push(p.createCodeFixAction(f,a,[S.Diagnostics.Replace_infer_0_with_unknown,i],y,S.Diagnostics.Replace_all_unused_infer_with_unknown))):(n=S.textChanges.ChangeTracker.with(e,function(e){return k(s,d,e,u,_,c,l,!1)})).length&&(i=S.isComputedPropertyName(d.parent)?d.parent:d,r.push(v(n,[S.Diagnostics.Remove_unused_declaration_for_Colon_0,i.getText(s)]))),(a=S.textChanges.ChangeTracker.with(e,function(e){return E(e,o,s,d)})).length&&r.push(p.createCodeFixAction(f,a,[S.Diagnostics.Prefix_0_with_an_underscore,d.getText(s)],g,S.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),r)},fixIds:[g,u,m,y],getAllCodeActions:function(i){var a=i.sourceFile,o=i.program,s=i.cancellationToken,c=o.getTypeChecker(),l=o.getSourceFiles();return p.codeFixAll(i,e,function(e,t){var r=S.getTokenAtPosition(a,t.start);switch(i.fixId){case g:E(e,t.code,a,r);break;case m:var n=D(r);n?e.delete(a,n):x(r)&&k(a,r,e,c,l,o,s,!0);break;case u:if(138!==r.kind&&!x(r))if(S.isJSDocTemplateTag(r))e.delete(a,r);else if(29===r.kind)b(e,a,r);else if(S.isObjectBindingPattern(r.parent)){if(r.parent.parent.initializer)break;S.isParameter(r.parent.parent)&&!N(r.parent.parent,c,l)||e.delete(a,r.parent.parent)}else{if(S.isArrayBindingPattern(r.parent.parent)&&r.parent.parent.parent.initializer)break;T(a,r)?C(e,a,r.parent):k(a,r,e,c,l,o,s,!0)}break;case y:138===r.kind&&h(e,a,r);break;default:S.Debug.fail(JSON.stringify(i.fixId))}})}})}(ts=ts||{}),!function(l){var r,n,t;function i(e,t,r,n,i){var a,o=l.getTokenAtPosition(t,r),s=l.findAncestor(o,l.isStatement),c=(s.getStart(t)!==o.getStart(t)&&(o=JSON.stringify({statementKind:l.Debug.formatSyntaxKind(s.kind),tokenKind:l.Debug.formatSyntaxKind(o.kind),errorCode:i,start:r,length:n}),l.Debug.fail("Token and statement should start at the same point. "+o)),(l.isBlock(s.parent)?s.parent:s).parent);if(!l.isBlock(s.parent)||s===l.first(s.parent.statements))switch(c.kind){case 242:if(c.elseStatement){if(l.isBlock(s.parent))break;return void e.replaceNode(t,s,l.factory.createBlock(l.emptyArray))}case 244:case 245:return void e.delete(t,c)}l.isBlock(s.parent)?(a=r+n,i=l.Debug.checkDefined(function(e,t){for(var r,n=0,i=e;nk.length?F(x,d.getSignatureFromDeclaration(u[u.length-1]),y,P(g),w(n,x)):(O.Debug.assert(u.length===k.length,"Declarations and signatures should match count"),c(function(e,t,r,n,i,a,o,s,c){for(var l=n[0],u=n[0].minArgumentCount,_=!1,d=0,p=n;d=l.parameters.length&&(!O.signatureHasRestParameter(f)||O.signatureHasRestParameter(l))&&(l=f)}var g=l.parameters.length-(O.signatureHasRestParameter(l)?1:0),m=l.parameters.map(function(e){return e.name}),y=R(g,m,void 0,u,!1);_&&(m=O.factory.createParameterDeclaration(void 0,O.factory.createToken(25),m[g]||"rest",u<=g?O.factory.createToken(57):void 0,O.factory.createArrayTypeNode(O.factory.createKeywordTypeNode(157)),void 0),y.push(m));return function(e,t,r,n,i,a,o,s){return O.factory.createMethodDeclaration(e,void 0,t,r?O.factory.createToken(57):void 0,n,i,a,s||B(o))}(o,i,a,void 0,y,function(e,t,r,n){if(O.length(e))return e=t.getUnionType(O.map(e,t.getReturnTypeOfSignature)),t.typeToTypeNode(e,n,void 0,M(r))}(n,e,t,r),s,c)}(d,o,a,k,P(g),v&&!!(1&l),y,x,n))))}}function F(e,t,r,n,i){e=L(171,o,e,t,i,n,r,v&&!!(1&l),a,s);e&&c(e)}function P(e){return O.getSynthesizedDeepClone(e,!1)}function w(e,t,r){return r?void 0:O.getSynthesizedDeepClone(e,!1)||B(t)}function I(e){return O.getSynthesizedDeepClone(e,!1)}}function L(e,t,r,n,i,a,o,s,c,l){var u=t.program,_=u.getTypeChecker(),d=O.getEmitScriptTarget(u.getCompilerOptions()),u=_.signatureToSignatureDeclaration(n,e,c,524545|(0===r?268435456:0),M(t));if(u)return _=u.typeParameters,n=u.parameters,e=u.type,l&&(_&&_!==(c=O.sameMap(_,function(e){var t,r=e.constraint,n=e.default;return r&&(t=j(r,d))&&(r=t.typeNode,J(l,t.symbols)),n&&(t=j(n,d))&&(n=t.typeNode,J(l,t.symbols)),O.factory.updateTypeParameterDeclaration(e,e.modifiers,e.name,r,n)}))&&(_=O.setTextRange(O.factory.createNodeArray(c,_.hasTrailingComma),_)),n!==(r=O.sameMap(n,function(e){var t=j(e.type,d),r=e.type;return t&&(r=t.typeNode,J(l,t.symbols)),O.factory.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,r,e.initializer)}))&&(n=O.setTextRange(O.factory.createNodeArray(r,n.hasTrailingComma),n)),e)&&(t=j(e,d))&&(e=t.typeNode,J(l,t.symbols)),c=s?O.factory.createToken(57):void 0,r=u.asteriskToken,O.isFunctionExpression(u)?O.factory.updateFunctionExpression(u,o,u.asteriskToken,O.tryCast(a,O.isIdentifier),_,n,e,null!=i?i:u.body):O.isArrowFunction(u)?O.factory.updateArrowFunction(u,o,_,n,e,u.equalsGreaterThanToken,null!=i?i:u.body):O.isMethodDeclaration(u)?O.factory.updateMethodDeclaration(u,o,r,null!=a?a:O.factory.createIdentifier(""),c,_,n,e,i):O.isFunctionDeclaration(u)?O.factory.updateFunctionDeclaration(u,o,u.asteriskToken,O.tryCast(a,O.isIdentifier),_,n,e,null!=i?i:u.body):void 0}function x(e){return 84+e<=90?String.fromCharCode(84+e):"T".concat(e)}function f(e,t,r,n,i,a,o){e=e.typeToTypeNode(r,n,a,o);return e&&O.isImportTypeNode(e)&&(r=j(e,i))&&(J(t,r.symbols),e=r.typeNode),O.getSynthesizedDeepClone(e)}function g(e){return e.isUnionOrIntersection()?e.types.some(g):262144&e.flags}function D(e,t,r,n,i,a,o){for(var s=[],c=new O.Map,l=0;l} */(")):(!r||2&r.flags)&&e.insertText(t,a.parent.parent.expression.end,""))))}n=s.codefix||(s.codefix={}),r="addVoidToPromise",e=[s.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,s.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],n.registerCodeFix({errorCodes:e,fixIds:[r],getCodeActions:function(t){var e=s.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span,t.program)});if(0n.getStart()?void 0:(r=t.importClause)?r.namedBindings?271===r.namedBindings.kind?{convertTo:0,import:r.namedBindings}:p(e.program,r)?{convertTo:1,import:r.namedBindings}:{convertTo:2,import:r.namedBindings}:{error:D.getLocaleSpecificMessage(D.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:D.getLocaleSpecificMessage(D.Diagnostics.Could_not_find_import_clause)}):{error:"Selection is not an import declaration."}}function p(e,t){return D.getAllowSyntheticDefaultImports(e.getCompilerOptions())&&function(e,t){e=t.resolveExternalModuleName(e);return!!e&&(t=t.resolveExternalModuleSymbol(e),e!==t)}(t.parent.moduleSpecifier,e.getTypeChecker())}function S(e){return D.isPropertyAccessExpression(e)?e.name:e.right}function T(i,e,a,t,r){void 0===r&&(r=p(e,t.parent));var o=e.getTypeChecker(),e=t.parent.parent,n=e.moduleSpecifier,s=new D.Set,c=(t.elements.forEach(function(e){e=o.getSymbolAtLocation(e.name);e&&s.add(e)}),n&&D.isStringLiteral(n)?D.codefix.moduleSpecifierToValidIdentifier(n.text,99):"module");for(var l=t.elements.some(function(e){return!!D.FindAllReferences.Core.eachSymbolReferenceInFile(e.name,o,i,function(e){var t=o.resolveName(c,e,67108863,!0);return!!t&&(!s.has(t)||D.isExportSpecifier(e.parent))})})?D.getUniqueName(c,i):c,u=new D.Set,_=0,d=t.elements;_=t.pos?r:t).getEnd()),r=i?function(e){for(;e.parent;){if(s(e)&&!s(e.parent))return e;e=e.parent}return}(t):function(e,t){for(;e.parent;){if(s(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}return}(t,e),i=r&&s(r)?function(e){if(o(e))return e;{var t;if(l.isVariableStatement(e))return t=l.getSingleVariableOfVariableStatement(e),(t=null==t?void 0:t.initializer)&&o(t)?t:void 0}return e.expression&&o(e.expression)?e.expression:void 0}(r):void 0;if(i){t=n.getTypeChecker();if(l.isConditionalExpression(i)){e=i;r=t;n=e.condition,t=p(e.whenTrue);if(!t||r.isNullableType(r.getTypeAtLocation(t)))return{error:l.getLocaleSpecificMessage(l.Diagnostics.Could_not_find_convertible_access_expression)};return(l.isPropertyAccessExpression(n)||l.isIdentifier(n))&&_(n,t.expression)?{finalExpression:t,occurrences:[n],expression:e}:l.isBinaryExpression(n)?(r=c(t.expression,n))?{finalExpression:t,occurrences:r,expression:e}:{error:l.getLocaleSpecificMessage(l.Diagnostics.Could_not_find_matching_access_expressions)}:void 0;return}else{n=i;if(55!==n.operatorToken.kind)return{error:l.getLocaleSpecificMessage(l.Diagnostics.Can_only_convert_logical_AND_access_chains)};t=p(n.right);return t?(r=c(t.expression,n.left))?{finalExpression:t,occurrences:r,expression:n}:{error:l.getLocaleSpecificMessage(l.Diagnostics.Could_not_find_matching_access_expressions)}:{error:l.getLocaleSpecificMessage(l.Diagnostics.Could_not_find_convertible_access_expression)};return}}return{error:l.getLocaleSpecificMessage(l.Diagnostics.Could_not_find_convertible_access_expression)}}}function c(e,t){for(var r=[];l.isBinaryExpression(t)&&55===t.operatorToken.kind;){var n=_(l.skipParentheses(e),l.skipParentheses(t.right));if(!n)break;r.push(n),e=n,t=t.left}var i=_(e,t);return i&&r.push(i),0=t&&V.isFunctionLikeDeclaration(e)&&!V.isConstructorDeclaration(e)})}((Y(u.range)?V.last(u.range):u.range).end,s))?y.insertNodeBefore(n.file,d,E,!0):y.insertNodeAtEndOfScope(n.file,s,E),f.writeFixes(y),[]),b=function(e,t,r){r=V.factory.createIdentifier(r);return V.isClassLike(e)?(t=t.facts&q.InStaticRegion?V.factory.createIdentifier(e.name.text):V.factory.createThis(),V.factory.createPropertyAccessExpression(t,r)):r}(s,u,g);if(x&&v.unshift(V.factory.createIdentifier("this")),d=V.factory.createCallExpression(x?V.factory.createPropertyAccessExpression(b,"call"):b,_,v),u.facts&q.IsGenerator&&(d=V.factory.createYieldExpression(V.factory.createToken(41),d)),u.facts&q.IsAsyncFunction&&(d=V.factory.createAwaitExpression(d)),$(o)&&(d=V.factory.createJsxExpression(void 0,d)),l.length&&!i)if(V.Debug.assert(!c,"Expected no returnValueProperty"),V.Debug.assert(!(u.facts&q.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===l.length){var S=l[0];D.push(V.factory.createVariableStatement(void 0,V.factory.createVariableDeclarationList([V.factory.createVariableDeclaration(V.getSynthesizedDeepClone(S.name),void 0,V.getSynthesizedDeepClone(S.type),d)],S.parent.flags)))}else{for(var R=[],B=[],j=l[0].parent.flags,T=!1,C=0,J=l;Ce)return r||n[0];if(i&&!V.isPropertyDeclaration(s)){if(void 0!==r)return s;i=!1}r=s}return void 0===r?V.Debug.fail():r}(w.pos,I),r.insertNodeBefore(o.file,F,t,!0),r.replaceNode(o.file,w,P)):(_=V.factory.createVariableDeclaration(b,void 0,a,g),(t=function(e,t){var r;for(;void 0!==e&&e!==t;){if(V.isVariableDeclaration(e)&&e.initializer===r&&V.isVariableDeclarationList(e.parent)&&1e.pos)break;i=s}return!i&&V.isCaseClause(n)?(V.Debug.assert(V.isSwitchStatement(n.parent.parent),"Grandparent isn't a switch statement"),n.parent.parent):V.Debug.checkDefined(i,"prevStatement failed to get set")}V.Debug.assert(n!==t,"Didn't encounter a block-like before encountering scope")}}(w,I)).pos?r.insertNodeAtTopOfFile(o.file,A,!1):r.insertNodeBefore(o.file,F,A,!1),241===w.parent.kind?r.delete(o.file,w.parent):(P=V.factory.createIdentifier(b),$(w)&&(P=V.factory.createJsxExpression(void 0,P)),r.replaceNode(o.file,w,P)))),a=r.getChanges(),g=w.getSourceFile().fileName,t=V.getRenameLocation(a,g,b,!0),{renameFilename:g,renameLocation:t,edits:a};V.Debug.fail("Unrecognized action name")}function i(e){return{message:e,code:0,category:V.DiagnosticCategory.Message,key:e}}function W(e,c,t){void 0===t&&(t=!0);var r=c.length;if(0===r&&!t)return{errors:[V.createFileDiagnostic(e,c.start,r,M.cannotExtractEmpty)]};var l,n=0===r&&t,i=V.findFirstNonJsxWhitespaceToken(e,c.start),a=V.findTokenOnLeftOfPosition(e,V.textSpanEnd(c)),t=i&&a&&t?function(e,t,r){e=e.getStart(r),t=t.getEnd();59===r.text.charCodeAt(t)&&t++;return{start:e,length:t-e}}(i,a,e):c,o=n?V.findAncestor(i,function(e){return e.parent&&y(e)&&!V.isBinaryExpression(e.parent)}):V.getParentNodeInSpan(i,e,t),s=n?o:V.getParentNodeInSpan(a,e,t),u=q.None;if(!o||!s)return{errors:[V.createFileDiagnostic(e,c.start,r,M.cannotExtractRange)]};if(8388608&o.flags)return{errors:[V.createFileDiagnostic(e,c.start,r,M.cannotExtractJSDoc)]};if(o.parent!==s.parent)return{errors:[V.createFileDiagnostic(e,c.start,r,M.cannotExtractRange)]};if(o===s)return V.isReturnStatement(o)&&!o.expression?{errors:[V.createFileDiagnostic(e,c.start,r,M.cannotExtractRange)]}:(n=function(e){if(V.isIdentifier(V.isExpressionStatement(e)?e.expression:e))return[V.createDiagnosticForNode(e,M.cannotExtractIdentifier)];return}(i=function(e){if(V.isReturnStatement(e)){if(e.expression)return e.expression}else if(V.isVariableStatement(e)||V.isVariableDeclarationList(e)){for(var t=(V.isVariableStatement(e)?e.declarationList:e).declarations,r=0,n=void 0,i=0,a=t;i=c.start+c.length)return(a=a||[]).push(V.createDiagnosticForNode(r,M.cannotExtractSuper)),!0}else u|=q.UsesThis,l=r;break;case 216:V.forEachChild(r,function e(t){if(V.isThis(t))u|=q.UsesThis,l=r;else{if(V.isClassLike(t)||V.isFunctionLike(t)&&!V.isArrowFunction(t))return!1;V.forEachChild(t,e)}});case 260:case 259:V.isSourceFile(r.parent)&&void 0===r.parent.externalModuleIndicator&&(a=a||[]).push(V.createDiagnosticForNode(r,M.functionWillNotBeVisibleInTheNewScope));case 228:case 215:case 171:case 173:case 174:case 175:return!1}t=s;switch(r.kind){case 242:s&=-5;break;case 255:s=0;break;case 238:r.parent&&255===r.parent.kind&&r.parent.finallyBlock===r&&(s=4);break;case 293:case 292:s|=1;break;default:V.isIterationStatement(r,!1)&&(s|=3)}switch(r.kind){case 194:case 108:u|=q.UsesThis,l=r;break;case 253:var i=r.label;(o=o||[]).push(i.escapedText),V.forEachChild(r,e),o.pop();break;case 249:case 248:(i=r.label)?V.contains(o,i.escapedText)||(a=a||[]).push(V.createDiagnosticForNode(r,M.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(249===r.kind?1:2)||(a=a||[]).push(V.createDiagnosticForNode(r,M.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 220:u|=q.IsAsyncFunction;break;case 226:u|=q.IsGenerator;break;case 250:4&s?u|=q.HasReturn:(a=a||[]).push(V.createDiagnosticForNode(r,M.cannotExtractRangeContainingConditionalReturnStatement));break;default:V.forEachChild(r,e)}s=t}(e),u&q.UsesThis&&(259===(t=V.getThisContainer(e,!1)).kind||171===t.kind&&207===t.parent.kind||215===t.kind)&&(u|=q.UsesThisInFunction),a}}function H(e){return V.isArrowFunction(e)?V.isFunctionBody(e.body):V.isFunctionLikeDeclaration(e)||V.isSourceFile(e)||V.isModuleBlock(e)||V.isClassLike(e)}function G(e,t){var r,n=t.file,i=function(e){var t=Y(e.range)?V.first(e.range):e.range;if(e.facts&q.UsesThis&&!(e.facts&q.UsesThisInFunction)){var r,e=V.getContainingClass(t);if(e)return(r=V.findAncestor(t,V.isFunctionLikeDeclaration))?[r,e]:[e]}for(var n=[];;)if(H(t=166===(t=t.parent).kind?V.findAncestor(t,function(e){return V.isFunctionLikeDeclaration(e)}).parent:t)&&(n.push(t),308===t.kind))return n}(e),a=(a=n,Y((r=e).range)?{pos:V.first(r.range).getStart(a),end:V.last(r.range).getEnd()}:r.range);return{scopes:i,readsAndWrites:function(m,y,h,v,b,i){var a,e,o=new V.Map,x=[],D=[],S=[],T=[],s=[],c=new V.Map,l=[],t=Y(m.range)?1===m.range.length&&V.isExpressionStatement(m.range[0])?m.range[0].expression:void 0:m.range;void 0===t?(d=m.range,p=V.first(d).getStart(),d=V.last(d).end,e=V.createFileDiagnostic(v,p,d-p,M.expressionExpected)):147456&b.getTypeAtLocation(t).flags&&(e=V.createDiagnosticForNode(t,M.uselessConstantType));for(var r=0,n=y;rr.pos});if(-1!==n){var i=e[n];if(S.isNamedDeclaration(i)&&i.name&&S.rangeContainsRange(i.name,r))return{toMove:[e[n]],afterLast:e[n+1]};if(!(r.pos>i.getStart(t))){i=S.findIndex(e,function(e){return e.end>r.end},n);if(-1===i||!(0===i||e[i].getStart(t)=i&&h.every(e,function(e){var t=n;if(h.isRestParameter(e)){var r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&h.isIdentifier(e.name)})}(e.parameters,t))switch(e.kind){case 259:return l(e)&&c(e,t);case 171:return h.isObjectLiteralExpression(e.parent)?(r=v(e.name,t),1===(null==(r=null==r?void 0:r.declarations)?void 0:r.length)&&c(e,t)):c(e,t);case 173:return h.isClassDeclaration(e.parent)?l(e.parent)&&c(e,t):u(e.parent.parent)&&c(e,t);case 215:case 216:return u(e.parent)}return}(t,r)&&h.rangeContainsRange(t,e))||t.body&&h.rangeContainsRange(t.body,e)?void 0:t}function c(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function l(e){return!!e.name||!!h.findModifier(e,88)}function u(e){return h.isVariableDeclaration(e)&&h.isVarConst(e)&&h.isIdentifier(e.name)&&!e.type}function _(e){return 0=r.length&&(e=t.slice(r.length-1),t=h.factory.createPropertyAssignment(C(h.last(r)),h.factory.createArrayLiteralExpression(e)),n.push(t));return h.factory.createObjectLiteralExpression(n,!1)}(a,_.arguments),!0),i.replaceNodeRange(h.getSourceFileOfNode(_),h.first(_.arguments),h.last(_.arguments),u,{leadingTriviaOption:h.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:h.textChanges.TrailingTriviaOption.Include}))}function d(e,t){i.replaceNodeRangeWithNodes(r,h.first(e.parameters),h.last(e.parameters),t,{joiner:", ",indentation:0,leadingTriviaOption:h.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:h.textChanges.TrailingTriviaOption.Include})}})};return{edits:[]}},getAvailableActions:function(e){var t=e.file,r=e.startPosition;return!h.isSourceFileJS(t)&&s(t,r,e.program.getTypeChecker())?[{name:n,description:a,actions:[o]}]:h.emptyArray}})}(ts=ts||{}),!function(d){var e,n,i,a;function o(e,t){e=d.getTokenAtPosition(e,t),t=s(e);return!c(t).isValidConcatenation&&d.isParenthesizedExpression(t.parent)&&d.isBinaryExpression(t.parent.parent)?t.parent.parent:e}function s(e){return d.findAncestor(e.parent,function(e){switch(e.kind){case 208:case 209:return!1;case 225:case 223:return!(d.isBinaryExpression(e.parent)&&63!==e.parent.operatorToken.kind);default:return"quit"}})||e}function c(e){function a(e){var t,r,n,i;return d.isBinaryExpression(e)?(t=(i=a(e.left)).nodes,r=i.operators,n=i.hasString,i=i.validOperators,n||d.isStringLiteral(e.right)||d.isTemplateExpression(e.right)?(n=39===e.operatorToken.kind,i=i&&n,t.push(e.right),r.push(e.operatorToken),{nodes:t,operators:r,hasString:!0,validOperators:i}):{nodes:[e],operators:[],hasString:!1,validOperators:!0}):{nodes:[e],operators:[],validOperators:!0,hasString:d.isStringLiteral(e)||d.isNoSubstitutionTemplateLiteral(e)}}var e=a(e),t=e.nodes,r=e.operators,n=e.validOperators,e=e.hasString;return{nodes:t,operators:r,isValidConcatenation:n&&e}}function p(r,n){return function(e,t){e=r.length?this.getEnd():t)||r[e+1]-1,this.getFullText());return"\n"===r[t]&&"\r"===r[t-1]?t-1:t},S.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},S.prototype.computeNamedDeclarations=function(){var r=F.createMultiMap();return this.forEachChild(function e(t){switch(t.kind){case 259:case 215:case 171:case 170:var r=t,n=s(r);n&&(n=o(n),(i=F.lastOrUndefined(n))&&r.parent===i.parent&&r.symbol===i.symbol?r.body&&!i.body&&(n[n.length-1]=r):n.push(r)),F.forEachChild(t,e);break;case 260:case 228:case 261:case 262:case 263:case 264:case 268:case 278:case 273:case 270:case 271:case 174:case 175:case 184:a(t),F.forEachChild(t,e);break;case 166:if(!F.hasSyntacticModifier(t,16476))break;case 257:case 205:var i=t;if(F.isBindingPattern(i.name)){F.forEachChild(i.name,e);break}i.initializer&&e(i.initializer);case 302:case 169:case 168:a(t);break;case 275:n=t;n.exportClause&&(F.isNamedExports(n.exportClause)?F.forEach(n.exportClause.elements,e):e(n.exportClause.name));break;case 269:r=t.importClause;r&&(r.name&&a(r.name),r.namedBindings)&&(271===r.namedBindings.kind?a(r.namedBindings):F.forEach(r.namedBindings.elements,e));break;case 223:0!==F.getAssignmentDeclarationKind(t)&&a(t);default:F.forEachChild(t,e)}}),r;function a(e){var t=s(e);t&&r.add(t,e)}function o(e){var t=r.get(e);return t||r.set(e,t=[]),t}function s(e){e=F.getNonAssignedNameOfDeclaration(e);return e&&(F.isComputedPropertyName(e)&&F.isPropertyAccessExpression(e.expression)?e.expression.name.text:F.isPropertyName(e)?F.getNameFromPropertyName(e):void 0)}};var D,j=S;function S(e,t,r){e=D.call(this,e,t,r)||this;return e.kind=308,e}T.prototype.getLineAndCharacterOfPosition=function(e){return F.getLineAndCharacterOfPosition(this,e)};var J=T;function T(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}function P(e){var t=!0;for(r in e)if(F.hasProperty(e,r)&&!C(r)){t=!1;break}if(t)return e;var r,n={};for(r in e)F.hasProperty(e,r)&&(n[C(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=e[r]);return n}function C(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function w(){return{target:1,jsx:1}}F.toEditorSettings=P,F.displayPartsToString=function(e){return e?F.map(e,function(e){return e.text}).join(""):""},F.getDefaultCompilerOptions=w,F.getSupportedCodeFixes=function(){return F.codefix.getSupportedErrorCodes()};E.prototype.getCurrentSourceFile=function(e){var t,r,n,i,a=this.host.getScriptSnapshot(e);if(a)return t=F.getScriptKind(e,this.host),r=this.host.getScriptVersion(e),this.currentFileName!==e?n=N(e,a,{languageVersion:99,impliedNodeFormat:F.getImpliedNodeFormatForFile(F.toPath(e,this.host.getCurrentDirectory(),(null==(n=null==(n=(i=this.host).getCompilerHost)?void 0:n.call(i))?void 0:n.getCanonicalFileName)||F.hostGetCanonicalFileName(this.host)),null==(i=null==(i=null==(n=null==(n=(i=this.host).getCompilerHost)?void 0:n.call(i))?void 0:n.getModuleResolutionCache)?void 0:i.call(n))?void 0:i.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:F.getSetExternalModuleIndicator(this.host.getCompilationSettings())},r,!0,t):this.currentFileVersion!==r&&(i=a.getChangeRange(this.currentFileScriptSnapshot),n=A(this.currentSourceFile,a,r,i)),n&&(this.currentFileVersion=r,this.currentFileName=e,this.currentFileScriptSnapshot=a,this.currentSourceFile=n),this.currentSourceFile;throw new Error("Could not find file: '"+e+"'.")};var z=E;function E(e){this.host=e}function k(e,t,r){e.version=r,e.scriptSnapshot=t}function N(e,t,r,n,i,a){e=F.createSourceFile(e,F.getSnapshotText(t),r,i,a);return k(e,t,n),e}function A(e,t,r,n,i){var a,o,s;if(n&&r!==e.version)return o=void 0,s=0!==n.span.start?e.text.substr(0,n.span.start):"",a=F.textSpanEnd(n.span)!==e.text.length?e.text.substr(F.textSpanEnd(n.span)):"",o=0===n.newLength?s&&a?s+a:s||a:(c=t.getText(n.span.start,n.span.start+n.newLength),s&&a?s+c+a:s?s+c:c+a),k(s=F.updateSourceFile(e,o,n,i),t,r),s.nameTable=void 0,e!==s&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),s;var c={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return N(e.fileName,t,c,r,!0,e.scriptKind)}F.createLanguageServiceSourceFile=N,F.updateLanguageServiceSourceFile=A;var U={isCancellationRequested:F.returnFalse,throwIfCancellationRequested:F.noop},K=(I.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},I.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null!==F.tracing&&void 0!==F.tracing&&F.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new F.OperationCanceledException},I);function I(e){this.cancellationToken=e}function O(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}O.prototype.isCancellationRequested=function(){var e=F.timestamp();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())},O.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null!==F.tracing&&void 0!==F.tracing&&F.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new F.OperationCanceledException},F.ThrottledCancellationToken=O;var M=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],V=__spreadArray(__spreadArray([],M,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function q(e){e=function(e){switch(e.kind){case 10:case 14:case 8:if(164===e.parent.kind)return F.isObjectLiteralElement(e.parent.parent)?e.parent.parent:void 0;case 79:return!F.isObjectLiteralElement(e.parent)||207!==e.parent.parent.kind&&289!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}return}(e);return e&&(F.isObjectLiteralExpression(e.parent)||F.isJsxAttributes(e.parent))?e:void 0}function W(t,r,e,n){var i=F.getNameFromPropertyName(t.name);if(!i)return F.emptyArray;if(!e.isUnion())return(a=e.getProperty(i))?[a]:F.emptyArray;var a,o=F.mapDefined(e.types,function(e){return(F.isObjectLiteralExpression(t.parent)||F.isJsxAttributes(t.parent))&&r.isTypeInvalidDueToUnionDiscriminant(e,t.parent)?void 0:e.getProperty(i)});if(n&&(0===o.length||o.length===e.types.length)&&(a=e.getProperty(i)))return[a];return 0===o.length?F.mapDefined(e.types,function(e){return e.getProperty(i)}):o}F.createLanguageService=function(g,m,e){void 0===m&&(m=F.createDocumentRegistry(g.useCaseSensitiveFileNames&&g.useCaseSensitiveFileNames(),g.getCurrentDirectory())),y=void 0===e?F.LanguageServiceMode.Semantic:"boolean"==typeof e?e?F.LanguageServiceMode.Syntactic:F.LanguageServiceMode.Semantic:e;var y,h,v,D=new z(g),b=0,x=g.getCancellationToken?new K(g.getCancellationToken()):U,S=g.getCurrentDirectory();function T(e){g.log&&g.log(e)}F.maybeSetLocalizedDiagnosticMessages(null==(e=g.getLocalizedDiagnosticMessages)?void 0:e.bind(g));var C=F.hostUsesCaseSensitiveFileNames(g),E=F.createGetCanonicalFileName(C),k=F.getSourceMapper({useCaseSensitiveFileNames:function(){return C},getCurrentDirectory:function(){return S},getProgram:o,fileExists:F.maybeBind(g,g.fileExists),readFile:F.maybeBind(g,g.readFile),getDocumentPositionMapper:F.maybeBind(g,g.getDocumentPositionMapper),getSourceFileLike:F.maybeBind(g,g.getSourceFileLike),log:T});function d(e){var t=h.getSourceFile(e);if(t)return t;throw(t=new Error("Could not find source file: '".concat(e,"'."))).ProgramFiles=h.getSourceFiles().map(function(e){return e.fileName}),t}function p(){if(F.Debug.assert(y!==F.LanguageServiceMode.Syntactic),g.getProjectVersion){var e=g.getProjectVersion();if(e){if(v===e&&(null==(t=g.hasChangedAutomaticTypeDirectiveNames)||!t.call(g)))return;v=e}}var n,t=g.getTypeRootsVersion?g.getTypeRootsVersion():0,e=(b!==t&&(T("TypeRoots version has changed; provide new program"),h=void 0,b=t),g.getScriptFileNames().slice()),r=g.getCompilationSettings()||w(),t=g.hasInvalidatedResolutions||F.returnFalse,i=F.maybeBind(g,g.hasChangedAutomaticTypeDirectiveNames),a=null==(a=g.getProjectReferences)?void 0:a.call(g),c={getSourceFile:p,getSourceFileByPath:f,getCancellationToken:function(){return x},getCanonicalFileName:E,useCaseSensitiveFileNames:function(){return C},getNewLine:function(){return F.getNewLineCharacter(r,function(){return F.getNewLineOrDefaultFromHost(g)})},getDefaultLibFileName:function(e){return g.getDefaultLibFileName(e)},writeFile:F.noop,getCurrentDirectory:function(){return S},fileExists:function(e){return g.fileExists(e)},readFile:function(e){return g.readFile&&g.readFile(e)},getSymlinkCache:F.maybeBind(g,g.getSymlinkCache),realpath:F.maybeBind(g,g.realpath),directoryExists:function(e){return F.directoryProbablyExists(e,g)},getDirectories:function(e){return g.getDirectories?g.getDirectories(e):[]},readDirectory:function(e,t,r,n,i){return F.Debug.checkDefined(g.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),g.readDirectory(e,t,r,n,i)},onReleaseOldSourceFile:d,onReleaseParsedCommandLine:function(e,t,r){var n;g.getParsedCommandLine?null!=(n=g.onReleaseParsedCommandLine)&&n.call(g,e,t,r):t&&d(t.sourceFile,r)},hasInvalidatedResolutions:t,hasChangedAutomaticTypeDirectiveNames:i,trace:F.maybeBind(g,g.trace),resolveModuleNames:F.maybeBind(g,g.resolveModuleNames),getModuleResolutionCache:F.maybeBind(g,g.getModuleResolutionCache),resolveTypeReferenceDirectives:F.maybeBind(g,g.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:F.maybeBind(g,g.useSourceOfProjectReferenceRedirect),getParsedCommandLine:_},o=c.getSourceFile,s=F.changeCompilerHostLikeToUseCache(c,function(e){return F.toPath(e,S,E)},function(){for(var e=[],t=0;t")}:(r=31===t.kind&&F.isJsxOpeningFragment(t.parent)?t.parent.parent:F.isJsxText(t)&&F.isJsxFragment(t.parent)?t.parent:void 0)&&function e(t){var r=t.closingFragment,t=t.parent;return!!(131072&r.flags)||F.isJsxFragment(t)&&e(t)}(r)?{newText:""}:void 0},getSpanOfEnclosingComment:function(e,t,r){return e=D.getCurrentSourceFile(e),!(e=F.formatting.getRangeOfEnclosingComment(e,t))||r&&3!==e.kind?void 0:F.createTextSpanFromRange(e)},getCodeFixesAtPosition:function(e,t,r,n,i,a){void 0===a&&(a=F.emptyOptions),p();var o=d(e),s=F.createTextSpanFromBounds(t,r),c=F.formatting.getFormatContext(i,g);return F.flatMap(F.deduplicate(n,F.equateValues,F.compareValues),function(e){return x.throwIfCancellationRequested(),F.codefix.getFixes({errorCode:e,sourceFile:o,span:s,program:h,host:g,cancellationToken:x,formatContext:c,preferences:a})})},getCombinedCodeFix:function(e,t,r,n){return void 0===n&&(n=F.emptyOptions),p(),F.Debug.assert("file"===e.type),e=d(e.fileName),r=F.formatting.getFormatContext(r,g),F.codefix.getAllFixes({fixId:t,sourceFile:e,program:h,host:g,cancellationToken:x,formatContext:r,preferences:n})},applyCodeActionCommand:function(e,t){return t="string"==typeof e?t:e,F.isArray(t)?Promise.all(t.map(i)):i(t)},organizeImports:function(e,t,r){void 0===r&&(r=F.emptyOptions),p(),F.Debug.assert("file"===e.type);var n=d(e.fileName),t=F.formatting.getFormatContext(t,g),i=null!=(i=e.mode)?i:e.skipDestructiveCodeActions?"SortAndCombine":"All";return F.OrganizeImports.organizeImports(n,t,g,h,r,i)},getEditsForFileRename:function(e,t,r,n){return void 0===n&&(n=F.emptyOptions),F.getEditsForFileRename(o(),e,t,g,F.formatting.getFormatContext(r,g),n,k)},getEmitOutput:function(e,t,r){p();var e=d(e),n=g.getCustomTransformers&&g.getCustomTransformers();return F.getFileEmitOutput(h,e,!!t,x,n,r)},getNonBoundSourceFile:function(e){return D.getCurrentSourceFile(e)},getProgram:o,getCurrentProgram:function(){return h},getAutoImportProvider:function(){var e;return null==(e=g.getPackageJsonAutoImportProvider)?void 0:e.call(g)},updateIsDefinitionOfReferencedSymbols:function(s,c){var l=h.getTypeChecker(),e=function(){for(var e=0,t=s;er){e=L.findPrecedingToken(t.pos,A);if(!e||A.getLineAndCharacterOfPosition(e.getEnd()).line!==r)return;t=e}if(!(16777216&t.flags))return M(t)}function F(e,t){var r=L.canHaveDecorators(e)?L.findLast(e.modifiers,L.isDecorator):void 0,r=r?L.skipTrivia(A.text,r.end):e.getStart(A);return L.createTextSpanFromBounds(r,(t||e).getEnd())}function P(e,t){return F(e,L.findNextToken(t,t.parent,A))}function w(e,t){return e&&r===A.getLineAndCharacterOfPosition(e.getStart(A)).line?M(e):M(t)}function I(e){return M(L.findPrecedingToken(e.pos,A))}function O(e){return M(L.findNextToken(e,e.parent,A))}function M(e){if(e){var t=e.parent;switch(e.kind){case 240:return D(e.declarationList.declarations[0]);case 257:case 169:case 168:return D(e);case 166:return function e(t){{var r;return L.isBindingPattern(t.name)?k(t.name):S(t)?F(t):(r=t.parent,t=r.parameters.indexOf(t),L.Debug.assert(-1!==t),0!==t?e(r.parameters[t-1]):M(r.body))}}(e);case 259:case 171:case 170:case 174:case 175:case 173:case 215:case 216:var r=e;return r.body?T(r)?F(r):M(r.body):void 0;case 238:if(L.isFunctionBlock(e))return n=(r=e).statements.length?r.statements[0]:r.getLastToken(),T(r.parent)?w(r.parent,n):M(n);case 265:return C(e);case 295:return C(e.block);case 241:return F(e.expression);case 250:return F(e.getChildAt(0),e.expression);case 244:return P(e,e.expression);case 243:return M(e.statement);case 256:return F(e.getChildAt(0));case 242:return P(e,e.expression);case 253:return M(e.statement);case 249:case 248:return F(e.getChildAt(0),e.label);case 245:var n=e;return n.initializer?E(n):n.condition?F(n.condition):n.incrementor?F(n.incrementor):void 0;case 246:return P(e,e.expression);case 247:return E(e);case 252:return P(e,e.expression);case 292:case 293:return M(e.statements[0]);case 255:return C(e.tryBlock);case 254:case 274:return F(e,e.expression);case 268:return F(e,e.moduleReference);case 269:case 275:return F(e,e.moduleSpecifier);case 264:if(1!==L.getModuleInstanceState(e))return;case 260:case 263:case 302:case 205:return F(e);case 251:return M(e.statement);case 167:var i=t.modifiers,a=e,o=L.isDecorator;if(i){var s=i.indexOf(a);if(0<=s){for(var c=s,l=s+1;0 0) { + throw new SyntaxError(diagnostics.join('\n')); + } + + return { + result: emit.outputFiles[0].text, + declaration: emit.outputFiles[1].text + }; +} + +arguments[0].compile = function (filename, code) { + var res = compile(filename, code); + + return { + source: res.result, + runner: function(func) { + return function() { + var val = func.apply(this, arguments); + decls += res.declaration; + return val; + } + } + } +} diff --git a/src/me/topchetoeu/jscript/js/ts.js b/src/me/topchetoeu/jscript/js/ts.js new file mode 100644 index 0000000..2448b71 --- /dev/null +++ b/src/me/topchetoeu/jscript/js/ts.js @@ -0,0 +1,86027 @@ +"use strict"; +var ts, __spreadArray = this && this.__spreadArray || function(e, t, r) { + if (r || 2 === arguments.length) + for (var n, i = 0, a = t.length; i < a; i++) !n && i in t || ((n = n || Array.prototype.slice.call(t, 0, i))[i] = t[i]); + return e.concat(n || Array.prototype.slice.call(t)) + }, + __assign = this && this.__assign || function() { + return (__assign = Object.assign || function(e) { + for (var t, r = 1, n = arguments.length; r < n; r++) + for (var i in t = arguments[r]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); + return e + }).apply(this, arguments) + }, + __makeTemplateObject = this && this.__makeTemplateObject || function(e, t) { + return Object.defineProperty ? Object.defineProperty(e, "raw", { + value: t + }) : e.raw = t, e + }, + __generator = this && this.__generator || function(n, i) { + var a, o, s, c = { + label: 0, + sent: function() { + if (1 & s[0]) throw s[1]; + return s[1] + }, + trys: [], + ops: [] + }, + l = { + next: e(0), + throw: e(1), + return: e(2) + }; + return "function" == typeof Symbol && (l[Symbol.iterator] = function() { + return this + }), l; + + function e(r) { + return function(e) { + var t = [r, e]; + if (a) throw new TypeError("Generator is already executing."); + for (; c = l && t[l = 0] ? 0 : c;) try { + if (a = 1, o && (s = 2 & t[0] ? o.return : t[0] ? o.throw || ((s = o.return) && s.call(o), 0) : o.next) && !(s = s.call(o, t[1])).done) return s; + switch (o = 0, (t = s ? [2 & t[0], s.value] : t)[0]) { + case 0: + case 1: + s = t; + break; + case 4: + return c.label++, { + value: t[1], + done: !1 + }; + case 5: + c.label++, o = t[1], t = [0]; + continue; + case 7: + t = c.ops.pop(), c.trys.pop(); + continue; + default: + if (!(s = 0 < (s = c.trys).length && s[s.length - 1]) && (6 === t[0] || 2 === t[0])) { + c = 0; + continue + } + if (3 === t[0] && (!s || t[1] > s[0] && t[1] < s[3])) c.label = t[1]; + else if (6 === t[0] && c.label < s[1]) c.label = s[1], s = t; + else { + if (!(s && c.label < s[2])) { + s[2] && c.ops.pop(), c.trys.pop(); + continue + } + c.label = s[2], c.ops.push(t) + } + } + t = i.call(n, c) + } catch (e) { + t = [6, e], o = 0 + } finally { + a = s = 0 + } + if (5 & t[0]) throw t[1]; + return { + value: t[0] ? t[1] : void 0, + done: !0 + } + } + } + }, + __rest = this && this.__rest || function(e, t) { + var r = {}; + for (i in e) Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]); + if (null != e && "function" == typeof Object.getOwnPropertySymbols) + for (var n = 0, i = Object.getOwnPropertySymbols(e); n < i.length; n++) t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]); + return r + }, + __extends = this && this.__extends || function() { + var n = function(e, t) { + return (n = Object.setPrototypeOf || ({ + __proto__: [] + } + instanceof Array ? function(e, t) { + e.__proto__ = t + } : function(e, t) { + for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]) + }))(e, t) + }; + return function(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null"); + + function r() { + this.constructor = e + } + n(e, t), e.prototype = null === t ? Object.create(t) : (r.prototype = t.prototype, new r) + } + }(), + debugObjectHost = (! function(e) { + var t, r, n; + e.versionMajorMinor = "4.9", e.version = "".concat(e.versionMajorMinor, ".4"), (r = e.Comparison || (e.Comparison = {}))[r.LessThan = -1] = "LessThan", r[r.EqualTo = 0] = "EqualTo", r[r.GreaterThan = 1] = "GreaterThan", r = t = t || {}, n = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof global ? global : "undefined" != typeof self ? self : void 0, r.tryGetNativeMap = function() { + var e = null == n ? void 0 : n.Map; + if (e = void 0 !== e && "entries" in e.prototype && 1 === new e([ + [0, 0] + ]).size ? e : void 0) return e; + throw new Error("No compatible Map implementation found.") + }, r.tryGetNativeSet = function() { + var e = null == n ? void 0 : n.Set; + if (e = void 0 !== e && "entries" in e.prototype && 1 === new e([0]).size ? e : void 0) return e; + throw new Error("No compatible Set implementation found.") + }, e.Map = t.tryGetNativeMap(), e.Set = t.tryGetNativeSet() + }(ts = ts || {}), ! function(u) { + function c(e, t, r) { + if (void 0 === r && (r = E), e) + for (var n = 0, i = e; n < i.length; n++) + if (r(i[n], t)) return !0; + return !1 + } + + function l(e, t) { + if (e) { + if (!t) return 0 < e.length; + for (var r = 0, n = e; r < n.length; r++) + if (t(n[r])) return !0 + } + return !1 + } + + function r(e, t) { + return l(t) ? l(e) ? __spreadArray(__spreadArray([], e, !0), t, !0) : t : e + } + + function L(e, t) { + return t + } + + function g(e) { + return e.map(L) + } + + function a(e, t) { + if (void 0 !== t) { + if (void 0 === e) return [t]; + e.push(t) + } + return e + } + + function o(e, t) { + return t < 0 ? e.length + t : t + } + + function s(e, t, r, n) { + if (void 0 !== t && 0 !== t.length) { + if (void 0 === e) return t.slice(r, n); + r = void 0 === r ? 0 : o(t, r), n = void 0 === n ? t.length : o(t, n); + for (var i = r; i < n && i < t.length; i++) void 0 !== t[i] && e.push(t[i]) + } + return e + } + + function m(e, t, r) { + return !c(e, t, r) && (e.push(t), !0) + } + + function y(r, e, n) { + e.sort(function(e, t) { + return n(r[e], r[t]) || k(e, t) + }) + } + + function _(e, t) { + return 0 === e.length ? e : e.slice().sort(t) + } + + function d(e) { + var t = 0; + return { + next: function() { + return t === e.length ? { + value: void 0, + done: !0 + } : { + value: e[++t - 1], + done: !1 + } + } + } + } + + function t(e) { + return e && 1 === e.length ? e[0] : void 0 + } + + function i(e, t, r, n, i) { + return p(e, r(t), r, n, i) + } + + function p(e, t, r, n, i) { + if (!l(e)) return -1; + for (var a = i || 0, o = e.length - 1; a <= o;) { + var s = a + (o - a >> 1); + switch (n(r(e[s], s), t)) { + case -1: + a = s + 1; + break; + case 0: + return s; + case 1: + o = s - 1 + } + } + return ~a + } + + function f(e, t, r, n, i) { + if (e && 0 < e.length) { + var a = e.length; + if (0 < a) { + var o = void 0 === n || n < 0 ? 0 : n, + s = void 0 === i || a - 1 < o + i ? a - 1 : o + i, + c = void 0; + for (arguments.length <= 2 ? (c = e[o], o++) : c = r; o <= s;) c = t(c, e[o], o), o++; + return c + } + } + return r + } + u.getIterator = function(e) { + if (e) { + if (S(e)) return d(e); + if (e instanceof u.Map) return e.entries(); + if (e instanceof u.Set) return e.values(); + throw new Error("Iteration not supported.") + } + }, u.emptyArray = [], u.emptyMap = new u.Map, u.emptySet = new u.Set, u.length = function(e) { + return e ? e.length : 0 + }, u.forEach = function(e, t) { + if (e) + for (var r = 0; r < e.length; r++) { + var n = t(e[r], r); + if (n) return n + } + }, u.forEachRight = function(e, t) { + if (e) + for (var r = e.length - 1; 0 <= r; r--) { + var n = t(e[r], r); + if (n) return n + } + }, u.firstDefined = function(e, t) { + if (void 0 !== e) + for (var r = 0; r < e.length; r++) { + var n = t(e[r], r); + if (void 0 !== n) return n + } + }, u.firstDefinedIterator = function(e, t) { + for (;;) { + var r = e.next(); + if (r.done) return; + r = t(r.value); + if (void 0 !== r) return r + } + }, u.reduceLeftIterator = function(e, t, r) { + var n = r; + if (e) + for (var i = e.next(), a = 0; !i.done; i = e.next(), a++) n = t(n, i.value, a); + return n + }, u.zipWith = function(e, t, r) { + var n = []; + u.Debug.assertEqual(e.length, t.length); + for (var i = 0; i < e.length; i++) n.push(r(e[i], t[i], i)); + return n + }, u.zipToIterator = function(e, t) { + u.Debug.assertEqual(e.length, t.length); + var r = 0; + return { + next: function() { + return r === e.length ? { + value: void 0, + done: !0 + } : { + value: [e[++r - 1], t[r - 1]], + done: !1 + } + } + } + }, u.zipToMap = function(e, t) { + u.Debug.assert(e.length === t.length); + for (var r = new u.Map, n = 0; n < e.length; ++n) r.set(e[n], t[n]); + return r + }, u.intersperse = function(e, t) { + if (e.length <= 1) return e; + for (var r = [], n = 0, i = e.length; n < i; n++) n && r.push(t), r.push(e[n]); + return r + }, u.every = function(e, t) { + if (e) + for (var r = 0; r < e.length; r++) + if (!t(e[r], r)) return !1; + return !0 + }, u.find = function(e, t, r) { + if (void 0 !== e) + for (var n = null != r ? r : 0; n < e.length; n++) { + var i = e[n]; + if (t(i, n)) return i + } + }, u.findLast = function(e, t, r) { + if (void 0 !== e) + for (var n = null != r ? r : e.length - 1; 0 <= n; n--) { + var i = e[n]; + if (t(i, n)) return i + } + }, u.findIndex = function(e, t, r) { + if (void 0 !== e) + for (var n = null != r ? r : 0; n < e.length; n++) + if (t(e[n], n)) return n; + return -1 + }, u.findLastIndex = function(e, t, r) { + if (void 0 !== e) + for (var n = null != r ? r : e.length - 1; 0 <= n; n--) + if (t(e[n], n)) return n; + return -1 + }, u.findMap = function(e, t) { + for (var r = 0; r < e.length; r++) { + var n = t(e[r], r); + if (n) return n + } + return u.Debug.fail() + }, u.contains = c, u.arraysEqual = function(e, r, n) { + return void 0 === n && (n = E), e.length === r.length && e.every(function(e, t) { + return n(e, r[t]) + }) + }, u.indexOfAnyCharCode = function(e, t, r) { + for (var n = r || 0; n < e.length; n++) + if (c(t, e.charCodeAt(n))) return n; + return -1 + }, u.countWhere = function(e, t) { + var r = 0; + if (e) + for (var n = 0; n < e.length; n++) t(e[n], n) && r++; + return r + }, u.filter = function(e, t) { + if (e) { + for (var r = e.length, n = 0; n < r && t(e[n]);) n++; + if (n < r) { + var i = e.slice(0, n); + for (n++; n < r;) { + var a = e[n]; + t(a) && i.push(a), n++ + } + return i + } + } + return e + }, u.filterMutate = function(e, t) { + for (var r = 0, n = 0; n < e.length; n++) t(e[n], n, e) && (e[r] = e[n], r++); + e.length = r + }, u.clear = function(e) { + e.length = 0 + }, u.map = function(e, t) { + if (e) + for (var r = [], n = 0; n < e.length; n++) r.push(t(e[n], n)); + return r + }, u.mapIterator = function(t, r) { + return { + next: function() { + var e = t.next(); + return e.done ? e : { + value: r(e.value), + done: !1 + } + } + } + }, u.sameMap = function(e, t) { + if (e) + for (var r = 0; r < e.length; r++) { + var n = e[r], + i = t(n, r); + if (n !== i) { + var a = e.slice(0, r); + for (a.push(i), r++; r < e.length; r++) a.push(t(e[r], r)); + return a + } + } + return e + }, u.flatten = function(e) { + for (var t = [], r = 0, n = e; r < n.length; r++) { + var i = n[r]; + i && (S(i) ? s(t, i) : t.push(i)) + } + return t + }, u.flatMap = function(e, t) { + var r; + if (e) + for (var n = 0; n < e.length; n++) { + var i = t(e[n], n); + i && (r = (S(i) ? s : a)(r, i)) + } + return r || u.emptyArray + }, u.flatMapToMutable = function(e, t) { + var r = []; + if (e) + for (var n = 0; n < e.length; n++) { + var i = t(e[n], n); + i && (S(i) ? s(r, i) : r.push(i)) + } + return r + }, u.flatMapIterator = function(t, r) { + var n, e = t.next(); + return e.done ? u.emptyIterator : (n = i(e.value), { + next: function() { + for (;;) { + var e = n.next(); + if (!e.done) return e; + e = t.next(); + if (e.done) return e; + n = i(e.value) + } + } + }); + + function i(e) { + e = r(e); + return void 0 === e ? u.emptyIterator : S(e) ? d(e) : e + } + }, u.sameFlatMap = function(e, t) { + var r; + if (e) + for (var n = 0; n < e.length; n++) { + var i = e[n], + a = t(i, n); + (r || i !== a || S(a)) && (r = r || e.slice(0, n), S(a) ? s(r, a) : r.push(a)) + } + return r || e + }, u.mapAllOrFail = function(e, t) { + for (var r = [], n = 0; n < e.length; n++) { + var i = t(e[n], n); + if (void 0 === i) return; + r.push(i) + } + return r + }, u.mapDefined = function(e, t) { + var r = []; + if (e) + for (var n = 0; n < e.length; n++) { + var i = t(e[n], n); + void 0 !== i && r.push(i) + } + return r + }, u.mapDefinedIterator = function(t, r) { + return { + next: function() { + for (;;) { + var e = t.next(); + if (e.done) return e; + e = r(e.value); + if (void 0 !== e) return { + value: e, + done: !1 + } + } + } + } + }, u.mapDefinedEntries = function(e, r) { + var n; + if (e) return n = new u.Map, e.forEach(function(e, t) { + var t = r(t, e); + void 0 !== t && (e = t[0], t = t[1], void 0 !== e) && void 0 !== t && n.set(e, t) + }), n + }, u.mapDefinedValues = function(e, t) { + var r; + if (e) return r = new u.Set, e.forEach(function(e) { + e = t(e); + void 0 !== e && r.add(e) + }), r + }, u.getOrUpdate = function(e, t, r) { + return e.has(t) ? e.get(t) : (r = r(), e.set(t, r), r) + }, u.tryAddToSet = function(e, t) { + return !e.has(t) && (e.add(t), !0) + }, u.emptyIterator = { + next: function() { + return { + value: void 0, + done: !0 + } + } + }, u.singleIterator = function(t) { + var r = !1; + return { + next: function() { + var e = r; + return r = !0, e ? { + value: void 0, + done: !0 + } : { + value: t, + done: !1 + } + } + } + }, u.spanMap = function(e, t, r) { + if (e) + for (var n, i = [], a = e.length, o = void 0, s = void 0, c = 0, l = 0; c < a;) { + for (; l < a;) { + s = t(e[l], l); + if (0 === l) o = s; + else if (s !== o) break; + l++ + } + c < l && ((n = r(e.slice(c, l), o, c, l)) && i.push(n), c = l), o = s, l++ + } + return i + }, u.mapEntries = function(e, r) { + var n; + if (e) return n = new u.Map, e.forEach(function(e, t) { + t = r(t, e), e = t[0], t = t[1]; + n.set(e, t) + }), n + }, u.some = l, u.getRangesWhere = function(e, t, r) { + for (var n, i = 0; i < e.length; i++) t(e[i]) ? n = void 0 === n ? i : n : void 0 !== n && (r(n, i), n = void 0); + void 0 !== n && r(n, e.length) + }, u.concatenate = r, u.indicesOf = g, u.deduplicate = function(e, t, r) { + if (0 === e.length) return []; + if (1 === e.length) return e.slice(); + if (r) { + for (var n = e, i = t, a = g(n), o = (y(n, a, r), n[a[0]]), s = [a[0]], c = 1; c < a.length; c++) { + var l = a[c], + u = n[l]; + i(o, u) || (s.push(l), o = u) + } + return s.sort(), s.map(function(e) { + return n[e] + }) + } + for (var _ = t, d = [], p = 0, f = r = e; p < f.length; p++) m(d, f[p], _); + return d + }, u.createSortedArray = function() { + return [] + }, u.insertSorted = function(e, t, r, n) { + return 0 === e.length ? (e.push(t), !0) : (r = i(e, t, C, r)) < 0 ? (e.splice(~r, 0, t), !0) : !!n && (e.splice(r, 0, t), !0) + }, u.sortAndDeduplicate = function(e, t, r) { + var n = _(e, t), + i = r || t || N; + if (0 === n.length) return u.emptyArray; + for (var a = n[0], o = [a], s = 1; s < n.length; s++) { + var c = n[s]; + switch (i(c, a)) { + case !0: + case 0: + continue; + case -1: + return u.Debug.fail("Array is unsorted.") + } + o.push(a = c) + } + return o + }, u.arrayIsSorted = function(e, t) { + if (!(e.length < 2)) + for (var r = e[0], n = 0, i = e.slice(1); n < i.length; n++) { + var a = i[n]; + if (1 === t(r, a)) return !1; + r = a + } + return !0 + }, u.arrayIsEqualTo = function(e, t, r) { + if (void 0 === r && (r = E), !e || !t) return e === t; + if (e.length !== t.length) return !1; + for (var n = 0; n < e.length; n++) + if (!r(e[n], t[n], n)) return !1; + return !0 + }, u.compact = function(e) { + var t; + if (e) + for (var r = 0; r < e.length; r++) { + var n = e[r]; + !t && n || (t = t || e.slice(0, r), n && t.push(n)) + } + return t || e + }, u.relativeComplement = function(e, t, r) { + if (!t || !e || 0 === t.length || 0 === e.length) return t; + var n = []; + e: for (var i = 0, a = 0; a < t.length; a++) { + 0 < a && u.Debug.assertGreaterThanOrEqual(r(t[a], t[a - 1]), 0); + for (var o = i; i < e.length; i++) switch (o < i && u.Debug.assertGreaterThanOrEqual(r(e[i], e[i - 1]), 0), r(t[a], e[i])) { + case -1: + n.push(t[a]); + continue e; + case 0: + continue e; + case 1: + continue + } + } + return n + }, u.sum = function(e, t) { + for (var r = 0, n = 0, i = e; n < i.length; n++) r += i[n][t]; + return r + }, u.append = a, u.combine = function(e, t) { + return void 0 === e ? t : void 0 === t ? e : S(e) ? (S(t) ? r : a)(e, t) : S(t) ? a(t, e) : [e, t] + }, u.addRange = s, u.pushIfUnique = m, u.appendIfUnique = function(e, t, r) { + return e ? (m(e, t, r), e) : [t] + }, u.sort = _, u.arrayIterator = d, u.arrayReverseIterator = function(e) { + var t = e.length; + return { + next: function() { + return 0 === t ? { + value: void 0, + done: !0 + } : { + value: e[--t], + done: !1 + } + } + } + }, u.stableSort = function(t, e) { + var r = g(t); + return y(t, r, e), r.map(function(e) { + return t[e] + }) + }, u.rangeEquals = function(e, t, r, n) { + for (; r < n;) { + if (e[r] !== t[r]) return !1; + r++ + } + return !0 + }, u.elementAt = function(e, t) { + if (e && (t = o(e, t)) < e.length) return e[t] + }, u.firstOrUndefined = function(e) { + return void 0 === e || 0 === e.length ? void 0 : e[0] + }, u.first = function(e) { + return u.Debug.assert(0 !== e.length), e[0] + }, u.lastOrUndefined = function(e) { + return void 0 === e || 0 === e.length ? void 0 : e[e.length - 1] + }, u.last = function(e) { + return u.Debug.assert(0 !== e.length), e[e.length - 1] + }, u.singleOrUndefined = t, u.single = function(e) { + return u.Debug.checkDefined(t(e)) + }, u.singleOrMany = function(e) { + return e && 1 === e.length ? e[0] : e + }, u.replaceElement = function(e, t, r) { + return (e = e.slice(0))[t] = r, e + }, u.binarySearch = i, u.binarySearchKey = p, u.reduceLeft = f; + var h = Object.prototype.hasOwnProperty; + + function v(e, t) { + return h.call(e, t) + } + + function b(e) { + var t, r = []; + for (t in e) { + h.call(e, t) && r.push(t); + } + return r + } + u.hasProperty = v, u.getProperty = function(e, t) { + return h.call(e, t) ? e[t] : void 0 + }, u.getOwnKeys = b, u.getAllKeys = function(e) { + var t = []; + do { + for (var r = 0, n = Object.getOwnPropertyNames(e); r < n.length; r++) m(t, n[r]) + } while (e = Object.getPrototypeOf(e)); + return t + }, u.getOwnValues = function(e) { + var t, r = []; + for (t in e) h.call(e, t) && r.push(e[t]); + return r + }; + var R = Object.entries || function(e) { + for (var t = b(e), r = Array(t.length), n = 0; n < t.length; n++) r[n] = [t[n], e[t[n]]]; + return r + }; + + function x(e, t) { + for (var r = [], n = e.next(); !n.done; n = e.next()) r.push(t ? t(n.value) : n.value); + return r + } + + function B(e, t, r) { + void 0 === r && (r = C); + for (var n = D(), i = 0, a = e; i < a.length; i++) { + var o = a[i]; + n.add(t(o), r(o)) + } + return n + } + + function D() { + var e = new u.Map; + return e.add = j, e.remove = J, e + } + + function j(e, t) { + var r = this.get(e); + return r ? r.push(t) : this.set(e, r = [t]), r + } + + function J(e, t) { + var r = this.get(e); + r && ($(r, t), r.length || this.delete(e)) + } + + function S(e) { + return Array.isArray ? Array.isArray(e) : e instanceof Array + } + + function T(e) {} + + function C(e) { + return e + } + + function z(e) { + return e.toLowerCase() + } + u.getEntries = function(e) { + return e ? R(e) : [] + }, u.arrayOf = function(e, t) { + for (var r = new Array(e), n = 0; n < e; n++) r[n] = t(n); + return r + }, u.arrayFrom = x, u.assign = function(e) { + for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; + for (var n = 0, i = t; n < i.length; n++) { + var a = i[n]; + if (void 0 !== a) + for (var o in a) v(a, o) && (e[o] = a[o]) + } + return e + }, u.equalOwnProperties = function(e, t, r) { + if (void 0 === r && (r = E), e !== t) { + if (!e || !t) return !1; + for (var n in e) + if (h.call(e, n)) { + if (!h.call(t, n)) return !1; + if (!r(e[n], t[n])) return !1 + } + for (var n in t) + if (h.call(t, n) && !h.call(e, n)) return !1 + } + return !0 + }, u.arrayToMap = function(e, t, r) { + void 0 === r && (r = C); + for (var n = new u.Map, i = 0, a = e; i < a.length; i++) { + var o = a[i], + s = t(o); + void 0 !== s && n.set(s, r(o)) + } + return n + }, u.arrayToNumericMap = function(e, t, r) { + void 0 === r && (r = C); + for (var n = [], i = 0, a = e; i < a.length; i++) { + var o = a[i]; + n[t(o)] = r(o) + } + return n + }, u.arrayToMultiMap = B, u.group = function(e, t, r) { + return void 0 === r && (r = C), x(B(e, t).values(), r) + }, u.clone = function(e) { + var t, r = {}; + for (t in e) h.call(e, t) && (r[t] = e[t]); + return r + }, u.extend = function(e, t) { + var r, n = {}; + for (r in t) h.call(t, r) && (n[r] = t[r]); + for (r in e) h.call(e, r) && (n[r] = e[r]); + return n + }, u.copyProperties = function(e, t) { + for (var r in t) h.call(t, r) && (e[r] = t[r]) + }, u.maybeBind = function(e, t) { + return t ? t.bind(e) : void 0 + }, u.createMultiMap = D, u.createUnderscoreEscapedMultiMap = D, u.createQueue = function(e) { + var r = (null == e ? void 0 : e.slice()) || [], + n = 0; + + function i() { + return n === r.length + } + return { + enqueue: function() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + r.push.apply(r, e) + }, + dequeue: function() { + if (i()) throw new Error("Queue is empty"); + var e, t = r[n]; + return r[n] = void 0, 100 < ++n && n > r.length >> 1 && (e = r.length - n, r.copyWithin(0, n), r.length = e, n = 0), t + }, + isEmpty: i + } + }, u.createSet = function(a, o) { + var s = new u.Map, + i = 0; + + function e() { + var t, r = s.values(); + return { + next: function() { + for (;;) + if (t) { + if (!(e = t.next()).done) return { + value: e.value + }; + t = void 0 + } else { + var e; + if ((e = r.next()).done) return { + value: void 0, + done: !0 + }; + if (!S(e.value)) return { + value: e.value + }; + t = d(e.value) + } + } + } + } + return { + has: function(e) { + var t = a(e); + if (s.has(t)) { + t = s.get(t); + if (!S(t)) return o(t, e); + for (var r = 0, n = t; r < n.length; r++) { + var i = n[r]; + if (o(i, e)) return !0 + } + } + return !1 + }, + add: function(e) { + var t, r = a(e); + return s.has(r) ? S(t = s.get(r)) ? c(t, e, o) || (t.push(e), i++) : o(t = t, e) || (s.set(r, [t, e]), i++) : (s.set(r, e), i++), this + }, + delete: function(e) { + var t = a(e); + if (s.has(t)) { + var r = s.get(t); + if (S(r)) { + for (var n = 0; n < r.length; n++) + if (o(r[n], e)) return 1 === r.length ? s.delete(t) : 2 === r.length ? s.set(t, r[1 - n]) : I(r, n), i--, !0 + } else if (o(r, e)) return s.delete(t), i--, !0 + } + return !1 + }, + clear: function() { + s.clear(), i = 0 + }, + get size() { + return i + }, + forEach: function(e) { + for (var t = 0, r = x(s.values()); t < r.length; t++) { + var n = r[t]; + if (S(n)) + for (var i, a = 0, o = n; a < o.length; a++) e(i = o[a], i); + else e(i = n, i) + } + }, + keys: e, + values: e, + entries: function() { + var t = e(); + return { + next: function() { + var e = t.next(); + return e.done ? e : { + value: [e.value, e.value] + } + } + } + } + } + }, u.isArray = S, u.toArray = function(e) { + return S(e) ? e : [e] + }, u.isString = function(e) { + return "string" == typeof e + }, u.isNumber = function(e) { + return "number" == typeof e + }, u.tryCast = function(e, t) { + return void 0 !== e && t(e) ? e : void 0 + }, u.cast = function(e, t) { + return void 0 !== e && t(e) ? e : u.Debug.fail("Invalid cast. The supplied value ".concat(e, " did not pass the test '").concat(u.Debug.getFunctionName(t), "'.")) + }, u.noop = T, u.noopPush = { + push: T, + length: 0 + }, u.returnFalse = function() { + return !1 + }, u.returnTrue = function() { + return !0 + }, u.returnUndefined = function() {}, u.identity = C, u.toLowerCase = z; + var e, U = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g; + + function K(e) { + return U.test(e) ? e.replace(U, z) : e + } + + function E(e, t) { + return e === t + } + + function V(e, t) { + return e === t ? 0 : void 0 === e || void 0 !== t && e < t ? -1 : 1 + } + + function k(e, t) { + return V(e, t) + } + + function q(e, t) { + return e === t ? 0 : void 0 === e ? -1 : void 0 === t ? 1 : (e = e.toUpperCase()) < (t = t.toUpperCase()) ? -1 : t < e ? 1 : 0 + } + + function N(e, t) { + return V(e, t) + } + u.toFileNameLowerCase = K, u.notImplemented = function() { + throw new Error("Not implemented") + }, u.memoize = function(e) { + var t; + return function() { + return e && (t = e(), e = void 0), t + } + }, u.memoizeOne = function(n) { + var i = new u.Map; + return function(e) { + var t = "".concat(typeof e, ":").concat(e), + r = i.get(t); + return void 0 !== r || i.has(t) || (r = n(e), i.set(t, r)), r + } + }, u.compose = function(t, r, n, i, e) { + if (e) { + for (var a = [], o = 0; o < arguments.length; o++) a[o] = arguments[o]; + return function(e) { + return f(a, function(e, t) { + return t(e) + }, e) + } + } + return i ? function(e) { + return i(n(r(t(e)))) + } : n ? function(e) { + return n(r(t(e))) + } : r ? function(e) { + return r(t(e)) + } : t ? function(e) { + return t(e) + } : function(e) { + return e + } + }, (e = u.AssertionLevel || (u.AssertionLevel = {}))[e.None = 0] = "None", e[e.Normal = 1] = "Normal", e[e.Aggressive = 2] = "Aggressive", e[e.VeryAggressive = 3] = "VeryAggressive", u.equateValues = E, u.equateStringsCaseInsensitive = function(e, t) { + return e === t || void 0 !== e && void 0 !== t && e.toUpperCase() === t.toUpperCase() + }, u.equateStringsCaseSensitive = function(e, t) { + return e === t + }, u.compareValues = k, u.compareTextSpans = function(e, t) { + return k(null == e ? void 0 : e.start, null == t ? void 0 : t.start) || k(null == e ? void 0 : e.length, null == t ? void 0 : t.length) + }, u.min = function(e, r) { + return f(e, function(e, t) { + return -1 === r(e, t) ? e : t + }) + }, u.compareStringsCaseInsensitive = q, u.compareStringsCaseSensitive = N, u.getStringComparer = function(e) { + return e ? q : N + }; + n = function() { + if ("object" == typeof Intl && "function" == typeof Intl.Collator) return Q; + if ("function" == typeof String.prototype.localeCompare && "function" == typeof String.prototype.toLocaleUpperCase && "a".localeCompare("B") < 0) return X; + return Y + }(); + var W, H, n, A, F, G = function(e) { + return void 0 === e ? W = W || n(e) : "en-US" === e ? H = H || n(e) : n(e) + }; + + function P(e, t, r) { + return e === t ? 0 : void 0 === e ? -1 : void 0 === t ? 1 : (r = r(e, t)) < 0 ? -1 : 0 < r ? 1 : 0 + } + + function Q(e) { + var r = new Intl.Collator(e, { + usage: "sort", + sensitivity: "variant" + }).compare; + return function(e, t) { + return P(e, t, r) + } + } + + function X(e) { + return void 0 !== e ? Y() : function(e, t) { + return P(e, t, r) + }; + + function r(e, t) { + return e.localeCompare(t) + } + } + + function Y() { + return function(e, t) { + return P(e, t, r) + }; + + function r(e, t) { + return n(e.toUpperCase(), t.toUpperCase()) || n(e, t) + } + + function n(e, t) { + return e < t ? -1 : t < e ? 1 : 0 + } + } + + function w(e, t) { + var r = e.length - t.length; + return 0 <= r && e.indexOf(t, r) === r + } + + function Z(e, t) { + for (var r = t; r < e.length - 1; r++) e[r] = e[r + 1]; + e.pop() + } + + function I(e, t) { + e[t] = e[e.length - 1], e.pop() + } + + function $(e, t) { + for (var r = e, n = function(e) { + return e === t + }, i = 0; i < r.length; i++) + if (n(r[i])) return I(r, i), !0; + return !1 + } + + function O(e, t) { + return 0 === e.lastIndexOf(t, 0) + } + + function M(e, t) { + var r = e.prefix, + e = e.suffix; + return t.length >= r.length + e.length && O(t, r) && w(t, e) + } + u.getUILocale = function() { + return F + }, u.setUILocale = function(e) { + F !== e && (F = e, A = void 0) + }, u.compareStringsCaseSensitiveUI = function(e, t) { + return (A = A || G(F))(e, t) + }, u.compareProperties = function(e, t, r, n) { + return e === t ? 0 : void 0 === e ? -1 : void 0 === t ? 1 : n(e[r], t[r]) + }, u.compareBooleans = function(e, t) { + return k(e ? 1 : 0, t ? 1 : 0) + }, u.getSpellingSuggestion = function(e, t, r) { + for (var n, i = Math.max(2, Math.floor(.34 * e.length)), a = Math.floor(.4 * e.length) + 1, o = 0, s = t; o < s.length; o++) { + var c = s[o], + l = r(c); + void 0 !== l && Math.abs(l.length - e.length) <= i && (l === e || l.length < 3 && l.toLowerCase() !== e.toLowerCase() || void 0 !== (l = function(e, t, r) { + for (var n = new Array(t.length + 1), i = new Array(t.length + 1), a = r + .01, o = 0; o <= t.length; o++) n[o] = o; + for (o = 1; o <= e.length; o++) { + for (var s = e.charCodeAt(o - 1), c = Math.ceil(r < o ? o - r : 1), l = Math.floor(t.length > r + o ? r + o : t.length), u = i[0] = o, _ = 1; _ < c; _++) i[_] = a; + for (_ = c; _ <= l; _++) { + var d = e[o - 1].toLowerCase() === t[_ - 1].toLowerCase() ? n[_ - 1] + .1 : n[_ - 1] + 2, + d = s === t.charCodeAt(_ - 1) ? n[_ - 1] : Math.min(n[_] + 1, i[_ - 1] + 1, d); + i[_] = d, u = Math.min(u, d) + } + for (_ = l + 1; _ <= t.length; _++) i[_] = a; + if (r < u) return; + var p = n; + n = i, i = p + } + var f = n[t.length]; + return r < f ? void 0 : f + }(e, l, a - .1)) && (u.Debug.assert(l < a), a = l, n = c)) + } + return n + }, u.endsWith = w, u.removeSuffix = function(e, t) { + return w(e, t) ? e.slice(0, e.length - t.length) : e + }, u.tryRemoveSuffix = function(e, t) { + return w(e, t) ? e.slice(0, e.length - t.length) : void 0 + }, u.stringContains = function(e, t) { + return -1 !== e.indexOf(t) + }, u.removeMinAndVersionNumbers = function(e) { + for (var t = e.length, r = t - 1; 0 < r; r--) { + var n = e.charCodeAt(r); + if (48 <= n && n <= 57) + for (; --r, n = e.charCodeAt(r), 0 < r && 48 <= n && n <= 57;); + else { + if (!(4 < r) || 110 !== n && 78 !== n) break; + if (--r, 105 !== (n = e.charCodeAt(r)) && 73 !== n) break; + if (--r, 109 !== (n = e.charCodeAt(r)) && 77 !== n) break; + --r, n = e.charCodeAt(r) + } + if (45 !== n && 46 !== n) break; + t = r + } + return t === e.length ? e : e.slice(0, t) + }, u.orderedRemoveItem = function(e, t) { + for (var r = 0; r < e.length; r++) + if (e[r] === t) return Z(e, r), !0; + return !1 + }, u.orderedRemoveItemAt = Z, u.unorderedRemoveItemAt = I, u.unorderedRemoveItem = $, u.createGetCanonicalFileName = function(e) { + return e ? C : K + }, u.patternText = function(e) { + var t = e.prefix, + e = e.suffix; + return "".concat(t, "*").concat(e) + }, u.matchedText = function(e, t) { + return u.Debug.assert(M(e, t)), t.substring(e.prefix.length, t.length - e.suffix.length) + }, u.findBestPatternMatch = function(e, t, r) { + for (var n, i = -1, a = 0, o = e; a < o.length; a++) { + var s = o[a], + c = t(s); + M(c, r) && c.prefix.length > i && (i = c.prefix.length, n = s) + } + return n + }, u.startsWith = O, u.removePrefix = function(e, t) { + return O(e, t) ? e.substr(t.length) : e + }, u.tryRemovePrefix = function(e, t, r) { + return O((r = void 0 === r ? C : r)(e), r(t)) ? e.substring(t.length) : void 0 + }, u.isPatternMatch = M, u.and = function(t, r) { + return function(e) { + return t(e) && r(e) + } + }, u.or = function() { + for (var a = [], e = 0; e < arguments.length; e++) a[e] = arguments[e]; + return function() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + for (var r, n = 0, i = a; n < i.length; n++) + if (r = i[n].apply(void 0, e)) return r; + return r + } + }, u.not = function(r) { + return function() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + return !r.apply(void 0, e) + } + }, u.assertType = function(e) {}, u.singleElementArray = function(e) { + return void 0 === e ? void 0 : [e] + }, u.enumerateInsertsAndDeletes = function(e, t, r, n, i, a) { + a = a || T; + for (var o = 0, s = 0, c = e.length, l = t.length, u = !1; o < c && s < l;) { + var _ = e[o], + d = t[s], + p = r(_, d); - 1 === p ? (n(_), o++, u = !0) : 1 === p ? (i(d), s++, u = !0) : (a(d, _), o++, s++) + } + for (; o < c;) n(e[o++]), u = !0; + for (; s < l;) i(t[s++]), u = !0; + return u + }, u.fill = function(e, t) { + for (var r = Array(e), n = 0; n < e; n++) r[n] = t(n); + return r + }, u.cartesianProduct = function(e) { + var t = []; + return function e(t, r, n, i) { + for (var a = 0, o = t[i]; a < o.length; a++) { + var s = o[a], + c = void 0; + n ? (c = n.slice()).push(s) : c = [s], i === t.length - 1 ? r.push(c) : e(t, r, c, i + 1) + } + }(e, t, void 0, 0), t + }, u.padLeft = function(e, t, r) { + return void 0 === r && (r = " "), t <= e.length ? e : r.repeat(t - e.length) + e + }, u.padRight = function(e, t, r) { + return void 0 === r && (r = " "), t <= e.length ? e : e + r.repeat(t - e.length) + }, u.takeWhile = function(e, t) { + for (var r = e.length, n = 0; n < r && t(e[n]);) n++; + return e.slice(0, n) + }, u.trimString = String.prototype.trim ? function(e) { + return e.trim() + } : function(e) { + return u.trimStringEnd(u.trimStringStart(e)) + }, u.trimStringEnd = String.prototype.trimEnd ? function(e) { + return e.trimEnd() + } : function(e) { + var t = e.length - 1; + for (; 0 <= t && u.isWhiteSpaceLike(e.charCodeAt(t));) t--; + return e.slice(0, t + 1) + }, u.trimStringStart = String.prototype.trimStart ? function(e) { + return e.trimStart() + } : function(e) { + return e.replace(/^\s+/g, "") + } + }(ts = ts || {}), ! function(p) { + (r = t = p.LogLevel || (p.LogLevel = {}))[r.Off = 0] = "Off", r[r.Error = 1] = "Error", r[r.Warning = 2] = "Warning", r[r.Info = 3] = "Info", r[r.Verbose = 4] = "Verbose"; + var t, e, r, f = p.Debug || (p.Debug = {}), + a = 0; + + function g() { + return null != e ? e : e = new p.Version(p.version) + } + + function n(e) { + return f.currentLogLevel <= e + } + + function i(e, t) { + f.loggingHost && n(e) && f.loggingHost.log(e, t) + } + + function m(e) { + i(t.Info, e) + } + f.currentLogLevel = t.Warning, f.isDebugging = !1, f.enableDeprecationWarnings = !0, f.getTypeScriptVersion = g, f.shouldLog = n, f.log = m, (r = m = f.log || (f.log = {})).error = function(e) { + i(t.Error, e) + }, r.warn = function(e) { + i(t.Warning, e) + }, r.log = function(e) { + i(t.Info, e) + }, r.trace = function(e) { + i(t.Verbose, e) + }; + var o = {}; + + function L(e) { + return e <= a + } + + function s(e, t) { + if (e <= a) return 1; + o[t] = { + level: e, + assertion: f[t] + }, f[t] = p.noop + } + + function c(e, t) { + e = new Error(e ? "Debug Failure. ".concat(e) : "Debug Failure."); + throw Error.captureStackTrace && Error.captureStackTrace(e, t || c), e + } + + function l(e, t, r, n) { + e || (t = t ? "False expression: ".concat(t) : "False expression.", r && (t += "\r\nVerbose Debug Information: " + ("string" == typeof r ? r : r())), c(t, n || l)) + } + + function u(e, t, r) { + null == e && c(t, r || u) + } + + function _(e, t, r) { + for (var n = 0, i = e; n < i.length; n++) u(i[n], t, r || _) + } + + function d(e, t, r) { + void 0 === t && (t = "Illegal value:"); + e = "object" == typeof e && p.hasProperty(e, "kind") && p.hasProperty(e, "pos") ? "SyntaxKind: " + b(e.kind) : JSON.stringify(e); + return c("".concat(t, " ").concat(e), r || d) + } + + function R(e) {} + + function y(e) { + return "function" != typeof e ? "" : p.hasProperty(e, "name") ? e.name : (e = Function.prototype.toString.call(e), (e = /^function\s+([\w\$]+)\s*\(/.exec(e)) ? e[1] : "") + } + + function h(e, t, r) { + void 0 === e && (e = 0); + t = function(e) { + var t = v.get(e); + if (t) return t; + var r, n = []; + for (r in e) { + var i = e[r]; + "number" == typeof i && n.push([i, r]) + } + t = p.stableSort(n, function(e, t) { + return p.compareValues(e[0], t[0]) + }); + return v.set(e, t), t + }(t); + if (0 === e) return 0 < t.length && 0 === t[0][0] ? t[0][1] : "0"; + if (r) { + for (var n = [], i = e, a = 0, o = t; a < o.length; a++) { + var s = o[a], + c = s[0], + l = s[1]; + if (e < c) break; + 0 !== c && c & e && (n.push(l), i &= ~c) + } + if (0 === i) return n.join("|") + } else + for (var u = 0, _ = t; u < _.length; u++) { + var d = _[u], + c = d[0], + l = d[1]; + if (c === e) return l + } + return e.toString() + } + f.getAssertionLevel = function() { + return a + }, f.setAssertionLevel = function(e) { + if (a < (a = e)) + for (var t = 0, r = p.getOwnKeys(o); t < r.length; t++) { + var n = r[t], + i = o[n]; + void 0 !== i && f[n] !== i.assertion && e >= i.level && (f[n] = i, o[n] = void 0) + } + }, f.shouldAssert = L, f.fail = c, f.failBadSyntaxKind = function e(t, r, n) { + return c("".concat(r || "Unexpected node.", "\r\nNode ").concat(b(t.kind), " was unexpected."), n || e) + }, f.assert = l, f.assertEqual = function e(t, r, n, i, a) { + t !== r && (i = n ? i ? "".concat(n, " ").concat(i) : n : "", c("Expected ".concat(t, " === ").concat(r, ". ").concat(i), a || e)) + }, f.assertLessThan = function e(t, r, n, i) { + r <= t && c("Expected ".concat(t, " < ").concat(r, ". ").concat(n || ""), i || e) + }, f.assertLessThanOrEqual = function e(t, r, n) { + r < t && c("Expected ".concat(t, " <= ").concat(r), n || e) + }, f.assertGreaterThanOrEqual = function e(t, r, n) { + t < r && c("Expected ".concat(t, " >= ").concat(r), n || e) + }, f.assertIsDefined = u, f.checkDefined = function e(t, r, n) { + return u(t, r, n || e), t + }, f.assertEachIsDefined = _, f.checkEachDefined = function e(t, r, n) { + return _(t, r, n || e), t + }, f.assertNever = d, f.assertEachNode = function e(t, r, n, i) { + s(1, "assertEachNode") && l(void 0 === r || p.every(t, r), n || "Unexpected node.", function() { + return "Node array did not pass test '".concat(y(r), "'.") + }, i || e) + }, f.assertNode = function e(t, r, n, i) { + s(1, "assertNode") && l(void 0 !== t && (void 0 === r || r(t)), n || "Unexpected node.", function() { + return "Node ".concat(b(null == t ? void 0 : t.kind), " did not pass test '").concat(y(r), "'.") + }, i || e) + }, f.assertNotNode = function e(t, r, n, i) { + s(1, "assertNotNode") && l(void 0 === t || void 0 === r || !r(t), n || "Unexpected node.", function() { + return "Node ".concat(b(t.kind), " should not have passed test '").concat(y(r), "'.") + }, i || e) + }, f.assertOptionalNode = function e(t, r, n, i) { + s(1, "assertOptionalNode") && l(void 0 === r || void 0 === t || r(t), n || "Unexpected node.", function() { + return "Node ".concat(b(null == t ? void 0 : t.kind), " did not pass test '").concat(y(r), "'.") + }, i || e) + }, f.assertOptionalToken = function e(t, r, n, i) { + s(1, "assertOptionalToken") && l(void 0 === r || void 0 === t || t.kind === r, n || "Unexpected node.", function() { + return "Node ".concat(b(null == t ? void 0 : t.kind), " was not a '").concat(b(r), "' token.") + }, i || e) + }, f.assertMissingNode = function e(t, r, n) { + s(1, "assertMissingNode") && l(void 0 === t, r || "Unexpected node.", function() { + return "Node ".concat(b(t.kind), " was unexpected'.") + }, n || e) + }, f.type = R, f.getFunctionName = y, f.formatSymbol = function(e) { + return "{ name: ".concat(p.unescapeLeadingUnderscores(e.escapedName), "; flags: ").concat(C(e.flags), "; declarations: ").concat(p.map(e.declarations, function(e) { + return b(e.kind) + }), " }") + }, f.formatEnum = h; + var v = new p.Map; + + function b(e) { + return h(e, p.SyntaxKind, !1) + } + + function x(e) { + return h(e, p.NodeFlags, !0) + } + + function D(e) { + return h(e, p.ModifierFlags, !0) + } + + function S(e) { + return h(e, p.TransformFlags, !0) + } + + function T(e) { + return h(e, p.EmitFlags, !0) + } + + function C(e) { + return h(e, p.SymbolFlags, !0) + } + + function E(e) { + return h(e, p.TypeFlags, !0) + } + + function k(e) { + return h(e, p.SignatureFlags, !0) + } + + function N(e) { + return h(e, p.ObjectFlags, !0) + } + + function A(e) { + return h(e, p.FlowFlags, !0) + } + f.formatSyntaxKind = b, f.formatSnippetKind = function(e) { + return h(e, p.SnippetKind, !1) + }, f.formatNodeFlags = x, f.formatModifierFlags = D, f.formatTransformFlags = S, f.formatEmitFlags = T, f.formatSymbolFlags = C, f.formatTypeFlags = E, f.formatSignatureFlags = k, f.formatObjectFlags = N, f.formatFlowFlags = A, f.formatRelationComparisonResult = function(e) { + return h(e, p.RelationComparisonResult, !0) + }, f.formatCheckMode = function(e) { + return h(e, p.CheckMode, !0) + }, f.formatSignatureCheckMode = function(e) { + return h(e, p.SignatureCheckMode, !0) + }; + var F, P, w, I = !(f.formatTypeFacts = function(e) { + return h(e, p.TypeFacts, !0) + }); + + function O(e) { + return function() { + if (j(), F) return F; + throw new Error("Debugging helpers could not be loaded.") + }().formatControlFlowGraph(e) + } + + function M(e) { + "__debugFlowFlags" in e || Object.defineProperties(e, { + __tsDebuggerDisplay: { + value: function() { + var e = 2 & this.flags ? "FlowStart" : 4 & this.flags ? "FlowBranchLabel" : 8 & this.flags ? "FlowLoopLabel" : 16 & this.flags ? "FlowAssignment" : 32 & this.flags ? "FlowTrueCondition" : 64 & this.flags ? "FlowFalseCondition" : 128 & this.flags ? "FlowSwitchClause" : 256 & this.flags ? "FlowArrayMutation" : 512 & this.flags ? "FlowCall" : 1024 & this.flags ? "FlowReduceLabel" : 1 & this.flags ? "FlowUnreachable" : "UnknownFlow", + t = -2048 & this.flags; + return "".concat(e).concat(t ? " (".concat(A(t), ")") : "") + } + }, + __debugFlowFlags: { + get: function() { + return h(this.flags, p.FlowFlags, !0) + } + }, + __debugToString: { + value: function() { + return O(this) + } + } + }) + } + + function B(e) { + "__tsDebuggerDisplay" in e || Object.defineProperties(e, { + __tsDebuggerDisplay: { + value: function(e) { + return e = String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/, "]"), "NodeArray ".concat(e) + } + } + }) + } + + function j() { + if (!I) { + var r, a; + Object.defineProperties(p.objectAllocator.getSymbolConstructor().prototype, { + __tsDebuggerDisplay: { + value: function() { + var e = 33554432 & this.flags ? "TransientSymbol" : "Symbol", + t = -33554433 & this.flags; + return "".concat(e, " '").concat(p.symbolName(this), "'").concat(t ? " (".concat(C(t), ")") : "") + } + }, + __debugFlags: { + get: function() { + return C(this.flags) + } + } + }), Object.defineProperties(p.objectAllocator.getTypeConstructor().prototype, { + __tsDebuggerDisplay: { + value: function() { + var e = 98304 & this.flags ? "NullableType" : 384 & this.flags ? "LiteralType ".concat(JSON.stringify(this.value)) : 2048 & this.flags ? "LiteralType ".concat(this.value.negative ? "-" : "").concat(this.value.base10Value, "n") : 8192 & this.flags ? "UniqueESSymbolType" : 32 & this.flags ? "EnumType" : 67359327 & this.flags ? "IntrinsicType ".concat(this.intrinsicName) : 1048576 & this.flags ? "UnionType" : 2097152 & this.flags ? "IntersectionType" : 4194304 & this.flags ? "IndexType" : 8388608 & this.flags ? "IndexedAccessType" : 16777216 & this.flags ? "ConditionalType" : 33554432 & this.flags ? "SubstitutionType" : 262144 & this.flags ? "TypeParameter" : 524288 & this.flags ? 3 & this.objectFlags ? "InterfaceType" : 4 & this.objectFlags ? "TypeReference" : 8 & this.objectFlags ? "TupleType" : 16 & this.objectFlags ? "AnonymousType" : 32 & this.objectFlags ? "MappedType" : 1024 & this.objectFlags ? "ReverseMappedType" : 256 & this.objectFlags ? "EvolvingArrayType" : "ObjectType" : "Type", + t = 524288 & this.flags ? -1344 & this.objectFlags : 0; + return "".concat(e).concat(this.symbol ? " '".concat(p.symbolName(this.symbol), "'") : "").concat(t ? " (".concat(N(t), ")") : "") + } + }, + __debugFlags: { + get: function() { + return E(this.flags) + } + }, + __debugObjectFlags: { + get: function() { + return 524288 & this.flags ? N(this.objectFlags) : "" + } + }, + __debugTypeToString: { + value: function() { + var e = r = void 0 === r && "function" == typeof WeakMap ? new WeakMap : r, + t = null == e ? void 0 : e.get(this); + return void 0 === t && (t = this.checker.typeToString(this), null != e) && e.set(this, t), t + } + } + }), Object.defineProperties(p.objectAllocator.getSignatureConstructor().prototype, { + __debugFlags: { + get: function() { + return k(this.flags) + } + }, + __debugSignatureToString: { + value: function() { + var e; + return null == (e = this.checker) ? void 0 : e.signatureToString(this) + } + } + }); + for (var e, t, n = 0, i = [p.objectAllocator.getNodeConstructor(), p.objectAllocator.getIdentifierConstructor(), p.objectAllocator.getTokenConstructor(), p.objectAllocator.getSourceFileConstructor()]; n < i.length; n++) { + var o = i[n]; + p.hasProperty(o.prototype, "__debugKind") || Object.defineProperties(o.prototype, { + __tsDebuggerDisplay: { + value: function() { + var e = p.isGeneratedIdentifier(this) ? "GeneratedIdentifier" : p.isIdentifier(this) ? "Identifier '".concat(p.idText(this), "'") : p.isPrivateIdentifier(this) ? "PrivateIdentifier '".concat(p.idText(this), "'") : p.isStringLiteral(this) ? "StringLiteral ".concat(JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...")) : p.isNumericLiteral(this) ? "NumericLiteral ".concat(this.text) : p.isBigIntLiteral(this) ? "BigIntLiteral ".concat(this.text, "n") : p.isTypeParameterDeclaration(this) ? "TypeParameterDeclaration" : p.isParameter(this) ? "ParameterDeclaration" : p.isConstructorDeclaration(this) ? "ConstructorDeclaration" : p.isGetAccessorDeclaration(this) ? "GetAccessorDeclaration" : p.isSetAccessorDeclaration(this) ? "SetAccessorDeclaration" : p.isCallSignatureDeclaration(this) ? "CallSignatureDeclaration" : p.isConstructSignatureDeclaration(this) ? "ConstructSignatureDeclaration" : p.isIndexSignatureDeclaration(this) ? "IndexSignatureDeclaration" : p.isTypePredicateNode(this) ? "TypePredicateNode" : p.isTypeReferenceNode(this) ? "TypeReferenceNode" : p.isFunctionTypeNode(this) ? "FunctionTypeNode" : p.isConstructorTypeNode(this) ? "ConstructorTypeNode" : p.isTypeQueryNode(this) ? "TypeQueryNode" : p.isTypeLiteralNode(this) ? "TypeLiteralNode" : p.isArrayTypeNode(this) ? "ArrayTypeNode" : p.isTupleTypeNode(this) ? "TupleTypeNode" : p.isOptionalTypeNode(this) ? "OptionalTypeNode" : p.isRestTypeNode(this) ? "RestTypeNode" : p.isUnionTypeNode(this) ? "UnionTypeNode" : p.isIntersectionTypeNode(this) ? "IntersectionTypeNode" : p.isConditionalTypeNode(this) ? "ConditionalTypeNode" : p.isInferTypeNode(this) ? "InferTypeNode" : p.isParenthesizedTypeNode(this) ? "ParenthesizedTypeNode" : p.isThisTypeNode(this) ? "ThisTypeNode" : p.isTypeOperatorNode(this) ? "TypeOperatorNode" : p.isIndexedAccessTypeNode(this) ? "IndexedAccessTypeNode" : p.isMappedTypeNode(this) ? "MappedTypeNode" : p.isLiteralTypeNode(this) ? "LiteralTypeNode" : p.isNamedTupleMember(this) ? "NamedTupleMember" : p.isImportTypeNode(this) ? "ImportTypeNode" : b(this.kind); + return "".concat(e).concat(this.flags ? " (".concat(x(this.flags), ")") : "") + } + }, + __debugKind: { + get: function() { + return b(this.kind) + } + }, + __debugNodeFlags: { + get: function() { + return x(this.flags) + } + }, + __debugModifierFlags: { + get: function() { + return D(p.getEffectiveModifierFlagsNoCache(this)) + } + }, + __debugTransformFlags: { + get: function() { + return S(this.transformFlags) + } + }, + __debugIsParseTreeNode: { + get: function() { + return p.isParseTreeNode(this) + } + }, + __debugEmitFlags: { + get: function() { + return T(p.getEmitFlags(this)) + } + }, + __debugGetText: { + value: function(e) { + var t, r, n, i; + return p.nodeIsSynthesized(this) ? "" : (void 0 === (i = null == (t = a = void 0 === a && "function" == typeof WeakMap ? new WeakMap : a) ? void 0 : t.get(this)) && (i = (n = (r = p.getParseTreeNode(this)) && p.getSourceFileOfNode(r)) ? p.getSourceTextOfNodeFromSourceFile(n, r, e) : "", null != t) && t.set(this, i), i) + } + } + }) + } + try { + p.sys && p.sys.require && (e = p.getDirectoryPath(p.resolvePath(p.sys.getExecutingFilePath())), (t = p.sys.require(e, "./compiler-debug")).error || (t.module.init(p), F = t.module)) + } catch (e) {} + I = !0 + } + } + + function J(e, t, r, n, i) { + var a = t ? "DeprecationError: " : "DeprecationWarning: "; + return (a += "'".concat(e, "' ")) + (n ? "has been deprecated since v".concat(n) : "is deprecated") + (t ? " and can no longer be used." : r ? " and will no longer be usable after v".concat(r, ".") : ".") + (i ? " ".concat(p.formatStringFromArgs(i, [e], 0)) : "") + } + + function z(e, t) { + var r, n, i, a, o, s, c = "string" == typeof(t = void 0 === t ? {} : t).typeScriptVersion ? new p.Version(t.typeScriptVersion) : null != (c = t.typeScriptVersion) ? c : g(), + l = "string" == typeof t.errorAfter ? new p.Version(t.errorAfter) : t.errorAfter, + u = "string" == typeof t.warnAfter ? new p.Version(t.warnAfter) : t.warnAfter, + _ = "string" == typeof t.since ? new p.Version(t.since) : null != (_ = t.since) ? _ : u, + d = t.error || l && c.compareTo(l) <= 0, + c = !u || 0 <= c.compareTo(u); + return d ? (u = t.message, s = J(e, !0, l, _, u), function() { + throw new TypeError(s) + }) : c ? (r = e, n = l, i = _, a = t.message, o = !1, function() { + f.enableDeprecationWarnings && !o && (m.warn(J(r, !1, n, i, a)), o = !0) + }) : p.noop + } + f.printControlFlowGraph = function(e) { + return console.log(O(e)) + }, f.formatControlFlowGraph = O, f.attachFlowNodeDebugInfo = function(e) { + I && ("function" == typeof Object.setPrototypeOf ? (P || M(P = Object.create(Object.prototype)), Object.setPrototypeOf(e, P)) : M(e)) + }, f.attachNodeArrayDebugInfo = function(e) { + I && ("function" == typeof Object.setPrototypeOf ? (w || B(w = Object.create(Array.prototype)), Object.setPrototypeOf(e, w)) : B(e)) + }, f.enableDebugInfo = j, f.createDeprecation = z, f.deprecate = function(e, t) { + var r, n, i = z(null != (i = null == t ? void 0 : t.name) ? i : y(e), t); + return r = i, n = e, + function() { + return r(), n.apply(this, arguments) + } + }, f.formatVariance = function(e) { + var t = 0 == (t = 7 & e) ? "in out" : 3 == t ? "[bivariant]" : 2 == t ? "in" : 1 == t ? "out" : 4 == t ? "[independent]" : ""; + return 8 & e ? t += " (unmeasurable)" : 16 & e && (t += " (unreliable)"), t + }, K.prototype.__debugToString = function() { + var e; + switch (this.kind) { + case 3: + return (null == (e = this.debugInfo) ? void 0 : e.call(this)) || "(function mapper)"; + case 0: + return "".concat(this.source.__debugTypeToString(), " -> ").concat(this.target.__debugTypeToString()); + case 1: + return p.zipWith(this.sources, this.targets || p.map(this.sources, function() { + return "any" + }), function(e, t) { + return "".concat(e.__debugTypeToString(), " -> ").concat("string" == typeof t ? t : t.__debugTypeToString()) + }).join(", "); + case 2: + return p.zipWith(this.sources, this.targets, function(e, t) { + return "".concat(e.__debugTypeToString(), " -> ").concat(t().__debugTypeToString()) + }).join(", "); + case 5: + case 4: + return "m1: ".concat(this.mapper1.__debugToString().split("\n").join("\n "), "\nm2: ").concat(this.mapper2.__debugToString().split("\n").join("\n ")); + default: + return d(this) + } + }; + var U = K; + + function K() {} + f.DebugTypeMapper = U, f.attachDebugPrototypeIfDebug = function(e) { + return f.isDebugging ? Object.setPrototypeOf(e, U.prototype) : e + } + }(ts = ts || {}), ! function(u) { + var a = /^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i, + o = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i, + s = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i, + c = /^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i, + l = /^[a-z0-9-]+$/i, + _ = /^(0|[1-9]\d*)$/, + d = (p.tryParse = function(e) { + e = f(e); + if (e) return new p(e.major, e.minor, e.patch, e.prerelease, e.build) + }, p.prototype.compareTo = function(e) { + return this === e ? 0 : void 0 === e ? 1 : u.compareValues(this.major, e.major) || u.compareValues(this.minor, e.minor) || u.compareValues(this.patch, e.patch) || function(e, t) { + if (e === t) return 0; + if (0 === e.length) return 0 === t.length ? 0 : 1; + if (0 === t.length) return -1; + for (var r = Math.min(e.length, t.length), n = 0; n < r; n++) { + var i = e[n], + a = t[n]; + if (i !== a) { + var o, s = _.test(i), + c = _.test(a); + if (s || c) { + if (s !== c) return s ? -1 : 1; + if (o = u.compareValues(+i, +a)) return o + } else if (o = u.compareStringsCaseSensitive(i, a)) return o + } + } + return u.compareValues(e.length, t.length) + }(this.prerelease, e.prerelease) + }, p.prototype.increment = function(e) { + switch (e) { + case "major": + return new p(this.major + 1, 0, 0); + case "minor": + return new p(this.major, this.minor + 1, 0); + case "patch": + return new p(this.major, this.minor, this.patch + 1); + default: + return u.Debug.assertNever(e) + } + }, p.prototype.with = function(e) { + var t = e.major, + t = void 0 === t ? this.major : t, + r = e.minor, + r = void 0 === r ? this.minor : r, + n = e.patch, + n = void 0 === n ? this.patch : n, + i = e.prerelease, + i = void 0 === i ? this.prerelease : i, + e = e.build; + return new p(t, r, n, i, void 0 === e ? this.build : e) + }, p.prototype.toString = function() { + var e = "".concat(this.major, ".").concat(this.minor, ".").concat(this.patch); + return u.some(this.prerelease) && (e += "-".concat(this.prerelease.join("."))), u.some(this.build) && (e += "+".concat(this.build.join("."))), e + }, p.zero = new p(0, 0, 0, ["0"]), p); + + function p(e, t, r, n, i) { + void 0 === t && (t = 0), void 0 === r && (r = 0), void 0 === n && (n = ""), void 0 === i && (i = ""), "string" == typeof e && (e = (a = u.Debug.checkDefined(f(e), "Invalid version")).major, t = a.minor, r = a.patch, n = a.prerelease, i = a.build), u.Debug.assert(0 <= e, "Invalid argument: major"), u.Debug.assert(0 <= t, "Invalid argument: minor"), u.Debug.assert(0 <= r, "Invalid argument: patch"); + var a = n ? u.isArray(n) ? n : n.split(".") : u.emptyArray, + n = i ? u.isArray(i) ? i : i.split(".") : u.emptyArray; + u.Debug.assert(u.every(a, function(e) { + return s.test(e) + }), "Invalid argument: prerelease"), u.Debug.assert(u.every(n, function(e) { + return l.test(e) + }), "Invalid argument: build"), this.major = e, this.minor = t, this.patch = r, this.prerelease = a, this.build = n + } + + function f(e) { + e = a.exec(e); + if (e) { + var t = e[1], + r = e[2], + r = void 0 === r ? "0" : r, + n = e[3], + n = void 0 === n ? "0" : n, + i = e[4], + i = void 0 === i ? "" : i, + e = e[5], + e = void 0 === e ? "" : e; + if ((!i || o.test(i)) && (!e || c.test(e))) return { + major: parseInt(t, 10), + minor: parseInt(r, 10), + patch: parseInt(n, 10), + prerelease: i, + build: e + } + } + } + + function r(e) { + this._alternatives = e ? u.Debug.checkDefined(n(e), "Invalid range spec.") : u.emptyArray + } + u.Version = d, r.tryParse = function(e) { + var t, e = n(e); + if (e) return (t = new r(""))._alternatives = e, t + }, r.prototype.test = function(e) { + var t = e = "string" == typeof e ? new d(e) : e, + e = this._alternatives; + if (0 === e.length) return !0; + for (var r = 0, n = e; r < n.length; r++) { + var i = n[r]; + if (function(e, t) { + for (var r = 0, n = t; r < n.length; r++) { + var i = n[r]; + if (! function(e, t, r) { + var n = e.compareTo(r); + switch (t) { + case "<": + return n < 0; + case "<=": + return n <= 0; + case ">": + return 0 < n; + case ">=": + return 0 <= n; + case "=": + return 0 === n; + default: + return u.Debug.assertNever(t) + } + }(e, i.operator, i.operand)) return + } + return 1 + }(t, i)) return !0 + } + return !1 + }, r.prototype.toString = function() { + return e = this._alternatives, u.map(e, t).join(" || ") || "*"; + var e + }, u.VersionRange = r; + var g = /\|\|/g, + m = /\s+/g, + y = /^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i, + h = /^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i, + v = /^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i; + + function n(e) { + for (var t = [], r = 0, n = u.trimString(e).split(g); r < n.length; r++) + if (a = n[r]) { + var i = [], + a = u.trimString(a), + o = h.exec(a); + if (o) { + if (! function(e, t, r) { + e = b(e); + if (!e) return; + t = b(t); + if (!t) return; + x(e.major) || r.push(D(">=", e.version)); + x(t.major) || r.push(x(t.minor) ? D("<", t.version.increment("major")) : x(t.patch) ? D("<", t.version.increment("minor")) : D("<=", t.version)); + return 1 + }(o[1], o[2], i)) return + } else + for (var s = 0, c = a.split(m); s < c.length; s++) { + var l = c[s], + l = v.exec(u.trimString(l)); + if (!l || ! function(e, t, r) { + t = b(t); + if (!t) return; + var n = t.version, + i = t.major, + a = t.minor, + o = t.patch; + if (x(i)) "<" !== e && ">" !== e || r.push(D("<", d.zero)); + else switch (e) { + case "~": + r.push(D(">=", n)), r.push(D("<", n.increment(x(a) ? "major" : "minor"))); + break; + case "^": + r.push(D(">=", n)), r.push(D("<", n.increment(0 < n.major || x(a) ? "major" : 0 < n.minor || x(o) ? "minor" : "patch"))); + break; + case "<": + case ">=": + r.push(x(a) || x(o) ? D(e, n.with({ + prerelease: "0" + })) : D(e, n)); + break; + case "<=": + case ">": + r.push(x(a) ? D("<=" === e ? "<" : ">=", n.increment("major").with({ + prerelease: "0" + })) : x(o) ? D("<=" === e ? "<" : ">=", n.increment("minor").with({ + prerelease: "0" + })) : D(e, n)); + break; + case "=": + case void 0: + x(a) || x(o) ? (r.push(D(">=", n.with({ + prerelease: "0" + }))), r.push(D("<", n.increment(x(a) ? "major" : "minor").with({ + prerelease: "0" + })))) : r.push(D("=", n)); + break; + default: + return + } + return 1 + }(l[1], l[2], i)) return + } + t.push(i) + } + return t + } + + function b(e) { + var t, r, n, i, e = y.exec(e); + if (e) return t = e[1], r = void 0 === (r = e[2]) ? "*" : r, n = void 0 === (n = e[3]) ? "*" : n, i = e[4], e = e[5], { + version: new d(x(t) ? 0 : parseInt(t, 10), x(t) || x(r) ? 0 : parseInt(r, 10), x(t) || x(r) || x(n) ? 0 : parseInt(n, 10), i, e), + major: t, + minor: r, + patch: n + } + } + + function x(e) { + return "*" === e || "x" === e || "X" === e + } + + function D(e, t) { + return { + operator: e, + operand: t + } + } + + function t(e) { + return u.map(e, i).join(" ") + } + + function i(e) { + return "".concat(e.operator).concat(e.operand) + } + }(ts = ts || {}), ! function(a) { + function o(e, t) { + return "object" == typeof e && "number" == typeof e.timeOrigin && "function" == typeof e.mark && "function" == typeof e.measure && "function" == typeof e.now && "function" == typeof e.clearMarks && "function" == typeof e.clearMeasures && "function" == typeof t + } + var e = function() { + if ("object" == typeof performance && "function" == typeof PerformanceObserver && o(performance, PerformanceObserver)) return { + shouldWriteNativeEvents: !0, + performance: performance, + PerformanceObserver: PerformanceObserver + } + }() || function() { + if ("undefined" != typeof process && process.nextTick && !process.browser && "object" == typeof module && "function" == typeof require) try { + var e, t, r = require("perf_hooks"), + n = r.performance, + i = r.PerformanceObserver; + if (o(n, i)) return e = n, t = new a.Version(process.versions.node), { + shouldWriteNativeEvents: !1, + performance: e = new a.VersionRange("<12.16.3 || 13 <13.13").test(t) ? {get timeOrigin() { + return n.timeOrigin + }, + now: function() { + return n.now() + }, + mark: function(e) { + return n.mark(e) + }, + measure: function(e, t, r) { + void 0 === t && (t = "nodeStart"), void 0 === r && n.mark(r = "__performance.measure-fix__"), n.measure(e, t, r), "__performance.measure-fix__" === r && n.clearMarks("__performance.measure-fix__") + }, + clearMarks: function(e) { + return n.clearMarks(e) + }, + clearMeasures: function(e) { + return n.clearMeasures(e) + } + } : e, + PerformanceObserver: i + } + } catch (e) {} + }(), + t = null == e ? void 0 : e.performance; + a.tryGetNativePerformanceHooks = function() { + return e + }, a.timestamp = t ? function() { + return t.now() + } : Date.now || function() { + return +new Date + } + }(ts = ts || {}), ! function(o) { + var i, r, s, c, l, u, n, _; + + function a(e, t, r) { + var n = 0; + return { + enter: function() { + 1 == ++n && d(t) + }, + exit: function() { + 0 == --n ? (d(r), p(e, t, r)) : n < 0 && o.Debug.fail("enter/exit count does not match.") + } + } + } + + function d(e) { + var t; + c && (t = null != (t = n.get(e)) ? t : 0, n.set(e, t + 1), u.set(e, o.timestamp()), null != s) && s.mark(e) + } + + function p(e, t, r) { + var n, i, a; + c && (n = null != (n = void 0 !== r ? u.get(r) : void 0) ? n : o.timestamp(), i = null != (i = void 0 !== t ? u.get(t) : void 0) ? i : l, a = _.get(e) || 0, _.set(e, a + (n - i)), null != s) && s.measure(e, t, r) + }(i = o.performance || (o.performance = {})).createTimerIf = function(e, t, r, n) { + return e ? a(t, r, n) : i.nullTimer + }, i.createTimer = a, c = !(i.nullTimer = { + enter: o.noop, + exit: o.noop + }), l = o.timestamp(), u = new o.Map, n = new o.Map, _ = new o.Map, i.mark = d, i.measure = p, i.getCount = function(e) { + return n.get(e) || 0 + }, i.getDuration = function(e) { + return _.get(e) || 0 + }, i.forEachMeasure = function(r) { + _.forEach(function(e, t) { + return r(t, e) + }) + }, i.forEachMark = function(r) { + u.forEach(function(e, t) { + return r(t) + }) + }, i.clearMeasures = function(e) { + void 0 !== e ? _.delete(e) : _.clear(), null != s && s.clearMeasures(e) + }, i.clearMarks = function(e) { + void 0 !== e ? (n.delete(e), u.delete(e)) : (n.clear(), u.clear()), null != s && s.clearMarks(e) + }, i.isEnabled = function() { + return c + }, i.enable = function(e) { + var t; + return void 0 === e && (e = o.sys), c || (c = !0, (r = r || o.tryGetNativePerformanceHooks()) && (l = r.performance.timeOrigin, r.shouldWriteNativeEvents || null != (t = null == e ? void 0 : e.cpuProfilingEnabled) && t.call(e) || null != e && e.debugMode) && (s = r.performance)), !0 + }, i.disable = function() { + c && (u.clear(), n.clear(), _.clear(), s = void 0, c = !1) + } + }(ts = ts || {}), ! function(e) { + var t, r = { + logEvent: e.noop, + logErrEvent: e.noop, + logPerfEvent: e.noop, + logInfoEvent: e.noop, + logStartCommand: e.noop, + logStopCommand: e.noop, + logStartUpdateProgram: e.noop, + logStopUpdateProgram: e.noop, + logStartUpdateGraph: e.noop, + logStopUpdateGraph: e.noop, + logStartResolveModule: e.noop, + logStopResolveModule: e.noop, + logStartParseSourceFile: e.noop, + logStopParseSourceFile: e.noop, + logStartReadFile: e.noop, + logStopReadFile: e.noop, + logStartBindFile: e.noop, + logStopBindFile: e.noop, + logStartScheduledOperation: e.noop, + logStopScheduledOperation: e.noop + }; + try { + var n = null != (t = process.env.TS_ETW_MODULE_PATH) ? t : "./node_modules/@microsoft/typescript-etw", + i = require(n) + } catch (e) { + i = void 0 + } + e.perfLogger = i && i.logEvent ? i : r + }(ts = ts || {}), ! function(b) { + var e, i, x, D, a, t, o, S, T, C, s, c; + + function r(e, t, r) { + var e = s[e], + n = e.phase, + i = e.name, + a = e.args, + o = e.time; + e.separateBeginAndEnd ? (b.Debug.assert(!r, "`results` are not supported for events with `separateBeginAndEnd`"), l("E", n, i, a, void 0, t)) : c - o % c <= t - o && l("X", n, i, __assign(__assign({}, a), { + results: r + }), '"dur":'.concat(t - o), o) + } + + function l(e, t, r, n, i, a) { + void 0 === a && (a = 1e3 * b.timestamp()), "server" === D && "checkTypes" === t || (b.performance.mark("beginTracing"), x.writeSync(S, ',\n{"pid":1,"tid":1,"ph":"'.concat(e, '","cat":"').concat(t, '","ts":').concat(a, ',"name":"').concat(r, '"')), i && x.writeSync(S, ",".concat(i)), n && x.writeSync(S, ',"args":'.concat(JSON.stringify(n))), x.writeSync(S, "}"), b.performance.mark("endTracing"), b.performance.measure("Tracing", "beginTracing", "endTracing")) + } + + function E(e) { + var t = b.getSourceFileOfNode(e); + return t ? { + path: t.path, + start: r(b.getLineAndCharacterOfPosition(t, e.pos)), + end: r(b.getLineAndCharacterOfPosition(t, e.end)) + } : void 0; + + function r(e) { + return { + line: e.line + 1, + character: e.character + 1 + } + } + } + i = e = e || {}, S = o = 0, T = [], C = [], i.startTracing = function(e, t, r) { + if (b.Debug.assert(!b.tracing, "Tracing already started"), void 0 === x) try { + x = require("fs") + } catch (e) { + throw new Error("tracing requires having fs\n(original error: ".concat(e.message || e, ")")) + } + D = e, void(T.length = 0) === a && (a = b.combinePaths(t, "legend.json")), x.existsSync(t) || x.mkdirSync(t, { + recursive: !0 + }); + var e = "build" === D ? ".".concat(process.pid, "-").concat(++o) : "server" === D ? ".".concat(process.pid) : "", + n = b.combinePaths(t, "trace".concat(e, ".json")), + t = b.combinePaths(t, "types".concat(e, ".json")), + e = (C.push({ + configFilePath: r, + tracePath: n, + typesPath: t + }), S = x.openSync(n, "w"), b.tracing = i, { + cat: "__metadata", + ph: "M", + ts: 1e3 * b.timestamp(), + pid: 1, + tid: 1 + }); + x.writeSync(S, "[\n" + [__assign({ + name: "process_name", + args: { + name: "tsc" + } + }, e), __assign({ + name: "thread_name", + args: { + name: "Main" + } + }, e), __assign(__assign({ + name: "TracingStartedInBrowser" + }, e), { + cat: "disabled-by-default-devtools.timeline" + })].map(function(e) { + return JSON.stringify(e) + }).join(",\n")) + }, i.stopTracing = function() { + if (b.Debug.assert(b.tracing, "Tracing is not in progress"), b.Debug.assert(!!T.length == ("server" !== D)), x.writeSync(S, "\n]\n"), x.closeSync(S), b.tracing = void 0, T.length) { + var e = T; + b.performance.mark("beginDumpTypes"); + for (var t, r = C[C.length - 1].typesPath, n = x.openSync(r, "w"), i = new b.Map, a = (x.writeSync(n, "["), e.length), o = 0; o < a; o++) { + var s = e[o], + c = s.objectFlags, + l = null != (l = s.aliasSymbol) ? l : s.symbol, + u = void 0; + if (16 & c | 2944 & s.flags) try { + u = null == (t = s.checker) ? void 0 : t.typeToString(s) + } catch (e) { + u = void 0 + } + var _, d = {}, + p = (8388608 & s.flags && (d = { + indexedAccessObjectType: null == (p = s.objectType) ? void 0 : p.id, + indexedAccessIndexType: null == (p = s.indexType) ? void 0 : p.id + }), {}), + f = (4 & c && (p = { + instantiatedType: null == (f = (_ = s).target) ? void 0 : f.id, + typeArguments: null == (f = _.resolvedTypeArguments) ? void 0 : f.map(function(e) { + return e.id + }), + referenceLocation: E(_.node) + }), {}), + g = (16777216 & s.flags && (f = { + conditionalCheckType: null == (_ = s.checkType) ? void 0 : _.id, + conditionalExtendsType: null == (g = s.extendsType) ? void 0 : g.id, + conditionalTrueType: null != (g = null == (g = s.resolvedTrueType) ? void 0 : g.id) ? g : -1, + conditionalFalseType: null != (g = null == (g = s.resolvedFalseType) ? void 0 : g.id) ? g : -1 + }), {}), + m = (33554432 & s.flags && (g = { + substitutionBaseType: null == (m = s.baseType) ? void 0 : m.id, + constraintType: null == (m = s.constraint) ? void 0 : m.id + }), {}), + y = (1024 & c && (m = { + reverseMappedSourceType: null == (y = s.source) ? void 0 : y.id, + reverseMappedMappedType: null == (y = s.mappedType) ? void 0 : y.id, + reverseMappedConstraintType: null == (y = s.constraintType) ? void 0 : y.id + }), {}), + h = (256 & c && (y = { + evolvingArrayElementType: s.elementType.id, + evolvingArrayFinalType: null == (h = s.finalArrayType) ? void 0 : h.id + }), void 0), + v = s.checker.getRecursionIdentity(s), + v = (!v || (h = i.get(v)) || (h = i.size, i.set(v, h)), __assign(__assign(__assign(__assign(__assign(__assign(__assign({ + id: s.id, + intrinsicName: s.intrinsicName, + symbolName: (null == l ? void 0 : l.escapedName) && b.unescapeLeadingUnderscores(l.escapedName), + recursionId: h, + isTuple: !!(8 & c) || void 0, + unionTypes: !(1048576 & s.flags) || null == (v = s.types) ? void 0 : v.map(function(e) { + return e.id + }), + intersectionTypes: 2097152 & s.flags ? s.types.map(function(e) { + return e.id + }) : void 0, + aliasTypeArguments: null == (c = s.aliasTypeArguments) ? void 0 : c.map(function(e) { + return e.id + }), + keyofType: !(4194304 & s.flags) || null == (v = s.type) ? void 0 : v.id + }, d), p), f), g), m), y), { + destructuringPattern: E(s.pattern), + firstDeclaration: E(null == (c = null == l ? void 0 : l.declarations) ? void 0 : c[0]), + flags: b.Debug.formatTypeFlags(s.flags).split("|"), + display: u + })); + x.writeSync(n, JSON.stringify(v)), o < a - 1 && x.writeSync(n, ",\n") + } + x.writeSync(n, "]\n"), x.closeSync(n), b.performance.mark("endDumpTypes"), b.performance.measure("Dump types", "beginDumpTypes", "endDumpTypes") + } else C[C.length - 1].typesPath = void 0 + }, i.recordType = function(e) { + "server" !== D && T.push(e) + }, (t = i.Phase || (i.Phase = {})).Parse = "parse", t.Program = "program", t.Bind = "bind", t.Check = "check", t.CheckTypes = "checkTypes", t.Emit = "emit", t.Session = "session", i.instant = function(e, t, r) { + l("I", e, t, r, '"s":"g"') + }, s = [], i.push = function(e, t, r, n) { + (n = void 0 === n ? !1 : n) && l("B", e, t, r), s.push({ + phase: e, + name: t, + args: r, + time: 1e3 * b.timestamp(), + separateBeginAndEnd: n + }) + }, i.pop = function(e) { + b.Debug.assert(0 < s.length), r(s.length - 1, 1e3 * b.timestamp(), e), s.length-- + }, i.popAll = function() { + for (var e = 1e3 * b.timestamp(), t = s.length - 1; 0 <= t; t--) r(t, e); + s.length = 0 + }, c = 1e4, i.dumpLegend = function() { + a && x.writeFileSync(a, JSON.stringify(C)) + }, b.startTracing = e.startTracing, b.dumpTracingLegend = e.dumpLegend + }(ts = ts || {}), ! function(e) { + function t() {} + var r, n; + (n = e.SyntaxKind || (e.SyntaxKind = {}))[n.Unknown = 0] = "Unknown", n[n.EndOfFileToken = 1] = "EndOfFileToken", n[n.SingleLineCommentTrivia = 2] = "SingleLineCommentTrivia", n[n.MultiLineCommentTrivia = 3] = "MultiLineCommentTrivia", n[n.NewLineTrivia = 4] = "NewLineTrivia", n[n.WhitespaceTrivia = 5] = "WhitespaceTrivia", n[n.ShebangTrivia = 6] = "ShebangTrivia", n[n.ConflictMarkerTrivia = 7] = "ConflictMarkerTrivia", n[n.NumericLiteral = 8] = "NumericLiteral", n[n.BigIntLiteral = 9] = "BigIntLiteral", n[n.StringLiteral = 10] = "StringLiteral", n[n.JsxText = 11] = "JsxText", n[n.JsxTextAllWhiteSpaces = 12] = "JsxTextAllWhiteSpaces", n[n.RegularExpressionLiteral = 13] = "RegularExpressionLiteral", n[n.NoSubstitutionTemplateLiteral = 14] = "NoSubstitutionTemplateLiteral", n[n.TemplateHead = 15] = "TemplateHead", n[n.TemplateMiddle = 16] = "TemplateMiddle", n[n.TemplateTail = 17] = "TemplateTail", n[n.OpenBraceToken = 18] = "OpenBraceToken", n[n.CloseBraceToken = 19] = "CloseBraceToken", n[n.OpenParenToken = 20] = "OpenParenToken", n[n.CloseParenToken = 21] = "CloseParenToken", n[n.OpenBracketToken = 22] = "OpenBracketToken", n[n.CloseBracketToken = 23] = "CloseBracketToken", n[n.DotToken = 24] = "DotToken", n[n.DotDotDotToken = 25] = "DotDotDotToken", n[n.SemicolonToken = 26] = "SemicolonToken", n[n.CommaToken = 27] = "CommaToken", n[n.QuestionDotToken = 28] = "QuestionDotToken", n[n.LessThanToken = 29] = "LessThanToken", n[n.LessThanSlashToken = 30] = "LessThanSlashToken", n[n.GreaterThanToken = 31] = "GreaterThanToken", n[n.LessThanEqualsToken = 32] = "LessThanEqualsToken", n[n.GreaterThanEqualsToken = 33] = "GreaterThanEqualsToken", n[n.EqualsEqualsToken = 34] = "EqualsEqualsToken", n[n.ExclamationEqualsToken = 35] = "ExclamationEqualsToken", n[n.EqualsEqualsEqualsToken = 36] = "EqualsEqualsEqualsToken", n[n.ExclamationEqualsEqualsToken = 37] = "ExclamationEqualsEqualsToken", n[n.EqualsGreaterThanToken = 38] = "EqualsGreaterThanToken", n[n.PlusToken = 39] = "PlusToken", n[n.MinusToken = 40] = "MinusToken", n[n.AsteriskToken = 41] = "AsteriskToken", n[n.AsteriskAsteriskToken = 42] = "AsteriskAsteriskToken", n[n.SlashToken = 43] = "SlashToken", n[n.PercentToken = 44] = "PercentToken", n[n.PlusPlusToken = 45] = "PlusPlusToken", n[n.MinusMinusToken = 46] = "MinusMinusToken", n[n.LessThanLessThanToken = 47] = "LessThanLessThanToken", n[n.GreaterThanGreaterThanToken = 48] = "GreaterThanGreaterThanToken", n[n.GreaterThanGreaterThanGreaterThanToken = 49] = "GreaterThanGreaterThanGreaterThanToken", n[n.AmpersandToken = 50] = "AmpersandToken", n[n.BarToken = 51] = "BarToken", n[n.CaretToken = 52] = "CaretToken", n[n.ExclamationToken = 53] = "ExclamationToken", n[n.TildeToken = 54] = "TildeToken", n[n.AmpersandAmpersandToken = 55] = "AmpersandAmpersandToken", n[n.BarBarToken = 56] = "BarBarToken", n[n.QuestionToken = 57] = "QuestionToken", n[n.ColonToken = 58] = "ColonToken", n[n.AtToken = 59] = "AtToken", n[n.QuestionQuestionToken = 60] = "QuestionQuestionToken", n[n.BacktickToken = 61] = "BacktickToken", n[n.HashToken = 62] = "HashToken", n[n.EqualsToken = 63] = "EqualsToken", n[n.PlusEqualsToken = 64] = "PlusEqualsToken", n[n.MinusEqualsToken = 65] = "MinusEqualsToken", n[n.AsteriskEqualsToken = 66] = "AsteriskEqualsToken", n[n.AsteriskAsteriskEqualsToken = 67] = "AsteriskAsteriskEqualsToken", n[n.SlashEqualsToken = 68] = "SlashEqualsToken", n[n.PercentEqualsToken = 69] = "PercentEqualsToken", n[n.LessThanLessThanEqualsToken = 70] = "LessThanLessThanEqualsToken", n[n.GreaterThanGreaterThanEqualsToken = 71] = "GreaterThanGreaterThanEqualsToken", n[n.GreaterThanGreaterThanGreaterThanEqualsToken = 72] = "GreaterThanGreaterThanGreaterThanEqualsToken", n[n.AmpersandEqualsToken = 73] = "AmpersandEqualsToken", n[n.BarEqualsToken = 74] = "BarEqualsToken", n[n.BarBarEqualsToken = 75] = "BarBarEqualsToken", n[n.AmpersandAmpersandEqualsToken = 76] = "AmpersandAmpersandEqualsToken", n[n.QuestionQuestionEqualsToken = 77] = "QuestionQuestionEqualsToken", n[n.CaretEqualsToken = 78] = "CaretEqualsToken", n[n.Identifier = 79] = "Identifier", n[n.PrivateIdentifier = 80] = "PrivateIdentifier", n[n.BreakKeyword = 81] = "BreakKeyword", n[n.CaseKeyword = 82] = "CaseKeyword", n[n.CatchKeyword = 83] = "CatchKeyword", n[n.ClassKeyword = 84] = "ClassKeyword", n[n.ConstKeyword = 85] = "ConstKeyword", n[n.ContinueKeyword = 86] = "ContinueKeyword", n[n.DebuggerKeyword = 87] = "DebuggerKeyword", n[n.DefaultKeyword = 88] = "DefaultKeyword", n[n.DeleteKeyword = 89] = "DeleteKeyword", n[n.DoKeyword = 90] = "DoKeyword", n[n.ElseKeyword = 91] = "ElseKeyword", n[n.EnumKeyword = 92] = "EnumKeyword", n[n.ExportKeyword = 93] = "ExportKeyword", n[n.ExtendsKeyword = 94] = "ExtendsKeyword", n[n.FalseKeyword = 95] = "FalseKeyword", n[n.FinallyKeyword = 96] = "FinallyKeyword", n[n.ForKeyword = 97] = "ForKeyword", n[n.FunctionKeyword = 98] = "FunctionKeyword", n[n.IfKeyword = 99] = "IfKeyword", n[n.ImportKeyword = 100] = "ImportKeyword", n[n.InKeyword = 101] = "InKeyword", n[n.InstanceOfKeyword = 102] = "InstanceOfKeyword", n[n.NewKeyword = 103] = "NewKeyword", n[n.NullKeyword = 104] = "NullKeyword", n[n.ReturnKeyword = 105] = "ReturnKeyword", n[n.SuperKeyword = 106] = "SuperKeyword", n[n.SwitchKeyword = 107] = "SwitchKeyword", n[n.ThisKeyword = 108] = "ThisKeyword", n[n.ThrowKeyword = 109] = "ThrowKeyword", n[n.TrueKeyword = 110] = "TrueKeyword", n[n.TryKeyword = 111] = "TryKeyword", n[n.TypeOfKeyword = 112] = "TypeOfKeyword", n[n.VarKeyword = 113] = "VarKeyword", n[n.VoidKeyword = 114] = "VoidKeyword", n[n.WhileKeyword = 115] = "WhileKeyword", n[n.WithKeyword = 116] = "WithKeyword", n[n.ImplementsKeyword = 117] = "ImplementsKeyword", n[n.InterfaceKeyword = 118] = "InterfaceKeyword", n[n.LetKeyword = 119] = "LetKeyword", n[n.PackageKeyword = 120] = "PackageKeyword", n[n.PrivateKeyword = 121] = "PrivateKeyword", n[n.ProtectedKeyword = 122] = "ProtectedKeyword", n[n.PublicKeyword = 123] = "PublicKeyword", n[n.StaticKeyword = 124] = "StaticKeyword", n[n.YieldKeyword = 125] = "YieldKeyword", n[n.AbstractKeyword = 126] = "AbstractKeyword", n[n.AccessorKeyword = 127] = "AccessorKeyword", n[n.AsKeyword = 128] = "AsKeyword", n[n.AssertsKeyword = 129] = "AssertsKeyword", n[n.AssertKeyword = 130] = "AssertKeyword", n[n.AnyKeyword = 131] = "AnyKeyword", n[n.AsyncKeyword = 132] = "AsyncKeyword", n[n.AwaitKeyword = 133] = "AwaitKeyword", n[n.BooleanKeyword = 134] = "BooleanKeyword", n[n.ConstructorKeyword = 135] = "ConstructorKeyword", n[n.DeclareKeyword = 136] = "DeclareKeyword", n[n.GetKeyword = 137] = "GetKeyword", n[n.InferKeyword = 138] = "InferKeyword", n[n.IntrinsicKeyword = 139] = "IntrinsicKeyword", n[n.IsKeyword = 140] = "IsKeyword", n[n.KeyOfKeyword = 141] = "KeyOfKeyword", n[n.ModuleKeyword = 142] = "ModuleKeyword", n[n.NamespaceKeyword = 143] = "NamespaceKeyword", n[n.NeverKeyword = 144] = "NeverKeyword", n[n.OutKeyword = 145] = "OutKeyword", n[n.ReadonlyKeyword = 146] = "ReadonlyKeyword", n[n.RequireKeyword = 147] = "RequireKeyword", n[n.NumberKeyword = 148] = "NumberKeyword", n[n.ObjectKeyword = 149] = "ObjectKeyword", n[n.SatisfiesKeyword = 150] = "SatisfiesKeyword", n[n.SetKeyword = 151] = "SetKeyword", n[n.StringKeyword = 152] = "StringKeyword", n[n.SymbolKeyword = 153] = "SymbolKeyword", n[n.TypeKeyword = 154] = "TypeKeyword", n[n.UndefinedKeyword = 155] = "UndefinedKeyword", n[n.UniqueKeyword = 156] = "UniqueKeyword", n[n.UnknownKeyword = 157] = "UnknownKeyword", n[n.FromKeyword = 158] = "FromKeyword", n[n.GlobalKeyword = 159] = "GlobalKeyword", n[n.BigIntKeyword = 160] = "BigIntKeyword", n[n.OverrideKeyword = 161] = "OverrideKeyword", n[n.OfKeyword = 162] = "OfKeyword", n[n.QualifiedName = 163] = "QualifiedName", n[n.ComputedPropertyName = 164] = "ComputedPropertyName", n[n.TypeParameter = 165] = "TypeParameter", n[n.Parameter = 166] = "Parameter", n[n.Decorator = 167] = "Decorator", n[n.PropertySignature = 168] = "PropertySignature", n[n.PropertyDeclaration = 169] = "PropertyDeclaration", n[n.MethodSignature = 170] = "MethodSignature", n[n.MethodDeclaration = 171] = "MethodDeclaration", n[n.ClassStaticBlockDeclaration = 172] = "ClassStaticBlockDeclaration", n[n.Constructor = 173] = "Constructor", n[n.GetAccessor = 174] = "GetAccessor", n[n.SetAccessor = 175] = "SetAccessor", n[n.CallSignature = 176] = "CallSignature", n[n.ConstructSignature = 177] = "ConstructSignature", n[n.IndexSignature = 178] = "IndexSignature", n[n.TypePredicate = 179] = "TypePredicate", n[n.TypeReference = 180] = "TypeReference", n[n.FunctionType = 181] = "FunctionType", n[n.ConstructorType = 182] = "ConstructorType", n[n.TypeQuery = 183] = "TypeQuery", n[n.TypeLiteral = 184] = "TypeLiteral", n[n.ArrayType = 185] = "ArrayType", n[n.TupleType = 186] = "TupleType", n[n.OptionalType = 187] = "OptionalType", n[n.RestType = 188] = "RestType", n[n.UnionType = 189] = "UnionType", n[n.IntersectionType = 190] = "IntersectionType", n[n.ConditionalType = 191] = "ConditionalType", n[n.InferType = 192] = "InferType", n[n.ParenthesizedType = 193] = "ParenthesizedType", n[n.ThisType = 194] = "ThisType", n[n.TypeOperator = 195] = "TypeOperator", n[n.IndexedAccessType = 196] = "IndexedAccessType", n[n.MappedType = 197] = "MappedType", n[n.LiteralType = 198] = "LiteralType", n[n.NamedTupleMember = 199] = "NamedTupleMember", n[n.TemplateLiteralType = 200] = "TemplateLiteralType", n[n.TemplateLiteralTypeSpan = 201] = "TemplateLiteralTypeSpan", n[n.ImportType = 202] = "ImportType", n[n.ObjectBindingPattern = 203] = "ObjectBindingPattern", n[n.ArrayBindingPattern = 204] = "ArrayBindingPattern", n[n.BindingElement = 205] = "BindingElement", n[n.ArrayLiteralExpression = 206] = "ArrayLiteralExpression", n[n.ObjectLiteralExpression = 207] = "ObjectLiteralExpression", n[n.PropertyAccessExpression = 208] = "PropertyAccessExpression", n[n.ElementAccessExpression = 209] = "ElementAccessExpression", n[n.CallExpression = 210] = "CallExpression", n[n.NewExpression = 211] = "NewExpression", n[n.TaggedTemplateExpression = 212] = "TaggedTemplateExpression", n[n.TypeAssertionExpression = 213] = "TypeAssertionExpression", n[n.ParenthesizedExpression = 214] = "ParenthesizedExpression", n[n.FunctionExpression = 215] = "FunctionExpression", n[n.ArrowFunction = 216] = "ArrowFunction", n[n.DeleteExpression = 217] = "DeleteExpression", n[n.TypeOfExpression = 218] = "TypeOfExpression", n[n.VoidExpression = 219] = "VoidExpression", n[n.AwaitExpression = 220] = "AwaitExpression", n[n.PrefixUnaryExpression = 221] = "PrefixUnaryExpression", n[n.PostfixUnaryExpression = 222] = "PostfixUnaryExpression", n[n.BinaryExpression = 223] = "BinaryExpression", n[n.ConditionalExpression = 224] = "ConditionalExpression", n[n.TemplateExpression = 225] = "TemplateExpression", n[n.YieldExpression = 226] = "YieldExpression", n[n.SpreadElement = 227] = "SpreadElement", n[n.ClassExpression = 228] = "ClassExpression", n[n.OmittedExpression = 229] = "OmittedExpression", n[n.ExpressionWithTypeArguments = 230] = "ExpressionWithTypeArguments", n[n.AsExpression = 231] = "AsExpression", n[n.NonNullExpression = 232] = "NonNullExpression", n[n.MetaProperty = 233] = "MetaProperty", n[n.SyntheticExpression = 234] = "SyntheticExpression", n[n.SatisfiesExpression = 235] = "SatisfiesExpression", n[n.TemplateSpan = 236] = "TemplateSpan", n[n.SemicolonClassElement = 237] = "SemicolonClassElement", n[n.Block = 238] = "Block", n[n.EmptyStatement = 239] = "EmptyStatement", n[n.VariableStatement = 240] = "VariableStatement", n[n.ExpressionStatement = 241] = "ExpressionStatement", n[n.IfStatement = 242] = "IfStatement", n[n.DoStatement = 243] = "DoStatement", n[n.WhileStatement = 244] = "WhileStatement", n[n.ForStatement = 245] = "ForStatement", n[n.ForInStatement = 246] = "ForInStatement", n[n.ForOfStatement = 247] = "ForOfStatement", n[n.ContinueStatement = 248] = "ContinueStatement", n[n.BreakStatement = 249] = "BreakStatement", n[n.ReturnStatement = 250] = "ReturnStatement", n[n.WithStatement = 251] = "WithStatement", n[n.SwitchStatement = 252] = "SwitchStatement", n[n.LabeledStatement = 253] = "LabeledStatement", n[n.ThrowStatement = 254] = "ThrowStatement", n[n.TryStatement = 255] = "TryStatement", n[n.DebuggerStatement = 256] = "DebuggerStatement", n[n.VariableDeclaration = 257] = "VariableDeclaration", n[n.VariableDeclarationList = 258] = "VariableDeclarationList", n[n.FunctionDeclaration = 259] = "FunctionDeclaration", n[n.ClassDeclaration = 260] = "ClassDeclaration", n[n.InterfaceDeclaration = 261] = "InterfaceDeclaration", n[n.TypeAliasDeclaration = 262] = "TypeAliasDeclaration", n[n.EnumDeclaration = 263] = "EnumDeclaration", n[n.ModuleDeclaration = 264] = "ModuleDeclaration", n[n.ModuleBlock = 265] = "ModuleBlock", n[n.CaseBlock = 266] = "CaseBlock", n[n.NamespaceExportDeclaration = 267] = "NamespaceExportDeclaration", n[n.ImportEqualsDeclaration = 268] = "ImportEqualsDeclaration", n[n.ImportDeclaration = 269] = "ImportDeclaration", n[n.ImportClause = 270] = "ImportClause", n[n.NamespaceImport = 271] = "NamespaceImport", n[n.NamedImports = 272] = "NamedImports", n[n.ImportSpecifier = 273] = "ImportSpecifier", n[n.ExportAssignment = 274] = "ExportAssignment", n[n.ExportDeclaration = 275] = "ExportDeclaration", n[n.NamedExports = 276] = "NamedExports", n[n.NamespaceExport = 277] = "NamespaceExport", n[n.ExportSpecifier = 278] = "ExportSpecifier", n[n.MissingDeclaration = 279] = "MissingDeclaration", n[n.ExternalModuleReference = 280] = "ExternalModuleReference", n[n.JsxElement = 281] = "JsxElement", n[n.JsxSelfClosingElement = 282] = "JsxSelfClosingElement", n[n.JsxOpeningElement = 283] = "JsxOpeningElement", n[n.JsxClosingElement = 284] = "JsxClosingElement", n[n.JsxFragment = 285] = "JsxFragment", n[n.JsxOpeningFragment = 286] = "JsxOpeningFragment", n[n.JsxClosingFragment = 287] = "JsxClosingFragment", n[n.JsxAttribute = 288] = "JsxAttribute", n[n.JsxAttributes = 289] = "JsxAttributes", n[n.JsxSpreadAttribute = 290] = "JsxSpreadAttribute", n[n.JsxExpression = 291] = "JsxExpression", n[n.CaseClause = 292] = "CaseClause", n[n.DefaultClause = 293] = "DefaultClause", n[n.HeritageClause = 294] = "HeritageClause", n[n.CatchClause = 295] = "CatchClause", n[n.AssertClause = 296] = "AssertClause", n[n.AssertEntry = 297] = "AssertEntry", n[n.ImportTypeAssertionContainer = 298] = "ImportTypeAssertionContainer", n[n.PropertyAssignment = 299] = "PropertyAssignment", n[n.ShorthandPropertyAssignment = 300] = "ShorthandPropertyAssignment", n[n.SpreadAssignment = 301] = "SpreadAssignment", n[n.EnumMember = 302] = "EnumMember", n[n.UnparsedPrologue = 303] = "UnparsedPrologue", n[n.UnparsedPrepend = 304] = "UnparsedPrepend", n[n.UnparsedText = 305] = "UnparsedText", n[n.UnparsedInternalText = 306] = "UnparsedInternalText", n[n.UnparsedSyntheticReference = 307] = "UnparsedSyntheticReference", n[n.SourceFile = 308] = "SourceFile", n[n.Bundle = 309] = "Bundle", n[n.UnparsedSource = 310] = "UnparsedSource", n[n.InputFiles = 311] = "InputFiles", n[n.JSDocTypeExpression = 312] = "JSDocTypeExpression", n[n.JSDocNameReference = 313] = "JSDocNameReference", n[n.JSDocMemberName = 314] = "JSDocMemberName", n[n.JSDocAllType = 315] = "JSDocAllType", n[n.JSDocUnknownType = 316] = "JSDocUnknownType", n[n.JSDocNullableType = 317] = "JSDocNullableType", n[n.JSDocNonNullableType = 318] = "JSDocNonNullableType", n[n.JSDocOptionalType = 319] = "JSDocOptionalType", n[n.JSDocFunctionType = 320] = "JSDocFunctionType", n[n.JSDocVariadicType = 321] = "JSDocVariadicType", n[n.JSDocNamepathType = 322] = "JSDocNamepathType", n[n.JSDoc = 323] = "JSDoc", n[n.JSDocComment = 323] = "JSDocComment", n[n.JSDocText = 324] = "JSDocText", n[n.JSDocTypeLiteral = 325] = "JSDocTypeLiteral", n[n.JSDocSignature = 326] = "JSDocSignature", n[n.JSDocLink = 327] = "JSDocLink", n[n.JSDocLinkCode = 328] = "JSDocLinkCode", n[n.JSDocLinkPlain = 329] = "JSDocLinkPlain", n[n.JSDocTag = 330] = "JSDocTag", n[n.JSDocAugmentsTag = 331] = "JSDocAugmentsTag", n[n.JSDocImplementsTag = 332] = "JSDocImplementsTag", n[n.JSDocAuthorTag = 333] = "JSDocAuthorTag", n[n.JSDocDeprecatedTag = 334] = "JSDocDeprecatedTag", n[n.JSDocClassTag = 335] = "JSDocClassTag", n[n.JSDocPublicTag = 336] = "JSDocPublicTag", n[n.JSDocPrivateTag = 337] = "JSDocPrivateTag", n[n.JSDocProtectedTag = 338] = "JSDocProtectedTag", n[n.JSDocReadonlyTag = 339] = "JSDocReadonlyTag", n[n.JSDocOverrideTag = 340] = "JSDocOverrideTag", n[n.JSDocCallbackTag = 341] = "JSDocCallbackTag", n[n.JSDocEnumTag = 342] = "JSDocEnumTag", n[n.JSDocParameterTag = 343] = "JSDocParameterTag", n[n.JSDocReturnTag = 344] = "JSDocReturnTag", n[n.JSDocThisTag = 345] = "JSDocThisTag", n[n.JSDocTypeTag = 346] = "JSDocTypeTag", n[n.JSDocTemplateTag = 347] = "JSDocTemplateTag", n[n.JSDocTypedefTag = 348] = "JSDocTypedefTag", n[n.JSDocSeeTag = 349] = "JSDocSeeTag", n[n.JSDocPropertyTag = 350] = "JSDocPropertyTag", n[n.SyntaxList = 351] = "SyntaxList", n[n.NotEmittedStatement = 352] = "NotEmittedStatement", n[n.PartiallyEmittedExpression = 353] = "PartiallyEmittedExpression", n[n.CommaListExpression = 354] = "CommaListExpression", n[n.MergeDeclarationMarker = 355] = "MergeDeclarationMarker", n[n.EndOfDeclarationMarker = 356] = "EndOfDeclarationMarker", n[n.SyntheticReferenceExpression = 357] = "SyntheticReferenceExpression", n[n.Count = 358] = "Count", n[n.FirstAssignment = 63] = "FirstAssignment", n[n.LastAssignment = 78] = "LastAssignment", n[n.FirstCompoundAssignment = 64] = "FirstCompoundAssignment", n[n.LastCompoundAssignment = 78] = "LastCompoundAssignment", n[n.FirstReservedWord = 81] = "FirstReservedWord", n[n.LastReservedWord = 116] = "LastReservedWord", n[n.FirstKeyword = 81] = "FirstKeyword", n[n.LastKeyword = 162] = "LastKeyword", n[n.FirstFutureReservedWord = 117] = "FirstFutureReservedWord", n[n.LastFutureReservedWord = 125] = "LastFutureReservedWord", n[n.FirstTypeNode = 179] = "FirstTypeNode", n[n.LastTypeNode = 202] = "LastTypeNode", n[n.FirstPunctuation = 18] = "FirstPunctuation", n[n.LastPunctuation = 78] = "LastPunctuation", n[n.FirstToken = 0] = "FirstToken", n[n.LastToken = 162] = "LastToken", n[n.FirstTriviaToken = 2] = "FirstTriviaToken", n[n.LastTriviaToken = 7] = "LastTriviaToken", n[n.FirstLiteralToken = 8] = "FirstLiteralToken", n[n.LastLiteralToken = 14] = "LastLiteralToken", n[n.FirstTemplateToken = 14] = "FirstTemplateToken", n[n.LastTemplateToken = 17] = "LastTemplateToken", n[n.FirstBinaryOperator = 29] = "FirstBinaryOperator", n[n.LastBinaryOperator = 78] = "LastBinaryOperator", n[n.FirstStatement = 240] = "FirstStatement", n[n.LastStatement = 256] = "LastStatement", n[n.FirstNode = 163] = "FirstNode", n[n.FirstJSDocNode = 312] = "FirstJSDocNode", n[n.LastJSDocNode = 350] = "LastJSDocNode", n[n.FirstJSDocTagNode = 330] = "FirstJSDocTagNode", n[n.LastJSDocTagNode = 350] = "LastJSDocTagNode", n[n.FirstContextualKeyword = 126] = "FirstContextualKeyword", n[n.LastContextualKeyword = 162] = "LastContextualKeyword", (n = e.NodeFlags || (e.NodeFlags = {}))[n.None = 0] = "None", n[n.Let = 1] = "Let", n[n.Const = 2] = "Const", n[n.NestedNamespace = 4] = "NestedNamespace", n[n.Synthesized = 8] = "Synthesized", n[n.Namespace = 16] = "Namespace", n[n.OptionalChain = 32] = "OptionalChain", n[n.ExportContext = 64] = "ExportContext", n[n.ContainsThis = 128] = "ContainsThis", n[n.HasImplicitReturn = 256] = "HasImplicitReturn", n[n.HasExplicitReturn = 512] = "HasExplicitReturn", n[n.GlobalAugmentation = 1024] = "GlobalAugmentation", n[n.HasAsyncFunctions = 2048] = "HasAsyncFunctions", n[n.DisallowInContext = 4096] = "DisallowInContext", n[n.YieldContext = 8192] = "YieldContext", n[n.DecoratorContext = 16384] = "DecoratorContext", n[n.AwaitContext = 32768] = "AwaitContext", n[n.DisallowConditionalTypesContext = 65536] = "DisallowConditionalTypesContext", n[n.ThisNodeHasError = 131072] = "ThisNodeHasError", n[n.JavaScriptFile = 262144] = "JavaScriptFile", n[n.ThisNodeOrAnySubNodesHasError = 524288] = "ThisNodeOrAnySubNodesHasError", n[n.HasAggregatedChildData = 1048576] = "HasAggregatedChildData", n[n.PossiblyContainsDynamicImport = 2097152] = "PossiblyContainsDynamicImport", n[n.PossiblyContainsImportMeta = 4194304] = "PossiblyContainsImportMeta", n[n.JSDoc = 8388608] = "JSDoc", n[n.Ambient = 16777216] = "Ambient", n[n.InWithStatement = 33554432] = "InWithStatement", n[n.JsonFile = 67108864] = "JsonFile", n[n.TypeCached = 134217728] = "TypeCached", n[n.Deprecated = 268435456] = "Deprecated", n[n.BlockScoped = 3] = "BlockScoped", n[n.ReachabilityCheckFlags = 768] = "ReachabilityCheckFlags", n[n.ReachabilityAndEmitFlags = 2816] = "ReachabilityAndEmitFlags", n[n.ContextFlags = 50720768] = "ContextFlags", n[n.TypeExcludesFlags = 40960] = "TypeExcludesFlags", n[n.PermanentlySetIncrementalFlags = 6291456] = "PermanentlySetIncrementalFlags", (n = e.ModifierFlags || (e.ModifierFlags = {}))[n.None = 0] = "None", n[n.Export = 1] = "Export", n[n.Ambient = 2] = "Ambient", n[n.Public = 4] = "Public", n[n.Private = 8] = "Private", n[n.Protected = 16] = "Protected", n[n.Static = 32] = "Static", n[n.Readonly = 64] = "Readonly", n[n.Accessor = 128] = "Accessor", n[n.Abstract = 256] = "Abstract", n[n.Async = 512] = "Async", n[n.Default = 1024] = "Default", n[n.Const = 2048] = "Const", n[n.HasComputedJSDocModifiers = 4096] = "HasComputedJSDocModifiers", n[n.Deprecated = 8192] = "Deprecated", n[n.Override = 16384] = "Override", n[n.In = 32768] = "In", n[n.Out = 65536] = "Out", n[n.Decorator = 131072] = "Decorator", n[n.HasComputedFlags = 536870912] = "HasComputedFlags", n[n.AccessibilityModifier = 28] = "AccessibilityModifier", n[n.ParameterPropertyModifier = 16476] = "ParameterPropertyModifier", n[n.NonPublicAccessibilityModifier = 24] = "NonPublicAccessibilityModifier", n[n.TypeScriptModifier = 117086] = "TypeScriptModifier", n[n.ExportDefault = 1025] = "ExportDefault", n[n.All = 258047] = "All", n[n.Modifier = 126975] = "Modifier", (n = e.JsxFlags || (e.JsxFlags = {}))[n.None = 0] = "None", n[n.IntrinsicNamedElement = 1] = "IntrinsicNamedElement", n[n.IntrinsicIndexedElement = 2] = "IntrinsicIndexedElement", n[n.IntrinsicElement = 3] = "IntrinsicElement", (n = e.RelationComparisonResult || (e.RelationComparisonResult = {}))[n.Succeeded = 1] = "Succeeded", n[n.Failed = 2] = "Failed", n[n.Reported = 4] = "Reported", n[n.ReportsUnmeasurable = 8] = "ReportsUnmeasurable", n[n.ReportsUnreliable = 16] = "ReportsUnreliable", n[n.ReportsMask = 24] = "ReportsMask", (n = e.GeneratedIdentifierFlags || (e.GeneratedIdentifierFlags = {}))[n.None = 0] = "None", n[n.Auto = 1] = "Auto", n[n.Loop = 2] = "Loop", n[n.Unique = 3] = "Unique", n[n.Node = 4] = "Node", n[n.KindMask = 7] = "KindMask", n[n.ReservedInNestedScopes = 8] = "ReservedInNestedScopes", n[n.Optimistic = 16] = "Optimistic", n[n.FileLevel = 32] = "FileLevel", n[n.AllowNameSubstitution = 64] = "AllowNameSubstitution", (n = e.TokenFlags || (e.TokenFlags = {}))[n.None = 0] = "None", n[n.PrecedingLineBreak = 1] = "PrecedingLineBreak", n[n.PrecedingJSDocComment = 2] = "PrecedingJSDocComment", n[n.Unterminated = 4] = "Unterminated", n[n.ExtendedUnicodeEscape = 8] = "ExtendedUnicodeEscape", n[n.Scientific = 16] = "Scientific", n[n.Octal = 32] = "Octal", n[n.HexSpecifier = 64] = "HexSpecifier", n[n.BinarySpecifier = 128] = "BinarySpecifier", n[n.OctalSpecifier = 256] = "OctalSpecifier", n[n.ContainsSeparator = 512] = "ContainsSeparator", n[n.UnicodeEscape = 1024] = "UnicodeEscape", n[n.ContainsInvalidEscape = 2048] = "ContainsInvalidEscape", n[n.BinaryOrOctalSpecifier = 384] = "BinaryOrOctalSpecifier", n[n.NumericLiteralFlags = 1008] = "NumericLiteralFlags", n[n.TemplateLiteralLikeFlags = 2048] = "TemplateLiteralLikeFlags", (n = e.FlowFlags || (e.FlowFlags = {}))[n.Unreachable = 1] = "Unreachable", n[n.Start = 2] = "Start", n[n.BranchLabel = 4] = "BranchLabel", n[n.LoopLabel = 8] = "LoopLabel", n[n.Assignment = 16] = "Assignment", n[n.TrueCondition = 32] = "TrueCondition", n[n.FalseCondition = 64] = "FalseCondition", n[n.SwitchClause = 128] = "SwitchClause", n[n.ArrayMutation = 256] = "ArrayMutation", n[n.Call = 512] = "Call", n[n.ReduceLabel = 1024] = "ReduceLabel", n[n.Referenced = 2048] = "Referenced", n[n.Shared = 4096] = "Shared", n[n.Label = 12] = "Label", n[n.Condition = 96] = "Condition", (n = e.CommentDirectiveType || (e.CommentDirectiveType = {}))[n.ExpectError = 0] = "ExpectError", n[n.Ignore = 1] = "Ignore"; + e.OperationCanceledException = t, (n = e.FileIncludeKind || (e.FileIncludeKind = {}))[n.RootFile = 0] = "RootFile", n[n.SourceFromProjectReference = 1] = "SourceFromProjectReference", n[n.OutputFromProjectReference = 2] = "OutputFromProjectReference", n[n.Import = 3] = "Import", n[n.ReferenceFile = 4] = "ReferenceFile", n[n.TypeReferenceDirective = 5] = "TypeReferenceDirective", n[n.LibFile = 6] = "LibFile", n[n.LibReferenceDirective = 7] = "LibReferenceDirective", n[n.AutomaticTypeDirectiveFile = 8] = "AutomaticTypeDirectiveFile", (n = e.FilePreprocessingDiagnosticsKind || (e.FilePreprocessingDiagnosticsKind = {}))[n.FilePreprocessingReferencedDiagnostic = 0] = "FilePreprocessingReferencedDiagnostic", n[n.FilePreprocessingFileExplainingDiagnostic = 1] = "FilePreprocessingFileExplainingDiagnostic", (n = e.StructureIsReused || (e.StructureIsReused = {}))[n.Not = 0] = "Not", n[n.SafeModules = 1] = "SafeModules", n[n.Completely = 2] = "Completely", (n = e.ExitStatus || (e.ExitStatus = {}))[n.Success = 0] = "Success", n[n.DiagnosticsPresent_OutputsSkipped = 1] = "DiagnosticsPresent_OutputsSkipped", n[n.DiagnosticsPresent_OutputsGenerated = 2] = "DiagnosticsPresent_OutputsGenerated", n[n.InvalidProject_OutputsSkipped = 3] = "InvalidProject_OutputsSkipped", n[n.ProjectReferenceCycle_OutputsSkipped = 4] = "ProjectReferenceCycle_OutputsSkipped", n[n.ProjectReferenceCycle_OutputsSkupped = 4] = "ProjectReferenceCycle_OutputsSkupped", (n = e.MemberOverrideStatus || (e.MemberOverrideStatus = {}))[n.Ok = 0] = "Ok", n[n.NeedsOverride = 1] = "NeedsOverride", n[n.HasInvalidOverride = 2] = "HasInvalidOverride", (n = e.UnionReduction || (e.UnionReduction = {}))[n.None = 0] = "None", n[n.Literal = 1] = "Literal", n[n.Subtype = 2] = "Subtype", (n = e.ContextFlags || (e.ContextFlags = {}))[n.None = 0] = "None", n[n.Signature = 1] = "Signature", n[n.NoConstraints = 2] = "NoConstraints", n[n.Completions = 4] = "Completions", n[n.SkipBindingPatterns = 8] = "SkipBindingPatterns", (n = e.NodeBuilderFlags || (e.NodeBuilderFlags = {}))[n.None = 0] = "None", n[n.NoTruncation = 1] = "NoTruncation", n[n.WriteArrayAsGenericType = 2] = "WriteArrayAsGenericType", n[n.GenerateNamesForShadowedTypeParams = 4] = "GenerateNamesForShadowedTypeParams", n[n.UseStructuralFallback = 8] = "UseStructuralFallback", n[n.ForbidIndexedAccessSymbolReferences = 16] = "ForbidIndexedAccessSymbolReferences", n[n.WriteTypeArgumentsOfSignature = 32] = "WriteTypeArgumentsOfSignature", n[n.UseFullyQualifiedType = 64] = "UseFullyQualifiedType", n[n.UseOnlyExternalAliasing = 128] = "UseOnlyExternalAliasing", n[n.SuppressAnyReturnType = 256] = "SuppressAnyReturnType", n[n.WriteTypeParametersInQualifiedName = 512] = "WriteTypeParametersInQualifiedName", n[n.MultilineObjectLiterals = 1024] = "MultilineObjectLiterals", n[n.WriteClassExpressionAsTypeLiteral = 2048] = "WriteClassExpressionAsTypeLiteral", n[n.UseTypeOfFunction = 4096] = "UseTypeOfFunction", n[n.OmitParameterModifiers = 8192] = "OmitParameterModifiers", n[n.UseAliasDefinedOutsideCurrentScope = 16384] = "UseAliasDefinedOutsideCurrentScope", n[n.UseSingleQuotesForStringLiteralType = 268435456] = "UseSingleQuotesForStringLiteralType", n[n.NoTypeReduction = 536870912] = "NoTypeReduction", n[n.OmitThisParameter = 33554432] = "OmitThisParameter", n[n.AllowThisInObjectLiteral = 32768] = "AllowThisInObjectLiteral", n[n.AllowQualifiedNameInPlaceOfIdentifier = 65536] = "AllowQualifiedNameInPlaceOfIdentifier", n[n.AllowQualifedNameInPlaceOfIdentifier = 65536] = "AllowQualifedNameInPlaceOfIdentifier", n[n.AllowAnonymousIdentifier = 131072] = "AllowAnonymousIdentifier", n[n.AllowEmptyUnionOrIntersection = 262144] = "AllowEmptyUnionOrIntersection", n[n.AllowEmptyTuple = 524288] = "AllowEmptyTuple", n[n.AllowUniqueESSymbolType = 1048576] = "AllowUniqueESSymbolType", n[n.AllowEmptyIndexInfoType = 2097152] = "AllowEmptyIndexInfoType", n[n.WriteComputedProps = 1073741824] = "WriteComputedProps", n[n.AllowNodeModulesRelativePaths = 67108864] = "AllowNodeModulesRelativePaths", n[n.DoNotIncludeSymbolChain = 134217728] = "DoNotIncludeSymbolChain", n[n.IgnoreErrors = 70221824] = "IgnoreErrors", n[n.InObjectTypeLiteral = 4194304] = "InObjectTypeLiteral", n[n.InTypeAlias = 8388608] = "InTypeAlias", n[n.InInitialEntityName = 16777216] = "InInitialEntityName", (n = e.TypeFormatFlags || (e.TypeFormatFlags = {}))[n.None = 0] = "None", n[n.NoTruncation = 1] = "NoTruncation", n[n.WriteArrayAsGenericType = 2] = "WriteArrayAsGenericType", n[n.UseStructuralFallback = 8] = "UseStructuralFallback", n[n.WriteTypeArgumentsOfSignature = 32] = "WriteTypeArgumentsOfSignature", n[n.UseFullyQualifiedType = 64] = "UseFullyQualifiedType", n[n.SuppressAnyReturnType = 256] = "SuppressAnyReturnType", n[n.MultilineObjectLiterals = 1024] = "MultilineObjectLiterals", n[n.WriteClassExpressionAsTypeLiteral = 2048] = "WriteClassExpressionAsTypeLiteral", n[n.UseTypeOfFunction = 4096] = "UseTypeOfFunction", n[n.OmitParameterModifiers = 8192] = "OmitParameterModifiers", n[n.UseAliasDefinedOutsideCurrentScope = 16384] = "UseAliasDefinedOutsideCurrentScope", n[n.UseSingleQuotesForStringLiteralType = 268435456] = "UseSingleQuotesForStringLiteralType", n[n.NoTypeReduction = 536870912] = "NoTypeReduction", n[n.OmitThisParameter = 33554432] = "OmitThisParameter", n[n.AllowUniqueESSymbolType = 1048576] = "AllowUniqueESSymbolType", n[n.AddUndefined = 131072] = "AddUndefined", n[n.WriteArrowStyleSignature = 262144] = "WriteArrowStyleSignature", n[n.InArrayType = 524288] = "InArrayType", n[n.InElementType = 2097152] = "InElementType", n[n.InFirstTypeArgument = 4194304] = "InFirstTypeArgument", n[n.InTypeAlias = 8388608] = "InTypeAlias", n[n.WriteOwnNameForAnyLike = 0] = "WriteOwnNameForAnyLike", n[n.NodeBuilderFlagsMask = 848330091] = "NodeBuilderFlagsMask", (n = e.SymbolFormatFlags || (e.SymbolFormatFlags = {}))[n.None = 0] = "None", n[n.WriteTypeParametersOrArguments = 1] = "WriteTypeParametersOrArguments", n[n.UseOnlyExternalAliasing = 2] = "UseOnlyExternalAliasing", n[n.AllowAnyNodeKind = 4] = "AllowAnyNodeKind", n[n.UseAliasDefinedOutsideCurrentScope = 8] = "UseAliasDefinedOutsideCurrentScope", n[n.WriteComputedProps = 16] = "WriteComputedProps", n[n.DoNotIncludeSymbolChain = 32] = "DoNotIncludeSymbolChain", (n = e.SymbolAccessibility || (e.SymbolAccessibility = {}))[n.Accessible = 0] = "Accessible", n[n.NotAccessible = 1] = "NotAccessible", n[n.CannotBeNamed = 2] = "CannotBeNamed", (n = e.SyntheticSymbolKind || (e.SyntheticSymbolKind = {}))[n.UnionOrIntersection = 0] = "UnionOrIntersection", n[n.Spread = 1] = "Spread", (n = e.TypePredicateKind || (e.TypePredicateKind = {}))[n.This = 0] = "This", n[n.Identifier = 1] = "Identifier", n[n.AssertsThis = 2] = "AssertsThis", n[n.AssertsIdentifier = 3] = "AssertsIdentifier", (n = e.TypeReferenceSerializationKind || (e.TypeReferenceSerializationKind = {}))[n.Unknown = 0] = "Unknown", n[n.TypeWithConstructSignatureAndValue = 1] = "TypeWithConstructSignatureAndValue", n[n.VoidNullableOrNeverType = 2] = "VoidNullableOrNeverType", n[n.NumberLikeType = 3] = "NumberLikeType", n[n.BigIntLikeType = 4] = "BigIntLikeType", n[n.StringLikeType = 5] = "StringLikeType", n[n.BooleanType = 6] = "BooleanType", n[n.ArrayLikeType = 7] = "ArrayLikeType", n[n.ESSymbolType = 8] = "ESSymbolType", n[n.Promise = 9] = "Promise", n[n.TypeWithCallSignature = 10] = "TypeWithCallSignature", n[n.ObjectType = 11] = "ObjectType", (n = e.SymbolFlags || (e.SymbolFlags = {}))[n.None = 0] = "None", n[n.FunctionScopedVariable = 1] = "FunctionScopedVariable", n[n.BlockScopedVariable = 2] = "BlockScopedVariable", n[n.Property = 4] = "Property", n[n.EnumMember = 8] = "EnumMember", n[n.Function = 16] = "Function", n[n.Class = 32] = "Class", n[n.Interface = 64] = "Interface", n[n.ConstEnum = 128] = "ConstEnum", n[n.RegularEnum = 256] = "RegularEnum", n[n.ValueModule = 512] = "ValueModule", n[n.NamespaceModule = 1024] = "NamespaceModule", n[n.TypeLiteral = 2048] = "TypeLiteral", n[n.ObjectLiteral = 4096] = "ObjectLiteral", n[n.Method = 8192] = "Method", n[n.Constructor = 16384] = "Constructor", n[n.GetAccessor = 32768] = "GetAccessor", n[n.SetAccessor = 65536] = "SetAccessor", n[n.Signature = 131072] = "Signature", n[n.TypeParameter = 262144] = "TypeParameter", n[n.TypeAlias = 524288] = "TypeAlias", n[n.ExportValue = 1048576] = "ExportValue", n[n.Alias = 2097152] = "Alias", n[n.Prototype = 4194304] = "Prototype", n[n.ExportStar = 8388608] = "ExportStar", n[n.Optional = 16777216] = "Optional", n[n.Transient = 33554432] = "Transient", n[n.Assignment = 67108864] = "Assignment", n[n.ModuleExports = 134217728] = "ModuleExports", n[n.All = 67108863] = "All", n[n.Enum = 384] = "Enum", n[n.Variable = 3] = "Variable", n[n.Value = 111551] = "Value", n[n.Type = 788968] = "Type", n[n.Namespace = 1920] = "Namespace", n[n.Module = 1536] = "Module", n[n.Accessor = 98304] = "Accessor", n[n.FunctionScopedVariableExcludes = 111550] = "FunctionScopedVariableExcludes", n[n.BlockScopedVariableExcludes = 111551] = "BlockScopedVariableExcludes", n[n.ParameterExcludes = 111551] = "ParameterExcludes", n[n.PropertyExcludes = 0] = "PropertyExcludes", n[n.EnumMemberExcludes = 900095] = "EnumMemberExcludes", n[n.FunctionExcludes = 110991] = "FunctionExcludes", n[n.ClassExcludes = 899503] = "ClassExcludes", n[n.InterfaceExcludes = 788872] = "InterfaceExcludes", n[n.RegularEnumExcludes = 899327] = "RegularEnumExcludes", n[n.ConstEnumExcludes = 899967] = "ConstEnumExcludes", n[n.ValueModuleExcludes = 110735] = "ValueModuleExcludes", n[n.NamespaceModuleExcludes = 0] = "NamespaceModuleExcludes", n[n.MethodExcludes = 103359] = "MethodExcludes", n[n.GetAccessorExcludes = 46015] = "GetAccessorExcludes", n[n.SetAccessorExcludes = 78783] = "SetAccessorExcludes", n[n.AccessorExcludes = 13247] = "AccessorExcludes", n[n.TypeParameterExcludes = 526824] = "TypeParameterExcludes", n[n.TypeAliasExcludes = 788968] = "TypeAliasExcludes", n[n.AliasExcludes = 2097152] = "AliasExcludes", n[n.ModuleMember = 2623475] = "ModuleMember", n[n.ExportHasLocal = 944] = "ExportHasLocal", n[n.BlockScoped = 418] = "BlockScoped", n[n.PropertyOrAccessor = 98308] = "PropertyOrAccessor", n[n.ClassMember = 106500] = "ClassMember", n[n.ExportSupportsDefaultModifier = 112] = "ExportSupportsDefaultModifier", n[n.ExportDoesNotSupportDefaultModifier = -113] = "ExportDoesNotSupportDefaultModifier", n[n.Classifiable = 2885600] = "Classifiable", n[n.LateBindingContainer = 6256] = "LateBindingContainer", (n = e.EnumKind || (e.EnumKind = {}))[n.Numeric = 0] = "Numeric", n[n.Literal = 1] = "Literal", (n = e.CheckFlags || (e.CheckFlags = {}))[n.Instantiated = 1] = "Instantiated", n[n.SyntheticProperty = 2] = "SyntheticProperty", n[n.SyntheticMethod = 4] = "SyntheticMethod", n[n.Readonly = 8] = "Readonly", n[n.ReadPartial = 16] = "ReadPartial", n[n.WritePartial = 32] = "WritePartial", n[n.HasNonUniformType = 64] = "HasNonUniformType", n[n.HasLiteralType = 128] = "HasLiteralType", n[n.ContainsPublic = 256] = "ContainsPublic", n[n.ContainsProtected = 512] = "ContainsProtected", n[n.ContainsPrivate = 1024] = "ContainsPrivate", n[n.ContainsStatic = 2048] = "ContainsStatic", n[n.Late = 4096] = "Late", n[n.ReverseMapped = 8192] = "ReverseMapped", n[n.OptionalParameter = 16384] = "OptionalParameter", n[n.RestParameter = 32768] = "RestParameter", n[n.DeferredType = 65536] = "DeferredType", n[n.HasNeverType = 131072] = "HasNeverType", n[n.Mapped = 262144] = "Mapped", n[n.StripOptional = 524288] = "StripOptional", n[n.Unresolved = 1048576] = "Unresolved", n[n.Synthetic = 6] = "Synthetic", n[n.Discriminant = 192] = "Discriminant", n[n.Partial = 48] = "Partial", (n = e.InternalSymbolName || (e.InternalSymbolName = {})).Call = "__call", n.Constructor = "__constructor", n.New = "__new", n.Index = "__index", n.ExportStar = "__export", n.Global = "__global", n.Missing = "__missing", n.Type = "__type", n.Object = "__object", n.JSXAttributes = "__jsxAttributes", n.Class = "__class", n.Function = "__function", n.Computed = "__computed", n.Resolving = "__resolving__", n.ExportEquals = "export=", n.Default = "default", n.This = "this", (n = e.NodeCheckFlags || (e.NodeCheckFlags = {}))[n.TypeChecked = 1] = "TypeChecked", n[n.LexicalThis = 2] = "LexicalThis", n[n.CaptureThis = 4] = "CaptureThis", n[n.CaptureNewTarget = 8] = "CaptureNewTarget", n[n.SuperInstance = 256] = "SuperInstance", n[n.SuperStatic = 512] = "SuperStatic", n[n.ContextChecked = 1024] = "ContextChecked", n[n.MethodWithSuperPropertyAccessInAsync = 2048] = "MethodWithSuperPropertyAccessInAsync", n[n.MethodWithSuperPropertyAssignmentInAsync = 4096] = "MethodWithSuperPropertyAssignmentInAsync", n[n.CaptureArguments = 8192] = "CaptureArguments", n[n.EnumValuesComputed = 16384] = "EnumValuesComputed", n[n.LexicalModuleMergesWithClass = 32768] = "LexicalModuleMergesWithClass", n[n.LoopWithCapturedBlockScopedBinding = 65536] = "LoopWithCapturedBlockScopedBinding", n[n.ContainsCapturedBlockScopeBinding = 131072] = "ContainsCapturedBlockScopeBinding", n[n.CapturedBlockScopedBinding = 262144] = "CapturedBlockScopedBinding", n[n.BlockScopedBindingInLoop = 524288] = "BlockScopedBindingInLoop", n[n.ClassWithBodyScopedClassBinding = 1048576] = "ClassWithBodyScopedClassBinding", n[n.BodyScopedClassBinding = 2097152] = "BodyScopedClassBinding", n[n.NeedsLoopOutParameter = 4194304] = "NeedsLoopOutParameter", n[n.AssignmentsMarked = 8388608] = "AssignmentsMarked", n[n.ClassWithConstructorReference = 16777216] = "ClassWithConstructorReference", n[n.ConstructorReferenceInClass = 33554432] = "ConstructorReferenceInClass", n[n.ContainsClassWithPrivateIdentifiers = 67108864] = "ContainsClassWithPrivateIdentifiers", n[n.ContainsSuperPropertyInStaticInitializer = 134217728] = "ContainsSuperPropertyInStaticInitializer", n[n.InCheckIdentifier = 268435456] = "InCheckIdentifier", (n = e.TypeFlags || (e.TypeFlags = {}))[n.Any = 1] = "Any", n[n.Unknown = 2] = "Unknown", n[n.String = 4] = "String", n[n.Number = 8] = "Number", n[n.Boolean = 16] = "Boolean", n[n.Enum = 32] = "Enum", n[n.BigInt = 64] = "BigInt", n[n.StringLiteral = 128] = "StringLiteral", n[n.NumberLiteral = 256] = "NumberLiteral", n[n.BooleanLiteral = 512] = "BooleanLiteral", n[n.EnumLiteral = 1024] = "EnumLiteral", n[n.BigIntLiteral = 2048] = "BigIntLiteral", n[n.ESSymbol = 4096] = "ESSymbol", n[n.UniqueESSymbol = 8192] = "UniqueESSymbol", n[n.Void = 16384] = "Void", n[n.Undefined = 32768] = "Undefined", n[n.Null = 65536] = "Null", n[n.Never = 131072] = "Never", n[n.TypeParameter = 262144] = "TypeParameter", n[n.Object = 524288] = "Object", n[n.Union = 1048576] = "Union", n[n.Intersection = 2097152] = "Intersection", n[n.Index = 4194304] = "Index", n[n.IndexedAccess = 8388608] = "IndexedAccess", n[n.Conditional = 16777216] = "Conditional", n[n.Substitution = 33554432] = "Substitution", n[n.NonPrimitive = 67108864] = "NonPrimitive", n[n.TemplateLiteral = 134217728] = "TemplateLiteral", n[n.StringMapping = 268435456] = "StringMapping", n[n.AnyOrUnknown = 3] = "AnyOrUnknown", n[n.Nullable = 98304] = "Nullable", n[n.Literal = 2944] = "Literal", n[n.Unit = 109440] = "Unit", n[n.StringOrNumberLiteral = 384] = "StringOrNumberLiteral", n[n.StringOrNumberLiteralOrUnique = 8576] = "StringOrNumberLiteralOrUnique", n[n.DefinitelyFalsy = 117632] = "DefinitelyFalsy", n[n.PossiblyFalsy = 117724] = "PossiblyFalsy", n[n.Intrinsic = 67359327] = "Intrinsic", n[n.Primitive = 131068] = "Primitive", n[n.StringLike = 402653316] = "StringLike", n[n.NumberLike = 296] = "NumberLike", n[n.BigIntLike = 2112] = "BigIntLike", n[n.BooleanLike = 528] = "BooleanLike", n[n.EnumLike = 1056] = "EnumLike", n[n.ESSymbolLike = 12288] = "ESSymbolLike", n[n.VoidLike = 49152] = "VoidLike", n[n.DefinitelyNonNullable = 470302716] = "DefinitelyNonNullable", n[n.DisjointDomains = 469892092] = "DisjointDomains", n[n.UnionOrIntersection = 3145728] = "UnionOrIntersection", n[n.StructuredType = 3670016] = "StructuredType", n[n.TypeVariable = 8650752] = "TypeVariable", n[n.InstantiableNonPrimitive = 58982400] = "InstantiableNonPrimitive", n[n.InstantiablePrimitive = 406847488] = "InstantiablePrimitive", n[n.Instantiable = 465829888] = "Instantiable", n[n.StructuredOrInstantiable = 469499904] = "StructuredOrInstantiable", n[n.ObjectFlagsType = 3899393] = "ObjectFlagsType", n[n.Simplifiable = 25165824] = "Simplifiable", n[n.Singleton = 67358815] = "Singleton", n[n.Narrowable = 536624127] = "Narrowable", n[n.IncludesMask = 205258751] = "IncludesMask", n[n.IncludesMissingType = 262144] = "IncludesMissingType", n[n.IncludesNonWideningType = 4194304] = "IncludesNonWideningType", n[n.IncludesWildcard = 8388608] = "IncludesWildcard", n[n.IncludesEmptyObject = 16777216] = "IncludesEmptyObject", n[n.IncludesInstantiable = 33554432] = "IncludesInstantiable", n[n.NotPrimitiveUnion = 36323363] = "NotPrimitiveUnion", (n = e.ObjectFlags || (e.ObjectFlags = {}))[n.Class = 1] = "Class", n[n.Interface = 2] = "Interface", n[n.Reference = 4] = "Reference", n[n.Tuple = 8] = "Tuple", n[n.Anonymous = 16] = "Anonymous", n[n.Mapped = 32] = "Mapped", n[n.Instantiated = 64] = "Instantiated", n[n.ObjectLiteral = 128] = "ObjectLiteral", n[n.EvolvingArray = 256] = "EvolvingArray", n[n.ObjectLiteralPatternWithComputedProperties = 512] = "ObjectLiteralPatternWithComputedProperties", n[n.ReverseMapped = 1024] = "ReverseMapped", n[n.JsxAttributes = 2048] = "JsxAttributes", n[n.JSLiteral = 4096] = "JSLiteral", n[n.FreshLiteral = 8192] = "FreshLiteral", n[n.ArrayLiteral = 16384] = "ArrayLiteral", n[n.PrimitiveUnion = 32768] = "PrimitiveUnion", n[n.ContainsWideningType = 65536] = "ContainsWideningType", n[n.ContainsObjectOrArrayLiteral = 131072] = "ContainsObjectOrArrayLiteral", n[n.NonInferrableType = 262144] = "NonInferrableType", n[n.CouldContainTypeVariablesComputed = 524288] = "CouldContainTypeVariablesComputed", n[n.CouldContainTypeVariables = 1048576] = "CouldContainTypeVariables", n[n.ClassOrInterface = 3] = "ClassOrInterface", n[n.RequiresWidening = 196608] = "RequiresWidening", n[n.PropagatingFlags = 458752] = "PropagatingFlags", n[n.ObjectTypeKindMask = 1343] = "ObjectTypeKindMask", n[n.ContainsSpread = 2097152] = "ContainsSpread", n[n.ObjectRestType = 4194304] = "ObjectRestType", n[n.InstantiationExpressionType = 8388608] = "InstantiationExpressionType", n[n.IsClassInstanceClone = 16777216] = "IsClassInstanceClone", n[n.IdenticalBaseTypeCalculated = 33554432] = "IdenticalBaseTypeCalculated", n[n.IdenticalBaseTypeExists = 67108864] = "IdenticalBaseTypeExists", n[n.IsGenericTypeComputed = 2097152] = "IsGenericTypeComputed", n[n.IsGenericObjectType = 4194304] = "IsGenericObjectType", n[n.IsGenericIndexType = 8388608] = "IsGenericIndexType", n[n.IsGenericType = 12582912] = "IsGenericType", n[n.ContainsIntersections = 16777216] = "ContainsIntersections", n[n.IsUnknownLikeUnionComputed = 33554432] = "IsUnknownLikeUnionComputed", n[n.IsUnknownLikeUnion = 67108864] = "IsUnknownLikeUnion", n[n.IsNeverIntersectionComputed = 16777216] = "IsNeverIntersectionComputed", n[n.IsNeverIntersection = 33554432] = "IsNeverIntersection", (n = e.VarianceFlags || (e.VarianceFlags = {}))[n.Invariant = 0] = "Invariant", n[n.Covariant = 1] = "Covariant", n[n.Contravariant = 2] = "Contravariant", n[n.Bivariant = 3] = "Bivariant", n[n.Independent = 4] = "Independent", n[n.VarianceMask = 7] = "VarianceMask", n[n.Unmeasurable = 8] = "Unmeasurable", n[n.Unreliable = 16] = "Unreliable", n[n.AllowsStructuralFallback = 24] = "AllowsStructuralFallback", (n = e.ElementFlags || (e.ElementFlags = {}))[n.Required = 1] = "Required", n[n.Optional = 2] = "Optional", n[n.Rest = 4] = "Rest", n[n.Variadic = 8] = "Variadic", n[n.Fixed = 3] = "Fixed", n[n.Variable = 12] = "Variable", n[n.NonRequired = 14] = "NonRequired", n[n.NonRest = 11] = "NonRest", (n = e.AccessFlags || (e.AccessFlags = {}))[n.None = 0] = "None", n[n.IncludeUndefined = 1] = "IncludeUndefined", n[n.NoIndexSignatures = 2] = "NoIndexSignatures", n[n.Writing = 4] = "Writing", n[n.CacheSymbol = 8] = "CacheSymbol", n[n.NoTupleBoundsCheck = 16] = "NoTupleBoundsCheck", n[n.ExpressionPosition = 32] = "ExpressionPosition", n[n.ReportDeprecated = 64] = "ReportDeprecated", n[n.SuppressNoImplicitAnyError = 128] = "SuppressNoImplicitAnyError", n[n.Contextual = 256] = "Contextual", n[n.Persistent = 1] = "Persistent", (n = e.JsxReferenceKind || (e.JsxReferenceKind = {}))[n.Component = 0] = "Component", n[n.Function = 1] = "Function", n[n.Mixed = 2] = "Mixed", (n = e.SignatureKind || (e.SignatureKind = {}))[n.Call = 0] = "Call", n[n.Construct = 1] = "Construct", (n = e.SignatureFlags || (e.SignatureFlags = {}))[n.None = 0] = "None", n[n.HasRestParameter = 1] = "HasRestParameter", n[n.HasLiteralTypes = 2] = "HasLiteralTypes", n[n.Abstract = 4] = "Abstract", n[n.IsInnerCallChain = 8] = "IsInnerCallChain", n[n.IsOuterCallChain = 16] = "IsOuterCallChain", n[n.IsUntypedSignatureInJSFile = 32] = "IsUntypedSignatureInJSFile", n[n.PropagatingFlags = 39] = "PropagatingFlags", n[n.CallChainFlags = 24] = "CallChainFlags", (n = e.IndexKind || (e.IndexKind = {}))[n.String = 0] = "String", n[n.Number = 1] = "Number", (n = e.TypeMapKind || (e.TypeMapKind = {}))[n.Simple = 0] = "Simple", n[n.Array = 1] = "Array", n[n.Deferred = 2] = "Deferred", n[n.Function = 3] = "Function", n[n.Composite = 4] = "Composite", n[n.Merged = 5] = "Merged", (n = e.InferencePriority || (e.InferencePriority = {}))[n.NakedTypeVariable = 1] = "NakedTypeVariable", n[n.SpeculativeTuple = 2] = "SpeculativeTuple", n[n.SubstituteSource = 4] = "SubstituteSource", n[n.HomomorphicMappedType = 8] = "HomomorphicMappedType", n[n.PartialHomomorphicMappedType = 16] = "PartialHomomorphicMappedType", n[n.MappedTypeConstraint = 32] = "MappedTypeConstraint", n[n.ContravariantConditional = 64] = "ContravariantConditional", n[n.ReturnType = 128] = "ReturnType", n[n.LiteralKeyof = 256] = "LiteralKeyof", n[n.NoConstraints = 512] = "NoConstraints", n[n.AlwaysStrict = 1024] = "AlwaysStrict", n[n.MaxValue = 2048] = "MaxValue", n[n.PriorityImpliesCombination = 416] = "PriorityImpliesCombination", n[n.Circularity = -1] = "Circularity", (n = e.InferenceFlags || (e.InferenceFlags = {}))[n.None = 0] = "None", n[n.NoDefault = 1] = "NoDefault", n[n.AnyDefault = 2] = "AnyDefault", n[n.SkippedGenericFunction = 4] = "SkippedGenericFunction", (n = e.Ternary || (e.Ternary = {}))[n.False = 0] = "False", n[n.Unknown = 1] = "Unknown", n[n.Maybe = 3] = "Maybe", n[n.True = -1] = "True", (n = e.AssignmentDeclarationKind || (e.AssignmentDeclarationKind = {}))[n.None = 0] = "None", n[n.ExportsProperty = 1] = "ExportsProperty", n[n.ModuleExports = 2] = "ModuleExports", n[n.PrototypeProperty = 3] = "PrototypeProperty", n[n.ThisProperty = 4] = "ThisProperty", n[n.Property = 5] = "Property", n[n.Prototype = 6] = "Prototype", n[n.ObjectDefinePropertyValue = 7] = "ObjectDefinePropertyValue", n[n.ObjectDefinePropertyExports = 8] = "ObjectDefinePropertyExports", n[n.ObjectDefinePrototypeProperty = 9] = "ObjectDefinePrototypeProperty", (n = r = e.DiagnosticCategory || (e.DiagnosticCategory = {}))[n.Warning = 0] = "Warning", n[n.Error = 1] = "Error", n[n.Suggestion = 2] = "Suggestion", n[n.Message = 3] = "Message", e.diagnosticCategoryName = function(e, t) { + return e = r[e.category], (t = void 0 === t ? !0 : t) ? e.toLowerCase() : e + }, (n = e.ModuleResolutionKind || (e.ModuleResolutionKind = {}))[n.Classic = 1] = "Classic", n[n.NodeJs = 2] = "NodeJs", n[n.Node16 = 3] = "Node16", n[n.NodeNext = 99] = "NodeNext", (n = e.ModuleDetectionKind || (e.ModuleDetectionKind = {}))[n.Legacy = 1] = "Legacy", n[n.Auto = 2] = "Auto", n[n.Force = 3] = "Force", (n = e.WatchFileKind || (e.WatchFileKind = {}))[n.FixedPollingInterval = 0] = "FixedPollingInterval", n[n.PriorityPollingInterval = 1] = "PriorityPollingInterval", n[n.DynamicPriorityPolling = 2] = "DynamicPriorityPolling", n[n.FixedChunkSizePolling = 3] = "FixedChunkSizePolling", n[n.UseFsEvents = 4] = "UseFsEvents", n[n.UseFsEventsOnParentDirectory = 5] = "UseFsEventsOnParentDirectory", (n = e.WatchDirectoryKind || (e.WatchDirectoryKind = {}))[n.UseFsEvents = 0] = "UseFsEvents", n[n.FixedPollingInterval = 1] = "FixedPollingInterval", n[n.DynamicPriorityPolling = 2] = "DynamicPriorityPolling", n[n.FixedChunkSizePolling = 3] = "FixedChunkSizePolling", (n = e.PollingWatchKind || (e.PollingWatchKind = {}))[n.FixedInterval = 0] = "FixedInterval", n[n.PriorityInterval = 1] = "PriorityInterval", n[n.DynamicPriority = 2] = "DynamicPriority", n[n.FixedChunkSize = 3] = "FixedChunkSize", (n = e.ModuleKind || (e.ModuleKind = {}))[n.None = 0] = "None", n[n.CommonJS = 1] = "CommonJS", n[n.AMD = 2] = "AMD", n[n.UMD = 3] = "UMD", n[n.System = 4] = "System", n[n.ES2015 = 5] = "ES2015", n[n.ES2020 = 6] = "ES2020", n[n.ES2022 = 7] = "ES2022", n[n.ESNext = 99] = "ESNext", n[n.Node16 = 100] = "Node16", n[n.NodeNext = 199] = "NodeNext", (n = e.JsxEmit || (e.JsxEmit = {}))[n.None = 0] = "None", n[n.Preserve = 1] = "Preserve", n[n.React = 2] = "React", n[n.ReactNative = 3] = "ReactNative", n[n.ReactJSX = 4] = "ReactJSX", n[n.ReactJSXDev = 5] = "ReactJSXDev", (n = e.ImportsNotUsedAsValues || (e.ImportsNotUsedAsValues = {}))[n.Remove = 0] = "Remove", n[n.Preserve = 1] = "Preserve", n[n.Error = 2] = "Error", (n = e.NewLineKind || (e.NewLineKind = {}))[n.CarriageReturnLineFeed = 0] = "CarriageReturnLineFeed", n[n.LineFeed = 1] = "LineFeed", (n = e.ScriptKind || (e.ScriptKind = {}))[n.Unknown = 0] = "Unknown", n[n.JS = 1] = "JS", n[n.JSX = 2] = "JSX", n[n.TS = 3] = "TS", n[n.TSX = 4] = "TSX", n[n.External = 5] = "External", n[n.JSON = 6] = "JSON", n[n.Deferred = 7] = "Deferred", (n = e.ScriptTarget || (e.ScriptTarget = {}))[n.ES3 = 0] = "ES3", n[n.ES5 = 1] = "ES5", n[n.ES2015 = 2] = "ES2015", n[n.ES2016 = 3] = "ES2016", n[n.ES2017 = 4] = "ES2017", n[n.ES2018 = 5] = "ES2018", n[n.ES2019 = 6] = "ES2019", n[n.ES2020 = 7] = "ES2020", n[n.ES2021 = 8] = "ES2021", n[n.ES2022 = 9] = "ES2022", n[n.ESNext = 99] = "ESNext", n[n.JSON = 100] = "JSON", n[n.Latest = 99] = "Latest", (n = e.LanguageVariant || (e.LanguageVariant = {}))[n.Standard = 0] = "Standard", n[n.JSX = 1] = "JSX", (n = e.WatchDirectoryFlags || (e.WatchDirectoryFlags = {}))[n.None = 0] = "None", n[n.Recursive = 1] = "Recursive", (n = e.CharacterCodes || (e.CharacterCodes = {}))[n.nullCharacter = 0] = "nullCharacter", n[n.maxAsciiCharacter = 127] = "maxAsciiCharacter", n[n.lineFeed = 10] = "lineFeed", n[n.carriageReturn = 13] = "carriageReturn", n[n.lineSeparator = 8232] = "lineSeparator", n[n.paragraphSeparator = 8233] = "paragraphSeparator", n[n.nextLine = 133] = "nextLine", n[n.space = 32] = "space", n[n.nonBreakingSpace = 160] = "nonBreakingSpace", n[n.enQuad = 8192] = "enQuad", n[n.emQuad = 8193] = "emQuad", n[n.enSpace = 8194] = "enSpace", n[n.emSpace = 8195] = "emSpace", n[n.threePerEmSpace = 8196] = "threePerEmSpace", n[n.fourPerEmSpace = 8197] = "fourPerEmSpace", n[n.sixPerEmSpace = 8198] = "sixPerEmSpace", n[n.figureSpace = 8199] = "figureSpace", n[n.punctuationSpace = 8200] = "punctuationSpace", n[n.thinSpace = 8201] = "thinSpace", n[n.hairSpace = 8202] = "hairSpace", n[n.zeroWidthSpace = 8203] = "zeroWidthSpace", n[n.narrowNoBreakSpace = 8239] = "narrowNoBreakSpace", n[n.ideographicSpace = 12288] = "ideographicSpace", n[n.mathematicalSpace = 8287] = "mathematicalSpace", n[n.ogham = 5760] = "ogham", n[n._ = 95] = "_", n[n.$ = 36] = "$", n[n._0 = 48] = "_0", n[n._1 = 49] = "_1", n[n._2 = 50] = "_2", n[n._3 = 51] = "_3", n[n._4 = 52] = "_4", n[n._5 = 53] = "_5", n[n._6 = 54] = "_6", n[n._7 = 55] = "_7", n[n._8 = 56] = "_8", n[n._9 = 57] = "_9", n[n.a = 97] = "a", n[n.b = 98] = "b", n[n.c = 99] = "c", n[n.d = 100] = "d", n[n.e = 101] = "e", n[n.f = 102] = "f", n[n.g = 103] = "g", n[n.h = 104] = "h", n[n.i = 105] = "i", n[n.j = 106] = "j", n[n.k = 107] = "k", n[n.l = 108] = "l", n[n.m = 109] = "m", n[n.n = 110] = "n", n[n.o = 111] = "o", n[n.p = 112] = "p", n[n.q = 113] = "q", n[n.r = 114] = "r", n[n.s = 115] = "s", n[n.t = 116] = "t", n[n.u = 117] = "u", n[n.v = 118] = "v", n[n.w = 119] = "w", n[n.x = 120] = "x", n[n.y = 121] = "y", n[n.z = 122] = "z", n[n.A = 65] = "A", n[n.B = 66] = "B", n[n.C = 67] = "C", n[n.D = 68] = "D", n[n.E = 69] = "E", n[n.F = 70] = "F", n[n.G = 71] = "G", n[n.H = 72] = "H", n[n.I = 73] = "I", n[n.J = 74] = "J", n[n.K = 75] = "K", n[n.L = 76] = "L", n[n.M = 77] = "M", n[n.N = 78] = "N", n[n.O = 79] = "O", n[n.P = 80] = "P", n[n.Q = 81] = "Q", n[n.R = 82] = "R", n[n.S = 83] = "S", n[n.T = 84] = "T", n[n.U = 85] = "U", n[n.V = 86] = "V", n[n.W = 87] = "W", n[n.X = 88] = "X", n[n.Y = 89] = "Y", n[n.Z = 90] = "Z", n[n.ampersand = 38] = "ampersand", n[n.asterisk = 42] = "asterisk", n[n.at = 64] = "at", n[n.backslash = 92] = "backslash", n[n.backtick = 96] = "backtick", n[n.bar = 124] = "bar", n[n.caret = 94] = "caret", n[n.closeBrace = 125] = "closeBrace", n[n.closeBracket = 93] = "closeBracket", n[n.closeParen = 41] = "closeParen", n[n.colon = 58] = "colon", n[n.comma = 44] = "comma", n[n.dot = 46] = "dot", n[n.doubleQuote = 34] = "doubleQuote", n[n.equals = 61] = "equals", n[n.exclamation = 33] = "exclamation", n[n.greaterThan = 62] = "greaterThan", n[n.hash = 35] = "hash", n[n.lessThan = 60] = "lessThan", n[n.minus = 45] = "minus", n[n.openBrace = 123] = "openBrace", n[n.openBracket = 91] = "openBracket", n[n.openParen = 40] = "openParen", n[n.percent = 37] = "percent", n[n.plus = 43] = "plus", n[n.question = 63] = "question", n[n.semicolon = 59] = "semicolon", n[n.singleQuote = 39] = "singleQuote", n[n.slash = 47] = "slash", n[n.tilde = 126] = "tilde", n[n.backspace = 8] = "backspace", n[n.formFeed = 12] = "formFeed", n[n.byteOrderMark = 65279] = "byteOrderMark", n[n.tab = 9] = "tab", n[n.verticalTab = 11] = "verticalTab", (n = e.Extension || (e.Extension = {})).Ts = ".ts", n.Tsx = ".tsx", n.Dts = ".d.ts", n.Js = ".js", n.Jsx = ".jsx", n.Json = ".json", n.TsBuildInfo = ".tsbuildinfo", n.Mjs = ".mjs", n.Mts = ".mts", n.Dmts = ".d.mts", n.Cjs = ".cjs", n.Cts = ".cts", n.Dcts = ".d.cts", (n = e.TransformFlags || (e.TransformFlags = {}))[n.None = 0] = "None", n[n.ContainsTypeScript = 1] = "ContainsTypeScript", n[n.ContainsJsx = 2] = "ContainsJsx", n[n.ContainsESNext = 4] = "ContainsESNext", n[n.ContainsES2022 = 8] = "ContainsES2022", n[n.ContainsES2021 = 16] = "ContainsES2021", n[n.ContainsES2020 = 32] = "ContainsES2020", n[n.ContainsES2019 = 64] = "ContainsES2019", n[n.ContainsES2018 = 128] = "ContainsES2018", n[n.ContainsES2017 = 256] = "ContainsES2017", n[n.ContainsES2016 = 512] = "ContainsES2016", n[n.ContainsES2015 = 1024] = "ContainsES2015", n[n.ContainsGenerator = 2048] = "ContainsGenerator", n[n.ContainsDestructuringAssignment = 4096] = "ContainsDestructuringAssignment", n[n.ContainsTypeScriptClassSyntax = 8192] = "ContainsTypeScriptClassSyntax", n[n.ContainsLexicalThis = 16384] = "ContainsLexicalThis", n[n.ContainsRestOrSpread = 32768] = "ContainsRestOrSpread", n[n.ContainsObjectRestOrSpread = 65536] = "ContainsObjectRestOrSpread", n[n.ContainsComputedPropertyName = 131072] = "ContainsComputedPropertyName", n[n.ContainsBlockScopedBinding = 262144] = "ContainsBlockScopedBinding", n[n.ContainsBindingPattern = 524288] = "ContainsBindingPattern", n[n.ContainsYield = 1048576] = "ContainsYield", n[n.ContainsAwait = 2097152] = "ContainsAwait", n[n.ContainsHoistedDeclarationOrCompletion = 4194304] = "ContainsHoistedDeclarationOrCompletion", n[n.ContainsDynamicImport = 8388608] = "ContainsDynamicImport", n[n.ContainsClassFields = 16777216] = "ContainsClassFields", n[n.ContainsDecorators = 33554432] = "ContainsDecorators", n[n.ContainsPossibleTopLevelAwait = 67108864] = "ContainsPossibleTopLevelAwait", n[n.ContainsLexicalSuper = 134217728] = "ContainsLexicalSuper", n[n.ContainsUpdateExpressionForIdentifier = 268435456] = "ContainsUpdateExpressionForIdentifier", n[n.ContainsPrivateIdentifierInExpression = 536870912] = "ContainsPrivateIdentifierInExpression", n[n.HasComputedFlags = -2147483648] = "HasComputedFlags", n[n.AssertTypeScript = 1] = "AssertTypeScript", n[n.AssertJsx = 2] = "AssertJsx", n[n.AssertESNext = 4] = "AssertESNext", n[n.AssertES2022 = 8] = "AssertES2022", n[n.AssertES2021 = 16] = "AssertES2021", n[n.AssertES2020 = 32] = "AssertES2020", n[n.AssertES2019 = 64] = "AssertES2019", n[n.AssertES2018 = 128] = "AssertES2018", n[n.AssertES2017 = 256] = "AssertES2017", n[n.AssertES2016 = 512] = "AssertES2016", n[n.AssertES2015 = 1024] = "AssertES2015", n[n.AssertGenerator = 2048] = "AssertGenerator", n[n.AssertDestructuringAssignment = 4096] = "AssertDestructuringAssignment", n[n.OuterExpressionExcludes = -2147483648] = "OuterExpressionExcludes", n[n.PropertyAccessExcludes = -2147483648] = "PropertyAccessExcludes", n[n.NodeExcludes = -2147483648] = "NodeExcludes", n[n.ArrowFunctionExcludes = -2072174592] = "ArrowFunctionExcludes", n[n.FunctionExcludes = -1937940480] = "FunctionExcludes", n[n.ConstructorExcludes = -1937948672] = "ConstructorExcludes", n[n.MethodOrAccessorExcludes = -2005057536] = "MethodOrAccessorExcludes", n[n.PropertyExcludes = -2013249536] = "PropertyExcludes", n[n.ClassExcludes = -2147344384] = "ClassExcludes", n[n.ModuleExcludes = -1941676032] = "ModuleExcludes", n[n.TypeExcludes = -2] = "TypeExcludes", n[n.ObjectLiteralExcludes = -2147278848] = "ObjectLiteralExcludes", n[n.ArrayLiteralOrCallOrNewExcludes = -2147450880] = "ArrayLiteralOrCallOrNewExcludes", n[n.VariableDeclarationListExcludes = -2146893824] = "VariableDeclarationListExcludes", n[n.ParameterExcludes = -2147483648] = "ParameterExcludes", n[n.CatchClauseExcludes = -2147418112] = "CatchClauseExcludes", n[n.BindingPatternExcludes = -2147450880] = "BindingPatternExcludes", n[n.ContainsLexicalThisOrSuper = 134234112] = "ContainsLexicalThisOrSuper", n[n.PropertyNamePropagatingFlags = 134234112] = "PropertyNamePropagatingFlags", (n = e.SnippetKind || (e.SnippetKind = {}))[n.TabStop = 0] = "TabStop", n[n.Placeholder = 1] = "Placeholder", n[n.Choice = 2] = "Choice", n[n.Variable = 3] = "Variable", (n = e.EmitFlags || (e.EmitFlags = {}))[n.None = 0] = "None", n[n.SingleLine = 1] = "SingleLine", n[n.AdviseOnEmitNode = 2] = "AdviseOnEmitNode", n[n.NoSubstitution = 4] = "NoSubstitution", n[n.CapturesThis = 8] = "CapturesThis", n[n.NoLeadingSourceMap = 16] = "NoLeadingSourceMap", n[n.NoTrailingSourceMap = 32] = "NoTrailingSourceMap", n[n.NoSourceMap = 48] = "NoSourceMap", n[n.NoNestedSourceMaps = 64] = "NoNestedSourceMaps", n[n.NoTokenLeadingSourceMaps = 128] = "NoTokenLeadingSourceMaps", n[n.NoTokenTrailingSourceMaps = 256] = "NoTokenTrailingSourceMaps", n[n.NoTokenSourceMaps = 384] = "NoTokenSourceMaps", n[n.NoLeadingComments = 512] = "NoLeadingComments", n[n.NoTrailingComments = 1024] = "NoTrailingComments", n[n.NoComments = 1536] = "NoComments", n[n.NoNestedComments = 2048] = "NoNestedComments", n[n.HelperName = 4096] = "HelperName", n[n.ExportName = 8192] = "ExportName", n[n.LocalName = 16384] = "LocalName", n[n.InternalName = 32768] = "InternalName", n[n.Indented = 65536] = "Indented", n[n.NoIndentation = 131072] = "NoIndentation", n[n.AsyncFunctionBody = 262144] = "AsyncFunctionBody", n[n.ReuseTempVariableScope = 524288] = "ReuseTempVariableScope", n[n.CustomPrologue = 1048576] = "CustomPrologue", n[n.NoHoisting = 2097152] = "NoHoisting", n[n.HasEndOfDeclarationMarker = 4194304] = "HasEndOfDeclarationMarker", n[n.Iterator = 8388608] = "Iterator", n[n.NoAsciiEscaping = 16777216] = "NoAsciiEscaping", n[n.TypeScriptClassWrapper = 33554432] = "TypeScriptClassWrapper", n[n.NeverApplyImportHelper = 67108864] = "NeverApplyImportHelper", n[n.IgnoreSourceNewlines = 134217728] = "IgnoreSourceNewlines", n[n.Immutable = 268435456] = "Immutable", n[n.IndirectCall = 536870912] = "IndirectCall", (n = e.ExternalEmitHelpers || (e.ExternalEmitHelpers = {}))[n.Extends = 1] = "Extends", n[n.Assign = 2] = "Assign", n[n.Rest = 4] = "Rest", n[n.Decorate = 8] = "Decorate", n[n.Metadata = 16] = "Metadata", n[n.Param = 32] = "Param", n[n.Awaiter = 64] = "Awaiter", n[n.Generator = 128] = "Generator", n[n.Values = 256] = "Values", n[n.Read = 512] = "Read", n[n.SpreadArray = 1024] = "SpreadArray", n[n.Await = 2048] = "Await", n[n.AsyncGenerator = 4096] = "AsyncGenerator", n[n.AsyncDelegator = 8192] = "AsyncDelegator", n[n.AsyncValues = 16384] = "AsyncValues", n[n.ExportStar = 32768] = "ExportStar", n[n.ImportStar = 65536] = "ImportStar", n[n.ImportDefault = 131072] = "ImportDefault", n[n.MakeTemplateObject = 262144] = "MakeTemplateObject", n[n.ClassPrivateFieldGet = 524288] = "ClassPrivateFieldGet", n[n.ClassPrivateFieldSet = 1048576] = "ClassPrivateFieldSet", n[n.ClassPrivateFieldIn = 2097152] = "ClassPrivateFieldIn", n[n.CreateBinding = 4194304] = "CreateBinding", n[n.FirstEmitHelper = 1] = "FirstEmitHelper", n[n.LastEmitHelper = 4194304] = "LastEmitHelper", n[n.ForOfIncludes = 256] = "ForOfIncludes", n[n.ForAwaitOfIncludes = 16384] = "ForAwaitOfIncludes", n[n.AsyncGeneratorIncludes = 6144] = "AsyncGeneratorIncludes", n[n.AsyncDelegatorIncludes = 26624] = "AsyncDelegatorIncludes", n[n.SpreadIncludes = 1536] = "SpreadIncludes", (n = e.EmitHint || (e.EmitHint = {}))[n.SourceFile = 0] = "SourceFile", n[n.Expression = 1] = "Expression", n[n.IdentifierName = 2] = "IdentifierName", n[n.MappedTypeParameter = 3] = "MappedTypeParameter", n[n.Unspecified = 4] = "Unspecified", n[n.EmbeddedStatement = 5] = "EmbeddedStatement", n[n.JsxAttributeValue = 6] = "JsxAttributeValue", (n = e.OuterExpressionKinds || (e.OuterExpressionKinds = {}))[n.Parentheses = 1] = "Parentheses", n[n.TypeAssertions = 2] = "TypeAssertions", n[n.NonNullAssertions = 4] = "NonNullAssertions", n[n.PartiallyEmittedExpressions = 8] = "PartiallyEmittedExpressions", n[n.Assertions = 6] = "Assertions", n[n.All = 15] = "All", n[n.ExcludeJSDocTypeAssertion = 16] = "ExcludeJSDocTypeAssertion", (n = e.LexicalEnvironmentFlags || (e.LexicalEnvironmentFlags = {}))[n.None = 0] = "None", n[n.InParameters = 1] = "InParameters", n[n.VariablesHoistedInParameters = 2] = "VariablesHoistedInParameters", (n = e.BundleFileSectionKind || (e.BundleFileSectionKind = {})).Prologue = "prologue", n.EmitHelpers = "emitHelpers", n.NoDefaultLib = "no-default-lib", n.Reference = "reference", n.Type = "type", n.TypeResolutionModeRequire = "type-require", n.TypeResolutionModeImport = "type-import", n.Lib = "lib", n.Prepend = "prepend", n.Text = "text", n.Internal = "internal", (n = e.ListFormat || (e.ListFormat = {}))[n.None = 0] = "None", n[n.SingleLine = 0] = "SingleLine", n[n.MultiLine = 1] = "MultiLine", n[n.PreserveLines = 2] = "PreserveLines", n[n.LinesMask = 3] = "LinesMask", n[n.NotDelimited = 0] = "NotDelimited", n[n.BarDelimited = 4] = "BarDelimited", n[n.AmpersandDelimited = 8] = "AmpersandDelimited", n[n.CommaDelimited = 16] = "CommaDelimited", n[n.AsteriskDelimited = 32] = "AsteriskDelimited", n[n.DelimitersMask = 60] = "DelimitersMask", n[n.AllowTrailingComma = 64] = "AllowTrailingComma", n[n.Indented = 128] = "Indented", n[n.SpaceBetweenBraces = 256] = "SpaceBetweenBraces", n[n.SpaceBetweenSiblings = 512] = "SpaceBetweenSiblings", n[n.Braces = 1024] = "Braces", n[n.Parenthesis = 2048] = "Parenthesis", n[n.AngleBrackets = 4096] = "AngleBrackets", n[n.SquareBrackets = 8192] = "SquareBrackets", n[n.BracketsMask = 15360] = "BracketsMask", n[n.OptionalIfUndefined = 16384] = "OptionalIfUndefined", n[n.OptionalIfEmpty = 32768] = "OptionalIfEmpty", n[n.Optional = 49152] = "Optional", n[n.PreferNewLine = 65536] = "PreferNewLine", n[n.NoTrailingNewLine = 131072] = "NoTrailingNewLine", n[n.NoInterveningComments = 262144] = "NoInterveningComments", n[n.NoSpaceIfEmpty = 524288] = "NoSpaceIfEmpty", n[n.SingleElement = 1048576] = "SingleElement", n[n.SpaceAfterList = 2097152] = "SpaceAfterList", n[n.Modifiers = 2359808] = "Modifiers", n[n.HeritageClauses = 512] = "HeritageClauses", n[n.SingleLineTypeLiteralMembers = 768] = "SingleLineTypeLiteralMembers", n[n.MultiLineTypeLiteralMembers = 32897] = "MultiLineTypeLiteralMembers", n[n.SingleLineTupleTypeElements = 528] = "SingleLineTupleTypeElements", n[n.MultiLineTupleTypeElements = 657] = "MultiLineTupleTypeElements", n[n.UnionTypeConstituents = 516] = "UnionTypeConstituents", n[n.IntersectionTypeConstituents = 520] = "IntersectionTypeConstituents", n[n.ObjectBindingPatternElements = 525136] = "ObjectBindingPatternElements", n[n.ArrayBindingPatternElements = 524880] = "ArrayBindingPatternElements", n[n.ObjectLiteralExpressionProperties = 526226] = "ObjectLiteralExpressionProperties", n[n.ImportClauseEntries = 526226] = "ImportClauseEntries", n[n.ArrayLiteralExpressionElements = 8914] = "ArrayLiteralExpressionElements", n[n.CommaListElements = 528] = "CommaListElements", n[n.CallExpressionArguments = 2576] = "CallExpressionArguments", n[n.NewExpressionArguments = 18960] = "NewExpressionArguments", n[n.TemplateExpressionSpans = 262144] = "TemplateExpressionSpans", n[n.SingleLineBlockStatements = 768] = "SingleLineBlockStatements", n[n.MultiLineBlockStatements = 129] = "MultiLineBlockStatements", n[n.VariableDeclarationList = 528] = "VariableDeclarationList", n[n.SingleLineFunctionBodyStatements = 768] = "SingleLineFunctionBodyStatements", n[n.MultiLineFunctionBodyStatements = 1] = "MultiLineFunctionBodyStatements", n[n.ClassHeritageClauses = 0] = "ClassHeritageClauses", n[n.ClassMembers = 129] = "ClassMembers", n[n.InterfaceMembers = 129] = "InterfaceMembers", n[n.EnumMembers = 145] = "EnumMembers", n[n.CaseBlockClauses = 129] = "CaseBlockClauses", n[n.NamedImportsOrExportsElements = 525136] = "NamedImportsOrExportsElements", n[n.JsxElementOrFragmentChildren = 262144] = "JsxElementOrFragmentChildren", n[n.JsxElementAttributes = 262656] = "JsxElementAttributes", n[n.CaseOrDefaultClauseStatements = 163969] = "CaseOrDefaultClauseStatements", n[n.HeritageClauseTypes = 528] = "HeritageClauseTypes", n[n.SourceFileStatements = 131073] = "SourceFileStatements", n[n.Decorators = 2146305] = "Decorators", n[n.TypeArguments = 53776] = "TypeArguments", n[n.TypeParameters = 53776] = "TypeParameters", n[n.Parameters = 2576] = "Parameters", n[n.IndexSignatureParameters = 8848] = "IndexSignatureParameters", n[n.JSDocComment = 33] = "JSDocComment", (n = e.PragmaKindFlags || (e.PragmaKindFlags = {}))[n.None = 0] = "None", n[n.TripleSlashXML = 1] = "TripleSlashXML", n[n.SingleLine = 2] = "SingleLine", n[n.MultiLine = 4] = "MultiLine", n[n.All = 7] = "All", n[n.Default = 7] = "Default", e.commentPragmas = { + reference: { + args: [{ + name: "types", + optional: !0, + captureSpan: !0 + }, { + name: "lib", + optional: !0, + captureSpan: !0 + }, { + name: "path", + optional: !0, + captureSpan: !0 + }, { + name: "no-default-lib", + optional: !0 + }, { + name: "resolution-mode", + optional: !0 + }], + kind: 1 + }, + "amd-dependency": { + args: [{ + name: "path" + }, { + name: "name", + optional: !0 + }], + kind: 1 + }, + "amd-module": { + args: [{ + name: "name" + }], + kind: 1 + }, + "ts-check": { + kind: 2 + }, + "ts-nocheck": { + kind: 2 + }, + jsx: { + args: [{ + name: "factory" + }], + kind: 4 + }, + jsxfrag: { + args: [{ + name: "factory" + }], + kind: 4 + }, + jsximportsource: { + args: [{ + name: "factory" + }], + kind: 4 + }, + jsxruntime: { + args: [{ + name: "factory" + }], + kind: 4 + } + } + }(ts = ts || {}), ! function(w) { + function T(e) { + for (var t = 5381, r = 0; r < e.length; r++) t = (t << 5) + t + e.charCodeAt(r); + return t.toString() + } + var I, O; + + function f(e, t) { + return e.getModifiedTime(t) || w.missingFileModifiedTime + } + + function n(e) { + var t = {}; + return t[O.Low] = e.Low, t[O.Medium] = e.Medium, t[O.High] = e.High, t + } + w.generateDjb2Hash = T, w.setStackTraceLimit = function() { + Error.stackTraceLimit < 100 && (Error.stackTraceLimit = 100) + }, (r = I = w.FileWatcherEventKind || (w.FileWatcherEventKind = {}))[r.Created = 0] = "Created", r[r.Changed = 1] = "Changed", r[r.Deleted = 2] = "Deleted", (r = O = w.PollingInterval || (w.PollingInterval = {}))[r.High = 2e3] = "High", r[r.Medium = 500] = "Medium", r[r.Low = 250] = "Low", w.missingFileModifiedTime = new Date(0), w.getModifiedTime = f; + var t = { + Low: 32, + Medium: 64, + High: 256 + }, + g = n(t); + + function e(i) { + var r; + + function a(r) { + var n; + return e("Low"), e("Medium"), e("High"), n; + + function e(e) { + t = e; + var t = i.getEnvironmentVariable("".concat(r, "_").concat(t.toUpperCase())); + t && ((n = n || {})[e] = Number(t)) + } + } + + function e(e, t) { + e = a(e); + return (r || e) && n(e ? __assign(__assign({}, t), e) : t) + } + i.getEnvironmentVariable && (r = function(e, t) { + var r = a(e); + if (r) return n("Low"), n("Medium"), n("High"), !0; + return !1; + + function n(e) { + t[e] = r[e] || t[e] + } + }("TSC_WATCH_POLLINGINTERVAL", O), g = e("TSC_WATCH_POLLINGCHUNKSIZE", t) || g, w.unchangedPollThresholds = e("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS", t) || w.unchangedPollThresholds) + } + + function m(e, t, r, n, i) { + for (var a, o, s, c = r, l = t.length; n && l; ++r === t.length && (c < r && (t.length = c), c = r = 0), l--) { + var u, _ = t[r]; + _ && (_.isClosed || (n--, a = f(e, (u = _).fileName), s = o = void 0, o = u.mtime.getTime(), s = a.getTime(), u = o !== s && (u.mtime = a, u.callback(u.fileName, d(o, s), a), !0), _.isClosed) ? t[r] = void 0 : (null != i && i(_, r, u), t[r] && (c < r && (t[c] = _, t[r] = void 0), c++))) + } + return r + } + + function M(a) { + var i = [], + o = [], + t = e(O.Low), + r = e(O.Medium), + n = e(O.High); + return function(e, t, r) { + var n = { + fileName: e, + callback: t, + unchangedPolls: 0, + mtime: f(a, e) + }; + return i.push(n), _(n, r), { + close: function() { + n.isClosed = !0, w.unorderedRemoveItem(i, n) + } + } + }; + + function e(e) { + var t = []; + return t.pollingInterval = e, t.pollIndex = 0, t.pollScheduled = !1, t + } + + function s(e) { + e.pollIndex = l(e, e.pollingInterval, e.pollIndex, g[e.pollingInterval]), e.length ? p(e.pollingInterval) : (w.Debug.assert(0 === e.pollIndex), e.pollScheduled = !1) + } + + function c(e) { + l(o, O.Low, 0, o.length), s(e), !e.pollScheduled && o.length && p(O.Low) + } + + function l(n, i, e, t) { + return m(a, n, e, t, function(e, t, r) { + r ? (e.unchangedPolls = 0, n !== o && (n[t] = void 0, function(e) { + o.push(e), d(O.Low) + }(e))) : e.unchangedPolls !== w.unchangedPollThresholds[i] ? e.unchangedPolls++ : n === o ? (e.unchangedPolls = 1, n[t] = void 0, _(e, O.Low)) : i !== O.High && (e.unchangedPolls++, n[t] = void 0, _(e, i === O.Low ? O.Medium : O.High)) + }) + } + + function u(e) { + switch (e) { + case O.Low: + return t; + case O.Medium: + return r; + case O.High: + return n + } + } + + function _(e, t) { + u(t).push(e), d(t) + } + + function d(e) { + u(e).pollScheduled || p(e) + } + + function p(e) { + u(e).pollScheduled = a.setTimeout(e === O.Low ? c : s, e, u(e)) + } + } + + function L(s, e) { + var c = w.createMultiMap(), + l = new w.Map, + u = w.createGetCanonicalFileName(e); + return function(e, t, r, n) { + var i = u(e), + a = (c.add(i, t), w.getDirectoryPath(i) || "."), + o = l.get(a) || function(o, e, t) { + t = s(o, 1, function(e, t, r) { + if (w.isString(t)) { + var n = w.getNormalizedAbsolutePath(t, o), + t = n && c.get(u(n)); + if (t) + for (var i = 0, a = t; i < a.length; i++)(0, a[i])(n, I.Changed, r) + } + }, !1, O.Medium, t); + return t.referenceCount = 0, l.set(e, t), t + }(w.getDirectoryPath(e) || ".", a, n); + return o.referenceCount++, { + close: function() { + 1 === o.referenceCount ? (o.close(), l.delete(a)) : o.referenceCount--, c.remove(i, t) + } + } + } + } + + function R(n) { + var e, i = [], + t = 0; + return function(e, t) { + var r = { + fileName: e, + callback: t, + mtime: f(n, e) + }; + return i.push(r), a(), { + close: function() { + r.isClosed = !0, w.unorderedRemoveItem(i, r) + } + } + }; + + function r() { + e = void 0, t = m(n, i, t, g[O.Low]), a() + } + + function a() { + i.length && (e = e || n.setTimeout(r, O.High)) + } + } + + function B(i, e, t, r, n) { + var a = w.createGetCanonicalFileName(e)(t), + e = i.get(a); + return e ? e.callbacks.push(r) : i.set(a, { + watcher: n(function(t, r, n) { + var e; + return null == (e = i.get(a)) ? void 0 : e.callbacks.slice().forEach(function(e) { + return e(t, r, n) + }) + }), + callbacks: [r] + }), { + close: function() { + var e = i.get(a); + e && w.orderedRemoveItem(e.callbacks, r) && !e.callbacks.length && (i.delete(a), w.closeFileWatcherOf(e)) + } + } + } + + function d(e, t) { + return 0 === e ? I.Created : 0 === t ? I.Deleted : I.Changed + } + w.unchangedPollThresholds = n(t), w.getFileWatcherEventKind = d, w.ignoredPaths = ["/node_modules/.", "/.git", "/.#"]; + var r, i, a = w.noop; + + function C(e) { + return a(e) + } + + function j(e) { + var _, i = e.watchDirectory, + n = e.useCaseSensitiveFileNames, + t = e.getCurrentDirectory, + o = e.getAccessibleSortedChildDirectories, + d = e.fileSystemEntryExists, + s = e.realpath, + p = e.setTimeout, + f = e.clearTimeout, + g = new w.Map, + m = w.createMultiMap(), + y = new w.Map, + c = w.getStringComparer(!n), + h = w.createGetCanonicalFileName(n); + return function(e, t, r, n) { + return r ? l(e, n, t) : i(e, t, r, n) + }; + + function l(c, l, e) { + var u = h(c), + t = g.get(u), + r = (t ? t.refCount++ : (t = { + watcher: i(c, function(e) { + var t, r, n, i, a, o, s; + D(e, l) || (null != l && l.synchronousWatchDirectory ? (v(u, e), x(c, u, l)) : (t = c, r = u, e = e, n = l, (s = g.get(r)) && d(t, 1) ? (t = t, i = r, a = e, n = n, (o = y.get(i)) ? o.fileNames.push(a) : y.set(i, { + dirName: t, + options: n, + fileNames: [a] + }), _ && (f(_), _ = void 0), _ = p(b, 1e3)) : (v(r, e), function e(t) { + if (!t) return; + var r = t.childWatches; + t.childWatches = w.emptyArray; + for (var n = 0, i = r; n < i.length; n++) { + var a = i[n]; + a.close(), e(g.get(h(a.dirName))) + } + }(s)))) + }, !1, l), + refCount: 1, + childWatches: w.emptyArray + }, g.set(u, t), x(c, u, l)), e && { + dirName: c, + callback: e + }); + return r && m.add(u, r), { + dirName: c, + close: function() { + var e = w.Debug.checkDefined(g.get(u)); + r && m.remove(u, r), e.refCount--, e.refCount || (g.delete(u), w.closeFileWatcherOf(e), e.childWatches.forEach(w.closeFileWatcher)) + } + } + } + + function v(n, e, i) { + var a, o; + w.isString(e) ? a = e : o = e, m.forEach(function(e, t) { + var r; + o && !0 === o.get(t) || (t === n || w.startsWith(n, t) && n[t.length] === w.directorySeparator) && (o ? i ? (r = o.get(t)) ? r.push.apply(r, i) : o.set(t, i.slice()) : o.set(t, !0) : e.forEach(function(e) { + return (0, e.callback)(a) + })) + }) + } + + function b() { + _ = void 0, C("sysLog:: onTimerToUpdateChildWatches:: ".concat(y.size)); + for (var e = w.timestamp(), n = new w.Map; !_ && y.size;) { + var t = y.entries().next(), + t = (w.Debug.assert(!t.done), t.value), + r = t[0], + t = t[1], + i = t.dirName, + a = t.options, + t = t.fileNames, + i = (y.delete(r), x(i, r, a)); + v(r, n, i ? void 0 : t) + } + C("sysLog:: invokingWatchers:: Elapsed:: ".concat(w.timestamp() - e, "ms:: ").concat(y.size)), m.forEach(function(e, t) { + var r = n.get(t); + r && e.forEach(function(e) { + var t = e.callback, + e = e.dirName; + w.isArray(r) ? r.forEach(t) : t(e) + }) + }); + e = w.timestamp() - e; + C("sysLog:: Elapsed:: ".concat(e, "ms:: onTimerToUpdateChildWatches:: ").concat(y.size, " ").concat(_)) + } + + function x(t, e, r) { + var n, i, e = g.get(e); + return !!e && (i = w.enumerateInsertsAndDeletes(d(t, 1) ? w.mapDefined(o(t), function(e) { + e = w.getNormalizedAbsolutePath(e, t); + return D(e, r) || 0 !== c(e, w.normalizePath(s(e))) ? void 0 : e + }) : w.emptyArray, e.childWatches, function(e, t) { + return c(e, t.dirName) + }, function(e) { + a(l(e, r)) + }, w.closeFileWatcher, a), e.childWatches = n || w.emptyArray, i); + + function a(e) { + (n = n || []).push(e) + } + } + + function D(r, e) { + return w.some(w.ignoredPaths, function(e) { + return t = r, e = e, !!w.stringContains(t, e) || !n && w.stringContains(h(t), e); + var t + }) || u(r, e, n, t) + } + } + + function u(e, t, r, n) { + return ((null == t ? void 0 : t.excludeDirectories) || (null == t ? void 0 : t.excludeFiles)) && (w.matchesExclude(e, null == t ? void 0 : t.excludeFiles, r, n()) || w.matchesExclude(e, null == t ? void 0 : t.excludeDirectories, r, n())) + } + + function J(r, n, i, a, o) { + return function(e, t) { + "rename" === e && (e = t ? w.normalizePath(w.combinePaths(r, t)) : r, t && u(e, i, a, o) || n(e)) + } + } + + function E(e) { + var t, r, c, i, a = e.pollingWatchFileWorker, + b = e.getModifiedTime, + o = e.setTimeout, + s = e.clearTimeout, + x = e.fsWatchWorker, + D = e.fileSystemEntryExists, + l = e.useCaseSensitiveFileNames, + u = e.getCurrentDirectory, + _ = e.fsSupportsRecursiveFsWatch, + d = e.getAccessibleSortedChildDirectories, + p = e.realpath, + f = e.tscWatchFile, + g = e.useNonPollingWatchers, + m = e.tscWatchDirectory, + S = e.inodeWatching, + T = e.sysLog, + y = new w.Map, + n = new w.Map, + C = new w.Map, + E = !1; + return { + watchFile: k, + watchDirectory: function(e, t, r, n) { + if (_) return P(e, 1, J(e, t, n, l, u), r, O.Medium, w.getFallbackOptions(n)); + i = i || j({ + useCaseSensitiveFileNames: l, + getCurrentDirectory: u, + fileSystemEntryExists: D, + getAccessibleSortedChildDirectories: d, + watchDirectory: A, + realpath: p, + setTimeout: o, + clearTimeout: s + }); + return i(e, t, r, n) + } + }; + + function k(e, t, r, n) { + n = function(e, t) { + if (e && void 0 !== e.watchFile) return e; + switch (f) { + case "PriorityPollingInterval": + return { + watchFile: w.WatchFileKind.PriorityPollingInterval + }; + case "DynamicPriorityPolling": + return { + watchFile: w.WatchFileKind.DynamicPriorityPolling + }; + case "UseFsEvents": + return N(w.WatchFileKind.UseFsEvents, w.PollingWatchKind.PriorityInterval, e); + case "UseFsEventsWithFallbackDynamicPolling": + return N(w.WatchFileKind.UseFsEvents, w.PollingWatchKind.DynamicPriority, e); + case "UseFsEventsOnParentDirectory": + t = !0; + default: + return t ? N(w.WatchFileKind.UseFsEventsOnParentDirectory, w.PollingWatchKind.PriorityInterval, e) : { + watchFile: w.WatchFileKind.UseFsEvents + } + } + }(n, g); + var i, a, o, s = w.Debug.checkDefined(n.watchFile); + switch (s) { + case w.WatchFileKind.FixedPollingInterval: + return F(e, t, O.Low, void 0); + case w.WatchFileKind.PriorityPollingInterval: + return F(e, t, r, void 0); + case w.WatchFileKind.DynamicPriorityPolling: + return h()(e, t, r, void 0); + case w.WatchFileKind.FixedChunkSizePolling: + return v()(e, t, void 0, void 0); + case w.WatchFileKind.UseFsEvents: + return P(e, 0, (i = e, a = t, o = b, function(e, t, r) { + "rename" === e ? (r = r || o(i) || w.missingFileModifiedTime, a(i, r !== w.missingFileModifiedTime ? I.Created : I.Deleted, r)) : a(i, I.Changed, r) + }), !1, r, w.getFallbackOptions(n)); + case w.WatchFileKind.UseFsEventsOnParentDirectory: + return (c = c || L(P, l))(e, t, r, w.getFallbackOptions(n)); + default: + w.Debug.assertNever(s) + } + } + + function h() { + return t = t || M({ + getModifiedTime: b, + setTimeout: o + }) + } + + function v() { + return r = r || R({ + getModifiedTime: b, + setTimeout: o + }) + } + + function N(e, t, r) { + r = null == r ? void 0 : r.fallbackPolling; + return { + watchFile: e, + fallbackPolling: void 0 === r ? t : r + } + } + + function A(e, t, r, n) { + w.Debug.assert(!r); + var i = function(e) { + if (e && void 0 !== e.watchDirectory) return e; + switch (m) { + case "RecursiveDirectoryUsingFsWatchFile": + return { + watchDirectory: w.WatchDirectoryKind.FixedPollingInterval + }; + case "RecursiveDirectoryUsingDynamicPriorityPolling": + return { + watchDirectory: w.WatchDirectoryKind.DynamicPriorityPolling + }; + default: + var t = null == e ? void 0 : e.fallbackPolling; + return { + watchDirectory: w.WatchDirectoryKind.UseFsEvents, + fallbackPolling: void 0 !== t ? t : void 0 + } + } + }(n), + a = w.Debug.checkDefined(i.watchDirectory); + switch (a) { + case w.WatchDirectoryKind.FixedPollingInterval: + return F(e, function() { + return t(e) + }, O.Medium, void 0); + case w.WatchDirectoryKind.DynamicPriorityPolling: + return h()(e, function() { + return t(e) + }, O.Medium, void 0); + case w.WatchDirectoryKind.FixedChunkSizePolling: + return v()(e, function() { + return t(e) + }, void 0, void 0); + case w.WatchDirectoryKind.UseFsEvents: + return P(e, 1, J(e, t, n, l, u), r, O.Medium, w.getFallbackOptions(i)); + default: + w.Debug.assertNever(a) + } + } + + function F(t, e, r, n) { + return B(y, l, t, e, function(e) { + return a(t, e, r, n) + }) + } + + function P(g, m, e, y, h, v) { + return B(y ? C : n, l, g, e, function(e) { + return s = g, n = m, c = e, l = y, u = h, _ = v, S && (d = s.substring(s.lastIndexOf(w.directorySeparator)), p = d.slice(w.directorySeparator.length)), f = (D(s, n) ? a : o)(), { + close: function() { + f && (f.close(), f = void 0) + } + }; + + function i(e) { + f && (T("sysLog:: ".concat(s, ":: Changing watcher to ").concat(e === a ? "Present" : "Missing", "FileSystemEntryWatcher")), f.close(), f = e()) + } + + function a() { + if (E) return T("sysLog:: ".concat(s, ":: Defaulting to watchFile")), r(); + try { + var e = x(s, l, S ? t : c); + return e.on("error", function() { + c("rename", ""), i(o) + }), e + } catch (e) { + return E = E || "ENOSPC" === e.code, T("sysLog:: ".concat(s, ":: Changing to watchFile")), r() + } + } + + function t(e, t) { + var r, n; + t && w.endsWith(t, "~") && (t = (r = t).slice(0, t.length - 1)), "rename" !== e || t && t !== p && !w.endsWith(t, d) ? (r && c(e, r), c(e, t)) : (n = b(s) || w.missingFileModifiedTime, r && c(e, r, n), c(e, t, n), S ? i(n === w.missingFileModifiedTime ? o : a) : n === w.missingFileModifiedTime && i(o)) + } + + function r() { + return k(s, (n = c, function(e, t, r) { + return n(t === I.Changed ? "change" : "rename", "", r) + }), u, _); + var n + } + + function o() { + return k(s, function(e, t, r) { + t === I.Created && (r = r || b(s) || w.missingFileModifiedTime) !== w.missingFileModifiedTime && (c("rename", "", r), i(a)) + }, u, _) + } + var s, n, c, l, u, _, d, p, f + }) + } + } + + function o(n) { + var i = n.writeFile; + n.writeFile = function(e, t, r) { + return w.writeFileEnsuringDirectories(e, t, !!r, function(e, t, r) { + return i.call(n, e, t, r) + }, function(e) { + return n.createDirectory(e) + }, function(e) { + return n.directoryExists(e) + }) + } + } + + function k() { + if ("undefined" != typeof process) { + var e = process.version; + if (e) { + var t = e.indexOf("."); + if (-1 !== t) return parseInt(e.substring(1, t)) + } + } + } + + function s() { + var r, a, l = /^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/, + u = require("fs"), + o = require("path"), + e = require("os"); + try { + r = require("crypto") + } catch (e) { + r = void 0 + } + var s = "./profile.cpuprofile", + n = require("buffer").Buffer, + t = 4 <= k(), + i = "linux" === process.platform || "darwin" === process.platform, + c = e.platform(), + _ = "win32" !== c && "win64" !== c && !b(function(e) { + return e.replace(/\w/g, function(e) { + var t = e.toUpperCase(); + return e === t ? e.toLowerCase() : t + }) + }(__filename)), + d = u.realpathSync.native ? "win32" === process.platform ? function(e) { + return e.length < 260 ? u.realpathSync.native(e) : u.realpathSync(e) + } : u.realpathSync.native : u.realpathSync, + p = t && ("win32" === process.platform || "darwin" === process.platform), + c = w.memoize(function() { + return process.cwd() + }), + t = E({ + pollingWatchFileWorker: function(n, i, e) { + var a; + return u.watchFile(n, { + persistent: !0, + interval: e + }, t), { + close: function() { + return u.unwatchFile(n, t) + } + }; + + function t(e, t) { + var r = 0 == +t.mtime || a === I.Deleted; + if (0 == +e.mtime) { + if (r) return; + a = I.Deleted + } else if (r) a = I.Created; + else { + if (+e.mtime == +t.mtime) return; + a = I.Changed + } + i(n, a, e.mtime) + } + }, + getModifiedTime: D, + setTimeout: setTimeout, + clearTimeout: clearTimeout, + fsWatchWorker: function(e, t, r) { + return u.watch(e, p ? { + persistent: !0, + recursive: !!t + } : { + persistent: !0 + }, r) + }, + useCaseSensitiveFileNames: _, + getCurrentDirectory: c, + fileSystemEntryExists: v, + fsSupportsRecursiveFsWatch: p, + getAccessibleSortedChildDirectories: function(e) { + return h(e).directories + }, + realpath: x, + tscWatchFile: process.env.TSC_WATCHFILE, + useNonPollingWatchers: process.env.TSC_NONPOLLING_WATCHER, + tscWatchDirectory: process.env.TSC_WATCHDIRECTORY, + inodeWatching: i, + sysLog: C + }), + i = t.watchFile, + t = t.watchDirectory, + f = { + args: process.argv.slice(2), + newLine: e.EOL, + useCaseSensitiveFileNames: _, + write: function(e) { + process.stdout.write(e) + }, + getWidthOfTerminal: function() { + return process.stdout.columns + }, + writeOutputIsTTY: function() { + return process.stdout.isTTY + }, + readFile: function(e, t) { + w.perfLogger.logStartReadFile(e); + e = function(e) { + var t; + try { + t = u.readFileSync(e) + } catch (e) { + return + } + var r = t.length; + if (2 <= r && 254 === t[0] && 255 === t[1]) { + r &= -2; + for (var n = 0; n < r; n += 2) { + var i = t[n]; + t[n] = t[n + 1], t[n + 1] = i + } + return t.toString("utf16le", 2) + } + if (2 <= r && 255 === t[0] && 254 === t[1]) return t.toString("utf16le", 2); + if (3 <= r && 239 === t[0] && 187 === t[1] && 191 === t[2]) return t.toString("utf8", 3); + return t.toString("utf8") + }(e); + return w.perfLogger.logStopReadFile(), e + }, + writeFile: function(e, t, r) { + w.perfLogger.logEvent("WriteFile: " + e), r && (t = "\ufeff" + t); + var n; + try { + n = u.openSync(e, "w"), u.writeSync(n, t, void 0, "utf8") + } finally { + void 0 !== n && u.closeSync(n) + } + }, + watchFile: i, + watchDirectory: t, + resolvePath: function(e) { + return o.resolve(e) + }, + fileExists: b, + directoryExists: function(e) { + return v(e, 1) + }, + createDirectory: function(e) { + if (!f.directoryExists(e)) try { + u.mkdirSync(e) + } catch (e) { + if ("EEXIST" !== e.code) throw e + } + }, + getExecutingFilePath: function() { + return __filename + }, + getCurrentDirectory: c, + getDirectories: function(e) { + return h(e).directories.slice() + }, + getEnvironmentVariable: function(e) { + return process.env[e] || "" + }, + readDirectory: function(e, t, r, n, i) { + return w.matchFiles(e, t, r, n, _, process.cwd(), i, h, x) + }, + getModifiedTime: D, + setModifiedTime: function(e, t) { + try { + u.utimesSync(e, t, t) + } catch (e) {} + }, + deleteFile: function(e) { + try { + return u.unlinkSync(e) + } catch (e) {} + }, + createHash: r ? S : T, + createSHA256Hash: r ? S : void 0, + getMemoryUsage: function() { + return global.gc && global.gc(), process.memoryUsage().heapUsed + }, + getFileSize: function(e) { + try { + var t = g(e); + if (null != t && t.isFile()) return t.size + } catch (e) {} + return 0 + }, + exit: function(e) { + m(function() { + process.exit(e) + }) + }, + enableCPUProfiler: function(e, t) { + if (!a) { + var r, n = require("inspector"); + if (n && n.Session) return (r = new n.Session).connect(), r.post("Profiler.enable", function() { + r.post("Profiler.start", function() { + a = r, s = e, t() + }) + }), !0 + } + return t(), !1 + }, + disableCPUProfiler: m, + cpuProfilingEnabled: function() { + return !!a || w.contains(process.execArgv, "--cpu-prof") || w.contains(process.execArgv, "--prof") + }, + realpath: x, + debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || w.some(process.execArgv, function(e) { + return /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e) + }), + tryEnableSourceMapsForHost: function() { + try { + require("source-map-support").install() + } catch (e) {} + }, + setTimeout: setTimeout, + clearTimeout: clearTimeout, + clearScreen: function() { + process.stdout.write("c") + }, + setBlocking: function() { + process.stdout && process.stdout._handle && process.stdout._handle.setBlocking && process.stdout._handle.setBlocking(!0) + }, + bufferFrom: y, + base64decode: function(e) { + return y(e, "base64").toString("utf8") + }, + base64encode: function(e) { + return y(e).toString("base64") + }, + require: function(e, t) { + try { + var r = w.resolveJSModule(t, e, f); + return { + module: require(r), + modulePath: r, + error: void 0 + } + } catch (e) { + return { + module: void 0, + modulePath: void 0, + error: e + } + } + } + }; + return f; + + function g(e) { + return u.statSync(e, { + throwIfNoEntry: !1 + }) + } + + function m(n) { + var i; + return a && "stopping" !== a ? ((i = a).post("Profiler.stop", function(e, t) { + var r, t = t.profile; + if (!e) { + try { + null != (r = g(s)) && r.isDirectory() && (s = o.join(s, "".concat((new Date).toISOString().replace(/:/g, "-"), "+P").concat(process.pid, ".cpuprofile"))) + } catch (e) {} + try { + u.mkdirSync(o.dirname(s), { + recursive: !0 + }) + } catch (e) {} + u.writeFileSync(s, JSON.stringify(function(e) { + for (var t = 0, r = new w.Map, n = w.normalizeSlashes(__dirname), i = "file://".concat(1 === w.getRootLength(n) ? "" : "/").concat(n), a = 0, o = e.nodes; a < o.length; a++) { + var s, c = o[a]; + c.callFrame.url && (s = w.normalizeSlashes(c.callFrame.url), w.containsPath(i, s, _) ? c.callFrame.url = w.getRelativePathToDirectoryOrUrl(i, s, i, w.createGetCanonicalFileName(_), !0) : l.test(s) || (c.callFrame.url = (r.has(s) ? r : r.set(s, "external".concat(t, ".js"))).get(s), t++)) + } + return e + }(t))) + } + a = void 0, i.disconnect(), n() + }), a = "stopping", !0) : (n(), !1) + } + + function y(e, t) { + return n.from && n.from !== Int8Array.from ? n.from(e, t) : new n(e, t) + } + + function h(e) { + w.perfLogger.logEvent("ReadDir: " + (e || ".")); + try { + for (var t = u.readdirSync(e || ".", { + withFileTypes: !0 + }), r = [], n = [], i = 0, a = t; i < a.length; i++) { + var o = a[i], + s = "string" == typeof o ? o : o.name; + if ("." !== s && ".." !== s) { + var c = void 0; + if ("string" == typeof o || o.isSymbolicLink()) { + var l = w.combinePaths(e, s); + try { + if (!(c = g(l))) continue + } catch (e) { + continue + } + } else c = o; + c.isFile() ? r.push(s) : c.isDirectory() && n.push(s) + } + } + return r.sort(), n.sort(), { + files: r, + directories: n + } + } catch (e) { + return w.emptyFileSystemEntries + } + } + + function v(e, t) { + var r = Error.stackTraceLimit; + Error.stackTraceLimit = 0; + try { + var n = g(e); + if (!n) return !1; + switch (t) { + case 0: + return n.isFile(); + case 1: + return n.isDirectory(); + default: + return !1 + } + } catch (e) { + return !1 + } finally { + Error.stackTraceLimit = r + } + } + + function b(e) { + return v(e, 0) + } + + function x(t) { + try { + return d(t) + } catch (e) { + return t + } + } + + function D(e) { + var t, r = Error.stackTraceLimit; + Error.stackTraceLimit = 0; + try { + return null == (t = g(e)) ? void 0 : t.mtime + } catch (e) {} finally { + Error.stackTraceLimit = r + } + } + + function S(e) { + var t = r.createHash("sha256"); + return t.update(e), t.digest("hex") + } + } + w.sysLog = C, w.setSysLog = function(e) { + a = e + }, (r = w.FileSystemEntryKind || (w.FileSystemEntryKind = {}))[r.File = 0] = "File", r[r.Directory = 1] = "Directory", w.createSystemWatchFunctions = E, w.patchWriteFileEnsuringDirectory = o, w.getNodeMajorVersion = k, w.sys = ((i = "undefined" != typeof process && process.nextTick && !process.browser && "undefined" != typeof require ? s() : i) && o(i), i), w.setSys = function(e) { + w.sys = e + }, w.sys && w.sys.getEnvironmentVariable && (e(w.sys), w.Debug.setAssertionLevel(/^development$/i.test(w.sys.getEnvironmentVariable("NODE_ENV")) ? 1 : 0)), w.sys && w.sys.debugMode && (w.Debug.isDebugging = !0) + }(ts = ts || {}), ! function(_) { + _.directorySeparator = "/", _.altDirectorySeparator = "\\"; + var i = "://", + t = /\\/g; + + function r(e) { + return 47 === e || 92 === e + } + + function a(e) { + return 0 < u(e) + } + + function n(e) { + return 0 !== u(e) + } + + function o(e) { + return /^\.\.?($|[\\/])/.test(e) + } + + function s(e, t) { + return e.length > t.length && _.endsWith(e, t) + } + + function c(e) { + return 0 < e.length && r(e.charCodeAt(e.length - 1)) + } + + function l(e) { + return 97 <= e && e <= 122 || 65 <= e && e <= 90 + } + + function u(e) { + if (!e) return 0; + var t = e.charCodeAt(0); + if (47 === t || 92 === t) return e.charCodeAt(1) !== t ? 1 : (r = e.indexOf(47 === t ? _.directorySeparator : _.altDirectorySeparator, 2)) < 0 ? e.length : r + 1; + if (l(t) && 58 === e.charCodeAt(1)) { + var r = e.charCodeAt(2); + if (47 === r || 92 === r) return 3; + if (2 === e.length) return 2 + } + t = e.indexOf(i); + if (-1 === t) return 0; + var r = t + i.length, + n = e.indexOf(_.directorySeparator, r); + if (-1 === n) return ~e.length; + t = e.slice(0, t), r = e.slice(r, n); + if ("file" === t && ("" === r || "localhost" === r) && l(e.charCodeAt(n + 1))) { + t = function(e, t) { + var r = e.charCodeAt(t); + if (58 === r) return t + 1; + if (37 === r && 51 === e.charCodeAt(t + 1)) { + r = e.charCodeAt(t + 2); + if (97 === r || 65 === r) return t + 3 + } + return -1 + }(e, n + 2); + if (-1 !== t) { + if (47 === e.charCodeAt(t)) return ~(t + 1); + if (t === e.length) return ~t + } + } + return ~(n + 1) + } + + function d(e) { + e = u(e); + return e < 0 ? ~e : e + } + + function p(e) { + var t = d(e = v(e)); + return t === e.length ? e : (e = E(e)).slice(0, Math.max(t, e.lastIndexOf(_.directorySeparator))) + } + + function f(e, t, r) { + return d(e = v(e)) === e.length ? "" : (e = (e = E(e)).slice(Math.max(d(e), e.lastIndexOf(_.directorySeparator) + 1)), (t = void 0 !== t && void 0 !== r ? m(e, t, r) : void 0) ? e.slice(0, e.length - t.length) : e) + } + + function g(e, t, r) { + if (_.startsWith(t, ".") || (t = "." + t), e.length >= t.length && 46 === e.charCodeAt(e.length - t.length)) { + e = e.slice(e.length - t.length); + if (r(e, t)) return e + } + } + + function m(e, t, r) { + if (t) { + var n = E(e), + i = r ? _.equateStringsCaseInsensitive : _.equateStringsCaseSensitive; + if ("string" == typeof t) return g(n, t, i) || ""; + for (var a = 0, o = t; a < o.length; a++) { + var s = g(n, o[a], i); + if (s) return s + } + return "" + } + r = f(e), t = r.lastIndexOf("."); + return 0 <= t ? r.substring(t) : "" + } + + function y(e, t) { + return e = x(t = void 0 === t ? "" : t, e), e = d(t = e), r = t.substring(0, e), (t = t.substring(e).split(_.directorySeparator)).length && !_.lastOrUndefined(t) && t.pop(), __spreadArray([r], t, !0); + var r + } + + function h(e) { + return 0 === e.length ? "" : (e[0] && k(e[0])) + e.slice(1).join(_.directorySeparator) + } + + function v(e) { + return -1 !== e.indexOf("\\") ? e.replace(t, _.directorySeparator) : e + } + + function b(e) { + if (!_.some(e)) return []; + for (var t = [e[0]], r = 1; r < e.length; r++) { + var n = e[r]; + if (n && "." !== n) { + if (".." === n) + if (1 < t.length) { + if (".." !== t[t.length - 1]) { + t.pop(); + continue + } + } else if (t[0]) continue; + t.push(n) + } + } + return t + } + + function x(e) { + for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; + e = e && v(e); + for (var n = 0, i = t; n < i.length; n++) { + var a = i[n]; + a && (a = v(a), e = e && 0 === d(a) ? k(e) + a : a) + } + return e + } + + function D(e) { + for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; + return C(_.some(t) ? x.apply(void 0, __spreadArray([e], t, !1)) : v(e)) + } + + function S(e, t) { + return b(y(e, t)) + } + + function T(e, t) { + return h(S(e, t)) + } + + function C(e) { + var t; + return e = v(e), A.test(e) && ((t = e.replace(/\/\.\//g, "/").replace(/^\.\//, "")) === e || A.test(e = t)) ? (t = h(b(y(e)))) && c(e) ? k(t) : t : e + } + + function E(e) { + return c(e) ? e.substr(0, e.length - 1) : e + } + + function k(e) { + return c(e) ? e : e + _.directorySeparator + } + + function N(e) { + return n(e) || o(e) ? e : "./" + e + } + _.isAnyDirectorySeparator = r, _.isUrl = function(e) { + return u(e) < 0 + }, _.isRootedDiskPath = a, _.isDiskPathRoot = function(e) { + var t = u(e); + return 0 < t && t === e.length + }, _.pathIsAbsolute = n, _.pathIsRelative = o, _.pathIsBareSpecifier = function(e) { + return !n(e) && !o(e) + }, _.hasExtension = function(e) { + return _.stringContains(f(e), ".") + }, _.fileExtensionIs = s, _.fileExtensionIsOneOf = function(e, t) { + for (var r = 0, n = t; r < n.length; r++) + if (s(e, n[r])) return !0; + return !1 + }, _.hasTrailingDirectorySeparator = c, _.getRootLength = d, _.getDirectoryPath = p, _.getBaseFileName = f, _.getAnyExtensionFromPath = m, _.getPathComponents = y, _.getPathFromPathComponents = h, _.normalizeSlashes = v, _.reducePathComponents = b, _.combinePaths = x, _.resolvePath = D, _.getNormalizedPathComponents = S, _.getNormalizedAbsolutePath = T, _.normalizePath = C, _.getNormalizedAbsolutePathWithoutRoot = function(e, t) { + return 0 === (e = S(e, t)).length ? "" : e.slice(1).join(_.directorySeparator) + }, _.toPath = function(e, t, r) { + return r(a(e) ? C(e) : T(e, t)) + }, _.removeTrailingDirectorySeparator = E, _.ensureTrailingDirectorySeparator = k, _.ensurePathIsNonModuleName = N, _.changeAnyExtension = function(e, t, r, n) { + return (r = void 0 !== r && void 0 !== n ? m(e, r, n) : m(e)) ? e.slice(0, e.length - r.length) + (_.startsWith(t, ".") ? t : "." + t) : e + }; + var A = /(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/; + + function F(e, t, r) { + if (e === t) return 0; + if (void 0 === e) return -1; + if (void 0 === t) return 1; + var n = e.substring(0, d(e)), + i = t.substring(0, d(t)), + a = _.compareStringsCaseInsensitive(n, i); + if (0 !== a) return a; + a = e.substring(n.length), n = t.substring(i.length); + if (!A.test(a) && !A.test(n)) return r(a, n); + for (var o = b(y(e)), s = b(y(t)), c = Math.min(o.length, s.length), l = 1; l < c; l++) { + var u = r(o[l], s[l]); + if (0 !== u) return u + } + return _.compareValues(o.length, s.length) + } + + function P(e, t, r, n) { + for (var i = b(y(e)), a = b(y(t)), o = 0; o < i.length && o < a.length; o++) { + var s = n(i[o]), + c = n(a[o]); + if (!(0 === o ? _.equateStringsCaseInsensitive : r)(s, c)) break + } + if (0 === o) return a; + for (var e = a.slice(o), l = []; o < i.length; o++) l.push(".."); + return __spreadArray(__spreadArray([""], l, !0), e, !0) + } + + function w(e, t, r) { + _.Debug.assert(0 < d(e) == 0 < d(t), "Paths must either both be absolute or both be relative"); + var n = "function" == typeof r ? r : _.identity; + return h(P(e, t, "boolean" == typeof r && r ? _.equateStringsCaseInsensitive : _.equateStringsCaseSensitive, n)) + } + + function I(e, t, r, n, i) { + e = P(D(r, e), D(r, t), _.equateStringsCaseSensitive, n), r = e[0]; + return i && a(r) && (t = r.charAt(0) === _.directorySeparator ? "file://" : "file:///", e[0] = t + r), h(e) + } + _.comparePathsCaseSensitive = function(e, t) { + return F(e, t, _.compareStringsCaseSensitive) + }, _.comparePathsCaseInsensitive = function(e, t) { + return F(e, t, _.compareStringsCaseInsensitive) + }, _.comparePaths = function(e, t, r, n) { + return "string" == typeof r ? (e = x(r, e), t = x(r, t)) : "boolean" == typeof r && (n = r), F(e, t, _.getStringComparer(n)) + }, _.containsPath = function(e, t, r, n) { + if ("string" == typeof r ? (e = x(r, e), t = x(r, t)) : "boolean" == typeof r && (n = r), void 0 === e || void 0 === t) return !1; + if (e !== t) { + var i = b(y(e)), + a = b(y(t)); + if (a.length < i.length) return !1; + for (var o = n ? _.equateStringsCaseInsensitive : _.equateStringsCaseSensitive, s = 0; s < i.length; s++) + if (!(0 === s ? _.equateStringsCaseInsensitive : o)(i[s], a[s])) return !1 + } + return !0 + }, _.startsWithDirectory = function(e, t, r) { + return e = r(e), r = r(t), _.startsWith(e, r + "/") || _.startsWith(e, r + "\\") + }, _.getPathComponentsRelativeTo = P, _.getRelativePathFromDirectory = w, _.convertToRelativePath = function(e, t, r) { + return a(e) ? I(t, e, t, r, !1) : e + }, _.getRelativePathFromFile = function(e, t, r) { + return N(w(p(e), t, r)) + }, _.getRelativePathToDirectoryOrUrl = I, _.forEachAncestorDirectory = function(e, t) { + for (;;) { + var r = t(e); + if (void 0 !== r) return r; + r = p(e); + if (r === e) return; + e = r + } + }, _.isNodeModulesDirectory = function(e) { + return _.endsWith(e, "/node_modules") + } + }(ts = ts || {}), ! function(e) { + function t(e, t, r, n, i, a, o) { + return { + code: e, + category: t, + key: r, + message: n, + reportsUnnecessary: i, + elidedInCompatabilityPyramid: a, + reportsDeprecated: o + } + } + e.Diagnostics = { + Unterminated_string_literal: t(1002, e.DiagnosticCategory.Error, "Unterminated_string_literal_1002", "Unterminated string literal."), + Identifier_expected: t(1003, e.DiagnosticCategory.Error, "Identifier_expected_1003", "Identifier expected."), + _0_expected: t(1005, e.DiagnosticCategory.Error, "_0_expected_1005", "'{0}' expected."), + A_file_cannot_have_a_reference_to_itself: t(1006, e.DiagnosticCategory.Error, "A_file_cannot_have_a_reference_to_itself_1006", "A file cannot have a reference to itself."), + The_parser_expected_to_find_a_1_to_match_the_0_token_here: t(1007, e.DiagnosticCategory.Error, "The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007", "The parser expected to find a '{1}' to match the '{0}' token here."), + Trailing_comma_not_allowed: t(1009, e.DiagnosticCategory.Error, "Trailing_comma_not_allowed_1009", "Trailing comma not allowed."), + Asterisk_Slash_expected: t(1010, e.DiagnosticCategory.Error, "Asterisk_Slash_expected_1010", "'*/' expected."), + An_element_access_expression_should_take_an_argument: t(1011, e.DiagnosticCategory.Error, "An_element_access_expression_should_take_an_argument_1011", "An element access expression should take an argument."), + Unexpected_token: t(1012, e.DiagnosticCategory.Error, "Unexpected_token_1012", "Unexpected token."), + A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma: t(1013, e.DiagnosticCategory.Error, "A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013", "A rest parameter or binding pattern may not have a trailing comma."), + A_rest_parameter_must_be_last_in_a_parameter_list: t(1014, e.DiagnosticCategory.Error, "A_rest_parameter_must_be_last_in_a_parameter_list_1014", "A rest parameter must be last in a parameter list."), + Parameter_cannot_have_question_mark_and_initializer: t(1015, e.DiagnosticCategory.Error, "Parameter_cannot_have_question_mark_and_initializer_1015", "Parameter cannot have question mark and initializer."), + A_required_parameter_cannot_follow_an_optional_parameter: t(1016, e.DiagnosticCategory.Error, "A_required_parameter_cannot_follow_an_optional_parameter_1016", "A required parameter cannot follow an optional parameter."), + An_index_signature_cannot_have_a_rest_parameter: t(1017, e.DiagnosticCategory.Error, "An_index_signature_cannot_have_a_rest_parameter_1017", "An index signature cannot have a rest parameter."), + An_index_signature_parameter_cannot_have_an_accessibility_modifier: t(1018, e.DiagnosticCategory.Error, "An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018", "An index signature parameter cannot have an accessibility modifier."), + An_index_signature_parameter_cannot_have_a_question_mark: t(1019, e.DiagnosticCategory.Error, "An_index_signature_parameter_cannot_have_a_question_mark_1019", "An index signature parameter cannot have a question mark."), + An_index_signature_parameter_cannot_have_an_initializer: t(1020, e.DiagnosticCategory.Error, "An_index_signature_parameter_cannot_have_an_initializer_1020", "An index signature parameter cannot have an initializer."), + An_index_signature_must_have_a_type_annotation: t(1021, e.DiagnosticCategory.Error, "An_index_signature_must_have_a_type_annotation_1021", "An index signature must have a type annotation."), + An_index_signature_parameter_must_have_a_type_annotation: t(1022, e.DiagnosticCategory.Error, "An_index_signature_parameter_must_have_a_type_annotation_1022", "An index signature parameter must have a type annotation."), + readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature: t(1024, e.DiagnosticCategory.Error, "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024", "'readonly' modifier can only appear on a property declaration or index signature."), + An_index_signature_cannot_have_a_trailing_comma: t(1025, e.DiagnosticCategory.Error, "An_index_signature_cannot_have_a_trailing_comma_1025", "An index signature cannot have a trailing comma."), + Accessibility_modifier_already_seen: t(1028, e.DiagnosticCategory.Error, "Accessibility_modifier_already_seen_1028", "Accessibility modifier already seen."), + _0_modifier_must_precede_1_modifier: t(1029, e.DiagnosticCategory.Error, "_0_modifier_must_precede_1_modifier_1029", "'{0}' modifier must precede '{1}' modifier."), + _0_modifier_already_seen: t(1030, e.DiagnosticCategory.Error, "_0_modifier_already_seen_1030", "'{0}' modifier already seen."), + _0_modifier_cannot_appear_on_class_elements_of_this_kind: t(1031, e.DiagnosticCategory.Error, "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031", "'{0}' modifier cannot appear on class elements of this kind."), + super_must_be_followed_by_an_argument_list_or_member_access: t(1034, e.DiagnosticCategory.Error, "super_must_be_followed_by_an_argument_list_or_member_access_1034", "'super' must be followed by an argument list or member access."), + Only_ambient_modules_can_use_quoted_names: t(1035, e.DiagnosticCategory.Error, "Only_ambient_modules_can_use_quoted_names_1035", "Only ambient modules can use quoted names."), + Statements_are_not_allowed_in_ambient_contexts: t(1036, e.DiagnosticCategory.Error, "Statements_are_not_allowed_in_ambient_contexts_1036", "Statements are not allowed in ambient contexts."), + A_declare_modifier_cannot_be_used_in_an_already_ambient_context: t(1038, e.DiagnosticCategory.Error, "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038", "A 'declare' modifier cannot be used in an already ambient context."), + Initializers_are_not_allowed_in_ambient_contexts: t(1039, e.DiagnosticCategory.Error, "Initializers_are_not_allowed_in_ambient_contexts_1039", "Initializers are not allowed in ambient contexts."), + _0_modifier_cannot_be_used_in_an_ambient_context: t(1040, e.DiagnosticCategory.Error, "_0_modifier_cannot_be_used_in_an_ambient_context_1040", "'{0}' modifier cannot be used in an ambient context."), + _0_modifier_cannot_be_used_here: t(1042, e.DiagnosticCategory.Error, "_0_modifier_cannot_be_used_here_1042", "'{0}' modifier cannot be used here."), + _0_modifier_cannot_appear_on_a_module_or_namespace_element: t(1044, e.DiagnosticCategory.Error, "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044", "'{0}' modifier cannot appear on a module or namespace element."), + Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier: t(1046, e.DiagnosticCategory.Error, "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046", "Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."), + A_rest_parameter_cannot_be_optional: t(1047, e.DiagnosticCategory.Error, "A_rest_parameter_cannot_be_optional_1047", "A rest parameter cannot be optional."), + A_rest_parameter_cannot_have_an_initializer: t(1048, e.DiagnosticCategory.Error, "A_rest_parameter_cannot_have_an_initializer_1048", "A rest parameter cannot have an initializer."), + A_set_accessor_must_have_exactly_one_parameter: t(1049, e.DiagnosticCategory.Error, "A_set_accessor_must_have_exactly_one_parameter_1049", "A 'set' accessor must have exactly one parameter."), + A_set_accessor_cannot_have_an_optional_parameter: t(1051, e.DiagnosticCategory.Error, "A_set_accessor_cannot_have_an_optional_parameter_1051", "A 'set' accessor cannot have an optional parameter."), + A_set_accessor_parameter_cannot_have_an_initializer: t(1052, e.DiagnosticCategory.Error, "A_set_accessor_parameter_cannot_have_an_initializer_1052", "A 'set' accessor parameter cannot have an initializer."), + A_set_accessor_cannot_have_rest_parameter: t(1053, e.DiagnosticCategory.Error, "A_set_accessor_cannot_have_rest_parameter_1053", "A 'set' accessor cannot have rest parameter."), + A_get_accessor_cannot_have_parameters: t(1054, e.DiagnosticCategory.Error, "A_get_accessor_cannot_have_parameters_1054", "A 'get' accessor cannot have parameters."), + Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value: t(1055, e.DiagnosticCategory.Error, "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055", "Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."), + Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher: t(1056, e.DiagnosticCategory.Error, "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056", "Accessors are only available when targeting ECMAScript 5 and higher."), + The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: t(1058, e.DiagnosticCategory.Error, "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058", "The return type of an async function must either be a valid promise or must not contain a callable 'then' member."), + A_promise_must_have_a_then_method: t(1059, e.DiagnosticCategory.Error, "A_promise_must_have_a_then_method_1059", "A promise must have a 'then' method."), + The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback: t(1060, e.DiagnosticCategory.Error, "The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060", "The first parameter of the 'then' method of a promise must be a callback."), + Enum_member_must_have_initializer: t(1061, e.DiagnosticCategory.Error, "Enum_member_must_have_initializer_1061", "Enum member must have initializer."), + Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method: t(1062, e.DiagnosticCategory.Error, "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062", "Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."), + An_export_assignment_cannot_be_used_in_a_namespace: t(1063, e.DiagnosticCategory.Error, "An_export_assignment_cannot_be_used_in_a_namespace_1063", "An export assignment cannot be used in a namespace."), + The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0: t(1064, e.DiagnosticCategory.Error, "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064", "The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"), + In_ambient_enum_declarations_member_initializer_must_be_constant_expression: t(1066, e.DiagnosticCategory.Error, "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066", "In ambient enum declarations member initializer must be constant expression."), + Unexpected_token_A_constructor_method_accessor_or_property_was_expected: t(1068, e.DiagnosticCategory.Error, "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068", "Unexpected token. A constructor, method, accessor, or property was expected."), + Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces: t(1069, e.DiagnosticCategory.Error, "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069", "Unexpected token. A type parameter name was expected without curly braces."), + _0_modifier_cannot_appear_on_a_type_member: t(1070, e.DiagnosticCategory.Error, "_0_modifier_cannot_appear_on_a_type_member_1070", "'{0}' modifier cannot appear on a type member."), + _0_modifier_cannot_appear_on_an_index_signature: t(1071, e.DiagnosticCategory.Error, "_0_modifier_cannot_appear_on_an_index_signature_1071", "'{0}' modifier cannot appear on an index signature."), + A_0_modifier_cannot_be_used_with_an_import_declaration: t(1079, e.DiagnosticCategory.Error, "A_0_modifier_cannot_be_used_with_an_import_declaration_1079", "A '{0}' modifier cannot be used with an import declaration."), + Invalid_reference_directive_syntax: t(1084, e.DiagnosticCategory.Error, "Invalid_reference_directive_syntax_1084", "Invalid 'reference' directive syntax."), + Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0: t(1085, e.DiagnosticCategory.Error, "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085", "Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."), + _0_modifier_cannot_appear_on_a_constructor_declaration: t(1089, e.DiagnosticCategory.Error, "_0_modifier_cannot_appear_on_a_constructor_declaration_1089", "'{0}' modifier cannot appear on a constructor declaration."), + _0_modifier_cannot_appear_on_a_parameter: t(1090, e.DiagnosticCategory.Error, "_0_modifier_cannot_appear_on_a_parameter_1090", "'{0}' modifier cannot appear on a parameter."), + Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement: t(1091, e.DiagnosticCategory.Error, "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091", "Only a single variable declaration is allowed in a 'for...in' statement."), + Type_parameters_cannot_appear_on_a_constructor_declaration: t(1092, e.DiagnosticCategory.Error, "Type_parameters_cannot_appear_on_a_constructor_declaration_1092", "Type parameters cannot appear on a constructor declaration."), + Type_annotation_cannot_appear_on_a_constructor_declaration: t(1093, e.DiagnosticCategory.Error, "Type_annotation_cannot_appear_on_a_constructor_declaration_1093", "Type annotation cannot appear on a constructor declaration."), + An_accessor_cannot_have_type_parameters: t(1094, e.DiagnosticCategory.Error, "An_accessor_cannot_have_type_parameters_1094", "An accessor cannot have type parameters."), + A_set_accessor_cannot_have_a_return_type_annotation: t(1095, e.DiagnosticCategory.Error, "A_set_accessor_cannot_have_a_return_type_annotation_1095", "A 'set' accessor cannot have a return type annotation."), + An_index_signature_must_have_exactly_one_parameter: t(1096, e.DiagnosticCategory.Error, "An_index_signature_must_have_exactly_one_parameter_1096", "An index signature must have exactly one parameter."), + _0_list_cannot_be_empty: t(1097, e.DiagnosticCategory.Error, "_0_list_cannot_be_empty_1097", "'{0}' list cannot be empty."), + Type_parameter_list_cannot_be_empty: t(1098, e.DiagnosticCategory.Error, "Type_parameter_list_cannot_be_empty_1098", "Type parameter list cannot be empty."), + Type_argument_list_cannot_be_empty: t(1099, e.DiagnosticCategory.Error, "Type_argument_list_cannot_be_empty_1099", "Type argument list cannot be empty."), + Invalid_use_of_0_in_strict_mode: t(1100, e.DiagnosticCategory.Error, "Invalid_use_of_0_in_strict_mode_1100", "Invalid use of '{0}' in strict mode."), + with_statements_are_not_allowed_in_strict_mode: t(1101, e.DiagnosticCategory.Error, "with_statements_are_not_allowed_in_strict_mode_1101", "'with' statements are not allowed in strict mode."), + delete_cannot_be_called_on_an_identifier_in_strict_mode: t(1102, e.DiagnosticCategory.Error, "delete_cannot_be_called_on_an_identifier_in_strict_mode_1102", "'delete' cannot be called on an identifier in strict mode."), + for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: t(1103, e.DiagnosticCategory.Error, "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103", "'for await' loops are only allowed within async functions and at the top levels of modules."), + A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement: t(1104, e.DiagnosticCategory.Error, "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104", "A 'continue' statement can only be used within an enclosing iteration statement."), + A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement: t(1105, e.DiagnosticCategory.Error, "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105", "A 'break' statement can only be used within an enclosing iteration or switch statement."), + The_left_hand_side_of_a_for_of_statement_may_not_be_async: t(1106, e.DiagnosticCategory.Error, "The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106", "The left-hand side of a 'for...of' statement may not be 'async'."), + Jump_target_cannot_cross_function_boundary: t(1107, e.DiagnosticCategory.Error, "Jump_target_cannot_cross_function_boundary_1107", "Jump target cannot cross function boundary."), + A_return_statement_can_only_be_used_within_a_function_body: t(1108, e.DiagnosticCategory.Error, "A_return_statement_can_only_be_used_within_a_function_body_1108", "A 'return' statement can only be used within a function body."), + Expression_expected: t(1109, e.DiagnosticCategory.Error, "Expression_expected_1109", "Expression expected."), + Type_expected: t(1110, e.DiagnosticCategory.Error, "Type_expected_1110", "Type expected."), + A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: t(1113, e.DiagnosticCategory.Error, "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113", "A 'default' clause cannot appear more than once in a 'switch' statement."), + Duplicate_label_0: t(1114, e.DiagnosticCategory.Error, "Duplicate_label_0_1114", "Duplicate label '{0}'."), + A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement: t(1115, e.DiagnosticCategory.Error, "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115", "A 'continue' statement can only jump to a label of an enclosing iteration statement."), + A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement: t(1116, e.DiagnosticCategory.Error, "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116", "A 'break' statement can only jump to a label of an enclosing statement."), + An_object_literal_cannot_have_multiple_properties_with_the_same_name: t(1117, e.DiagnosticCategory.Error, "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117", "An object literal cannot have multiple properties with the same name."), + An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name: t(1118, e.DiagnosticCategory.Error, "An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118", "An object literal cannot have multiple get/set accessors with the same name."), + An_object_literal_cannot_have_property_and_accessor_with_the_same_name: t(1119, e.DiagnosticCategory.Error, "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119", "An object literal cannot have property and accessor with the same name."), + An_export_assignment_cannot_have_modifiers: t(1120, e.DiagnosticCategory.Error, "An_export_assignment_cannot_have_modifiers_1120", "An export assignment cannot have modifiers."), + Octal_literals_are_not_allowed_in_strict_mode: t(1121, e.DiagnosticCategory.Error, "Octal_literals_are_not_allowed_in_strict_mode_1121", "Octal literals are not allowed in strict mode."), + Variable_declaration_list_cannot_be_empty: t(1123, e.DiagnosticCategory.Error, "Variable_declaration_list_cannot_be_empty_1123", "Variable declaration list cannot be empty."), + Digit_expected: t(1124, e.DiagnosticCategory.Error, "Digit_expected_1124", "Digit expected."), + Hexadecimal_digit_expected: t(1125, e.DiagnosticCategory.Error, "Hexadecimal_digit_expected_1125", "Hexadecimal digit expected."), + Unexpected_end_of_text: t(1126, e.DiagnosticCategory.Error, "Unexpected_end_of_text_1126", "Unexpected end of text."), + Invalid_character: t(1127, e.DiagnosticCategory.Error, "Invalid_character_1127", "Invalid character."), + Declaration_or_statement_expected: t(1128, e.DiagnosticCategory.Error, "Declaration_or_statement_expected_1128", "Declaration or statement expected."), + Statement_expected: t(1129, e.DiagnosticCategory.Error, "Statement_expected_1129", "Statement expected."), + case_or_default_expected: t(1130, e.DiagnosticCategory.Error, "case_or_default_expected_1130", "'case' or 'default' expected."), + Property_or_signature_expected: t(1131, e.DiagnosticCategory.Error, "Property_or_signature_expected_1131", "Property or signature expected."), + Enum_member_expected: t(1132, e.DiagnosticCategory.Error, "Enum_member_expected_1132", "Enum member expected."), + Variable_declaration_expected: t(1134, e.DiagnosticCategory.Error, "Variable_declaration_expected_1134", "Variable declaration expected."), + Argument_expression_expected: t(1135, e.DiagnosticCategory.Error, "Argument_expression_expected_1135", "Argument expression expected."), + Property_assignment_expected: t(1136, e.DiagnosticCategory.Error, "Property_assignment_expected_1136", "Property assignment expected."), + Expression_or_comma_expected: t(1137, e.DiagnosticCategory.Error, "Expression_or_comma_expected_1137", "Expression or comma expected."), + Parameter_declaration_expected: t(1138, e.DiagnosticCategory.Error, "Parameter_declaration_expected_1138", "Parameter declaration expected."), + Type_parameter_declaration_expected: t(1139, e.DiagnosticCategory.Error, "Type_parameter_declaration_expected_1139", "Type parameter declaration expected."), + Type_argument_expected: t(1140, e.DiagnosticCategory.Error, "Type_argument_expected_1140", "Type argument expected."), + String_literal_expected: t(1141, e.DiagnosticCategory.Error, "String_literal_expected_1141", "String literal expected."), + Line_break_not_permitted_here: t(1142, e.DiagnosticCategory.Error, "Line_break_not_permitted_here_1142", "Line break not permitted here."), + or_expected: t(1144, e.DiagnosticCategory.Error, "or_expected_1144", "'{' or ';' expected."), + or_JSX_element_expected: t(1145, e.DiagnosticCategory.Error, "or_JSX_element_expected_1145", "'{' or JSX element expected."), + Declaration_expected: t(1146, e.DiagnosticCategory.Error, "Declaration_expected_1146", "Declaration expected."), + Import_declarations_in_a_namespace_cannot_reference_a_module: t(1147, e.DiagnosticCategory.Error, "Import_declarations_in_a_namespace_cannot_reference_a_module_1147", "Import declarations in a namespace cannot reference a module."), + Cannot_use_imports_exports_or_module_augmentations_when_module_is_none: t(1148, e.DiagnosticCategory.Error, "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148", "Cannot use imports, exports, or module augmentations when '--module' is 'none'."), + File_name_0_differs_from_already_included_file_name_1_only_in_casing: t(1149, e.DiagnosticCategory.Error, "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149", "File name '{0}' differs from already included file name '{1}' only in casing."), + const_declarations_must_be_initialized: t(1155, e.DiagnosticCategory.Error, "const_declarations_must_be_initialized_1155", "'const' declarations must be initialized."), + const_declarations_can_only_be_declared_inside_a_block: t(1156, e.DiagnosticCategory.Error, "const_declarations_can_only_be_declared_inside_a_block_1156", "'const' declarations can only be declared inside a block."), + let_declarations_can_only_be_declared_inside_a_block: t(1157, e.DiagnosticCategory.Error, "let_declarations_can_only_be_declared_inside_a_block_1157", "'let' declarations can only be declared inside a block."), + Unterminated_template_literal: t(1160, e.DiagnosticCategory.Error, "Unterminated_template_literal_1160", "Unterminated template literal."), + Unterminated_regular_expression_literal: t(1161, e.DiagnosticCategory.Error, "Unterminated_regular_expression_literal_1161", "Unterminated regular expression literal."), + An_object_member_cannot_be_declared_optional: t(1162, e.DiagnosticCategory.Error, "An_object_member_cannot_be_declared_optional_1162", "An object member cannot be declared optional."), + A_yield_expression_is_only_allowed_in_a_generator_body: t(1163, e.DiagnosticCategory.Error, "A_yield_expression_is_only_allowed_in_a_generator_body_1163", "A 'yield' expression is only allowed in a generator body."), + Computed_property_names_are_not_allowed_in_enums: t(1164, e.DiagnosticCategory.Error, "Computed_property_names_are_not_allowed_in_enums_1164", "Computed property names are not allowed in enums."), + A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: t(1165, e.DiagnosticCategory.Error, "A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165", "A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."), + A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type: t(1166, e.DiagnosticCategory.Error, "A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166", "A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."), + A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: t(1168, e.DiagnosticCategory.Error, "A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168", "A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."), + A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: t(1169, e.DiagnosticCategory.Error, "A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169", "A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."), + A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: t(1170, e.DiagnosticCategory.Error, "A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170", "A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."), + A_comma_expression_is_not_allowed_in_a_computed_property_name: t(1171, e.DiagnosticCategory.Error, "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171", "A comma expression is not allowed in a computed property name."), + extends_clause_already_seen: t(1172, e.DiagnosticCategory.Error, "extends_clause_already_seen_1172", "'extends' clause already seen."), + extends_clause_must_precede_implements_clause: t(1173, e.DiagnosticCategory.Error, "extends_clause_must_precede_implements_clause_1173", "'extends' clause must precede 'implements' clause."), + Classes_can_only_extend_a_single_class: t(1174, e.DiagnosticCategory.Error, "Classes_can_only_extend_a_single_class_1174", "Classes can only extend a single class."), + implements_clause_already_seen: t(1175, e.DiagnosticCategory.Error, "implements_clause_already_seen_1175", "'implements' clause already seen."), + Interface_declaration_cannot_have_implements_clause: t(1176, e.DiagnosticCategory.Error, "Interface_declaration_cannot_have_implements_clause_1176", "Interface declaration cannot have 'implements' clause."), + Binary_digit_expected: t(1177, e.DiagnosticCategory.Error, "Binary_digit_expected_1177", "Binary digit expected."), + Octal_digit_expected: t(1178, e.DiagnosticCategory.Error, "Octal_digit_expected_1178", "Octal digit expected."), + Unexpected_token_expected: t(1179, e.DiagnosticCategory.Error, "Unexpected_token_expected_1179", "Unexpected token. '{' expected."), + Property_destructuring_pattern_expected: t(1180, e.DiagnosticCategory.Error, "Property_destructuring_pattern_expected_1180", "Property destructuring pattern expected."), + Array_element_destructuring_pattern_expected: t(1181, e.DiagnosticCategory.Error, "Array_element_destructuring_pattern_expected_1181", "Array element destructuring pattern expected."), + A_destructuring_declaration_must_have_an_initializer: t(1182, e.DiagnosticCategory.Error, "A_destructuring_declaration_must_have_an_initializer_1182", "A destructuring declaration must have an initializer."), + An_implementation_cannot_be_declared_in_ambient_contexts: t(1183, e.DiagnosticCategory.Error, "An_implementation_cannot_be_declared_in_ambient_contexts_1183", "An implementation cannot be declared in ambient contexts."), + Modifiers_cannot_appear_here: t(1184, e.DiagnosticCategory.Error, "Modifiers_cannot_appear_here_1184", "Modifiers cannot appear here."), + Merge_conflict_marker_encountered: t(1185, e.DiagnosticCategory.Error, "Merge_conflict_marker_encountered_1185", "Merge conflict marker encountered."), + A_rest_element_cannot_have_an_initializer: t(1186, e.DiagnosticCategory.Error, "A_rest_element_cannot_have_an_initializer_1186", "A rest element cannot have an initializer."), + A_parameter_property_may_not_be_declared_using_a_binding_pattern: t(1187, e.DiagnosticCategory.Error, "A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187", "A parameter property may not be declared using a binding pattern."), + Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement: t(1188, e.DiagnosticCategory.Error, "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188", "Only a single variable declaration is allowed in a 'for...of' statement."), + The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer: t(1189, e.DiagnosticCategory.Error, "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189", "The variable declaration of a 'for...in' statement cannot have an initializer."), + The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer: t(1190, e.DiagnosticCategory.Error, "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190", "The variable declaration of a 'for...of' statement cannot have an initializer."), + An_import_declaration_cannot_have_modifiers: t(1191, e.DiagnosticCategory.Error, "An_import_declaration_cannot_have_modifiers_1191", "An import declaration cannot have modifiers."), + Module_0_has_no_default_export: t(1192, e.DiagnosticCategory.Error, "Module_0_has_no_default_export_1192", "Module '{0}' has no default export."), + An_export_declaration_cannot_have_modifiers: t(1193, e.DiagnosticCategory.Error, "An_export_declaration_cannot_have_modifiers_1193", "An export declaration cannot have modifiers."), + Export_declarations_are_not_permitted_in_a_namespace: t(1194, e.DiagnosticCategory.Error, "Export_declarations_are_not_permitted_in_a_namespace_1194", "Export declarations are not permitted in a namespace."), + export_Asterisk_does_not_re_export_a_default: t(1195, e.DiagnosticCategory.Error, "export_Asterisk_does_not_re_export_a_default_1195", "'export *' does not re-export a default."), + Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified: t(1196, e.DiagnosticCategory.Error, "Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196", "Catch clause variable type annotation must be 'any' or 'unknown' if specified."), + Catch_clause_variable_cannot_have_an_initializer: t(1197, e.DiagnosticCategory.Error, "Catch_clause_variable_cannot_have_an_initializer_1197", "Catch clause variable cannot have an initializer."), + An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive: t(1198, e.DiagnosticCategory.Error, "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198", "An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."), + Unterminated_Unicode_escape_sequence: t(1199, e.DiagnosticCategory.Error, "Unterminated_Unicode_escape_sequence_1199", "Unterminated Unicode escape sequence."), + Line_terminator_not_permitted_before_arrow: t(1200, e.DiagnosticCategory.Error, "Line_terminator_not_permitted_before_arrow_1200", "Line terminator not permitted before arrow."), + Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead: t(1202, e.DiagnosticCategory.Error, "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202", "Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."), + Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead: t(1203, e.DiagnosticCategory.Error, "Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203", "Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."), + Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type: t(1205, e.DiagnosticCategory.Error, "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205", "Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."), + Decorators_are_not_valid_here: t(1206, e.DiagnosticCategory.Error, "Decorators_are_not_valid_here_1206", "Decorators are not valid here."), + Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name: t(1207, e.DiagnosticCategory.Error, "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207", "Decorators cannot be applied to multiple get/set accessors of the same name."), + _0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module: t(1208, e.DiagnosticCategory.Error, "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208", "'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."), + Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0: t(1209, e.DiagnosticCategory.Error, "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209", "Invalid optional chain from new expression. Did you mean to call '{0}()'?"), + Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode: t(1210, e.DiagnosticCategory.Error, "Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210", "Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."), + A_class_declaration_without_the_default_modifier_must_have_a_name: t(1211, e.DiagnosticCategory.Error, "A_class_declaration_without_the_default_modifier_must_have_a_name_1211", "A class declaration without the 'default' modifier must have a name."), + Identifier_expected_0_is_a_reserved_word_in_strict_mode: t(1212, e.DiagnosticCategory.Error, "Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212", "Identifier expected. '{0}' is a reserved word in strict mode."), + Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode: t(1213, e.DiagnosticCategory.Error, "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213", "Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."), + Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode: t(1214, e.DiagnosticCategory.Error, "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214", "Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."), + Invalid_use_of_0_Modules_are_automatically_in_strict_mode: t(1215, e.DiagnosticCategory.Error, "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215", "Invalid use of '{0}'. Modules are automatically in strict mode."), + Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules: t(1216, e.DiagnosticCategory.Error, "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216", "Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."), + Export_assignment_is_not_supported_when_module_flag_is_system: t(1218, e.DiagnosticCategory.Error, "Export_assignment_is_not_supported_when_module_flag_is_system_1218", "Export assignment is not supported when '--module' flag is 'system'."), + Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning: t(1219, e.DiagnosticCategory.Error, "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219", "Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."), + Generators_are_not_allowed_in_an_ambient_context: t(1221, e.DiagnosticCategory.Error, "Generators_are_not_allowed_in_an_ambient_context_1221", "Generators are not allowed in an ambient context."), + An_overload_signature_cannot_be_declared_as_a_generator: t(1222, e.DiagnosticCategory.Error, "An_overload_signature_cannot_be_declared_as_a_generator_1222", "An overload signature cannot be declared as a generator."), + _0_tag_already_specified: t(1223, e.DiagnosticCategory.Error, "_0_tag_already_specified_1223", "'{0}' tag already specified."), + Signature_0_must_be_a_type_predicate: t(1224, e.DiagnosticCategory.Error, "Signature_0_must_be_a_type_predicate_1224", "Signature '{0}' must be a type predicate."), + Cannot_find_parameter_0: t(1225, e.DiagnosticCategory.Error, "Cannot_find_parameter_0_1225", "Cannot find parameter '{0}'."), + Type_predicate_0_is_not_assignable_to_1: t(1226, e.DiagnosticCategory.Error, "Type_predicate_0_is_not_assignable_to_1_1226", "Type predicate '{0}' is not assignable to '{1}'."), + Parameter_0_is_not_in_the_same_position_as_parameter_1: t(1227, e.DiagnosticCategory.Error, "Parameter_0_is_not_in_the_same_position_as_parameter_1_1227", "Parameter '{0}' is not in the same position as parameter '{1}'."), + A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods: t(1228, e.DiagnosticCategory.Error, "A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228", "A type predicate is only allowed in return type position for functions and methods."), + A_type_predicate_cannot_reference_a_rest_parameter: t(1229, e.DiagnosticCategory.Error, "A_type_predicate_cannot_reference_a_rest_parameter_1229", "A type predicate cannot reference a rest parameter."), + A_type_predicate_cannot_reference_element_0_in_a_binding_pattern: t(1230, e.DiagnosticCategory.Error, "A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230", "A type predicate cannot reference element '{0}' in a binding pattern."), + An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration: t(1231, e.DiagnosticCategory.Error, "An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231", "An export assignment must be at the top level of a file or module declaration."), + An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module: t(1232, e.DiagnosticCategory.Error, "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232", "An import declaration can only be used at the top level of a namespace or module."), + An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module: t(1233, e.DiagnosticCategory.Error, "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233", "An export declaration can only be used at the top level of a namespace or module."), + An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file: t(1234, e.DiagnosticCategory.Error, "An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234", "An ambient module declaration is only allowed at the top level in a file."), + A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module: t(1235, e.DiagnosticCategory.Error, "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235", "A namespace declaration is only allowed at the top level of a namespace or module."), + The_return_type_of_a_property_decorator_function_must_be_either_void_or_any: t(1236, e.DiagnosticCategory.Error, "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236", "The return type of a property decorator function must be either 'void' or 'any'."), + The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any: t(1237, e.DiagnosticCategory.Error, "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237", "The return type of a parameter decorator function must be either 'void' or 'any'."), + Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression: t(1238, e.DiagnosticCategory.Error, "Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238", "Unable to resolve signature of class decorator when called as an expression."), + Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression: t(1239, e.DiagnosticCategory.Error, "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239", "Unable to resolve signature of parameter decorator when called as an expression."), + Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression: t(1240, e.DiagnosticCategory.Error, "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240", "Unable to resolve signature of property decorator when called as an expression."), + Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression: t(1241, e.DiagnosticCategory.Error, "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241", "Unable to resolve signature of method decorator when called as an expression."), + abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration: t(1242, e.DiagnosticCategory.Error, "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242", "'abstract' modifier can only appear on a class, method, or property declaration."), + _0_modifier_cannot_be_used_with_1_modifier: t(1243, e.DiagnosticCategory.Error, "_0_modifier_cannot_be_used_with_1_modifier_1243", "'{0}' modifier cannot be used with '{1}' modifier."), + Abstract_methods_can_only_appear_within_an_abstract_class: t(1244, e.DiagnosticCategory.Error, "Abstract_methods_can_only_appear_within_an_abstract_class_1244", "Abstract methods can only appear within an abstract class."), + Method_0_cannot_have_an_implementation_because_it_is_marked_abstract: t(1245, e.DiagnosticCategory.Error, "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245", "Method '{0}' cannot have an implementation because it is marked abstract."), + An_interface_property_cannot_have_an_initializer: t(1246, e.DiagnosticCategory.Error, "An_interface_property_cannot_have_an_initializer_1246", "An interface property cannot have an initializer."), + A_type_literal_property_cannot_have_an_initializer: t(1247, e.DiagnosticCategory.Error, "A_type_literal_property_cannot_have_an_initializer_1247", "A type literal property cannot have an initializer."), + A_class_member_cannot_have_the_0_keyword: t(1248, e.DiagnosticCategory.Error, "A_class_member_cannot_have_the_0_keyword_1248", "A class member cannot have the '{0}' keyword."), + A_decorator_can_only_decorate_a_method_implementation_not_an_overload: t(1249, e.DiagnosticCategory.Error, "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249", "A decorator can only decorate a method implementation, not an overload."), + Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5: t(1250, e.DiagnosticCategory.Error, "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250", "Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."), + Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode: t(1251, e.DiagnosticCategory.Error, "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251", "Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."), + Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode: t(1252, e.DiagnosticCategory.Error, "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252", "Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."), + A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference: t(1254, e.DiagnosticCategory.Error, "A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254", "A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."), + A_definite_assignment_assertion_is_not_permitted_in_this_context: t(1255, e.DiagnosticCategory.Error, "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255", "A definite assignment assertion '!' is not permitted in this context."), + A_required_element_cannot_follow_an_optional_element: t(1257, e.DiagnosticCategory.Error, "A_required_element_cannot_follow_an_optional_element_1257", "A required element cannot follow an optional element."), + A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration: t(1258, e.DiagnosticCategory.Error, "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258", "A default export must be at the top level of a file or module declaration."), + Module_0_can_only_be_default_imported_using_the_1_flag: t(1259, e.DiagnosticCategory.Error, "Module_0_can_only_be_default_imported_using_the_1_flag_1259", "Module '{0}' can only be default-imported using the '{1}' flag"), + Keywords_cannot_contain_escape_characters: t(1260, e.DiagnosticCategory.Error, "Keywords_cannot_contain_escape_characters_1260", "Keywords cannot contain escape characters."), + Already_included_file_name_0_differs_from_file_name_1_only_in_casing: t(1261, e.DiagnosticCategory.Error, "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261", "Already included file name '{0}' differs from file name '{1}' only in casing."), + Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module: t(1262, e.DiagnosticCategory.Error, "Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262", "Identifier expected. '{0}' is a reserved word at the top-level of a module."), + Declarations_with_initializers_cannot_also_have_definite_assignment_assertions: t(1263, e.DiagnosticCategory.Error, "Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263", "Declarations with initializers cannot also have definite assignment assertions."), + Declarations_with_definite_assignment_assertions_must_also_have_type_annotations: t(1264, e.DiagnosticCategory.Error, "Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264", "Declarations with definite assignment assertions must also have type annotations."), + A_rest_element_cannot_follow_another_rest_element: t(1265, e.DiagnosticCategory.Error, "A_rest_element_cannot_follow_another_rest_element_1265", "A rest element cannot follow another rest element."), + An_optional_element_cannot_follow_a_rest_element: t(1266, e.DiagnosticCategory.Error, "An_optional_element_cannot_follow_a_rest_element_1266", "An optional element cannot follow a rest element."), + Property_0_cannot_have_an_initializer_because_it_is_marked_abstract: t(1267, e.DiagnosticCategory.Error, "Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267", "Property '{0}' cannot have an initializer because it is marked abstract."), + An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type: t(1268, e.DiagnosticCategory.Error, "An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268", "An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."), + Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided: t(1269, e.DiagnosticCategory.Error, "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269", "Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided."), + Decorator_function_return_type_0_is_not_assignable_to_type_1: t(1270, e.DiagnosticCategory.Error, "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270", "Decorator function return type '{0}' is not assignable to type '{1}'."), + Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any: t(1271, e.DiagnosticCategory.Error, "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271", "Decorator function return type is '{0}' but is expected to be 'void' or 'any'."), + A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled: t(1272, e.DiagnosticCategory.Error, "A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272", "A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."), + _0_modifier_cannot_appear_on_a_type_parameter: t(1273, e.DiagnosticCategory.Error, "_0_modifier_cannot_appear_on_a_type_parameter_1273", "'{0}' modifier cannot appear on a type parameter"), + _0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias: t(1274, e.DiagnosticCategory.Error, "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274", "'{0}' modifier can only appear on a type parameter of a class, interface or type alias"), + accessor_modifier_can_only_appear_on_a_property_declaration: t(1275, e.DiagnosticCategory.Error, "accessor_modifier_can_only_appear_on_a_property_declaration_1275", "'accessor' modifier can only appear on a property declaration."), + An_accessor_property_cannot_be_declared_optional: t(1276, e.DiagnosticCategory.Error, "An_accessor_property_cannot_be_declared_optional_1276", "An 'accessor' property cannot be declared optional."), + with_statements_are_not_allowed_in_an_async_function_block: t(1300, e.DiagnosticCategory.Error, "with_statements_are_not_allowed_in_an_async_function_block_1300", "'with' statements are not allowed in an async function block."), + await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: t(1308, e.DiagnosticCategory.Error, "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308", "'await' expressions are only allowed within async functions and at the top levels of modules."), + The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level: t(1309, e.DiagnosticCategory.Error, "The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309", "The current file is a CommonJS module and cannot use 'await' at the top level."), + Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern: t(1312, e.DiagnosticCategory.Error, "Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312", "Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."), + The_body_of_an_if_statement_cannot_be_the_empty_statement: t(1313, e.DiagnosticCategory.Error, "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313", "The body of an 'if' statement cannot be the empty statement."), + Global_module_exports_may_only_appear_in_module_files: t(1314, e.DiagnosticCategory.Error, "Global_module_exports_may_only_appear_in_module_files_1314", "Global module exports may only appear in module files."), + Global_module_exports_may_only_appear_in_declaration_files: t(1315, e.DiagnosticCategory.Error, "Global_module_exports_may_only_appear_in_declaration_files_1315", "Global module exports may only appear in declaration files."), + Global_module_exports_may_only_appear_at_top_level: t(1316, e.DiagnosticCategory.Error, "Global_module_exports_may_only_appear_at_top_level_1316", "Global module exports may only appear at top level."), + A_parameter_property_cannot_be_declared_using_a_rest_parameter: t(1317, e.DiagnosticCategory.Error, "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317", "A parameter property cannot be declared using a rest parameter."), + An_abstract_accessor_cannot_have_an_implementation: t(1318, e.DiagnosticCategory.Error, "An_abstract_accessor_cannot_have_an_implementation_1318", "An abstract accessor cannot have an implementation."), + A_default_export_can_only_be_used_in_an_ECMAScript_style_module: t(1319, e.DiagnosticCategory.Error, "A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319", "A default export can only be used in an ECMAScript-style module."), + Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: t(1320, e.DiagnosticCategory.Error, "Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320", "Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."), + Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: t(1321, e.DiagnosticCategory.Error, "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321", "Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."), + Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: t(1322, e.DiagnosticCategory.Error, "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322", "Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."), + Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext: t(1323, e.DiagnosticCategory.Error, "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323", "Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."), + Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext: t(1324, e.DiagnosticCategory.Error, "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324", "Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."), + Argument_of_dynamic_import_cannot_be_spread_element: t(1325, e.DiagnosticCategory.Error, "Argument_of_dynamic_import_cannot_be_spread_element_1325", "Argument of dynamic import cannot be spread element."), + This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments: t(1326, e.DiagnosticCategory.Error, "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326", "This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."), + String_literal_with_double_quotes_expected: t(1327, e.DiagnosticCategory.Error, "String_literal_with_double_quotes_expected_1327", "String literal with double quotes expected."), + Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal: t(1328, e.DiagnosticCategory.Error, "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328", "Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."), + _0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0: t(1329, e.DiagnosticCategory.Error, "_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329", "'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"), + A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly: t(1330, e.DiagnosticCategory.Error, "A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330", "A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."), + A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly: t(1331, e.DiagnosticCategory.Error, "A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331", "A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."), + A_variable_whose_type_is_a_unique_symbol_type_must_be_const: t(1332, e.DiagnosticCategory.Error, "A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332", "A variable whose type is a 'unique symbol' type must be 'const'."), + unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name: t(1333, e.DiagnosticCategory.Error, "unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333", "'unique symbol' types may not be used on a variable declaration with a binding name."), + unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement: t(1334, e.DiagnosticCategory.Error, "unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334", "'unique symbol' types are only allowed on variables in a variable statement."), + unique_symbol_types_are_not_allowed_here: t(1335, e.DiagnosticCategory.Error, "unique_symbol_types_are_not_allowed_here_1335", "'unique symbol' types are not allowed here."), + An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead: t(1337, e.DiagnosticCategory.Error, "An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337", "An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."), + infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type: t(1338, e.DiagnosticCategory.Error, "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338", "'infer' declarations are only permitted in the 'extends' clause of a conditional type."), + Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: t(1339, e.DiagnosticCategory.Error, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339", "Module '{0}' does not refer to a value, but is used as a value here."), + Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: t(1340, e.DiagnosticCategory.Error, "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340", "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"), + Class_constructor_may_not_be_an_accessor: t(1341, e.DiagnosticCategory.Error, "Class_constructor_may_not_be_an_accessor_1341", "Class constructor may not be an accessor."), + Type_arguments_cannot_be_used_here: t(1342, e.DiagnosticCategory.Error, "Type_arguments_cannot_be_used_here_1342", "Type arguments cannot be used here."), + The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext: t(1343, e.DiagnosticCategory.Error, "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343", "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."), + A_label_is_not_allowed_here: t(1344, e.DiagnosticCategory.Error, "A_label_is_not_allowed_here_1344", "'A label is not allowed here."), + An_expression_of_type_void_cannot_be_tested_for_truthiness: t(1345, e.DiagnosticCategory.Error, "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345", "An expression of type 'void' cannot be tested for truthiness."), + This_parameter_is_not_allowed_with_use_strict_directive: t(1346, e.DiagnosticCategory.Error, "This_parameter_is_not_allowed_with_use_strict_directive_1346", "This parameter is not allowed with 'use strict' directive."), + use_strict_directive_cannot_be_used_with_non_simple_parameter_list: t(1347, e.DiagnosticCategory.Error, "use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347", "'use strict' directive cannot be used with non-simple parameter list."), + Non_simple_parameter_declared_here: t(1348, e.DiagnosticCategory.Error, "Non_simple_parameter_declared_here_1348", "Non-simple parameter declared here."), + use_strict_directive_used_here: t(1349, e.DiagnosticCategory.Error, "use_strict_directive_used_here_1349", "'use strict' directive used here."), + Print_the_final_configuration_instead_of_building: t(1350, e.DiagnosticCategory.Message, "Print_the_final_configuration_instead_of_building_1350", "Print the final configuration instead of building."), + An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal: t(1351, e.DiagnosticCategory.Error, "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351", "An identifier or keyword cannot immediately follow a numeric literal."), + A_bigint_literal_cannot_use_exponential_notation: t(1352, e.DiagnosticCategory.Error, "A_bigint_literal_cannot_use_exponential_notation_1352", "A bigint literal cannot use exponential notation."), + A_bigint_literal_must_be_an_integer: t(1353, e.DiagnosticCategory.Error, "A_bigint_literal_must_be_an_integer_1353", "A bigint literal must be an integer."), + readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types: t(1354, e.DiagnosticCategory.Error, "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354", "'readonly' type modifier is only permitted on array and tuple literal types."), + A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals: t(1355, e.DiagnosticCategory.Error, "A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355", "A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."), + Did_you_mean_to_mark_this_function_as_async: t(1356, e.DiagnosticCategory.Error, "Did_you_mean_to_mark_this_function_as_async_1356", "Did you mean to mark this function as 'async'?"), + An_enum_member_name_must_be_followed_by_a_or: t(1357, e.DiagnosticCategory.Error, "An_enum_member_name_must_be_followed_by_a_or_1357", "An enum member name must be followed by a ',', '=', or '}'."), + Tagged_template_expressions_are_not_permitted_in_an_optional_chain: t(1358, e.DiagnosticCategory.Error, "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358", "Tagged template expressions are not permitted in an optional chain."), + Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here: t(1359, e.DiagnosticCategory.Error, "Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359", "Identifier expected. '{0}' is a reserved word that cannot be used here."), + Type_0_does_not_satisfy_the_expected_type_1: t(1360, e.DiagnosticCategory.Error, "Type_0_does_not_satisfy_the_expected_type_1_1360", "Type '{0}' does not satisfy the expected type '{1}'."), + _0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type: t(1361, e.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361", "'{0}' cannot be used as a value because it was imported using 'import type'."), + _0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type: t(1362, e.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362", "'{0}' cannot be used as a value because it was exported using 'export type'."), + A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both: t(1363, e.DiagnosticCategory.Error, "A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363", "A type-only import can specify a default import or named bindings, but not both."), + Convert_to_type_only_export: t(1364, e.DiagnosticCategory.Message, "Convert_to_type_only_export_1364", "Convert to type-only export"), + Convert_all_re_exported_types_to_type_only_exports: t(1365, e.DiagnosticCategory.Message, "Convert_all_re_exported_types_to_type_only_exports_1365", "Convert all re-exported types to type-only exports"), + Split_into_two_separate_import_declarations: t(1366, e.DiagnosticCategory.Message, "Split_into_two_separate_import_declarations_1366", "Split into two separate import declarations"), + Split_all_invalid_type_only_imports: t(1367, e.DiagnosticCategory.Message, "Split_all_invalid_type_only_imports_1367", "Split all invalid type-only imports"), + Class_constructor_may_not_be_a_generator: t(1368, e.DiagnosticCategory.Error, "Class_constructor_may_not_be_a_generator_1368", "Class constructor may not be a generator."), + Did_you_mean_0: t(1369, e.DiagnosticCategory.Message, "Did_you_mean_0_1369", "Did you mean '{0}'?"), + This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error: t(1371, e.DiagnosticCategory.Error, "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371", "This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."), + Convert_to_type_only_import: t(1373, e.DiagnosticCategory.Message, "Convert_to_type_only_import_1373", "Convert to type-only import"), + Convert_all_imports_not_used_as_a_value_to_type_only_imports: t(1374, e.DiagnosticCategory.Message, "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374", "Convert all imports not used as a value to type-only imports"), + await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: t(1375, e.DiagnosticCategory.Error, "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375", "'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."), + _0_was_imported_here: t(1376, e.DiagnosticCategory.Message, "_0_was_imported_here_1376", "'{0}' was imported here."), + _0_was_exported_here: t(1377, e.DiagnosticCategory.Message, "_0_was_exported_here_1377", "'{0}' was exported here."), + Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher: t(1378, e.DiagnosticCategory.Error, "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378", "Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."), + An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type: t(1379, e.DiagnosticCategory.Error, "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379", "An import alias cannot reference a declaration that was exported using 'export type'."), + An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type: t(1380, e.DiagnosticCategory.Error, "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380", "An import alias cannot reference a declaration that was imported using 'import type'."), + Unexpected_token_Did_you_mean_or_rbrace: t(1381, e.DiagnosticCategory.Error, "Unexpected_token_Did_you_mean_or_rbrace_1381", "Unexpected token. Did you mean `{'}'}` or `}`?"), + Unexpected_token_Did_you_mean_or_gt: t(1382, e.DiagnosticCategory.Error, "Unexpected_token_Did_you_mean_or_gt_1382", "Unexpected token. Did you mean `{'>'}` or `>`?"), + Only_named_exports_may_use_export_type: t(1383, e.DiagnosticCategory.Error, "Only_named_exports_may_use_export_type_1383", "Only named exports may use 'export type'."), + Function_type_notation_must_be_parenthesized_when_used_in_a_union_type: t(1385, e.DiagnosticCategory.Error, "Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385", "Function type notation must be parenthesized when used in a union type."), + Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type: t(1386, e.DiagnosticCategory.Error, "Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386", "Constructor type notation must be parenthesized when used in a union type."), + Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type: t(1387, e.DiagnosticCategory.Error, "Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387", "Function type notation must be parenthesized when used in an intersection type."), + Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type: t(1388, e.DiagnosticCategory.Error, "Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388", "Constructor type notation must be parenthesized when used in an intersection type."), + _0_is_not_allowed_as_a_variable_declaration_name: t(1389, e.DiagnosticCategory.Error, "_0_is_not_allowed_as_a_variable_declaration_name_1389", "'{0}' is not allowed as a variable declaration name."), + _0_is_not_allowed_as_a_parameter_name: t(1390, e.DiagnosticCategory.Error, "_0_is_not_allowed_as_a_parameter_name_1390", "'{0}' is not allowed as a parameter name."), + An_import_alias_cannot_use_import_type: t(1392, e.DiagnosticCategory.Error, "An_import_alias_cannot_use_import_type_1392", "An import alias cannot use 'import type'"), + Imported_via_0_from_file_1: t(1393, e.DiagnosticCategory.Message, "Imported_via_0_from_file_1_1393", "Imported via {0} from file '{1}'"), + Imported_via_0_from_file_1_with_packageId_2: t(1394, e.DiagnosticCategory.Message, "Imported_via_0_from_file_1_with_packageId_2_1394", "Imported via {0} from file '{1}' with packageId '{2}'"), + Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions: t(1395, e.DiagnosticCategory.Message, "Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395", "Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"), + Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions: t(1396, e.DiagnosticCategory.Message, "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396", "Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"), + Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions: t(1397, e.DiagnosticCategory.Message, "Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397", "Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"), + Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions: t(1398, e.DiagnosticCategory.Message, "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398", "Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"), + File_is_included_via_import_here: t(1399, e.DiagnosticCategory.Message, "File_is_included_via_import_here_1399", "File is included via import here."), + Referenced_via_0_from_file_1: t(1400, e.DiagnosticCategory.Message, "Referenced_via_0_from_file_1_1400", "Referenced via '{0}' from file '{1}'"), + File_is_included_via_reference_here: t(1401, e.DiagnosticCategory.Message, "File_is_included_via_reference_here_1401", "File is included via reference here."), + Type_library_referenced_via_0_from_file_1: t(1402, e.DiagnosticCategory.Message, "Type_library_referenced_via_0_from_file_1_1402", "Type library referenced via '{0}' from file '{1}'"), + Type_library_referenced_via_0_from_file_1_with_packageId_2: t(1403, e.DiagnosticCategory.Message, "Type_library_referenced_via_0_from_file_1_with_packageId_2_1403", "Type library referenced via '{0}' from file '{1}' with packageId '{2}'"), + File_is_included_via_type_library_reference_here: t(1404, e.DiagnosticCategory.Message, "File_is_included_via_type_library_reference_here_1404", "File is included via type library reference here."), + Library_referenced_via_0_from_file_1: t(1405, e.DiagnosticCategory.Message, "Library_referenced_via_0_from_file_1_1405", "Library referenced via '{0}' from file '{1}'"), + File_is_included_via_library_reference_here: t(1406, e.DiagnosticCategory.Message, "File_is_included_via_library_reference_here_1406", "File is included via library reference here."), + Matched_by_include_pattern_0_in_1: t(1407, e.DiagnosticCategory.Message, "Matched_by_include_pattern_0_in_1_1407", "Matched by include pattern '{0}' in '{1}'"), + File_is_matched_by_include_pattern_specified_here: t(1408, e.DiagnosticCategory.Message, "File_is_matched_by_include_pattern_specified_here_1408", "File is matched by include pattern specified here."), + Part_of_files_list_in_tsconfig_json: t(1409, e.DiagnosticCategory.Message, "Part_of_files_list_in_tsconfig_json_1409", "Part of 'files' list in tsconfig.json"), + File_is_matched_by_files_list_specified_here: t(1410, e.DiagnosticCategory.Message, "File_is_matched_by_files_list_specified_here_1410", "File is matched by 'files' list specified here."), + Output_from_referenced_project_0_included_because_1_specified: t(1411, e.DiagnosticCategory.Message, "Output_from_referenced_project_0_included_because_1_specified_1411", "Output from referenced project '{0}' included because '{1}' specified"), + Output_from_referenced_project_0_included_because_module_is_specified_as_none: t(1412, e.DiagnosticCategory.Message, "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412", "Output from referenced project '{0}' included because '--module' is specified as 'none'"), + File_is_output_from_referenced_project_specified_here: t(1413, e.DiagnosticCategory.Message, "File_is_output_from_referenced_project_specified_here_1413", "File is output from referenced project specified here."), + Source_from_referenced_project_0_included_because_1_specified: t(1414, e.DiagnosticCategory.Message, "Source_from_referenced_project_0_included_because_1_specified_1414", "Source from referenced project '{0}' included because '{1}' specified"), + Source_from_referenced_project_0_included_because_module_is_specified_as_none: t(1415, e.DiagnosticCategory.Message, "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415", "Source from referenced project '{0}' included because '--module' is specified as 'none'"), + File_is_source_from_referenced_project_specified_here: t(1416, e.DiagnosticCategory.Message, "File_is_source_from_referenced_project_specified_here_1416", "File is source from referenced project specified here."), + Entry_point_of_type_library_0_specified_in_compilerOptions: t(1417, e.DiagnosticCategory.Message, "Entry_point_of_type_library_0_specified_in_compilerOptions_1417", "Entry point of type library '{0}' specified in compilerOptions"), + Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1: t(1418, e.DiagnosticCategory.Message, "Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418", "Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"), + File_is_entry_point_of_type_library_specified_here: t(1419, e.DiagnosticCategory.Message, "File_is_entry_point_of_type_library_specified_here_1419", "File is entry point of type library specified here."), + Entry_point_for_implicit_type_library_0: t(1420, e.DiagnosticCategory.Message, "Entry_point_for_implicit_type_library_0_1420", "Entry point for implicit type library '{0}'"), + Entry_point_for_implicit_type_library_0_with_packageId_1: t(1421, e.DiagnosticCategory.Message, "Entry_point_for_implicit_type_library_0_with_packageId_1_1421", "Entry point for implicit type library '{0}' with packageId '{1}'"), + Library_0_specified_in_compilerOptions: t(1422, e.DiagnosticCategory.Message, "Library_0_specified_in_compilerOptions_1422", "Library '{0}' specified in compilerOptions"), + File_is_library_specified_here: t(1423, e.DiagnosticCategory.Message, "File_is_library_specified_here_1423", "File is library specified here."), + Default_library: t(1424, e.DiagnosticCategory.Message, "Default_library_1424", "Default library"), + Default_library_for_target_0: t(1425, e.DiagnosticCategory.Message, "Default_library_for_target_0_1425", "Default library for target '{0}'"), + File_is_default_library_for_target_specified_here: t(1426, e.DiagnosticCategory.Message, "File_is_default_library_for_target_specified_here_1426", "File is default library for target specified here."), + Root_file_specified_for_compilation: t(1427, e.DiagnosticCategory.Message, "Root_file_specified_for_compilation_1427", "Root file specified for compilation"), + File_is_output_of_project_reference_source_0: t(1428, e.DiagnosticCategory.Message, "File_is_output_of_project_reference_source_0_1428", "File is output of project reference source '{0}'"), + File_redirects_to_file_0: t(1429, e.DiagnosticCategory.Message, "File_redirects_to_file_0_1429", "File redirects to file '{0}'"), + The_file_is_in_the_program_because_Colon: t(1430, e.DiagnosticCategory.Message, "The_file_is_in_the_program_because_Colon_1430", "The file is in the program because:"), + for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: t(1431, e.DiagnosticCategory.Error, "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431", "'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."), + Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher: t(1432, e.DiagnosticCategory.Error, "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432", "Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."), + Decorators_may_not_be_applied_to_this_parameters: t(1433, e.DiagnosticCategory.Error, "Decorators_may_not_be_applied_to_this_parameters_1433", "Decorators may not be applied to 'this' parameters."), + Unexpected_keyword_or_identifier: t(1434, e.DiagnosticCategory.Error, "Unexpected_keyword_or_identifier_1434", "Unexpected keyword or identifier."), + Unknown_keyword_or_identifier_Did_you_mean_0: t(1435, e.DiagnosticCategory.Error, "Unknown_keyword_or_identifier_Did_you_mean_0_1435", "Unknown keyword or identifier. Did you mean '{0}'?"), + Decorators_must_precede_the_name_and_all_keywords_of_property_declarations: t(1436, e.DiagnosticCategory.Error, "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436", "Decorators must precede the name and all keywords of property declarations."), + Namespace_must_be_given_a_name: t(1437, e.DiagnosticCategory.Error, "Namespace_must_be_given_a_name_1437", "Namespace must be given a name."), + Interface_must_be_given_a_name: t(1438, e.DiagnosticCategory.Error, "Interface_must_be_given_a_name_1438", "Interface must be given a name."), + Type_alias_must_be_given_a_name: t(1439, e.DiagnosticCategory.Error, "Type_alias_must_be_given_a_name_1439", "Type alias must be given a name."), + Variable_declaration_not_allowed_at_this_location: t(1440, e.DiagnosticCategory.Error, "Variable_declaration_not_allowed_at_this_location_1440", "Variable declaration not allowed at this location."), + Cannot_start_a_function_call_in_a_type_annotation: t(1441, e.DiagnosticCategory.Error, "Cannot_start_a_function_call_in_a_type_annotation_1441", "Cannot start a function call in a type annotation."), + Expected_for_property_initializer: t(1442, e.DiagnosticCategory.Error, "Expected_for_property_initializer_1442", "Expected '=' for property initializer."), + Module_declaration_names_may_only_use_or_quoted_strings: t(1443, e.DiagnosticCategory.Error, "Module_declaration_names_may_only_use_or_quoted_strings_1443", "Module declaration names may only use ' or \" quoted strings."), + _0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled: t(1444, e.DiagnosticCategory.Error, "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444", "'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."), + _0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled: t(1446, e.DiagnosticCategory.Error, "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446", "'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."), + _0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled: t(1448, e.DiagnosticCategory.Error, "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448", "'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."), + Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed: t(1449, e.DiagnosticCategory.Message, "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449", "Preserve unused imported values in the JavaScript output that would otherwise be removed."), + Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments: t(1450, e.DiagnosticCategory.Message, "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450", "Dynamic imports can only accept a module specifier and an optional assertion as arguments"), + Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression: t(1451, e.DiagnosticCategory.Error, "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451", "Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"), + resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext: t(1452, e.DiagnosticCategory.Error, "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452", "'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."), + resolution_mode_should_be_either_require_or_import: t(1453, e.DiagnosticCategory.Error, "resolution_mode_should_be_either_require_or_import_1453", "`resolution-mode` should be either `require` or `import`."), + resolution_mode_can_only_be_set_for_type_only_imports: t(1454, e.DiagnosticCategory.Error, "resolution_mode_can_only_be_set_for_type_only_imports_1454", "`resolution-mode` can only be set for type-only imports."), + resolution_mode_is_the_only_valid_key_for_type_import_assertions: t(1455, e.DiagnosticCategory.Error, "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455", "`resolution-mode` is the only valid key for type import assertions."), + Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require: t(1456, e.DiagnosticCategory.Error, "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456", "Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."), + Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk: t(1457, e.DiagnosticCategory.Message, "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457", "Matched by default include pattern '**/*'"), + File_is_ECMAScript_module_because_0_has_field_type_with_value_module: t(1458, e.DiagnosticCategory.Message, "File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458", 'File is ECMAScript module because \'{0}\' has field "type" with value "module"'), + File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module: t(1459, e.DiagnosticCategory.Message, "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459", 'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'), + File_is_CommonJS_module_because_0_does_not_have_field_type: t(1460, e.DiagnosticCategory.Message, "File_is_CommonJS_module_because_0_does_not_have_field_type_1460", "File is CommonJS module because '{0}' does not have field \"type\""), + File_is_CommonJS_module_because_package_json_was_not_found: t(1461, e.DiagnosticCategory.Message, "File_is_CommonJS_module_because_package_json_was_not_found_1461", "File is CommonJS module because 'package.json' was not found"), + The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output: t(1470, e.DiagnosticCategory.Error, "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470", "The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."), + Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead: t(1471, e.DiagnosticCategory.Error, "Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471", "Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."), + catch_or_finally_expected: t(1472, e.DiagnosticCategory.Error, "catch_or_finally_expected_1472", "'catch' or 'finally' expected."), + An_import_declaration_can_only_be_used_at_the_top_level_of_a_module: t(1473, e.DiagnosticCategory.Error, "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473", "An import declaration can only be used at the top level of a module."), + An_export_declaration_can_only_be_used_at_the_top_level_of_a_module: t(1474, e.DiagnosticCategory.Error, "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474", "An export declaration can only be used at the top level of a module."), + Control_what_method_is_used_to_detect_module_format_JS_files: t(1475, e.DiagnosticCategory.Message, "Control_what_method_is_used_to_detect_module_format_JS_files_1475", "Control what method is used to detect module-format JS files."), + auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules: t(1476, e.DiagnosticCategory.Message, "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476", '"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'), + An_instantiation_expression_cannot_be_followed_by_a_property_access: t(1477, e.DiagnosticCategory.Error, "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477", "An instantiation expression cannot be followed by a property access."), + Identifier_or_string_literal_expected: t(1478, e.DiagnosticCategory.Error, "Identifier_or_string_literal_expected_1478", "Identifier or string literal expected."), + The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead: t(1479, e.DiagnosticCategory.Error, "The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479", "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."), + To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module: t(1480, e.DiagnosticCategory.Message, "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480", 'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'), + To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1: t(1481, e.DiagnosticCategory.Message, "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481", "To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."), + To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0: t(1482, e.DiagnosticCategory.Message, "To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482", 'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'), + To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module: t(1483, e.DiagnosticCategory.Message, "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483", 'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'), + The_types_of_0_are_incompatible_between_these_types: t(2200, e.DiagnosticCategory.Error, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."), + The_types_returned_by_0_are_incompatible_between_these_types: t(2201, e.DiagnosticCategory.Error, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."), + Call_signature_return_types_0_and_1_are_incompatible: t(2202, e.DiagnosticCategory.Error, "Call_signature_return_types_0_and_1_are_incompatible_2202", "Call signature return types '{0}' and '{1}' are incompatible.", void 0, !0), + Construct_signature_return_types_0_and_1_are_incompatible: t(2203, e.DiagnosticCategory.Error, "Construct_signature_return_types_0_and_1_are_incompatible_2203", "Construct signature return types '{0}' and '{1}' are incompatible.", void 0, !0), + Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1: t(2204, e.DiagnosticCategory.Error, "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204", "Call signatures with no arguments have incompatible return types '{0}' and '{1}'.", void 0, !0), + Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1: t(2205, e.DiagnosticCategory.Error, "Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205", "Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.", void 0, !0), + The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement: t(2206, e.DiagnosticCategory.Error, "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206", "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."), + The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement: t(2207, e.DiagnosticCategory.Error, "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207", "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."), + This_type_parameter_might_need_an_extends_0_constraint: t(2208, e.DiagnosticCategory.Error, "This_type_parameter_might_need_an_extends_0_constraint_2208", "This type parameter might need an `extends {0}` constraint."), + The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate: t(2209, e.DiagnosticCategory.Error, "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209", "The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."), + The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate: t(2210, e.DiagnosticCategory.Error, "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210", "The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."), + Add_extends_constraint: t(2211, e.DiagnosticCategory.Message, "Add_extends_constraint_2211", "Add `extends` constraint."), + Add_extends_constraint_to_all_type_parameters: t(2212, e.DiagnosticCategory.Message, "Add_extends_constraint_to_all_type_parameters_2212", "Add `extends` constraint to all type parameters"), + Duplicate_identifier_0: t(2300, e.DiagnosticCategory.Error, "Duplicate_identifier_0_2300", "Duplicate identifier '{0}'."), + Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: t(2301, e.DiagnosticCategory.Error, "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301", "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."), + Static_members_cannot_reference_class_type_parameters: t(2302, e.DiagnosticCategory.Error, "Static_members_cannot_reference_class_type_parameters_2302", "Static members cannot reference class type parameters."), + Circular_definition_of_import_alias_0: t(2303, e.DiagnosticCategory.Error, "Circular_definition_of_import_alias_0_2303", "Circular definition of import alias '{0}'."), + Cannot_find_name_0: t(2304, e.DiagnosticCategory.Error, "Cannot_find_name_0_2304", "Cannot find name '{0}'."), + Module_0_has_no_exported_member_1: t(2305, e.DiagnosticCategory.Error, "Module_0_has_no_exported_member_1_2305", "Module '{0}' has no exported member '{1}'."), + File_0_is_not_a_module: t(2306, e.DiagnosticCategory.Error, "File_0_is_not_a_module_2306", "File '{0}' is not a module."), + Cannot_find_module_0_or_its_corresponding_type_declarations: t(2307, e.DiagnosticCategory.Error, "Cannot_find_module_0_or_its_corresponding_type_declarations_2307", "Cannot find module '{0}' or its corresponding type declarations."), + Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity: t(2308, e.DiagnosticCategory.Error, "Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308", "Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."), + An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements: t(2309, e.DiagnosticCategory.Error, "An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309", "An export assignment cannot be used in a module with other exported elements."), + Type_0_recursively_references_itself_as_a_base_type: t(2310, e.DiagnosticCategory.Error, "Type_0_recursively_references_itself_as_a_base_type_2310", "Type '{0}' recursively references itself as a base type."), + Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function: t(2311, e.DiagnosticCategory.Error, "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311", "Cannot find name '{0}'. Did you mean to write this in an async function?"), + An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members: t(2312, e.DiagnosticCategory.Error, "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312", "An interface can only extend an object type or intersection of object types with statically known members."), + Type_parameter_0_has_a_circular_constraint: t(2313, e.DiagnosticCategory.Error, "Type_parameter_0_has_a_circular_constraint_2313", "Type parameter '{0}' has a circular constraint."), + Generic_type_0_requires_1_type_argument_s: t(2314, e.DiagnosticCategory.Error, "Generic_type_0_requires_1_type_argument_s_2314", "Generic type '{0}' requires {1} type argument(s)."), + Type_0_is_not_generic: t(2315, e.DiagnosticCategory.Error, "Type_0_is_not_generic_2315", "Type '{0}' is not generic."), + Global_type_0_must_be_a_class_or_interface_type: t(2316, e.DiagnosticCategory.Error, "Global_type_0_must_be_a_class_or_interface_type_2316", "Global type '{0}' must be a class or interface type."), + Global_type_0_must_have_1_type_parameter_s: t(2317, e.DiagnosticCategory.Error, "Global_type_0_must_have_1_type_parameter_s_2317", "Global type '{0}' must have {1} type parameter(s)."), + Cannot_find_global_type_0: t(2318, e.DiagnosticCategory.Error, "Cannot_find_global_type_0_2318", "Cannot find global type '{0}'."), + Named_property_0_of_types_1_and_2_are_not_identical: t(2319, e.DiagnosticCategory.Error, "Named_property_0_of_types_1_and_2_are_not_identical_2319", "Named property '{0}' of types '{1}' and '{2}' are not identical."), + Interface_0_cannot_simultaneously_extend_types_1_and_2: t(2320, e.DiagnosticCategory.Error, "Interface_0_cannot_simultaneously_extend_types_1_and_2_2320", "Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."), + Excessive_stack_depth_comparing_types_0_and_1: t(2321, e.DiagnosticCategory.Error, "Excessive_stack_depth_comparing_types_0_and_1_2321", "Excessive stack depth comparing types '{0}' and '{1}'."), + Type_0_is_not_assignable_to_type_1: t(2322, e.DiagnosticCategory.Error, "Type_0_is_not_assignable_to_type_1_2322", "Type '{0}' is not assignable to type '{1}'."), + Cannot_redeclare_exported_variable_0: t(2323, e.DiagnosticCategory.Error, "Cannot_redeclare_exported_variable_0_2323", "Cannot redeclare exported variable '{0}'."), + Property_0_is_missing_in_type_1: t(2324, e.DiagnosticCategory.Error, "Property_0_is_missing_in_type_1_2324", "Property '{0}' is missing in type '{1}'."), + Property_0_is_private_in_type_1_but_not_in_type_2: t(2325, e.DiagnosticCategory.Error, "Property_0_is_private_in_type_1_but_not_in_type_2_2325", "Property '{0}' is private in type '{1}' but not in type '{2}'."), + Types_of_property_0_are_incompatible: t(2326, e.DiagnosticCategory.Error, "Types_of_property_0_are_incompatible_2326", "Types of property '{0}' are incompatible."), + Property_0_is_optional_in_type_1_but_required_in_type_2: t(2327, e.DiagnosticCategory.Error, "Property_0_is_optional_in_type_1_but_required_in_type_2_2327", "Property '{0}' is optional in type '{1}' but required in type '{2}'."), + Types_of_parameters_0_and_1_are_incompatible: t(2328, e.DiagnosticCategory.Error, "Types_of_parameters_0_and_1_are_incompatible_2328", "Types of parameters '{0}' and '{1}' are incompatible."), + Index_signature_for_type_0_is_missing_in_type_1: t(2329, e.DiagnosticCategory.Error, "Index_signature_for_type_0_is_missing_in_type_1_2329", "Index signature for type '{0}' is missing in type '{1}'."), + _0_and_1_index_signatures_are_incompatible: t(2330, e.DiagnosticCategory.Error, "_0_and_1_index_signatures_are_incompatible_2330", "'{0}' and '{1}' index signatures are incompatible."), + this_cannot_be_referenced_in_a_module_or_namespace_body: t(2331, e.DiagnosticCategory.Error, "this_cannot_be_referenced_in_a_module_or_namespace_body_2331", "'this' cannot be referenced in a module or namespace body."), + this_cannot_be_referenced_in_current_location: t(2332, e.DiagnosticCategory.Error, "this_cannot_be_referenced_in_current_location_2332", "'this' cannot be referenced in current location."), + this_cannot_be_referenced_in_constructor_arguments: t(2333, e.DiagnosticCategory.Error, "this_cannot_be_referenced_in_constructor_arguments_2333", "'this' cannot be referenced in constructor arguments."), + this_cannot_be_referenced_in_a_static_property_initializer: t(2334, e.DiagnosticCategory.Error, "this_cannot_be_referenced_in_a_static_property_initializer_2334", "'this' cannot be referenced in a static property initializer."), + super_can_only_be_referenced_in_a_derived_class: t(2335, e.DiagnosticCategory.Error, "super_can_only_be_referenced_in_a_derived_class_2335", "'super' can only be referenced in a derived class."), + super_cannot_be_referenced_in_constructor_arguments: t(2336, e.DiagnosticCategory.Error, "super_cannot_be_referenced_in_constructor_arguments_2336", "'super' cannot be referenced in constructor arguments."), + Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors: t(2337, e.DiagnosticCategory.Error, "Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337", "Super calls are not permitted outside constructors or in nested functions inside constructors."), + super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class: t(2338, e.DiagnosticCategory.Error, "super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338", "'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."), + Property_0_does_not_exist_on_type_1: t(2339, e.DiagnosticCategory.Error, "Property_0_does_not_exist_on_type_1_2339", "Property '{0}' does not exist on type '{1}'."), + Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword: t(2340, e.DiagnosticCategory.Error, "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340", "Only public and protected methods of the base class are accessible via the 'super' keyword."), + Property_0_is_private_and_only_accessible_within_class_1: t(2341, e.DiagnosticCategory.Error, "Property_0_is_private_and_only_accessible_within_class_1_2341", "Property '{0}' is private and only accessible within class '{1}'."), + This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0: t(2343, e.DiagnosticCategory.Error, "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343", "This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."), + Type_0_does_not_satisfy_the_constraint_1: t(2344, e.DiagnosticCategory.Error, "Type_0_does_not_satisfy_the_constraint_1_2344", "Type '{0}' does not satisfy the constraint '{1}'."), + Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: t(2345, e.DiagnosticCategory.Error, "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345", "Argument of type '{0}' is not assignable to parameter of type '{1}'."), + Call_target_does_not_contain_any_signatures: t(2346, e.DiagnosticCategory.Error, "Call_target_does_not_contain_any_signatures_2346", "Call target does not contain any signatures."), + Untyped_function_calls_may_not_accept_type_arguments: t(2347, e.DiagnosticCategory.Error, "Untyped_function_calls_may_not_accept_type_arguments_2347", "Untyped function calls may not accept type arguments."), + Value_of_type_0_is_not_callable_Did_you_mean_to_include_new: t(2348, e.DiagnosticCategory.Error, "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348", "Value of type '{0}' is not callable. Did you mean to include 'new'?"), + This_expression_is_not_callable: t(2349, e.DiagnosticCategory.Error, "This_expression_is_not_callable_2349", "This expression is not callable."), + Only_a_void_function_can_be_called_with_the_new_keyword: t(2350, e.DiagnosticCategory.Error, "Only_a_void_function_can_be_called_with_the_new_keyword_2350", "Only a void function can be called with the 'new' keyword."), + This_expression_is_not_constructable: t(2351, e.DiagnosticCategory.Error, "This_expression_is_not_constructable_2351", "This expression is not constructable."), + Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first: t(2352, e.DiagnosticCategory.Error, "Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352", "Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."), + Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1: t(2353, e.DiagnosticCategory.Error, "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353", "Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."), + This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found: t(2354, e.DiagnosticCategory.Error, "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354", "This syntax requires an imported helper but module '{0}' cannot be found."), + A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value: t(2355, e.DiagnosticCategory.Error, "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355", "A function whose declared type is neither 'void' nor 'any' must return a value."), + An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type: t(2356, e.DiagnosticCategory.Error, "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356", "An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."), + The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access: t(2357, e.DiagnosticCategory.Error, "The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357", "The operand of an increment or decrement operator must be a variable or a property access."), + The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter: t(2358, e.DiagnosticCategory.Error, "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358", "The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."), + The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type: t(2359, e.DiagnosticCategory.Error, "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359", "The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."), + The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type: t(2362, e.DiagnosticCategory.Error, "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362", "The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."), + The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type: t(2363, e.DiagnosticCategory.Error, "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363", "The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."), + The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access: t(2364, e.DiagnosticCategory.Error, "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364", "The left-hand side of an assignment expression must be a variable or a property access."), + Operator_0_cannot_be_applied_to_types_1_and_2: t(2365, e.DiagnosticCategory.Error, "Operator_0_cannot_be_applied_to_types_1_and_2_2365", "Operator '{0}' cannot be applied to types '{1}' and '{2}'."), + Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined: t(2366, e.DiagnosticCategory.Error, "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366", "Function lacks ending return statement and return type does not include 'undefined'."), + This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap: t(2367, e.DiagnosticCategory.Error, "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367", "This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."), + Type_parameter_name_cannot_be_0: t(2368, e.DiagnosticCategory.Error, "Type_parameter_name_cannot_be_0_2368", "Type parameter name cannot be '{0}'."), + A_parameter_property_is_only_allowed_in_a_constructor_implementation: t(2369, e.DiagnosticCategory.Error, "A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369", "A parameter property is only allowed in a constructor implementation."), + A_rest_parameter_must_be_of_an_array_type: t(2370, e.DiagnosticCategory.Error, "A_rest_parameter_must_be_of_an_array_type_2370", "A rest parameter must be of an array type."), + A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation: t(2371, e.DiagnosticCategory.Error, "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371", "A parameter initializer is only allowed in a function or constructor implementation."), + Parameter_0_cannot_reference_itself: t(2372, e.DiagnosticCategory.Error, "Parameter_0_cannot_reference_itself_2372", "Parameter '{0}' cannot reference itself."), + Parameter_0_cannot_reference_identifier_1_declared_after_it: t(2373, e.DiagnosticCategory.Error, "Parameter_0_cannot_reference_identifier_1_declared_after_it_2373", "Parameter '{0}' cannot reference identifier '{1}' declared after it."), + Duplicate_index_signature_for_type_0: t(2374, e.DiagnosticCategory.Error, "Duplicate_index_signature_for_type_0_2374", "Duplicate index signature for type '{0}'."), + Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties: t(2375, e.DiagnosticCategory.Error, "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375", "Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."), + A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers: t(2376, e.DiagnosticCategory.Error, "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376", "A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."), + Constructors_for_derived_classes_must_contain_a_super_call: t(2377, e.DiagnosticCategory.Error, "Constructors_for_derived_classes_must_contain_a_super_call_2377", "Constructors for derived classes must contain a 'super' call."), + A_get_accessor_must_return_a_value: t(2378, e.DiagnosticCategory.Error, "A_get_accessor_must_return_a_value_2378", "A 'get' accessor must return a value."), + Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties: t(2379, e.DiagnosticCategory.Error, "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379", "Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."), + The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type: t(2380, e.DiagnosticCategory.Error, "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380", "The return type of a 'get' accessor must be assignable to its 'set' accessor type"), + Overload_signatures_must_all_be_exported_or_non_exported: t(2383, e.DiagnosticCategory.Error, "Overload_signatures_must_all_be_exported_or_non_exported_2383", "Overload signatures must all be exported or non-exported."), + Overload_signatures_must_all_be_ambient_or_non_ambient: t(2384, e.DiagnosticCategory.Error, "Overload_signatures_must_all_be_ambient_or_non_ambient_2384", "Overload signatures must all be ambient or non-ambient."), + Overload_signatures_must_all_be_public_private_or_protected: t(2385, e.DiagnosticCategory.Error, "Overload_signatures_must_all_be_public_private_or_protected_2385", "Overload signatures must all be public, private or protected."), + Overload_signatures_must_all_be_optional_or_required: t(2386, e.DiagnosticCategory.Error, "Overload_signatures_must_all_be_optional_or_required_2386", "Overload signatures must all be optional or required."), + Function_overload_must_be_static: t(2387, e.DiagnosticCategory.Error, "Function_overload_must_be_static_2387", "Function overload must be static."), + Function_overload_must_not_be_static: t(2388, e.DiagnosticCategory.Error, "Function_overload_must_not_be_static_2388", "Function overload must not be static."), + Function_implementation_name_must_be_0: t(2389, e.DiagnosticCategory.Error, "Function_implementation_name_must_be_0_2389", "Function implementation name must be '{0}'."), + Constructor_implementation_is_missing: t(2390, e.DiagnosticCategory.Error, "Constructor_implementation_is_missing_2390", "Constructor implementation is missing."), + Function_implementation_is_missing_or_not_immediately_following_the_declaration: t(2391, e.DiagnosticCategory.Error, "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391", "Function implementation is missing or not immediately following the declaration."), + Multiple_constructor_implementations_are_not_allowed: t(2392, e.DiagnosticCategory.Error, "Multiple_constructor_implementations_are_not_allowed_2392", "Multiple constructor implementations are not allowed."), + Duplicate_function_implementation: t(2393, e.DiagnosticCategory.Error, "Duplicate_function_implementation_2393", "Duplicate function implementation."), + This_overload_signature_is_not_compatible_with_its_implementation_signature: t(2394, e.DiagnosticCategory.Error, "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394", "This overload signature is not compatible with its implementation signature."), + Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local: t(2395, e.DiagnosticCategory.Error, "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395", "Individual declarations in merged declaration '{0}' must be all exported or all local."), + Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters: t(2396, e.DiagnosticCategory.Error, "Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396", "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."), + Declaration_name_conflicts_with_built_in_global_identifier_0: t(2397, e.DiagnosticCategory.Error, "Declaration_name_conflicts_with_built_in_global_identifier_0_2397", "Declaration name conflicts with built-in global identifier '{0}'."), + constructor_cannot_be_used_as_a_parameter_property_name: t(2398, e.DiagnosticCategory.Error, "constructor_cannot_be_used_as_a_parameter_property_name_2398", "'constructor' cannot be used as a parameter property name."), + Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference: t(2399, e.DiagnosticCategory.Error, "Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399", "Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."), + Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference: t(2400, e.DiagnosticCategory.Error, "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400", "Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."), + A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers: t(2401, e.DiagnosticCategory.Error, "A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401", "A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."), + Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference: t(2402, e.DiagnosticCategory.Error, "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402", "Expression resolves to '_super' that compiler uses to capture base class reference."), + Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2: t(2403, e.DiagnosticCategory.Error, "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403", "Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."), + The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation: t(2404, e.DiagnosticCategory.Error, "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404", "The left-hand side of a 'for...in' statement cannot use a type annotation."), + The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any: t(2405, e.DiagnosticCategory.Error, "The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405", "The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."), + The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access: t(2406, e.DiagnosticCategory.Error, "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406", "The left-hand side of a 'for...in' statement must be a variable or a property access."), + The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0: t(2407, e.DiagnosticCategory.Error, "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407", "The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."), + Setters_cannot_return_a_value: t(2408, e.DiagnosticCategory.Error, "Setters_cannot_return_a_value_2408", "Setters cannot return a value."), + Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class: t(2409, e.DiagnosticCategory.Error, "Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409", "Return type of constructor signature must be assignable to the instance type of the class."), + The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any: t(2410, e.DiagnosticCategory.Error, "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410", "The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."), + Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target: t(2412, e.DiagnosticCategory.Error, "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412", "Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."), + Property_0_of_type_1_is_not_assignable_to_2_index_type_3: t(2411, e.DiagnosticCategory.Error, "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411", "Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."), + _0_index_type_1_is_not_assignable_to_2_index_type_3: t(2413, e.DiagnosticCategory.Error, "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413", "'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."), + Class_name_cannot_be_0: t(2414, e.DiagnosticCategory.Error, "Class_name_cannot_be_0_2414", "Class name cannot be '{0}'."), + Class_0_incorrectly_extends_base_class_1: t(2415, e.DiagnosticCategory.Error, "Class_0_incorrectly_extends_base_class_1_2415", "Class '{0}' incorrectly extends base class '{1}'."), + Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2: t(2416, e.DiagnosticCategory.Error, "Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416", "Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."), + Class_static_side_0_incorrectly_extends_base_class_static_side_1: t(2417, e.DiagnosticCategory.Error, "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417", "Class static side '{0}' incorrectly extends base class static side '{1}'."), + Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1: t(2418, e.DiagnosticCategory.Error, "Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418", "Type of computed property's value is '{0}', which is not assignable to type '{1}'."), + Types_of_construct_signatures_are_incompatible: t(2419, e.DiagnosticCategory.Error, "Types_of_construct_signatures_are_incompatible_2419", "Types of construct signatures are incompatible."), + Class_0_incorrectly_implements_interface_1: t(2420, e.DiagnosticCategory.Error, "Class_0_incorrectly_implements_interface_1_2420", "Class '{0}' incorrectly implements interface '{1}'."), + A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members: t(2422, e.DiagnosticCategory.Error, "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422", "A class can only implement an object type or intersection of object types with statically known members."), + Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor: t(2423, e.DiagnosticCategory.Error, "Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423", "Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."), + Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function: t(2425, e.DiagnosticCategory.Error, "Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425", "Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."), + Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function: t(2426, e.DiagnosticCategory.Error, "Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426", "Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."), + Interface_name_cannot_be_0: t(2427, e.DiagnosticCategory.Error, "Interface_name_cannot_be_0_2427", "Interface name cannot be '{0}'."), + All_declarations_of_0_must_have_identical_type_parameters: t(2428, e.DiagnosticCategory.Error, "All_declarations_of_0_must_have_identical_type_parameters_2428", "All declarations of '{0}' must have identical type parameters."), + Interface_0_incorrectly_extends_interface_1: t(2430, e.DiagnosticCategory.Error, "Interface_0_incorrectly_extends_interface_1_2430", "Interface '{0}' incorrectly extends interface '{1}'."), + Enum_name_cannot_be_0: t(2431, e.DiagnosticCategory.Error, "Enum_name_cannot_be_0_2431", "Enum name cannot be '{0}'."), + In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element: t(2432, e.DiagnosticCategory.Error, "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432", "In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."), + A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged: t(2433, e.DiagnosticCategory.Error, "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433", "A namespace declaration cannot be in a different file from a class or function with which it is merged."), + A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged: t(2434, e.DiagnosticCategory.Error, "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434", "A namespace declaration cannot be located prior to a class or function with which it is merged."), + Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces: t(2435, e.DiagnosticCategory.Error, "Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435", "Ambient modules cannot be nested in other modules or namespaces."), + Ambient_module_declaration_cannot_specify_relative_module_name: t(2436, e.DiagnosticCategory.Error, "Ambient_module_declaration_cannot_specify_relative_module_name_2436", "Ambient module declaration cannot specify relative module name."), + Module_0_is_hidden_by_a_local_declaration_with_the_same_name: t(2437, e.DiagnosticCategory.Error, "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437", "Module '{0}' is hidden by a local declaration with the same name."), + Import_name_cannot_be_0: t(2438, e.DiagnosticCategory.Error, "Import_name_cannot_be_0_2438", "Import name cannot be '{0}'."), + Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name: t(2439, e.DiagnosticCategory.Error, "Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439", "Import or export declaration in an ambient module declaration cannot reference module through relative module name."), + Import_declaration_conflicts_with_local_declaration_of_0: t(2440, e.DiagnosticCategory.Error, "Import_declaration_conflicts_with_local_declaration_of_0_2440", "Import declaration conflicts with local declaration of '{0}'."), + Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module: t(2441, e.DiagnosticCategory.Error, "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441", "Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."), + Types_have_separate_declarations_of_a_private_property_0: t(2442, e.DiagnosticCategory.Error, "Types_have_separate_declarations_of_a_private_property_0_2442", "Types have separate declarations of a private property '{0}'."), + Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2: t(2443, e.DiagnosticCategory.Error, "Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443", "Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."), + Property_0_is_protected_in_type_1_but_public_in_type_2: t(2444, e.DiagnosticCategory.Error, "Property_0_is_protected_in_type_1_but_public_in_type_2_2444", "Property '{0}' is protected in type '{1}' but public in type '{2}'."), + Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses: t(2445, e.DiagnosticCategory.Error, "Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445", "Property '{0}' is protected and only accessible within class '{1}' and its subclasses."), + Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2: t(2446, e.DiagnosticCategory.Error, "Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446", "Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."), + The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead: t(2447, e.DiagnosticCategory.Error, "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447", "The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."), + Block_scoped_variable_0_used_before_its_declaration: t(2448, e.DiagnosticCategory.Error, "Block_scoped_variable_0_used_before_its_declaration_2448", "Block-scoped variable '{0}' used before its declaration."), + Class_0_used_before_its_declaration: t(2449, e.DiagnosticCategory.Error, "Class_0_used_before_its_declaration_2449", "Class '{0}' used before its declaration."), + Enum_0_used_before_its_declaration: t(2450, e.DiagnosticCategory.Error, "Enum_0_used_before_its_declaration_2450", "Enum '{0}' used before its declaration."), + Cannot_redeclare_block_scoped_variable_0: t(2451, e.DiagnosticCategory.Error, "Cannot_redeclare_block_scoped_variable_0_2451", "Cannot redeclare block-scoped variable '{0}'."), + An_enum_member_cannot_have_a_numeric_name: t(2452, e.DiagnosticCategory.Error, "An_enum_member_cannot_have_a_numeric_name_2452", "An enum member cannot have a numeric name."), + Variable_0_is_used_before_being_assigned: t(2454, e.DiagnosticCategory.Error, "Variable_0_is_used_before_being_assigned_2454", "Variable '{0}' is used before being assigned."), + Type_alias_0_circularly_references_itself: t(2456, e.DiagnosticCategory.Error, "Type_alias_0_circularly_references_itself_2456", "Type alias '{0}' circularly references itself."), + Type_alias_name_cannot_be_0: t(2457, e.DiagnosticCategory.Error, "Type_alias_name_cannot_be_0_2457", "Type alias name cannot be '{0}'."), + An_AMD_module_cannot_have_multiple_name_assignments: t(2458, e.DiagnosticCategory.Error, "An_AMD_module_cannot_have_multiple_name_assignments_2458", "An AMD module cannot have multiple name assignments."), + Module_0_declares_1_locally_but_it_is_not_exported: t(2459, e.DiagnosticCategory.Error, "Module_0_declares_1_locally_but_it_is_not_exported_2459", "Module '{0}' declares '{1}' locally, but it is not exported."), + Module_0_declares_1_locally_but_it_is_exported_as_2: t(2460, e.DiagnosticCategory.Error, "Module_0_declares_1_locally_but_it_is_exported_as_2_2460", "Module '{0}' declares '{1}' locally, but it is exported as '{2}'."), + Type_0_is_not_an_array_type: t(2461, e.DiagnosticCategory.Error, "Type_0_is_not_an_array_type_2461", "Type '{0}' is not an array type."), + A_rest_element_must_be_last_in_a_destructuring_pattern: t(2462, e.DiagnosticCategory.Error, "A_rest_element_must_be_last_in_a_destructuring_pattern_2462", "A rest element must be last in a destructuring pattern."), + A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature: t(2463, e.DiagnosticCategory.Error, "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463", "A binding pattern parameter cannot be optional in an implementation signature."), + A_computed_property_name_must_be_of_type_string_number_symbol_or_any: t(2464, e.DiagnosticCategory.Error, "A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464", "A computed property name must be of type 'string', 'number', 'symbol', or 'any'."), + this_cannot_be_referenced_in_a_computed_property_name: t(2465, e.DiagnosticCategory.Error, "this_cannot_be_referenced_in_a_computed_property_name_2465", "'this' cannot be referenced in a computed property name."), + super_cannot_be_referenced_in_a_computed_property_name: t(2466, e.DiagnosticCategory.Error, "super_cannot_be_referenced_in_a_computed_property_name_2466", "'super' cannot be referenced in a computed property name."), + A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type: t(2467, e.DiagnosticCategory.Error, "A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467", "A computed property name cannot reference a type parameter from its containing type."), + Cannot_find_global_value_0: t(2468, e.DiagnosticCategory.Error, "Cannot_find_global_value_0_2468", "Cannot find global value '{0}'."), + The_0_operator_cannot_be_applied_to_type_symbol: t(2469, e.DiagnosticCategory.Error, "The_0_operator_cannot_be_applied_to_type_symbol_2469", "The '{0}' operator cannot be applied to type 'symbol'."), + Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher: t(2472, e.DiagnosticCategory.Error, "Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472", "Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."), + Enum_declarations_must_all_be_const_or_non_const: t(2473, e.DiagnosticCategory.Error, "Enum_declarations_must_all_be_const_or_non_const_2473", "Enum declarations must all be const or non-const."), + const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values: t(2474, e.DiagnosticCategory.Error, "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474", "const enum member initializers can only contain literal values and other computed enum values."), + const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query: t(2475, e.DiagnosticCategory.Error, "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475", "'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."), + A_const_enum_member_can_only_be_accessed_using_a_string_literal: t(2476, e.DiagnosticCategory.Error, "A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476", "A const enum member can only be accessed using a string literal."), + const_enum_member_initializer_was_evaluated_to_a_non_finite_value: t(2477, e.DiagnosticCategory.Error, "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477", "'const' enum member initializer was evaluated to a non-finite value."), + const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN: t(2478, e.DiagnosticCategory.Error, "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478", "'const' enum member initializer was evaluated to disallowed value 'NaN'."), + let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations: t(2480, e.DiagnosticCategory.Error, "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480", "'let' is not allowed to be used as a name in 'let' or 'const' declarations."), + Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1: t(2481, e.DiagnosticCategory.Error, "Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481", "Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."), + The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation: t(2483, e.DiagnosticCategory.Error, "The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483", "The left-hand side of a 'for...of' statement cannot use a type annotation."), + Export_declaration_conflicts_with_exported_declaration_of_0: t(2484, e.DiagnosticCategory.Error, "Export_declaration_conflicts_with_exported_declaration_of_0_2484", "Export declaration conflicts with exported declaration of '{0}'."), + The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access: t(2487, e.DiagnosticCategory.Error, "The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487", "The left-hand side of a 'for...of' statement must be a variable or a property access."), + Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator: t(2488, e.DiagnosticCategory.Error, "Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488", "Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."), + An_iterator_must_have_a_next_method: t(2489, e.DiagnosticCategory.Error, "An_iterator_must_have_a_next_method_2489", "An iterator must have a 'next()' method."), + The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property: t(2490, e.DiagnosticCategory.Error, "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490", "The type returned by the '{0}()' method of an iterator must have a 'value' property."), + The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern: t(2491, e.DiagnosticCategory.Error, "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491", "The left-hand side of a 'for...in' statement cannot be a destructuring pattern."), + Cannot_redeclare_identifier_0_in_catch_clause: t(2492, e.DiagnosticCategory.Error, "Cannot_redeclare_identifier_0_in_catch_clause_2492", "Cannot redeclare identifier '{0}' in catch clause."), + Tuple_type_0_of_length_1_has_no_element_at_index_2: t(2493, e.DiagnosticCategory.Error, "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493", "Tuple type '{0}' of length '{1}' has no element at index '{2}'."), + Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher: t(2494, e.DiagnosticCategory.Error, "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494", "Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."), + Type_0_is_not_an_array_type_or_a_string_type: t(2495, e.DiagnosticCategory.Error, "Type_0_is_not_an_array_type_or_a_string_type_2495", "Type '{0}' is not an array type or a string type."), + The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression: t(2496, e.DiagnosticCategory.Error, "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496", "The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."), + This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export: t(2497, e.DiagnosticCategory.Error, "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497", "This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."), + Module_0_uses_export_and_cannot_be_used_with_export_Asterisk: t(2498, e.DiagnosticCategory.Error, "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498", "Module '{0}' uses 'export =' and cannot be used with 'export *'."), + An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments: t(2499, e.DiagnosticCategory.Error, "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499", "An interface can only extend an identifier/qualified-name with optional type arguments."), + A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments: t(2500, e.DiagnosticCategory.Error, "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500", "A class can only implement an identifier/qualified-name with optional type arguments."), + A_rest_element_cannot_contain_a_binding_pattern: t(2501, e.DiagnosticCategory.Error, "A_rest_element_cannot_contain_a_binding_pattern_2501", "A rest element cannot contain a binding pattern."), + _0_is_referenced_directly_or_indirectly_in_its_own_type_annotation: t(2502, e.DiagnosticCategory.Error, "_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502", "'{0}' is referenced directly or indirectly in its own type annotation."), + Cannot_find_namespace_0: t(2503, e.DiagnosticCategory.Error, "Cannot_find_namespace_0_2503", "Cannot find namespace '{0}'."), + Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator: t(2504, e.DiagnosticCategory.Error, "Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504", "Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."), + A_generator_cannot_have_a_void_type_annotation: t(2505, e.DiagnosticCategory.Error, "A_generator_cannot_have_a_void_type_annotation_2505", "A generator cannot have a 'void' type annotation."), + _0_is_referenced_directly_or_indirectly_in_its_own_base_expression: t(2506, e.DiagnosticCategory.Error, "_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506", "'{0}' is referenced directly or indirectly in its own base expression."), + Type_0_is_not_a_constructor_function_type: t(2507, e.DiagnosticCategory.Error, "Type_0_is_not_a_constructor_function_type_2507", "Type '{0}' is not a constructor function type."), + No_base_constructor_has_the_specified_number_of_type_arguments: t(2508, e.DiagnosticCategory.Error, "No_base_constructor_has_the_specified_number_of_type_arguments_2508", "No base constructor has the specified number of type arguments."), + Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members: t(2509, e.DiagnosticCategory.Error, "Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509", "Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."), + Base_constructors_must_all_have_the_same_return_type: t(2510, e.DiagnosticCategory.Error, "Base_constructors_must_all_have_the_same_return_type_2510", "Base constructors must all have the same return type."), + Cannot_create_an_instance_of_an_abstract_class: t(2511, e.DiagnosticCategory.Error, "Cannot_create_an_instance_of_an_abstract_class_2511", "Cannot create an instance of an abstract class."), + Overload_signatures_must_all_be_abstract_or_non_abstract: t(2512, e.DiagnosticCategory.Error, "Overload_signatures_must_all_be_abstract_or_non_abstract_2512", "Overload signatures must all be abstract or non-abstract."), + Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression: t(2513, e.DiagnosticCategory.Error, "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513", "Abstract method '{0}' in class '{1}' cannot be accessed via super expression."), + A_tuple_type_cannot_be_indexed_with_a_negative_value: t(2514, e.DiagnosticCategory.Error, "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514", "A tuple type cannot be indexed with a negative value."), + Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2: t(2515, e.DiagnosticCategory.Error, "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515", "Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."), + All_declarations_of_an_abstract_method_must_be_consecutive: t(2516, e.DiagnosticCategory.Error, "All_declarations_of_an_abstract_method_must_be_consecutive_2516", "All declarations of an abstract method must be consecutive."), + Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type: t(2517, e.DiagnosticCategory.Error, "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517", "Cannot assign an abstract constructor type to a non-abstract constructor type."), + A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard: t(2518, e.DiagnosticCategory.Error, "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518", "A 'this'-based type guard is not compatible with a parameter-based type guard."), + An_async_iterator_must_have_a_next_method: t(2519, e.DiagnosticCategory.Error, "An_async_iterator_must_have_a_next_method_2519", "An async iterator must have a 'next()' method."), + Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions: t(2520, e.DiagnosticCategory.Error, "Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520", "Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."), + The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method: t(2522, e.DiagnosticCategory.Error, "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522", "The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."), + yield_expressions_cannot_be_used_in_a_parameter_initializer: t(2523, e.DiagnosticCategory.Error, "yield_expressions_cannot_be_used_in_a_parameter_initializer_2523", "'yield' expressions cannot be used in a parameter initializer."), + await_expressions_cannot_be_used_in_a_parameter_initializer: t(2524, e.DiagnosticCategory.Error, "await_expressions_cannot_be_used_in_a_parameter_initializer_2524", "'await' expressions cannot be used in a parameter initializer."), + Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value: t(2525, e.DiagnosticCategory.Error, "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525", "Initializer provides no value for this binding element and the binding element has no default value."), + A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface: t(2526, e.DiagnosticCategory.Error, "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526", "A 'this' type is available only in a non-static member of a class or interface."), + The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary: t(2527, e.DiagnosticCategory.Error, "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527", "The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."), + A_module_cannot_have_multiple_default_exports: t(2528, e.DiagnosticCategory.Error, "A_module_cannot_have_multiple_default_exports_2528", "A module cannot have multiple default exports."), + Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions: t(2529, e.DiagnosticCategory.Error, "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529", "Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."), + Property_0_is_incompatible_with_index_signature: t(2530, e.DiagnosticCategory.Error, "Property_0_is_incompatible_with_index_signature_2530", "Property '{0}' is incompatible with index signature."), + Object_is_possibly_null: t(2531, e.DiagnosticCategory.Error, "Object_is_possibly_null_2531", "Object is possibly 'null'."), + Object_is_possibly_undefined: t(2532, e.DiagnosticCategory.Error, "Object_is_possibly_undefined_2532", "Object is possibly 'undefined'."), + Object_is_possibly_null_or_undefined: t(2533, e.DiagnosticCategory.Error, "Object_is_possibly_null_or_undefined_2533", "Object is possibly 'null' or 'undefined'."), + A_function_returning_never_cannot_have_a_reachable_end_point: t(2534, e.DiagnosticCategory.Error, "A_function_returning_never_cannot_have_a_reachable_end_point_2534", "A function returning 'never' cannot have a reachable end point."), + Enum_type_0_has_members_with_initializers_that_are_not_literals: t(2535, e.DiagnosticCategory.Error, "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535", "Enum type '{0}' has members with initializers that are not literals."), + Type_0_cannot_be_used_to_index_type_1: t(2536, e.DiagnosticCategory.Error, "Type_0_cannot_be_used_to_index_type_1_2536", "Type '{0}' cannot be used to index type '{1}'."), + Type_0_has_no_matching_index_signature_for_type_1: t(2537, e.DiagnosticCategory.Error, "Type_0_has_no_matching_index_signature_for_type_1_2537", "Type '{0}' has no matching index signature for type '{1}'."), + Type_0_cannot_be_used_as_an_index_type: t(2538, e.DiagnosticCategory.Error, "Type_0_cannot_be_used_as_an_index_type_2538", "Type '{0}' cannot be used as an index type."), + Cannot_assign_to_0_because_it_is_not_a_variable: t(2539, e.DiagnosticCategory.Error, "Cannot_assign_to_0_because_it_is_not_a_variable_2539", "Cannot assign to '{0}' because it is not a variable."), + Cannot_assign_to_0_because_it_is_a_read_only_property: t(2540, e.DiagnosticCategory.Error, "Cannot_assign_to_0_because_it_is_a_read_only_property_2540", "Cannot assign to '{0}' because it is a read-only property."), + Index_signature_in_type_0_only_permits_reading: t(2542, e.DiagnosticCategory.Error, "Index_signature_in_type_0_only_permits_reading_2542", "Index signature in type '{0}' only permits reading."), + Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference: t(2543, e.DiagnosticCategory.Error, "Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543", "Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."), + Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference: t(2544, e.DiagnosticCategory.Error, "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544", "Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."), + A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any: t(2545, e.DiagnosticCategory.Error, "A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545", "A mixin class must have a constructor with a single rest parameter of type 'any[]'."), + The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property: t(2547, e.DiagnosticCategory.Error, "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547", "The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."), + Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator: t(2548, e.DiagnosticCategory.Error, "Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548", "Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."), + Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator: t(2549, e.DiagnosticCategory.Error, "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549", "Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."), + Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later: t(2550, e.DiagnosticCategory.Error, "Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550", "Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."), + Property_0_does_not_exist_on_type_1_Did_you_mean_2: t(2551, e.DiagnosticCategory.Error, "Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551", "Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"), + Cannot_find_name_0_Did_you_mean_1: t(2552, e.DiagnosticCategory.Error, "Cannot_find_name_0_Did_you_mean_1_2552", "Cannot find name '{0}'. Did you mean '{1}'?"), + Computed_values_are_not_permitted_in_an_enum_with_string_valued_members: t(2553, e.DiagnosticCategory.Error, "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553", "Computed values are not permitted in an enum with string valued members."), + Expected_0_arguments_but_got_1: t(2554, e.DiagnosticCategory.Error, "Expected_0_arguments_but_got_1_2554", "Expected {0} arguments, but got {1}."), + Expected_at_least_0_arguments_but_got_1: t(2555, e.DiagnosticCategory.Error, "Expected_at_least_0_arguments_but_got_1_2555", "Expected at least {0} arguments, but got {1}."), + A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter: t(2556, e.DiagnosticCategory.Error, "A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556", "A spread argument must either have a tuple type or be passed to a rest parameter."), + Expected_0_type_arguments_but_got_1: t(2558, e.DiagnosticCategory.Error, "Expected_0_type_arguments_but_got_1_2558", "Expected {0} type arguments, but got {1}."), + Type_0_has_no_properties_in_common_with_type_1: t(2559, e.DiagnosticCategory.Error, "Type_0_has_no_properties_in_common_with_type_1_2559", "Type '{0}' has no properties in common with type '{1}'."), + Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it: t(2560, e.DiagnosticCategory.Error, "Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560", "Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"), + Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2: t(2561, e.DiagnosticCategory.Error, "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561", "Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"), + Base_class_expressions_cannot_reference_class_type_parameters: t(2562, e.DiagnosticCategory.Error, "Base_class_expressions_cannot_reference_class_type_parameters_2562", "Base class expressions cannot reference class type parameters."), + The_containing_function_or_module_body_is_too_large_for_control_flow_analysis: t(2563, e.DiagnosticCategory.Error, "The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563", "The containing function or module body is too large for control flow analysis."), + Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor: t(2564, e.DiagnosticCategory.Error, "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564", "Property '{0}' has no initializer and is not definitely assigned in the constructor."), + Property_0_is_used_before_being_assigned: t(2565, e.DiagnosticCategory.Error, "Property_0_is_used_before_being_assigned_2565", "Property '{0}' is used before being assigned."), + A_rest_element_cannot_have_a_property_name: t(2566, e.DiagnosticCategory.Error, "A_rest_element_cannot_have_a_property_name_2566", "A rest element cannot have a property name."), + Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations: t(2567, e.DiagnosticCategory.Error, "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567", "Enum declarations can only merge with namespace or other enum declarations."), + Property_0_may_not_exist_on_type_1_Did_you_mean_2: t(2568, e.DiagnosticCategory.Error, "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568", "Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"), + Could_not_find_name_0_Did_you_mean_1: t(2570, e.DiagnosticCategory.Error, "Could_not_find_name_0_Did_you_mean_1_2570", "Could not find name '{0}'. Did you mean '{1}'?"), + Object_is_of_type_unknown: t(2571, e.DiagnosticCategory.Error, "Object_is_of_type_unknown_2571", "Object is of type 'unknown'."), + A_rest_element_type_must_be_an_array_type: t(2574, e.DiagnosticCategory.Error, "A_rest_element_type_must_be_an_array_type_2574", "A rest element type must be an array type."), + No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments: t(2575, e.DiagnosticCategory.Error, "No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575", "No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."), + Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead: t(2576, e.DiagnosticCategory.Error, "Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576", "Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"), + Return_type_annotation_circularly_references_itself: t(2577, e.DiagnosticCategory.Error, "Return_type_annotation_circularly_references_itself_2577", "Return type annotation circularly references itself."), + Unused_ts_expect_error_directive: t(2578, e.DiagnosticCategory.Error, "Unused_ts_expect_error_directive_2578", "Unused '@ts-expect-error' directive."), + Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode: t(2580, e.DiagnosticCategory.Error, "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580", "Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."), + Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery: t(2581, e.DiagnosticCategory.Error, "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581", "Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."), + Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha: t(2582, e.DiagnosticCategory.Error, "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582", "Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."), + Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later: t(2583, e.DiagnosticCategory.Error, "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583", "Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."), + Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom: t(2584, e.DiagnosticCategory.Error, "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584", "Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."), + _0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later: t(2585, e.DiagnosticCategory.Error, "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585", "'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."), + Cannot_assign_to_0_because_it_is_a_constant: t(2588, e.DiagnosticCategory.Error, "Cannot_assign_to_0_because_it_is_a_constant_2588", "Cannot assign to '{0}' because it is a constant."), + Type_instantiation_is_excessively_deep_and_possibly_infinite: t(2589, e.DiagnosticCategory.Error, "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589", "Type instantiation is excessively deep and possibly infinite."), + Expression_produces_a_union_type_that_is_too_complex_to_represent: t(2590, e.DiagnosticCategory.Error, "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590", "Expression produces a union type that is too complex to represent."), + Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig: t(2591, e.DiagnosticCategory.Error, "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591", "Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."), + Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig: t(2592, e.DiagnosticCategory.Error, "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592", "Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."), + Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig: t(2593, e.DiagnosticCategory.Error, "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593", "Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."), + This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag: t(2594, e.DiagnosticCategory.Error, "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594", "This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."), + _0_can_only_be_imported_by_using_a_default_import: t(2595, e.DiagnosticCategory.Error, "_0_can_only_be_imported_by_using_a_default_import_2595", "'{0}' can only be imported by using a default import."), + _0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import: t(2596, e.DiagnosticCategory.Error, "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596", "'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."), + _0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import: t(2597, e.DiagnosticCategory.Error, "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597", "'{0}' can only be imported by using a 'require' call or by using a default import."), + _0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import: t(2598, e.DiagnosticCategory.Error, "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598", "'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."), + JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist: t(2602, e.DiagnosticCategory.Error, "JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602", "JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."), + Property_0_in_type_1_is_not_assignable_to_type_2: t(2603, e.DiagnosticCategory.Error, "Property_0_in_type_1_is_not_assignable_to_type_2_2603", "Property '{0}' in type '{1}' is not assignable to type '{2}'."), + JSX_element_type_0_does_not_have_any_construct_or_call_signatures: t(2604, e.DiagnosticCategory.Error, "JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604", "JSX element type '{0}' does not have any construct or call signatures."), + Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property: t(2606, e.DiagnosticCategory.Error, "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606", "Property '{0}' of JSX spread attribute is not assignable to target property."), + JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property: t(2607, e.DiagnosticCategory.Error, "JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607", "JSX element class does not support attributes because it does not have a '{0}' property."), + The_global_type_JSX_0_may_not_have_more_than_one_property: t(2608, e.DiagnosticCategory.Error, "The_global_type_JSX_0_may_not_have_more_than_one_property_2608", "The global type 'JSX.{0}' may not have more than one property."), + JSX_spread_child_must_be_an_array_type: t(2609, e.DiagnosticCategory.Error, "JSX_spread_child_must_be_an_array_type_2609", "JSX spread child must be an array type."), + _0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property: t(2610, e.DiagnosticCategory.Error, "_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610", "'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."), + _0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor: t(2611, e.DiagnosticCategory.Error, "_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611", "'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."), + Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration: t(2612, e.DiagnosticCategory.Error, "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612", "Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."), + Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead: t(2613, e.DiagnosticCategory.Error, "Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613", "Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"), + Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead: t(2614, e.DiagnosticCategory.Error, "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614", "Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"), + Type_of_property_0_circularly_references_itself_in_mapped_type_1: t(2615, e.DiagnosticCategory.Error, "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615", "Type of property '{0}' circularly references itself in mapped type '{1}'."), + _0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import: t(2616, e.DiagnosticCategory.Error, "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616", "'{0}' can only be imported by using 'import {1} = require({2})' or a default import."), + _0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import: t(2617, e.DiagnosticCategory.Error, "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617", "'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."), + Source_has_0_element_s_but_target_requires_1: t(2618, e.DiagnosticCategory.Error, "Source_has_0_element_s_but_target_requires_1_2618", "Source has {0} element(s) but target requires {1}."), + Source_has_0_element_s_but_target_allows_only_1: t(2619, e.DiagnosticCategory.Error, "Source_has_0_element_s_but_target_allows_only_1_2619", "Source has {0} element(s) but target allows only {1}."), + Target_requires_0_element_s_but_source_may_have_fewer: t(2620, e.DiagnosticCategory.Error, "Target_requires_0_element_s_but_source_may_have_fewer_2620", "Target requires {0} element(s) but source may have fewer."), + Target_allows_only_0_element_s_but_source_may_have_more: t(2621, e.DiagnosticCategory.Error, "Target_allows_only_0_element_s_but_source_may_have_more_2621", "Target allows only {0} element(s) but source may have more."), + Source_provides_no_match_for_required_element_at_position_0_in_target: t(2623, e.DiagnosticCategory.Error, "Source_provides_no_match_for_required_element_at_position_0_in_target_2623", "Source provides no match for required element at position {0} in target."), + Source_provides_no_match_for_variadic_element_at_position_0_in_target: t(2624, e.DiagnosticCategory.Error, "Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624", "Source provides no match for variadic element at position {0} in target."), + Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target: t(2625, e.DiagnosticCategory.Error, "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625", "Variadic element at position {0} in source does not match element at position {1} in target."), + Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target: t(2626, e.DiagnosticCategory.Error, "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626", "Type at position {0} in source is not compatible with type at position {1} in target."), + Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target: t(2627, e.DiagnosticCategory.Error, "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627", "Type at positions {0} through {1} in source is not compatible with type at position {2} in target."), + Cannot_assign_to_0_because_it_is_an_enum: t(2628, e.DiagnosticCategory.Error, "Cannot_assign_to_0_because_it_is_an_enum_2628", "Cannot assign to '{0}' because it is an enum."), + Cannot_assign_to_0_because_it_is_a_class: t(2629, e.DiagnosticCategory.Error, "Cannot_assign_to_0_because_it_is_a_class_2629", "Cannot assign to '{0}' because it is a class."), + Cannot_assign_to_0_because_it_is_a_function: t(2630, e.DiagnosticCategory.Error, "Cannot_assign_to_0_because_it_is_a_function_2630", "Cannot assign to '{0}' because it is a function."), + Cannot_assign_to_0_because_it_is_a_namespace: t(2631, e.DiagnosticCategory.Error, "Cannot_assign_to_0_because_it_is_a_namespace_2631", "Cannot assign to '{0}' because it is a namespace."), + Cannot_assign_to_0_because_it_is_an_import: t(2632, e.DiagnosticCategory.Error, "Cannot_assign_to_0_because_it_is_an_import_2632", "Cannot assign to '{0}' because it is an import."), + JSX_property_access_expressions_cannot_include_JSX_namespace_names: t(2633, e.DiagnosticCategory.Error, "JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633", "JSX property access expressions cannot include JSX namespace names"), + _0_index_signatures_are_incompatible: t(2634, e.DiagnosticCategory.Error, "_0_index_signatures_are_incompatible_2634", "'{0}' index signatures are incompatible."), + Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable: t(2635, e.DiagnosticCategory.Error, "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635", "Type '{0}' has no signatures for which the type argument list is applicable."), + Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation: t(2636, e.DiagnosticCategory.Error, "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636", "Type '{0}' is not assignable to type '{1}' as implied by variance annotation."), + Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types: t(2637, e.DiagnosticCategory.Error, "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637", "Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."), + Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator: t(2638, e.DiagnosticCategory.Error, "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638", "Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."), + Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity: t(2649, e.DiagnosticCategory.Error, "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649", "Cannot augment module '{0}' with value exports because it resolves to a non-module entity."), + A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums: t(2651, e.DiagnosticCategory.Error, "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651", "A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."), + Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead: t(2652, e.DiagnosticCategory.Error, "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652", "Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."), + Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1: t(2653, e.DiagnosticCategory.Error, "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653", "Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."), + JSX_expressions_must_have_one_parent_element: t(2657, e.DiagnosticCategory.Error, "JSX_expressions_must_have_one_parent_element_2657", "JSX expressions must have one parent element."), + Type_0_provides_no_match_for_the_signature_1: t(2658, e.DiagnosticCategory.Error, "Type_0_provides_no_match_for_the_signature_1_2658", "Type '{0}' provides no match for the signature '{1}'."), + super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher: t(2659, e.DiagnosticCategory.Error, "super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659", "'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."), + super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions: t(2660, e.DiagnosticCategory.Error, "super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660", "'super' can only be referenced in members of derived classes or object literal expressions."), + Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module: t(2661, e.DiagnosticCategory.Error, "Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661", "Cannot export '{0}'. Only local declarations can be exported from a module."), + Cannot_find_name_0_Did_you_mean_the_static_member_1_0: t(2662, e.DiagnosticCategory.Error, "Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662", "Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"), + Cannot_find_name_0_Did_you_mean_the_instance_member_this_0: t(2663, e.DiagnosticCategory.Error, "Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663", "Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"), + Invalid_module_name_in_augmentation_module_0_cannot_be_found: t(2664, e.DiagnosticCategory.Error, "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664", "Invalid module name in augmentation, module '{0}' cannot be found."), + Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented: t(2665, e.DiagnosticCategory.Error, "Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665", "Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."), + Exports_and_export_assignments_are_not_permitted_in_module_augmentations: t(2666, e.DiagnosticCategory.Error, "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666", "Exports and export assignments are not permitted in module augmentations."), + Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module: t(2667, e.DiagnosticCategory.Error, "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667", "Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."), + export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible: t(2668, e.DiagnosticCategory.Error, "export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668", "'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."), + Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations: t(2669, e.DiagnosticCategory.Error, "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669", "Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."), + Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context: t(2670, e.DiagnosticCategory.Error, "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670", "Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."), + Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity: t(2671, e.DiagnosticCategory.Error, "Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671", "Cannot augment module '{0}' because it resolves to a non-module entity."), + Cannot_assign_a_0_constructor_type_to_a_1_constructor_type: t(2672, e.DiagnosticCategory.Error, "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672", "Cannot assign a '{0}' constructor type to a '{1}' constructor type."), + Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration: t(2673, e.DiagnosticCategory.Error, "Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673", "Constructor of class '{0}' is private and only accessible within the class declaration."), + Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration: t(2674, e.DiagnosticCategory.Error, "Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674", "Constructor of class '{0}' is protected and only accessible within the class declaration."), + Cannot_extend_a_class_0_Class_constructor_is_marked_as_private: t(2675, e.DiagnosticCategory.Error, "Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675", "Cannot extend a class '{0}'. Class constructor is marked as private."), + Accessors_must_both_be_abstract_or_non_abstract: t(2676, e.DiagnosticCategory.Error, "Accessors_must_both_be_abstract_or_non_abstract_2676", "Accessors must both be abstract or non-abstract."), + A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type: t(2677, e.DiagnosticCategory.Error, "A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677", "A type predicate's type must be assignable to its parameter's type."), + Type_0_is_not_comparable_to_type_1: t(2678, e.DiagnosticCategory.Error, "Type_0_is_not_comparable_to_type_1_2678", "Type '{0}' is not comparable to type '{1}'."), + A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void: t(2679, e.DiagnosticCategory.Error, "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679", "A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."), + A_0_parameter_must_be_the_first_parameter: t(2680, e.DiagnosticCategory.Error, "A_0_parameter_must_be_the_first_parameter_2680", "A '{0}' parameter must be the first parameter."), + A_constructor_cannot_have_a_this_parameter: t(2681, e.DiagnosticCategory.Error, "A_constructor_cannot_have_a_this_parameter_2681", "A constructor cannot have a 'this' parameter."), + this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation: t(2683, e.DiagnosticCategory.Error, "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683", "'this' implicitly has type 'any' because it does not have a type annotation."), + The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1: t(2684, e.DiagnosticCategory.Error, "The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684", "The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."), + The_this_types_of_each_signature_are_incompatible: t(2685, e.DiagnosticCategory.Error, "The_this_types_of_each_signature_are_incompatible_2685", "The 'this' types of each signature are incompatible."), + _0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead: t(2686, e.DiagnosticCategory.Error, "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686", "'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."), + All_declarations_of_0_must_have_identical_modifiers: t(2687, e.DiagnosticCategory.Error, "All_declarations_of_0_must_have_identical_modifiers_2687", "All declarations of '{0}' must have identical modifiers."), + Cannot_find_type_definition_file_for_0: t(2688, e.DiagnosticCategory.Error, "Cannot_find_type_definition_file_for_0_2688", "Cannot find type definition file for '{0}'."), + Cannot_extend_an_interface_0_Did_you_mean_implements: t(2689, e.DiagnosticCategory.Error, "Cannot_extend_an_interface_0_Did_you_mean_implements_2689", "Cannot extend an interface '{0}'. Did you mean 'implements'?"), + _0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0: t(2690, e.DiagnosticCategory.Error, "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690", "'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"), + An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead: t(2691, e.DiagnosticCategory.Error, "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691", "An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."), + _0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible: t(2692, e.DiagnosticCategory.Error, "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692", "'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."), + _0_only_refers_to_a_type_but_is_being_used_as_a_value_here: t(2693, e.DiagnosticCategory.Error, "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693", "'{0}' only refers to a type, but is being used as a value here."), + Namespace_0_has_no_exported_member_1: t(2694, e.DiagnosticCategory.Error, "Namespace_0_has_no_exported_member_1_2694", "Namespace '{0}' has no exported member '{1}'."), + Left_side_of_comma_operator_is_unused_and_has_no_side_effects: t(2695, e.DiagnosticCategory.Error, "Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695", "Left side of comma operator is unused and has no side effects.", !0), + The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead: t(2696, e.DiagnosticCategory.Error, "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696", "The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"), + An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option: t(2697, e.DiagnosticCategory.Error, "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697", "An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."), + Spread_types_may_only_be_created_from_object_types: t(2698, e.DiagnosticCategory.Error, "Spread_types_may_only_be_created_from_object_types_2698", "Spread types may only be created from object types."), + Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1: t(2699, e.DiagnosticCategory.Error, "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699", "Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."), + Rest_types_may_only_be_created_from_object_types: t(2700, e.DiagnosticCategory.Error, "Rest_types_may_only_be_created_from_object_types_2700", "Rest types may only be created from object types."), + The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access: t(2701, e.DiagnosticCategory.Error, "The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701", "The target of an object rest assignment must be a variable or a property access."), + _0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here: t(2702, e.DiagnosticCategory.Error, "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702", "'{0}' only refers to a type, but is being used as a namespace here."), + The_operand_of_a_delete_operator_must_be_a_property_reference: t(2703, e.DiagnosticCategory.Error, "The_operand_of_a_delete_operator_must_be_a_property_reference_2703", "The operand of a 'delete' operator must be a property reference."), + The_operand_of_a_delete_operator_cannot_be_a_read_only_property: t(2704, e.DiagnosticCategory.Error, "The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704", "The operand of a 'delete' operator cannot be a read-only property."), + An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option: t(2705, e.DiagnosticCategory.Error, "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705", "An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."), + Required_type_parameters_may_not_follow_optional_type_parameters: t(2706, e.DiagnosticCategory.Error, "Required_type_parameters_may_not_follow_optional_type_parameters_2706", "Required type parameters may not follow optional type parameters."), + Generic_type_0_requires_between_1_and_2_type_arguments: t(2707, e.DiagnosticCategory.Error, "Generic_type_0_requires_between_1_and_2_type_arguments_2707", "Generic type '{0}' requires between {1} and {2} type arguments."), + Cannot_use_namespace_0_as_a_value: t(2708, e.DiagnosticCategory.Error, "Cannot_use_namespace_0_as_a_value_2708", "Cannot use namespace '{0}' as a value."), + Cannot_use_namespace_0_as_a_type: t(2709, e.DiagnosticCategory.Error, "Cannot_use_namespace_0_as_a_type_2709", "Cannot use namespace '{0}' as a type."), + _0_are_specified_twice_The_attribute_named_0_will_be_overwritten: t(2710, e.DiagnosticCategory.Error, "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710", "'{0}' are specified twice. The attribute named '{0}' will be overwritten."), + A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option: t(2711, e.DiagnosticCategory.Error, "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711", "A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."), + A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option: t(2712, e.DiagnosticCategory.Error, "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712", "A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."), + Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1: t(2713, e.DiagnosticCategory.Error, "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713", "Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"), + The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context: t(2714, e.DiagnosticCategory.Error, "The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714", "The expression of an export assignment must be an identifier or qualified name in an ambient context."), + Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor: t(2715, e.DiagnosticCategory.Error, "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715", "Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."), + Type_parameter_0_has_a_circular_default: t(2716, e.DiagnosticCategory.Error, "Type_parameter_0_has_a_circular_default_2716", "Type parameter '{0}' has a circular default."), + Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2: t(2717, e.DiagnosticCategory.Error, "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717", "Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."), + Duplicate_property_0: t(2718, e.DiagnosticCategory.Error, "Duplicate_property_0_2718", "Duplicate property '{0}'."), + Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated: t(2719, e.DiagnosticCategory.Error, "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719", "Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."), + Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass: t(2720, e.DiagnosticCategory.Error, "Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720", "Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"), + Cannot_invoke_an_object_which_is_possibly_null: t(2721, e.DiagnosticCategory.Error, "Cannot_invoke_an_object_which_is_possibly_null_2721", "Cannot invoke an object which is possibly 'null'."), + Cannot_invoke_an_object_which_is_possibly_undefined: t(2722, e.DiagnosticCategory.Error, "Cannot_invoke_an_object_which_is_possibly_undefined_2722", "Cannot invoke an object which is possibly 'undefined'."), + Cannot_invoke_an_object_which_is_possibly_null_or_undefined: t(2723, e.DiagnosticCategory.Error, "Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723", "Cannot invoke an object which is possibly 'null' or 'undefined'."), + _0_has_no_exported_member_named_1_Did_you_mean_2: t(2724, e.DiagnosticCategory.Error, "_0_has_no_exported_member_named_1_Did_you_mean_2_2724", "'{0}' has no exported member named '{1}'. Did you mean '{2}'?"), + Class_name_cannot_be_Object_when_targeting_ES5_with_module_0: t(2725, e.DiagnosticCategory.Error, "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725", "Class name cannot be 'Object' when targeting ES5 with module {0}."), + Cannot_find_lib_definition_for_0: t(2726, e.DiagnosticCategory.Error, "Cannot_find_lib_definition_for_0_2726", "Cannot find lib definition for '{0}'."), + Cannot_find_lib_definition_for_0_Did_you_mean_1: t(2727, e.DiagnosticCategory.Error, "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727", "Cannot find lib definition for '{0}'. Did you mean '{1}'?"), + _0_is_declared_here: t(2728, e.DiagnosticCategory.Message, "_0_is_declared_here_2728", "'{0}' is declared here."), + Property_0_is_used_before_its_initialization: t(2729, e.DiagnosticCategory.Error, "Property_0_is_used_before_its_initialization_2729", "Property '{0}' is used before its initialization."), + An_arrow_function_cannot_have_a_this_parameter: t(2730, e.DiagnosticCategory.Error, "An_arrow_function_cannot_have_a_this_parameter_2730", "An arrow function cannot have a 'this' parameter."), + Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String: t(2731, e.DiagnosticCategory.Error, "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731", "Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."), + Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension: t(2732, e.DiagnosticCategory.Error, "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732", "Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."), + Property_0_was_also_declared_here: t(2733, e.DiagnosticCategory.Error, "Property_0_was_also_declared_here_2733", "Property '{0}' was also declared here."), + Are_you_missing_a_semicolon: t(2734, e.DiagnosticCategory.Error, "Are_you_missing_a_semicolon_2734", "Are you missing a semicolon?"), + Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1: t(2735, e.DiagnosticCategory.Error, "Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735", "Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"), + Operator_0_cannot_be_applied_to_type_1: t(2736, e.DiagnosticCategory.Error, "Operator_0_cannot_be_applied_to_type_1_2736", "Operator '{0}' cannot be applied to type '{1}'."), + BigInt_literals_are_not_available_when_targeting_lower_than_ES2020: t(2737, e.DiagnosticCategory.Error, "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737", "BigInt literals are not available when targeting lower than ES2020."), + An_outer_value_of_this_is_shadowed_by_this_container: t(2738, e.DiagnosticCategory.Message, "An_outer_value_of_this_is_shadowed_by_this_container_2738", "An outer value of 'this' is shadowed by this container."), + Type_0_is_missing_the_following_properties_from_type_1_Colon_2: t(2739, e.DiagnosticCategory.Error, "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739", "Type '{0}' is missing the following properties from type '{1}': {2}"), + Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more: t(2740, e.DiagnosticCategory.Error, "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740", "Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."), + Property_0_is_missing_in_type_1_but_required_in_type_2: t(2741, e.DiagnosticCategory.Error, "Property_0_is_missing_in_type_1_but_required_in_type_2_2741", "Property '{0}' is missing in type '{1}' but required in type '{2}'."), + The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary: t(2742, e.DiagnosticCategory.Error, "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742", "The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."), + No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments: t(2743, e.DiagnosticCategory.Error, "No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743", "No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."), + Type_parameter_defaults_can_only_reference_previously_declared_type_parameters: t(2744, e.DiagnosticCategory.Error, "Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744", "Type parameter defaults can only reference previously declared type parameters."), + This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided: t(2745, e.DiagnosticCategory.Error, "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745", "This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."), + This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided: t(2746, e.DiagnosticCategory.Error, "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746", "This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."), + _0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2: t(2747, e.DiagnosticCategory.Error, "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747", "'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."), + Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided: t(2748, e.DiagnosticCategory.Error, "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748", "Cannot access ambient const enums when the '--isolatedModules' flag is provided."), + _0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0: t(2749, e.DiagnosticCategory.Error, "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749", "'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"), + The_implementation_signature_is_declared_here: t(2750, e.DiagnosticCategory.Error, "The_implementation_signature_is_declared_here_2750", "The implementation signature is declared here."), + Circularity_originates_in_type_at_this_location: t(2751, e.DiagnosticCategory.Error, "Circularity_originates_in_type_at_this_location_2751", "Circularity originates in type at this location."), + The_first_export_default_is_here: t(2752, e.DiagnosticCategory.Error, "The_first_export_default_is_here_2752", "The first export default is here."), + Another_export_default_is_here: t(2753, e.DiagnosticCategory.Error, "Another_export_default_is_here_2753", "Another export default is here."), + super_may_not_use_type_arguments: t(2754, e.DiagnosticCategory.Error, "super_may_not_use_type_arguments_2754", "'super' may not use type arguments."), + No_constituent_of_type_0_is_callable: t(2755, e.DiagnosticCategory.Error, "No_constituent_of_type_0_is_callable_2755", "No constituent of type '{0}' is callable."), + Not_all_constituents_of_type_0_are_callable: t(2756, e.DiagnosticCategory.Error, "Not_all_constituents_of_type_0_are_callable_2756", "Not all constituents of type '{0}' are callable."), + Type_0_has_no_call_signatures: t(2757, e.DiagnosticCategory.Error, "Type_0_has_no_call_signatures_2757", "Type '{0}' has no call signatures."), + Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other: t(2758, e.DiagnosticCategory.Error, "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758", "Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."), + No_constituent_of_type_0_is_constructable: t(2759, e.DiagnosticCategory.Error, "No_constituent_of_type_0_is_constructable_2759", "No constituent of type '{0}' is constructable."), + Not_all_constituents_of_type_0_are_constructable: t(2760, e.DiagnosticCategory.Error, "Not_all_constituents_of_type_0_are_constructable_2760", "Not all constituents of type '{0}' are constructable."), + Type_0_has_no_construct_signatures: t(2761, e.DiagnosticCategory.Error, "Type_0_has_no_construct_signatures_2761", "Type '{0}' has no construct signatures."), + Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other: t(2762, e.DiagnosticCategory.Error, "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762", "Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."), + Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0: t(2763, e.DiagnosticCategory.Error, "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763", "Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."), + Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0: t(2764, e.DiagnosticCategory.Error, "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764", "Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."), + Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0: t(2765, e.DiagnosticCategory.Error, "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765", "Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."), + Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0: t(2766, e.DiagnosticCategory.Error, "Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766", "Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."), + The_0_property_of_an_iterator_must_be_a_method: t(2767, e.DiagnosticCategory.Error, "The_0_property_of_an_iterator_must_be_a_method_2767", "The '{0}' property of an iterator must be a method."), + The_0_property_of_an_async_iterator_must_be_a_method: t(2768, e.DiagnosticCategory.Error, "The_0_property_of_an_async_iterator_must_be_a_method_2768", "The '{0}' property of an async iterator must be a method."), + No_overload_matches_this_call: t(2769, e.DiagnosticCategory.Error, "No_overload_matches_this_call_2769", "No overload matches this call."), + The_last_overload_gave_the_following_error: t(2770, e.DiagnosticCategory.Error, "The_last_overload_gave_the_following_error_2770", "The last overload gave the following error."), + The_last_overload_is_declared_here: t(2771, e.DiagnosticCategory.Error, "The_last_overload_is_declared_here_2771", "The last overload is declared here."), + Overload_0_of_1_2_gave_the_following_error: t(2772, e.DiagnosticCategory.Error, "Overload_0_of_1_2_gave_the_following_error_2772", "Overload {0} of {1}, '{2}', gave the following error."), + Did_you_forget_to_use_await: t(2773, e.DiagnosticCategory.Error, "Did_you_forget_to_use_await_2773", "Did you forget to use 'await'?"), + This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead: t(2774, e.DiagnosticCategory.Error, "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774", "This condition will always return true since this function is always defined. Did you mean to call it instead?"), + Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation: t(2775, e.DiagnosticCategory.Error, "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775", "Assertions require every name in the call target to be declared with an explicit type annotation."), + Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name: t(2776, e.DiagnosticCategory.Error, "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776", "Assertions require the call target to be an identifier or qualified name."), + The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access: t(2777, e.DiagnosticCategory.Error, "The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777", "The operand of an increment or decrement operator may not be an optional property access."), + The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access: t(2778, e.DiagnosticCategory.Error, "The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778", "The target of an object rest assignment may not be an optional property access."), + The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access: t(2779, e.DiagnosticCategory.Error, "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779", "The left-hand side of an assignment expression may not be an optional property access."), + The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access: t(2780, e.DiagnosticCategory.Error, "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780", "The left-hand side of a 'for...in' statement may not be an optional property access."), + The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access: t(2781, e.DiagnosticCategory.Error, "The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781", "The left-hand side of a 'for...of' statement may not be an optional property access."), + _0_needs_an_explicit_type_annotation: t(2782, e.DiagnosticCategory.Message, "_0_needs_an_explicit_type_annotation_2782", "'{0}' needs an explicit type annotation."), + _0_is_specified_more_than_once_so_this_usage_will_be_overwritten: t(2783, e.DiagnosticCategory.Error, "_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783", "'{0}' is specified more than once, so this usage will be overwritten."), + get_and_set_accessors_cannot_declare_this_parameters: t(2784, e.DiagnosticCategory.Error, "get_and_set_accessors_cannot_declare_this_parameters_2784", "'get' and 'set' accessors cannot declare 'this' parameters."), + This_spread_always_overwrites_this_property: t(2785, e.DiagnosticCategory.Error, "This_spread_always_overwrites_this_property_2785", "This spread always overwrites this property."), + _0_cannot_be_used_as_a_JSX_component: t(2786, e.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_JSX_component_2786", "'{0}' cannot be used as a JSX component."), + Its_return_type_0_is_not_a_valid_JSX_element: t(2787, e.DiagnosticCategory.Error, "Its_return_type_0_is_not_a_valid_JSX_element_2787", "Its return type '{0}' is not a valid JSX element."), + Its_instance_type_0_is_not_a_valid_JSX_element: t(2788, e.DiagnosticCategory.Error, "Its_instance_type_0_is_not_a_valid_JSX_element_2788", "Its instance type '{0}' is not a valid JSX element."), + Its_element_type_0_is_not_a_valid_JSX_element: t(2789, e.DiagnosticCategory.Error, "Its_element_type_0_is_not_a_valid_JSX_element_2789", "Its element type '{0}' is not a valid JSX element."), + The_operand_of_a_delete_operator_must_be_optional: t(2790, e.DiagnosticCategory.Error, "The_operand_of_a_delete_operator_must_be_optional_2790", "The operand of a 'delete' operator must be optional."), + Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later: t(2791, e.DiagnosticCategory.Error, "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791", "Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."), + Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option: t(2792, e.DiagnosticCategory.Error, "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792", "Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"), + The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible: t(2793, e.DiagnosticCategory.Error, "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793", "The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."), + Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise: t(2794, e.DiagnosticCategory.Error, "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794", "Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"), + The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types: t(2795, e.DiagnosticCategory.Error, "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795", "The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."), + It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked: t(2796, e.DiagnosticCategory.Error, "It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796", "It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."), + A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract: t(2797, e.DiagnosticCategory.Error, "A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797", "A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."), + The_declaration_was_marked_as_deprecated_here: t(2798, e.DiagnosticCategory.Error, "The_declaration_was_marked_as_deprecated_here_2798", "The declaration was marked as deprecated here."), + Type_produces_a_tuple_type_that_is_too_large_to_represent: t(2799, e.DiagnosticCategory.Error, "Type_produces_a_tuple_type_that_is_too_large_to_represent_2799", "Type produces a tuple type that is too large to represent."), + Expression_produces_a_tuple_type_that_is_too_large_to_represent: t(2800, e.DiagnosticCategory.Error, "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800", "Expression produces a tuple type that is too large to represent."), + This_condition_will_always_return_true_since_this_0_is_always_defined: t(2801, e.DiagnosticCategory.Error, "This_condition_will_always_return_true_since_this_0_is_always_defined_2801", "This condition will always return true since this '{0}' is always defined."), + Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher: t(2802, e.DiagnosticCategory.Error, "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802", "Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."), + Cannot_assign_to_private_method_0_Private_methods_are_not_writable: t(2803, e.DiagnosticCategory.Error, "Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803", "Cannot assign to private method '{0}'. Private methods are not writable."), + Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name: t(2804, e.DiagnosticCategory.Error, "Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804", "Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."), + Private_accessor_was_defined_without_a_getter: t(2806, e.DiagnosticCategory.Error, "Private_accessor_was_defined_without_a_getter_2806", "Private accessor was defined without a getter."), + This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0: t(2807, e.DiagnosticCategory.Error, "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807", "This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."), + A_get_accessor_must_be_at_least_as_accessible_as_the_setter: t(2808, e.DiagnosticCategory.Error, "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808", "A get accessor must be at least as accessible as the setter"), + Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses: t(2809, e.DiagnosticCategory.Error, "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809", "Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."), + Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments: t(2810, e.DiagnosticCategory.Error, "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810", "Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."), + Initializer_for_property_0: t(2811, e.DiagnosticCategory.Error, "Initializer_for_property_0_2811", "Initializer for property '{0}'"), + Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom: t(2812, e.DiagnosticCategory.Error, "Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812", "Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."), + Class_declaration_cannot_implement_overload_list_for_0: t(2813, e.DiagnosticCategory.Error, "Class_declaration_cannot_implement_overload_list_for_0_2813", "Class declaration cannot implement overload list for '{0}'."), + Function_with_bodies_can_only_merge_with_classes_that_are_ambient: t(2814, e.DiagnosticCategory.Error, "Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814", "Function with bodies can only merge with classes that are ambient."), + arguments_cannot_be_referenced_in_property_initializers: t(2815, e.DiagnosticCategory.Error, "arguments_cannot_be_referenced_in_property_initializers_2815", "'arguments' cannot be referenced in property initializers."), + Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class: t(2816, e.DiagnosticCategory.Error, "Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816", "Cannot use 'this' in a static property initializer of a decorated class."), + Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block: t(2817, e.DiagnosticCategory.Error, "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817", "Property '{0}' has no initializer and is not definitely assigned in a class static block."), + Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers: t(2818, e.DiagnosticCategory.Error, "Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818", "Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."), + Namespace_name_cannot_be_0: t(2819, e.DiagnosticCategory.Error, "Namespace_name_cannot_be_0_2819", "Namespace name cannot be '{0}'."), + Type_0_is_not_assignable_to_type_1_Did_you_mean_2: t(2820, e.DiagnosticCategory.Error, "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820", "Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"), + Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext: t(2821, e.DiagnosticCategory.Error, "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821", "Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."), + Import_assertions_cannot_be_used_with_type_only_imports_or_exports: t(2822, e.DiagnosticCategory.Error, "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822", "Import assertions cannot be used with type-only imports or exports."), + Cannot_find_namespace_0_Did_you_mean_1: t(2833, e.DiagnosticCategory.Error, "Cannot_find_namespace_0_Did_you_mean_1_2833", "Cannot find namespace '{0}'. Did you mean '{1}'?"), + Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path: t(2834, e.DiagnosticCategory.Error, "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834", "Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."), + Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0: t(2835, e.DiagnosticCategory.Error, "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835", "Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"), + Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls: t(2836, e.DiagnosticCategory.Error, "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836", "Import assertions are not allowed on statements that transpile to commonjs 'require' calls."), + Import_assertion_values_must_be_string_literal_expressions: t(2837, e.DiagnosticCategory.Error, "Import_assertion_values_must_be_string_literal_expressions_2837", "Import assertion values must be string literal expressions."), + All_declarations_of_0_must_have_identical_constraints: t(2838, e.DiagnosticCategory.Error, "All_declarations_of_0_must_have_identical_constraints_2838", "All declarations of '{0}' must have identical constraints."), + This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value: t(2839, e.DiagnosticCategory.Error, "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839", "This condition will always return '{0}' since JavaScript compares objects by reference, not value."), + An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes: t(2840, e.DiagnosticCategory.Error, "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840", "An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"), + The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: t(2841, e.DiagnosticCategory.Error, "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841", "The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."), + _0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation: t(2842, e.DiagnosticCategory.Error, "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842", "'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"), + We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here: t(2843, e.DiagnosticCategory.Error, "We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843", "We can only write a type for '{0}' by adding a type for the entire parameter here."), + Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: t(2844, e.DiagnosticCategory.Error, "Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844", "Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."), + This_condition_will_always_return_0: t(2845, e.DiagnosticCategory.Error, "This_condition_will_always_return_0_2845", "This condition will always return '{0}'."), + Import_declaration_0_is_using_private_name_1: t(4e3, e.DiagnosticCategory.Error, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."), + Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: t(4002, e.DiagnosticCategory.Error, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."), + Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: t(4004, e.DiagnosticCategory.Error, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."), + Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1: t(4006, e.DiagnosticCategory.Error, "Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006", "Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."), + Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1: t(4008, e.DiagnosticCategory.Error, "Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008", "Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."), + Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1: t(4010, e.DiagnosticCategory.Error, "Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010", "Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."), + Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1: t(4012, e.DiagnosticCategory.Error, "Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012", "Type parameter '{0}' of public method from exported class has or is using private name '{1}'."), + Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1: t(4014, e.DiagnosticCategory.Error, "Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014", "Type parameter '{0}' of method from exported interface has or is using private name '{1}'."), + Type_parameter_0_of_exported_function_has_or_is_using_private_name_1: t(4016, e.DiagnosticCategory.Error, "Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016", "Type parameter '{0}' of exported function has or is using private name '{1}'."), + Implements_clause_of_exported_class_0_has_or_is_using_private_name_1: t(4019, e.DiagnosticCategory.Error, "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019", "Implements clause of exported class '{0}' has or is using private name '{1}'."), + extends_clause_of_exported_class_0_has_or_is_using_private_name_1: t(4020, e.DiagnosticCategory.Error, "extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020", "'extends' clause of exported class '{0}' has or is using private name '{1}'."), + extends_clause_of_exported_class_has_or_is_using_private_name_0: t(4021, e.DiagnosticCategory.Error, "extends_clause_of_exported_class_has_or_is_using_private_name_0_4021", "'extends' clause of exported class has or is using private name '{0}'."), + extends_clause_of_exported_interface_0_has_or_is_using_private_name_1: t(4022, e.DiagnosticCategory.Error, "extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022", "'extends' clause of exported interface '{0}' has or is using private name '{1}'."), + Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: t(4023, e.DiagnosticCategory.Error, "Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023", "Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."), + Exported_variable_0_has_or_is_using_name_1_from_private_module_2: t(4024, e.DiagnosticCategory.Error, "Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024", "Exported variable '{0}' has or is using name '{1}' from private module '{2}'."), + Exported_variable_0_has_or_is_using_private_name_1: t(4025, e.DiagnosticCategory.Error, "Exported_variable_0_has_or_is_using_private_name_1_4025", "Exported variable '{0}' has or is using private name '{1}'."), + Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: t(4026, e.DiagnosticCategory.Error, "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026", "Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."), + Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: t(4027, e.DiagnosticCategory.Error, "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027", "Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."), + Public_static_property_0_of_exported_class_has_or_is_using_private_name_1: t(4028, e.DiagnosticCategory.Error, "Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028", "Public static property '{0}' of exported class has or is using private name '{1}'."), + Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: t(4029, e.DiagnosticCategory.Error, "Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029", "Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."), + Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: t(4030, e.DiagnosticCategory.Error, "Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030", "Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."), + Public_property_0_of_exported_class_has_or_is_using_private_name_1: t(4031, e.DiagnosticCategory.Error, "Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031", "Public property '{0}' of exported class has or is using private name '{1}'."), + Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2: t(4032, e.DiagnosticCategory.Error, "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032", "Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."), + Property_0_of_exported_interface_has_or_is_using_private_name_1: t(4033, e.DiagnosticCategory.Error, "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033", "Property '{0}' of exported interface has or is using private name '{1}'."), + Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: t(4034, e.DiagnosticCategory.Error, "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034", "Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."), + Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1: t(4035, e.DiagnosticCategory.Error, "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035", "Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."), + Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: t(4036, e.DiagnosticCategory.Error, "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036", "Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."), + Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1: t(4037, e.DiagnosticCategory.Error, "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037", "Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."), + Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: t(4038, e.DiagnosticCategory.Error, "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038", "Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."), + Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: t(4039, e.DiagnosticCategory.Error, "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039", "Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."), + Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1: t(4040, e.DiagnosticCategory.Error, "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040", "Return type of public static getter '{0}' from exported class has or is using private name '{1}'."), + Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: t(4041, e.DiagnosticCategory.Error, "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041", "Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."), + Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: t(4042, e.DiagnosticCategory.Error, "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042", "Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."), + Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1: t(4043, e.DiagnosticCategory.Error, "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043", "Return type of public getter '{0}' from exported class has or is using private name '{1}'."), + Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: t(4044, e.DiagnosticCategory.Error, "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044", "Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."), + Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0: t(4045, e.DiagnosticCategory.Error, "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045", "Return type of constructor signature from exported interface has or is using private name '{0}'."), + Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: t(4046, e.DiagnosticCategory.Error, "Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046", "Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."), + Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0: t(4047, e.DiagnosticCategory.Error, "Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047", "Return type of call signature from exported interface has or is using private name '{0}'."), + Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: t(4048, e.DiagnosticCategory.Error, "Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048", "Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."), + Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0: t(4049, e.DiagnosticCategory.Error, "Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049", "Return type of index signature from exported interface has or is using private name '{0}'."), + Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: t(4050, e.DiagnosticCategory.Error, "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050", "Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."), + Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1: t(4051, e.DiagnosticCategory.Error, "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051", "Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."), + Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0: t(4052, e.DiagnosticCategory.Error, "Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052", "Return type of public static method from exported class has or is using private name '{0}'."), + Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: t(4053, e.DiagnosticCategory.Error, "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053", "Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."), + Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1: t(4054, e.DiagnosticCategory.Error, "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054", "Return type of public method from exported class has or is using name '{0}' from private module '{1}'."), + Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0: t(4055, e.DiagnosticCategory.Error, "Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055", "Return type of public method from exported class has or is using private name '{0}'."), + Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1: t(4056, e.DiagnosticCategory.Error, "Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056", "Return type of method from exported interface has or is using name '{0}' from private module '{1}'."), + Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0: t(4057, e.DiagnosticCategory.Error, "Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057", "Return type of method from exported interface has or is using private name '{0}'."), + Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: t(4058, e.DiagnosticCategory.Error, "Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058", "Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."), + Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1: t(4059, e.DiagnosticCategory.Error, "Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059", "Return type of exported function has or is using name '{0}' from private module '{1}'."), + Return_type_of_exported_function_has_or_is_using_private_name_0: t(4060, e.DiagnosticCategory.Error, "Return_type_of_exported_function_has_or_is_using_private_name_0_4060", "Return type of exported function has or is using private name '{0}'."), + Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: t(4061, e.DiagnosticCategory.Error, "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061", "Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."), + Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2: t(4062, e.DiagnosticCategory.Error, "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062", "Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1: t(4063, e.DiagnosticCategory.Error, "Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063", "Parameter '{0}' of constructor from exported class has or is using private name '{1}'."), + Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: t(4064, e.DiagnosticCategory.Error, "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064", "Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1: t(4065, e.DiagnosticCategory.Error, "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065", "Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."), + Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: t(4066, e.DiagnosticCategory.Error, "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066", "Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1: t(4067, e.DiagnosticCategory.Error, "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067", "Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."), + Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: t(4068, e.DiagnosticCategory.Error, "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068", "Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."), + Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2: t(4069, e.DiagnosticCategory.Error, "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069", "Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1: t(4070, e.DiagnosticCategory.Error, "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070", "Parameter '{0}' of public static method from exported class has or is using private name '{1}'."), + Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: t(4071, e.DiagnosticCategory.Error, "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071", "Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."), + Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2: t(4072, e.DiagnosticCategory.Error, "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072", "Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1: t(4073, e.DiagnosticCategory.Error, "Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073", "Parameter '{0}' of public method from exported class has or is using private name '{1}'."), + Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2: t(4074, e.DiagnosticCategory.Error, "Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074", "Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1: t(4075, e.DiagnosticCategory.Error, "Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075", "Parameter '{0}' of method from exported interface has or is using private name '{1}'."), + Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: t(4076, e.DiagnosticCategory.Error, "Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076", "Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."), + Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2: t(4077, e.DiagnosticCategory.Error, "Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077", "Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_exported_function_has_or_is_using_private_name_1: t(4078, e.DiagnosticCategory.Error, "Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078", "Parameter '{0}' of exported function has or is using private name '{1}'."), + Exported_type_alias_0_has_or_is_using_private_name_1: t(4081, e.DiagnosticCategory.Error, "Exported_type_alias_0_has_or_is_using_private_name_1_4081", "Exported type alias '{0}' has or is using private name '{1}'."), + Default_export_of_the_module_has_or_is_using_private_name_0: t(4082, e.DiagnosticCategory.Error, "Default_export_of_the_module_has_or_is_using_private_name_0_4082", "Default export of the module has or is using private name '{0}'."), + Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1: t(4083, e.DiagnosticCategory.Error, "Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083", "Type parameter '{0}' of exported type alias has or is using private name '{1}'."), + Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2: t(4084, e.DiagnosticCategory.Error, "Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084", "Exported type alias '{0}' has or is using private name '{1}' from module {2}."), + Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict: t(4090, e.DiagnosticCategory.Error, "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090", "Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."), + Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: t(4091, e.DiagnosticCategory.Error, "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091", "Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1: t(4092, e.DiagnosticCategory.Error, "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092", "Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."), + Property_0_of_exported_class_expression_may_not_be_private_or_protected: t(4094, e.DiagnosticCategory.Error, "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094", "Property '{0}' of exported class expression may not be private or protected."), + Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: t(4095, e.DiagnosticCategory.Error, "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095", "Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."), + Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: t(4096, e.DiagnosticCategory.Error, "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096", "Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."), + Public_static_method_0_of_exported_class_has_or_is_using_private_name_1: t(4097, e.DiagnosticCategory.Error, "Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097", "Public static method '{0}' of exported class has or is using private name '{1}'."), + Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: t(4098, e.DiagnosticCategory.Error, "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098", "Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."), + Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: t(4099, e.DiagnosticCategory.Error, "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099", "Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."), + Public_method_0_of_exported_class_has_or_is_using_private_name_1: t(4100, e.DiagnosticCategory.Error, "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100", "Public method '{0}' of exported class has or is using private name '{1}'."), + Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2: t(4101, e.DiagnosticCategory.Error, "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101", "Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."), + Method_0_of_exported_interface_has_or_is_using_private_name_1: t(4102, e.DiagnosticCategory.Error, "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102", "Method '{0}' of exported interface has or is using private name '{1}'."), + Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1: t(4103, e.DiagnosticCategory.Error, "Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103", "Type parameter '{0}' of exported mapped object type is using private name '{1}'."), + The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1: t(4104, e.DiagnosticCategory.Error, "The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104", "The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."), + Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter: t(4105, e.DiagnosticCategory.Error, "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105", "Private or protected member '{0}' cannot be accessed on a type parameter."), + Parameter_0_of_accessor_has_or_is_using_private_name_1: t(4106, e.DiagnosticCategory.Error, "Parameter_0_of_accessor_has_or_is_using_private_name_1_4106", "Parameter '{0}' of accessor has or is using private name '{1}'."), + Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2: t(4107, e.DiagnosticCategory.Error, "Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107", "Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: t(4108, e.DiagnosticCategory.Error, "Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108", "Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."), + Type_arguments_for_0_circularly_reference_themselves: t(4109, e.DiagnosticCategory.Error, "Type_arguments_for_0_circularly_reference_themselves_4109", "Type arguments for '{0}' circularly reference themselves."), + Tuple_type_arguments_circularly_reference_themselves: t(4110, e.DiagnosticCategory.Error, "Tuple_type_arguments_circularly_reference_themselves_4110", "Tuple type arguments circularly reference themselves."), + Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0: t(4111, e.DiagnosticCategory.Error, "Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111", "Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."), + This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class: t(4112, e.DiagnosticCategory.Error, "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112", "This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."), + This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0: t(4113, e.DiagnosticCategory.Error, "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113", "This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."), + This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0: t(4114, e.DiagnosticCategory.Error, "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114", "This member must have an 'override' modifier because it overrides a member in the base class '{0}'."), + This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0: t(4115, e.DiagnosticCategory.Error, "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115", "This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."), + This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0: t(4116, e.DiagnosticCategory.Error, "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116", "This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."), + This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: t(4117, e.DiagnosticCategory.Error, "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117", "This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"), + The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized: t(4118, e.DiagnosticCategory.Error, "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118", "The type of this node cannot be serialized because its property '{0}' cannot be serialized."), + This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0: t(4119, e.DiagnosticCategory.Error, "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119", "This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."), + This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0: t(4120, e.DiagnosticCategory.Error, "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120", "This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."), + This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class: t(4121, e.DiagnosticCategory.Error, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121", "This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."), + This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0: t(4122, e.DiagnosticCategory.Error, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122", "This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."), + This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: t(4123, e.DiagnosticCategory.Error, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123", "This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"), + Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: t(4124, e.DiagnosticCategory.Error, "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124", "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."), + resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: t(4125, e.DiagnosticCategory.Error, "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125", "'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."), + The_current_host_does_not_support_the_0_option: t(5001, e.DiagnosticCategory.Error, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."), + Cannot_find_the_common_subdirectory_path_for_the_input_files: t(5009, e.DiagnosticCategory.Error, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."), + File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: t(5010, e.DiagnosticCategory.Error, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."), + Cannot_read_file_0_Colon_1: t(5012, e.DiagnosticCategory.Error, "Cannot_read_file_0_Colon_1_5012", "Cannot read file '{0}': {1}."), + Failed_to_parse_file_0_Colon_1: t(5014, e.DiagnosticCategory.Error, "Failed_to_parse_file_0_Colon_1_5014", "Failed to parse file '{0}': {1}."), + Unknown_compiler_option_0: t(5023, e.DiagnosticCategory.Error, "Unknown_compiler_option_0_5023", "Unknown compiler option '{0}'."), + Compiler_option_0_requires_a_value_of_type_1: t(5024, e.DiagnosticCategory.Error, "Compiler_option_0_requires_a_value_of_type_1_5024", "Compiler option '{0}' requires a value of type {1}."), + Unknown_compiler_option_0_Did_you_mean_1: t(5025, e.DiagnosticCategory.Error, "Unknown_compiler_option_0_Did_you_mean_1_5025", "Unknown compiler option '{0}'. Did you mean '{1}'?"), + Could_not_write_file_0_Colon_1: t(5033, e.DiagnosticCategory.Error, "Could_not_write_file_0_Colon_1_5033", "Could not write file '{0}': {1}."), + Option_project_cannot_be_mixed_with_source_files_on_a_command_line: t(5042, e.DiagnosticCategory.Error, "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042", "Option 'project' cannot be mixed with source files on a command line."), + Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher: t(5047, e.DiagnosticCategory.Error, "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047", "Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."), + Option_0_cannot_be_specified_when_option_target_is_ES3: t(5048, e.DiagnosticCategory.Error, "Option_0_cannot_be_specified_when_option_target_is_ES3_5048", "Option '{0}' cannot be specified when option 'target' is 'ES3'."), + Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided: t(5051, e.DiagnosticCategory.Error, "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051", "Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."), + Option_0_cannot_be_specified_without_specifying_option_1: t(5052, e.DiagnosticCategory.Error, "Option_0_cannot_be_specified_without_specifying_option_1_5052", "Option '{0}' cannot be specified without specifying option '{1}'."), + Option_0_cannot_be_specified_with_option_1: t(5053, e.DiagnosticCategory.Error, "Option_0_cannot_be_specified_with_option_1_5053", "Option '{0}' cannot be specified with option '{1}'."), + A_tsconfig_json_file_is_already_defined_at_Colon_0: t(5054, e.DiagnosticCategory.Error, "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054", "A 'tsconfig.json' file is already defined at: '{0}'."), + Cannot_write_file_0_because_it_would_overwrite_input_file: t(5055, e.DiagnosticCategory.Error, "Cannot_write_file_0_because_it_would_overwrite_input_file_5055", "Cannot write file '{0}' because it would overwrite input file."), + Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files: t(5056, e.DiagnosticCategory.Error, "Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056", "Cannot write file '{0}' because it would be overwritten by multiple input files."), + Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0: t(5057, e.DiagnosticCategory.Error, "Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057", "Cannot find a tsconfig.json file at the specified directory: '{0}'."), + The_specified_path_does_not_exist_Colon_0: t(5058, e.DiagnosticCategory.Error, "The_specified_path_does_not_exist_Colon_0_5058", "The specified path does not exist: '{0}'."), + Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier: t(5059, e.DiagnosticCategory.Error, "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059", "Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."), + Pattern_0_can_have_at_most_one_Asterisk_character: t(5061, e.DiagnosticCategory.Error, "Pattern_0_can_have_at_most_one_Asterisk_character_5061", "Pattern '{0}' can have at most one '*' character."), + Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character: t(5062, e.DiagnosticCategory.Error, "Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062", "Substitution '{0}' in pattern '{1}' can have at most one '*' character."), + Substitutions_for_pattern_0_should_be_an_array: t(5063, e.DiagnosticCategory.Error, "Substitutions_for_pattern_0_should_be_an_array_5063", "Substitutions for pattern '{0}' should be an array."), + Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2: t(5064, e.DiagnosticCategory.Error, "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064", "Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."), + File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: t(5065, e.DiagnosticCategory.Error, "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065", "File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."), + Substitutions_for_pattern_0_shouldn_t_be_an_empty_array: t(5066, e.DiagnosticCategory.Error, "Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066", "Substitutions for pattern '{0}' shouldn't be an empty array."), + Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name: t(5067, e.DiagnosticCategory.Error, "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067", "Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."), + Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig: t(5068, e.DiagnosticCategory.Error, "Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068", "Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."), + Option_0_cannot_be_specified_without_specifying_option_1_or_option_2: t(5069, e.DiagnosticCategory.Error, "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069", "Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."), + Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy: t(5070, e.DiagnosticCategory.Error, "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070", "Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."), + Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext: t(5071, e.DiagnosticCategory.Error, "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071", "Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."), + Unknown_build_option_0: t(5072, e.DiagnosticCategory.Error, "Unknown_build_option_0_5072", "Unknown build option '{0}'."), + Build_option_0_requires_a_value_of_type_1: t(5073, e.DiagnosticCategory.Error, "Build_option_0_requires_a_value_of_type_1_5073", "Build option '{0}' requires a value of type {1}."), + Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified: t(5074, e.DiagnosticCategory.Error, "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074", "Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."), + _0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2: t(5075, e.DiagnosticCategory.Error, "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075", "'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."), + _0_and_1_operations_cannot_be_mixed_without_parentheses: t(5076, e.DiagnosticCategory.Error, "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076", "'{0}' and '{1}' operations cannot be mixed without parentheses."), + Unknown_build_option_0_Did_you_mean_1: t(5077, e.DiagnosticCategory.Error, "Unknown_build_option_0_Did_you_mean_1_5077", "Unknown build option '{0}'. Did you mean '{1}'?"), + Unknown_watch_option_0: t(5078, e.DiagnosticCategory.Error, "Unknown_watch_option_0_5078", "Unknown watch option '{0}'."), + Unknown_watch_option_0_Did_you_mean_1: t(5079, e.DiagnosticCategory.Error, "Unknown_watch_option_0_Did_you_mean_1_5079", "Unknown watch option '{0}'. Did you mean '{1}'?"), + Watch_option_0_requires_a_value_of_type_1: t(5080, e.DiagnosticCategory.Error, "Watch_option_0_requires_a_value_of_type_1_5080", "Watch option '{0}' requires a value of type {1}."), + Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0: t(5081, e.DiagnosticCategory.Error, "Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081", "Cannot find a tsconfig.json file at the current directory: {0}."), + _0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1: t(5082, e.DiagnosticCategory.Error, "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082", "'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."), + Cannot_read_file_0: t(5083, e.DiagnosticCategory.Error, "Cannot_read_file_0_5083", "Cannot read file '{0}'."), + Tuple_members_must_all_have_names_or_all_not_have_names: t(5084, e.DiagnosticCategory.Error, "Tuple_members_must_all_have_names_or_all_not_have_names_5084", "Tuple members must all have names or all not have names."), + A_tuple_member_cannot_be_both_optional_and_rest: t(5085, e.DiagnosticCategory.Error, "A_tuple_member_cannot_be_both_optional_and_rest_5085", "A tuple member cannot be both optional and rest."), + A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type: t(5086, e.DiagnosticCategory.Error, "A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086", "A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."), + A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type: t(5087, e.DiagnosticCategory.Error, "A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087", "A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."), + The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary: t(5088, e.DiagnosticCategory.Error, "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088", "The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."), + Option_0_cannot_be_specified_when_option_jsx_is_1: t(5089, e.DiagnosticCategory.Error, "Option_0_cannot_be_specified_when_option_jsx_is_1_5089", "Option '{0}' cannot be specified when option 'jsx' is '{1}'."), + Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash: t(5090, e.DiagnosticCategory.Error, "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090", "Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"), + Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled: t(5091, e.DiagnosticCategory.Error, "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091", "Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."), + The_root_value_of_a_0_file_must_be_an_object: t(5092, e.DiagnosticCategory.Error, "The_root_value_of_a_0_file_must_be_an_object_5092", "The root value of a '{0}' file must be an object."), + Compiler_option_0_may_only_be_used_with_build: t(5093, e.DiagnosticCategory.Error, "Compiler_option_0_may_only_be_used_with_build_5093", "Compiler option '--{0}' may only be used with '--build'."), + Compiler_option_0_may_not_be_used_with_build: t(5094, e.DiagnosticCategory.Error, "Compiler_option_0_may_not_be_used_with_build_5094", "Compiler option '--{0}' may not be used with '--build'."), + Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later: t(5095, e.DiagnosticCategory.Error, "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095", "Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."), + Generates_a_sourcemap_for_each_corresponding_d_ts_file: t(6e3, e.DiagnosticCategory.Message, "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000", "Generates a sourcemap for each corresponding '.d.ts' file."), + Concatenate_and_emit_output_to_single_file: t(6001, e.DiagnosticCategory.Message, "Concatenate_and_emit_output_to_single_file_6001", "Concatenate and emit output to single file."), + Generates_corresponding_d_ts_file: t(6002, e.DiagnosticCategory.Message, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."), + Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations: t(6004, e.DiagnosticCategory.Message, "Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004", "Specify the location where debugger should locate TypeScript files instead of source locations."), + Watch_input_files: t(6005, e.DiagnosticCategory.Message, "Watch_input_files_6005", "Watch input files."), + Redirect_output_structure_to_the_directory: t(6006, e.DiagnosticCategory.Message, "Redirect_output_structure_to_the_directory_6006", "Redirect output structure to the directory."), + Do_not_erase_const_enum_declarations_in_generated_code: t(6007, e.DiagnosticCategory.Message, "Do_not_erase_const_enum_declarations_in_generated_code_6007", "Do not erase const enum declarations in generated code."), + Do_not_emit_outputs_if_any_errors_were_reported: t(6008, e.DiagnosticCategory.Message, "Do_not_emit_outputs_if_any_errors_were_reported_6008", "Do not emit outputs if any errors were reported."), + Do_not_emit_comments_to_output: t(6009, e.DiagnosticCategory.Message, "Do_not_emit_comments_to_output_6009", "Do not emit comments to output."), + Do_not_emit_outputs: t(6010, e.DiagnosticCategory.Message, "Do_not_emit_outputs_6010", "Do not emit outputs."), + Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking: t(6011, e.DiagnosticCategory.Message, "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011", "Allow default imports from modules with no default export. This does not affect code emit, just typechecking."), + Skip_type_checking_of_declaration_files: t(6012, e.DiagnosticCategory.Message, "Skip_type_checking_of_declaration_files_6012", "Skip type checking of declaration files."), + Do_not_resolve_the_real_path_of_symlinks: t(6013, e.DiagnosticCategory.Message, "Do_not_resolve_the_real_path_of_symlinks_6013", "Do not resolve the real path of symlinks."), + Only_emit_d_ts_declaration_files: t(6014, e.DiagnosticCategory.Message, "Only_emit_d_ts_declaration_files_6014", "Only emit '.d.ts' declaration files."), + Specify_ECMAScript_target_version: t(6015, e.DiagnosticCategory.Message, "Specify_ECMAScript_target_version_6015", "Specify ECMAScript target version."), + Specify_module_code_generation: t(6016, e.DiagnosticCategory.Message, "Specify_module_code_generation_6016", "Specify module code generation."), + Print_this_message: t(6017, e.DiagnosticCategory.Message, "Print_this_message_6017", "Print this message."), + Print_the_compiler_s_version: t(6019, e.DiagnosticCategory.Message, "Print_the_compiler_s_version_6019", "Print the compiler's version."), + Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json: t(6020, e.DiagnosticCategory.Message, "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020", "Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."), + Syntax_Colon_0: t(6023, e.DiagnosticCategory.Message, "Syntax_Colon_0_6023", "Syntax: {0}"), + options: t(6024, e.DiagnosticCategory.Message, "options_6024", "options"), + file: t(6025, e.DiagnosticCategory.Message, "file_6025", "file"), + Examples_Colon_0: t(6026, e.DiagnosticCategory.Message, "Examples_Colon_0_6026", "Examples: {0}"), + Options_Colon: t(6027, e.DiagnosticCategory.Message, "Options_Colon_6027", "Options:"), + Version_0: t(6029, e.DiagnosticCategory.Message, "Version_0_6029", "Version {0}"), + Insert_command_line_options_and_files_from_a_file: t(6030, e.DiagnosticCategory.Message, "Insert_command_line_options_and_files_from_a_file_6030", "Insert command line options and files from a file."), + Starting_compilation_in_watch_mode: t(6031, e.DiagnosticCategory.Message, "Starting_compilation_in_watch_mode_6031", "Starting compilation in watch mode..."), + File_change_detected_Starting_incremental_compilation: t(6032, e.DiagnosticCategory.Message, "File_change_detected_Starting_incremental_compilation_6032", "File change detected. Starting incremental compilation..."), + KIND: t(6034, e.DiagnosticCategory.Message, "KIND_6034", "KIND"), + FILE: t(6035, e.DiagnosticCategory.Message, "FILE_6035", "FILE"), + VERSION: t(6036, e.DiagnosticCategory.Message, "VERSION_6036", "VERSION"), + LOCATION: t(6037, e.DiagnosticCategory.Message, "LOCATION_6037", "LOCATION"), + DIRECTORY: t(6038, e.DiagnosticCategory.Message, "DIRECTORY_6038", "DIRECTORY"), + STRATEGY: t(6039, e.DiagnosticCategory.Message, "STRATEGY_6039", "STRATEGY"), + FILE_OR_DIRECTORY: t(6040, e.DiagnosticCategory.Message, "FILE_OR_DIRECTORY_6040", "FILE OR DIRECTORY"), + Errors_Files: t(6041, e.DiagnosticCategory.Message, "Errors_Files_6041", "Errors Files"), + Generates_corresponding_map_file: t(6043, e.DiagnosticCategory.Message, "Generates_corresponding_map_file_6043", "Generates corresponding '.map' file."), + Compiler_option_0_expects_an_argument: t(6044, e.DiagnosticCategory.Error, "Compiler_option_0_expects_an_argument_6044", "Compiler option '{0}' expects an argument."), + Unterminated_quoted_string_in_response_file_0: t(6045, e.DiagnosticCategory.Error, "Unterminated_quoted_string_in_response_file_0_6045", "Unterminated quoted string in response file '{0}'."), + Argument_for_0_option_must_be_Colon_1: t(6046, e.DiagnosticCategory.Error, "Argument_for_0_option_must_be_Colon_1_6046", "Argument for '{0}' option must be: {1}."), + Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1: t(6048, e.DiagnosticCategory.Error, "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048", "Locale must be of the form or -. For example '{0}' or '{1}'."), + Unable_to_open_file_0: t(6050, e.DiagnosticCategory.Error, "Unable_to_open_file_0_6050", "Unable to open file '{0}'."), + Corrupted_locale_file_0: t(6051, e.DiagnosticCategory.Error, "Corrupted_locale_file_0_6051", "Corrupted locale file {0}."), + Raise_error_on_expressions_and_declarations_with_an_implied_any_type: t(6052, e.DiagnosticCategory.Message, "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052", "Raise error on expressions and declarations with an implied 'any' type."), + File_0_not_found: t(6053, e.DiagnosticCategory.Error, "File_0_not_found_6053", "File '{0}' not found."), + File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1: t(6054, e.DiagnosticCategory.Error, "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054", "File '{0}' has an unsupported extension. The only supported extensions are {1}."), + Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures: t(6055, e.DiagnosticCategory.Message, "Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055", "Suppress noImplicitAny errors for indexing objects lacking index signatures."), + Do_not_emit_declarations_for_code_that_has_an_internal_annotation: t(6056, e.DiagnosticCategory.Message, "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056", "Do not emit declarations for code that has an '@internal' annotation."), + Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir: t(6058, e.DiagnosticCategory.Message, "Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058", "Specify the root directory of input files. Use to control the output directory structure with --outDir."), + File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files: t(6059, e.DiagnosticCategory.Error, "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059", "File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."), + Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix: t(6060, e.DiagnosticCategory.Message, "Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060", "Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."), + NEWLINE: t(6061, e.DiagnosticCategory.Message, "NEWLINE_6061", "NEWLINE"), + Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line: t(6064, e.DiagnosticCategory.Error, "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064", "Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."), + Enables_experimental_support_for_ES7_decorators: t(6065, e.DiagnosticCategory.Message, "Enables_experimental_support_for_ES7_decorators_6065", "Enables experimental support for ES7 decorators."), + Enables_experimental_support_for_emitting_type_metadata_for_decorators: t(6066, e.DiagnosticCategory.Message, "Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066", "Enables experimental support for emitting type metadata for decorators."), + Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6: t(6069, e.DiagnosticCategory.Message, "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069", "Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."), + Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file: t(6070, e.DiagnosticCategory.Message, "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070", "Initializes a TypeScript project and creates a tsconfig.json file."), + Successfully_created_a_tsconfig_json_file: t(6071, e.DiagnosticCategory.Message, "Successfully_created_a_tsconfig_json_file_6071", "Successfully created a tsconfig.json file."), + Suppress_excess_property_checks_for_object_literals: t(6072, e.DiagnosticCategory.Message, "Suppress_excess_property_checks_for_object_literals_6072", "Suppress excess property checks for object literals."), + Stylize_errors_and_messages_using_color_and_context_experimental: t(6073, e.DiagnosticCategory.Message, "Stylize_errors_and_messages_using_color_and_context_experimental_6073", "Stylize errors and messages using color and context (experimental)."), + Do_not_report_errors_on_unused_labels: t(6074, e.DiagnosticCategory.Message, "Do_not_report_errors_on_unused_labels_6074", "Do not report errors on unused labels."), + Report_error_when_not_all_code_paths_in_function_return_a_value: t(6075, e.DiagnosticCategory.Message, "Report_error_when_not_all_code_paths_in_function_return_a_value_6075", "Report error when not all code paths in function return a value."), + Report_errors_for_fallthrough_cases_in_switch_statement: t(6076, e.DiagnosticCategory.Message, "Report_errors_for_fallthrough_cases_in_switch_statement_6076", "Report errors for fallthrough cases in switch statement."), + Do_not_report_errors_on_unreachable_code: t(6077, e.DiagnosticCategory.Message, "Do_not_report_errors_on_unreachable_code_6077", "Do not report errors on unreachable code."), + Disallow_inconsistently_cased_references_to_the_same_file: t(6078, e.DiagnosticCategory.Message, "Disallow_inconsistently_cased_references_to_the_same_file_6078", "Disallow inconsistently-cased references to the same file."), + Specify_library_files_to_be_included_in_the_compilation: t(6079, e.DiagnosticCategory.Message, "Specify_library_files_to_be_included_in_the_compilation_6079", "Specify library files to be included in the compilation."), + Specify_JSX_code_generation: t(6080, e.DiagnosticCategory.Message, "Specify_JSX_code_generation_6080", "Specify JSX code generation."), + File_0_has_an_unsupported_extension_so_skipping_it: t(6081, e.DiagnosticCategory.Message, "File_0_has_an_unsupported_extension_so_skipping_it_6081", "File '{0}' has an unsupported extension, so skipping it."), + Only_amd_and_system_modules_are_supported_alongside_0: t(6082, e.DiagnosticCategory.Error, "Only_amd_and_system_modules_are_supported_alongside_0_6082", "Only 'amd' and 'system' modules are supported alongside --{0}."), + Base_directory_to_resolve_non_absolute_module_names: t(6083, e.DiagnosticCategory.Message, "Base_directory_to_resolve_non_absolute_module_names_6083", "Base directory to resolve non-absolute module names."), + Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit: t(6084, e.DiagnosticCategory.Message, "Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084", "[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"), + Enable_tracing_of_the_name_resolution_process: t(6085, e.DiagnosticCategory.Message, "Enable_tracing_of_the_name_resolution_process_6085", "Enable tracing of the name resolution process."), + Resolving_module_0_from_1: t(6086, e.DiagnosticCategory.Message, "Resolving_module_0_from_1_6086", "======== Resolving module '{0}' from '{1}'. ========"), + Explicitly_specified_module_resolution_kind_Colon_0: t(6087, e.DiagnosticCategory.Message, "Explicitly_specified_module_resolution_kind_Colon_0_6087", "Explicitly specified module resolution kind: '{0}'."), + Module_resolution_kind_is_not_specified_using_0: t(6088, e.DiagnosticCategory.Message, "Module_resolution_kind_is_not_specified_using_0_6088", "Module resolution kind is not specified, using '{0}'."), + Module_name_0_was_successfully_resolved_to_1: t(6089, e.DiagnosticCategory.Message, "Module_name_0_was_successfully_resolved_to_1_6089", "======== Module name '{0}' was successfully resolved to '{1}'. ========"), + Module_name_0_was_not_resolved: t(6090, e.DiagnosticCategory.Message, "Module_name_0_was_not_resolved_6090", "======== Module name '{0}' was not resolved. ========"), + paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0: t(6091, e.DiagnosticCategory.Message, "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091", "'paths' option is specified, looking for a pattern to match module name '{0}'."), + Module_name_0_matched_pattern_1: t(6092, e.DiagnosticCategory.Message, "Module_name_0_matched_pattern_1_6092", "Module name '{0}', matched pattern '{1}'."), + Trying_substitution_0_candidate_module_location_Colon_1: t(6093, e.DiagnosticCategory.Message, "Trying_substitution_0_candidate_module_location_Colon_1_6093", "Trying substitution '{0}', candidate module location: '{1}'."), + Resolving_module_name_0_relative_to_base_url_1_2: t(6094, e.DiagnosticCategory.Message, "Resolving_module_name_0_relative_to_base_url_1_2_6094", "Resolving module name '{0}' relative to base url '{1}' - '{2}'."), + Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1: t(6095, e.DiagnosticCategory.Message, "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095", "Loading module as file / folder, candidate module location '{0}', target file type '{1}'."), + File_0_does_not_exist: t(6096, e.DiagnosticCategory.Message, "File_0_does_not_exist_6096", "File '{0}' does not exist."), + File_0_exist_use_it_as_a_name_resolution_result: t(6097, e.DiagnosticCategory.Message, "File_0_exist_use_it_as_a_name_resolution_result_6097", "File '{0}' exist - use it as a name resolution result."), + Loading_module_0_from_node_modules_folder_target_file_type_1: t(6098, e.DiagnosticCategory.Message, "Loading_module_0_from_node_modules_folder_target_file_type_1_6098", "Loading module '{0}' from 'node_modules' folder, target file type '{1}'."), + Found_package_json_at_0: t(6099, e.DiagnosticCategory.Message, "Found_package_json_at_0_6099", "Found 'package.json' at '{0}'."), + package_json_does_not_have_a_0_field: t(6100, e.DiagnosticCategory.Message, "package_json_does_not_have_a_0_field_6100", "'package.json' does not have a '{0}' field."), + package_json_has_0_field_1_that_references_2: t(6101, e.DiagnosticCategory.Message, "package_json_has_0_field_1_that_references_2_6101", "'package.json' has '{0}' field '{1}' that references '{2}'."), + Allow_javascript_files_to_be_compiled: t(6102, e.DiagnosticCategory.Message, "Allow_javascript_files_to_be_compiled_6102", "Allow javascript files to be compiled."), + Checking_if_0_is_the_longest_matching_prefix_for_1_2: t(6104, e.DiagnosticCategory.Message, "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104", "Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."), + Expected_type_of_0_field_in_package_json_to_be_1_got_2: t(6105, e.DiagnosticCategory.Message, "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105", "Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."), + baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1: t(6106, e.DiagnosticCategory.Message, "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106", "'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."), + rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0: t(6107, e.DiagnosticCategory.Message, "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107", "'rootDirs' option is set, using it to resolve relative module name '{0}'."), + Longest_matching_prefix_for_0_is_1: t(6108, e.DiagnosticCategory.Message, "Longest_matching_prefix_for_0_is_1_6108", "Longest matching prefix for '{0}' is '{1}'."), + Loading_0_from_the_root_dir_1_candidate_location_2: t(6109, e.DiagnosticCategory.Message, "Loading_0_from_the_root_dir_1_candidate_location_2_6109", "Loading '{0}' from the root dir '{1}', candidate location '{2}'."), + Trying_other_entries_in_rootDirs: t(6110, e.DiagnosticCategory.Message, "Trying_other_entries_in_rootDirs_6110", "Trying other entries in 'rootDirs'."), + Module_resolution_using_rootDirs_has_failed: t(6111, e.DiagnosticCategory.Message, "Module_resolution_using_rootDirs_has_failed_6111", "Module resolution using 'rootDirs' has failed."), + Do_not_emit_use_strict_directives_in_module_output: t(6112, e.DiagnosticCategory.Message, "Do_not_emit_use_strict_directives_in_module_output_6112", "Do not emit 'use strict' directives in module output."), + Enable_strict_null_checks: t(6113, e.DiagnosticCategory.Message, "Enable_strict_null_checks_6113", "Enable strict null checks."), + Unknown_option_excludes_Did_you_mean_exclude: t(6114, e.DiagnosticCategory.Error, "Unknown_option_excludes_Did_you_mean_exclude_6114", "Unknown option 'excludes'. Did you mean 'exclude'?"), + Raise_error_on_this_expressions_with_an_implied_any_type: t(6115, e.DiagnosticCategory.Message, "Raise_error_on_this_expressions_with_an_implied_any_type_6115", "Raise error on 'this' expressions with an implied 'any' type."), + Resolving_type_reference_directive_0_containing_file_1_root_directory_2: t(6116, e.DiagnosticCategory.Message, "Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116", "======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"), + Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2: t(6119, e.DiagnosticCategory.Message, "Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119", "======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"), + Type_reference_directive_0_was_not_resolved: t(6120, e.DiagnosticCategory.Message, "Type_reference_directive_0_was_not_resolved_6120", "======== Type reference directive '{0}' was not resolved. ========"), + Resolving_with_primary_search_path_0: t(6121, e.DiagnosticCategory.Message, "Resolving_with_primary_search_path_0_6121", "Resolving with primary search path '{0}'."), + Root_directory_cannot_be_determined_skipping_primary_search_paths: t(6122, e.DiagnosticCategory.Message, "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122", "Root directory cannot be determined, skipping primary search paths."), + Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set: t(6123, e.DiagnosticCategory.Message, "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123", "======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"), + Type_declaration_files_to_be_included_in_compilation: t(6124, e.DiagnosticCategory.Message, "Type_declaration_files_to_be_included_in_compilation_6124", "Type declaration files to be included in compilation."), + Looking_up_in_node_modules_folder_initial_location_0: t(6125, e.DiagnosticCategory.Message, "Looking_up_in_node_modules_folder_initial_location_0_6125", "Looking up in 'node_modules' folder, initial location '{0}'."), + Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder: t(6126, e.DiagnosticCategory.Message, "Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126", "Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."), + Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1: t(6127, e.DiagnosticCategory.Message, "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127", "======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"), + Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set: t(6128, e.DiagnosticCategory.Message, "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128", "======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"), + Resolving_real_path_for_0_result_1: t(6130, e.DiagnosticCategory.Message, "Resolving_real_path_for_0_result_1_6130", "Resolving real path for '{0}', result '{1}'."), + Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system: t(6131, e.DiagnosticCategory.Error, "Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131", "Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."), + File_name_0_has_a_1_extension_stripping_it: t(6132, e.DiagnosticCategory.Message, "File_name_0_has_a_1_extension_stripping_it_6132", "File name '{0}' has a '{1}' extension - stripping it."), + _0_is_declared_but_its_value_is_never_read: t(6133, e.DiagnosticCategory.Error, "_0_is_declared_but_its_value_is_never_read_6133", "'{0}' is declared but its value is never read.", !0), + Report_errors_on_unused_locals: t(6134, e.DiagnosticCategory.Message, "Report_errors_on_unused_locals_6134", "Report errors on unused locals."), + Report_errors_on_unused_parameters: t(6135, e.DiagnosticCategory.Message, "Report_errors_on_unused_parameters_6135", "Report errors on unused parameters."), + The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files: t(6136, e.DiagnosticCategory.Message, "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136", "The maximum dependency depth to search under node_modules and load JavaScript files."), + Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1: t(6137, e.DiagnosticCategory.Error, "Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137", "Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."), + Property_0_is_declared_but_its_value_is_never_read: t(6138, e.DiagnosticCategory.Error, "Property_0_is_declared_but_its_value_is_never_read_6138", "Property '{0}' is declared but its value is never read.", !0), + Import_emit_helpers_from_tslib: t(6139, e.DiagnosticCategory.Message, "Import_emit_helpers_from_tslib_6139", "Import emit helpers from 'tslib'."), + Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2: t(6140, e.DiagnosticCategory.Error, "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140", "Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."), + Parse_in_strict_mode_and_emit_use_strict_for_each_source_file: t(6141, e.DiagnosticCategory.Message, "Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141", 'Parse in strict mode and emit "use strict" for each source file.'), + Module_0_was_resolved_to_1_but_jsx_is_not_set: t(6142, e.DiagnosticCategory.Error, "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142", "Module '{0}' was resolved to '{1}', but '--jsx' is not set."), + Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1: t(6144, e.DiagnosticCategory.Message, "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144", "Module '{0}' was resolved as locally declared ambient module in file '{1}'."), + Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified: t(6145, e.DiagnosticCategory.Message, "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145", "Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."), + Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h: t(6146, e.DiagnosticCategory.Message, "Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146", "Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."), + Resolution_for_module_0_was_found_in_cache_from_location_1: t(6147, e.DiagnosticCategory.Message, "Resolution_for_module_0_was_found_in_cache_from_location_1_6147", "Resolution for module '{0}' was found in cache from location '{1}'."), + Directory_0_does_not_exist_skipping_all_lookups_in_it: t(6148, e.DiagnosticCategory.Message, "Directory_0_does_not_exist_skipping_all_lookups_in_it_6148", "Directory '{0}' does not exist, skipping all lookups in it."), + Show_diagnostic_information: t(6149, e.DiagnosticCategory.Message, "Show_diagnostic_information_6149", "Show diagnostic information."), + Show_verbose_diagnostic_information: t(6150, e.DiagnosticCategory.Message, "Show_verbose_diagnostic_information_6150", "Show verbose diagnostic information."), + Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file: t(6151, e.DiagnosticCategory.Message, "Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151", "Emit a single file with source maps instead of having a separate file."), + Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set: t(6152, e.DiagnosticCategory.Message, "Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152", "Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."), + Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule: t(6153, e.DiagnosticCategory.Message, "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153", "Transpile each file as a separate module (similar to 'ts.transpileModule')."), + Print_names_of_generated_files_part_of_the_compilation: t(6154, e.DiagnosticCategory.Message, "Print_names_of_generated_files_part_of_the_compilation_6154", "Print names of generated files part of the compilation."), + Print_names_of_files_part_of_the_compilation: t(6155, e.DiagnosticCategory.Message, "Print_names_of_files_part_of_the_compilation_6155", "Print names of files part of the compilation."), + The_locale_used_when_displaying_messages_to_the_user_e_g_en_us: t(6156, e.DiagnosticCategory.Message, "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156", "The locale used when displaying messages to the user (e.g. 'en-us')"), + Do_not_generate_custom_helper_functions_like_extends_in_compiled_output: t(6157, e.DiagnosticCategory.Message, "Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157", "Do not generate custom helper functions like '__extends' in compiled output."), + Do_not_include_the_default_library_file_lib_d_ts: t(6158, e.DiagnosticCategory.Message, "Do_not_include_the_default_library_file_lib_d_ts_6158", "Do not include the default library file (lib.d.ts)."), + Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files: t(6159, e.DiagnosticCategory.Message, "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159", "Do not add triple-slash references or imported modules to the list of compiled files."), + Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files: t(6160, e.DiagnosticCategory.Message, "Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160", "[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."), + List_of_folders_to_include_type_definitions_from: t(6161, e.DiagnosticCategory.Message, "List_of_folders_to_include_type_definitions_from_6161", "List of folders to include type definitions from."), + Disable_size_limitations_on_JavaScript_projects: t(6162, e.DiagnosticCategory.Message, "Disable_size_limitations_on_JavaScript_projects_6162", "Disable size limitations on JavaScript projects."), + The_character_set_of_the_input_files: t(6163, e.DiagnosticCategory.Message, "The_character_set_of_the_input_files_6163", "The character set of the input files."), + Do_not_truncate_error_messages: t(6165, e.DiagnosticCategory.Message, "Do_not_truncate_error_messages_6165", "Do not truncate error messages."), + Output_directory_for_generated_declaration_files: t(6166, e.DiagnosticCategory.Message, "Output_directory_for_generated_declaration_files_6166", "Output directory for generated declaration files."), + A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl: t(6167, e.DiagnosticCategory.Message, "A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167", "A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."), + List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime: t(6168, e.DiagnosticCategory.Message, "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168", "List of root folders whose combined content represents the structure of the project at runtime."), + Show_all_compiler_options: t(6169, e.DiagnosticCategory.Message, "Show_all_compiler_options_6169", "Show all compiler options."), + Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file: t(6170, e.DiagnosticCategory.Message, "Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170", "[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"), + Command_line_Options: t(6171, e.DiagnosticCategory.Message, "Command_line_Options_6171", "Command-line Options"), + Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3: t(6179, e.DiagnosticCategory.Message, "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179", "Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."), + Enable_all_strict_type_checking_options: t(6180, e.DiagnosticCategory.Message, "Enable_all_strict_type_checking_options_6180", "Enable all strict type-checking options."), + Scoped_package_detected_looking_in_0: t(6182, e.DiagnosticCategory.Message, "Scoped_package_detected_looking_in_0_6182", "Scoped package detected, looking in '{0}'"), + Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2: t(6183, e.DiagnosticCategory.Message, "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183", "Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."), + Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3: t(6184, e.DiagnosticCategory.Message, "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184", "Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."), + Enable_strict_checking_of_function_types: t(6186, e.DiagnosticCategory.Message, "Enable_strict_checking_of_function_types_6186", "Enable strict checking of function types."), + Enable_strict_checking_of_property_initialization_in_classes: t(6187, e.DiagnosticCategory.Message, "Enable_strict_checking_of_property_initialization_in_classes_6187", "Enable strict checking of property initialization in classes."), + Numeric_separators_are_not_allowed_here: t(6188, e.DiagnosticCategory.Error, "Numeric_separators_are_not_allowed_here_6188", "Numeric separators are not allowed here."), + Multiple_consecutive_numeric_separators_are_not_permitted: t(6189, e.DiagnosticCategory.Error, "Multiple_consecutive_numeric_separators_are_not_permitted_6189", "Multiple consecutive numeric separators are not permitted."), + Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen: t(6191, e.DiagnosticCategory.Message, "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191", "Whether to keep outdated console output in watch mode instead of clearing the screen."), + All_imports_in_import_declaration_are_unused: t(6192, e.DiagnosticCategory.Error, "All_imports_in_import_declaration_are_unused_6192", "All imports in import declaration are unused.", !0), + Found_1_error_Watching_for_file_changes: t(6193, e.DiagnosticCategory.Message, "Found_1_error_Watching_for_file_changes_6193", "Found 1 error. Watching for file changes."), + Found_0_errors_Watching_for_file_changes: t(6194, e.DiagnosticCategory.Message, "Found_0_errors_Watching_for_file_changes_6194", "Found {0} errors. Watching for file changes."), + Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols: t(6195, e.DiagnosticCategory.Message, "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195", "Resolve 'keyof' to string valued property names only (no numbers or symbols)."), + _0_is_declared_but_never_used: t(6196, e.DiagnosticCategory.Error, "_0_is_declared_but_never_used_6196", "'{0}' is declared but never used.", !0), + Include_modules_imported_with_json_extension: t(6197, e.DiagnosticCategory.Message, "Include_modules_imported_with_json_extension_6197", "Include modules imported with '.json' extension"), + All_destructured_elements_are_unused: t(6198, e.DiagnosticCategory.Error, "All_destructured_elements_are_unused_6198", "All destructured elements are unused.", !0), + All_variables_are_unused: t(6199, e.DiagnosticCategory.Error, "All_variables_are_unused_6199", "All variables are unused.", !0), + Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0: t(6200, e.DiagnosticCategory.Error, "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200", "Definitions of the following identifiers conflict with those in another file: {0}"), + Conflicts_are_in_this_file: t(6201, e.DiagnosticCategory.Message, "Conflicts_are_in_this_file_6201", "Conflicts are in this file."), + Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0: t(6202, e.DiagnosticCategory.Error, "Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202", "Project references may not form a circular graph. Cycle detected: {0}"), + _0_was_also_declared_here: t(6203, e.DiagnosticCategory.Message, "_0_was_also_declared_here_6203", "'{0}' was also declared here."), + and_here: t(6204, e.DiagnosticCategory.Message, "and_here_6204", "and here."), + All_type_parameters_are_unused: t(6205, e.DiagnosticCategory.Error, "All_type_parameters_are_unused_6205", "All type parameters are unused."), + package_json_has_a_typesVersions_field_with_version_specific_path_mappings: t(6206, e.DiagnosticCategory.Message, "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206", "'package.json' has a 'typesVersions' field with version-specific path mappings."), + package_json_does_not_have_a_typesVersions_entry_that_matches_version_0: t(6207, e.DiagnosticCategory.Message, "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207", "'package.json' does not have a 'typesVersions' entry that matches version '{0}'."), + package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2: t(6208, e.DiagnosticCategory.Message, "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208", "'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."), + package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range: t(6209, e.DiagnosticCategory.Message, "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209", "'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."), + An_argument_for_0_was_not_provided: t(6210, e.DiagnosticCategory.Message, "An_argument_for_0_was_not_provided_6210", "An argument for '{0}' was not provided."), + An_argument_matching_this_binding_pattern_was_not_provided: t(6211, e.DiagnosticCategory.Message, "An_argument_matching_this_binding_pattern_was_not_provided_6211", "An argument matching this binding pattern was not provided."), + Did_you_mean_to_call_this_expression: t(6212, e.DiagnosticCategory.Message, "Did_you_mean_to_call_this_expression_6212", "Did you mean to call this expression?"), + Did_you_mean_to_use_new_with_this_expression: t(6213, e.DiagnosticCategory.Message, "Did_you_mean_to_use_new_with_this_expression_6213", "Did you mean to use 'new' with this expression?"), + Enable_strict_bind_call_and_apply_methods_on_functions: t(6214, e.DiagnosticCategory.Message, "Enable_strict_bind_call_and_apply_methods_on_functions_6214", "Enable strict 'bind', 'call', and 'apply' methods on functions."), + Using_compiler_options_of_project_reference_redirect_0: t(6215, e.DiagnosticCategory.Message, "Using_compiler_options_of_project_reference_redirect_0_6215", "Using compiler options of project reference redirect '{0}'."), + Found_1_error: t(6216, e.DiagnosticCategory.Message, "Found_1_error_6216", "Found 1 error."), + Found_0_errors: t(6217, e.DiagnosticCategory.Message, "Found_0_errors_6217", "Found {0} errors."), + Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2: t(6218, e.DiagnosticCategory.Message, "Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218", "======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"), + Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3: t(6219, e.DiagnosticCategory.Message, "Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219", "======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"), + package_json_had_a_falsy_0_field: t(6220, e.DiagnosticCategory.Message, "package_json_had_a_falsy_0_field_6220", "'package.json' had a falsy '{0}' field."), + Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects: t(6221, e.DiagnosticCategory.Message, "Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221", "Disable use of source files instead of declaration files from referenced projects."), + Emit_class_fields_with_Define_instead_of_Set: t(6222, e.DiagnosticCategory.Message, "Emit_class_fields_with_Define_instead_of_Set_6222", "Emit class fields with Define instead of Set."), + Generates_a_CPU_profile: t(6223, e.DiagnosticCategory.Message, "Generates_a_CPU_profile_6223", "Generates a CPU profile."), + Disable_solution_searching_for_this_project: t(6224, e.DiagnosticCategory.Message, "Disable_solution_searching_for_this_project_6224", "Disable solution searching for this project."), + Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory: t(6225, e.DiagnosticCategory.Message, "Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225", "Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."), + Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling: t(6226, e.DiagnosticCategory.Message, "Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226", "Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."), + Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize: t(6227, e.DiagnosticCategory.Message, "Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227", "Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."), + Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3: t(6229, e.DiagnosticCategory.Error, "Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229", "Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."), + Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line: t(6230, e.DiagnosticCategory.Error, "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230", "Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."), + Could_not_resolve_the_path_0_with_the_extensions_Colon_1: t(6231, e.DiagnosticCategory.Error, "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231", "Could not resolve the path '{0}' with the extensions: {1}."), + Declaration_augments_declaration_in_another_file_This_cannot_be_serialized: t(6232, e.DiagnosticCategory.Error, "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232", "Declaration augments declaration in another file. This cannot be serialized."), + This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file: t(6233, e.DiagnosticCategory.Error, "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233", "This is the declaration being augmented. Consider moving the augmenting declaration into the same file."), + This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without: t(6234, e.DiagnosticCategory.Error, "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234", "This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"), + Disable_loading_referenced_projects: t(6235, e.DiagnosticCategory.Message, "Disable_loading_referenced_projects_6235", "Disable loading referenced projects."), + Arguments_for_the_rest_parameter_0_were_not_provided: t(6236, e.DiagnosticCategory.Error, "Arguments_for_the_rest_parameter_0_were_not_provided_6236", "Arguments for the rest parameter '{0}' were not provided."), + Generates_an_event_trace_and_a_list_of_types: t(6237, e.DiagnosticCategory.Message, "Generates_an_event_trace_and_a_list_of_types_6237", "Generates an event trace and a list of types."), + Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react: t(6238, e.DiagnosticCategory.Error, "Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238", "Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"), + File_0_exists_according_to_earlier_cached_lookups: t(6239, e.DiagnosticCategory.Message, "File_0_exists_according_to_earlier_cached_lookups_6239", "File '{0}' exists according to earlier cached lookups."), + File_0_does_not_exist_according_to_earlier_cached_lookups: t(6240, e.DiagnosticCategory.Message, "File_0_does_not_exist_according_to_earlier_cached_lookups_6240", "File '{0}' does not exist according to earlier cached lookups."), + Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1: t(6241, e.DiagnosticCategory.Message, "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241", "Resolution for type reference directive '{0}' was found in cache from location '{1}'."), + Resolving_type_reference_directive_0_containing_file_1: t(6242, e.DiagnosticCategory.Message, "Resolving_type_reference_directive_0_containing_file_1_6242", "======== Resolving type reference directive '{0}', containing file '{1}'. ========"), + Interpret_optional_property_types_as_written_rather_than_adding_undefined: t(6243, e.DiagnosticCategory.Message, "Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243", "Interpret optional property types as written, rather than adding 'undefined'."), + Modules: t(6244, e.DiagnosticCategory.Message, "Modules_6244", "Modules"), + File_Management: t(6245, e.DiagnosticCategory.Message, "File_Management_6245", "File Management"), + Emit: t(6246, e.DiagnosticCategory.Message, "Emit_6246", "Emit"), + JavaScript_Support: t(6247, e.DiagnosticCategory.Message, "JavaScript_Support_6247", "JavaScript Support"), + Type_Checking: t(6248, e.DiagnosticCategory.Message, "Type_Checking_6248", "Type Checking"), + Editor_Support: t(6249, e.DiagnosticCategory.Message, "Editor_Support_6249", "Editor Support"), + Watch_and_Build_Modes: t(6250, e.DiagnosticCategory.Message, "Watch_and_Build_Modes_6250", "Watch and Build Modes"), + Compiler_Diagnostics: t(6251, e.DiagnosticCategory.Message, "Compiler_Diagnostics_6251", "Compiler Diagnostics"), + Interop_Constraints: t(6252, e.DiagnosticCategory.Message, "Interop_Constraints_6252", "Interop Constraints"), + Backwards_Compatibility: t(6253, e.DiagnosticCategory.Message, "Backwards_Compatibility_6253", "Backwards Compatibility"), + Language_and_Environment: t(6254, e.DiagnosticCategory.Message, "Language_and_Environment_6254", "Language and Environment"), + Projects: t(6255, e.DiagnosticCategory.Message, "Projects_6255", "Projects"), + Output_Formatting: t(6256, e.DiagnosticCategory.Message, "Output_Formatting_6256", "Output Formatting"), + Completeness: t(6257, e.DiagnosticCategory.Message, "Completeness_6257", "Completeness"), + _0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file: t(6258, e.DiagnosticCategory.Error, "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258", "'{0}' should be set inside the 'compilerOptions' object of the config json file"), + Found_1_error_in_1: t(6259, e.DiagnosticCategory.Message, "Found_1_error_in_1_6259", "Found 1 error in {1}"), + Found_0_errors_in_the_same_file_starting_at_Colon_1: t(6260, e.DiagnosticCategory.Message, "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260", "Found {0} errors in the same file, starting at: {1}"), + Found_0_errors_in_1_files: t(6261, e.DiagnosticCategory.Message, "Found_0_errors_in_1_files_6261", "Found {0} errors in {1} files."), + Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve: t(6270, e.DiagnosticCategory.Message, "Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270", "Directory '{0}' has no containing package.json scope. Imports will not resolve."), + Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1: t(6271, e.DiagnosticCategory.Message, "Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271", "Import specifier '{0}' does not exist in package.json scope at path '{1}'."), + Invalid_import_specifier_0_has_no_possible_resolutions: t(6272, e.DiagnosticCategory.Message, "Invalid_import_specifier_0_has_no_possible_resolutions_6272", "Invalid import specifier '{0}' has no possible resolutions."), + package_json_scope_0_has_no_imports_defined: t(6273, e.DiagnosticCategory.Message, "package_json_scope_0_has_no_imports_defined_6273", "package.json scope '{0}' has no imports defined."), + package_json_scope_0_explicitly_maps_specifier_1_to_null: t(6274, e.DiagnosticCategory.Message, "package_json_scope_0_explicitly_maps_specifier_1_to_null_6274", "package.json scope '{0}' explicitly maps specifier '{1}' to null."), + package_json_scope_0_has_invalid_type_for_target_of_specifier_1: t(6275, e.DiagnosticCategory.Message, "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275", "package.json scope '{0}' has invalid type for target of specifier '{1}'"), + Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1: t(6276, e.DiagnosticCategory.Message, "Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276", "Export specifier '{0}' does not exist in package.json scope at path '{1}'."), + Enable_project_compilation: t(6302, e.DiagnosticCategory.Message, "Enable_project_compilation_6302", "Enable project compilation"), + Composite_projects_may_not_disable_declaration_emit: t(6304, e.DiagnosticCategory.Error, "Composite_projects_may_not_disable_declaration_emit_6304", "Composite projects may not disable declaration emit."), + Output_file_0_has_not_been_built_from_source_file_1: t(6305, e.DiagnosticCategory.Error, "Output_file_0_has_not_been_built_from_source_file_1_6305", "Output file '{0}' has not been built from source file '{1}'."), + Referenced_project_0_must_have_setting_composite_Colon_true: t(6306, e.DiagnosticCategory.Error, "Referenced_project_0_must_have_setting_composite_Colon_true_6306", "Referenced project '{0}' must have setting \"composite\": true."), + File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern: t(6307, e.DiagnosticCategory.Error, "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307", "File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."), + Cannot_prepend_project_0_because_it_does_not_have_outFile_set: t(6308, e.DiagnosticCategory.Error, "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308", "Cannot prepend project '{0}' because it does not have 'outFile' set"), + Output_file_0_from_project_1_does_not_exist: t(6309, e.DiagnosticCategory.Error, "Output_file_0_from_project_1_does_not_exist_6309", "Output file '{0}' from project '{1}' does not exist"), + Referenced_project_0_may_not_disable_emit: t(6310, e.DiagnosticCategory.Error, "Referenced_project_0_may_not_disable_emit_6310", "Referenced project '{0}' may not disable emit."), + Project_0_is_out_of_date_because_output_1_is_older_than_input_2: t(6350, e.DiagnosticCategory.Message, "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350", "Project '{0}' is out of date because output '{1}' is older than input '{2}'"), + Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2: t(6351, e.DiagnosticCategory.Message, "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351", "Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"), + Project_0_is_out_of_date_because_output_file_1_does_not_exist: t(6352, e.DiagnosticCategory.Message, "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352", "Project '{0}' is out of date because output file '{1}' does not exist"), + Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date: t(6353, e.DiagnosticCategory.Message, "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353", "Project '{0}' is out of date because its dependency '{1}' is out of date"), + Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies: t(6354, e.DiagnosticCategory.Message, "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354", "Project '{0}' is up to date with .d.ts files from its dependencies"), + Projects_in_this_build_Colon_0: t(6355, e.DiagnosticCategory.Message, "Projects_in_this_build_Colon_0_6355", "Projects in this build: {0}"), + A_non_dry_build_would_delete_the_following_files_Colon_0: t(6356, e.DiagnosticCategory.Message, "A_non_dry_build_would_delete_the_following_files_Colon_0_6356", "A non-dry build would delete the following files: {0}"), + A_non_dry_build_would_build_project_0: t(6357, e.DiagnosticCategory.Message, "A_non_dry_build_would_build_project_0_6357", "A non-dry build would build project '{0}'"), + Building_project_0: t(6358, e.DiagnosticCategory.Message, "Building_project_0_6358", "Building project '{0}'..."), + Updating_output_timestamps_of_project_0: t(6359, e.DiagnosticCategory.Message, "Updating_output_timestamps_of_project_0_6359", "Updating output timestamps of project '{0}'..."), + Project_0_is_up_to_date: t(6361, e.DiagnosticCategory.Message, "Project_0_is_up_to_date_6361", "Project '{0}' is up to date"), + Skipping_build_of_project_0_because_its_dependency_1_has_errors: t(6362, e.DiagnosticCategory.Message, "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362", "Skipping build of project '{0}' because its dependency '{1}' has errors"), + Project_0_can_t_be_built_because_its_dependency_1_has_errors: t(6363, e.DiagnosticCategory.Message, "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363", "Project '{0}' can't be built because its dependency '{1}' has errors"), + Build_one_or_more_projects_and_their_dependencies_if_out_of_date: t(6364, e.DiagnosticCategory.Message, "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364", "Build one or more projects and their dependencies, if out of date"), + Delete_the_outputs_of_all_projects: t(6365, e.DiagnosticCategory.Message, "Delete_the_outputs_of_all_projects_6365", "Delete the outputs of all projects."), + Show_what_would_be_built_or_deleted_if_specified_with_clean: t(6367, e.DiagnosticCategory.Message, "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367", "Show what would be built (or deleted, if specified with '--clean')"), + Option_build_must_be_the_first_command_line_argument: t(6369, e.DiagnosticCategory.Error, "Option_build_must_be_the_first_command_line_argument_6369", "Option '--build' must be the first command line argument."), + Options_0_and_1_cannot_be_combined: t(6370, e.DiagnosticCategory.Error, "Options_0_and_1_cannot_be_combined_6370", "Options '{0}' and '{1}' cannot be combined."), + Updating_unchanged_output_timestamps_of_project_0: t(6371, e.DiagnosticCategory.Message, "Updating_unchanged_output_timestamps_of_project_0_6371", "Updating unchanged output timestamps of project '{0}'..."), + Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed: t(6372, e.DiagnosticCategory.Message, "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372", "Project '{0}' is out of date because output of its dependency '{1}' has changed"), + Updating_output_of_project_0: t(6373, e.DiagnosticCategory.Message, "Updating_output_of_project_0_6373", "Updating output of project '{0}'..."), + A_non_dry_build_would_update_timestamps_for_output_of_project_0: t(6374, e.DiagnosticCategory.Message, "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374", "A non-dry build would update timestamps for output of project '{0}'"), + A_non_dry_build_would_update_output_of_project_0: t(6375, e.DiagnosticCategory.Message, "A_non_dry_build_would_update_output_of_project_0_6375", "A non-dry build would update output of project '{0}'"), + Cannot_update_output_of_project_0_because_there_was_error_reading_file_1: t(6376, e.DiagnosticCategory.Message, "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376", "Cannot update output of project '{0}' because there was error reading file '{1}'"), + Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1: t(6377, e.DiagnosticCategory.Error, "Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377", "Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"), + Composite_projects_may_not_disable_incremental_compilation: t(6379, e.DiagnosticCategory.Error, "Composite_projects_may_not_disable_incremental_compilation_6379", "Composite projects may not disable incremental compilation."), + Specify_file_to_store_incremental_compilation_information: t(6380, e.DiagnosticCategory.Message, "Specify_file_to_store_incremental_compilation_information_6380", "Specify file to store incremental compilation information"), + Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2: t(6381, e.DiagnosticCategory.Message, "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381", "Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"), + Skipping_build_of_project_0_because_its_dependency_1_was_not_built: t(6382, e.DiagnosticCategory.Message, "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382", "Skipping build of project '{0}' because its dependency '{1}' was not built"), + Project_0_can_t_be_built_because_its_dependency_1_was_not_built: t(6383, e.DiagnosticCategory.Message, "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383", "Project '{0}' can't be built because its dependency '{1}' was not built"), + Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it: t(6384, e.DiagnosticCategory.Message, "Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384", "Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."), + _0_is_deprecated: t(6385, e.DiagnosticCategory.Suggestion, "_0_is_deprecated_6385", "'{0}' is deprecated.", void 0, void 0, !0), + Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found: t(6386, e.DiagnosticCategory.Message, "Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386", "Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."), + The_signature_0_of_1_is_deprecated: t(6387, e.DiagnosticCategory.Suggestion, "The_signature_0_of_1_is_deprecated_6387", "The signature '{0}' of '{1}' is deprecated.", void 0, void 0, !0), + Project_0_is_being_forcibly_rebuilt: t(6388, e.DiagnosticCategory.Message, "Project_0_is_being_forcibly_rebuilt_6388", "Project '{0}' is being forcibly rebuilt"), + Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved: t(6389, e.DiagnosticCategory.Message, "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389", "Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."), + Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2: t(6390, e.DiagnosticCategory.Message, "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390", "Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."), + Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3: t(6391, e.DiagnosticCategory.Message, "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391", "Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."), + Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved: t(6392, e.DiagnosticCategory.Message, "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392", "Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."), + Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3: t(6393, e.DiagnosticCategory.Message, "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393", "Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."), + Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4: t(6394, e.DiagnosticCategory.Message, "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394", "Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."), + Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved: t(6395, e.DiagnosticCategory.Message, "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395", "Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."), + Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3: t(6396, e.DiagnosticCategory.Message, "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396", "Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."), + Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4: t(6397, e.DiagnosticCategory.Message, "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397", "Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."), + Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved: t(6398, e.DiagnosticCategory.Message, "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398", "Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."), + Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted: t(6399, e.DiagnosticCategory.Message, "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399", "Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"), + Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files: t(6400, e.DiagnosticCategory.Message, "Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400", "Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"), + Project_0_is_out_of_date_because_there_was_error_reading_file_1: t(6401, e.DiagnosticCategory.Message, "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401", "Project '{0}' is out of date because there was error reading file '{1}'"), + Resolving_in_0_mode_with_conditions_1: t(6402, e.DiagnosticCategory.Message, "Resolving_in_0_mode_with_conditions_1_6402", "Resolving in {0} mode with conditions {1}."), + Matched_0_condition_1: t(6403, e.DiagnosticCategory.Message, "Matched_0_condition_1_6403", "Matched '{0}' condition '{1}'."), + Using_0_subpath_1_with_target_2: t(6404, e.DiagnosticCategory.Message, "Using_0_subpath_1_with_target_2_6404", "Using '{0}' subpath '{1}' with target '{2}'."), + Saw_non_matching_condition_0: t(6405, e.DiagnosticCategory.Message, "Saw_non_matching_condition_0_6405", "Saw non-matching condition '{0}'."), + The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1: t(6500, e.DiagnosticCategory.Message, "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500", "The expected type comes from property '{0}' which is declared here on type '{1}'"), + The_expected_type_comes_from_this_index_signature: t(6501, e.DiagnosticCategory.Message, "The_expected_type_comes_from_this_index_signature_6501", "The expected type comes from this index signature."), + The_expected_type_comes_from_the_return_type_of_this_signature: t(6502, e.DiagnosticCategory.Message, "The_expected_type_comes_from_the_return_type_of_this_signature_6502", "The expected type comes from the return type of this signature."), + Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing: t(6503, e.DiagnosticCategory.Message, "Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503", "Print names of files that are part of the compilation and then stop processing."), + File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option: t(6504, e.DiagnosticCategory.Error, "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504", "File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"), + Print_names_of_files_and_the_reason_they_are_part_of_the_compilation: t(6505, e.DiagnosticCategory.Message, "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505", "Print names of files and the reason they are part of the compilation."), + Consider_adding_a_declare_modifier_to_this_class: t(6506, e.DiagnosticCategory.Message, "Consider_adding_a_declare_modifier_to_this_class_6506", "Consider adding a 'declare' modifier to this class."), + Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files: t(6600, e.DiagnosticCategory.Message, "Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600", "Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."), + Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export: t(6601, e.DiagnosticCategory.Message, "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601", "Allow 'import x from y' when a module doesn't have a default export."), + Allow_accessing_UMD_globals_from_modules: t(6602, e.DiagnosticCategory.Message, "Allow_accessing_UMD_globals_from_modules_6602", "Allow accessing UMD globals from modules."), + Disable_error_reporting_for_unreachable_code: t(6603, e.DiagnosticCategory.Message, "Disable_error_reporting_for_unreachable_code_6603", "Disable error reporting for unreachable code."), + Disable_error_reporting_for_unused_labels: t(6604, e.DiagnosticCategory.Message, "Disable_error_reporting_for_unused_labels_6604", "Disable error reporting for unused labels."), + Ensure_use_strict_is_always_emitted: t(6605, e.DiagnosticCategory.Message, "Ensure_use_strict_is_always_emitted_6605", "Ensure 'use strict' is always emitted."), + Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it: t(6606, e.DiagnosticCategory.Message, "Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606", "Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."), + Specify_the_base_directory_to_resolve_non_relative_module_names: t(6607, e.DiagnosticCategory.Message, "Specify_the_base_directory_to_resolve_non_relative_module_names_6607", "Specify the base directory to resolve non-relative module names."), + No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files: t(6608, e.DiagnosticCategory.Message, "No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608", "No longer supported. In early versions, manually set the text encoding for reading files."), + Enable_error_reporting_in_type_checked_JavaScript_files: t(6609, e.DiagnosticCategory.Message, "Enable_error_reporting_in_type_checked_JavaScript_files_6609", "Enable error reporting in type-checked JavaScript files."), + Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references: t(6611, e.DiagnosticCategory.Message, "Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611", "Enable constraints that allow a TypeScript project to be used with project references."), + Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project: t(6612, e.DiagnosticCategory.Message, "Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612", "Generate .d.ts files from TypeScript and JavaScript files in your project."), + Specify_the_output_directory_for_generated_declaration_files: t(6613, e.DiagnosticCategory.Message, "Specify_the_output_directory_for_generated_declaration_files_6613", "Specify the output directory for generated declaration files."), + Create_sourcemaps_for_d_ts_files: t(6614, e.DiagnosticCategory.Message, "Create_sourcemaps_for_d_ts_files_6614", "Create sourcemaps for d.ts files."), + Output_compiler_performance_information_after_building: t(6615, e.DiagnosticCategory.Message, "Output_compiler_performance_information_after_building_6615", "Output compiler performance information after building."), + Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project: t(6616, e.DiagnosticCategory.Message, "Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616", "Disables inference for type acquisition by looking at filenames in a project."), + Reduce_the_number_of_projects_loaded_automatically_by_TypeScript: t(6617, e.DiagnosticCategory.Message, "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617", "Reduce the number of projects loaded automatically by TypeScript."), + Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server: t(6618, e.DiagnosticCategory.Message, "Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618", "Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."), + Opt_a_project_out_of_multi_project_reference_checking_when_editing: t(6619, e.DiagnosticCategory.Message, "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619", "Opt a project out of multi-project reference checking when editing."), + Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects: t(6620, e.DiagnosticCategory.Message, "Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620", "Disable preferring source files instead of declaration files when referencing composite projects."), + Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration: t(6621, e.DiagnosticCategory.Message, "Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621", "Emit more compliant, but verbose and less performant JavaScript for iteration."), + Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files: t(6622, e.DiagnosticCategory.Message, "Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622", "Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."), + Only_output_d_ts_files_and_not_JavaScript_files: t(6623, e.DiagnosticCategory.Message, "Only_output_d_ts_files_and_not_JavaScript_files_6623", "Only output d.ts files and not JavaScript files."), + Emit_design_type_metadata_for_decorated_declarations_in_source_files: t(6624, e.DiagnosticCategory.Message, "Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624", "Emit design-type metadata for decorated declarations in source files."), + Disable_the_type_acquisition_for_JavaScript_projects: t(6625, e.DiagnosticCategory.Message, "Disable_the_type_acquisition_for_JavaScript_projects_6625", "Disable the type acquisition for JavaScript projects"), + Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility: t(6626, e.DiagnosticCategory.Message, "Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626", "Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."), + Filters_results_from_the_include_option: t(6627, e.DiagnosticCategory.Message, "Filters_results_from_the_include_option_6627", "Filters results from the `include` option."), + Remove_a_list_of_directories_from_the_watch_process: t(6628, e.DiagnosticCategory.Message, "Remove_a_list_of_directories_from_the_watch_process_6628", "Remove a list of directories from the watch process."), + Remove_a_list_of_files_from_the_watch_mode_s_processing: t(6629, e.DiagnosticCategory.Message, "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629", "Remove a list of files from the watch mode's processing."), + Enable_experimental_support_for_TC39_stage_2_draft_decorators: t(6630, e.DiagnosticCategory.Message, "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630", "Enable experimental support for TC39 stage 2 draft decorators."), + Print_files_read_during_the_compilation_including_why_it_was_included: t(6631, e.DiagnosticCategory.Message, "Print_files_read_during_the_compilation_including_why_it_was_included_6631", "Print files read during the compilation including why it was included."), + Output_more_detailed_compiler_performance_information_after_building: t(6632, e.DiagnosticCategory.Message, "Output_more_detailed_compiler_performance_information_after_building_6632", "Output more detailed compiler performance information after building."), + Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited: t(6633, e.DiagnosticCategory.Message, "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633", "Specify one or more path or node module references to base configuration files from which settings are inherited."), + Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers: t(6634, e.DiagnosticCategory.Message, "Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634", "Specify what approach the watcher should use if the system runs out of native file watchers."), + Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include: t(6635, e.DiagnosticCategory.Message, "Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635", "Include a list of files. This does not support glob patterns, as opposed to `include`."), + Build_all_projects_including_those_that_appear_to_be_up_to_date: t(6636, e.DiagnosticCategory.Message, "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636", "Build all projects, including those that appear to be up to date."), + Ensure_that_casing_is_correct_in_imports: t(6637, e.DiagnosticCategory.Message, "Ensure_that_casing_is_correct_in_imports_6637", "Ensure that casing is correct in imports."), + Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging: t(6638, e.DiagnosticCategory.Message, "Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638", "Emit a v8 CPU profile of the compiler run for debugging."), + Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file: t(6639, e.DiagnosticCategory.Message, "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639", "Allow importing helper functions from tslib once per project, instead of including them per-file."), + Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation: t(6641, e.DiagnosticCategory.Message, "Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641", "Specify a list of glob patterns that match files to be included in compilation."), + Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects: t(6642, e.DiagnosticCategory.Message, "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642", "Save .tsbuildinfo files to allow for incremental compilation of projects."), + Include_sourcemap_files_inside_the_emitted_JavaScript: t(6643, e.DiagnosticCategory.Message, "Include_sourcemap_files_inside_the_emitted_JavaScript_6643", "Include sourcemap files inside the emitted JavaScript."), + Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript: t(6644, e.DiagnosticCategory.Message, "Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644", "Include source code in the sourcemaps inside the emitted JavaScript."), + Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports: t(6645, e.DiagnosticCategory.Message, "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645", "Ensure that each file can be safely transpiled without relying on other imports."), + Specify_what_JSX_code_is_generated: t(6646, e.DiagnosticCategory.Message, "Specify_what_JSX_code_is_generated_6646", "Specify what JSX code is generated."), + Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h: t(6647, e.DiagnosticCategory.Message, "Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647", "Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."), + Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment: t(6648, e.DiagnosticCategory.Message, "Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648", "Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."), + Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk: t(6649, e.DiagnosticCategory.Message, "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649", "Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."), + Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option: t(6650, e.DiagnosticCategory.Message, "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650", "Make keyof only return strings instead of string, numbers or symbols. Legacy option."), + Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment: t(6651, e.DiagnosticCategory.Message, "Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651", "Specify a set of bundled library declaration files that describe the target runtime environment."), + Print_the_names_of_emitted_files_after_a_compilation: t(6652, e.DiagnosticCategory.Message, "Print_the_names_of_emitted_files_after_a_compilation_6652", "Print the names of emitted files after a compilation."), + Print_all_of_the_files_read_during_the_compilation: t(6653, e.DiagnosticCategory.Message, "Print_all_of_the_files_read_during_the_compilation_6653", "Print all of the files read during the compilation."), + Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit: t(6654, e.DiagnosticCategory.Message, "Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654", "Set the language of the messaging from TypeScript. This does not affect emit."), + Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations: t(6655, e.DiagnosticCategory.Message, "Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655", "Specify the location where debugger should locate map files instead of generated locations."), + Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs: t(6656, e.DiagnosticCategory.Message, "Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656", "Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."), + Specify_what_module_code_is_generated: t(6657, e.DiagnosticCategory.Message, "Specify_what_module_code_is_generated_6657", "Specify what module code is generated."), + Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier: t(6658, e.DiagnosticCategory.Message, "Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658", "Specify how TypeScript looks up a file from a given module specifier."), + Set_the_newline_character_for_emitting_files: t(6659, e.DiagnosticCategory.Message, "Set_the_newline_character_for_emitting_files_6659", "Set the newline character for emitting files."), + Disable_emitting_files_from_a_compilation: t(6660, e.DiagnosticCategory.Message, "Disable_emitting_files_from_a_compilation_6660", "Disable emitting files from a compilation."), + Disable_generating_custom_helper_functions_like_extends_in_compiled_output: t(6661, e.DiagnosticCategory.Message, "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661", "Disable generating custom helper functions like '__extends' in compiled output."), + Disable_emitting_files_if_any_type_checking_errors_are_reported: t(6662, e.DiagnosticCategory.Message, "Disable_emitting_files_if_any_type_checking_errors_are_reported_6662", "Disable emitting files if any type checking errors are reported."), + Disable_truncating_types_in_error_messages: t(6663, e.DiagnosticCategory.Message, "Disable_truncating_types_in_error_messages_6663", "Disable truncating types in error messages."), + Enable_error_reporting_for_fallthrough_cases_in_switch_statements: t(6664, e.DiagnosticCategory.Message, "Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664", "Enable error reporting for fallthrough cases in switch statements."), + Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type: t(6665, e.DiagnosticCategory.Message, "Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665", "Enable error reporting for expressions and declarations with an implied 'any' type."), + Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier: t(6666, e.DiagnosticCategory.Message, "Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666", "Ensure overriding members in derived classes are marked with an override modifier."), + Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function: t(6667, e.DiagnosticCategory.Message, "Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667", "Enable error reporting for codepaths that do not explicitly return in a function."), + Enable_error_reporting_when_this_is_given_the_type_any: t(6668, e.DiagnosticCategory.Message, "Enable_error_reporting_when_this_is_given_the_type_any_6668", "Enable error reporting when 'this' is given the type 'any'."), + Disable_adding_use_strict_directives_in_emitted_JavaScript_files: t(6669, e.DiagnosticCategory.Message, "Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669", "Disable adding 'use strict' directives in emitted JavaScript files."), + Disable_including_any_library_files_including_the_default_lib_d_ts: t(6670, e.DiagnosticCategory.Message, "Disable_including_any_library_files_including_the_default_lib_d_ts_6670", "Disable including any library files, including the default lib.d.ts."), + Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type: t(6671, e.DiagnosticCategory.Message, "Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671", "Enforces using indexed accessors for keys declared using an indexed type."), + Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project: t(6672, e.DiagnosticCategory.Message, "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672", "Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."), + Disable_strict_checking_of_generic_signatures_in_function_types: t(6673, e.DiagnosticCategory.Message, "Disable_strict_checking_of_generic_signatures_in_function_types_6673", "Disable strict checking of generic signatures in function types."), + Add_undefined_to_a_type_when_accessed_using_an_index: t(6674, e.DiagnosticCategory.Message, "Add_undefined_to_a_type_when_accessed_using_an_index_6674", "Add 'undefined' to a type when accessed using an index."), + Enable_error_reporting_when_local_variables_aren_t_read: t(6675, e.DiagnosticCategory.Message, "Enable_error_reporting_when_local_variables_aren_t_read_6675", "Enable error reporting when local variables aren't read."), + Raise_an_error_when_a_function_parameter_isn_t_read: t(6676, e.DiagnosticCategory.Message, "Raise_an_error_when_a_function_parameter_isn_t_read_6676", "Raise an error when a function parameter isn't read."), + Deprecated_setting_Use_outFile_instead: t(6677, e.DiagnosticCategory.Message, "Deprecated_setting_Use_outFile_instead_6677", "Deprecated setting. Use 'outFile' instead."), + Specify_an_output_folder_for_all_emitted_files: t(6678, e.DiagnosticCategory.Message, "Specify_an_output_folder_for_all_emitted_files_6678", "Specify an output folder for all emitted files."), + Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output: t(6679, e.DiagnosticCategory.Message, "Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679", "Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."), + Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations: t(6680, e.DiagnosticCategory.Message, "Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680", "Specify a set of entries that re-map imports to additional lookup locations."), + Specify_a_list_of_language_service_plugins_to_include: t(6681, e.DiagnosticCategory.Message, "Specify_a_list_of_language_service_plugins_to_include_6681", "Specify a list of language service plugins to include."), + Disable_erasing_const_enum_declarations_in_generated_code: t(6682, e.DiagnosticCategory.Message, "Disable_erasing_const_enum_declarations_in_generated_code_6682", "Disable erasing 'const enum' declarations in generated code."), + Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node: t(6683, e.DiagnosticCategory.Message, "Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683", "Disable resolving symlinks to their realpath. This correlates to the same flag in node."), + Disable_wiping_the_console_in_watch_mode: t(6684, e.DiagnosticCategory.Message, "Disable_wiping_the_console_in_watch_mode_6684", "Disable wiping the console in watch mode."), + Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read: t(6685, e.DiagnosticCategory.Message, "Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685", "Enable color and formatting in TypeScript's output to make compiler errors easier to read."), + Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit: t(6686, e.DiagnosticCategory.Message, "Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686", "Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."), + Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references: t(6687, e.DiagnosticCategory.Message, "Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687", "Specify an array of objects that specify paths for projects. Used in project references."), + Disable_emitting_comments: t(6688, e.DiagnosticCategory.Message, "Disable_emitting_comments_6688", "Disable emitting comments."), + Enable_importing_json_files: t(6689, e.DiagnosticCategory.Message, "Enable_importing_json_files_6689", "Enable importing .json files."), + Specify_the_root_folder_within_your_source_files: t(6690, e.DiagnosticCategory.Message, "Specify_the_root_folder_within_your_source_files_6690", "Specify the root folder within your source files."), + Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules: t(6691, e.DiagnosticCategory.Message, "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691", "Allow multiple folders to be treated as one when resolving modules."), + Skip_type_checking_d_ts_files_that_are_included_with_TypeScript: t(6692, e.DiagnosticCategory.Message, "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692", "Skip type checking .d.ts files that are included with TypeScript."), + Skip_type_checking_all_d_ts_files: t(6693, e.DiagnosticCategory.Message, "Skip_type_checking_all_d_ts_files_6693", "Skip type checking all .d.ts files."), + Create_source_map_files_for_emitted_JavaScript_files: t(6694, e.DiagnosticCategory.Message, "Create_source_map_files_for_emitted_JavaScript_files_6694", "Create source map files for emitted JavaScript files."), + Specify_the_root_path_for_debuggers_to_find_the_reference_source_code: t(6695, e.DiagnosticCategory.Message, "Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695", "Specify the root path for debuggers to find the reference source code."), + Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function: t(6697, e.DiagnosticCategory.Message, "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697", "Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."), + When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible: t(6698, e.DiagnosticCategory.Message, "When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698", "When assigning functions, check to ensure parameters and the return values are subtype-compatible."), + When_type_checking_take_into_account_null_and_undefined: t(6699, e.DiagnosticCategory.Message, "When_type_checking_take_into_account_null_and_undefined_6699", "When type checking, take into account 'null' and 'undefined'."), + Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor: t(6700, e.DiagnosticCategory.Message, "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700", "Check for class properties that are declared but not set in the constructor."), + Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments: t(6701, e.DiagnosticCategory.Message, "Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701", "Disable emitting declarations that have '@internal' in their JSDoc comments."), + Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals: t(6702, e.DiagnosticCategory.Message, "Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702", "Disable reporting of excess property errors during the creation of object literals."), + Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures: t(6703, e.DiagnosticCategory.Message, "Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703", "Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."), + Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively: t(6704, e.DiagnosticCategory.Message, "Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704", "Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."), + Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations: t(6705, e.DiagnosticCategory.Message, "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705", "Set the JavaScript language version for emitted JavaScript and include compatible library declarations."), + Log_paths_used_during_the_moduleResolution_process: t(6706, e.DiagnosticCategory.Message, "Log_paths_used_during_the_moduleResolution_process_6706", "Log paths used during the 'moduleResolution' process."), + Specify_the_path_to_tsbuildinfo_incremental_compilation_file: t(6707, e.DiagnosticCategory.Message, "Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707", "Specify the path to .tsbuildinfo incremental compilation file."), + Specify_options_for_automatic_acquisition_of_declaration_files: t(6709, e.DiagnosticCategory.Message, "Specify_options_for_automatic_acquisition_of_declaration_files_6709", "Specify options for automatic acquisition of declaration files."), + Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types: t(6710, e.DiagnosticCategory.Message, "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710", "Specify multiple folders that act like './node_modules/@types'."), + Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file: t(6711, e.DiagnosticCategory.Message, "Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711", "Specify type package names to be included without being referenced in a source file."), + Emit_ECMAScript_standard_compliant_class_fields: t(6712, e.DiagnosticCategory.Message, "Emit_ECMAScript_standard_compliant_class_fields_6712", "Emit ECMAScript-standard-compliant class fields."), + Enable_verbose_logging: t(6713, e.DiagnosticCategory.Message, "Enable_verbose_logging_6713", "Enable verbose logging."), + Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality: t(6714, e.DiagnosticCategory.Message, "Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714", "Specify how directories are watched on systems that lack recursive file-watching functionality."), + Specify_how_the_TypeScript_watch_mode_works: t(6715, e.DiagnosticCategory.Message, "Specify_how_the_TypeScript_watch_mode_works_6715", "Specify how the TypeScript watch mode works."), + Require_undeclared_properties_from_index_signatures_to_use_element_accesses: t(6717, e.DiagnosticCategory.Message, "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717", "Require undeclared properties from index signatures to use element accesses."), + Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: t(6718, e.DiagnosticCategory.Message, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."), + Default_catch_clause_variables_as_unknown_instead_of_any: t(6803, e.DiagnosticCategory.Message, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."), + one_of_Colon: t(6900, e.DiagnosticCategory.Message, "one_of_Colon_6900", "one of:"), + one_or_more_Colon: t(6901, e.DiagnosticCategory.Message, "one_or_more_Colon_6901", "one or more:"), + type_Colon: t(6902, e.DiagnosticCategory.Message, "type_Colon_6902", "type:"), + default_Colon: t(6903, e.DiagnosticCategory.Message, "default_Colon_6903", "default:"), + module_system_or_esModuleInterop: t(6904, e.DiagnosticCategory.Message, "module_system_or_esModuleInterop_6904", 'module === "system" or esModuleInterop'), + false_unless_strict_is_set: t(6905, e.DiagnosticCategory.Message, "false_unless_strict_is_set_6905", "`false`, unless `strict` is set"), + false_unless_composite_is_set: t(6906, e.DiagnosticCategory.Message, "false_unless_composite_is_set_6906", "`false`, unless `composite` is set"), + node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified: t(6907, e.DiagnosticCategory.Message, "node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907", '`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'), + if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk: t(6908, e.DiagnosticCategory.Message, "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908", '`[]` if `files` is specified, otherwise `["**/*"]`'), + true_if_composite_false_otherwise: t(6909, e.DiagnosticCategory.Message, "true_if_composite_false_otherwise_6909", "`true` if `composite`, `false` otherwise"), + module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node: t(69010, e.DiagnosticCategory.Message, "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010", "module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"), + Computed_from_the_list_of_input_files: t(6911, e.DiagnosticCategory.Message, "Computed_from_the_list_of_input_files_6911", "Computed from the list of input files"), + Platform_specific: t(6912, e.DiagnosticCategory.Message, "Platform_specific_6912", "Platform specific"), + You_can_learn_about_all_of_the_compiler_options_at_0: t(6913, e.DiagnosticCategory.Message, "You_can_learn_about_all_of_the_compiler_options_at_0_6913", "You can learn about all of the compiler options at {0}"), + Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon: t(6914, e.DiagnosticCategory.Message, "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914", "Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"), + Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0: t(6915, e.DiagnosticCategory.Message, "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915", "Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"), + COMMON_COMMANDS: t(6916, e.DiagnosticCategory.Message, "COMMON_COMMANDS_6916", "COMMON COMMANDS"), + ALL_COMPILER_OPTIONS: t(6917, e.DiagnosticCategory.Message, "ALL_COMPILER_OPTIONS_6917", "ALL COMPILER OPTIONS"), + WATCH_OPTIONS: t(6918, e.DiagnosticCategory.Message, "WATCH_OPTIONS_6918", "WATCH OPTIONS"), + BUILD_OPTIONS: t(6919, e.DiagnosticCategory.Message, "BUILD_OPTIONS_6919", "BUILD OPTIONS"), + COMMON_COMPILER_OPTIONS: t(6920, e.DiagnosticCategory.Message, "COMMON_COMPILER_OPTIONS_6920", "COMMON COMPILER OPTIONS"), + COMMAND_LINE_FLAGS: t(6921, e.DiagnosticCategory.Message, "COMMAND_LINE_FLAGS_6921", "COMMAND LINE FLAGS"), + tsc_Colon_The_TypeScript_Compiler: t(6922, e.DiagnosticCategory.Message, "tsc_Colon_The_TypeScript_Compiler_6922", "tsc: The TypeScript Compiler"), + Compiles_the_current_project_tsconfig_json_in_the_working_directory: t(6923, e.DiagnosticCategory.Message, "Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923", "Compiles the current project (tsconfig.json in the working directory.)"), + Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options: t(6924, e.DiagnosticCategory.Message, "Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924", "Ignoring tsconfig.json, compiles the specified files with default compiler options."), + Build_a_composite_project_in_the_working_directory: t(6925, e.DiagnosticCategory.Message, "Build_a_composite_project_in_the_working_directory_6925", "Build a composite project in the working directory."), + Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory: t(6926, e.DiagnosticCategory.Message, "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926", "Creates a tsconfig.json with the recommended settings in the working directory."), + Compiles_the_TypeScript_project_located_at_the_specified_path: t(6927, e.DiagnosticCategory.Message, "Compiles_the_TypeScript_project_located_at_the_specified_path_6927", "Compiles the TypeScript project located at the specified path."), + An_expanded_version_of_this_information_showing_all_possible_compiler_options: t(6928, e.DiagnosticCategory.Message, "An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928", "An expanded version of this information, showing all possible compiler options"), + Compiles_the_current_project_with_additional_settings: t(6929, e.DiagnosticCategory.Message, "Compiles_the_current_project_with_additional_settings_6929", "Compiles the current project, with additional settings."), + true_for_ES2022_and_above_including_ESNext: t(6930, e.DiagnosticCategory.Message, "true_for_ES2022_and_above_including_ESNext_6930", "`true` for ES2022 and above, including ESNext."), + List_of_file_name_suffixes_to_search_when_resolving_a_module: t(6931, e.DiagnosticCategory.Error, "List_of_file_name_suffixes_to_search_when_resolving_a_module_6931", "List of file name suffixes to search when resolving a module."), + Variable_0_implicitly_has_an_1_type: t(7005, e.DiagnosticCategory.Error, "Variable_0_implicitly_has_an_1_type_7005", "Variable '{0}' implicitly has an '{1}' type."), + Parameter_0_implicitly_has_an_1_type: t(7006, e.DiagnosticCategory.Error, "Parameter_0_implicitly_has_an_1_type_7006", "Parameter '{0}' implicitly has an '{1}' type."), + Member_0_implicitly_has_an_1_type: t(7008, e.DiagnosticCategory.Error, "Member_0_implicitly_has_an_1_type_7008", "Member '{0}' implicitly has an '{1}' type."), + new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type: t(7009, e.DiagnosticCategory.Error, "new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009", "'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."), + _0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type: t(7010, e.DiagnosticCategory.Error, "_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010", "'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."), + Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type: t(7011, e.DiagnosticCategory.Error, "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011", "Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."), + Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type: t(7013, e.DiagnosticCategory.Error, "Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013", "Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."), + Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type: t(7014, e.DiagnosticCategory.Error, "Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014", "Function type, which lacks return-type annotation, implicitly has an '{0}' return type."), + Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number: t(7015, e.DiagnosticCategory.Error, "Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015", "Element implicitly has an 'any' type because index expression is not of type 'number'."), + Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type: t(7016, e.DiagnosticCategory.Error, "Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016", "Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."), + Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature: t(7017, e.DiagnosticCategory.Error, "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017", "Element implicitly has an 'any' type because type '{0}' has no index signature."), + Object_literal_s_property_0_implicitly_has_an_1_type: t(7018, e.DiagnosticCategory.Error, "Object_literal_s_property_0_implicitly_has_an_1_type_7018", "Object literal's property '{0}' implicitly has an '{1}' type."), + Rest_parameter_0_implicitly_has_an_any_type: t(7019, e.DiagnosticCategory.Error, "Rest_parameter_0_implicitly_has_an_any_type_7019", "Rest parameter '{0}' implicitly has an 'any[]' type."), + Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type: t(7020, e.DiagnosticCategory.Error, "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020", "Call signature, which lacks return-type annotation, implicitly has an 'any' return type."), + _0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer: t(7022, e.DiagnosticCategory.Error, "_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022", "'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."), + _0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: t(7023, e.DiagnosticCategory.Error, "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023", "'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."), + Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: t(7024, e.DiagnosticCategory.Error, "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024", "Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."), + Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation: t(7025, e.DiagnosticCategory.Error, "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025", "Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."), + JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists: t(7026, e.DiagnosticCategory.Error, "JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026", "JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."), + Unreachable_code_detected: t(7027, e.DiagnosticCategory.Error, "Unreachable_code_detected_7027", "Unreachable code detected.", !0), + Unused_label: t(7028, e.DiagnosticCategory.Error, "Unused_label_7028", "Unused label.", !0), + Fallthrough_case_in_switch: t(7029, e.DiagnosticCategory.Error, "Fallthrough_case_in_switch_7029", "Fallthrough case in switch."), + Not_all_code_paths_return_a_value: t(7030, e.DiagnosticCategory.Error, "Not_all_code_paths_return_a_value_7030", "Not all code paths return a value."), + Binding_element_0_implicitly_has_an_1_type: t(7031, e.DiagnosticCategory.Error, "Binding_element_0_implicitly_has_an_1_type_7031", "Binding element '{0}' implicitly has an '{1}' type."), + Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation: t(7032, e.DiagnosticCategory.Error, "Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032", "Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."), + Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation: t(7033, e.DiagnosticCategory.Error, "Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033", "Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."), + Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined: t(7034, e.DiagnosticCategory.Error, "Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034", "Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."), + Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0: t(7035, e.DiagnosticCategory.Error, "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035", "Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"), + Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0: t(7036, e.DiagnosticCategory.Error, "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036", "Dynamic import's specifier must be of type 'string', but here has type '{0}'."), + Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports: t(7037, e.DiagnosticCategory.Message, "Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037", "Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."), + Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead: t(7038, e.DiagnosticCategory.Message, "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038", "Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."), + Mapped_object_type_implicitly_has_an_any_template_type: t(7039, e.DiagnosticCategory.Error, "Mapped_object_type_implicitly_has_an_any_template_type_7039", "Mapped object type implicitly has an 'any' template type."), + If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1: t(7040, e.DiagnosticCategory.Error, "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040", "If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"), + The_containing_arrow_function_captures_the_global_value_of_this: t(7041, e.DiagnosticCategory.Error, "The_containing_arrow_function_captures_the_global_value_of_this_7041", "The containing arrow function captures the global value of 'this'."), + Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used: t(7042, e.DiagnosticCategory.Error, "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042", "Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."), + Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage: t(7043, e.DiagnosticCategory.Suggestion, "Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043", "Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."), + Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage: t(7044, e.DiagnosticCategory.Suggestion, "Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044", "Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."), + Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage: t(7045, e.DiagnosticCategory.Suggestion, "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045", "Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."), + Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage: t(7046, e.DiagnosticCategory.Suggestion, "Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046", "Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."), + Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage: t(7047, e.DiagnosticCategory.Suggestion, "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047", "Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."), + Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage: t(7048, e.DiagnosticCategory.Suggestion, "Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048", "Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."), + Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage: t(7049, e.DiagnosticCategory.Suggestion, "Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049", "Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."), + _0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage: t(7050, e.DiagnosticCategory.Suggestion, "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050", "'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."), + Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1: t(7051, e.DiagnosticCategory.Error, "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051", "Parameter has a name but no type. Did you mean '{0}: {1}'?"), + Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1: t(7052, e.DiagnosticCategory.Error, "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052", "Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"), + Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1: t(7053, e.DiagnosticCategory.Error, "Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053", "Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."), + No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1: t(7054, e.DiagnosticCategory.Error, "No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054", "No index signature with a parameter of type '{0}' was found on type '{1}'."), + _0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type: t(7055, e.DiagnosticCategory.Error, "_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055", "'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."), + The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed: t(7056, e.DiagnosticCategory.Error, "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056", "The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."), + yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation: t(7057, e.DiagnosticCategory.Error, "yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057", "'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."), + If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1: t(7058, e.DiagnosticCategory.Error, "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058", "If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"), + This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead: t(7059, e.DiagnosticCategory.Error, "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059", "This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."), + This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint: t(7060, e.DiagnosticCategory.Error, "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060", "This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."), + A_mapped_type_may_not_declare_properties_or_methods: t(7061, e.DiagnosticCategory.Error, "A_mapped_type_may_not_declare_properties_or_methods_7061", "A mapped type may not declare properties or methods."), + You_cannot_rename_this_element: t(8e3, e.DiagnosticCategory.Error, "You_cannot_rename_this_element_8000", "You cannot rename this element."), + You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library: t(8001, e.DiagnosticCategory.Error, "You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001", "You cannot rename elements that are defined in the standard TypeScript library."), + import_can_only_be_used_in_TypeScript_files: t(8002, e.DiagnosticCategory.Error, "import_can_only_be_used_in_TypeScript_files_8002", "'import ... =' can only be used in TypeScript files."), + export_can_only_be_used_in_TypeScript_files: t(8003, e.DiagnosticCategory.Error, "export_can_only_be_used_in_TypeScript_files_8003", "'export =' can only be used in TypeScript files."), + Type_parameter_declarations_can_only_be_used_in_TypeScript_files: t(8004, e.DiagnosticCategory.Error, "Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004", "Type parameter declarations can only be used in TypeScript files."), + implements_clauses_can_only_be_used_in_TypeScript_files: t(8005, e.DiagnosticCategory.Error, "implements_clauses_can_only_be_used_in_TypeScript_files_8005", "'implements' clauses can only be used in TypeScript files."), + _0_declarations_can_only_be_used_in_TypeScript_files: t(8006, e.DiagnosticCategory.Error, "_0_declarations_can_only_be_used_in_TypeScript_files_8006", "'{0}' declarations can only be used in TypeScript files."), + Type_aliases_can_only_be_used_in_TypeScript_files: t(8008, e.DiagnosticCategory.Error, "Type_aliases_can_only_be_used_in_TypeScript_files_8008", "Type aliases can only be used in TypeScript files."), + The_0_modifier_can_only_be_used_in_TypeScript_files: t(8009, e.DiagnosticCategory.Error, "The_0_modifier_can_only_be_used_in_TypeScript_files_8009", "The '{0}' modifier can only be used in TypeScript files."), + Type_annotations_can_only_be_used_in_TypeScript_files: t(8010, e.DiagnosticCategory.Error, "Type_annotations_can_only_be_used_in_TypeScript_files_8010", "Type annotations can only be used in TypeScript files."), + Type_arguments_can_only_be_used_in_TypeScript_files: t(8011, e.DiagnosticCategory.Error, "Type_arguments_can_only_be_used_in_TypeScript_files_8011", "Type arguments can only be used in TypeScript files."), + Parameter_modifiers_can_only_be_used_in_TypeScript_files: t(8012, e.DiagnosticCategory.Error, "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012", "Parameter modifiers can only be used in TypeScript files."), + Non_null_assertions_can_only_be_used_in_TypeScript_files: t(8013, e.DiagnosticCategory.Error, "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013", "Non-null assertions can only be used in TypeScript files."), + Type_assertion_expressions_can_only_be_used_in_TypeScript_files: t(8016, e.DiagnosticCategory.Error, "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016", "Type assertion expressions can only be used in TypeScript files."), + Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0: t(8017, e.DiagnosticCategory.Error, "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017", "Octal literal types must use ES2015 syntax. Use the syntax '{0}'."), + Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0: t(8018, e.DiagnosticCategory.Error, "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018", "Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."), + Report_errors_in_js_files: t(8019, e.DiagnosticCategory.Message, "Report_errors_in_js_files_8019", "Report errors in .js files."), + JSDoc_types_can_only_be_used_inside_documentation_comments: t(8020, e.DiagnosticCategory.Error, "JSDoc_types_can_only_be_used_inside_documentation_comments_8020", "JSDoc types can only be used inside documentation comments."), + JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags: t(8021, e.DiagnosticCategory.Error, "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021", "JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."), + JSDoc_0_is_not_attached_to_a_class: t(8022, e.DiagnosticCategory.Error, "JSDoc_0_is_not_attached_to_a_class_8022", "JSDoc '@{0}' is not attached to a class."), + JSDoc_0_1_does_not_match_the_extends_2_clause: t(8023, e.DiagnosticCategory.Error, "JSDoc_0_1_does_not_match_the_extends_2_clause_8023", "JSDoc '@{0} {1}' does not match the 'extends {2}' clause."), + JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name: t(8024, e.DiagnosticCategory.Error, "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024", "JSDoc '@param' tag has name '{0}', but there is no parameter with that name."), + Class_declarations_cannot_have_more_than_one_augments_or_extends_tag: t(8025, e.DiagnosticCategory.Error, "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025", "Class declarations cannot have more than one '@augments' or '@extends' tag."), + Expected_0_type_arguments_provide_these_with_an_extends_tag: t(8026, e.DiagnosticCategory.Error, "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026", "Expected {0} type arguments; provide these with an '@extends' tag."), + Expected_0_1_type_arguments_provide_these_with_an_extends_tag: t(8027, e.DiagnosticCategory.Error, "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027", "Expected {0}-{1} type arguments; provide these with an '@extends' tag."), + JSDoc_may_only_appear_in_the_last_parameter_of_a_signature: t(8028, e.DiagnosticCategory.Error, "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028", "JSDoc '...' may only appear in the last parameter of a signature."), + JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type: t(8029, e.DiagnosticCategory.Error, "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029", "JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."), + The_type_of_a_function_declaration_must_match_the_function_s_signature: t(8030, e.DiagnosticCategory.Error, "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030", "The type of a function declaration must match the function's signature."), + You_cannot_rename_a_module_via_a_global_import: t(8031, e.DiagnosticCategory.Error, "You_cannot_rename_a_module_via_a_global_import_8031", "You cannot rename a module via a global import."), + Qualified_name_0_is_not_allowed_without_a_leading_param_object_1: t(8032, e.DiagnosticCategory.Error, "Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032", "Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."), + A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags: t(8033, e.DiagnosticCategory.Error, "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033", "A JSDoc '@typedef' comment may not contain multiple '@type' tags."), + The_tag_was_first_specified_here: t(8034, e.DiagnosticCategory.Error, "The_tag_was_first_specified_here_8034", "The tag was first specified here."), + You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder: t(8035, e.DiagnosticCategory.Error, "You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035", "You cannot rename elements that are defined in a 'node_modules' folder."), + You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder: t(8036, e.DiagnosticCategory.Error, "You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036", "You cannot rename elements that are defined in another 'node_modules' folder."), + Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files: t(8037, e.DiagnosticCategory.Error, "Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037", "Type satisfaction expressions can only be used in TypeScript files."), + Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit: t(9005, e.DiagnosticCategory.Error, "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005", "Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."), + Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit: t(9006, e.DiagnosticCategory.Error, "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006", "Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."), + JSX_attributes_must_only_be_assigned_a_non_empty_expression: t(17e3, e.DiagnosticCategory.Error, "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000", "JSX attributes must only be assigned a non-empty 'expression'."), + JSX_elements_cannot_have_multiple_attributes_with_the_same_name: t(17001, e.DiagnosticCategory.Error, "JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001", "JSX elements cannot have multiple attributes with the same name."), + Expected_corresponding_JSX_closing_tag_for_0: t(17002, e.DiagnosticCategory.Error, "Expected_corresponding_JSX_closing_tag_for_0_17002", "Expected corresponding JSX closing tag for '{0}'."), + Cannot_use_JSX_unless_the_jsx_flag_is_provided: t(17004, e.DiagnosticCategory.Error, "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004", "Cannot use JSX unless the '--jsx' flag is provided."), + A_constructor_cannot_contain_a_super_call_when_its_class_extends_null: t(17005, e.DiagnosticCategory.Error, "A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005", "A constructor cannot contain a 'super' call when its class extends 'null'."), + An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses: t(17006, e.DiagnosticCategory.Error, "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006", "An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."), + A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses: t(17007, e.DiagnosticCategory.Error, "A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007", "A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."), + JSX_element_0_has_no_corresponding_closing_tag: t(17008, e.DiagnosticCategory.Error, "JSX_element_0_has_no_corresponding_closing_tag_17008", "JSX element '{0}' has no corresponding closing tag."), + super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class: t(17009, e.DiagnosticCategory.Error, "super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009", "'super' must be called before accessing 'this' in the constructor of a derived class."), + Unknown_type_acquisition_option_0: t(17010, e.DiagnosticCategory.Error, "Unknown_type_acquisition_option_0_17010", "Unknown type acquisition option '{0}'."), + super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class: t(17011, e.DiagnosticCategory.Error, "super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011", "'super' must be called before accessing a property of 'super' in the constructor of a derived class."), + _0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2: t(17012, e.DiagnosticCategory.Error, "_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012", "'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"), + Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor: t(17013, e.DiagnosticCategory.Error, "Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013", "Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."), + JSX_fragment_has_no_corresponding_closing_tag: t(17014, e.DiagnosticCategory.Error, "JSX_fragment_has_no_corresponding_closing_tag_17014", "JSX fragment has no corresponding closing tag."), + Expected_corresponding_closing_tag_for_JSX_fragment: t(17015, e.DiagnosticCategory.Error, "Expected_corresponding_closing_tag_for_JSX_fragment_17015", "Expected corresponding closing tag for JSX fragment."), + The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option: t(17016, e.DiagnosticCategory.Error, "The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016", "The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."), + An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments: t(17017, e.DiagnosticCategory.Error, "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017", "An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."), + Unknown_type_acquisition_option_0_Did_you_mean_1: t(17018, e.DiagnosticCategory.Error, "Unknown_type_acquisition_option_0_Did_you_mean_1_17018", "Unknown type acquisition option '{0}'. Did you mean '{1}'?"), + Circularity_detected_while_resolving_configuration_Colon_0: t(18e3, e.DiagnosticCategory.Error, "Circularity_detected_while_resolving_configuration_Colon_0_18000", "Circularity detected while resolving configuration: {0}"), + The_files_list_in_config_file_0_is_empty: t(18002, e.DiagnosticCategory.Error, "The_files_list_in_config_file_0_is_empty_18002", "The 'files' list in config file '{0}' is empty."), + No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2: t(18003, e.DiagnosticCategory.Error, "No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003", "No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."), + File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module: t(80001, e.DiagnosticCategory.Suggestion, "File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001", "File is a CommonJS module; it may be converted to an ES module."), + This_constructor_function_may_be_converted_to_a_class_declaration: t(80002, e.DiagnosticCategory.Suggestion, "This_constructor_function_may_be_converted_to_a_class_declaration_80002", "This constructor function may be converted to a class declaration."), + Import_may_be_converted_to_a_default_import: t(80003, e.DiagnosticCategory.Suggestion, "Import_may_be_converted_to_a_default_import_80003", "Import may be converted to a default import."), + JSDoc_types_may_be_moved_to_TypeScript_types: t(80004, e.DiagnosticCategory.Suggestion, "JSDoc_types_may_be_moved_to_TypeScript_types_80004", "JSDoc types may be moved to TypeScript types."), + require_call_may_be_converted_to_an_import: t(80005, e.DiagnosticCategory.Suggestion, "require_call_may_be_converted_to_an_import_80005", "'require' call may be converted to an import."), + This_may_be_converted_to_an_async_function: t(80006, e.DiagnosticCategory.Suggestion, "This_may_be_converted_to_an_async_function_80006", "This may be converted to an async function."), + await_has_no_effect_on_the_type_of_this_expression: t(80007, e.DiagnosticCategory.Suggestion, "await_has_no_effect_on_the_type_of_this_expression_80007", "'await' has no effect on the type of this expression."), + Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers: t(80008, e.DiagnosticCategory.Suggestion, "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008", "Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."), + Add_missing_super_call: t(90001, e.DiagnosticCategory.Message, "Add_missing_super_call_90001", "Add missing 'super()' call"), + Make_super_call_the_first_statement_in_the_constructor: t(90002, e.DiagnosticCategory.Message, "Make_super_call_the_first_statement_in_the_constructor_90002", "Make 'super()' call the first statement in the constructor"), + Change_extends_to_implements: t(90003, e.DiagnosticCategory.Message, "Change_extends_to_implements_90003", "Change 'extends' to 'implements'"), + Remove_unused_declaration_for_Colon_0: t(90004, e.DiagnosticCategory.Message, "Remove_unused_declaration_for_Colon_0_90004", "Remove unused declaration for: '{0}'"), + Remove_import_from_0: t(90005, e.DiagnosticCategory.Message, "Remove_import_from_0_90005", "Remove import from '{0}'"), + Implement_interface_0: t(90006, e.DiagnosticCategory.Message, "Implement_interface_0_90006", "Implement interface '{0}'"), + Implement_inherited_abstract_class: t(90007, e.DiagnosticCategory.Message, "Implement_inherited_abstract_class_90007", "Implement inherited abstract class"), + Add_0_to_unresolved_variable: t(90008, e.DiagnosticCategory.Message, "Add_0_to_unresolved_variable_90008", "Add '{0}.' to unresolved variable"), + Remove_variable_statement: t(90010, e.DiagnosticCategory.Message, "Remove_variable_statement_90010", "Remove variable statement"), + Remove_template_tag: t(90011, e.DiagnosticCategory.Message, "Remove_template_tag_90011", "Remove template tag"), + Remove_type_parameters: t(90012, e.DiagnosticCategory.Message, "Remove_type_parameters_90012", "Remove type parameters"), + Import_0_from_1: t(90013, e.DiagnosticCategory.Message, "Import_0_from_1_90013", "Import '{0}' from \"{1}\""), + Change_0_to_1: t(90014, e.DiagnosticCategory.Message, "Change_0_to_1_90014", "Change '{0}' to '{1}'"), + Declare_property_0: t(90016, e.DiagnosticCategory.Message, "Declare_property_0_90016", "Declare property '{0}'"), + Add_index_signature_for_property_0: t(90017, e.DiagnosticCategory.Message, "Add_index_signature_for_property_0_90017", "Add index signature for property '{0}'"), + Disable_checking_for_this_file: t(90018, e.DiagnosticCategory.Message, "Disable_checking_for_this_file_90018", "Disable checking for this file"), + Ignore_this_error_message: t(90019, e.DiagnosticCategory.Message, "Ignore_this_error_message_90019", "Ignore this error message"), + Initialize_property_0_in_the_constructor: t(90020, e.DiagnosticCategory.Message, "Initialize_property_0_in_the_constructor_90020", "Initialize property '{0}' in the constructor"), + Initialize_static_property_0: t(90021, e.DiagnosticCategory.Message, "Initialize_static_property_0_90021", "Initialize static property '{0}'"), + Change_spelling_to_0: t(90022, e.DiagnosticCategory.Message, "Change_spelling_to_0_90022", "Change spelling to '{0}'"), + Declare_method_0: t(90023, e.DiagnosticCategory.Message, "Declare_method_0_90023", "Declare method '{0}'"), + Declare_static_method_0: t(90024, e.DiagnosticCategory.Message, "Declare_static_method_0_90024", "Declare static method '{0}'"), + Prefix_0_with_an_underscore: t(90025, e.DiagnosticCategory.Message, "Prefix_0_with_an_underscore_90025", "Prefix '{0}' with an underscore"), + Rewrite_as_the_indexed_access_type_0: t(90026, e.DiagnosticCategory.Message, "Rewrite_as_the_indexed_access_type_0_90026", "Rewrite as the indexed access type '{0}'"), + Declare_static_property_0: t(90027, e.DiagnosticCategory.Message, "Declare_static_property_0_90027", "Declare static property '{0}'"), + Call_decorator_expression: t(90028, e.DiagnosticCategory.Message, "Call_decorator_expression_90028", "Call decorator expression"), + Add_async_modifier_to_containing_function: t(90029, e.DiagnosticCategory.Message, "Add_async_modifier_to_containing_function_90029", "Add async modifier to containing function"), + Replace_infer_0_with_unknown: t(90030, e.DiagnosticCategory.Message, "Replace_infer_0_with_unknown_90030", "Replace 'infer {0}' with 'unknown'"), + Replace_all_unused_infer_with_unknown: t(90031, e.DiagnosticCategory.Message, "Replace_all_unused_infer_with_unknown_90031", "Replace all unused 'infer' with 'unknown'"), + Add_parameter_name: t(90034, e.DiagnosticCategory.Message, "Add_parameter_name_90034", "Add parameter name"), + Declare_private_property_0: t(90035, e.DiagnosticCategory.Message, "Declare_private_property_0_90035", "Declare private property '{0}'"), + Replace_0_with_Promise_1: t(90036, e.DiagnosticCategory.Message, "Replace_0_with_Promise_1_90036", "Replace '{0}' with 'Promise<{1}>'"), + Fix_all_incorrect_return_type_of_an_async_functions: t(90037, e.DiagnosticCategory.Message, "Fix_all_incorrect_return_type_of_an_async_functions_90037", "Fix all incorrect return type of an async functions"), + Declare_private_method_0: t(90038, e.DiagnosticCategory.Message, "Declare_private_method_0_90038", "Declare private method '{0}'"), + Remove_unused_destructuring_declaration: t(90039, e.DiagnosticCategory.Message, "Remove_unused_destructuring_declaration_90039", "Remove unused destructuring declaration"), + Remove_unused_declarations_for_Colon_0: t(90041, e.DiagnosticCategory.Message, "Remove_unused_declarations_for_Colon_0_90041", "Remove unused declarations for: '{0}'"), + Declare_a_private_field_named_0: t(90053, e.DiagnosticCategory.Message, "Declare_a_private_field_named_0_90053", "Declare a private field named '{0}'."), + Includes_imports_of_types_referenced_by_0: t(90054, e.DiagnosticCategory.Message, "Includes_imports_of_types_referenced_by_0_90054", "Includes imports of types referenced by '{0}'"), + Remove_type_from_import_declaration_from_0: t(90055, e.DiagnosticCategory.Message, "Remove_type_from_import_declaration_from_0_90055", "Remove 'type' from import declaration from \"{0}\""), + Remove_type_from_import_of_0_from_1: t(90056, e.DiagnosticCategory.Message, "Remove_type_from_import_of_0_from_1_90056", "Remove 'type' from import of '{0}' from \"{1}\""), + Add_import_from_0: t(90057, e.DiagnosticCategory.Message, "Add_import_from_0_90057", 'Add import from "{0}"'), + Update_import_from_0: t(90058, e.DiagnosticCategory.Message, "Update_import_from_0_90058", 'Update import from "{0}"'), + Export_0_from_module_1: t(90059, e.DiagnosticCategory.Message, "Export_0_from_module_1_90059", "Export '{0}' from module '{1}'"), + Export_all_referenced_locals: t(90060, e.DiagnosticCategory.Message, "Export_all_referenced_locals_90060", "Export all referenced locals"), + Convert_function_to_an_ES2015_class: t(95001, e.DiagnosticCategory.Message, "Convert_function_to_an_ES2015_class_95001", "Convert function to an ES2015 class"), + Convert_0_to_1_in_0: t(95003, e.DiagnosticCategory.Message, "Convert_0_to_1_in_0_95003", "Convert '{0}' to '{1} in {0}'"), + Extract_to_0_in_1: t(95004, e.DiagnosticCategory.Message, "Extract_to_0_in_1_95004", "Extract to {0} in {1}"), + Extract_function: t(95005, e.DiagnosticCategory.Message, "Extract_function_95005", "Extract function"), + Extract_constant: t(95006, e.DiagnosticCategory.Message, "Extract_constant_95006", "Extract constant"), + Extract_to_0_in_enclosing_scope: t(95007, e.DiagnosticCategory.Message, "Extract_to_0_in_enclosing_scope_95007", "Extract to {0} in enclosing scope"), + Extract_to_0_in_1_scope: t(95008, e.DiagnosticCategory.Message, "Extract_to_0_in_1_scope_95008", "Extract to {0} in {1} scope"), + Annotate_with_type_from_JSDoc: t(95009, e.DiagnosticCategory.Message, "Annotate_with_type_from_JSDoc_95009", "Annotate with type from JSDoc"), + Infer_type_of_0_from_usage: t(95011, e.DiagnosticCategory.Message, "Infer_type_of_0_from_usage_95011", "Infer type of '{0}' from usage"), + Infer_parameter_types_from_usage: t(95012, e.DiagnosticCategory.Message, "Infer_parameter_types_from_usage_95012", "Infer parameter types from usage"), + Convert_to_default_import: t(95013, e.DiagnosticCategory.Message, "Convert_to_default_import_95013", "Convert to default import"), + Install_0: t(95014, e.DiagnosticCategory.Message, "Install_0_95014", "Install '{0}'"), + Replace_import_with_0: t(95015, e.DiagnosticCategory.Message, "Replace_import_with_0_95015", "Replace import with '{0}'."), + Use_synthetic_default_member: t(95016, e.DiagnosticCategory.Message, "Use_synthetic_default_member_95016", "Use synthetic 'default' member."), + Convert_to_ES_module: t(95017, e.DiagnosticCategory.Message, "Convert_to_ES_module_95017", "Convert to ES module"), + Add_undefined_type_to_property_0: t(95018, e.DiagnosticCategory.Message, "Add_undefined_type_to_property_0_95018", "Add 'undefined' type to property '{0}'"), + Add_initializer_to_property_0: t(95019, e.DiagnosticCategory.Message, "Add_initializer_to_property_0_95019", "Add initializer to property '{0}'"), + Add_definite_assignment_assertion_to_property_0: t(95020, e.DiagnosticCategory.Message, "Add_definite_assignment_assertion_to_property_0_95020", "Add definite assignment assertion to property '{0}'"), + Convert_all_type_literals_to_mapped_type: t(95021, e.DiagnosticCategory.Message, "Convert_all_type_literals_to_mapped_type_95021", "Convert all type literals to mapped type"), + Add_all_missing_members: t(95022, e.DiagnosticCategory.Message, "Add_all_missing_members_95022", "Add all missing members"), + Infer_all_types_from_usage: t(95023, e.DiagnosticCategory.Message, "Infer_all_types_from_usage_95023", "Infer all types from usage"), + Delete_all_unused_declarations: t(95024, e.DiagnosticCategory.Message, "Delete_all_unused_declarations_95024", "Delete all unused declarations"), + Prefix_all_unused_declarations_with_where_possible: t(95025, e.DiagnosticCategory.Message, "Prefix_all_unused_declarations_with_where_possible_95025", "Prefix all unused declarations with '_' where possible"), + Fix_all_detected_spelling_errors: t(95026, e.DiagnosticCategory.Message, "Fix_all_detected_spelling_errors_95026", "Fix all detected spelling errors"), + Add_initializers_to_all_uninitialized_properties: t(95027, e.DiagnosticCategory.Message, "Add_initializers_to_all_uninitialized_properties_95027", "Add initializers to all uninitialized properties"), + Add_definite_assignment_assertions_to_all_uninitialized_properties: t(95028, e.DiagnosticCategory.Message, "Add_definite_assignment_assertions_to_all_uninitialized_properties_95028", "Add definite assignment assertions to all uninitialized properties"), + Add_undefined_type_to_all_uninitialized_properties: t(95029, e.DiagnosticCategory.Message, "Add_undefined_type_to_all_uninitialized_properties_95029", "Add undefined type to all uninitialized properties"), + Change_all_jsdoc_style_types_to_TypeScript: t(95030, e.DiagnosticCategory.Message, "Change_all_jsdoc_style_types_to_TypeScript_95030", "Change all jsdoc-style types to TypeScript"), + Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types: t(95031, e.DiagnosticCategory.Message, "Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031", "Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"), + Implement_all_unimplemented_interfaces: t(95032, e.DiagnosticCategory.Message, "Implement_all_unimplemented_interfaces_95032", "Implement all unimplemented interfaces"), + Install_all_missing_types_packages: t(95033, e.DiagnosticCategory.Message, "Install_all_missing_types_packages_95033", "Install all missing types packages"), + Rewrite_all_as_indexed_access_types: t(95034, e.DiagnosticCategory.Message, "Rewrite_all_as_indexed_access_types_95034", "Rewrite all as indexed access types"), + Convert_all_to_default_imports: t(95035, e.DiagnosticCategory.Message, "Convert_all_to_default_imports_95035", "Convert all to default imports"), + Make_all_super_calls_the_first_statement_in_their_constructor: t(95036, e.DiagnosticCategory.Message, "Make_all_super_calls_the_first_statement_in_their_constructor_95036", "Make all 'super()' calls the first statement in their constructor"), + Add_qualifier_to_all_unresolved_variables_matching_a_member_name: t(95037, e.DiagnosticCategory.Message, "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037", "Add qualifier to all unresolved variables matching a member name"), + Change_all_extended_interfaces_to_implements: t(95038, e.DiagnosticCategory.Message, "Change_all_extended_interfaces_to_implements_95038", "Change all extended interfaces to 'implements'"), + Add_all_missing_super_calls: t(95039, e.DiagnosticCategory.Message, "Add_all_missing_super_calls_95039", "Add all missing super calls"), + Implement_all_inherited_abstract_classes: t(95040, e.DiagnosticCategory.Message, "Implement_all_inherited_abstract_classes_95040", "Implement all inherited abstract classes"), + Add_all_missing_async_modifiers: t(95041, e.DiagnosticCategory.Message, "Add_all_missing_async_modifiers_95041", "Add all missing 'async' modifiers"), + Add_ts_ignore_to_all_error_messages: t(95042, e.DiagnosticCategory.Message, "Add_ts_ignore_to_all_error_messages_95042", "Add '@ts-ignore' to all error messages"), + Annotate_everything_with_types_from_JSDoc: t(95043, e.DiagnosticCategory.Message, "Annotate_everything_with_types_from_JSDoc_95043", "Annotate everything with types from JSDoc"), + Add_to_all_uncalled_decorators: t(95044, e.DiagnosticCategory.Message, "Add_to_all_uncalled_decorators_95044", "Add '()' to all uncalled decorators"), + Convert_all_constructor_functions_to_classes: t(95045, e.DiagnosticCategory.Message, "Convert_all_constructor_functions_to_classes_95045", "Convert all constructor functions to classes"), + Generate_get_and_set_accessors: t(95046, e.DiagnosticCategory.Message, "Generate_get_and_set_accessors_95046", "Generate 'get' and 'set' accessors"), + Convert_require_to_import: t(95047, e.DiagnosticCategory.Message, "Convert_require_to_import_95047", "Convert 'require' to 'import'"), + Convert_all_require_to_import: t(95048, e.DiagnosticCategory.Message, "Convert_all_require_to_import_95048", "Convert all 'require' to 'import'"), + Move_to_a_new_file: t(95049, e.DiagnosticCategory.Message, "Move_to_a_new_file_95049", "Move to a new file"), + Remove_unreachable_code: t(95050, e.DiagnosticCategory.Message, "Remove_unreachable_code_95050", "Remove unreachable code"), + Remove_all_unreachable_code: t(95051, e.DiagnosticCategory.Message, "Remove_all_unreachable_code_95051", "Remove all unreachable code"), + Add_missing_typeof: t(95052, e.DiagnosticCategory.Message, "Add_missing_typeof_95052", "Add missing 'typeof'"), + Remove_unused_label: t(95053, e.DiagnosticCategory.Message, "Remove_unused_label_95053", "Remove unused label"), + Remove_all_unused_labels: t(95054, e.DiagnosticCategory.Message, "Remove_all_unused_labels_95054", "Remove all unused labels"), + Convert_0_to_mapped_object_type: t(95055, e.DiagnosticCategory.Message, "Convert_0_to_mapped_object_type_95055", "Convert '{0}' to mapped object type"), + Convert_namespace_import_to_named_imports: t(95056, e.DiagnosticCategory.Message, "Convert_namespace_import_to_named_imports_95056", "Convert namespace import to named imports"), + Convert_named_imports_to_namespace_import: t(95057, e.DiagnosticCategory.Message, "Convert_named_imports_to_namespace_import_95057", "Convert named imports to namespace import"), + Add_or_remove_braces_in_an_arrow_function: t(95058, e.DiagnosticCategory.Message, "Add_or_remove_braces_in_an_arrow_function_95058", "Add or remove braces in an arrow function"), + Add_braces_to_arrow_function: t(95059, e.DiagnosticCategory.Message, "Add_braces_to_arrow_function_95059", "Add braces to arrow function"), + Remove_braces_from_arrow_function: t(95060, e.DiagnosticCategory.Message, "Remove_braces_from_arrow_function_95060", "Remove braces from arrow function"), + Convert_default_export_to_named_export: t(95061, e.DiagnosticCategory.Message, "Convert_default_export_to_named_export_95061", "Convert default export to named export"), + Convert_named_export_to_default_export: t(95062, e.DiagnosticCategory.Message, "Convert_named_export_to_default_export_95062", "Convert named export to default export"), + Add_missing_enum_member_0: t(95063, e.DiagnosticCategory.Message, "Add_missing_enum_member_0_95063", "Add missing enum member '{0}'"), + Add_all_missing_imports: t(95064, e.DiagnosticCategory.Message, "Add_all_missing_imports_95064", "Add all missing imports"), + Convert_to_async_function: t(95065, e.DiagnosticCategory.Message, "Convert_to_async_function_95065", "Convert to async function"), + Convert_all_to_async_functions: t(95066, e.DiagnosticCategory.Message, "Convert_all_to_async_functions_95066", "Convert all to async functions"), + Add_missing_call_parentheses: t(95067, e.DiagnosticCategory.Message, "Add_missing_call_parentheses_95067", "Add missing call parentheses"), + Add_all_missing_call_parentheses: t(95068, e.DiagnosticCategory.Message, "Add_all_missing_call_parentheses_95068", "Add all missing call parentheses"), + Add_unknown_conversion_for_non_overlapping_types: t(95069, e.DiagnosticCategory.Message, "Add_unknown_conversion_for_non_overlapping_types_95069", "Add 'unknown' conversion for non-overlapping types"), + Add_unknown_to_all_conversions_of_non_overlapping_types: t(95070, e.DiagnosticCategory.Message, "Add_unknown_to_all_conversions_of_non_overlapping_types_95070", "Add 'unknown' to all conversions of non-overlapping types"), + Add_missing_new_operator_to_call: t(95071, e.DiagnosticCategory.Message, "Add_missing_new_operator_to_call_95071", "Add missing 'new' operator to call"), + Add_missing_new_operator_to_all_calls: t(95072, e.DiagnosticCategory.Message, "Add_missing_new_operator_to_all_calls_95072", "Add missing 'new' operator to all calls"), + Add_names_to_all_parameters_without_names: t(95073, e.DiagnosticCategory.Message, "Add_names_to_all_parameters_without_names_95073", "Add names to all parameters without names"), + Enable_the_experimentalDecorators_option_in_your_configuration_file: t(95074, e.DiagnosticCategory.Message, "Enable_the_experimentalDecorators_option_in_your_configuration_file_95074", "Enable the 'experimentalDecorators' option in your configuration file"), + Convert_parameters_to_destructured_object: t(95075, e.DiagnosticCategory.Message, "Convert_parameters_to_destructured_object_95075", "Convert parameters to destructured object"), + Extract_type: t(95077, e.DiagnosticCategory.Message, "Extract_type_95077", "Extract type"), + Extract_to_type_alias: t(95078, e.DiagnosticCategory.Message, "Extract_to_type_alias_95078", "Extract to type alias"), + Extract_to_typedef: t(95079, e.DiagnosticCategory.Message, "Extract_to_typedef_95079", "Extract to typedef"), + Infer_this_type_of_0_from_usage: t(95080, e.DiagnosticCategory.Message, "Infer_this_type_of_0_from_usage_95080", "Infer 'this' type of '{0}' from usage"), + Add_const_to_unresolved_variable: t(95081, e.DiagnosticCategory.Message, "Add_const_to_unresolved_variable_95081", "Add 'const' to unresolved variable"), + Add_const_to_all_unresolved_variables: t(95082, e.DiagnosticCategory.Message, "Add_const_to_all_unresolved_variables_95082", "Add 'const' to all unresolved variables"), + Add_await: t(95083, e.DiagnosticCategory.Message, "Add_await_95083", "Add 'await'"), + Add_await_to_initializer_for_0: t(95084, e.DiagnosticCategory.Message, "Add_await_to_initializer_for_0_95084", "Add 'await' to initializer for '{0}'"), + Fix_all_expressions_possibly_missing_await: t(95085, e.DiagnosticCategory.Message, "Fix_all_expressions_possibly_missing_await_95085", "Fix all expressions possibly missing 'await'"), + Remove_unnecessary_await: t(95086, e.DiagnosticCategory.Message, "Remove_unnecessary_await_95086", "Remove unnecessary 'await'"), + Remove_all_unnecessary_uses_of_await: t(95087, e.DiagnosticCategory.Message, "Remove_all_unnecessary_uses_of_await_95087", "Remove all unnecessary uses of 'await'"), + Enable_the_jsx_flag_in_your_configuration_file: t(95088, e.DiagnosticCategory.Message, "Enable_the_jsx_flag_in_your_configuration_file_95088", "Enable the '--jsx' flag in your configuration file"), + Add_await_to_initializers: t(95089, e.DiagnosticCategory.Message, "Add_await_to_initializers_95089", "Add 'await' to initializers"), + Extract_to_interface: t(95090, e.DiagnosticCategory.Message, "Extract_to_interface_95090", "Extract to interface"), + Convert_to_a_bigint_numeric_literal: t(95091, e.DiagnosticCategory.Message, "Convert_to_a_bigint_numeric_literal_95091", "Convert to a bigint numeric literal"), + Convert_all_to_bigint_numeric_literals: t(95092, e.DiagnosticCategory.Message, "Convert_all_to_bigint_numeric_literals_95092", "Convert all to bigint numeric literals"), + Convert_const_to_let: t(95093, e.DiagnosticCategory.Message, "Convert_const_to_let_95093", "Convert 'const' to 'let'"), + Prefix_with_declare: t(95094, e.DiagnosticCategory.Message, "Prefix_with_declare_95094", "Prefix with 'declare'"), + Prefix_all_incorrect_property_declarations_with_declare: t(95095, e.DiagnosticCategory.Message, "Prefix_all_incorrect_property_declarations_with_declare_95095", "Prefix all incorrect property declarations with 'declare'"), + Convert_to_template_string: t(95096, e.DiagnosticCategory.Message, "Convert_to_template_string_95096", "Convert to template string"), + Add_export_to_make_this_file_into_a_module: t(95097, e.DiagnosticCategory.Message, "Add_export_to_make_this_file_into_a_module_95097", "Add 'export {}' to make this file into a module"), + Set_the_target_option_in_your_configuration_file_to_0: t(95098, e.DiagnosticCategory.Message, "Set_the_target_option_in_your_configuration_file_to_0_95098", "Set the 'target' option in your configuration file to '{0}'"), + Set_the_module_option_in_your_configuration_file_to_0: t(95099, e.DiagnosticCategory.Message, "Set_the_module_option_in_your_configuration_file_to_0_95099", "Set the 'module' option in your configuration file to '{0}'"), + Convert_invalid_character_to_its_html_entity_code: t(95100, e.DiagnosticCategory.Message, "Convert_invalid_character_to_its_html_entity_code_95100", "Convert invalid character to its html entity code"), + Convert_all_invalid_characters_to_HTML_entity_code: t(95101, e.DiagnosticCategory.Message, "Convert_all_invalid_characters_to_HTML_entity_code_95101", "Convert all invalid characters to HTML entity code"), + Convert_all_const_to_let: t(95102, e.DiagnosticCategory.Message, "Convert_all_const_to_let_95102", "Convert all 'const' to 'let'"), + Convert_function_expression_0_to_arrow_function: t(95105, e.DiagnosticCategory.Message, "Convert_function_expression_0_to_arrow_function_95105", "Convert function expression '{0}' to arrow function"), + Convert_function_declaration_0_to_arrow_function: t(95106, e.DiagnosticCategory.Message, "Convert_function_declaration_0_to_arrow_function_95106", "Convert function declaration '{0}' to arrow function"), + Fix_all_implicit_this_errors: t(95107, e.DiagnosticCategory.Message, "Fix_all_implicit_this_errors_95107", "Fix all implicit-'this' errors"), + Wrap_invalid_character_in_an_expression_container: t(95108, e.DiagnosticCategory.Message, "Wrap_invalid_character_in_an_expression_container_95108", "Wrap invalid character in an expression container"), + Wrap_all_invalid_characters_in_an_expression_container: t(95109, e.DiagnosticCategory.Message, "Wrap_all_invalid_characters_in_an_expression_container_95109", "Wrap all invalid characters in an expression container"), + Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file: t(95110, e.DiagnosticCategory.Message, "Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110", "Visit https://aka.ms/tsconfig to read more about this file"), + Add_a_return_statement: t(95111, e.DiagnosticCategory.Message, "Add_a_return_statement_95111", "Add a return statement"), + Remove_braces_from_arrow_function_body: t(95112, e.DiagnosticCategory.Message, "Remove_braces_from_arrow_function_body_95112", "Remove braces from arrow function body"), + Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal: t(95113, e.DiagnosticCategory.Message, "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113", "Wrap the following body with parentheses which should be an object literal"), + Add_all_missing_return_statement: t(95114, e.DiagnosticCategory.Message, "Add_all_missing_return_statement_95114", "Add all missing return statement"), + Remove_braces_from_all_arrow_function_bodies_with_relevant_issues: t(95115, e.DiagnosticCategory.Message, "Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115", "Remove braces from all arrow function bodies with relevant issues"), + Wrap_all_object_literal_with_parentheses: t(95116, e.DiagnosticCategory.Message, "Wrap_all_object_literal_with_parentheses_95116", "Wrap all object literal with parentheses"), + Move_labeled_tuple_element_modifiers_to_labels: t(95117, e.DiagnosticCategory.Message, "Move_labeled_tuple_element_modifiers_to_labels_95117", "Move labeled tuple element modifiers to labels"), + Convert_overload_list_to_single_signature: t(95118, e.DiagnosticCategory.Message, "Convert_overload_list_to_single_signature_95118", "Convert overload list to single signature"), + Generate_get_and_set_accessors_for_all_overriding_properties: t(95119, e.DiagnosticCategory.Message, "Generate_get_and_set_accessors_for_all_overriding_properties_95119", "Generate 'get' and 'set' accessors for all overriding properties"), + Wrap_in_JSX_fragment: t(95120, e.DiagnosticCategory.Message, "Wrap_in_JSX_fragment_95120", "Wrap in JSX fragment"), + Wrap_all_unparented_JSX_in_JSX_fragment: t(95121, e.DiagnosticCategory.Message, "Wrap_all_unparented_JSX_in_JSX_fragment_95121", "Wrap all unparented JSX in JSX fragment"), + Convert_arrow_function_or_function_expression: t(95122, e.DiagnosticCategory.Message, "Convert_arrow_function_or_function_expression_95122", "Convert arrow function or function expression"), + Convert_to_anonymous_function: t(95123, e.DiagnosticCategory.Message, "Convert_to_anonymous_function_95123", "Convert to anonymous function"), + Convert_to_named_function: t(95124, e.DiagnosticCategory.Message, "Convert_to_named_function_95124", "Convert to named function"), + Convert_to_arrow_function: t(95125, e.DiagnosticCategory.Message, "Convert_to_arrow_function_95125", "Convert to arrow function"), + Remove_parentheses: t(95126, e.DiagnosticCategory.Message, "Remove_parentheses_95126", "Remove parentheses"), + Could_not_find_a_containing_arrow_function: t(95127, e.DiagnosticCategory.Message, "Could_not_find_a_containing_arrow_function_95127", "Could not find a containing arrow function"), + Containing_function_is_not_an_arrow_function: t(95128, e.DiagnosticCategory.Message, "Containing_function_is_not_an_arrow_function_95128", "Containing function is not an arrow function"), + Could_not_find_export_statement: t(95129, e.DiagnosticCategory.Message, "Could_not_find_export_statement_95129", "Could not find export statement"), + This_file_already_has_a_default_export: t(95130, e.DiagnosticCategory.Message, "This_file_already_has_a_default_export_95130", "This file already has a default export"), + Could_not_find_import_clause: t(95131, e.DiagnosticCategory.Message, "Could_not_find_import_clause_95131", "Could not find import clause"), + Could_not_find_namespace_import_or_named_imports: t(95132, e.DiagnosticCategory.Message, "Could_not_find_namespace_import_or_named_imports_95132", "Could not find namespace import or named imports"), + Selection_is_not_a_valid_type_node: t(95133, e.DiagnosticCategory.Message, "Selection_is_not_a_valid_type_node_95133", "Selection is not a valid type node"), + No_type_could_be_extracted_from_this_type_node: t(95134, e.DiagnosticCategory.Message, "No_type_could_be_extracted_from_this_type_node_95134", "No type could be extracted from this type node"), + Could_not_find_property_for_which_to_generate_accessor: t(95135, e.DiagnosticCategory.Message, "Could_not_find_property_for_which_to_generate_accessor_95135", "Could not find property for which to generate accessor"), + Name_is_not_valid: t(95136, e.DiagnosticCategory.Message, "Name_is_not_valid_95136", "Name is not valid"), + Can_only_convert_property_with_modifier: t(95137, e.DiagnosticCategory.Message, "Can_only_convert_property_with_modifier_95137", "Can only convert property with modifier"), + Switch_each_misused_0_to_1: t(95138, e.DiagnosticCategory.Message, "Switch_each_misused_0_to_1_95138", "Switch each misused '{0}' to '{1}'"), + Convert_to_optional_chain_expression: t(95139, e.DiagnosticCategory.Message, "Convert_to_optional_chain_expression_95139", "Convert to optional chain expression"), + Could_not_find_convertible_access_expression: t(95140, e.DiagnosticCategory.Message, "Could_not_find_convertible_access_expression_95140", "Could not find convertible access expression"), + Could_not_find_matching_access_expressions: t(95141, e.DiagnosticCategory.Message, "Could_not_find_matching_access_expressions_95141", "Could not find matching access expressions"), + Can_only_convert_logical_AND_access_chains: t(95142, e.DiagnosticCategory.Message, "Can_only_convert_logical_AND_access_chains_95142", "Can only convert logical AND access chains"), + Add_void_to_Promise_resolved_without_a_value: t(95143, e.DiagnosticCategory.Message, "Add_void_to_Promise_resolved_without_a_value_95143", "Add 'void' to Promise resolved without a value"), + Add_void_to_all_Promises_resolved_without_a_value: t(95144, e.DiagnosticCategory.Message, "Add_void_to_all_Promises_resolved_without_a_value_95144", "Add 'void' to all Promises resolved without a value"), + Use_element_access_for_0: t(95145, e.DiagnosticCategory.Message, "Use_element_access_for_0_95145", "Use element access for '{0}'"), + Use_element_access_for_all_undeclared_properties: t(95146, e.DiagnosticCategory.Message, "Use_element_access_for_all_undeclared_properties_95146", "Use element access for all undeclared properties."), + Delete_all_unused_imports: t(95147, e.DiagnosticCategory.Message, "Delete_all_unused_imports_95147", "Delete all unused imports"), + Infer_function_return_type: t(95148, e.DiagnosticCategory.Message, "Infer_function_return_type_95148", "Infer function return type"), + Return_type_must_be_inferred_from_a_function: t(95149, e.DiagnosticCategory.Message, "Return_type_must_be_inferred_from_a_function_95149", "Return type must be inferred from a function"), + Could_not_determine_function_return_type: t(95150, e.DiagnosticCategory.Message, "Could_not_determine_function_return_type_95150", "Could not determine function return type"), + Could_not_convert_to_arrow_function: t(95151, e.DiagnosticCategory.Message, "Could_not_convert_to_arrow_function_95151", "Could not convert to arrow function"), + Could_not_convert_to_named_function: t(95152, e.DiagnosticCategory.Message, "Could_not_convert_to_named_function_95152", "Could not convert to named function"), + Could_not_convert_to_anonymous_function: t(95153, e.DiagnosticCategory.Message, "Could_not_convert_to_anonymous_function_95153", "Could not convert to anonymous function"), + Can_only_convert_string_concatenation: t(95154, e.DiagnosticCategory.Message, "Can_only_convert_string_concatenation_95154", "Can only convert string concatenation"), + Selection_is_not_a_valid_statement_or_statements: t(95155, e.DiagnosticCategory.Message, "Selection_is_not_a_valid_statement_or_statements_95155", "Selection is not a valid statement or statements"), + Add_missing_function_declaration_0: t(95156, e.DiagnosticCategory.Message, "Add_missing_function_declaration_0_95156", "Add missing function declaration '{0}'"), + Add_all_missing_function_declarations: t(95157, e.DiagnosticCategory.Message, "Add_all_missing_function_declarations_95157", "Add all missing function declarations"), + Method_not_implemented: t(95158, e.DiagnosticCategory.Message, "Method_not_implemented_95158", "Method not implemented."), + Function_not_implemented: t(95159, e.DiagnosticCategory.Message, "Function_not_implemented_95159", "Function not implemented."), + Add_override_modifier: t(95160, e.DiagnosticCategory.Message, "Add_override_modifier_95160", "Add 'override' modifier"), + Remove_override_modifier: t(95161, e.DiagnosticCategory.Message, "Remove_override_modifier_95161", "Remove 'override' modifier"), + Add_all_missing_override_modifiers: t(95162, e.DiagnosticCategory.Message, "Add_all_missing_override_modifiers_95162", "Add all missing 'override' modifiers"), + Remove_all_unnecessary_override_modifiers: t(95163, e.DiagnosticCategory.Message, "Remove_all_unnecessary_override_modifiers_95163", "Remove all unnecessary 'override' modifiers"), + Can_only_convert_named_export: t(95164, e.DiagnosticCategory.Message, "Can_only_convert_named_export_95164", "Can only convert named export"), + Add_missing_properties: t(95165, e.DiagnosticCategory.Message, "Add_missing_properties_95165", "Add missing properties"), + Add_all_missing_properties: t(95166, e.DiagnosticCategory.Message, "Add_all_missing_properties_95166", "Add all missing properties"), + Add_missing_attributes: t(95167, e.DiagnosticCategory.Message, "Add_missing_attributes_95167", "Add missing attributes"), + Add_all_missing_attributes: t(95168, e.DiagnosticCategory.Message, "Add_all_missing_attributes_95168", "Add all missing attributes"), + Add_undefined_to_optional_property_type: t(95169, e.DiagnosticCategory.Message, "Add_undefined_to_optional_property_type_95169", "Add 'undefined' to optional property type"), + Convert_named_imports_to_default_import: t(95170, e.DiagnosticCategory.Message, "Convert_named_imports_to_default_import_95170", "Convert named imports to default import"), + Delete_unused_param_tag_0: t(95171, e.DiagnosticCategory.Message, "Delete_unused_param_tag_0_95171", "Delete unused '@param' tag '{0}'"), + Delete_all_unused_param_tags: t(95172, e.DiagnosticCategory.Message, "Delete_all_unused_param_tags_95172", "Delete all unused '@param' tags"), + Rename_param_tag_name_0_to_1: t(95173, e.DiagnosticCategory.Message, "Rename_param_tag_name_0_to_1_95173", "Rename '@param' tag name '{0}' to '{1}'"), + Use_0: t(95174, e.DiagnosticCategory.Message, "Use_0_95174", "Use `{0}`."), + Use_Number_isNaN_in_all_conditions: t(95175, e.DiagnosticCategory.Message, "Use_Number_isNaN_in_all_conditions_95175", "Use `Number.isNaN` in all conditions."), + No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: t(18004, e.DiagnosticCategory.Error, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."), + Classes_may_not_have_a_field_named_constructor: t(18006, e.DiagnosticCategory.Error, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."), + JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: t(18007, e.DiagnosticCategory.Error, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"), + Private_identifiers_cannot_be_used_as_parameters: t(18009, e.DiagnosticCategory.Error, "Private_identifiers_cannot_be_used_as_parameters_18009", "Private identifiers cannot be used as parameters."), + An_accessibility_modifier_cannot_be_used_with_a_private_identifier: t(18010, e.DiagnosticCategory.Error, "An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010", "An accessibility modifier cannot be used with a private identifier."), + The_operand_of_a_delete_operator_cannot_be_a_private_identifier: t(18011, e.DiagnosticCategory.Error, "The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011", "The operand of a 'delete' operator cannot be a private identifier."), + constructor_is_a_reserved_word: t(18012, e.DiagnosticCategory.Error, "constructor_is_a_reserved_word_18012", "'#constructor' is a reserved word."), + Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier: t(18013, e.DiagnosticCategory.Error, "Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013", "Property '{0}' is not accessible outside class '{1}' because it has a private identifier."), + The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling: t(18014, e.DiagnosticCategory.Error, "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014", "The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."), + Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2: t(18015, e.DiagnosticCategory.Error, "Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015", "Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."), + Private_identifiers_are_not_allowed_outside_class_bodies: t(18016, e.DiagnosticCategory.Error, "Private_identifiers_are_not_allowed_outside_class_bodies_18016", "Private identifiers are not allowed outside class bodies."), + The_shadowing_declaration_of_0_is_defined_here: t(18017, e.DiagnosticCategory.Error, "The_shadowing_declaration_of_0_is_defined_here_18017", "The shadowing declaration of '{0}' is defined here"), + The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here: t(18018, e.DiagnosticCategory.Error, "The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018", "The declaration of '{0}' that you probably intended to use is defined here"), + _0_modifier_cannot_be_used_with_a_private_identifier: t(18019, e.DiagnosticCategory.Error, "_0_modifier_cannot_be_used_with_a_private_identifier_18019", "'{0}' modifier cannot be used with a private identifier."), + An_enum_member_cannot_be_named_with_a_private_identifier: t(18024, e.DiagnosticCategory.Error, "An_enum_member_cannot_be_named_with_a_private_identifier_18024", "An enum member cannot be named with a private identifier."), + can_only_be_used_at_the_start_of_a_file: t(18026, e.DiagnosticCategory.Error, "can_only_be_used_at_the_start_of_a_file_18026", "'#!' can only be used at the start of a file."), + Compiler_reserves_name_0_when_emitting_private_identifier_downlevel: t(18027, e.DiagnosticCategory.Error, "Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027", "Compiler reserves name '{0}' when emitting private identifier downlevel."), + Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher: t(18028, e.DiagnosticCategory.Error, "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028", "Private identifiers are only available when targeting ECMAScript 2015 and higher."), + Private_identifiers_are_not_allowed_in_variable_declarations: t(18029, e.DiagnosticCategory.Error, "Private_identifiers_are_not_allowed_in_variable_declarations_18029", "Private identifiers are not allowed in variable declarations."), + An_optional_chain_cannot_contain_private_identifiers: t(18030, e.DiagnosticCategory.Error, "An_optional_chain_cannot_contain_private_identifiers_18030", "An optional chain cannot contain private identifiers."), + The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents: t(18031, e.DiagnosticCategory.Error, "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031", "The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."), + The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some: t(18032, e.DiagnosticCategory.Error, "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032", "The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."), + Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead: t(18033, e.DiagnosticCategory.Error, "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033", "Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."), + Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment: t(18034, e.DiagnosticCategory.Message, "Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034", "Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."), + Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name: t(18035, e.DiagnosticCategory.Error, "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035", "Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."), + Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator: t(18036, e.DiagnosticCategory.Error, "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036", "Class decorators can't be used with static private identifier. Consider removing the experimental decorator."), + Await_expression_cannot_be_used_inside_a_class_static_block: t(18037, e.DiagnosticCategory.Error, "Await_expression_cannot_be_used_inside_a_class_static_block_18037", "Await expression cannot be used inside a class static block."), + For_await_loops_cannot_be_used_inside_a_class_static_block: t(18038, e.DiagnosticCategory.Error, "For_await_loops_cannot_be_used_inside_a_class_static_block_18038", "'For await' loops cannot be used inside a class static block."), + Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block: t(18039, e.DiagnosticCategory.Error, "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039", "Invalid use of '{0}'. It cannot be used inside a class static block."), + A_return_statement_cannot_be_used_inside_a_class_static_block: t(18041, e.DiagnosticCategory.Error, "A_return_statement_cannot_be_used_inside_a_class_static_block_18041", "A 'return' statement cannot be used inside a class static block."), + _0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation: t(18042, e.DiagnosticCategory.Error, "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042", "'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."), + Types_cannot_appear_in_export_declarations_in_JavaScript_files: t(18043, e.DiagnosticCategory.Error, "Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043", "Types cannot appear in export declarations in JavaScript files."), + _0_is_automatically_exported_here: t(18044, e.DiagnosticCategory.Message, "_0_is_automatically_exported_here_18044", "'{0}' is automatically exported here."), + Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher: t(18045, e.DiagnosticCategory.Error, "Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045", "Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."), + _0_is_of_type_unknown: t(18046, e.DiagnosticCategory.Error, "_0_is_of_type_unknown_18046", "'{0}' is of type 'unknown'."), + _0_is_possibly_null: t(18047, e.DiagnosticCategory.Error, "_0_is_possibly_null_18047", "'{0}' is possibly 'null'."), + _0_is_possibly_undefined: t(18048, e.DiagnosticCategory.Error, "_0_is_possibly_undefined_18048", "'{0}' is possibly 'undefined'."), + _0_is_possibly_null_or_undefined: t(18049, e.DiagnosticCategory.Error, "_0_is_possibly_null_or_undefined_18049", "'{0}' is possibly 'null' or 'undefined'."), + The_value_0_cannot_be_used_here: t(18050, e.DiagnosticCategory.Error, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here.") + } + }(ts = ts || {}), ! function(V) { + var e; + + function t(e) { + return 79 <= e + } + V.tokenIsIdentifierOrKeyword = t, V.tokenIsIdentifierOrKeywordOrGreaterThan = function(e) { + return 31 === e || 79 <= e + }, V.textToKeywordObj = ((e = { + abstract: 126, + accessor: 127, + any: 131, + as: 128, + asserts: 129, + assert: 130, + bigint: 160, + boolean: 134, + break: 81, + case: 82, + catch: 83, + class: 84, + continue: 86, + const: 85 + }).constructor = 135, e.debugger = 87, e.declare = 136, e.default = 88, e.delete = 89, e.do = 90, e.else = 91, e.enum = 92, e.export = 93, e.extends = 94, e.false = 95, e.finally = 96, e.for = 97, e.from = 158, e.function = 98, e.get = 137, e.if = 99, e.implements = 117, e.import = 100, e.in = 101, e.infer = 138, e.instanceof = 102, e.interface = 118, e.intrinsic = 139, e.is = 140, e.keyof = 141, e.let = 119, e.module = 142, e.namespace = 143, e.never = 144, e.new = 103, e.null = 104, e.number = 148, e.object = 149, e.package = 120, e.private = 121, e.protected = 122, e.public = 123, e.override = 161, e.out = 145, e.readonly = 146, e.require = 147, e.global = 159, e.return = 105, e.satisfies = 150, e.set = 151, e.static = 124, e.string = 152, e.super = 106, e.switch = 107, e.symbol = 153, e.this = 108, e.throw = 109, e.true = 110, e.try = 111, e.type = 154, e.typeof = 112, e.undefined = 155, e.unique = 156, e.unknown = 157, e.var = 113, e.void = 114, e.while = 115, e.with = 116, e.yield = 125, e.async = 132, e.await = 133, e.of = 162, e); + var q = new V.Map(V.getEntries(V.textToKeywordObj)), + r = new V.Map(V.getEntries(__assign(__assign({}, V.textToKeywordObj), { + "{": 18, + "}": 19, + "(": 20, + ")": 21, + "[": 22, + "]": 23, + ".": 24, + "...": 25, + ";": 26, + ",": 27, + "<": 29, + ">": 31, + "<=": 32, + ">=": 33, + "==": 34, + "!=": 35, + "===": 36, + "!==": 37, + "=>": 38, + "+": 39, + "-": 40, + "**": 42, + "*": 41, + "/": 43, + "%": 44, + "++": 45, + "--": 46, + "<<": 47, + ">": 48, + ">>>": 49, + "&": 50, + "|": 51, + "^": 52, + "!": 53, + "~": 54, + "&&": 55, + "||": 56, + "?": 57, + "??": 60, + "?.": 28, + ":": 58, + "=": 63, + "+=": 64, + "-=": 65, + "*=": 66, + "**=": 67, + "/=": 68, + "%=": 69, + "<<=": 70, + ">>=": 71, + ">>>=": 72, + "&=": 73, + "|=": 74, + "^=": 78, + "||=": 75, + "&&=": 76, + "??=": 77, + "@": 59, + "#": 62, + "`": 61 + }))), + n = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 543, 546, 563, 592, 685, 688, 696, 699, 705, 720, 721, 736, 740, 750, 750, 890, 890, 902, 902, 904, 906, 908, 908, 910, 929, 931, 974, 976, 983, 986, 1011, 1024, 1153, 1164, 1220, 1223, 1224, 1227, 1228, 1232, 1269, 1272, 1273, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1569, 1594, 1600, 1610, 1649, 1747, 1749, 1749, 1765, 1766, 1786, 1788, 1808, 1808, 1810, 1836, 1920, 1957, 2309, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2699, 2701, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2784, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2870, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 2997, 2999, 3001, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3294, 3294, 3296, 3297, 3333, 3340, 3342, 3344, 3346, 3368, 3370, 3385, 3424, 3425, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3805, 3840, 3840, 3904, 3911, 3913, 3946, 3976, 3979, 4096, 4129, 4131, 4135, 4137, 4138, 4176, 4181, 4256, 4293, 4304, 4342, 4352, 4441, 4447, 4514, 4520, 4601, 4608, 4614, 4616, 4678, 4680, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4742, 4744, 4744, 4746, 4749, 4752, 4782, 4784, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4814, 4816, 4822, 4824, 4846, 4848, 4878, 4880, 4880, 4882, 4885, 4888, 4894, 4896, 4934, 4936, 4954, 5024, 5108, 5121, 5740, 5743, 5750, 5761, 5786, 5792, 5866, 6016, 6067, 6176, 6263, 6272, 6312, 7680, 7835, 7840, 7929, 7936, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8319, 8319, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8497, 8499, 8505, 8544, 8579, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12346, 12353, 12436, 12445, 12446, 12449, 12538, 12540, 12542, 12549, 12588, 12593, 12686, 12704, 12727, 13312, 19893, 19968, 40869, 40960, 42124, 44032, 55203, 63744, 64045, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65138, 65140, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500], + h = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 543, 546, 563, 592, 685, 688, 696, 699, 705, 720, 721, 736, 740, 750, 750, 768, 846, 864, 866, 890, 890, 902, 902, 904, 906, 908, 908, 910, 929, 931, 974, 976, 983, 986, 1011, 1024, 1153, 1155, 1158, 1164, 1220, 1223, 1224, 1227, 1228, 1232, 1269, 1272, 1273, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1441, 1443, 1465, 1467, 1469, 1471, 1471, 1473, 1474, 1476, 1476, 1488, 1514, 1520, 1522, 1569, 1594, 1600, 1621, 1632, 1641, 1648, 1747, 1749, 1756, 1759, 1768, 1770, 1773, 1776, 1788, 1808, 1836, 1840, 1866, 1920, 1968, 2305, 2307, 2309, 2361, 2364, 2381, 2384, 2388, 2392, 2403, 2406, 2415, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2492, 2494, 2500, 2503, 2504, 2507, 2509, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2562, 2562, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2649, 2652, 2654, 2654, 2662, 2676, 2689, 2691, 2693, 2699, 2701, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2784, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2870, 2873, 2876, 2883, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2913, 2918, 2927, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 2997, 2999, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3031, 3031, 3047, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3134, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3168, 3169, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3262, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3297, 3302, 3311, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3368, 3370, 3385, 3390, 3395, 3398, 3400, 3402, 3405, 3415, 3415, 3424, 3425, 3430, 3439, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3805, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3946, 3953, 3972, 3974, 3979, 3984, 3991, 3993, 4028, 4038, 4038, 4096, 4129, 4131, 4135, 4137, 4138, 4140, 4146, 4150, 4153, 4160, 4169, 4176, 4185, 4256, 4293, 4304, 4342, 4352, 4441, 4447, 4514, 4520, 4601, 4608, 4614, 4616, 4678, 4680, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4742, 4744, 4744, 4746, 4749, 4752, 4782, 4784, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4814, 4816, 4822, 4824, 4846, 4848, 4878, 4880, 4880, 4882, 4885, 4888, 4894, 4896, 4934, 4936, 4954, 4969, 4977, 5024, 5108, 5121, 5740, 5743, 5750, 5761, 5786, 5792, 5866, 6016, 6099, 6112, 6121, 6160, 6169, 6176, 6263, 6272, 6313, 7680, 7835, 7840, 7929, 7936, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8255, 8256, 8319, 8319, 8400, 8412, 8417, 8417, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8497, 8499, 8505, 8544, 8579, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12346, 12353, 12436, 12441, 12442, 12445, 12446, 12449, 12542, 12549, 12588, 12593, 12686, 12704, 12727, 13312, 19893, 19968, 40869, 40960, 42124, 44032, 55203, 63744, 64045, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65056, 65059, 65075, 65076, 65101, 65103, 65136, 65138, 65140, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65381, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500], + b = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1568, 1610, 1646, 1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774, 1775, 1786, 1788, 1791, 1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969, 1969, 1994, 2026, 2036, 2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084, 2084, 2088, 2088, 2112, 2136, 2208, 2208, 2210, 2220, 2308, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2417, 2423, 2425, 2431, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2493, 2493, 2510, 2510, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2785, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929, 2929, 2947, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3133, 3160, 3161, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3261, 3261, 3294, 3294, 3296, 3297, 3313, 3314, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3389, 3406, 3406, 3424, 3425, 3450, 3455, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096, 4138, 4159, 4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206, 4208, 4213, 4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5905, 5920, 5937, 5952, 5969, 5984, 5996, 5998, 6e3, 6016, 6067, 6103, 6103, 6108, 6108, 6176, 6263, 6272, 6312, 6314, 6314, 6320, 6389, 6400, 6428, 6480, 6509, 6512, 6516, 6528, 6571, 6593, 6599, 6656, 6678, 6688, 6740, 6823, 6823, 6917, 6963, 6981, 6987, 7043, 7072, 7086, 7087, 7098, 7141, 7168, 7203, 7245, 7247, 7258, 7293, 7401, 7404, 7406, 7409, 7413, 7414, 7424, 7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11823, 11823, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12348, 12353, 12438, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560, 42606, 42623, 42647, 42656, 42735, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43e3, 43009, 43011, 43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250, 43255, 43259, 43259, 43274, 43301, 43312, 43334, 43360, 43388, 43396, 43442, 43471, 43471, 43520, 43560, 43584, 43586, 43588, 43595, 43616, 43638, 43642, 43642, 43648, 43695, 43697, 43697, 43701, 43702, 43705, 43709, 43712, 43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762, 43764, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44002, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500], + x = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 768, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1155, 1159, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1469, 1471, 1471, 1473, 1474, 1476, 1477, 1479, 1479, 1488, 1514, 1520, 1522, 1552, 1562, 1568, 1641, 1646, 1747, 1749, 1756, 1759, 1768, 1770, 1788, 1791, 1791, 1808, 1866, 1869, 1969, 1984, 2037, 2042, 2042, 2048, 2093, 2112, 2139, 2208, 2208, 2210, 2220, 2276, 2302, 2304, 2403, 2406, 2415, 2417, 2423, 2425, 2431, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2500, 2503, 2504, 2507, 2510, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2561, 2563, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662, 2677, 2689, 2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2787, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2915, 2918, 2927, 2929, 2929, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3024, 3024, 3031, 3031, 3046, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3161, 3168, 3171, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3299, 3302, 3311, 3313, 3314, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3396, 3398, 3400, 3402, 3406, 3415, 3415, 3424, 3427, 3430, 3439, 3450, 3455, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3807, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3948, 3953, 3972, 3974, 3991, 3993, 4028, 4038, 4038, 4096, 4169, 4176, 4253, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4957, 4959, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5908, 5920, 5940, 5952, 5971, 5984, 5996, 5998, 6e3, 6002, 6003, 6016, 6099, 6103, 6103, 6108, 6109, 6112, 6121, 6155, 6157, 6160, 6169, 6176, 6263, 6272, 6314, 6320, 6389, 6400, 6428, 6432, 6443, 6448, 6459, 6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608, 6617, 6656, 6683, 6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823, 6823, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232, 7241, 7245, 7293, 7376, 7378, 7380, 7414, 7424, 7654, 7676, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8204, 8205, 8255, 8256, 8276, 8276, 8305, 8305, 8319, 8319, 8336, 8348, 8400, 8412, 8417, 8417, 8421, 8432, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11647, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11744, 11775, 11823, 11823, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12442, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621, 42623, 42647, 42655, 42737, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43e3, 43047, 43072, 43123, 43136, 43204, 43216, 43225, 43232, 43255, 43259, 43259, 43264, 43309, 43312, 43347, 43360, 43388, 43392, 43456, 43471, 43481, 43520, 43574, 43584, 43597, 43600, 43609, 43616, 43638, 43642, 43643, 43648, 43714, 43739, 43741, 43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44010, 44012, 44013, 44016, 44025, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65024, 65039, 65056, 65062, 65075, 65076, 65101, 65103, 65136, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500], + D = [65, 90, 97, 122, 170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890, 893, 895, 895, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1162, 1327, 1329, 1366, 1369, 1369, 1376, 1416, 1488, 1514, 1519, 1522, 1568, 1610, 1646, 1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774, 1775, 1786, 1788, 1791, 1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969, 1969, 1994, 2026, 2036, 2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084, 2084, 2088, 2088, 2112, 2136, 2144, 2154, 2208, 2228, 2230, 2237, 2308, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2417, 2432, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2493, 2493, 2510, 2510, 2524, 2525, 2527, 2529, 2544, 2545, 2556, 2556, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2785, 2809, 2809, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929, 2929, 2947, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3129, 3133, 3133, 3160, 3162, 3168, 3169, 3200, 3200, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3261, 3261, 3294, 3294, 3296, 3297, 3313, 3314, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3389, 3406, 3406, 3412, 3414, 3423, 3425, 3450, 3455, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3718, 3722, 3724, 3747, 3749, 3749, 3751, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096, 4138, 4159, 4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206, 4208, 4213, 4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024, 5109, 5112, 5117, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5880, 5888, 5900, 5902, 5905, 5920, 5937, 5952, 5969, 5984, 5996, 5998, 6e3, 6016, 6067, 6103, 6103, 6108, 6108, 6176, 6264, 6272, 6312, 6314, 6314, 6320, 6389, 6400, 6430, 6480, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6656, 6678, 6688, 6740, 6823, 6823, 6917, 6963, 6981, 6987, 7043, 7072, 7086, 7087, 7098, 7141, 7168, 7203, 7245, 7247, 7258, 7293, 7296, 7304, 7312, 7354, 7357, 7359, 7401, 7404, 7406, 7411, 7413, 7414, 7418, 7418, 7424, 7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8472, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12348, 12353, 12438, 12443, 12447, 12449, 12538, 12540, 12543, 12549, 12591, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40943, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560, 42606, 42623, 42653, 42656, 42735, 42775, 42783, 42786, 42888, 42891, 42943, 42946, 42950, 42999, 43009, 43011, 43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250, 43255, 43259, 43259, 43261, 43262, 43274, 43301, 43312, 43334, 43360, 43388, 43396, 43442, 43471, 43471, 43488, 43492, 43494, 43503, 43514, 43518, 43520, 43560, 43584, 43586, 43588, 43595, 43616, 43638, 43642, 43642, 43646, 43695, 43697, 43697, 43701, 43702, 43705, 43709, 43712, 43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762, 43764, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43824, 43866, 43868, 43879, 43888, 44002, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65536, 65547, 65549, 65574, 65576, 65594, 65596, 65597, 65599, 65613, 65616, 65629, 65664, 65786, 65856, 65908, 66176, 66204, 66208, 66256, 66304, 66335, 66349, 66378, 66384, 66421, 66432, 66461, 66464, 66499, 66504, 66511, 66513, 66517, 66560, 66717, 66736, 66771, 66776, 66811, 66816, 66855, 66864, 66915, 67072, 67382, 67392, 67413, 67424, 67431, 67584, 67589, 67592, 67592, 67594, 67637, 67639, 67640, 67644, 67644, 67647, 67669, 67680, 67702, 67712, 67742, 67808, 67826, 67828, 67829, 67840, 67861, 67872, 67897, 67968, 68023, 68030, 68031, 68096, 68096, 68112, 68115, 68117, 68119, 68121, 68149, 68192, 68220, 68224, 68252, 68288, 68295, 68297, 68324, 68352, 68405, 68416, 68437, 68448, 68466, 68480, 68497, 68608, 68680, 68736, 68786, 68800, 68850, 68864, 68899, 69376, 69404, 69415, 69415, 69424, 69445, 69600, 69622, 69635, 69687, 69763, 69807, 69840, 69864, 69891, 69926, 69956, 69956, 69968, 70002, 70006, 70006, 70019, 70066, 70081, 70084, 70106, 70106, 70108, 70108, 70144, 70161, 70163, 70187, 70272, 70278, 70280, 70280, 70282, 70285, 70287, 70301, 70303, 70312, 70320, 70366, 70405, 70412, 70415, 70416, 70419, 70440, 70442, 70448, 70450, 70451, 70453, 70457, 70461, 70461, 70480, 70480, 70493, 70497, 70656, 70708, 70727, 70730, 70751, 70751, 70784, 70831, 70852, 70853, 70855, 70855, 71040, 71086, 71128, 71131, 71168, 71215, 71236, 71236, 71296, 71338, 71352, 71352, 71424, 71450, 71680, 71723, 71840, 71903, 71935, 71935, 72096, 72103, 72106, 72144, 72161, 72161, 72163, 72163, 72192, 72192, 72203, 72242, 72250, 72250, 72272, 72272, 72284, 72329, 72349, 72349, 72384, 72440, 72704, 72712, 72714, 72750, 72768, 72768, 72818, 72847, 72960, 72966, 72968, 72969, 72971, 73008, 73030, 73030, 73056, 73061, 73063, 73064, 73066, 73097, 73112, 73112, 73440, 73458, 73728, 74649, 74752, 74862, 74880, 75075, 77824, 78894, 82944, 83526, 92160, 92728, 92736, 92766, 92880, 92909, 92928, 92975, 92992, 92995, 93027, 93047, 93053, 93071, 93760, 93823, 93952, 94026, 94032, 94032, 94099, 94111, 94176, 94177, 94179, 94179, 94208, 100343, 100352, 101106, 110592, 110878, 110928, 110930, 110948, 110951, 110960, 111355, 113664, 113770, 113776, 113788, 113792, 113800, 113808, 113817, 119808, 119892, 119894, 119964, 119966, 119967, 119970, 119970, 119973, 119974, 119977, 119980, 119982, 119993, 119995, 119995, 119997, 120003, 120005, 120069, 120071, 120074, 120077, 120084, 120086, 120092, 120094, 120121, 120123, 120126, 120128, 120132, 120134, 120134, 120138, 120144, 120146, 120485, 120488, 120512, 120514, 120538, 120540, 120570, 120572, 120596, 120598, 120628, 120630, 120654, 120656, 120686, 120688, 120712, 120714, 120744, 120746, 120770, 120772, 120779, 123136, 123180, 123191, 123197, 123214, 123214, 123584, 123627, 124928, 125124, 125184, 125251, 125259, 125259, 126464, 126467, 126469, 126495, 126497, 126498, 126500, 126500, 126503, 126503, 126505, 126514, 126516, 126519, 126521, 126521, 126523, 126523, 126530, 126530, 126535, 126535, 126537, 126537, 126539, 126539, 126541, 126543, 126545, 126546, 126548, 126548, 126551, 126551, 126553, 126553, 126555, 126555, 126557, 126557, 126559, 126559, 126561, 126562, 126564, 126564, 126567, 126570, 126572, 126578, 126580, 126583, 126585, 126588, 126590, 126590, 126592, 126601, 126603, 126619, 126625, 126627, 126629, 126633, 126635, 126651, 131072, 173782, 173824, 177972, 177984, 178205, 178208, 183969, 183984, 191456, 194560, 195101], + S = [48, 57, 65, 90, 95, 95, 97, 122, 170, 170, 181, 181, 183, 183, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 768, 884, 886, 887, 890, 893, 895, 895, 902, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1155, 1159, 1162, 1327, 1329, 1366, 1369, 1369, 1376, 1416, 1425, 1469, 1471, 1471, 1473, 1474, 1476, 1477, 1479, 1479, 1488, 1514, 1519, 1522, 1552, 1562, 1568, 1641, 1646, 1747, 1749, 1756, 1759, 1768, 1770, 1788, 1791, 1791, 1808, 1866, 1869, 1969, 1984, 2037, 2042, 2042, 2045, 2045, 2048, 2093, 2112, 2139, 2144, 2154, 2208, 2228, 2230, 2237, 2259, 2273, 2275, 2403, 2406, 2415, 2417, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2500, 2503, 2504, 2507, 2510, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2556, 2556, 2558, 2558, 2561, 2563, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662, 2677, 2689, 2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2787, 2790, 2799, 2809, 2815, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2915, 2918, 2927, 2929, 2929, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3024, 3024, 3031, 3031, 3046, 3055, 3072, 3084, 3086, 3088, 3090, 3112, 3114, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3162, 3168, 3171, 3174, 3183, 3200, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3299, 3302, 3311, 3313, 3314, 3328, 3331, 3333, 3340, 3342, 3344, 3346, 3396, 3398, 3400, 3402, 3406, 3412, 3415, 3423, 3427, 3430, 3439, 3450, 3455, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3558, 3567, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3718, 3722, 3724, 3747, 3749, 3749, 3751, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3807, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3948, 3953, 3972, 3974, 3991, 3993, 4028, 4038, 4038, 4096, 4169, 4176, 4253, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4957, 4959, 4969, 4977, 4992, 5007, 5024, 5109, 5112, 5117, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5880, 5888, 5900, 5902, 5908, 5920, 5940, 5952, 5971, 5984, 5996, 5998, 6e3, 6002, 6003, 6016, 6099, 6103, 6103, 6108, 6109, 6112, 6121, 6155, 6157, 6160, 6169, 6176, 6264, 6272, 6314, 6320, 6389, 6400, 6430, 6432, 6443, 6448, 6459, 6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608, 6618, 6656, 6683, 6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823, 6823, 6832, 6845, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232, 7241, 7245, 7293, 7296, 7304, 7312, 7354, 7357, 7359, 7376, 7378, 7380, 7418, 7424, 7673, 7675, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8255, 8256, 8276, 8276, 8305, 8305, 8319, 8319, 8336, 8348, 8400, 8412, 8417, 8417, 8421, 8432, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8472, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11647, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11744, 11775, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12447, 12449, 12538, 12540, 12543, 12549, 12591, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40943, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621, 42623, 42737, 42775, 42783, 42786, 42888, 42891, 42943, 42946, 42950, 42999, 43047, 43072, 43123, 43136, 43205, 43216, 43225, 43232, 43255, 43259, 43259, 43261, 43309, 43312, 43347, 43360, 43388, 43392, 43456, 43471, 43481, 43488, 43518, 43520, 43574, 43584, 43597, 43600, 43609, 43616, 43638, 43642, 43714, 43739, 43741, 43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43824, 43866, 43868, 43879, 43888, 44010, 44012, 44013, 44016, 44025, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65024, 65039, 65056, 65071, 65075, 65076, 65101, 65103, 65136, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65536, 65547, 65549, 65574, 65576, 65594, 65596, 65597, 65599, 65613, 65616, 65629, 65664, 65786, 65856, 65908, 66045, 66045, 66176, 66204, 66208, 66256, 66272, 66272, 66304, 66335, 66349, 66378, 66384, 66426, 66432, 66461, 66464, 66499, 66504, 66511, 66513, 66517, 66560, 66717, 66720, 66729, 66736, 66771, 66776, 66811, 66816, 66855, 66864, 66915, 67072, 67382, 67392, 67413, 67424, 67431, 67584, 67589, 67592, 67592, 67594, 67637, 67639, 67640, 67644, 67644, 67647, 67669, 67680, 67702, 67712, 67742, 67808, 67826, 67828, 67829, 67840, 67861, 67872, 67897, 67968, 68023, 68030, 68031, 68096, 68099, 68101, 68102, 68108, 68115, 68117, 68119, 68121, 68149, 68152, 68154, 68159, 68159, 68192, 68220, 68224, 68252, 68288, 68295, 68297, 68326, 68352, 68405, 68416, 68437, 68448, 68466, 68480, 68497, 68608, 68680, 68736, 68786, 68800, 68850, 68864, 68903, 68912, 68921, 69376, 69404, 69415, 69415, 69424, 69456, 69600, 69622, 69632, 69702, 69734, 69743, 69759, 69818, 69840, 69864, 69872, 69881, 69888, 69940, 69942, 69951, 69956, 69958, 69968, 70003, 70006, 70006, 70016, 70084, 70089, 70092, 70096, 70106, 70108, 70108, 70144, 70161, 70163, 70199, 70206, 70206, 70272, 70278, 70280, 70280, 70282, 70285, 70287, 70301, 70303, 70312, 70320, 70378, 70384, 70393, 70400, 70403, 70405, 70412, 70415, 70416, 70419, 70440, 70442, 70448, 70450, 70451, 70453, 70457, 70459, 70468, 70471, 70472, 70475, 70477, 70480, 70480, 70487, 70487, 70493, 70499, 70502, 70508, 70512, 70516, 70656, 70730, 70736, 70745, 70750, 70751, 70784, 70853, 70855, 70855, 70864, 70873, 71040, 71093, 71096, 71104, 71128, 71133, 71168, 71232, 71236, 71236, 71248, 71257, 71296, 71352, 71360, 71369, 71424, 71450, 71453, 71467, 71472, 71481, 71680, 71738, 71840, 71913, 71935, 71935, 72096, 72103, 72106, 72151, 72154, 72161, 72163, 72164, 72192, 72254, 72263, 72263, 72272, 72345, 72349, 72349, 72384, 72440, 72704, 72712, 72714, 72758, 72760, 72768, 72784, 72793, 72818, 72847, 72850, 72871, 72873, 72886, 72960, 72966, 72968, 72969, 72971, 73014, 73018, 73018, 73020, 73021, 73023, 73031, 73040, 73049, 73056, 73061, 73063, 73064, 73066, 73102, 73104, 73105, 73107, 73112, 73120, 73129, 73440, 73462, 73728, 74649, 74752, 74862, 74880, 75075, 77824, 78894, 82944, 83526, 92160, 92728, 92736, 92766, 92768, 92777, 92880, 92909, 92912, 92916, 92928, 92982, 92992, 92995, 93008, 93017, 93027, 93047, 93053, 93071, 93760, 93823, 93952, 94026, 94031, 94087, 94095, 94111, 94176, 94177, 94179, 94179, 94208, 100343, 100352, 101106, 110592, 110878, 110928, 110930, 110948, 110951, 110960, 111355, 113664, 113770, 113776, 113788, 113792, 113800, 113808, 113817, 113821, 113822, 119141, 119145, 119149, 119154, 119163, 119170, 119173, 119179, 119210, 119213, 119362, 119364, 119808, 119892, 119894, 119964, 119966, 119967, 119970, 119970, 119973, 119974, 119977, 119980, 119982, 119993, 119995, 119995, 119997, 120003, 120005, 120069, 120071, 120074, 120077, 120084, 120086, 120092, 120094, 120121, 120123, 120126, 120128, 120132, 120134, 120134, 120138, 120144, 120146, 120485, 120488, 120512, 120514, 120538, 120540, 120570, 120572, 120596, 120598, 120628, 120630, 120654, 120656, 120686, 120688, 120712, 120714, 120744, 120746, 120770, 120772, 120779, 120782, 120831, 121344, 121398, 121403, 121452, 121461, 121461, 121476, 121476, 121499, 121503, 121505, 121519, 122880, 122886, 122888, 122904, 122907, 122913, 122915, 122916, 122918, 122922, 123136, 123180, 123184, 123197, 123200, 123209, 123214, 123214, 123584, 123641, 124928, 125124, 125136, 125142, 125184, 125259, 125264, 125273, 126464, 126467, 126469, 126495, 126497, 126498, 126500, 126500, 126503, 126503, 126505, 126514, 126516, 126519, 126521, 126521, 126523, 126523, 126530, 126530, 126535, 126535, 126537, 126537, 126539, 126539, 126541, 126543, 126545, 126546, 126548, 126548, 126551, 126551, 126553, 126553, 126555, 126555, 126557, 126557, 126559, 126559, 126561, 126562, 126564, 126564, 126567, 126570, 126572, 126578, 126580, 126583, 126585, 126588, 126590, 126590, 126592, 126601, 126603, 126619, 126625, 126627, 126629, 126633, 126635, 126651, 131072, 173782, 173824, 177972, 177984, 178205, 178208, 183969, 183984, 191456, 194560, 195101, 917760, 917999], + se = /^\/\/\/?\s*@(ts-expect-error|ts-ignore)/, + ce = /^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/; + + function i(e, t) { + if (!(e < t[0])) + for (var r, n = 0, i = t.length; n + 1 < i;) { + if (r = n + (i - n) / 2, t[r -= r % 2] <= e && e <= t[1 + r]) return !0; + e < t[r] ? i = r : n = 2 + r + } + return !1 + } + + function a(e, t) { + return i(e, 2 <= t ? D : 1 === t ? b : n) + } + V.isUnicodeIdentifierStart = a; + o = [], r.forEach(function(e, t) { + o[e] = t + }); + var o, T = o; + + function s(e) { + for (var t = [], r = 0, n = 0; r < e.length;) { + var i = e.charCodeAt(r); + switch (r++, i) { + case 13: + 10 === e.charCodeAt(r) && r++; + case 10: + t.push(n), n = r; + break; + default: + 127 < i && G(i) && (t.push(n), n = r) + } + } + return t.push(n), t + } + + function c(e, t, r, n, i) { + (t < 0 || t >= e.length) && (i ? t = t < 0 ? 0 : t >= e.length ? e.length - 1 : t : V.Debug.fail("Bad line number. Line: ".concat(t, ", lineStarts.length: ").concat(e.length, " , line map is correct? ").concat(void 0 !== n ? V.arraysEqual(e, s(n)) : "unknown"))); + r = e[t] + r; + return i ? r > e[t + 1] ? e[t + 1] : "string" == typeof n && r > n.length ? n.length : r : (t < e.length - 1 ? V.Debug.assert(r < e[t + 1]) : void 0 !== n && V.Debug.assert(r <= n.length), r) + } + + function l(e) { + return e.lineMap || (e.lineMap = s(e.text)) + } + + function u(e, t) { + var r = _(e, t); + return { + line: r, + character: t - e[r] + } + } + + function _(e, t, r) { + e = V.binarySearch(e, t, V.identity, V.compareValues, r); + return e < 0 && V.Debug.assert(-1 !== (e = ~e - 1), "position cannot precede the beginning of the file"), e + } + + function W(e) { + return H(e) || G(e) + } + + function H(e) { + return 32 === e || 9 === e || 11 === e || 12 === e || 160 === e || 133 === e || 5760 === e || 8192 <= e && e <= 8203 || 8239 === e || 8287 === e || 12288 === e || 65279 === e + } + + function G(e) { + return 10 === e || 13 === e || 8232 === e || 8233 === e + } + + function Q(e) { + return 48 <= e && e <= 57 + } + + function X(e) { + return Q(e) || 65 <= e && e <= 70 || 97 <= e && e <= 102 + } + + function Y(e) { + return 48 <= e && e <= 55 + } + V.tokenToString = function(e) { + return T[e] + }, V.stringToToken = function(e) { + return r.get(e) + }, V.computeLineStarts = s, V.getPositionOfLineAndCharacter = function(e, t, r, n) { + return e.getPositionOfLineAndCharacter ? e.getPositionOfLineAndCharacter(t, r, n) : c(l(e), t, r, e.text, n) + }, V.computePositionOfLineAndCharacter = c, V.getLineStarts = l, V.computeLineAndCharacterOfPosition = u, V.computeLineOfPosition = _, V.getLinesBetweenPositions = function(e, t, r) { + var n, i; + return t === r ? 0 : (e = l(e), t = (n = (i = Math.min(t, r)) === r) ? t : r, r = _(e, i), i = _(e, t, r), n ? r - i : i - r) + }, V.getLineAndCharacterOfPosition = function(e, t) { + return u(l(e), t) + }, V.isWhiteSpaceLike = W, V.isWhiteSpaceSingleLine = H, V.isLineBreak = G, V.isOctalDigit = Y, V.couldStartTrivia = function(e, t) { + var r = e.charCodeAt(t); + switch (r) { + case 13: + case 10: + case 9: + case 11: + case 12: + case 32: + case 47: + case 60: + case 124: + case 61: + case 62: + return !0; + case 35: + return 0 === t; + default: + return 127 < r + } + }, V.skipTrivia = function(e, t, r, n, i) { + if (V.positionIsSynthesized(t)) return t; + for (var a = !1;;) { + var o = e.charCodeAt(t); + switch (o) { + case 13: + 10 === e.charCodeAt(t + 1) && t++; + case 10: + if (t++, r) return t; + a = !!i; + continue; + case 9: + case 11: + case 12: + case 32: + t++; + continue; + case 47: + if (n) break; + if (47 === e.charCodeAt(t + 1)) { + for (t += 2; t < e.length && !G(e.charCodeAt(t));) t++; + a = !1; + continue + } + if (42 !== e.charCodeAt(t + 1)) break; + for (t += 2; t < e.length;) { + if (42 === e.charCodeAt(t) && 47 === e.charCodeAt(t + 1)) { + t += 2; + break + } + t++ + } + a = !1; + continue; + case 60: + case 124: + case 61: + case 62: + if (Z(e, t)) { + t = $(e, t), a = !1; + continue + } + break; + case 35: + if (0 === t && ee(e, t)) { + t = te(e, t), a = !1; + continue + } + break; + case 42: + if (a) { + t++, a = !1; + continue + } + break; + default: + if (127 < o && W(o)) { + t++; + continue + } + } + return t + } + }; + var d = "<<<<<<<".length; + + function Z(e, t) { + if (V.Debug.assert(0 <= t), 0 === t || G(e.charCodeAt(t - 1))) { + var r = e.charCodeAt(t); + if (t + d < e.length) { + for (var n = 0; n < d; n++) + if (e.charCodeAt(t + n) !== r) return; + return 61 === r || 32 === e.charCodeAt(t + d) + } + } + } + + function $(e, t, r) { + r && r(V.Diagnostics.Merge_conflict_marker_encountered, t, d); + var n = e.charCodeAt(t), + i = e.length; + if (60 === n || 62 === n) + for (; t < i && !G(e.charCodeAt(t));) t++; + else + for (V.Debug.assert(124 === n || 61 === n); t < i;) { + var a = e.charCodeAt(t); + if ((61 === a || 62 === a) && a !== n && Z(e, t)) break; + t++ + } + return t + } + var p = /^#!.*/; + + function ee(e, t) { + return V.Debug.assert(0 === t), p.test(e) + } + + function te(e, t) { + return t += p.exec(e)[0].length + } + + function f(e, t, r, n, i, a, o) { + var s, c, l, u, _ = !1, + d = n, + p = o; + 0 === r && (d = !0, o = v(t)) && (r = o.length); + e: for (; 0 <= r && r < t.length;) { + var f = t.charCodeAt(r); + switch (f) { + case 13: + 10 === t.charCodeAt(r + 1) && r++; + case 10: + if (r++, n) break e; + d = !0, _ && (u = !0); + continue; + case 9: + case 11: + case 12: + case 32: + r++; + continue; + case 47: + var g = t.charCodeAt(r + 1), + m = !1; + if (47 !== g && 42 !== g) break e; + var y = 47 === g ? 2 : 3, + h = r; + if (r += 2, 47 === g) + for (; r < t.length;) { + if (G(t.charCodeAt(r))) { + m = !0; + break + } + r++ + } else + for (; r < t.length;) { + if (42 === t.charCodeAt(r) && 47 === t.charCodeAt(r + 1)) { + r += 2; + break + } + r++ + } + if (d) { + if (_ && (p = i(s, c, l, u, a, p), !e) && p) return p; + s = h, c = r, l = y, u = m, _ = !0 + } + continue; + default: + if (127 < f && W(f)) { + _ && G(f) && (u = !0), r++; + continue + } + break e + } + } + return p = _ ? i(s, c, l, u, a, p) : p + } + + function g(e, t, r, n, i) { + return f(!0, e, t, !1, r, n, i) + } + + function m(e, t, r, n, i) { + return f(!0, e, t, !0, r, n, i) + } + + function y(e, t, r, n, i, a) { + return (a = a || []).push({ + kind: r, + pos: e, + end: t, + hasTrailingNewLine: n + }), a + } + + function v(e) { + e = p.exec(e); + if (e) return e[0] + } + + function re(e, t) { + return 65 <= e && e <= 90 || 97 <= e && e <= 122 || 36 === e || 95 === e || 127 < e && a(e, t) + } + + function ne(e, t, r) { + return 65 <= e && e <= 90 || 97 <= e && e <= 122 || 48 <= e && e <= 57 || 36 === e || 95 === e || 1 === r && (45 === e || 58 === e) || 127 < e && i(e, 2 <= (r = t) ? S : 1 === r ? x : h) + } + V.isShebangTrivia = ee, V.scanShebangTrivia = te, V.forEachLeadingCommentRange = function(e, t, r, n) { + return f(!1, e, t, !1, r, n) + }, V.forEachTrailingCommentRange = function(e, t, r, n) { + return f(!1, e, t, !0, r, n) + }, V.reduceEachLeadingCommentRange = g, V.reduceEachTrailingCommentRange = m, V.getLeadingCommentRanges = function(e, t) { + return g(e, t, y, void 0, void 0) + }, V.getTrailingCommentRanges = function(e, t) { + return m(e, t, y, void 0, void 0) + }, V.getShebang = v, V.isIdentifierStart = re, V.isIdentifierPart = ne, V.isIdentifierText = function(e, t, r) { + var n = ie(e, 0); + if (!re(n, t)) return !1; + for (var i = ae(n); i < e.length; i += ae(n)) + if (!ne(n = ie(e, i), t, r)) return !1; + return !0 + }, V.createScanner = function(l, u, _, a, i, R, B) { + void 0 === _ && (_ = 0); + var d, p, f, g, m, y, h, v, b = a, + x = 0, + t = (L(b, R, B), { + getStartPos: function() { + return f + }, + getTextPos: function() { + return d + }, + getToken: function() { + return m + }, + getTokenPos: function() { + return g + }, + getTokenText: function() { + return b.substring(g, d) + }, + getTokenValue: function() { + return y + }, + hasUnicodeEscape: function() { + return 0 != (1024 & h) + }, + hasExtendedUnicodeEscape: function() { + return 0 != (8 & h) + }, + hasPrecedingLineBreak: function() { + return 0 != (1 & h) + }, + hasPrecedingJSDocComment: function() { + return 0 != (2 & h) + }, + isIdentifier: function() { + return 79 === m || 116 < m + }, + isReservedWord: function() { + return 81 <= m && m <= 116 + }, + isUnterminated: function() { + return 0 != (4 & h) + }, + getCommentDirectives: function() { + return v + }, + getNumericLiteralFlags: function() { + return 1008 & h + }, + getTokenFlags: function() { + return h + }, + reScanGreaterToken: function() { + if (31 === m) { + if (62 === b.charCodeAt(d)) return m = 62 === b.charCodeAt(d + 1) ? 61 === b.charCodeAt(d + 2) ? (d += 3, 72) : (d += 2, 49) : 61 === b.charCodeAt(d + 1) ? (d += 2, 71) : (d++, 48); + if (61 === b.charCodeAt(d)) return d++, m = 33 + } + return m + }, + reScanAsteriskEqualsToken: function() { + return V.Debug.assert(66 === m, "'reScanAsteriskEqualsToken' should only be called on a '*='"), d = g + 1, m = 63 + }, + reScanSlashToken: function() { + if (43 === m || 68 === m) { + for (var e = g + 1, t = !1, r = !1;;) { + if (p <= e) { + h |= 4, D(V.Diagnostics.Unterminated_regular_expression_literal); + break + } + var n = b.charCodeAt(e); + if (G(n)) { + h |= 4, D(V.Diagnostics.Unterminated_regular_expression_literal); + break + } + if (t) t = !1; + else { + if (47 === n && !r) { + e++; + break + } + 91 === n ? r = !0 : 92 === n ? t = !0 : 93 === n && (r = !1) + } + e++ + } + for (; e < p && ne(b.charCodeAt(e), l);) e++; + d = e, y = b.substring(g, d), m = 13 + } + return m + }, + reScanTemplateToken: function(e) { + return V.Debug.assert(19 === m, "'reScanTemplateToken' should only be called on a '}'"), d = g, m = k(e) + }, + reScanTemplateHeadOrNoSubstitutionTemplate: function() { + return d = g, m = k(!0) + }, + scanJsxIdentifier: function() { + if (79 <= m) { + for (var e = !1; d < p;) { + var t = b.charCodeAt(d); + if (45 === t) y += "-", d++; + else if (58 !== t || e) { + t = d; + if (y += P(), d === t) break + } else y += ":", d++, e = !0, m = 79 + } + return ":" === y.slice(-1) && (y = y.slice(0, -1), d--), w() + } + return m + }, + scanJsxAttributeValue: z, + reScanJsxAttributeValue: function() { + return d = g = f, z() + }, + reScanJsxToken: function(e) { + void 0 === e && (e = !0); + return d = g = f, m = J(e) + }, + reScanLessThanToken: function() { + return 47 !== m ? m : (d = g + 1, m = 29) + }, + reScanHashToken: function() { + return 80 !== m ? m : (d = g + 1, m = 62) + }, + reScanQuestionToken: function() { + return V.Debug.assert(60 === m, "'reScanQuestionToken' should only be called on a '??'"), d = g + 1, m = 57 + }, + reScanInvalidIdentifier: function() { + V.Debug.assert(0 === m, "'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."), d = g = f, h = 0; + var e = ie(b, d), + t = M(e, 99); + if (t) return m = t; + return d += ae(e), m + }, + scanJsxToken: J, + scanJsDocToken: function() { + if (f = g = d, h = 0, p <= d) return m = 1; + var e = ie(b, d); + switch (d += ae(e), e) { + case 9: + case 11: + case 12: + case 32: + for (; d < p && H(b.charCodeAt(d));) d++; + return m = 5; + case 64: + return m = 59; + case 13: + 10 === b.charCodeAt(d) && d++; + case 10: + return h |= 1, m = 4; + case 42: + return m = 41; + case 123: + return m = 18; + case 125: + return m = 19; + case 91: + return m = 22; + case 93: + return m = 23; + case 60: + return m = 29; + case 62: + return m = 31; + case 61: + return m = 63; + case 44: + return m = 27; + case 46: + return m = 24; + case 96: + return m = 61; + case 35: + return m = 62; + case 92: + d--; + var t = F(); + return 0 <= t && re(t, l) ? (d += 3, h |= 8, y = N() + P(), m = w()) : (t = A(), m = 0 <= t && re(t, l) ? (d += 6, h |= 1024, y = String.fromCharCode(t) + P(), w()) : (d++, 0)) + } { + if (re(e, l)) { + for (var r = e; d < p && ne(r = ie(b, d), l) || 45 === b.charCodeAt(d);) d += ae(r); + return y = b.substring(g, d), 92 === r && (y += P()), m = w() + } + return m = 0 + } + }, + scan: e, + getText: function() { + return b + }, + clearCommentDirectives: function() { + v = void 0 + }, + setText: L, + setScriptTarget: function(e) { + l = e + }, + setLanguageVariant: function(e) { + _ = e + }, + setOnError: function(e) { + i = e + }, + setTextPos: K, + setInJSDocType: function(e) { + x += e ? 1 : -1 + }, + tryScan: function(e) { + return U(e, !1) + }, + lookAhead: function(e) { + return U(e, !0) + }, + scanRange: function(e, t, r) { + var n = p, + i = d, + a = f, + o = g, + s = m, + c = y, + l = h, + u = v, + e = (L(b, e, t), r()); + return p = n, d = i, f = a, g = o, m = s, y = c, h = l, v = u, e + } + }); + return V.Debug.isDebugging && Object.defineProperty(t, "__debugShowCurrentPositionInText", { + get: function() { + var e = t.getText(); + return e.slice(0, t.getStartPos()) + "â•‘" + e.slice(t.getStartPos()) + } + }), t; + + function D(e, t, r) { + var n; + void 0 === t && (t = d), i && (n = d, d = t, i(e, r || 0), d = n) + } + + function c() { + for (var e = d, t = !1, r = !1, n = "";;) { + var i = b.charCodeAt(d); + if (95 === i) h |= 512, t ? (r = !(t = !1), n += b.substring(e, d)) : D(r ? V.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted : V.Diagnostics.Numeric_separators_are_not_allowed_here, d, 1), e = ++d; + else { + if (!Q(i)) break; + r = !(t = !0), d++ + } + } + return 95 === b.charCodeAt(d - 1) && D(V.Diagnostics.Numeric_separators_are_not_allowed_here, d - 1, 1), n + b.substring(e, d) + } + + function S() { + var e, t, r, n, i, a = d, + o = c(), + s = (46 === b.charCodeAt(d) && (d++, e = c()), d); + return 69 !== b.charCodeAt(d) && 101 !== b.charCodeAt(d) || (d++, h |= 16, 43 !== b.charCodeAt(d) && 45 !== b.charCodeAt(d) || d++, i = d, (r = c()) ? (t = b.substring(s, i) + r, s = d) : D(V.Diagnostics.Digit_expected)), 512 & h ? (n = o, e && (n += "." + e), t && (n += t)) : n = b.substring(a, s), void 0 !== e || 16 & h ? (T(a, void 0 === e && !!(16 & h)), { + type: 8, + value: "" + +n + }) : (y = n, i = O(), T(a), { + type: i, + value: y + }) + } + + function T(e, t) { + var r, n; + re(ie(b, d), l) && (r = d, 1 === (n = P().length) && "n" === b[r] ? D(t ? V.Diagnostics.A_bigint_literal_cannot_use_exponential_notation : V.Diagnostics.A_bigint_literal_must_be_an_integer, e, r - e + 1) : (D(V.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal, r, n), d = r)) + } + + function r(e, t) { + e = n(e, !1, t); + return e ? parseInt(e, 16) : -1 + } + + function C(e, t) { + return n(e, !0, t) + } + + function n(e, t, r) { + for (var n = [], i = !1, a = !1; n.length < e || t;) { + var o = b.charCodeAt(d); + if (r && 95 === o) h |= 512, i ? a = !(i = !1) : D(a ? V.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted : V.Diagnostics.Numeric_separators_are_not_allowed_here, d, 1), d++; + else { + if (i = r, 65 <= o && o <= 70) o += 32; + else if (!(48 <= o && o <= 57 || 97 <= o && o <= 102)) break; + n.push(o), d++, a = !1 + } + } + return n.length < e && (n = []), 95 === b.charCodeAt(d - 1) && D(V.Diagnostics.Numeric_separators_are_not_allowed_here, d - 1, 1), String.fromCharCode.apply(String, n) + } + + function E(e) { + void 0 === e && (e = !1); + for (var t = b.charCodeAt(d), r = "", n = ++d;;) { + if (p <= d) { + r += b.substring(n, d), h |= 4, D(V.Diagnostics.Unterminated_string_literal); + break + } + var i = b.charCodeAt(d); + if (i === t) { + r += b.substring(n, d), d++; + break + } + if (92 !== i || e) { + if (G(i) && !e) { + r += b.substring(n, d), h |= 4, D(V.Diagnostics.Unterminated_string_literal); + break + } + d++ + } else r = (r += b.substring(n, d)) + o(), n = d + } + return r + } + + function k(e) { + for (var t, r = 96 === b.charCodeAt(d), n = ++d, i = "";;) { + if (p <= d) { + i += b.substring(n, d), h |= 4, D(V.Diagnostics.Unterminated_template_literal), t = r ? 14 : 17; + break + } + var a = b.charCodeAt(d); + if (96 === a) { + i += b.substring(n, d), d++, t = r ? 14 : 17; + break + } + if (36 === a && d + 1 < p && 123 === b.charCodeAt(d + 1)) { + i += b.substring(n, d), d += 2, t = r ? 15 : 16; + break + } + 92 === a ? (i = (i += b.substring(n, d)) + o(e), n = d) : 13 === a ? (i += b.substring(n, d), ++d < p && 10 === b.charCodeAt(d) && d++, i += "\n", n = d) : d++ + } + return V.Debug.assert(void 0 !== t), y = i, t + } + + function o(e) { + var t = d; + if (p <= ++d) return D(V.Diagnostics.Unexpected_end_of_text), ""; + var r = b.charCodeAt(d); + switch (d++, r) { + case 48: + return e && d < p && Q(b.charCodeAt(d)) ? (d++, h |= 2048, b.substring(t, d)) : "\0"; + case 98: + return "\b"; + case 116: + return "\t"; + case 110: + return "\n"; + case 118: + return "\v"; + case 102: + return "\f"; + case 114: + return "\r"; + case 39: + return "'"; + case 34: + return '"'; + case 117: + if (e) + for (var n = d; n < d + 4; n++) + if (n < p && !X(b.charCodeAt(n)) && 123 !== b.charCodeAt(n)) return d = n, h |= 2048, b.substring(t, d); + if (d < p && 123 === b.charCodeAt(d)) { + if (d++, e && !X(b.charCodeAt(d))) return h |= 2048, b.substring(t, d); + if (e) { + var i = d, + a = C(1, !1); + if (!((a ? parseInt(a, 16) : -1) <= 1114111 && 125 === b.charCodeAt(d))) return h |= 2048, b.substring(t, d); + d = i + } + return h |= 8, N() + } + return h |= 1024, s(4); + case 120: + if (e) { + if (!X(b.charCodeAt(d))) return h |= 2048, b.substring(t, d); + if (!X(b.charCodeAt(d + 1))) return d++, h |= 2048, b.substring(t, d) + } + return s(2); + case 13: + d < p && 10 === b.charCodeAt(d) && d++; + case 10: + case 8232: + case 8233: + return ""; + default: + return String.fromCharCode(r) + } + } + + function s(e) { + e = r(e, !1); + return 0 <= e ? String.fromCharCode(e) : (D(V.Diagnostics.Hexadecimal_digit_expected), "") + } + + function N() { + var e = C(1, !1), + e = e ? parseInt(e, 16) : -1, + t = !1; + return e < 0 ? (D(V.Diagnostics.Hexadecimal_digit_expected), t = !0) : 1114111 < e && (D(V.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive), t = !0), p <= d ? (D(V.Diagnostics.Unexpected_end_of_text), t = !0) : 125 === b.charCodeAt(d) ? d++ : (D(V.Diagnostics.Unterminated_Unicode_escape_sequence), t = !0), t ? "" : oe(e) + } + + function A() { + var e, t; + return d + 5 < p && 117 === b.charCodeAt(d + 1) ? (e = d, d += 2, t = r(4, !1), d = e, t) : -1 + } + + function F() { + var e, t; + return 117 === ie(b, d + 1) && 123 === ie(b, d + 2) ? (e = d, d += 3, t = (t = C(1, !1)) ? parseInt(t, 16) : -1, d = e, t) : -1 + } + + function P() { + for (var e = "", t = d; d < p;) { + var r = ie(b, d); + if (ne(r, l)) d += ae(r); + else { + if (92 !== r) break; + if (0 <= (r = F()) && ne(r, l)) d += 3, h |= 8, e += N(), t = d; + else { + if (!(0 <= (r = A()) && ne(r, l))) break; + h |= 1024, e = (e += b.substring(t, d)) + oe(r), t = d += 6 + } + } + } + return e += b.substring(t, d) + } + + function w() { + var e = y.length; + if (2 <= e && e <= 12) { + e = y.charCodeAt(0); + if (97 <= e && e <= 122) { + e = q.get(y); + if (void 0 !== e) return m = e + } + } + return m = 79 + } + + function I(e) { + for (var t = "", r = !1, n = !1;;) { + var i = b.charCodeAt(d); + if (95 === i) h |= 512, r ? n = !(r = !1) : D(n ? V.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted : V.Diagnostics.Numeric_separators_are_not_allowed_here, d, 1), d++; + else { + if (r = !0, !Q(i) || e <= i - 48) break; + t += b[d], d++, n = !1 + } + } + return 95 === b.charCodeAt(d - 1) && D(V.Diagnostics.Numeric_separators_are_not_allowed_here, d - 1, 1), t + } + + function O() { + return 110 === b.charCodeAt(d) ? (y += "n", 384 & h && (y = V.parsePseudoBigInt(y) + "n"), d++, 9) : (y = "" + (128 & h ? parseInt(y.slice(2), 2) : 256 & h ? parseInt(y.slice(2), 8) : +y), 8) + } + + function e() { + f = d, h = 0; + for (var e = !1;;) { + if (p <= (g = d)) return m = 1; + var t = ie(b, d); + if (35 === t && 0 === d && ee(b, d)) { + if (d = te(b, d), u) continue; + return m = 6 + } + switch (t) { + case 10: + case 13: + if (h |= 1, u) { + d++; + continue + } + return 13 === t && d + 1 < p && 10 === b.charCodeAt(d + 1) ? d += 2 : d++, m = 4; + case 9: + case 11: + case 12: + case 32: + case 160: + case 5760: + case 8192: + case 8193: + case 8194: + case 8195: + case 8196: + case 8197: + case 8198: + case 8199: + case 8200: + case 8201: + case 8202: + case 8203: + case 8239: + case 8287: + case 12288: + case 65279: + if (u) { + d++; + continue + } + for (; d < p && H(b.charCodeAt(d));) d++; + return m = 5; + case 33: + return 61 === b.charCodeAt(d + 1) ? m = 61 === b.charCodeAt(d + 2) ? (d += 3, 37) : (d += 2, 35) : (d++, m = 53); + case 34: + case 39: + return y = E(), m = 10; + case 96: + return m = k(!1); + case 37: + return 61 === b.charCodeAt(d + 1) ? (d += 2, m = 69) : (d++, m = 44); + case 38: + return 38 === b.charCodeAt(d + 1) ? m = 61 === b.charCodeAt(d + 2) ? (d += 3, 76) : (d += 2, 55) : m = 61 === b.charCodeAt(d + 1) ? (d += 2, 73) : (d++, 50); + case 40: + return d++, m = 20; + case 41: + return d++, m = 21; + case 42: + if (61 === b.charCodeAt(d + 1)) return d += 2, m = 66; + if (42 === b.charCodeAt(d + 1)) return m = 61 === b.charCodeAt(d + 2) ? (d += 3, 67) : (d += 2, 42); + if (d++, x && !e && 1 & h) { + e = !0; + continue + } + return m = 41; + case 43: + return 43 === b.charCodeAt(d + 1) ? (d += 2, m = 45) : m = 61 === b.charCodeAt(d + 1) ? (d += 2, 64) : (d++, 39); + case 44: + return d++, m = 27; + case 45: + return 45 === b.charCodeAt(d + 1) ? (d += 2, m = 46) : m = 61 === b.charCodeAt(d + 1) ? (d += 2, 65) : (d++, 40); + case 46: + return Q(b.charCodeAt(d + 1)) ? (y = S().value, m = 8) : m = 46 === b.charCodeAt(d + 1) && 46 === b.charCodeAt(d + 2) ? (d += 3, 25) : (d++, 24); + case 47: + if (47 === b.charCodeAt(d + 1)) { + for (d += 2; d < p && !G(b.charCodeAt(d));) d++; + if (v = j(v, b.slice(g, d), se, g), u) continue; + return m = 2 + } + if (42 !== b.charCodeAt(d + 1)) return m = 61 === b.charCodeAt(d + 1) ? (d += 2, 68) : (d++, 43); + d += 2, 42 === b.charCodeAt(d) && 47 !== b.charCodeAt(d + 1) && (h |= 2); + for (var r = !1, n = g; d < p;) { + var i = b.charCodeAt(d); + if (42 === i && 47 === b.charCodeAt(d + 1)) { + d += 2, r = !0; + break + } + d++, G(i) && (n = d, h |= 1) + } + if (v = j(v, b.slice(n, d), ce, n), r || D(V.Diagnostics.Asterisk_Slash_expected), u) continue; + return r || (h |= 4), m = 3; + case 48: + if (d + 2 < p && (88 === b.charCodeAt(d + 1) || 120 === b.charCodeAt(d + 1))) return d += 2, (y = C(1, !0)) || (D(V.Diagnostics.Hexadecimal_digit_expected), y = "0"), y = "0x" + y, h |= 64, m = O(); + if (d + 2 < p && (66 === b.charCodeAt(d + 1) || 98 === b.charCodeAt(d + 1))) return d += 2, (y = I(2)) || (D(V.Diagnostics.Binary_digit_expected), y = "0"), y = "0b" + y, h |= 128, m = O(); + if (d + 2 < p && (79 === b.charCodeAt(d + 1) || 111 === b.charCodeAt(d + 1))) return d += 2, (y = I(8)) || (D(V.Diagnostics.Octal_digit_expected), y = "0"), y = "0o" + y, h |= 256, m = O(); + if (d + 1 < p && Y(b.charCodeAt(d + 1))) return y = "" + function() { + for (var e = d; Y(b.charCodeAt(d));) d++; + return +b.substring(e, d) + }(), h |= 32, m = 8; + case 49: + case 50: + case 51: + case 52: + case 53: + case 54: + case 55: + case 56: + case 57: + return a = S(), m = a.type, y = a.value, m; + case 58: + return d++, m = 58; + case 59: + return d++, m = 26; + case 60: + if (Z(b, d)) { + if (d = $(b, d, D), u) continue; + return m = 7 + } + return 60 === b.charCodeAt(d + 1) ? m = 61 === b.charCodeAt(d + 2) ? (d += 3, 70) : (d += 2, 47) : m = 61 === b.charCodeAt(d + 1) ? (d += 2, 32) : 1 === _ && 47 === b.charCodeAt(d + 1) && 42 !== b.charCodeAt(d + 2) ? (d += 2, 30) : (d++, 29); + case 61: + if (Z(b, d)) { + if (d = $(b, d, D), u) continue; + return m = 7 + } + return 61 === b.charCodeAt(d + 1) ? m = 61 === b.charCodeAt(d + 2) ? (d += 3, 36) : (d += 2, 34) : m = 62 === b.charCodeAt(d + 1) ? (d += 2, 38) : (d++, 63); + case 62: + if (Z(b, d)) { + if (d = $(b, d, D), u) continue; + return m = 7 + } + return d++, m = 31; + case 63: + return 46 !== b.charCodeAt(d + 1) || Q(b.charCodeAt(d + 2)) ? m = 63 === b.charCodeAt(d + 1) ? 61 === b.charCodeAt(d + 2) ? (d += 3, 77) : (d += 2, 60) : (d++, 57) : (d += 2, m = 28); + case 91: + return d++, m = 22; + case 93: + return d++, m = 23; + case 94: + return 61 === b.charCodeAt(d + 1) ? (d += 2, m = 78) : (d++, m = 52); + case 123: + return d++, m = 18; + case 124: + if (Z(b, d)) { + if (d = $(b, d, D), u) continue; + return m = 7 + } + return 124 === b.charCodeAt(d + 1) ? m = 61 === b.charCodeAt(d + 2) ? (d += 3, 75) : (d += 2, 56) : m = 61 === b.charCodeAt(d + 1) ? (d += 2, 74) : (d++, 51); + case 125: + return d++, m = 19; + case 126: + return d++, m = 54; + case 64: + return d++, m = 59; + case 92: + var a = F(); + return 0 <= a && re(a, l) ? (d += 3, h |= 8, y = N() + P(), m = w()) : (o = A(), m = 0 <= o && re(o, l) ? (d += 6, h |= 1024, y = String.fromCharCode(o) + P(), w()) : (D(V.Diagnostics.Invalid_character), d++, 0)); + case 35: + if (0 !== d && "!" === b[d + 1]) return D(V.Diagnostics.can_only_be_used_at_the_start_of_a_file), d++, m = 0; + var o = ie(b, d + 1); + if (92 === o) { + d++; + var s = F(); + if (0 <= s && re(s, l)) return d += 3, h |= 8, y = "#" + N() + P(), m = 80; + s = A(); + if (0 <= s && re(s, l)) return d += 6, h |= 1024, y = "#" + String.fromCharCode(s) + P(), m = 80; + d-- + } + return re(o, l) ? (d++, M(o, l)) : (y = "#", D(V.Diagnostics.Invalid_character, d++, ae(t))), m = 80; + default: + s = M(t, l); + if (s) return m = s; + if (H(t)) { + d += ae(t); + continue + } + if (G(t)) { + h |= 1, d += ae(t); + continue + } + var c = ae(t); + return D(V.Diagnostics.Invalid_character, d, c), d += c, m = 0 + } + } + } + + function M(e, t) { + var r = e; + if (re(r, t)) { + for (d += ae(r); d < p && ne(r = ie(b, d), t);) d += ae(r); + return y = b.substring(g, d), 92 === r && (y += P()), w() + } + } + + function j(e, t, r, n) { + t = function(e, t) { + t = t.exec(e); + if (t) switch (t[1]) { + case "ts-expect-error": + return 0; + case "ts-ignore": + return 1 + } + return + }(V.trimStringStart(t), r); + return void 0 === t ? e : V.append(e, { + range: { + pos: n, + end: d + }, + type: t + }) + } + + function J(e) { + if (void 0 === e && (e = !0), f = g = d, p <= d) return m = 1; + var t = b.charCodeAt(d); + if (60 === t) return m = 47 === b.charCodeAt(d + 1) ? (d += 2, 30) : (d++, 29); + if (123 === t) return d++, m = 18; + for (var r = 0; d < p && 123 !== (t = b.charCodeAt(d));) { + if (60 === t) { + if (Z(b, d)) return d = $(b, d, D), m = 7; + break + } + if (62 === t && D(V.Diagnostics.Unexpected_token_Did_you_mean_or_gt, d, 1), 125 === t && D(V.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace, d, 1), G(t) && 0 === r) r = -1; + else { + if (!e && G(t) && 0 < r) break; + W(t) || (r = d) + } + d++ + } + return y = b.substring(f, d), -1 === r ? 12 : 11 + } + + function z() { + switch (f = d, b.charCodeAt(d)) { + case 34: + case 39: + return y = E(!0), m = 10; + default: + return e() + } + } + + function U(e, t) { + var r = d, + n = f, + i = g, + a = m, + o = y, + s = h, + e = e(); + return e && !t || (d = r, f = n, g = i, m = a, y = o, h = s), e + } + + function L(e, t, r) { + b = e || "", p = void 0 === r ? b.length : t + r, K(t || 0) + } + + function K(e) { + V.Debug.assert(0 <= e), g = f = d = e, y = void(m = 0), h = 0 + } + }; + var ie = String.prototype.codePointAt ? function(e, t) { + return e.codePointAt(t) + } : function(e, t) { + var r = e.length; + if (!(t < 0 || r <= t)) { + var n = e.charCodeAt(t); + if (55296 <= n && n <= 56319 && t + 1 < r) { + r = e.charCodeAt(t + 1); + if (56320 <= r && r <= 57343) return 1024 * (n - 55296) + r - 56320 + 65536 + } + return n + } + }; + + function ae(e) { + return 65536 <= e ? 2 : 1 + } + var C = String.fromCodePoint ? function(e) { + return String.fromCodePoint(e) + } : function(e) { + var t; + return V.Debug.assert(0 <= e && e <= 1114111), e <= 65535 ? String.fromCharCode(e) : (t = Math.floor((e - 65536) / 1024) + 55296, String.fromCharCode(t, (e - 65536) % 1024 + 56320)) + }; + + function oe(e) { + return C(e) + } + V.utf16EncodeAsString = oe + }(ts = ts || {}), ! function(d) { + function p(e) { + return e.start + e.length + } + + function t(e) { + return 0 === e.length + } + + function r(e, t) { + e = i(e, t); + return e && 0 === e.length ? void 0 : e + } + + function n(e, t, r, n) { + return r <= e + t && e <= r + n + } + + function i(e, t) { + var r = Math.max(e.start, t.start), + e = Math.min(p(e), p(t)); + return r <= e ? f(r, e) : void 0 + } + + function a(e, t) { + if (e < 0) throw new Error("start < 0"); + if (t < 0) throw new Error("length < 0"); + return { + start: e, + length: t + } + } + + function f(e, t) { + return a(e, t - e) + } + + function g(e, t) { + if (t < 0) throw new Error("newLength < 0"); + return { + span: e, + newLength: t + } + } + + function o(e) { + return !!ie(e) && d.every(e.elements, s) + } + + function s(e) { + return !!d.isOmittedExpression(e) || o(e.name) + } + + function c(e) { + for (var t = e.parent; d.isBindingElement(t.parent);) t = t.parent.parent; + return t.parent + } + + function l(e, t) { + var r = t(e = d.isBindingElement(e) ? c(e) : e); + return (e = 257 === e.kind ? e.parent : e) && 258 === e.kind && (r |= t(e), e = e.parent), e && 240 === e.kind && (r |= t(e)), r + } + + function u(e) { + return 0 == (8 & e.flags) + } + + function _(e) { + return 3 <= e.length && 95 === e.charCodeAt(0) && 95 === e.charCodeAt(1) && 95 === e.charCodeAt(2) ? e.substr(1) : e + } + + function m(e) { + return _(e.escapedText) + } + + function y(e) { + var t = e.parent.parent; + if (t) { + if (L(t)) return h(t); + switch (t.kind) { + case 240: + if (t.declarationList && t.declarationList.declarations[0]) return h(t.declarationList.declarations[0]); + break; + case 241: + var r = t.expression; + switch ((r = 223 === r.kind && 63 === r.operatorToken.kind ? r.left : r).kind) { + case 208: + return r.name; + case 209: + var n = r.argumentExpression; + if (d.isIdentifier(n)) return n + } + break; + case 214: + return h(t.expression); + case 253: + if (L(t.statement) || I(t.statement)) return h(t.statement) + } + } + } + + function h(e) { + e = D(e); + return e && d.isIdentifier(e) ? e : void 0 + } + + function v(e) { + return e.name || y(e) + } + + function b(e) { + return !!e.name + } + + function x(e) { + switch (e.kind) { + case 79: + return e; + case 350: + case 343: + var t = e.name; + if (163 === t.kind) return t.right; + break; + case 210: + case 223: + var r = e; + switch (d.getAssignmentDeclarationKind(r)) { + case 1: + case 4: + case 5: + case 3: + return d.getElementOrPropertyAccessArgumentExpressionOrName(r.left); + case 7: + case 8: + case 9: + return r.arguments[1]; + default: + return + } + case 348: + return v(e); + case 342: + return y(e); + case 274: + t = e.expression; + return d.isIdentifier(t) ? t : void 0; + case 209: + t = e; + if (d.isBindableStaticElementAccessExpression(t)) return t.argumentExpression + } + return e.name + } + + function D(e) { + if (void 0 !== e) return x(e) || (d.isFunctionExpression(e) || d.isArrowFunction(e) || d.isClassExpression(e) ? R(e) : void 0) + } + + function R(e) { + if (e.parent) return d.isPropertyAssignment(e.parent) || d.isBindingElement(e.parent) ? e.parent.name : d.isBinaryExpression(e.parent) && e === e.parent.right ? d.isIdentifier(e.parent.left) ? e.parent.left : d.isAccessExpression(e.parent.left) ? d.getElementOrPropertyAccessArgumentExpressionOrName(e.parent.left) : void 0 : d.isVariableDeclaration(e.parent) && d.isIdentifier(e.parent.name) ? e.parent.name : void 0 + } + + function B(e, t) { + if (e.name) { + var r; + if (d.isIdentifier(e.name)) return r = e.name.escapedText, S(e.parent, t).filter(function(e) { + return d.isJSDocParameterTag(e) && d.isIdentifier(e.name) && e.name.escapedText === r + }); + var n = e.parent.parameters.indexOf(e), + e = (d.Debug.assert(-1 < n, "Parameters should always be in their parents' parameter list"), S(e.parent, t).filter(d.isJSDocParameterTag)); + if (n < e.length) return [e[n]] + } + return d.emptyArray + } + + function j(e) { + return B(e, !1) + } + + function J(e, t) { + var r = e.name.escapedText; + return S(e.parent, t).filter(function(e) { + return d.isJSDocTemplateTag(e) && e.typeParameters.some(function(e) { + return e.name.escapedText === r + }) + }) + } + + function z(e) { + return C(e, d.isJSDocReturnTag) + } + + function U(e) { + e = C(e, d.isJSDocTypeTag); + if (e && e.typeExpression && e.typeExpression.type) return e + } + + function K(e) { + var t = C(e, d.isJSDocTypeTag); + return (t = !t && d.isParameter(e) ? d.find(j(e), function(e) { + return !!e.typeExpression + }) : t) && t.typeExpression && t.typeExpression.type + } + + function S(e, t) { + var r, n = e.jsDocCache; + return void 0 !== n && !t || (r = d.getJSDocCommentsAndTags(e, t), d.Debug.assert(r.length < 2 || r[0] !== r[1]), n = d.flatMap(r, function(e) { + return d.isJSDoc(e) ? e.tags : e + }), t) || (e.jsDocCache = n), n + } + + function T(e) { + return S(e, !1) + } + + function C(e, t, r) { + return d.find(S(e, r), t) + } + + function V(e, t) { + return T(e).filter(t) + } + + function E(e) { + var t = e.kind; + return !!(32 & e.flags) && (208 === t || 209 === t || 210 === t || 232 === t) + } + + function k(e) { + return E(e) && !d.isNonNullExpression(e) && !!e.questionDotToken + } + + function N(e) { + return d.skipOuterExpressions(e, 8) + } + + function q(e) { + switch (e.kind) { + case 305: + case 306: + return !0; + default: + return !1 + } + } + + function W(e) { + return 163 <= e + } + + function H(e) { + return 0 <= e && e <= 162 + } + + function G(e) { + return 8 <= e && e <= 14 + } + + function A(e) { + return 14 <= e && e <= 17 + } + + function Q(e) { + return (d.isPropertyDeclaration(e) || te(e)) && d.isPrivateIdentifier(e.name) + } + + function X(e) { + switch (e) { + case 126: + case 127: + case 132: + case 85: + case 136: + case 88: + case 93: + case 101: + case 123: + case 121: + case 122: + case 146: + case 124: + case 145: + case 161: + return !0 + } + return !1 + } + + function Y(e) { + return !!(16476 & d.modifierToFlag(e)) + } + + function F(e) { + return X(e.kind) + } + + function P(e) { + return !!e && w(e.kind) + } + + function Z(e) { + switch (e) { + case 259: + case 171: + case 173: + case 174: + case 175: + case 215: + case 216: + return !0; + default: + return !1 + } + } + + function w(e) { + switch (e) { + case 170: + case 176: + case 326: + case 177: + case 178: + case 181: + case 320: + case 182: + return !0; + default: + return Z(e) + } + } + + function $(e) { + e = e.kind; + return 173 === e || 169 === e || 171 === e || 174 === e || 175 === e || 178 === e || 172 === e || 237 === e + } + + function ee(e) { + return e && (260 === e.kind || 228 === e.kind) + } + + function te(e) { + switch (e.kind) { + case 171: + case 174: + case 175: + return !0; + default: + return !1 + } + } + + function re(e) { + e = e.kind; + return 177 === e || 176 === e || 168 === e || 170 === e || 178 === e || 174 === e || 175 === e + } + + function ne(e) { + e = e.kind; + return 299 === e || 300 === e || 301 === e || 171 === e || 174 === e || 175 === e + } + + function ie(e) { + return !!e && (204 === (e = e.kind) || 203 === e) + } + + function ae(e) { + switch (e.kind) { + case 203: + case 207: + return !0 + } + return !1 + } + + function oe(e) { + switch (e.kind) { + case 204: + case 206: + return !0 + } + return !1 + } + + function se(e) { + switch (e) { + case 208: + case 209: + case 211: + case 210: + case 281: + case 282: + case 285: + case 212: + case 206: + case 214: + case 207: + case 228: + case 215: + case 79: + case 80: + case 13: + case 8: + case 9: + case 10: + case 14: + case 225: + case 95: + case 104: + case 108: + case 110: + case 106: + case 232: + case 230: + case 233: + case 100: + return !0; + default: + return !1 + } + } + + function ce(e) { + switch (e) { + case 221: + case 222: + case 217: + case 218: + case 219: + case 220: + case 213: + return !0; + default: + return se(e) + } + } + + function I(e) { + var t = N(e).kind; + switch (t) { + case 224: + case 226: + case 216: + case 223: + case 227: + case 231: + case 229: + case 354: + case 353: + case 235: + return !0; + default: + return ce(t) + } + } + + function le(e) { + return d.isExportAssignment(e) || d.isExportDeclaration(e) + } + + function O(e) { + return 259 === e || 279 === e || 260 === e || 261 === e || 262 === e || 263 === e || 264 === e || 269 === e || 268 === e || 275 === e || 274 === e || 267 === e + } + + function M(e) { + return 249 === e || 248 === e || 256 === e || 243 === e || 241 === e || 239 === e || 246 === e || 247 === e || 245 === e || 242 === e || 253 === e || 250 === e || 252 === e || 254 === e || 255 === e || 240 === e || 244 === e || 251 === e || 352 === e || 356 === e || 355 === e + } + + function L(e) { + return 165 === e.kind ? e.parent && 347 !== e.parent.kind || d.isInJSFile(e) : 216 === (e = e.kind) || 205 === e || 260 === e || 228 === e || 172 === e || 173 === e || 263 === e || 302 === e || 278 === e || 259 === e || 215 === e || 174 === e || 270 === e || 268 === e || 273 === e || 261 === e || 288 === e || 171 === e || 170 === e || 264 === e || 267 === e || 271 === e || 277 === e || 166 === e || 299 === e || 169 === e || 168 === e || 175 === e || 300 === e || 262 === e || 165 === e || 257 === e || 348 === e || 341 === e || 350 === e + } + + function ue(e) { + return 330 <= e.kind && e.kind <= 350 + } + d.isExternalModuleNameRelative = function(e) { + return d.pathIsRelative(e) || d.isRootedDiskPath(e) + }, d.sortAndDeduplicateDiagnostics = function(e) { + return d.sortAndDeduplicate(e, d.compareDiagnostics) + }, d.getDefaultLibFileName = function(e) { + switch (d.getEmitScriptTarget(e)) { + case 99: + return "lib.esnext.full.d.ts"; + case 9: + return "lib.es2022.full.d.ts"; + case 8: + return "lib.es2021.full.d.ts"; + case 7: + return "lib.es2020.full.d.ts"; + case 6: + return "lib.es2019.full.d.ts"; + case 5: + return "lib.es2018.full.d.ts"; + case 4: + return "lib.es2017.full.d.ts"; + case 3: + return "lib.es2016.full.d.ts"; + case 2: + return "lib.es6.d.ts"; + default: + return "lib.d.ts" + } + }, d.textSpanEnd = p, d.textSpanIsEmpty = t, d.textSpanContainsPosition = function(e, t) { + return t >= e.start && t < p(e) + }, d.textRangeContainsPositionInclusive = function(e, t) { + return t >= e.pos && t <= e.end + }, d.textSpanContainsTextSpan = function(e, t) { + return t.start >= e.start && p(t) <= p(e) + }, d.textSpanOverlapsWith = function(e, t) { + return void 0 !== r(e, t) + }, d.textSpanOverlap = r, d.textSpanIntersectsWithTextSpan = function(e, t) { + return n(e.start, e.length, t.start, t.length) + }, d.textSpanIntersectsWith = function(e, t, r) { + return n(e.start, e.length, t, r) + }, d.decodedTextSpanIntersectsWith = n, d.textSpanIntersectsWithPosition = function(e, t) { + return t <= p(e) && t >= e.start + }, d.textSpanIntersection = i, d.createTextSpan = a, d.createTextSpanFromBounds = f, d.textChangeRangeNewSpan = function(e) { + return a(e.span.start, e.newLength) + }, d.textChangeRangeIsUnchanged = function(e) { + return t(e.span) && 0 === e.newLength + }, d.createTextChangeRange = g, d.unchangedTextChangeRange = g(a(0, 0), 0), d.collapseTextChangeRangesAcrossMultipleVersions = function(e) { + if (0 === e.length) return d.unchangedTextChangeRange; + if (1 === e.length) return e[0]; + for (var t = e[0], r = t.span.start, n = p(t.span), i = r + t.newLength, a = 1; a < e.length; a++) var o = e[a], + s = r, + c = n, + l = i, + u = o.span.start, + _ = p(o.span), + o = u + o.newLength, + r = Math.min(s, u), + n = Math.max(c, c + (_ - l)), + i = Math.max(o, o + (l - _)); + return g(f(r, n), i - r) + }, d.getTypeParameterOwner = function(e) { + if (e && 165 === e.kind) + for (var t = e; t; t = t.parent) + if (P(t) || ee(t) || 261 === t.kind) return t + }, d.isParameterPropertyDeclaration = function(e, t) { + return d.hasSyntacticModifier(e, 16476) && 173 === t.kind + }, d.isEmptyBindingPattern = o, d.isEmptyBindingElement = s, d.walkUpBindingElementsAndPatterns = c, d.getCombinedModifierFlags = function(e) { + return l(e, d.getEffectiveModifierFlags) + }, d.getCombinedNodeFlagsAlwaysIncludeJSDoc = function(e) { + return l(e, d.getEffectiveModifierFlagsAlwaysIncludeJSDoc) + }, d.getCombinedNodeFlags = function(e) { + return l(e, function(e) { + return e.flags + }) + }, d.supportedLocaleDirectories = ["cs", "de", "es", "fr", "it", "ja", "ko", "pl", "pt-br", "ru", "tr", "zh-cn", "zh-tw"], d.validateLocaleAndSetLanguage = function(e, i, t) { + var r, n = e.toLowerCase(), + a = /^([a-z]+)([_\-]([a-z]+))?$/.exec(n); + + function o(e, t, r) { + var n = d.normalizePath(i.getExecutingFilePath()), + n = d.getDirectoryPath(n), + n = d.combinePaths(n, e), + n = i.resolvePath(d.combinePaths(n = t ? n + "-" + t : n, "diagnosticMessages.generated.json")); + if (i.fileExists(n)) { + e = ""; + try { + e = i.readFile(n) + } catch (e) { + return void(r && r.push(d.createCompilerDiagnostic(d.Diagnostics.Unable_to_open_file_0, n))) + } + try { + d.setLocalizedDiagnosticMessages(JSON.parse(e)) + } catch (e) { + return void(r && r.push(d.createCompilerDiagnostic(d.Diagnostics.Corrupted_locale_file_0, n))) + } + return 1 + } + } + a ? (r = a[1], a = a[3], d.contains(d.supportedLocaleDirectories, n) && !o(r, a, t) && o(r, void 0, t), d.setUILocale(e)) : t && t.push(d.createCompilerDiagnostic(d.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1, "en", "ja-jp")) + }, d.getOriginalNode = function(e, t) { + if (e) + for (; void 0 !== e.original;) e = e.original; + return !t || t(e) ? e : void 0 + }, d.findAncestor = function(e, t) { + for (; e;) { + var r = t(e); + if ("quit" === r) return; + if (r) return e; + e = e.parent + } + }, d.isParseTreeNode = u, d.getParseTreeNode = function(e, t) { + if (void 0 === e || u(e)) return e; + for (e = e.original; e;) { + if (u(e)) return !t || t(e) ? e : void 0; + e = e.original + } + }, d.escapeLeadingUnderscores = function(e) { + return 2 <= e.length && 95 === e.charCodeAt(0) && 95 === e.charCodeAt(1) ? "_" + e : e + }, d.unescapeLeadingUnderscores = _, d.idText = m, d.symbolName = function(e) { + return e.valueDeclaration && Q(e.valueDeclaration) ? m(e.valueDeclaration.name) : _(e.escapedName) + }, d.nodeHasName = function t(e, r) { + return !(!b(e) || !d.isIdentifier(e.name) || m(e.name) !== m(r)) || !(!d.isVariableStatement(e) || !d.some(e.declarationList.declarations, function(e) { + return t(e, r) + })) + }, d.getNameOfJSDocTypedef = v, d.isNamedDeclaration = b, d.getNonAssignedNameOfDeclaration = x, d.getNameOfDeclaration = D, d.getAssignedName = R, d.getDecorators = function(e) { + if (d.hasDecorators(e)) return d.filter(e.modifiers, d.isDecorator) + }, d.getModifiers = function(e) { + if (d.hasSyntacticModifier(e, 126975)) return d.filter(e.modifiers, F) + }, d.getJSDocParameterTags = j, d.getJSDocParameterTagsNoCache = function(e) { + return B(e, !0) + }, d.getJSDocTypeParameterTags = function(e) { + return J(e, !1) + }, d.getJSDocTypeParameterTagsNoCache = function(e) { + return J(e, !0) + }, d.hasJSDocParameterTags = function(e) { + return !!C(e, d.isJSDocParameterTag) + }, d.getJSDocAugmentsTag = function(e) { + return C(e, d.isJSDocAugmentsTag) + }, d.getJSDocImplementsTags = function(e) { + return V(e, d.isJSDocImplementsTag) + }, d.getJSDocClassTag = function(e) { + return C(e, d.isJSDocClassTag) + }, d.getJSDocPublicTag = function(e) { + return C(e, d.isJSDocPublicTag) + }, d.getJSDocPublicTagNoCache = function(e) { + return C(e, d.isJSDocPublicTag, !0) + }, d.getJSDocPrivateTag = function(e) { + return C(e, d.isJSDocPrivateTag) + }, d.getJSDocPrivateTagNoCache = function(e) { + return C(e, d.isJSDocPrivateTag, !0) + }, d.getJSDocProtectedTag = function(e) { + return C(e, d.isJSDocProtectedTag) + }, d.getJSDocProtectedTagNoCache = function(e) { + return C(e, d.isJSDocProtectedTag, !0) + }, d.getJSDocReadonlyTag = function(e) { + return C(e, d.isJSDocReadonlyTag) + }, d.getJSDocReadonlyTagNoCache = function(e) { + return C(e, d.isJSDocReadonlyTag, !0) + }, d.getJSDocOverrideTagNoCache = function(e) { + return C(e, d.isJSDocOverrideTag, !0) + }, d.getJSDocDeprecatedTag = function(e) { + return C(e, d.isJSDocDeprecatedTag) + }, d.getJSDocDeprecatedTagNoCache = function(e) { + return C(e, d.isJSDocDeprecatedTag, !0) + }, d.getJSDocEnumTag = function(e) { + return C(e, d.isJSDocEnumTag) + }, d.getJSDocThisTag = function(e) { + return C(e, d.isJSDocThisTag) + }, d.getJSDocReturnTag = z, d.getJSDocTemplateTag = function(e) { + return C(e, d.isJSDocTemplateTag) + }, d.getJSDocTypeTag = U, d.getJSDocType = K, d.getJSDocReturnType = function(e) { + var t = z(e); + return t && t.typeExpression ? t.typeExpression.type : (t = U(e)) && t.typeExpression ? (e = t.typeExpression.type, d.isTypeLiteralNode(e) ? (t = d.find(e.members, d.isCallSignatureDeclaration)) && t.type : d.isFunctionTypeNode(e) || d.isJSDocFunctionType(e) ? e.type : void 0) : void 0 + }, d.getJSDocTags = T, d.getJSDocTagsNoCache = function(e) { + return S(e, !0) + }, d.getAllJSDocTags = V, d.getAllJSDocTagsOfKind = function(e, t) { + return T(e).filter(function(e) { + return e.kind === t + }) + }, d.getTextOfJSDocComment = function(e) { + return "string" == typeof e ? e : null == e ? void 0 : e.map(function(e) { + return 324 === e.kind ? e.text : (t = 327 === (e = e).kind ? "link" : 328 === e.kind ? "linkcode" : "linkplain", r = e.name ? d.entityNameToString(e.name) : "", n = e.name && e.text.startsWith("://") ? "" : " ", "{@".concat(t, " ").concat(r).concat(n).concat(e.text, "}")); + var t, r, n + }).join("") + }, d.getEffectiveTypeParameterDeclarations = function(e) { + if (!d.isJSDocSignature(e)) { + if (d.isJSDocTypeAlias(e)) return d.Debug.assert(323 === e.parent.kind), d.flatMap(e.parent.tags, function(e) { + return d.isJSDocTemplateTag(e) ? e.typeParameters : void 0 + }); + if (e.typeParameters) return e.typeParameters; + if (d.canHaveIllegalTypeParameters(e) && e.typeParameters) return e.typeParameters; + if (d.isInJSFile(e)) { + var t = d.getJSDocTypeParameterDeclarations(e); + if (t.length) return t; + t = K(e); + if (t && d.isFunctionTypeNode(t) && t.typeParameters) return t.typeParameters + } + } + return d.emptyArray + }, d.getEffectiveConstraintOfTypeParameter = function(e) { + return e.constraint || (d.isJSDocTemplateTag(e.parent) && e === e.parent.typeParameters[0] ? e.parent.constraint : void 0) + }, d.isMemberName = function(e) { + return 79 === e.kind || 80 === e.kind + }, d.isGetOrSetAccessorDeclaration = function(e) { + return 175 === e.kind || 174 === e.kind + }, d.isPropertyAccessChain = function(e) { + return d.isPropertyAccessExpression(e) && !!(32 & e.flags) + }, d.isElementAccessChain = function(e) { + return d.isElementAccessExpression(e) && !!(32 & e.flags) + }, d.isCallChain = function(e) { + return d.isCallExpression(e) && !!(32 & e.flags) + }, d.isOptionalChain = E, d.isOptionalChainRoot = k, d.isExpressionOfOptionalChainRoot = function(e) { + return k(e.parent) && e.parent.expression === e + }, d.isOutermostOptionalChain = function(e) { + return !E(e.parent) || k(e.parent) || e !== e.parent.expression + }, d.isNullishCoalesce = function(e) { + return 223 === e.kind && 60 === e.operatorToken.kind + }, d.isConstTypeReference = function(e) { + return d.isTypeReferenceNode(e) && d.isIdentifier(e.typeName) && "const" === e.typeName.escapedText && !e.typeArguments + }, d.skipPartiallyEmittedExpressions = N, d.isNonNullChain = function(e) { + return d.isNonNullExpression(e) && !!(32 & e.flags) + }, d.isBreakOrContinueStatement = function(e) { + return 249 === e.kind || 248 === e.kind + }, d.isNamedExportBindings = function(e) { + return 277 === e.kind || 276 === e.kind + }, d.isUnparsedTextLike = q, d.isUnparsedNode = function(e) { + return q(e) || 303 === e.kind || 307 === e.kind + }, d.isJSDocPropertyLikeTag = function(e) { + return 350 === e.kind || 343 === e.kind + }, d.isNode = function(e) { + return W(e.kind) + }, d.isNodeKind = W, d.isTokenKind = H, d.isToken = function(e) { + return H(e.kind) + }, d.isNodeArray = function(e) { + return d.hasProperty(e, "pos") && d.hasProperty(e, "end") + }, d.isLiteralKind = G, d.isLiteralExpression = function(e) { + return G(e.kind) + }, d.isLiteralExpressionOfObject = function(e) { + switch (e.kind) { + case 207: + case 206: + case 13: + case 215: + case 228: + return !0 + } + return !1 + }, d.isTemplateLiteralKind = A, d.isTemplateLiteralToken = function(e) { + return A(e.kind) + }, d.isTemplateMiddleOrTemplateTail = function(e) { + return 16 === (e = e.kind) || 17 === e + }, d.isImportOrExportSpecifier = function(e) { + return d.isImportSpecifier(e) || d.isExportSpecifier(e) + }, d.isTypeOnlyImportOrExportDeclaration = function(e) { + switch (e.kind) { + case 273: + case 278: + return e.isTypeOnly || e.parent.parent.isTypeOnly; + case 271: + return e.parent.isTypeOnly; + case 270: + case 268: + return e.isTypeOnly; + default: + return !1 + } + }, d.isAssertionKey = function(e) { + return d.isStringLiteral(e) || d.isIdentifier(e) + }, d.isStringTextContainingNode = function(e) { + return 10 === e.kind || A(e.kind) + }, d.isGeneratedIdentifier = function(e) { + return d.isIdentifier(e) && 0 < (7 & e.autoGenerateFlags) + }, d.isGeneratedPrivateIdentifier = function(e) { + return d.isPrivateIdentifier(e) && 0 < (7 & e.autoGenerateFlags) + }, d.isPrivateIdentifierClassElementDeclaration = Q, d.isPrivateIdentifierPropertyAccessExpression = function(e) { + return d.isPropertyAccessExpression(e) && d.isPrivateIdentifier(e.name) + }, d.isModifierKind = X, d.isParameterPropertyModifier = Y, d.isClassMemberModifier = function(e) { + return Y(e) || 124 === e || 161 === e || 127 === e + }, d.isModifier = F, d.isEntityName = function(e) { + return 163 === (e = e.kind) || 79 === e + }, d.isPropertyName = function(e) { + return 79 === (e = e.kind) || 80 === e || 10 === e || 8 === e || 164 === e + }, d.isBindingName = function(e) { + return 79 === (e = e.kind) || 203 === e || 204 === e + }, d.isFunctionLike = P, d.isFunctionLikeOrClassStaticBlockDeclaration = function(e) { + return !!e && (w(e.kind) || d.isClassStaticBlockDeclaration(e)) + }, d.isFunctionLikeDeclaration = function(e) { + return e && Z(e.kind) + }, d.isBooleanLiteral = function(e) { + return 110 === e.kind || 95 === e.kind + }, d.isFunctionLikeKind = w, d.isFunctionOrModuleBlock = function(e) { + return d.isSourceFile(e) || d.isModuleBlock(e) || d.isBlock(e) && P(e.parent) + }, d.isClassElement = $, d.isClassLike = ee, d.isAccessor = function(e) { + return e && (174 === e.kind || 175 === e.kind) + }, d.isAutoAccessorPropertyDeclaration = function(e) { + return d.isPropertyDeclaration(e) && d.hasAccessorModifier(e) + }, d.isMethodOrAccessor = te, d.isNamedClassElement = function(e) { + switch (e.kind) { + case 171: + case 174: + case 175: + case 169: + return !0; + default: + return !1 + } + }, d.isModifierLike = function(e) { + return F(e) || d.isDecorator(e) + }, d.isTypeElement = re, d.isClassOrTypeElement = function(e) { + return re(e) || $(e) + }, d.isObjectLiteralElementLike = ne, d.isTypeNode = function(e) { + return d.isTypeNodeKind(e.kind) + }, d.isFunctionOrConstructorTypeNode = function(e) { + switch (e.kind) { + case 181: + case 182: + return !0 + } + return !1 + }, d.isBindingPattern = ie, d.isAssignmentPattern = function(e) { + return 206 === (e = e.kind) || 207 === e + }, d.isArrayBindingElement = function(e) { + return 205 === (e = e.kind) || 229 === e + }, d.isDeclarationBindingElement = function(e) { + switch (e.kind) { + case 257: + case 166: + case 205: + return !0 + } + return !1 + }, d.isBindingOrAssignmentPattern = function(e) { + return ae(e) || oe(e) + }, d.isObjectBindingOrAssignmentPattern = ae, d.isObjectBindingOrAssignmentElement = function(e) { + switch (e.kind) { + case 205: + case 299: + case 300: + case 301: + return !0 + } + return !1 + }, d.isArrayBindingOrAssignmentPattern = oe, d.isPropertyAccessOrQualifiedNameOrImportTypeNode = function(e) { + return 208 === (e = e.kind) || 163 === e || 202 === e + }, d.isPropertyAccessOrQualifiedName = function(e) { + return 208 === (e = e.kind) || 163 === e + }, d.isCallLikeExpression = function(e) { + switch (e.kind) { + case 283: + case 282: + case 210: + case 211: + case 212: + case 167: + return !0; + default: + return !1 + } + }, d.isCallOrNewExpression = function(e) { + return 210 === e.kind || 211 === e.kind + }, d.isTemplateLiteral = function(e) { + return 225 === (e = e.kind) || 14 === e + }, d.isLeftHandSideExpression = function(e) { + return se(N(e).kind) + }, d.isUnaryExpression = function(e) { + return ce(N(e).kind) + }, d.isUnaryExpressionWithWrite = function(e) { + switch (e.kind) { + case 222: + return !0; + case 221: + return 45 === e.operator || 46 === e.operator; + default: + return !1 + } + }, d.isExpression = I, d.isAssertionExpression = function(e) { + return 213 === (e = e.kind) || 231 === e + }, d.isNotEmittedOrPartiallyEmittedNode = function(e) { + return d.isNotEmittedStatement(e) || d.isPartiallyEmittedExpression(e) + }, d.isIterationStatement = function e(t, r) { + switch (t.kind) { + case 245: + case 246: + case 247: + case 243: + case 244: + return !0; + case 253: + return r && e(t.statement, r) + } + return !1 + }, d.isScopeMarker = le, d.hasScopeMarker = function(e) { + return d.some(e, le) + }, d.needsScopeMarker = function(e) { + return !(d.isAnyImportOrReExport(e) || d.isExportAssignment(e) || d.hasSyntacticModifier(e, 1) || d.isAmbientModule(e)) + }, d.isExternalModuleIndicator = function(e) { + return d.isAnyImportOrReExport(e) || d.isExportAssignment(e) || d.hasSyntacticModifier(e, 1) + }, d.isForInOrOfStatement = function(e) { + return 246 === e.kind || 247 === e.kind + }, d.isConciseBody = function(e) { + return d.isBlock(e) || I(e) + }, d.isFunctionBody = function(e) { + return d.isBlock(e) + }, d.isForInitializer = function(e) { + return d.isVariableDeclarationList(e) || I(e) + }, d.isModuleBody = function(e) { + return 265 === (e = e.kind) || 264 === e || 79 === e + }, d.isNamespaceBody = function(e) { + return 265 === (e = e.kind) || 264 === e + }, d.isJSDocNamespaceBody = function(e) { + return 79 === (e = e.kind) || 264 === e + }, d.isNamedImportBindings = function(e) { + return 272 === (e = e.kind) || 271 === e + }, d.isModuleOrEnumDeclaration = function(e) { + return 264 === e.kind || 263 === e.kind + }, d.isDeclaration = L, d.isDeclarationStatement = function(e) { + return O(e.kind) + }, d.isStatementButNotDeclaration = function(e) { + return M(e.kind) + }, d.isStatement = function(e) { + var t = e.kind; + return M(t) || O(t) || function(e) { + if (238 !== e.kind) return !1; + if (void 0 !== e.parent && (255 === e.parent.kind || 295 === e.parent.kind)) return !1; + return !d.isFunctionBlock(e) + }(e) + }, d.isStatementOrBlock = function(e) { + return M(e = e.kind) || O(e) || 238 === e + }, d.isModuleReference = function(e) { + return 280 === (e = e.kind) || 163 === e || 79 === e + }, d.isJsxTagNameExpression = function(e) { + return 108 === (e = e.kind) || 79 === e || 208 === e + }, d.isJsxChild = function(e) { + return 281 === (e = e.kind) || 291 === e || 282 === e || 11 === e || 285 === e + }, d.isJsxAttributeLike = function(e) { + return 288 === (e = e.kind) || 290 === e + }, d.isStringLiteralOrJsxExpression = function(e) { + return 10 === (e = e.kind) || 291 === e + }, d.isJsxOpeningLikeElement = function(e) { + return 283 === (e = e.kind) || 282 === e + }, d.isCaseOrDefaultClause = function(e) { + return 292 === (e = e.kind) || 293 === e + }, d.isJSDocNode = function(e) { + return 312 <= e.kind && e.kind <= 350 + }, d.isJSDocCommentContainingNode = function(e) { + return 323 === e.kind || 322 === e.kind || 324 === e.kind || de(e) || ue(e) || d.isJSDocTypeLiteral(e) || d.isJSDocSignature(e) + }, d.isJSDocTag = ue, d.isSetAccessor = function(e) { + return 175 === e.kind + }, d.isGetAccessor = function(e) { + return 174 === e.kind + }, d.hasJSDocNodes = function(e) { + return !!(e = e.jsDoc) && 0 < e.length + }, d.hasType = function(e) { + return !!e.type + }, d.hasInitializer = function(e) { + return !!e.initializer + }, d.hasOnlyExpressionInitializer = function(e) { + switch (e.kind) { + case 257: + case 166: + case 205: + case 169: + case 299: + case 302: + return !0; + default: + return !1 + } + }, d.isObjectLiteralElement = function(e) { + return 288 === e.kind || 290 === e.kind || ne(e) + }, d.isTypeReferenceType = function(e) { + return 180 === e.kind || 230 === e.kind + }; + var _e = 1073741823; + + function de(e) { + return 327 === e.kind || 328 === e.kind || 329 === e.kind + } + + function pe(e) { + var t = d.isJSDocParameterTag(e) ? e.typeExpression && e.typeExpression.type : e.type; + return void 0 !== e.dotDotDotToken || !!t && 321 === t.kind + } + d.guessIndentation = function(e) { + for (var t = _e, r = 0, n = e; r < n.length; r++) { + var i = n[r]; + if (i.length) { + for (var a = 0; a < i.length && a < t && d.isWhiteSpaceLike(i.charCodeAt(a)); a++); + if (0 === (t = a < t ? a : t)) return 0 + } + } + return t === _e ? void 0 : t + }, d.isStringLiteralLike = function(e) { + return 10 === e.kind || 14 === e.kind + }, d.isJSDocLinkLike = de, d.hasRestParameter = function(e) { + return !!(e = d.lastOrUndefined(e.parameters)) && pe(e) + }, d.isRestParameter = pe + }(ts = ts || {}), ! function(S) { + S.resolvingEmptyArray = [], S.externalHelpersModuleNameText = "tslib", S.defaultMaximumTruncationLength = 160, S.noTruncationMaximumTruncationLength = 1e6, S.getDeclarationOfKind = function(e, t) { + if (e = e.declarations) + for (var r = 0, n = e; r < n.length; r++) { + var i = n[r]; + if (i.kind === t) return i + } + }, S.getDeclarationsOfKind = function(e, t) { + return S.filter(e.declarations || S.emptyArray, function(e) { + return e.kind === t + }) + }, S.createSymbolTable = function(e) { + var t = new S.Map; + if (e) + for (var r = 0, n = e; r < n.length; r++) { + var i = n[r]; + t.set(i.escapedName, i) + } + return t + }, S.isTransientSymbol = function(e) { + return 0 != (33554432 & e.flags) + }; + t = ""; + var t, r = { + getText: function() { + return t + }, + write: n, + rawWrite: n, + writeKeyword: n, + writeOperator: n, + writePunctuation: n, + writeSpace: n, + writeStringLiteral: n, + writeLiteral: n, + writeParameter: n, + writeProperty: n, + writeSymbol: function(e, t) { + return n(e) + }, + writeTrailingSemicolon: n, + writeComment: n, + getTextPos: function() { + return t.length + }, + getLine: function() { + return 0 + }, + getColumn: function() { + return 0 + }, + getIndent: function() { + return 0 + }, + isAtStartOfLine: function() { + return !1 + }, + hasTrailingComment: function() { + return !1 + }, + hasTrailingWhitespace: function() { + return !!t.length && S.isWhiteSpaceLike(t.charCodeAt(t.length - 1)) + }, + writeLine: function() { + return t += " " + }, + increaseIndent: S.noop, + decreaseIndent: S.noop, + clear: function() { + return t = "" + }, + trackSymbol: function() { + return !1 + }, + reportInaccessibleThisError: S.noop, + reportInaccessibleUniqueSymbolError: S.noop, + reportPrivateInBaseOfClassExpression: S.noop + }; + + function n(e) { + return t += e + } + + function L(e, t) { + return i(e, t, S.moduleResolutionOptionDeclarations) + } + + function i(t, r, e) { + return t !== r && e.some(function(e) { + return !li(Pn(t, e), Pn(r, e)) + }) + } + + function R(e) { + return e.end - e.pos + } + + function B(e) { + var t = e.name, + e = e.subModuleName; + return e ? "".concat(t, "/").concat(e) : t + } + + function j(e) { + var t; + return 1048576 & (t = e).flags || (0 == (131072 & t.flags) && !S.forEachChild(t, j) || (t.flags |= 524288), t.flags |= 1048576), 0 != (524288 & e.flags) + } + + function o(e) { + for (; e && 308 !== e.kind;) e = e.parent; + return e + } + + function J(e, t) { + S.Debug.assert(0 <= e); + var r = S.getLineStarts(t), + n = t.text; + if (e + 1 === r.length) return n.length - 1; + var i = r[e], + a = r[e + 1] - 1; + for (S.Debug.assert(S.isLineBreak(n.charCodeAt(a))); i <= a && S.isLineBreak(n.charCodeAt(a));) a--; + return a + } + + function l(e) { + return void 0 === e || e.pos === e.end && 0 <= e.pos && 1 !== e.kind + } + + function z(e) { + return !l(e) + } + + function U(e, t, r) { + if (void 0 !== t && 0 !== t.length) { + for (var n = 0; n < e.length && r(e[n]); ++n); + e.splice.apply(e, __spreadArray([n, 0], t, !1)) + } + return e + } + + function K(e, t, r) { + if (void 0 !== t) { + for (var n = 0; n < e.length && r(e[n]); ++n); + e.splice(n, 0, t) + } + return e + } + + function V(e) { + return ve(e) || !!(1048576 & s(e)) + } + + function q(e, t) { + return 42 === e.charCodeAt(t + 1) && 33 === e.charCodeAt(t + 2) + } + + function a(e, t, r) { + return l(e) ? e.pos : S.isJSDocNode(e) || 11 === e.kind ? S.skipTrivia((t || o(e)).text, e.pos, !1, !0) : r && S.hasJSDocNodes(e) ? a(e.jsDoc[0], t) : 351 === e.kind && 0 < e._children.length ? a(e._children[0], t, r) : S.skipTrivia((t || o(e)).text, e.pos, !1, !1, Ke(e)) + } + + function W(e, t, r) { + return H(e.text, t, r = void 0 === r ? !1 : r) + } + + function H(e, t, r) { + return l(t) ? "" : (r = e.substring((r = void 0 === r ? !1 : r) ? t.pos : S.skipTrivia(e, t.pos), t.end), S.findAncestor(t, S.isJSDocTypeExpression) ? r.split(/\r\n|\n|\r/).map(function(e) { + return S.trimStringStart(e.replace(/^\s*\*/, "")) + }).join("\n") : r) + } + + function G(e, t) { + return void 0 === t && (t = !1), W(o(e), e, t) + } + + function Q(e) { + return e.pos + } + + function s(e) { + e = e.emitNode; + return e && e.flags || 0 + } + + function X(e) { + e = zt(e); + return 257 === e.kind && 295 === e.parent.kind + } + + function Y(e) { + return S.isModuleDeclaration(e) && (10 === e.name.kind || $(e)) + } + + function Z(e) { + return S.isModuleDeclaration(e) || S.isIdentifier(e) + } + + function $(e) { + return !!(1024 & e.flags) + } + + function ee(e) { + return Y(e) && te(e) + } + + function te(e) { + switch (e.parent.kind) { + case 308: + return S.isExternalModule(e.parent); + case 265: + return Y(e.parent.parent) && S.isSourceFile(e.parent.parent.parent) && !S.isExternalModule(e.parent.parent.parent) + } + return !1 + } + + function re(e) { + return null == (e = e.declarations) ? void 0 : e.find(function(e) { + return !(ee(e) || S.isModuleDeclaration(e) && $(e)) + }) + } + + function ne(e, t) { + switch (e.kind) { + case 308: + case 266: + case 295: + case 264: + case 245: + case 246: + case 247: + case 173: + case 171: + case 174: + case 175: + case 259: + case 215: + case 216: + case 169: + case 172: + return !0; + case 238: + return !S.isFunctionLikeOrClassStaticBlockDeclaration(t) + } + return !1 + } + + function ie(e) { + switch (e.kind) { + case 176: + case 177: + case 170: + case 178: + case 181: + case 182: + case 320: + case 260: + case 228: + case 261: + case 262: + case 347: + case 259: + case 171: + case 173: + case 174: + case 175: + case 215: + case 216: + return !0; + default: + return S.assertType(e), !1 + } + } + + function ae(e) { + switch (e.kind) { + case 269: + case 268: + return !0; + default: + return !1 + } + } + + function oe(e) { + return ae(e) || S.isExportDeclaration(e) + } + + function se(e) { + return S.findAncestor(e.parent, function(e) { + return ne(e, e.parent) + }) + } + + function ce(e) { + return e && 0 !== R(e) ? G(e) : "(Missing)" + } + + function le(e) { + switch (e.kind) { + case 79: + case 80: + return e.autoGenerateFlags ? void 0 : e.escapedText; + case 10: + case 8: + case 14: + return S.escapeLeadingUnderscores(e.text); + case 164: + return v(e.expression) ? S.escapeLeadingUnderscores(e.expression.text) : void 0; + default: + return S.Debug.assertNever(e) + } + } + + function c(e) { + switch (e.kind) { + case 108: + return "this"; + case 80: + case 79: + return 0 === R(e) ? S.idText(e) : G(e); + case 163: + return c(e.left) + "." + c(e.right); + case 208: + return S.isIdentifier(e.name) || S.isPrivateIdentifier(e.name) ? c(e.expression) + "." + c(e.name) : S.Debug.assertNever(e.name); + case 314: + return c(e.left) + c(e.right); + default: + return S.Debug.assertNever(e) + } + } + + function ue(e, t, r, n, i, a, o) { + t = fe(e, t); + return yn(e, t.start, t.length, r, n, i, a, o) + } + + function _e(e, t, r) { + S.Debug.assertGreaterThanOrEqual(t, 0), S.Debug.assertGreaterThanOrEqual(r, 0), e && (S.Debug.assertLessThanOrEqual(t, e.text.length), S.Debug.assertLessThanOrEqual(t + r, e.text.length)) + } + + function de(e, t, r, n, i) { + return _e(e, t, r), { + file: e, + start: t, + length: r, + code: n.code, + category: n.category, + messageText: n.next ? n : n.messageText, + relatedInformation: i + } + } + + function pe(e, t) { + e = S.createScanner(e.languageVersion, !0, e.languageVariant, e.text, void 0, t), e.scan(), t = e.getTokenPos(); + return S.createTextSpanFromBounds(t, e.getTextPos()) + } + + function fe(e, t) { + var r = t; + switch (t.kind) { + case 308: + var n = S.skipTrivia(e.text, 0, !1); + return n === e.text.length ? S.createTextSpan(0, 0) : pe(e, n); + case 257: + case 205: + case 260: + case 228: + case 261: + case 264: + case 263: + case 302: + case 259: + case 215: + case 171: + case 174: + case 175: + case 262: + case 169: + case 168: + case 271: + r = t.name; + break; + case 216: + var n = e, + i = t, + a = S.skipTrivia(n.text, i.pos); + if (i.body && 238 === i.body.kind) { + var o = S.getLineAndCharacterOfPosition(n, i.body.pos).line; + if (o < S.getLineAndCharacterOfPosition(n, i.body.end).line) return S.createTextSpan(a, J(o, n) - a + 1) + } + return S.createTextSpanFromBounds(a, i.end); + case 292: + case 293: + o = S.skipTrivia(e.text, t.pos), a = 0 < t.statements.length ? t.statements[0].pos : t.end; + return S.createTextSpanFromBounds(o, a) + } + if (void 0 === r) return pe(e, t.pos); + S.Debug.assert(!S.isJSDoc(r)); + var s = l(r), + c = s || S.isJsxText(t) ? r.pos : S.skipTrivia(e.text, r.pos); + return s ? (S.Debug.assert(c === r.pos, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"), S.Debug.assert(c === r.end, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")) : (S.Debug.assert(c >= r.pos, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"), S.Debug.assert(c <= r.end, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")), S.createTextSpanFromBounds(c, r.end) + } + + function ge(e) { + return 6 === e.scriptKind + } + + function me(e) { + return !!(2 & S.getCombinedNodeFlags(e)) + } + + function ye(e) { + return 210 === e.kind && 100 === e.expression.kind + } + + function he(e) { + return S.isImportTypeNode(e) && S.isLiteralTypeNode(e.argument) && S.isStringLiteral(e.argument.literal) + } + + function ve(e) { + return 241 === e.kind && 10 === e.expression.kind + } + + function be(e) { + return !!(1048576 & s(e)) + } + + function xe(e) { + return S.isIdentifier(e.name) && !e.initializer + } + S.changesAffectModuleResolution = function(e, t) { + return e.configFilePath !== t.configFilePath || L(e, t) + }, S.optionsHaveModuleResolutionChanges = L, S.changesAffectingProgramStructure = function(e, t) { + return i(e, t, S.optionsAffectingProgramStructure) + }, S.optionsHaveChanges = i, S.forEachAncestor = function(e, t) { + for (;;) { + var r = t(e); + if ("quit" === r) return; + if (void 0 !== r) return r; + if (S.isSourceFile(e)) return; + e = e.parent + } + }, S.forEachEntry = function(e, t) { + for (var r = e.entries(), n = r.next(); !n.done; n = r.next()) { + var i = n.value, + a = i[0], + i = t(i[1], a); + if (i) return i + } + }, S.forEachKey = function(e, t) { + for (var r = e.keys(), n = r.next(); !n.done; n = r.next()) { + var i = t(n.value); + if (i) return i + } + }, S.copyEntries = function(e, r) { + e.forEach(function(e, t) { + r.set(t, e) + }) + }, S.usingSingleLineStringWriter = function(e) { + var t = r.getText(); + try { + return e(r), r.getText() + } finally { + r.clear(), r.writeKeyword(t) + } + }, S.getFullWidth = R, S.getResolvedModule = function(e, t, r) { + return e && e.resolvedModules && e.resolvedModules.get(t, r) + }, S.setResolvedModule = function(e, t, r, n) { + e.resolvedModules || (e.resolvedModules = S.createModeAwareCache()), e.resolvedModules.set(t, n, r) + }, S.setResolvedTypeReferenceDirective = function(e, t, r) { + e.resolvedTypeReferenceDirectiveNames || (e.resolvedTypeReferenceDirectiveNames = S.createModeAwareCache()), e.resolvedTypeReferenceDirectiveNames.set(t, void 0, r) + }, S.projectReferenceIsEqualTo = function(e, t) { + return e.path === t.path && !e.prepend == !t.prepend && !e.circular == !t.circular + }, S.moduleResolutionIsEqualTo = function(e, t) { + return e.isExternalLibraryImport === t.isExternalLibraryImport && e.extension === t.extension && e.resolvedFileName === t.resolvedFileName && e.originalPath === t.originalPath && (e = e.packageId, t = t.packageId, e === t || !!e && !!t && e.name === t.name && e.subModuleName === t.subModuleName && e.version === t.version) + }, S.packageIdToPackageName = B, S.packageIdToString = function(e) { + return "".concat(B(e), "@").concat(e.version) + }, S.typeDirectiveIsEqualTo = function(e, t) { + return e.resolvedFileName === t.resolvedFileName && e.primary === t.primary && e.originalPath === t.originalPath + }, S.hasChangesInResolutions = function(e, t, r, n, i) { + S.Debug.assert(e.length === t.length); + for (var a = 0; a < e.length; a++) { + var o = t[a], + s = e[a], + c = S.isString(s) ? s : s.fileName.toLowerCase(), + s = S.isString(s) ? n && S.getModeForResolutionAtIndex(n, a) : S.getModeForFileReference(s, null == n ? void 0 : n.impliedNodeFormat), + c = r && r.get(c, s); + if (c ? !o || !i(c, o) : o) return !0 + } + return !1 + }, S.containsParseError = j, S.getSourceFileOfNode = o, S.getSourceFileOfModule = function(e) { + return o(e.valueDeclaration || re(e)) + }, S.isPlainJsFile = function(e, t) { + return !(!e || 1 !== e.scriptKind && 2 !== e.scriptKind || e.checkJsDirective || void 0 !== t) + }, S.isStatementWithLocals = function(e) { + switch (e.kind) { + case 238: + case 266: + case 245: + case 246: + case 247: + return !0 + } + return !1 + }, S.getStartPositionOfLine = function(e, t) { + return S.Debug.assert(0 <= e), S.getLineStarts(t)[e] + }, S.nodePosToString = function(e) { + var t = o(e), + e = S.getLineAndCharacterOfPosition(t, e.pos); + return "".concat(t.fileName, "(").concat(e.line + 1, ",").concat(e.character + 1, ")") + }, S.getEndLinePosition = J, S.isFileLevelUniqueName = function(e, t, r) { + return !(r && r(t) || e.identifiers.has(t)) + }, S.nodeIsMissing = l, S.nodeIsPresent = z, S.insertStatementsAfterStandardPrologue = function(e, t) { + return U(e, t, ve) + }, S.insertStatementsAfterCustomPrologue = function(e, t) { + return U(e, t, V) + }, S.insertStatementAfterStandardPrologue = function(e, t) { + return K(e, t, ve) + }, S.insertStatementAfterCustomPrologue = function(e, t) { + return K(e, t, V) + }, S.isRecognizedTripleSlashComment = function(e, t, r) { + return 47 === e.charCodeAt(t + 1) && t + 2 < r && 47 === e.charCodeAt(t + 2) && (e = e.substring(t, r), !!(S.fullTripleSlashReferencePathRegEx.test(e) || S.fullTripleSlashAMDReferencePathRegEx.test(e) || De.test(e) || Se.test(e))) + }, S.isPinnedComment = q, S.createCommentDirectivesMap = function(t, e) { + var r = new S.Map(e.map(function(e) { + return ["".concat(S.getLineAndCharacterOfPosition(t, e.range.end).line), e] + })), + n = new S.Map; + return { + getUnusedExpectations: function() { + return S.arrayFrom(r.entries()).filter(function(e) { + var t = e[0]; + return 0 === e[1].type && !n.get(t) + }).map(function(e) { + e[0]; + return e[1] + }) + }, + markUsed: function(e) { + return !!r.has("".concat(e)) && (n.set("".concat(e), !0), !0) + } + } + }, S.getTokenPosOfNode = a, S.getNonDecoratorTokenPosOfNode = function(e, t) { + var r = !l(e) && S.canHaveModifiers(e) ? S.findLast(e.modifiers, S.isDecorator) : void 0; + return r ? S.skipTrivia((t || o(e)).text, r.end) : a(e, t) + }, S.getSourceTextOfNodeFromSourceFile = W, S.isExportNamespaceAsDefaultDeclaration = function(e) { + return !!(S.isExportDeclaration(e) && e.exportClause && S.isNamespaceExport(e.exportClause) && "default" === e.exportClause.name.escapedText) + }, S.getTextOfNodeFromSourceText = H, S.getTextOfNode = G, S.indexOfNode = function(e, t) { + return S.binarySearch(e, t, Q, S.compareValues) + }, S.getEmitFlags = s, S.getScriptTargetFeatures = function() { + return { + es2015: { + Array: ["find", "findIndex", "fill", "copyWithin", "entries", "keys", "values"], + RegExp: ["flags", "sticky", "unicode"], + Reflect: ["apply", "construct", "defineProperty", "deleteProperty", "get", " getOwnPropertyDescriptor", "getPrototypeOf", "has", "isExtensible", "ownKeys", "preventExtensions", "set", "setPrototypeOf"], + ArrayConstructor: ["from", "of"], + ObjectConstructor: ["assign", "getOwnPropertySymbols", "keys", "is", "setPrototypeOf"], + NumberConstructor: ["isFinite", "isInteger", "isNaN", "isSafeInteger", "parseFloat", "parseInt"], + Math: ["clz32", "imul", "sign", "log10", "log2", "log1p", "expm1", "cosh", "sinh", "tanh", "acosh", "asinh", "atanh", "hypot", "trunc", "fround", "cbrt"], + Map: ["entries", "keys", "values"], + Set: ["entries", "keys", "values"], + Promise: S.emptyArray, + PromiseConstructor: ["all", "race", "reject", "resolve"], + Symbol: ["for", "keyFor"], + WeakMap: ["entries", "keys", "values"], + WeakSet: ["entries", "keys", "values"], + Iterator: S.emptyArray, + AsyncIterator: S.emptyArray, + String: ["codePointAt", "includes", "endsWith", "normalize", "repeat", "startsWith", "anchor", "big", "blink", "bold", "fixed", "fontcolor", "fontsize", "italics", "link", "small", "strike", "sub", "sup"], + StringConstructor: ["fromCodePoint", "raw"] + }, + es2016: { + Array: ["includes"] + }, + es2017: { + Atomics: S.emptyArray, + SharedArrayBuffer: S.emptyArray, + String: ["padStart", "padEnd"], + ObjectConstructor: ["values", "entries", "getOwnPropertyDescriptors"], + DateTimeFormat: ["formatToParts"] + }, + es2018: { + Promise: ["finally"], + RegExpMatchArray: ["groups"], + RegExpExecArray: ["groups"], + RegExp: ["dotAll"], + Intl: ["PluralRules"], + AsyncIterable: S.emptyArray, + AsyncIterableIterator: S.emptyArray, + AsyncGenerator: S.emptyArray, + AsyncGeneratorFunction: S.emptyArray, + NumberFormat: ["formatToParts"] + }, + es2019: { + Array: ["flat", "flatMap"], + ObjectConstructor: ["fromEntries"], + String: ["trimStart", "trimEnd", "trimLeft", "trimRight"], + Symbol: ["description"] + }, + es2020: { + BigInt: S.emptyArray, + BigInt64Array: S.emptyArray, + BigUint64Array: S.emptyArray, + PromiseConstructor: ["allSettled"], + SymbolConstructor: ["matchAll"], + String: ["matchAll"], + DataView: ["setBigInt64", "setBigUint64", "getBigInt64", "getBigUint64"], + RelativeTimeFormat: ["format", "formatToParts", "resolvedOptions"] + }, + es2021: { + PromiseConstructor: ["any"], + String: ["replaceAll"] + }, + es2022: { + Array: ["at"], + String: ["at"], + Int8Array: ["at"], + Uint8Array: ["at"], + Uint8ClampedArray: ["at"], + Int16Array: ["at"], + Uint16Array: ["at"], + Int32Array: ["at"], + Uint32Array: ["at"], + Float32Array: ["at"], + Float64Array: ["at"], + BigInt64Array: ["at"], + BigUint64Array: ["at"], + ObjectConstructor: ["hasOwn"], + Error: ["cause"] + } + } + }, (e = S.GetLiteralTextFlags || (S.GetLiteralTextFlags = {}))[e.None = 0] = "None", e[e.NeverAsciiEscape = 1] = "NeverAsciiEscape", e[e.JsxAttributeEscape = 2] = "JsxAttributeEscape", e[e.TerminateUnterminatedLiterals = 4] = "TerminateUnterminatedLiterals", e[e.AllowNumericSeparator = 8] = "AllowNumericSeparator", S.getLiteralText = function(e, t, r) { + var n; + if (t && function(e, t) { + if (Ut(e) || !e.parent || 4 & t && e.isUnterminated) return; + if (S.isNumericLiteral(e) && 512 & e.numericLiteralFlags) return 8 & t; + return !S.isBigIntLiteral(e) + }(e, r)) return W(t, e); + switch (e.kind) { + case 10: + var i = 2 & r ? sr : 1 & r || 16777216 & s(e) ? er : rr; + return e.singleQuote ? "'" + i(e.text, 39) + "'" : '"' + i(e.text, 34) + '"'; + case 14: + case 15: + case 16: + case 17: + var i = 1 & r || 16777216 & s(e) ? er : rr, + a = null != (n = e.rawText) ? n : i(e.text, 96).replace(Ht, "\\${"); + switch (e.kind) { + case 14: + return "`" + a + "`"; + case 15: + return "`" + a + "${"; + case 16: + return "}" + a + "${"; + case 17: + return "}" + a + "`" + } + break; + case 8: + case 9: + return e.text; + case 13: + return 4 & r && e.isUnterminated ? e.text + (92 === e.text.charCodeAt(e.text.length - 1) ? " /" : "/") : e.text + } + return S.Debug.fail("Literal kind '".concat(e.kind, "' not accounted for.")) + }, S.getTextOfConstantValue = function(e) { + return S.isString(e) ? '"' + rr(e) + '"' : "" + e + }, S.makeIdentifierFromModuleName = function(e) { + return S.getBaseFileName(e).replace(/^(\d)/, "_$1").replace(/\W/g, "_") + }, S.isBlockOrCatchScoped = function(e) { + return 0 != (3 & S.getCombinedNodeFlags(e)) || X(e) + }, S.isCatchClauseVariableDeclarationOrBindingElement = X, S.isAmbientModule = Y, S.isModuleWithStringLiteralName = function(e) { + return S.isModuleDeclaration(e) && 10 === e.name.kind + }, S.isNonGlobalAmbientModule = function(e) { + return S.isModuleDeclaration(e) && S.isStringLiteral(e.name) + }, S.isEffectiveModuleDeclaration = Z, S.isShorthandAmbientModuleSymbol = function(e) { + return !!(e = e.valueDeclaration) && 264 === e.kind && !e.body + }, S.isBlockScopedContainerTopLevel = function(e) { + return 308 === e.kind || 264 === e.kind || S.isFunctionLikeOrClassStaticBlockDeclaration(e) + }, S.isGlobalScopeAugmentation = $, S.isExternalModuleAugmentation = ee, S.isModuleAugmentationExternal = te, S.getNonAugmentationDeclaration = re, S.isEffectiveExternalModule = function(e, t) { + return S.isExternalModule(e) || t.isolatedModules || ((t = O(t)) === S.ModuleKind.CommonJS || t === S.ModuleKind.Node16 || t === S.ModuleKind.NodeNext) && !!e.commonJsModuleIndicator + }, S.isEffectiveStrictModeSourceFile = function(e, t) { + switch (e.scriptKind) { + case 1: + case 3: + case 2: + case 4: + break; + default: + return !1 + } + return !(e.isDeclarationFile || !An(t, "alwaysStrict") && !S.startsWithUseStrict(e.statements) && (!S.isExternalModule(e) && !t.isolatedModules || !(O(t) >= S.ModuleKind.ES2015) && t.noImplicitUseStrict)) + }, S.isAmbientPropertyDeclaration = function(e) { + return !!(16777216 & e.flags) || T(e, 2) + }, S.isBlockScope = ne, S.isDeclarationWithTypeParameters = function(e) { + switch (e.kind) { + case 341: + case 348: + case 326: + return !0; + default: + return S.assertType(e), ie(e) + } + }, S.isDeclarationWithTypeParameterChildren = ie, S.isAnyImportSyntax = ae, S.isAnyImportOrBareOrAccessedRequire = function(e) { + return ae(e) || We(e) + }, S.isLateVisibilityPaintedStatement = function(e) { + switch (e.kind) { + case 269: + case 268: + case 240: + case 260: + case 259: + case 264: + case 262: + case 261: + case 263: + return !0; + default: + return !1 + } + }, S.hasPossibleExternalModuleReference = function(e) { + return oe(e) || S.isModuleDeclaration(e) || S.isImportTypeNode(e) || ye(e) + }, S.isAnyImportOrReExport = oe, S.getEnclosingBlockScopeContainer = se, S.forEachEnclosingBlockScopeContainer = function(e, t) { + for (var r = se(e); r;) t(r), r = se(r) + }, S.declarationNameToString = ce, S.getNameFromIndexInfo = function(e) { + return e.declaration ? ce(e.declaration.parameters[0].name) : void 0 + }, S.isComputedNonLiteralName = function(e) { + return 164 === e.kind && !v(e.expression) + }, S.tryGetTextOfPropertyName = le, S.getTextOfPropertyName = function(e) { + return S.Debug.checkDefined(le(e)) + }, S.entityNameToString = c, S.createDiagnosticForNode = function(e, t, r, n, i, a) { + return ue(o(e), e, t, r, n, i, a) + }, S.createDiagnosticForNodeArray = function(e, t, r, n, i, a, o) { + var s = S.skipTrivia(e.text, t.pos); + return yn(e, s, t.end - s, r, n, i, a, o) + }, S.createDiagnosticForNodeInSourceFile = ue, S.createDiagnosticForNodeFromMessageChain = function(e, t, r) { + var n = o(e), + e = fe(n, e); + return de(n, e.start, e.length, t, r) + }, S.createFileDiagnosticFromMessageChain = de, S.createDiagnosticForFileFromMessageChain = function(e, t, r) { + return { + file: e, + start: 0, + length: 0, + code: t.code, + category: t.category, + messageText: t.next ? t : t.messageText, + relatedInformation: r + } + }, S.createDiagnosticMessageChainFromDiagnostic = function(e) { + return "string" == typeof e.messageText ? { + code: e.code, + category: e.category, + messageText: e.messageText, + next: e.next + } : e.messageText + }, S.createDiagnosticForRange = function(e, t, r) { + return { + file: e, + start: t.pos, + length: t.end - t.pos, + code: r.code, + category: r.category, + messageText: r.message + } + }, S.getSpanOfTokenAtPosition = pe, S.getErrorSpanForNode = fe, S.isExternalOrCommonJsModule = function(e) { + return void 0 !== (e.externalModuleIndicator || e.commonJsModuleIndicator) + }, S.isJsonSourceFile = ge, S.isEnumConst = function(e) { + return !!(2048 & S.getCombinedModifierFlags(e)) + }, S.isDeclarationReadonly = function(e) { + return !(!(64 & S.getCombinedModifierFlags(e)) || S.isParameterPropertyDeclaration(e, e.parent)) + }, S.isVarConst = me, S.isLet = function(e) { + return !!(1 & S.getCombinedNodeFlags(e)) + }, S.isSuperCall = function(e) { + return 210 === e.kind && 106 === e.expression.kind + }, S.isImportCall = ye, S.isImportMeta = function(e) { + return S.isMetaProperty(e) && 100 === e.keywordToken && "meta" === e.name.escapedText + }, S.isLiteralImportTypeNode = he, S.isPrologueDirective = ve, S.isCustomPrologue = be, S.isHoistedFunction = function(e) { + return be(e) && S.isFunctionDeclaration(e) + }, S.isHoistedVariableStatement = function(e) { + return be(e) && S.isVariableStatement(e) && S.every(e.declarationList.declarations, xe) + }, S.getLeadingCommentRangesOfNode = function(e, t) { + return 11 !== e.kind ? S.getLeadingCommentRanges(t.text, e.pos) : void 0 + }, S.getJSDocCommentRanges = function(e, t) { + return e = 166 === e.kind || 165 === e.kind || 215 === e.kind || 216 === e.kind || 214 === e.kind || 257 === e.kind || 278 === e.kind ? S.concatenate(S.getTrailingCommentRanges(t, e.pos), S.getLeadingCommentRanges(t, e.pos)) : S.getLeadingCommentRanges(t, e.pos), S.filter(e, function(e) { + return 42 === t.charCodeAt(e.pos + 1) && 42 === t.charCodeAt(e.pos + 2) && 47 !== t.charCodeAt(e.pos + 3) + }) + }, S.fullTripleSlashReferencePathRegEx = /^(\/\/\/\s*/; + var e, De = /^(\/\/\/\s*/, + Se = (S.fullTripleSlashAMDReferencePathRegEx = /^(\/\/\/\s*/, /^(\/\/\/\s*/); + + function Te(e) { + if (179 <= e.kind && e.kind <= 202) return !0; + switch (e.kind) { + case 131: + case 157: + case 148: + case 160: + case 152: + case 134: + case 153: + case 149: + case 155: + case 144: + return !0; + case 114: + return 219 !== e.parent.kind; + case 230: + return S.isHeritageClause(e.parent) && !Gr(e); + case 165: + return 197 === e.parent.kind || 192 === e.parent.kind; + case 79: + (163 === e.parent.kind && e.parent.right === e || 208 === e.parent.kind && e.parent.name === e) && (e = e.parent), S.Debug.assert(79 === e.kind || 163 === e.kind || 208 === e.kind, "'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'."); + case 163: + case 208: + case 108: + var t = e.parent; + if (183 === t.kind) return !1; + if (202 === t.kind) return !t.isTypeOf; + if (179 <= t.kind && t.kind <= 202) return !0; + switch (t.kind) { + case 230: + return S.isHeritageClause(t.parent) && !Gr(t); + case 165: + case 347: + return e === t.constraint; + case 169: + case 168: + case 166: + case 257: + return e === t.type; + case 259: + case 215: + case 216: + case 173: + case 171: + case 170: + case 174: + case 175: + return e === t.type; + case 176: + case 177: + case 178: + case 213: + return e === t.type; + case 210: + case 211: + return S.contains(t.typeArguments, e); + case 212: + return !1 + } + } + return !1 + } + + function Ce(e) { + if (e) switch (e.kind) { + case 205: + case 302: + case 166: + case 299: + case 169: + case 168: + case 300: + case 257: + return !0 + } + return !1 + } + + function Ee(e) { + return 258 === e.parent.kind && 240 === e.parent.parent.kind + } + + function ke(e) { + return !!u(e) && S.isBinaryExpression(e) && 1 === p(e) + } + + function Ne(e, t, r) { + return e.properties.filter(function(e) { + return 299 === e.kind && (e = le(e.name), t === e || !!r && r === e) + }) + } + + function Ae(e) { + if (e && e.statements.length) return e = e.statements[0].expression, S.tryCast(e, S.isObjectLiteralExpression) + } + + function Fe(e, t) { + e = Ae(e); + return e ? Ne(e, t) : S.emptyArray + } + + function Pe(e, t) { + for (S.Debug.assert(308 !== e.kind);;) { + if (!(e = e.parent)) return S.Debug.fail(); + switch (e.kind) { + case 164: + if (S.isClassLike(e.parent.parent)) return e; + e = e.parent; + break; + case 167: + 166 === e.parent.kind && S.isClassElement(e.parent.parent) ? e = e.parent.parent : S.isClassElement(e.parent) && (e = e.parent); + break; + case 216: + if (!t) continue; + case 259: + case 215: + case 264: + case 172: + case 169: + case 168: + case 171: + case 170: + case 173: + case 174: + case 175: + case 176: + case 177: + case 178: + case 263: + case 308: + return e + } + } + } + + function we(e) { + var t = e.kind; + return (208 === t || 209 === t) && 106 === e.expression.kind + } + + function Ie(e, t, r) { + if (!S.isNamedDeclaration(e) || !S.isPrivateIdentifier(e.name)) switch (e.kind) { + case 260: + return !0; + case 169: + return 260 === t.kind; + case 174: + case 175: + case 171: + return void 0 !== e.body && 260 === t.kind; + case 166: + return void 0 !== t.body && (173 === t.kind || 171 === t.kind || 175 === t.kind) && 260 === r.kind + } + return !1 + } + + function Oe(e, t, r) { + return Ir(e) && Ie(e, t, r) + } + + function Me(e, t, r) { + return Oe(e, t, r) || Le(e, t) + } + + function Le(t, r) { + switch (t.kind) { + case 260: + return S.some(t.members, function(e) { + return Me(e, t, r) + }); + case 171: + case 175: + case 173: + return S.some(t.parameters, function(e) { + return Oe(e, t, r) + }); + default: + return !1 + } + } + + function Re(e) { + var t = e.parent; + return (283 === t.kind || 282 === t.kind || 284 === t.kind) && t.tagName === e + } + + function Be(e) { + switch (e.kind) { + case 106: + case 104: + case 110: + case 95: + case 13: + case 206: + case 207: + case 208: + case 209: + case 210: + case 211: + case 212: + case 231: + case 213: + case 235: + case 232: + case 214: + case 215: + case 228: + case 216: + case 219: + case 217: + case 218: + case 221: + case 222: + case 223: + case 224: + case 227: + case 225: + case 229: + case 281: + case 282: + case 285: + case 226: + case 220: + case 233: + return !0; + case 230: + return !S.isHeritageClause(e.parent); + case 163: + for (; 163 === e.parent.kind;) e = e.parent; + return 183 === e.parent.kind || S.isJSDocLinkLike(e.parent) || S.isJSDocNameReference(e.parent) || S.isJSDocMemberName(e.parent) || Re(e); + case 314: + for (; S.isJSDocMemberName(e.parent);) e = e.parent; + return 183 === e.parent.kind || S.isJSDocLinkLike(e.parent) || S.isJSDocNameReference(e.parent) || S.isJSDocMemberName(e.parent) || Re(e); + case 80: + return S.isBinaryExpression(e.parent) && e.parent.left === e && 101 === e.parent.operatorToken.kind; + case 79: + if (183 === e.parent.kind || S.isJSDocLinkLike(e.parent) || S.isJSDocNameReference(e.parent) || S.isJSDocMemberName(e.parent) || Re(e)) return !0; + case 8: + case 9: + case 10: + case 14: + case 108: + return je(e); + default: + return !1 + } + } + + function je(e) { + var t = e.parent; + switch (t.kind) { + case 257: + case 166: + case 169: + case 168: + case 302: + case 299: + case 205: + return t.initializer === e; + case 241: + case 242: + case 243: + case 244: + case 250: + case 251: + case 252: + case 292: + case 254: + return t.expression === e; + case 245: + return t.initializer === e && 258 !== t.initializer.kind || t.condition === e || t.incrementor === e; + case 246: + case 247: + return t.initializer === e && 258 !== t.initializer.kind || t.expression === e; + case 213: + case 231: + case 236: + case 164: + return e === t.expression; + case 167: + case 291: + case 290: + case 301: + return !0; + case 230: + return t.expression === e && !Te(t); + case 300: + return t.objectAssignmentInitializer === e; + case 235: + return e === t.expression; + default: + return Be(t) + } + } + + function Je(e) { + for (; 163 === e.kind || 79 === e.kind;) e = e.parent; + return 183 === e.kind + } + + function ze(e) { + return 268 === e.kind && 280 === e.moduleReference.kind + } + + function Ue(e) { + return u(e) + } + + function u(e) { + return !!e && !!(262144 & e.flags) + } + + function Ke(e) { + return !!e && !!(8388608 & e.flags) + } + + function Ve(e, t) { + var r; + return 210 === e.kind && (r = e.expression, e = e.arguments, 79 === r.kind) && "require" === r.escapedText && 1 === e.length && (r = e[0], !t || S.isStringLiteralLike(r)) + } + + function qe(e) { + return He(e, !1) + } + + function We(e) { + return He(e, !0) + } + + function He(e, t) { + return S.isVariableDeclaration(e) && !!e.initializer && Ve(t ? ln(e.initializer) : e.initializer, !0) + } + + function Ge(e) { + return S.isBinaryExpression(e) || P(e) || S.isIdentifier(e) || S.isCallExpression(e) + } + + function Qe(e) { + return u(e) && e.initializer && S.isBinaryExpression(e.initializer) && (56 === e.initializer.operatorToken.kind || 60 === e.initializer.operatorToken.kind) && e.name && C(e.name) && d(e.name, e.initializer.left) ? e.initializer.right : e.initializer + } + + function _(e, t) { + var r; + return S.isCallExpression(e) ? 215 === (r = St(e.expression)).kind || 216 === r.kind ? e : void 0 : 215 === e.kind || 228 === e.kind || 216 === e.kind || S.isObjectLiteralExpression(e) && (0 === e.properties.length || t) ? e : void 0 + } + + function d(e, t) { + return jt(e) && jt(t) ? Jt(e) === Jt(t) : S.isMemberName(e) && tt(t) && (108 === t.expression.kind || S.isIdentifier(t.expression) && ("window" === t.expression.escapedText || "self" === t.expression.escapedText || "global" === t.expression.escapedText)) ? d(e, nt(t)) : !(!tt(e) || !tt(t)) && y(e) === y(t) && d(e.expression, t.expression) + } + + function Xe(e) { + for (; Hr(e, !0);) e = e.right; + return e + } + + function Ye(e) { + return S.isIdentifier(e) && "exports" === e.escapedText + } + + function Ze(e) { + return S.isIdentifier(e) && "module" === e.escapedText + } + + function $e(e) { + return (S.isPropertyAccessExpression(e) || f(e)) && Ze(e.expression) && "exports" === y(e) + } + + function p(e) { + var t = function(e) { + { + var t; + if (S.isCallExpression(e)) return et(e) ? Ye(t = e.arguments[0]) || $e(t) ? 8 : g(t) && "prototype" === y(t) ? 9 : 7 : 0 + } + if (63 !== e.operatorToken.kind || !P(e.left) || function(e) { + return S.isVoidExpression(e) && S.isNumericLiteral(e.expression) && "0" === e.expression.text + }(Xe(e))) return 0; + if (m(e.left.expression, !0) && "prototype" === y(e.left) && S.isObjectLiteralExpression(ot(e))) return 6; + return at(e.left) + }(e); + return 5 === t || u(e) ? t : 0 + } + + function et(e) { + return 3 === S.length(e.arguments) && S.isPropertyAccessExpression(e.expression) && S.isIdentifier(e.expression.expression) && "Object" === S.idText(e.expression.expression) && "defineProperty" === S.idText(e.expression.name) && v(e.arguments[1]) && m(e.arguments[0], !0) + } + + function tt(e) { + return S.isPropertyAccessExpression(e) || f(e) + } + + function f(e) { + return S.isElementAccessExpression(e) && v(e.argumentExpression) + } + + function g(e, t) { + return S.isPropertyAccessExpression(e) && (!t && 108 === e.expression.kind || S.isIdentifier(e.name) && m(e.expression, !0)) || rt(e, t) + } + + function rt(e, t) { + return f(e) && (!t && 108 === e.expression.kind || C(e.expression) || g(e.expression, !0)) + } + + function m(e, t) { + return C(e) || g(e, t) + } + + function nt(e) { + return S.isPropertyAccessExpression(e) ? e.name : e.argumentExpression + } + + function it(e) { + var t; + return S.isPropertyAccessExpression(e) ? e.name : (t = St(e.argumentExpression), S.isNumericLiteral(t) || S.isStringLiteralLike(t) ? t : e) + } + + function y(e) { + e = it(e); + if (e) { + if (S.isIdentifier(e)) return e.escapedText; + if (S.isStringLiteralLike(e) || S.isNumericLiteral(e)) return S.escapeLeadingUnderscores(e.text) + } + } + + function at(e) { + if (108 === e.expression.kind) return 4; + if ($e(e)) return 2; + if (m(e.expression, !0)) { + if (E(e.expression)) return 3; + for (var t = e; !S.isIdentifier(t.expression);) t = t.expression; + var r = t.expression; + if (("exports" === r.escapedText || "module" === r.escapedText && "exports" === y(t)) && g(e)) return 1; + if (m(e, !0) || S.isElementAccessExpression(e) && Rt(e)) return 5 + } + return 0 + } + + function ot(e) { + for (; S.isBinaryExpression(e.right);) e = e.right; + return e.right + } + + function st(e) { + switch (e.parent.kind) { + case 269: + case 275: + return e.parent; + case 280: + return e.parent.parent; + case 210: + return ye(e.parent) || Ve(e.parent, !1) ? e.parent : void 0; + case 198: + return S.Debug.assert(S.isStringLiteral(e)), S.tryCast(e.parent.parent, S.isImportTypeNode); + default: + return + } + } + + function ct(e) { + switch (e.kind) { + case 269: + case 275: + return e.moduleSpecifier; + case 268: + return 280 === e.moduleReference.kind ? e.moduleReference.expression : void 0; + case 202: + return he(e) ? e.argument.literal : void 0; + case 210: + return e.arguments[0]; + case 264: + return 10 === e.name.kind ? e.name : void 0; + default: + return S.Debug.assertNever(e) + } + } + + function lt(e) { + return 348 === e.kind || 341 === e.kind || 342 === e.kind + } + + function ut(e) { + return S.isExpressionStatement(e) && S.isBinaryExpression(e.expression) && 0 !== p(e.expression) && S.isBinaryExpression(e.expression.right) && (56 === e.expression.right.operatorToken.kind || 60 === e.expression.right.operatorToken.kind) ? e.expression.right.right : void 0 + } + + function _t(e) { + switch (e.kind) { + case 240: + var t = h(e); + return t && t.initializer; + case 169: + case 299: + return e.initializer + } + } + + function h(e) { + return S.isVariableStatement(e) ? S.firstOrUndefined(e.declarationList.declarations) : void 0 + } + + function dt(e) { + return S.isModuleDeclaration(e) && e.body && 264 === e.body.kind ? e.body : void 0 + } + + function pt(t, e) { + var r; + return S.isJSDoc(e) ? (r = S.filter(e.tags, function(e) { + return ft(t, e) + }), e.tags === r ? [e] : r) : ft(t, e) ? [e] : void 0 + } + + function ft(e, t) { + return !(S.isJSDocTypeTag(t) && t.parent && S.isJSDoc(t.parent) && S.isParenthesizedExpression(t.parent.parent) && t.parent.parent !== e) + } + + function gt(e) { + var t = e.parent; + return 299 === t.kind || 274 === t.kind || 169 === t.kind || 241 === t.kind && 208 === e.kind || 250 === t.kind || dt(t) || S.isBinaryExpression(e) && 63 === e.operatorToken.kind ? t : t.parent && (h(t.parent) === e || S.isBinaryExpression(t) && 63 === t.operatorToken.kind) ? t.parent : t.parent && t.parent.parent && (h(t.parent.parent) || _t(t.parent.parent) === e || ut(t.parent.parent)) ? t.parent.parent : void 0 + } + + function mt(e) { + e = yt(e); + if (e) return S.isPropertySignature(e) && e.type && S.isFunctionLike(e.type) ? e.type : S.isFunctionLike(e) ? e : void 0 + } + + function yt(e) { + var t, e = ht(e); + if (e) return ut(e) || (t = e, S.isExpressionStatement(t) && S.isBinaryExpression(t.expression) && 63 === t.expression.operatorToken.kind ? Xe(t.expression) : void 0) || _t(e) || h(e) || dt(e) || e + } + + function ht(e) { + var t, e = vt(e); + return e && (t = e.parent) && t.jsDoc && e === S.lastOrUndefined(t.jsDoc) ? t : void 0 + } + + function vt(e) { + return S.findAncestor(e.parent, S.isJSDoc) + } + + function bt(e) { + for (var t = e.parent;;) { + switch (t.kind) { + case 223: + var r = t.operatorToken.kind; + return Vr(r) && t.left === e ? 63 === r || Kr(r) ? 1 : 2 : 0; + case 221: + case 222: + r = t.operator; + return 45 === r || 46 === r ? 2 : 0; + case 246: + case 247: + return t.initializer === e ? 1 : 0; + case 214: + case 206: + case 227: + case 232: + e = t; + break; + case 301: + e = t.parent; + break; + case 300: + if (t.name !== e) return 0; + e = t.parent; + break; + case 299: + if (t.name === e) return 0; + e = t.parent; + break; + default: + return 0 + } + t = e.parent + } + } + + function xt(e, t) { + for (; e && e.kind === t;) e = e.parent; + return e + } + + function Dt(e) { + return xt(e, 214) + } + + function St(e, t) { + return S.skipOuterExpressions(e, t ? 17 : 1) + } + + function Tt(e) { + return C(e) || S.isClassExpression(e) + } + + function Ct(e) { + return Tt(Et(e)) + } + + function Et(e) { + return S.isExportAssignment(e) ? e.expression : e.right + } + + function kt(e) { + var t = Nt(e); + if (t && u(e)) { + e = S.getJSDocAugmentsTag(e); + if (e) return e.class + } + return t + } + + function Nt(e) { + e = Pt(e.heritageClauses, 94); + return e && 0 < e.types.length ? e.types[0] : void 0 + } + + function At(e) { + return u(e) ? S.getJSDocImplementsTags(e).map(function(e) { + return e.class + }) : null == (e = Pt(e.heritageClauses, 117)) ? void 0 : e.types + } + + function Ft(e) { + e = Pt(e.heritageClauses, 94); + return e ? e.types : void 0 + } + + function Pt(e, t) { + if (e) + for (var r = 0, n = e; r < n.length; r++) { + var i = n[r]; + if (i.token === t) return i + } + } + + function wt(e) { + return 81 <= e && e <= 162 + } + + function It(e) { + return 126 <= e && e <= 162 + } + + function Ot(e) { + return wt(e) && !It(e) + } + + function v(e) { + return S.isStringLiteralLike(e) || S.isNumericLiteral(e) + } + + function Mt(e) { + return S.isPrefixUnaryExpression(e) && (39 === e.operator || 40 === e.operator) && S.isNumericLiteral(e.operand) + } + + function Lt(e) { + e = S.getNameOfDeclaration(e); + return !!e && Rt(e) + } + + function Rt(e) { + return !(164 !== e.kind && 209 !== e.kind || v(e = S.isElementAccessExpression(e) ? St(e.argumentExpression) : e.expression) || Mt(e)) + } + + function Bt(e) { + switch (e.kind) { + case 79: + case 80: + return e.escapedText; + case 10: + case 8: + return S.escapeLeadingUnderscores(e.text); + case 164: + var t = e.expression; + return v(t) ? S.escapeLeadingUnderscores(t.text) : Mt(t) ? 40 === t.operator ? S.tokenToString(t.operator) + t.operand.text : t.operand.text : void 0; + default: + return S.Debug.assertNever(e) + } + } + + function jt(e) { + switch (e.kind) { + case 79: + case 10: + case 14: + case 8: + return !0; + default: + return !1 + } + } + + function Jt(e) { + return S.isMemberName(e) ? S.idText(e) : e.text + } + + function zt(e) { + for (; 205 === e.kind;) e = e.parent.parent; + return e + } + + function Ut(e) { + return M(e.pos) || M(e.end) + } + + function Kt(e, t, r) { + switch (e) { + case 211: + return r ? 0 : 1; + case 221: + case 218: + case 219: + case 217: + case 220: + case 224: + case 226: + return 1; + case 223: + switch (t) { + case 42: + case 63: + case 64: + case 65: + case 67: + case 66: + case 68: + case 69: + case 70: + case 71: + case 72: + case 73: + case 78: + case 74: + case 75: + case 76: + case 77: + return 1 + } + } + return 0 + } + + function Vt(e) { + return 223 === e.kind ? e.operatorToken.kind : 221 === e.kind || 222 === e.kind ? e.operator : e.kind + } + + function qt(e, t, r) { + switch (e) { + case 354: + return 0; + case 227: + return 1; + case 226: + return 2; + case 224: + return 4; + case 223: + switch (t) { + case 27: + return 0; + case 63: + case 64: + case 65: + case 67: + case 66: + case 68: + case 69: + case 70: + case 71: + case 72: + case 73: + case 78: + case 74: + case 75: + case 76: + case 77: + return 3; + default: + return Wt(t) + } + case 213: + case 232: + case 221: + case 218: + case 219: + case 217: + case 220: + return 16; + case 222: + return 17; + case 210: + return 18; + case 211: + return r ? 19 : 18; + case 212: + case 208: + case 209: + case 233: + return 19; + case 231: + case 235: + return 11; + case 108: + case 106: + case 79: + case 80: + case 104: + case 110: + case 95: + case 8: + case 9: + case 10: + case 206: + case 207: + case 215: + case 216: + case 228: + case 13: + case 14: + case 225: + case 214: + case 229: + case 281: + case 282: + case 285: + return 20; + default: + return -1 + } + } + + function Wt(e) { + switch (e) { + case 60: + return 4; + case 56: + return 5; + case 55: + return 6; + case 51: + return 7; + case 52: + return 8; + case 50: + return 9; + case 34: + case 35: + case 36: + case 37: + return 10; + case 29: + case 31: + case 32: + case 33: + case 102: + case 101: + case 128: + case 150: + return 11; + case 47: + case 48: + case 49: + return 12; + case 39: + case 40: + return 13; + case 41: + case 43: + case 44: + return 14; + case 42: + return 15 + } + return -1 + } + S.isPartOfTypeNode = Te, S.isChildOfNodeWithKind = function(e, t) { + for (; e;) { + if (e.kind === t) return !0; + e = e.parent + } + return !1 + }, S.forEachReturnStatement = function(e, r) { + return function e(t) { + switch (t.kind) { + case 250: + return r(t); + case 266: + case 238: + case 242: + case 243: + case 244: + case 245: + case 246: + case 247: + case 251: + case 252: + case 292: + case 293: + case 253: + case 255: + case 295: + return S.forEachChild(t, e) + } + }(e) + }, S.forEachYieldExpression = function(e, n) { + return function e(t) { + switch (t.kind) { + case 226: + n(t); + var r = t.expression; + return void(r && e(r)); + case 263: + case 261: + case 264: + case 262: + return; + default: + S.isFunctionLike(t) ? t.name && 164 === t.name.kind && e(t.name.expression) : Te(t) || S.forEachChild(t, e) + } + }(e) + }, S.getRestParameterElementType = function(e) { + return e && 185 === e.kind ? e.elementType : e && 180 === e.kind ? S.singleOrUndefined(e.typeArguments) : void 0 + }, S.getMembersOfDeclaration = function(e) { + switch (e.kind) { + case 261: + case 260: + case 228: + case 184: + return e.members; + case 207: + return e.properties + } + }, S.isVariableLike = Ce, S.isVariableLikeOrAccessor = function(e) { + return Ce(e) || S.isAccessor(e) + }, S.isVariableDeclarationInVariableStatement = Ee, S.isCommonJsExportedExpression = function(e) { + return !!u(e) && (S.isObjectLiteralExpression(e.parent) && S.isBinaryExpression(e.parent.parent) && 2 === p(e.parent.parent) || ke(e.parent)) + }, S.isCommonJsExportPropertyAssignment = ke, S.isValidESSymbolDeclaration = function(e) { + return (S.isVariableDeclaration(e) ? me(e) && S.isIdentifier(e.name) && Ee(e) : S.isPropertyDeclaration(e) ? wr(e) && Pr(e) : S.isPropertySignature(e) && wr(e)) || ke(e) + }, S.introducesArgumentsExoticObject = function(e) { + switch (e.kind) { + case 171: + case 170: + case 173: + case 174: + case 175: + case 259: + case 215: + return !0 + } + return !1 + }, S.unwrapInnermostStatementOfLabel = function(e, t) { + for (;;) { + if (t && t(e), 253 !== e.statement.kind) return e.statement; + e = e.statement + } + }, S.isFunctionBlock = function(e) { + return e && 238 === e.kind && S.isFunctionLike(e.parent) + }, S.isObjectLiteralMethod = function(e) { + return e && 171 === e.kind && 207 === e.parent.kind + }, S.isObjectLiteralOrClassExpressionMethodOrAccessor = function(e) { + return !(171 !== e.kind && 174 !== e.kind && 175 !== e.kind || 207 !== e.parent.kind && 228 !== e.parent.kind) + }, S.isIdentifierTypePredicate = function(e) { + return e && 1 === e.kind + }, S.isThisTypePredicate = function(e) { + return e && 0 === e.kind + }, S.getPropertyAssignment = Ne, S.getPropertyArrayElementValue = function(e, t, r) { + return S.firstDefined(Ne(e, t), function(e) { + return S.isArrayLiteralExpression(e.initializer) ? S.find(e.initializer.elements, function(e) { + return S.isStringLiteral(e) && e.text === r + }) : void 0 + }) + }, S.getTsConfigObjectLiteralExpression = Ae, S.getTsConfigPropArrayElementValue = function(e, t, r) { + return S.firstDefined(Fe(e, t), function(e) { + return S.isArrayLiteralExpression(e.initializer) ? S.find(e.initializer.elements, function(e) { + return S.isStringLiteral(e) && e.text === r + }) : void 0 + }) + }, S.getTsConfigPropArray = Fe, S.getContainingFunction = function(e) { + return S.findAncestor(e.parent, S.isFunctionLike) + }, S.getContainingFunctionDeclaration = function(e) { + return S.findAncestor(e.parent, S.isFunctionLikeDeclaration) + }, S.getContainingClass = function(e) { + return S.findAncestor(e.parent, S.isClassLike) + }, S.getContainingClassStaticBlock = function(e) { + return S.findAncestor(e.parent, function(e) { + return S.isClassLike(e) || S.isFunctionLike(e) ? "quit" : S.isClassStaticBlockDeclaration(e) + }) + }, S.getContainingFunctionOrClassStaticBlock = function(e) { + return S.findAncestor(e.parent, S.isFunctionLikeOrClassStaticBlockDeclaration) + }, S.getThisContainer = Pe, S.isThisContainerOrFunctionBlock = function(e) { + switch (e.kind) { + case 216: + case 259: + case 215: + case 169: + return !0; + case 238: + switch (e.parent.kind) { + case 173: + case 171: + case 174: + case 175: + return !0; + default: + return !1 + } + default: + return !1 + } + }, S.isInTopLevelContext = function(e) { + return e = Pe(e = S.isIdentifier(e) && (S.isClassDeclaration(e.parent) || S.isFunctionDeclaration(e.parent)) && e.parent.name === e ? e.parent : e, !0), S.isSourceFile(e) + }, S.getNewTargetContainer = function(e) { + var t = Pe(e, !1); + if (t) switch (t.kind) { + case 173: + case 259: + case 215: + return t + } + }, S.getSuperContainer = function(e, t) { + for (;;) { + if (!(e = e.parent)) return e; + switch (e.kind) { + case 164: + e = e.parent; + break; + case 259: + case 215: + case 216: + if (!t) continue; + case 169: + case 168: + case 171: + case 170: + case 173: + case 174: + case 175: + case 172: + return e; + case 167: + 166 === e.parent.kind && S.isClassElement(e.parent.parent) ? e = e.parent.parent : S.isClassElement(e.parent) && (e = e.parent) + } + } + }, S.getImmediatelyInvokedFunctionExpression = function(e) { + if (215 === e.kind || 216 === e.kind) { + for (var t = e, r = e.parent; 214 === r.kind;) r = (t = r).parent; + if (210 === r.kind && r.expression === t) return r + } + }, S.isSuperOrSuperProperty = function(e) { + return 106 === e.kind || we(e) + }, S.isSuperProperty = we, S.isThisProperty = function(e) { + var t = e.kind; + return (208 === t || 209 === t) && 108 === e.expression.kind + }, S.isThisInitializedDeclaration = function(e) { + return !!e && S.isVariableDeclaration(e) && 108 === (null == (e = e.initializer) ? void 0 : e.kind) + }, S.isThisInitializedObjectBindingExpression = function(e) { + return !!e && (S.isShorthandPropertyAssignment(e) || S.isPropertyAssignment(e)) && S.isBinaryExpression(e.parent.parent) && 63 === e.parent.parent.operatorToken.kind && 108 === e.parent.parent.right.kind + }, S.getEntityNameFromTypeNode = function(e) { + switch (e.kind) { + case 180: + return e.typeName; + case 230: + return C(e.expression) ? e.expression : void 0; + case 79: + case 163: + return e + } + }, S.getInvokedExpression = function(e) { + switch (e.kind) { + case 212: + return e.tag; + case 283: + case 282: + return e.tagName; + default: + return e.expression + } + }, S.nodeCanBeDecorated = Ie, S.nodeIsDecorated = Oe, S.nodeOrChildIsDecorated = Me, S.childIsDecorated = Le, S.classOrConstructorParameterIsDecorated = function(e) { + var t; + return !!Oe(e) || !!(t = vr(e)) && Le(t, e) + }, S.isJSXTagName = Re, S.isExpressionNode = Be, S.isInExpressionContext = je, S.isPartOfTypeQuery = Je, S.isNamespaceReexportDeclaration = function(e) { + return S.isNamespaceExport(e) && !!e.parent.moduleSpecifier + }, S.isExternalModuleImportEqualsDeclaration = ze, S.getExternalModuleImportEqualsDeclarationExpression = function(e) { + return S.Debug.assert(ze(e)), e.moduleReference.expression + }, S.getExternalModuleRequireArgument = function(e) { + return We(e) && ln(e.initializer).arguments[0] + }, S.isInternalModuleImportEqualsDeclaration = function(e) { + return 268 === e.kind && 280 !== e.moduleReference.kind + }, S.isSourceFileJS = Ue, S.isSourceFileNotJS = function(e) { + return !u(e) + }, S.isInJSFile = u, S.isInJsonFile = function(e) { + return !!e && !!(67108864 & e.flags) + }, S.isSourceFileNotJson = function(e) { + return !ge(e) + }, S.isInJSDoc = Ke, S.isJSDocIndexSignature = function(e) { + return S.isTypeReferenceNode(e) && S.isIdentifier(e.typeName) && "Object" === e.typeName.escapedText && e.typeArguments && 2 === e.typeArguments.length && (152 === e.typeArguments[0].kind || 148 === e.typeArguments[0].kind) + }, S.isRequireCall = Ve, S.isVariableDeclarationInitializedToRequire = qe, S.isVariableDeclarationInitializedToBareOrAccessedRequire = We, S.isRequireVariableStatement = function(e) { + return S.isVariableStatement(e) && 0 < e.declarationList.declarations.length && S.every(e.declarationList.declarations, qe) + }, S.isSingleOrDoubleQuote = function(e) { + return 39 === e || 34 === e + }, S.isStringDoubleQuoted = function(e, t) { + return 34 === W(t, e).charCodeAt(0) + }, S.isAssignmentDeclaration = Ge, S.getEffectiveInitializer = Qe, S.getDeclaredExpandoInitializer = function(e) { + var t = Qe(e); + return t && _(t, E(e.name)) + }, S.getAssignedExpandoInitializer = function(e) { + var t, r; + if (e && e.parent && S.isBinaryExpression(e.parent) && 63 === e.parent.operatorToken.kind) return t = E(e.parent.left), _(e.parent.right, t) || function(e, t, r) { + r = S.isBinaryExpression(t) && (56 === t.operatorToken.kind || 60 === t.operatorToken.kind) && _(t.right, r); + if (r && d(e, t.left)) return r + }(e.parent.left, e.parent.right, t); + if (e && S.isCallExpression(e) && et(e)) { + t = e.arguments[2], r = "prototype" === e.arguments[1].text; + e = S.forEach(t.properties, function(e) { + return S.isPropertyAssignment(e) && S.isIdentifier(e.name) && "value" === e.name.escapedText && e.initializer && _(e.initializer, r) + }); + if (e) return e + } + }, S.getExpandoInitializer = _, S.isDefaultedExpandoInitializer = function(e) { + var t = S.isVariableDeclaration(e.parent) ? e.parent.name : S.isBinaryExpression(e.parent) && 63 === e.parent.operatorToken.kind ? e.parent.left : void 0; + return t && _(e.right, E(t)) && C(t) && d(t, e.left) + }, S.getNameOfExpando = function(e) { + if (S.isBinaryExpression(e.parent)) { + var t = (56 !== e.parent.operatorToken.kind && 60 !== e.parent.operatorToken.kind || !S.isBinaryExpression(e.parent.parent) ? e : e.parent).parent; + if (63 === t.operatorToken.kind && S.isIdentifier(t.left)) return t.left + } else if (S.isVariableDeclaration(e.parent)) return e.parent.name + }, S.isSameEntityName = d, S.getRightMostAssignedExpression = Xe, S.isExportsIdentifier = Ye, S.isModuleIdentifier = Ze, S.isModuleExportsAccessExpression = $e, S.getAssignmentDeclarationKind = p, S.isBindableObjectDefinePropertyCall = et, S.isLiteralLikeAccess = tt, S.isLiteralLikeElementAccess = f, S.isBindableStaticAccessExpression = g, S.isBindableStaticElementAccessExpression = rt, S.isBindableStaticNameExpression = m, S.getNameOrArgument = nt, S.getElementOrPropertyAccessArgumentExpressionOrName = it, S.getElementOrPropertyAccessName = y, S.getAssignmentDeclarationPropertyAccessKind = at, S.getInitializerOfBinaryExpression = ot, S.isPrototypePropertyAssignment = function(e) { + return S.isBinaryExpression(e) && 3 === p(e) + }, S.isSpecialPropertyDeclaration = function(e) { + return u(e) && e.parent && 241 === e.parent.kind && (!S.isElementAccessExpression(e) || f(e)) && !!S.getJSDocTypeTag(e.parent) + }, S.setValueDeclaration = function(e, t) { + var r = e.valueDeclaration; + (!r || (!(16777216 & t.flags) || 16777216 & r.flags) && Ge(r) && !Ge(t) || r.kind !== t.kind && Z(r)) && (e.valueDeclaration = t) + }, S.isFunctionSymbol = function(e) { + return !(!e || !e.valueDeclaration) && (259 === (e = e.valueDeclaration).kind || S.isVariableDeclaration(e) && e.initializer && S.isFunctionLike(e.initializer)) + }, S.tryGetModuleSpecifierFromDeclaration = function(e) { + var t; + switch (e.kind) { + case 257: + return null == (t = S.findAncestor(e.initializer, function(e) { + return Ve(e, !0) + })) ? void 0 : t.arguments[0]; + case 269: + return S.tryCast(e.moduleSpecifier, S.isStringLiteralLike); + case 268: + return S.tryCast(null == (t = S.tryCast(e.moduleReference, S.isExternalModuleReference)) ? void 0 : t.expression, S.isStringLiteralLike); + default: + S.Debug.assertNever(e) + } + }, S.importFromModuleSpecifier = function(e) { + return st(e) || S.Debug.failBadSyntaxKind(e.parent) + }, S.tryGetImportFromModuleSpecifier = st, S.getExternalModuleName = ct, S.getNamespaceDeclarationNode = function(e) { + switch (e.kind) { + case 269: + return e.importClause && S.tryCast(e.importClause.namedBindings, S.isNamespaceImport); + case 268: + return e; + case 275: + return e.exportClause && S.tryCast(e.exportClause, S.isNamespaceExport); + default: + return S.Debug.assertNever(e) + } + }, S.isDefaultImport = function(e) { + return 269 === e.kind && !!e.importClause && !!e.importClause.name + }, S.forEachImportClauseDeclaration = function(e, t) { + var r; + return e.name && (r = t(e)) || e.namedBindings && (r = S.isNamespaceImport(e.namedBindings) ? t(e.namedBindings) : S.forEach(e.namedBindings.elements, t)) ? r : void 0 + }, S.hasQuestionToken = function(e) { + if (e) switch (e.kind) { + case 166: + case 171: + case 170: + case 300: + case 299: + case 169: + case 168: + return void 0 !== e.questionToken + } + return !1 + }, S.isJSDocConstructSignature = function(e) { + return e = S.isJSDocFunctionType(e) ? S.firstOrUndefined(e.parameters) : void 0, !!(e = S.tryCast(e && e.name, S.isIdentifier)) && "new" === e.escapedText + }, S.isJSDocTypeAlias = lt, S.isTypeAlias = function(e) { + return lt(e) || S.isTypeAliasDeclaration(e) + }, S.getSingleInitializerOfVariableStatementOrPropertyDeclaration = _t, S.getSingleVariableOfVariableStatement = h, S.getJSDocCommentsAndTags = function(e, t) { + Ce(e) && S.hasInitializer(e) && S.hasJSDocNodes(e.initializer) && (r = S.addRange(r, pt(e, S.last(e.initializer.jsDoc)))); + for (var r, n = e; n && n.parent;) { + if (S.hasJSDocNodes(n) && (r = S.addRange(r, pt(e, S.last(n.jsDoc)))), 166 === n.kind) { + r = S.addRange(r, (t ? S.getJSDocParameterTagsNoCache : S.getJSDocParameterTags)(n)); + break + } + if (165 === n.kind) { + r = S.addRange(r, (t ? S.getJSDocTypeParameterTagsNoCache : S.getJSDocTypeParameterTags)(n)); + break + } + n = gt(n) + } + return r || S.emptyArray + }, S.getNextJSDocCommentLocation = gt, S.getParameterSymbolFromJSDoc = function(e) { + if (e.symbol) return e.symbol; + if (S.isIdentifier(e.name)) { + var t = e.name.escapedText, + e = mt(e); + if (e) return (e = S.find(e.parameters, function(e) { + return 79 === e.name.kind && e.name.escapedText === t + })) && e.symbol + } + }, S.getEffectiveContainerForJSDocTemplateTag = function(e) { + if (S.isJSDoc(e.parent) && e.parent.tags) { + var t = S.find(e.parent.tags, lt); + if (t) return t + } + return mt(e) + }, S.getHostSignatureFromJSDoc = mt, S.getEffectiveJSDocHost = yt, S.getJSDocHost = ht, S.getJSDocRoot = vt, S.getTypeParameterFromJsDoc = function(e) { + var t = e.name.escapedText; + return (e = e.parent.parent.parent.typeParameters) && S.find(e, function(e) { + return e.name.escapedText === t + }) + }, S.hasTypeArguments = function(e) { + return !!e.typeArguments + }, (e = S.AssignmentKind || (S.AssignmentKind = {}))[e.None = 0] = "None", e[e.Definite = 1] = "Definite", e[e.Compound = 2] = "Compound", S.getAssignmentTargetKind = bt, S.isAssignmentTarget = function(e) { + return 0 !== bt(e) + }, S.isNodeWithPossibleHoistedDeclaration = function(e) { + switch (e.kind) { + case 238: + case 240: + case 251: + case 242: + case 252: + case 266: + case 292: + case 293: + case 253: + case 245: + case 246: + case 247: + case 243: + case 244: + case 255: + case 295: + return !0 + } + return !1 + }, S.isValueSignatureDeclaration = function(e) { + return S.isFunctionExpression(e) || S.isArrowFunction(e) || S.isMethodOrAccessor(e) || S.isFunctionDeclaration(e) || S.isConstructorDeclaration(e) + }, S.walkUpParenthesizedTypes = function(e) { + return xt(e, 193) + }, S.walkUpParenthesizedExpressions = Dt, S.walkUpParenthesizedTypesAndGetParentAndChild = function(e) { + for (var t; e && 193 === e.kind;) e = (t = e).parent; + return [t, e] + }, S.skipTypeParentheses = function(e) { + for (; S.isParenthesizedTypeNode(e);) e = e.type; + return e + }, S.skipParentheses = St, S.isDeleteTarget = function(e) { + return (208 === e.kind || 209 === e.kind) && (e = Dt(e.parent)) && 217 === e.kind + }, S.isNodeDescendantOf = function(e, t) { + for (; e;) { + if (e === t) return !0; + e = e.parent + } + return !1 + }, S.isDeclarationName = function(e) { + return !S.isSourceFile(e) && !S.isBindingPattern(e) && S.isDeclaration(e.parent) && e.parent.name === e + }, S.getDeclarationFromName = function(e) { + var t, r = e.parent; + switch (e.kind) { + case 10: + case 14: + case 8: + if (S.isComputedPropertyName(r)) return r.parent; + case 79: + return S.isDeclaration(r) ? r.name === e ? r : void 0 : S.isQualifiedName(r) ? (t = r.parent, S.isJSDocParameterTag(t) && t.name === r ? t : void 0) : (t = r.parent, S.isBinaryExpression(t) && 0 !== p(t) && (t.left.symbol || t.symbol) && S.getNameOfDeclaration(t) === e ? t : void 0); + case 80: + return S.isDeclaration(r) && r.name === e ? r : void 0; + default: + return + } + }, S.isLiteralComputedPropertyDeclarationName = function(e) { + return v(e) && 164 === e.parent.kind && S.isDeclaration(e.parent.parent) + }, S.isIdentifierName = function(e) { + var t = e.parent; + switch (t.kind) { + case 169: + case 168: + case 171: + case 170: + case 174: + case 175: + case 302: + case 299: + case 208: + return t.name === e; + case 163: + return t.right === e; + case 205: + case 273: + return t.propertyName === e; + case 278: + case 288: + case 282: + case 283: + case 284: + return !0 + } + return !1 + }, S.isAliasSymbolDeclaration = function(e) { + return !!(268 === e.kind || 267 === e.kind || 270 === e.kind && e.name || 271 === e.kind || 277 === e.kind || 273 === e.kind || 278 === e.kind || 274 === e.kind && Ct(e)) || u(e) && (S.isBinaryExpression(e) && 2 === p(e) && Ct(e) || S.isPropertyAccessExpression(e) && S.isBinaryExpression(e.parent) && e.parent.left === e && 63 === e.parent.operatorToken.kind && Tt(e.parent.right)) + }, S.getAliasDeclarationFromName = function e(t) { + switch (t.parent.kind) { + case 270: + case 273: + case 271: + case 278: + case 274: + case 268: + case 277: + return t.parent; + case 163: + for (; 163 === (t = t.parent).parent.kind;); + return e(t) + } + }, S.isAliasableExpression = Tt, S.exportAssignmentIsAlias = Ct, S.getExportAssignmentExpression = Et, S.getPropertyAssignmentAliasLikeExpression = function(e) { + return 300 === e.kind ? e.name : 299 === e.kind ? e.initializer : e.parent.right + }, S.getEffectiveBaseTypeNode = kt, S.getClassExtendsHeritageElement = Nt, S.getEffectiveImplementsTypeNodes = At, S.getAllSuperTypeNodes = function(e) { + return S.isInterfaceDeclaration(e) ? Ft(e) || S.emptyArray : S.isClassLike(e) && S.concatenate(S.singleElementArray(kt(e)), At(e)) || S.emptyArray + }, S.getInterfaceBaseTypeNodes = Ft, S.getHeritageClause = Pt, S.getAncestor = function(e, t) { + for (; e;) { + if (e.kind === t) return e; + e = e.parent + } + }, S.isKeyword = wt, S.isContextualKeyword = It, S.isNonContextualKeyword = Ot, S.isFutureReservedKeyword = function(e) { + return 117 <= e && e <= 125 + }, S.isStringANonContextualKeyword = function(e) { + return void 0 !== (e = S.stringToToken(e)) && Ot(e) + }, S.isStringAKeyword = function(e) { + return void 0 !== (e = S.stringToToken(e)) && wt(e) + }, S.isIdentifierANonContextualKeyword = function(e) { + return !!(e = e.originalKeywordKind) && !It(e) + }, S.isTrivia = function(e) { + return 2 <= e && e <= 7 + }, (e = S.FunctionFlags || (S.FunctionFlags = {}))[e.Normal = 0] = "Normal", e[e.Generator = 1] = "Generator", e[e.Async = 2] = "Async", e[e.Invalid = 4] = "Invalid", e[e.AsyncGenerator = 3] = "AsyncGenerator", S.getFunctionFlags = function(e) { + if (!e) return 4; + var t = 0; + switch (e.kind) { + case 259: + case 215: + case 171: + e.asteriskToken && (t |= 1); + case 216: + T(e, 512) && (t |= 2) + } + return e.body || (t |= 4), t + }, S.isAsyncFunction = function(e) { + switch (e.kind) { + case 259: + case 215: + case 216: + case 171: + return void 0 !== e.body && void 0 === e.asteriskToken && T(e, 512) + } + return !1 + }, S.isStringOrNumericLiteralLike = v, S.isSignedNumericLiteral = Mt, S.hasDynamicName = Lt, S.isDynamicName = Rt, S.getPropertyNameForPropertyNameNode = Bt, S.isPropertyNameLiteral = jt, S.getTextOfIdentifierOrLiteral = Jt, S.getEscapedTextOfIdentifierOrLiteral = function(e) { + return S.isMemberName(e) ? e.escapedText : S.escapeLeadingUnderscores(e.text) + }, S.getPropertyNameForUniqueESSymbol = function(e) { + return "__@".concat(S.getSymbolId(e), "@").concat(e.escapedName) + }, S.getSymbolNameForPrivateIdentifier = function(e, t) { + return "__#".concat(S.getSymbolId(e), "@").concat(t) + }, S.isKnownSymbol = function(e) { + return S.startsWith(e.escapedName, "__@") + }, S.isPrivateIdentifierSymbol = function(e) { + return S.startsWith(e.escapedName, "__#") + }, S.isESSymbolIdentifier = function(e) { + return 79 === e.kind && "Symbol" === e.escapedText + }, S.isPushOrUnshiftIdentifier = function(e) { + return "push" === e.escapedText || "unshift" === e.escapedText + }, S.isParameterDeclaration = function(e) { + return 166 === zt(e).kind + }, S.getRootDeclaration = zt, S.nodeStartsNewLexicalEnvironment = function(e) { + return 173 === (e = e.kind) || 215 === e || 259 === e || 216 === e || 171 === e || 174 === e || 175 === e || 264 === e || 308 === e + }, S.nodeIsSynthesized = Ut, S.getOriginalSourceFile = function(e) { + return S.getParseTreeNode(e, S.isSourceFile) || e + }, (e = S.Associativity || (S.Associativity = {}))[e.Left = 0] = "Left", e[e.Right = 1] = "Right", S.getExpressionAssociativity = function(e) { + var t = Vt(e), + r = 211 === e.kind && void 0 !== e.arguments; + return Kt(e.kind, t, r) + }, S.getOperatorAssociativity = Kt, S.getExpressionPrecedence = function(e) { + var t = Vt(e), + r = 211 === e.kind && void 0 !== e.arguments; + return qt(e.kind, t, r) + }, S.getOperator = Vt, (e = S.OperatorPrecedence || (S.OperatorPrecedence = {}))[e.Comma = 0] = "Comma", e[e.Spread = 1] = "Spread", e[e.Yield = 2] = "Yield", e[e.Assignment = 3] = "Assignment", e[e.Conditional = 4] = "Conditional", e[e.Coalesce = 4] = "Coalesce", e[e.LogicalOR = 5] = "LogicalOR", e[e.LogicalAND = 6] = "LogicalAND", e[e.BitwiseOR = 7] = "BitwiseOR", e[e.BitwiseXOR = 8] = "BitwiseXOR", e[e.BitwiseAND = 9] = "BitwiseAND", e[e.Equality = 10] = "Equality", e[e.Relational = 11] = "Relational", e[e.Shift = 12] = "Shift", e[e.Additive = 13] = "Additive", e[e.Multiplicative = 14] = "Multiplicative", e[e.Exponentiation = 15] = "Exponentiation", e[e.Unary = 16] = "Unary", e[e.Update = 17] = "Update", e[e.LeftHandSide = 18] = "LeftHandSide", e[e.Member = 19] = "Member", e[e.Primary = 20] = "Primary", e[e.Highest = 20] = "Highest", e[e.Lowest = 0] = "Lowest", e[e.Invalid = -1] = "Invalid", S.getOperatorPrecedence = qt, S.getBinaryOperatorPrecedence = Wt, S.getSemanticJsxChildren = function(e) { + return S.filter(e, function(e) { + switch (e.kind) { + case 291: + return !!e.expression; + case 11: + return !e.containsOnlyTriviaWhiteSpaces; + default: + return !0 + } + }) + }, S.createDiagnosticCollection = function() { + var r = [], + n = [], + i = new S.Map, + a = !1; + return { + add: function(e) { + var t; + e.file ? (t = i.get(e.file.fileName)) || (t = [], i.set(e.file.fileName, t), S.insertSorted(n, e.file.fileName, S.compareStringsCaseSensitive)) : (a && (a = !1, r = r.slice()), t = r); + S.insertSorted(t, e, xn) + }, + lookup: function(e) { + var t; + t = e.file ? i.get(e.file.fileName) : r; + if (t) { + e = S.binarySearch(t, e, S.identity, xn); + if (0 <= e) return t[e] + } + return + }, + getGlobalDiagnostics: function() { + return a = !0, r + }, + getDiagnostics: function(e) { + if (e) return i.get(e) || []; + e = S.flatMapToMutable(n, function(e) { + return i.get(e) + }); + return r.length && e.unshift.apply(e, r), e + } + } + }; + var Ht = /\$\{/g; + S.hasInvalidEscape = function(e) { + return e && !!(S.isNoSubstitutionTemplateLiteral(e) ? e.templateFlags : e.head.templateFlags || S.some(e.templateSpans, function(e) { + return !!e.literal.templateFlags + })) + }; + var Gt = /[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g, + Qt = /[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g, + Xt = /\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g, + Yt = new S.Map(S.getEntries({ + "\t": "\\t", + "\v": "\\v", + "\f": "\\f", + "\b": "\\b", + "\r": "\\r", + "\n": "\\n", + "\\": "\\\\", + '"': '\\"', + "'": "\\'", + "`": "\\`", + "\u2028": "\\u2028", + "\u2029": "\\u2029", + "Â…": "\\u0085", + "\r\n": "\\r\\n" + })); + + function Zt(e) { + return "\\u" + ("0000" + e.toString(16).toUpperCase()).slice(-4) + } + + function $t(e, t, r) { + return 0 === e.charCodeAt(0) ? 48 <= (r = r.charCodeAt(t + e.length)) && r <= 57 ? "\\x00" : "\\0" : Yt.get(e) || Zt(e.charCodeAt(0)) + } + + function er(e, t) { + return e.replace(96 === t ? Xt : 39 === t ? Qt : Gt, $t) + } + S.escapeString = er; + var tr = /[^\u0000-\u007F]/g; + + function rr(e, t) { + return e = er(e, t), tr.test(e) ? e.replace(tr, function(e) { + return Zt(e.charCodeAt(0)) + }) : e + } + S.escapeNonAsciiString = rr; + var nr = /[\"\u0000-\u001f\u2028\u2029\u0085]/g, + ir = /[\'\u0000-\u001f\u2028\u2029\u0085]/g, + ar = new S.Map(S.getEntries({ + '"': """, + "'": "'" + })); + + function or(e) { + return 0 === e.charCodeAt(0) ? "�" : ar.get(e) || "&#x" + e.charCodeAt(0).toString(16).toUpperCase() + ";" + } + + function sr(e, t) { + return e.replace(39 === t ? ir : nr, or) + } + S.escapeJsxAttributeString = sr, S.stripQuotes = function(e) { + var t, r = e.length; + return 2 <= r && e.charCodeAt(0) === e.charCodeAt(r - 1) && (39 === (t = e.charCodeAt(0)) || 34 === t || 96 === t) ? e.substring(1, r - 1) : e + }, S.isIntrinsicJsxName = function(e) { + var t = e.charCodeAt(0); + return 97 <= t && t <= 122 || S.stringContains(e, "-") || S.stringContains(e, ":") + }; + var b = ["", " "]; + + function cr(e) { + for (var t = b[1], r = b.length; r <= e; r++) b.push(b[r - 1] + t); + return b[e] + } + + function x() { + return b[1].length + } + + function lr(e) { + return !!e.useCaseSensitiveFileNames && e.useCaseSensitiveFileNames() + } + + function ur(e, t, r) { + return t.moduleName || dr(e, t.fileName, r && r.fileName) + } + + function _r(e, t) { + return e.getCanonicalFileName(S.getNormalizedAbsolutePath(t, e.getCurrentDirectory())) + } + + function dr(t, e, r) { + function n(e) { + return t.getCanonicalFileName(e) + } + var i = S.toPath(r ? S.getDirectoryPath(r) : t.getCommonSourceDirectory(), t.getCurrentDirectory(), n), + e = S.getNormalizedAbsolutePath(e, t.getCurrentDirectory()), + e = ni(S.getRelativePathToDirectoryOrUrl(i, e, i, n, !1)); + return r ? S.ensurePathIsNonModuleName(e) : e + } + + function pr(e, t, r, n, i) { + t = t.declarationDir || t.outDir, t = t ? hr(e, t, r, n, i) : e, r = fr(t); + return ni(t) + r + } + + function fr(e) { + return S.fileExtensionIsOneOf(e, [".mjs", ".mts"]) ? ".d.mts" : S.fileExtensionIsOneOf(e, [".cjs", ".cts"]) ? ".d.cts" : S.fileExtensionIsOneOf(e, [".json"]) ? ".json.d.ts" : ".d.ts" + } + + function gr(e) { + return e.outFile || e.out + } + + function mr(e, t, r) { + return !(t.getCompilerOptions().noEmitForJsFiles && Ue(e)) && !e.isDeclarationFile && !t.isSourceFileFromExternalLibrary(e) && (r || !(ge(e) && t.getResolvedProjectReferenceToRedirect(e.fileName)) && !t.isSourceOfProjectReferenceRedirect(e.fileName)) + } + + function yr(e, t, r) { + return hr(e, r, t.getCurrentDirectory(), t.getCommonSourceDirectory(), function(e) { + return t.getCanonicalFileName(e) + }) + } + + function hr(e, t, r, n, i) { + e = 0 === i(e = S.getNormalizedAbsolutePath(e, r)).indexOf(i(n)) ? e.substring(n.length) : e; + return S.combinePaths(t, e) + } + + function D(e, t) { + return S.computeLineOfPosition(e, t) + } + + function vr(e) { + return S.find(e.members, function(e) { + return S.isConstructorDeclaration(e) && z(e.body) + }) + } + + function br(e) { + var t; + if (e && 0 < e.parameters.length) return t = 2 === e.parameters.length && xr(e.parameters[0]), e.parameters[t ? 1 : 0] + } + + function xr(e) { + return Dr(e.name) + } + + function Dr(e) { + return !!e && 79 === e.kind && Sr(e) + } + + function Sr(e) { + return 108 === e.originalKeywordKind + } + + function Tr(e) { + var t; + if (u(e) || !S.isFunctionDeclaration(e)) return (t = e.type) || !u(e) ? t : S.isJSDocPropertyLikeTag(e) ? e.typeExpression && e.typeExpression.type : S.getJSDocType(e) + } + + function Cr(e, t, r, n) { + Er(e, t, r.pos, n) + } + + function Er(e, t, r, n) { + n && n.length && r !== n[0].pos && D(e, r) !== D(e, n[0].pos) && t.writeLine() + } + + function kr(e, t, r, n, i, a, o, s) { + if (n && 0 < n.length) { + i && r.writeSpace(" "); + for (var c = !1, l = 0, u = n; l < u.length; l++) { + var _ = u[l]; + c && (r.writeSpace(" "), c = !1), s(e, t, r, _.pos, _.end, o), _.hasTrailingNewLine ? r.writeLine() : c = !0 + } + c && a && r.writeSpace(" ") + } + } + + function Nr(e, t, r) { + for (var n = 0; t < r && S.isWhiteSpaceSingleLine(e.charCodeAt(t)); t++) 9 === e.charCodeAt(t) ? n += x() - n % x() : n++; + return n + } + + function Ar(e, t) { + return !!Or(e, t) + } + + function T(e, t) { + return !!Mr(e, t) + } + + function Fr(e) { + return S.isClassElement(e) && Pr(e) || S.isClassStaticBlockDeclaration(e) + } + + function Pr(e) { + return T(e, 32) + } + + function wr(e) { + return Ar(e, 64) + } + + function Ir(e) { + return T(e, 131072) + } + + function Or(e, t) { + return Rr(e) & t + } + + function Mr(e, t) { + return Br(e) & t + } + + function Lr(e, t, r) { + return 0 <= e.kind && e.kind <= 162 ? 0 : (536870912 & e.modifierFlagsCache || (e.modifierFlagsCache = 536870912 | Jr(e)), !t || 4096 & e.modifierFlagsCache || !r && !u(e) || !e.parent || (e.modifierFlagsCache |= 4096 | jr(e)), -536875009 & e.modifierFlagsCache) + } + + function Rr(e) { + return Lr(e, !0) + } + + function Br(e) { + return Lr(e, !1) + } + + function jr(e) { + var t = 0; + return e.parent && !S.isParameter(e) && (u(e) && (S.getJSDocPublicTagNoCache(e) && (t |= 4), S.getJSDocPrivateTagNoCache(e) && (t |= 8), S.getJSDocProtectedTagNoCache(e) && (t |= 16), S.getJSDocReadonlyTagNoCache(e) && (t |= 64), S.getJSDocOverrideTagNoCache(e)) && (t |= 16384), S.getJSDocDeprecatedTagNoCache(e)) && (t |= 8192), t + } + + function Jr(e) { + var t = S.canHaveModifiers(e) ? zr(e.modifiers) : 0; + return (4 & e.flags || 79 === e.kind && e.isInJSDocNamespace) && (t |= 1), t + } + + function zr(e) { + var t = 0; + if (e) + for (var r = 0, n = e; r < n.length; r++) t |= Ur(n[r].kind); + return t + } + + function Ur(e) { + switch (e) { + case 124: + return 32; + case 123: + return 4; + case 122: + return 16; + case 121: + return 8; + case 126: + return 256; + case 127: + return 128; + case 93: + return 1; + case 136: + return 2; + case 85: + return 2048; + case 88: + return 1024; + case 132: + return 512; + case 146: + return 64; + case 161: + return 16384; + case 101: + return 32768; + case 145: + return 65536; + case 167: + return 131072 + } + return 0 + } + + function Kr(e) { + return 75 === e || 76 === e || 77 === e + } + + function Vr(e) { + return 63 <= e && e <= 78 + } + + function qr(e) { + e = Wr(e); + return e && !e.isImplements ? e.class : void 0 + } + + function Wr(e) { + return S.isExpressionWithTypeArguments(e) && S.isHeritageClause(e.parent) && S.isClassLike(e.parent.parent) ? { + class: e.parent.parent, + isImplements: 117 === e.parent.token + } : void 0 + } + + function Hr(e, t) { + return S.isBinaryExpression(e) && (t ? 63 === e.operatorToken.kind : Vr(e.operatorToken.kind)) && S.isLeftHandSideExpression(e.left) + } + + function Gr(e) { + return void 0 !== qr(e) + } + + function C(e) { + return 79 === e.kind || Qr(e) + } + + function Qr(e) { + return S.isPropertyAccessExpression(e) && S.isIdentifier(e.name) && C(e.expression) + } + + function E(e) { + return g(e) && "prototype" === y(e) + } + + function Xr(e) { + return S.isPropertyAccessExpression(e.parent) && e.parent.name === e || S.isElementAccessExpression(e.parent) && e.parent.argumentExpression === e + } + S.getIndentString = cr, S.getIndentSize = x, S.isNightly = function() { + return S.stringContains(S.version, "-dev") || S.stringContains(S.version, "-insiders") + }, S.createTextWriter = function(t) { + var r, n, i, a, o, s = !1; + + function c(e) { + var t = S.computeLineStarts(e); + i = 1 < t.length && (a = a + t.length - 1, (o = r.length - e.length + S.last(t)) - r.length == 0) + } + + function l(e) { + e && e.length && (i && (e = cr(n) + e, i = !1), r += e, c(e)) + } + + function u(e) { + e && (s = !1), l(e) + } + + function e() { + o = a = n = 0, s = !(i = !(r = "")) + } + return e(), { + write: u, + rawWrite: function(e) { + void 0 !== e && (r += e, c(e), s = !1) + }, + writeLiteral: function(e) { + e && e.length && u(e) + }, + writeLine: function(e) { + i && !e || (a++, o = (r += t).length, s = !(i = !0)) + }, + increaseIndent: function() { + n++ + }, + decreaseIndent: function() { + n-- + }, + getIndent: function() { + return n + }, + getTextPos: function() { + return r.length + }, + getLine: function() { + return a + }, + getColumn: function() { + return i ? n * x() : r.length - o + }, + getText: function() { + return r + }, + isAtStartOfLine: function() { + return i + }, + hasTrailingComment: function() { + return s + }, + hasTrailingWhitespace: function() { + return !!r.length && S.isWhiteSpaceLike(r.charCodeAt(r.length - 1)) + }, + clear: e, + reportInaccessibleThisError: S.noop, + reportPrivateInBaseOfClassExpression: S.noop, + reportInaccessibleUniqueSymbolError: S.noop, + trackSymbol: function() { + return !1 + }, + writeKeyword: u, + writeOperator: u, + writeParameter: u, + writeProperty: u, + writePunctuation: u, + writeSpace: u, + writeStringLiteral: u, + writeSymbol: function(e, t) { + return u(e) + }, + writeTrailingSemicolon: u, + writeComment: function(e) { + e && (s = !0), l(e) + }, + getTextPosWithWriteLine: function() { + return i ? r.length : r.length + t.length + } + } + }, S.getTrailingSemicolonDeferringWriter = function(r) { + var e = !1; + + function n() { + e && (r.writeTrailingSemicolon(";"), e = !1) + } + return __assign(__assign({}, r), { + writeTrailingSemicolon: function() { + e = !0 + }, + writeLiteral: function(e) { + n(), r.writeLiteral(e) + }, + writeStringLiteral: function(e) { + n(), r.writeStringLiteral(e) + }, + writeSymbol: function(e, t) { + n(), r.writeSymbol(e, t) + }, + writePunctuation: function(e) { + n(), r.writePunctuation(e) + }, + writeKeyword: function(e) { + n(), r.writeKeyword(e) + }, + writeOperator: function(e) { + n(), r.writeOperator(e) + }, + writeParameter: function(e) { + n(), r.writeParameter(e) + }, + writeSpace: function(e) { + n(), r.writeSpace(e) + }, + writeProperty: function(e) { + n(), r.writeProperty(e) + }, + writeComment: function(e) { + n(), r.writeComment(e) + }, + writeLine: function() { + n(), r.writeLine() + }, + increaseIndent: function() { + n(), r.increaseIndent() + }, + decreaseIndent: function() { + n(), r.decreaseIndent() + } + }) + }, S.hostUsesCaseSensitiveFileNames = lr, S.hostGetCanonicalFileName = function(e) { + return S.createGetCanonicalFileName(lr(e)) + }, S.getResolvedExternalModuleName = ur, S.getExternalModuleNameFromDeclaration = function(e, t, r) { + if ((t = t.getExternalModuleFileFromDeclaration(r)) && !t.isDeclarationFile) { + r = ct(r); + if (!r || !S.isStringLiteralLike(r) || S.pathIsRelative(r.text) || -1 !== _r(e, t.path).indexOf(_r(e, S.ensureTrailingDirectorySeparator(e.getCommonSourceDirectory())))) return ur(e, t) + } + }, S.getExternalModuleNameFromPath = dr, S.getOwnEmitOutputFilePath = function(e, t, r) { + var n = t.getCompilerOptions(); + return (t = n.outDir ? ni(yr(e, t, n.outDir)) : ni(e)) + r + }, S.getDeclarationEmitOutputFilePath = function(e, t) { + return pr(e, t.getCompilerOptions(), t.getCurrentDirectory(), t.getCommonSourceDirectory(), function(e) { + return t.getCanonicalFileName(e) + }) + }, S.getDeclarationEmitOutputFilePathWorker = pr, S.getDeclarationEmitExtensionForPath = fr, S.getPossibleOriginalInputExtensionForExtension = function(e) { + return S.fileExtensionIsOneOf(e, [".d.mts", ".mjs", ".mts"]) ? [".mts", ".mjs"] : S.fileExtensionIsOneOf(e, [".d.cts", ".cjs", ".cts"]) ? [".cts", ".cjs"] : S.fileExtensionIsOneOf(e, [".json.d.ts"]) ? [".json"] : [".tsx", ".ts", ".jsx", ".js"] + }, S.outFile = gr, S.getPathsBasePath = function(e, t) { + var r; + if (e.paths) return null != (r = e.baseUrl) ? r : S.Debug.checkDefined(e.pathsBasePath || (null == (r = t.getCurrentDirectory) ? void 0 : r.call(t)), "Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.") + }, S.getSourceFilesToEmit = function(t, e, r) { + var n, i, a = t.getCompilerOptions(); + return gr(a) ? (n = O(a), i = a.emitDeclarationOnly || n === S.ModuleKind.AMD || n === S.ModuleKind.System, S.filter(t.getSourceFiles(), function(e) { + return (i || !S.isExternalModule(e)) && mr(e, t, r) + })) : (a = void 0 === e ? t.getSourceFiles() : [e], S.filter(a, function(e) { + return mr(e, t, r) + })) + }, S.sourceFileMayBeEmitted = mr, S.getSourceFilePathInNewDir = yr, S.getSourceFilePathInNewDirWorker = hr, S.writeFile = function(e, t, r, n, i, a, o) { + e.writeFile(r, n, i, function(e) { + t.add(hn(S.Diagnostics.Could_not_write_file_0_Colon_1, r, e)) + }, a, o) + }, S.writeFileEnsuringDirectories = function(t, r, n, i, a, o) { + try { + i(t, r, n) + } catch (e) { + ! function e(t, r, n) { + t.length > S.getRootLength(t) && !n(t) && (e(S.getDirectoryPath(t), r, n), r(t)) + }(S.getDirectoryPath(S.normalizePath(t)), a, o), i(t, r, n) + } + }, S.getLineOfLocalPosition = function(e, t) { + return e = S.getLineStarts(e), S.computeLineOfPosition(e, t) + }, S.getLineOfLocalPositionFromLineMap = D, S.getFirstConstructorWithBody = vr, S.getSetAccessorValueParameter = br, S.getSetAccessorTypeAnnotationNode = function(e) { + return (e = br(e)) && e.type + }, S.getThisParameter = function(e) { + if (e.parameters.length && !S.isJSDocSignature(e)) { + e = e.parameters[0]; + if (xr(e)) return e + } + }, S.parameterIsThisKeyword = xr, S.isThisIdentifier = Dr, S.isThisInTypeQuery = function(e) { + if (!Dr(e)) return !1; + for (; S.isQualifiedName(e.parent) && e.parent.left === e;) e = e.parent; + return 183 === e.parent.kind + }, S.identifierIsThisKeyword = Sr, S.getAllAccessorDeclarations = function(e, t) { + var r, n, i, a; + return Lt(t) ? 174 === (r = t).kind ? i = t : 175 === t.kind ? a = t : S.Debug.fail("Accessor has wrong kind") : S.forEach(e, function(e) { + S.isAccessor(e) && Fr(e) === Fr(t) && Bt(e.name) === Bt(t.name) && (r ? n = n || e : r = e, 174 === e.kind && (i = i || e), 175 === e.kind) && (a = a || e) + }), { + firstAccessor: r, + secondAccessor: n, + getAccessor: i, + setAccessor: a + } + }, S.getEffectiveTypeAnnotationNode = Tr, S.getTypeAnnotationNode = function(e) { + return e.type + }, S.getEffectiveReturnTypeNode = function(e) { + return S.isJSDocSignature(e) ? e.type && e.type.typeExpression && e.type.typeExpression.type : e.type || (u(e) ? S.getJSDocReturnType(e) : void 0) + }, S.getJSDocTypeParameterDeclarations = function(e) { + return S.flatMap(S.getJSDocTags(e), function(e) { + return t = e, !S.isJSDocTemplateTag(t) || 323 === t.parent.kind && t.parent.tags.some(lt) ? void 0 : e.typeParameters; + var t + }) + }, S.getEffectiveSetAccessorTypeAnnotationNode = function(e) { + return (e = br(e)) && Tr(e) + }, S.emitNewLineBeforeLeadingComments = Cr, S.emitNewLineBeforeLeadingCommentsOfPosition = Er, S.emitNewLineBeforeLeadingCommentOfPosition = function(e, t, r, n) { + r !== n && D(e, r) !== D(e, n) && t.writeLine() + }, S.emitComments = kr, S.emitDetachedComments = function(t, e, r, n, i, a, o) { + var s, c; + if (o ? 0 === i.pos && (s = S.filter(S.getLeadingCommentRanges(t, i.pos), function(e) { + return q(t, e.pos) + })) : s = S.getLeadingCommentRanges(t, i.pos), s) { + for (var l = [], u = void 0, _ = 0, d = s; _ < d.length; _++) { + var p = d[_]; + if (u) + if (D(e, u.end) + 2 <= D(e, p.pos)) break; + l.push(p), u = p + } + l.length && D(e, S.last(l).end) + 2 <= D(e, S.skipTrivia(t, i.pos)) && (Cr(e, r, i, s), kr(t, e, r, l, !1, !0, a, n), c = { + nodePos: i.pos, + detachedCommentEndPos: S.last(l).end + }) + } + return c + }, S.writeCommentRange = function(e, t, r, n, i, a) { + if (42 === e.charCodeAt(n + 1)) + for (var o = S.computeLineAndCharacterOfPosition(t, n), s = t.length, c = void 0, l = n, u = o.line; l < i; u++) { + var _ = u + 1 === s ? e.length + 1 : t[u + 1]; + if (l !== n) { + void 0 === c && (c = Nr(e, t[o.line], n)); + var d = r.getIndent() * x() - c + Nr(e, l, _); + if (0 < d) { + var p = d % x(), + d = cr((d - p) / x()); + for (r.rawWrite(d); p;) r.rawWrite(" "), p-- + } else r.rawWrite("") + } + h = y = m = g = f = d = void 0; + var d = e, + f = i, + g = r, + m = a, + y = l, + h = _; + h = Math.min(f, h - 1), (d = S.trimString(d.substring(y, h))) ? (g.writeComment(d), h !== f && g.writeLine()) : g.rawWrite(m), l = _ + } else r.writeComment(e.substring(n, i)) + }, S.hasEffectiveModifiers = function(e) { + return 0 !== Rr(e) + }, S.hasSyntacticModifiers = function(e) { + return 0 !== Br(e) + }, S.hasEffectiveModifier = Ar, S.hasSyntacticModifier = T, S.isStatic = Fr, S.hasStaticModifier = Pr, S.hasOverrideModifier = function(e) { + return Ar(e, 16384) + }, S.hasAbstractModifier = function(e) { + return T(e, 256) + }, S.hasAmbientModifier = function(e) { + return T(e, 2) + }, S.hasAccessorModifier = function(e) { + return T(e, 128) + }, S.hasEffectiveReadonlyModifier = wr, S.hasDecorators = Ir, S.getSelectedEffectiveModifierFlags = Or, S.getSelectedSyntacticModifierFlags = Mr, S.getEffectiveModifierFlags = Rr, S.getEffectiveModifierFlagsAlwaysIncludeJSDoc = function(e) { + return Lr(e, !0, !0) + }, S.getSyntacticModifierFlags = Br, S.getEffectiveModifierFlagsNoCache = function(e) { + return Jr(e) | jr(e) + }, S.getSyntacticModifierFlagsNoCache = Jr, S.modifiersToFlags = zr, S.modifierToFlag = Ur, S.isLogicalOperator = function(e) { + return 56 === e || 55 === e || 53 === e + }, S.isLogicalOrCoalescingAssignmentOperator = Kr, S.isLogicalOrCoalescingAssignmentExpression = function(e) { + return Kr(e.operatorToken.kind) + }, S.isAssignmentOperator = Vr, S.tryGetClassExtendingExpressionWithTypeArguments = qr, S.tryGetClassImplementingOrExtendingExpressionWithTypeArguments = Wr, S.isAssignmentExpression = Hr, S.isLeftHandSideOfAssignment = function(e) { + return Hr(e.parent) && e.parent.left === e + }, S.isDestructuringAssignment = function(e) { + return !!Hr(e, !0) && (207 === (e = e.left.kind) || 206 === e) + }, S.isExpressionWithTypeArgumentsInClassExtendsClause = Gr, S.isEntityNameExpression = C, S.getFirstIdentifier = function(e) { + switch (e.kind) { + case 79: + return e; + case 163: + for (; 79 !== (e = e.left).kind;); + return e; + case 208: + for (; 79 !== (e = e.expression).kind;); + return e + } + }, S.isDottedName = function e(t) { + return 79 === t.kind || 108 === t.kind || 106 === t.kind || 233 === t.kind || 208 === t.kind && e(t.expression) || 214 === t.kind && e(t.expression) + }, S.isPropertyAccessEntityNameExpression = Qr, S.tryGetPropertyAccessOrIdentifierToString = function e(t) { + var r; + if (S.isPropertyAccessExpression(t)) { + if (void 0 !== (r = e(t.expression))) return r + "." + c(t.name) + } else if (S.isElementAccessExpression(t)) { + if (void 0 !== (r = e(t.expression)) && S.isPropertyName(t.argumentExpression)) return r + "." + Bt(t.argumentExpression) + } else if (S.isIdentifier(t)) return S.unescapeLeadingUnderscores(t.escapedText) + }, S.isPrototypeAccess = E, S.isRightSideOfQualifiedNameOrPropertyAccess = function(e) { + return 163 === e.parent.kind && e.parent.right === e || 208 === e.parent.kind && e.parent.name === e + }, S.isRightSideOfAccessExpression = Xr, S.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName = function(e) { + return S.isQualifiedName(e.parent) && e.parent.right === e || S.isPropertyAccessExpression(e.parent) && e.parent.name === e || S.isJSDocMemberName(e.parent) && e.parent.right === e + }, S.isEmptyObjectLiteral = function(e) { + return 207 === e.kind && 0 === e.properties.length + }, S.isEmptyArrayLiteral = function(e) { + return 206 === e.kind && 0 === e.elements.length + }, S.getLocalSymbolForExportDefault = function(e) { + if ((t = e) && 0 < S.length(t.declarations) && T(t.declarations[0], 1024) && e.declarations) + for (var t, r = 0, n = e.declarations; r < n.length; r++) { + var i = n[r]; + if (i.localSymbol) return i.localSymbol + } + }, S.tryExtractTSExtension = function(t) { + return S.find(Xn, function(e) { + return S.fileExtensionIs(t, e) + }) + }; + var k = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; + + function Yr(e) { + for (var t, r, n, i, a = "", o = function(e) { + for (var t = [], r = e.length, n = 0; n < r; n++) { + var i = e.charCodeAt(n); + i < 128 ? t.push(i) : i < 2048 ? (t.push(i >> 6 | 192), t.push(63 & i | 128)) : i < 65536 ? (t.push(i >> 12 | 224), t.push(i >> 6 & 63 | 128), t.push(63 & i | 128)) : i < 131072 ? (t.push(i >> 18 | 240), t.push(i >> 12 & 63 | 128), t.push(i >> 6 & 63 | 128), t.push(63 & i | 128)) : S.Debug.assert(!1, "Unexpected code point") + } + return t + }(e), s = 0, c = o.length; s < c;) t = o[s] >> 2, r = (3 & o[s]) << 4 | o[s + 1] >> 4, n = (15 & o[s + 1]) << 2 | o[s + 2] >> 6, i = 63 & o[s + 2], c <= s + 1 ? n = i = 64 : c <= s + 2 && (i = 64), a += k.charAt(t) + k.charAt(r) + k.charAt(n) + k.charAt(i), s += 3; + return a + } + + function Zr(e, t) { + t = S.isString(t) ? t : t.readFile(e); + return !t || (e = S.parseConfigFileTextToJson(e, t)).error ? void 0 : e.config + } + S.convertToBase64 = Yr, S.base64encode = function(e, t) { + return e && e.base64encode ? e.base64encode(t) : Yr(t) + }, S.base64decode = function(e, t) { + if (e && e.base64decode) return e.base64decode(t); + for (var r = t.length, n = [], i = 0; i < r && t.charCodeAt(i) !== k.charCodeAt(64);) { + var a = k.indexOf(t[i]), + o = k.indexOf(t[i + 1]), + s = k.indexOf(t[i + 2]), + c = k.indexOf(t[i + 3]), + a = (63 & a) << 2 | o >> 4 & 3, + o = (15 & o) << 4 | s >> 2 & 15, + l = (3 & s) << 6 | 63 & c; + 0 == o && 0 !== s ? n.push(a) : 0 == l && 0 !== c ? n.push(a, o) : n.push(a, o, l), i += 4 + } + for (var u = n, _ = "", d = 0, p = u.length; d < p;) { + var f = u[d]; + if (f < 128) _ += String.fromCharCode(f), d++; + else if (192 == (192 & f)) { + for (var g = 63 & f, m = u[++d]; 128 == (192 & m);) g = g << 6 | 63 & m, m = u[++d]; + _ += String.fromCharCode(g) + } else _ += String.fromCharCode(f), d++ + } + return _ + }, S.readJsonOrUndefined = Zr, S.readJson = function(e, t) { + return Zr(e, t) || {} + }, S.directoryProbablyExists = function(e, t) { + return !t.directoryExists || t.directoryExists(e) + }; + var $r; + + function en(e, t) { + return S.Debug.assert(e <= (t = void 0 === t ? e : t) || -1 === t), { + pos: e, + end: t + } + } + + function tn(e, t) { + return en(t, e.end) + } + + function rn(e) { + var t = S.canHaveModifiers(e) ? S.findLast(e.modifiers, S.isDecorator) : void 0; + return t && !M(t.end) ? tn(e, t.end) : e + } + + function nn(e, t, r) { + return N(A(e, r, !1), t.end, r) + } + + function N(e, t, r) { + return 0 === S.getLinesBetweenPositions(r, e, t) + } + + function A(e, t, r) { + return M(e.pos) ? -1 : S.skipTrivia(t.text, e.pos, !1, r) + } + + function an(e) { + return void 0 !== e.initializer + } + + function on(e) { + return 33554432 & e.flags ? e.checkFlags : 0 + } + + function F(e) { + var t = e.parent; + if (!t) return 0; + switch (t.kind) { + case 214: + return F(t); + case 222: + case 221: + var r = t.operator; + return 45 === r || 46 === r ? a() : 0; + case 223: + var r = t.left, + n = t.operatorToken; + return r === e && Vr(n.kind) ? 63 === n.kind ? 1 : a() : 0; + case 208: + return t.name !== e ? 0 : F(t); + case 299: + r = F(t.parent); + if (e === t.name) { + var i = r; + switch (i) { + case 0: + return 1; + case 1: + return 0; + case 2: + return 2; + default: + return S.Debug.assertNever(i) + } + return + } else return r; + case 300: + return e === t.objectAssignmentInitializer ? 0 : F(t.parent); + case 206: + return F(t); + default: + return 0 + } + + function a() { + return t.parent && 241 === Dt(t.parent).kind ? 1 : 2 + } + } + + function sn(n, i, e) { + var a = e.onDeleteValue, + o = e.onExistingValue; + n.forEach(function(e, t) { + var r = i.get(t); + void 0 === r ? (n.delete(t), a(e, t)) : o && o(e, r, t) + }) + } + + function cn(e) { + return null == (e = e.declarations) ? void 0 : e.find(S.isClassLike) + } + + function P(e) { + return 208 === e.kind || 209 === e.kind + } + + function ln(e) { + for (; P(e);) e = e.expression; + return e + } + + function un(e, t) { + this.flags = e, this.escapedName = t, this.declarations = void 0, this.valueDeclaration = void 0, this.id = void 0, this.mergeId = void 0, this.parent = void 0 + } + + function _n(e, t) { + this.flags = t, (S.Debug.isDebugging || S.tracing) && (this.checker = e) + } + + function dn(e, t) { + this.flags = t, S.Debug.isDebugging && (this.checker = e) + } + + function pn(e, t, r) { + this.pos = t, this.end = r, this.kind = e, this.id = 0, this.flags = 0, this.modifierFlagsCache = 0, this.transformFlags = 0, this.parent = void 0, this.original = void 0 + } + + function fn(e, t, r) { + this.pos = t, this.end = r, this.kind = e, this.id = 0, this.flags = 0, this.transformFlags = 0, this.parent = void 0 + } + + function gn(e, t, r) { + this.pos = t, this.end = r, this.kind = e, this.id = 0, this.flags = 0, this.transformFlags = 0, this.parent = void 0, this.original = void 0, this.flowNode = void 0 + } + + function mn(e, t, r) { + this.fileName = e, this.text = t, this.skipTrivia = r || function(e) { + return e + } + } + + function w(e, r, n) { + return void 0 === n && (n = 0), e.replace(/\{(\d+)\}/g, function(e, t) { + return "" + S.Debug.checkDefined(r[+t + n]) + }) + } + + function I(e) { + return $r && $r[e.key] || e.message + } + + function yn(e, t, r, n) { + _e(e, t, r); + var i = I(n); + return { + file: e, + start: t, + length: r, + messageText: i = 4 < arguments.length ? w(i, arguments, 4) : i, + category: n.category, + code: n.code, + reportsUnnecessary: n.reportsUnnecessary, + reportsDeprecated: n.reportsDeprecated + } + } + + function hn(e) { + var t = I(e); + return { + file: void 0, + start: void 0, + length: void 0, + messageText: t = 1 < arguments.length ? w(t, arguments, 1) : t, + category: e.category, + code: e.code, + reportsUnnecessary: e.reportsUnnecessary, + reportsDeprecated: e.reportsDeprecated + } + } + + function vn(e) { + return e.file ? e.file.path : void 0 + } + + function bn(e, t) { + return xn(e, t) || function(e, r) { + if (!e.relatedInformation && !r.relatedInformation) return 0; + if (e.relatedInformation && r.relatedInformation) return S.compareValues(e.relatedInformation.length, r.relatedInformation.length) || S.forEach(e.relatedInformation, function(e, t) { + return bn(e, r.relatedInformation[t]) + }) || 0; + return e.relatedInformation ? -1 : 1 + }(e, t) || 0 + } + + function xn(e, t) { + return S.compareStringsCaseSensitive(vn(e), vn(t)) || S.compareValues(e.start, t.start) || S.compareValues(e.length, t.length) || S.compareValues(e.code, t.code) || function e(t, r) { + { + if ("string" == typeof t && "string" == typeof r) return S.compareStringsCaseSensitive(t, r); + if ("string" == typeof t) return -1; + if ("string" == typeof r) return 1 + } + var n = S.compareStringsCaseSensitive(t.messageText, r.messageText); + if (n) return n; + if (!t.next && !r.next) return 0; + if (!t.next) return -1; + if (!r.next) return 1; + var i = Math.min(t.next.length, r.next.length); + for (var a = 0; a < i; a++) + if (n = e(t.next[a], r.next[a])) return n; { + if (t.next.length < r.next.length) return -1; + if (t.next.length > r.next.length) return 1 + } + return 0 + }(e.messageText, t.messageText) || 0 + } + + function Dn(e) { + if (2 & e.transformFlags) return S.isJsxOpeningLikeElement(e) || S.isJsxFragment(e) ? e : S.forEachChild(e, Dn) + } + + function Sn(e) { + return e.isDeclarationFile ? void 0 : Dn(e) + } + + function Tn(e) { + return !(e.impliedNodeFormat !== S.ModuleKind.ESNext && !S.fileExtensionIsOneOf(e.fileName, [".cjs", ".cts", ".mjs", ".mts"]) || e.isDeclarationFile) || void 0 + } + + function Cn(e) { + return e.target || (e.module === S.ModuleKind.Node16 ? 9 : e.module === S.ModuleKind.NodeNext && 99) || 0 + } + + function O(e) { + return "number" == typeof e.module ? e.module : 2 <= Cn(e) ? S.ModuleKind.ES2015 : S.ModuleKind.CommonJS + } + + function En(e) { + return e.moduleDetection || (O(e) === S.ModuleKind.Node16 || O(e) === S.ModuleKind.NodeNext ? S.ModuleDetectionKind.Force : S.ModuleDetectionKind.Auto) + } + + function kn(e) { + if (void 0 !== e.esModuleInterop) return e.esModuleInterop; + switch (O(e)) { + case S.ModuleKind.Node16: + case S.ModuleKind.NodeNext: + return !0 + } + } + + function Nn(e) { + return !(!e.declaration && !e.composite) + } + + function An(e, t) { + return void 0 === e[t] ? !!e.strict : !!e[t] + } + + function Fn(e) { + return void 0 === e.allowJs ? !!e.checkJs : e.allowJs + } + + function Pn(e, t) { + return t.strictFlag ? An(e, t.name) : e[t.name] + } + + function wn(e, t) { + return void 0 !== e && ("node_modules" === t(e) || S.startsWith(e, "@")) + } + S.getNewLineCharacter = function(e, t) { + switch (e.newLine) { + case 0: + return "\r\n"; + case 1: + return "\n" + } + return t ? t() : S.sys ? S.sys.newLine : "\r\n" + }, S.createRange = en, S.moveRangeEnd = function(e, t) { + return en(e.pos, t) + }, S.moveRangePos = tn, S.moveRangePastDecorators = rn, S.moveRangePastModifiers = function(e) { + var t = S.canHaveModifiers(e) ? S.lastOrUndefined(e.modifiers) : void 0; + return t && !M(t.end) ? tn(e, t.end) : rn(e) + }, S.isCollapsedRange = function(e) { + return e.pos === e.end + }, S.createTokenRange = function(e, t) { + return en(e, e + S.tokenToString(t).length) + }, S.rangeIsOnSingleLine = function(e, t) { + return nn(e, e, t) + }, S.rangeStartPositionsAreOnSameLine = function(e, t, r) { + return N(A(e, r, !1), A(t, r, !1), r) + }, S.rangeEndPositionsAreOnSameLine = function(e, t, r) { + return N(e.end, t.end, r) + }, S.rangeStartIsOnSameLineAsRangeEnd = nn, S.rangeEndIsOnSameLineAsRangeStart = function(e, t, r) { + return N(e.end, A(t, r, !1), r) + }, S.getLinesBetweenRangeEndAndRangeStart = function(e, t, r, n) { + return t = A(t, r, n), S.getLinesBetweenPositions(r, e.end, t) + }, S.getLinesBetweenRangeEndPositions = function(e, t, r) { + return S.getLinesBetweenPositions(r, e.end, t.end) + }, S.isNodeArrayMultiLine = function(e, t) { + return !N(e.pos, e.end, t) + }, S.positionsAreOnSameLine = N, S.getStartPositionOfRange = A, S.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter = function(e, t, r, n) { + return e = S.skipTrivia(r.text, e, !1, n), n = function(e, t, r) { + void 0 === t && (t = 0); + for (; e-- > t;) + if (!S.isWhiteSpaceLike(r.text.charCodeAt(e))) return e + }(e, t, r), S.getLinesBetweenPositions(r, null != n ? n : t, e) + }, S.getLinesBetweenPositionAndNextNonWhitespaceCharacter = function(e, t, r, n) { + return n = S.skipTrivia(r.text, e, !1, n), S.getLinesBetweenPositions(r, e, Math.min(t, n)) + }, S.isDeclarationNameOfEnumOrNamespace = function(e) { + var t = S.getParseTreeNode(e); + if (t) switch (t.parent.kind) { + case 263: + case 264: + return t === t.parent.name + } + return !1 + }, S.getInitializedVariables = function(e) { + return S.filter(e.declarations, an) + }, S.isWatchSet = function(e) { + return e.watch && S.hasProperty(e, "watch") + }, S.closeFileWatcher = function(e) { + e.close() + }, S.getCheckFlags = on, S.getDeclarationModifierFlagsFromSymbol = function(e, t) { + return void 0 === t && (t = !1), e.valueDeclaration ? (t = t && e.declarations && S.find(e.declarations, S.isSetAccessorDeclaration) || 32768 & e.flags && S.find(e.declarations, S.isGetAccessorDeclaration) || e.valueDeclaration, t = S.getCombinedModifierFlags(t), e.parent && 32 & e.parent.flags ? t : -29 & t) : 6 & on(e) ? (1024 & (t = e.checkFlags) ? 8 : 256 & t ? 4 : 16) | (2048 & t ? 32 : 0) : 4194304 & e.flags ? 36 : 0 + }, S.skipAlias = function(e, t) { + return 2097152 & e.flags ? t.getAliasedSymbol(e) : e + }, S.getCombinedLocalAndExportSymbolFlags = function(e) { + return e.exportSymbol ? e.exportSymbol.flags | e.flags : e.flags + }, S.isWriteOnlyAccess = function(e) { + return 1 === F(e) + }, S.isWriteAccess = function(e) { + return 0 !== F(e) + }, S.compareDataObjects = function e(t, r) { + if (!t || !r || Object.keys(t).length !== Object.keys(r).length) return !1; + for (var n in t) + if ("object" == typeof t[n]) { + if (!e(t[n], r[n])) return !1 + } else if ("function" != typeof t[n] && t[n] !== r[n]) return !1; + return !0 + }, S.clearMap = function(e, t) { + e.forEach(t), e.clear() + }, S.mutateMapSkippingNewValues = sn, S.mutateMap = function(r, e, t) { + sn(r, e, t); + var n = t.createNewValue; + e.forEach(function(e, t) { + r.has(t) || r.set(t, n(t, e)) + }) + }, S.isAbstractConstructorSymbol = function(e) { + return !!(32 & e.flags) && !!(e = cn(e)) && T(e, 256) + }, S.getClassLikeDeclarationOfSymbol = cn, S.getObjectFlags = function(e) { + return 3899393 & e.flags ? e.objectFlags : 0 + }, S.typeHasCallOrConstructSignatures = function(e, t) { + return 0 !== t.getSignaturesOfType(e, 0).length || 0 !== t.getSignaturesOfType(e, 1).length + }, S.forSomeAncestorDirectory = function(e, t) { + return !!S.forEachAncestorDirectory(e, function(e) { + return !!t(e) || void 0 + }) + }, S.isUMDExportSymbol = function(e) { + return !!e && !!e.declarations && !!e.declarations[0] && S.isNamespaceExportDeclaration(e.declarations[0]) + }, S.showModuleSpecifier = function(e) { + return e = e.moduleSpecifier, S.isStringLiteral(e) ? e.text : G(e) + }, S.getLastChild = function(e) { + var r; + return S.forEachChild(e, function(e) { + z(e) && (r = e) + }, function(e) { + for (var t = e.length - 1; 0 <= t; t--) + if (z(e[t])) { + r = e[t]; + break + } + }), r + }, S.addToSeen = function(e, t, r) { + return void 0 === r && (r = !0), !e.has(t) && (e.set(t, r), !0) + }, S.isObjectTypeDeclaration = function(e) { + return S.isClassLike(e) || S.isInterfaceDeclaration(e) || S.isTypeLiteralNode(e) + }, S.isTypeNodeKind = function(e) { + return 179 <= e && e <= 202 || 131 === e || 157 === e || 148 === e || 160 === e || 149 === e || 134 === e || 152 === e || 153 === e || 114 === e || 155 === e || 144 === e || 230 === e || 315 === e || 316 === e || 317 === e || 318 === e || 319 === e || 320 === e || 321 === e + }, S.isAccessExpression = P, S.getNameOfAccessExpression = function(e) { + return 208 === e.kind ? e.name : (S.Debug.assert(209 === e.kind), e.argumentExpression) + }, S.isBundleFileTextLike = function(e) { + switch (e.kind) { + case "text": + case "internal": + return !0; + default: + return !1 + } + }, S.isNamedImportsOrExports = function(e) { + return 272 === e.kind || 276 === e.kind + }, S.getLeftmostAccessExpression = ln, S.forEachNameInAccessChainWalkingLeft = function(e, n) { + if (P(e.parent) && Xr(e)) return function e(t) { + if (208 === t.kind) { + if (void 0 !== (r = n(t.name))) return r + } else if (209 === t.kind) { + if (!S.isIdentifier(t.argumentExpression) && !S.isStringLiteralLike(t.argumentExpression)) return; + var r; + if (void 0 !== (r = n(t.argumentExpression))) return r + } + if (P(t.expression)) return e(t.expression); + if (S.isIdentifier(t.expression)) return n(t.expression); + return + }(e.parent) + }, S.getLeftmostExpression = function(e, t) { + for (;;) { + switch (e.kind) { + case 222: + e = e.operand; + continue; + case 223: + e = e.left; + continue; + case 224: + e = e.condition; + continue; + case 212: + e = e.tag; + continue; + case 210: + if (t) return e; + case 231: + case 209: + case 208: + case 232: + case 353: + case 235: + e = e.expression; + continue + } + return e + } + }, S.objectAllocator = { + getNodeConstructor: function() { + return pn + }, + getTokenConstructor: function() { + return fn + }, + getIdentifierConstructor: function() { + return gn + }, + getPrivateIdentifierConstructor: function() { + return pn + }, + getSourceFileConstructor: function() { + return pn + }, + getSymbolConstructor: function() { + return un + }, + getTypeConstructor: function() { + return _n + }, + getSignatureConstructor: function() { + return dn + }, + getSourceMapSourceConstructor: function() { + return mn + } + }, S.setObjectAllocator = function(e) { + Object.assign(S.objectAllocator, e) + }, S.formatStringFromArgs = w, S.setLocalizedDiagnosticMessages = function(e) { + $r = e + }, S.maybeSetLocalizedDiagnosticMessages = function(e) { + !$r && e && ($r = e()) + }, S.getLocaleSpecificMessage = I, S.createDetachedDiagnostic = function(e, t, r, n) { + _e(void 0, t, r); + var i = I(n); + return { + file: void 0, + start: t, + length: r, + messageText: i = 4 < arguments.length ? w(i, arguments, 4) : i, + category: n.category, + code: n.code, + reportsUnnecessary: n.reportsUnnecessary, + fileName: e + } + }, S.attachFileToDiagnostics = function(e, t) { + for (var r = [], n = 0, i = e; n < i.length; n++) { + var a = i[n]; + r.push(function e(t, r) { + var n, i = r.fileName || "", + a = r.text.length, + o = (S.Debug.assertEqual(t.fileName, i), S.Debug.assertLessThanOrEqual(t.start, a), S.Debug.assertLessThanOrEqual(t.start + t.length, a), { + file: r, + start: t.start, + length: t.length, + messageText: t.messageText, + category: t.category, + code: t.code, + reportsUnnecessary: t.reportsUnnecessary + }); + if (t.relatedInformation) { + o.relatedInformation = []; + for (var s = 0, c = t.relatedInformation; s < c.length; s++) { + var l = c[s]; + void 0 === (n = l).file && void 0 !== n.start && void 0 !== n.length && "string" == typeof n.fileName && l.fileName === i ? (S.Debug.assertLessThanOrEqual(l.start, a), S.Debug.assertLessThanOrEqual(l.start + l.length, a), o.relatedInformation.push(e(l, r))) : o.relatedInformation.push(l) + } + } + return o + }(a, t)) + } + return r + }, S.createFileDiagnostic = yn, S.formatMessage = function(e, t) { + return t = I(t), t = 2 < arguments.length ? w(t, arguments, 2) : t + }, S.createCompilerDiagnostic = hn, S.createCompilerDiagnosticFromMessageChain = function(e, t) { + return { + file: void 0, + start: void 0, + length: void 0, + code: e.code, + category: e.category, + messageText: e.next ? e : e.messageText, + relatedInformation: t + } + }, S.chainDiagnosticMessages = function(e, t) { + var r = I(t); + return { + messageText: r = 2 < arguments.length ? w(r, arguments, 2) : r, + category: t.category, + code: t.code, + next: void 0 === e || Array.isArray(e) ? e : [e] + } + }, S.concatenateDiagnosticMessageChains = function(e, t) { + for (var r = e; r.next;) r = r.next[0]; + r.next = [t] + }, S.compareDiagnostics = bn, S.compareDiagnosticsSkipRelatedInformation = xn, S.getLanguageVariant = function(e) { + return 4 === e || 2 === e || 1 === e || 6 === e ? 1 : 0 + }, S.getSetExternalModuleIndicator = function(e) { + switch (En(e)) { + case S.ModuleDetectionKind.Force: + return function(e) { + e.externalModuleIndicator = S.isFileProbablyExternalModule(e) || !e.isDeclarationFile || void 0 + }; + case S.ModuleDetectionKind.Legacy: + return function(e) { + e.externalModuleIndicator = S.isFileProbablyExternalModule(e) + }; + case S.ModuleDetectionKind.Auto: + var t = [S.isFileProbablyExternalModule], + r = (4 !== e.jsx && 5 !== e.jsx || t.push(Sn), t.push(Tn), S.or.apply(void 0, t)); + return function(e) { + e.externalModuleIndicator = r(e) + } + } + }, S.getEmitScriptTarget = Cn, S.getEmitModuleKind = O, S.getEmitModuleResolutionKind = function(e) { + var t = e.moduleResolution; + if (void 0 === t) switch (O(e)) { + case S.ModuleKind.CommonJS: + t = S.ModuleResolutionKind.NodeJs; + break; + case S.ModuleKind.Node16: + t = S.ModuleResolutionKind.Node16; + break; + case S.ModuleKind.NodeNext: + t = S.ModuleResolutionKind.NodeNext; + break; + default: + t = S.ModuleResolutionKind.Classic + } + return t + }, S.getEmitModuleDetectionKind = En, S.hasJsonModuleEmitEnabled = function(e) { + switch (O(e)) { + case S.ModuleKind.CommonJS: + case S.ModuleKind.AMD: + case S.ModuleKind.ES2015: + case S.ModuleKind.ES2020: + case S.ModuleKind.ES2022: + case S.ModuleKind.ESNext: + case S.ModuleKind.Node16: + case S.ModuleKind.NodeNext: + return !0; + default: + return !1 + } + }, S.unreachableCodeIsError = function(e) { + return !1 === e.allowUnreachableCode + }, S.unusedLabelIsError = function(e) { + return !1 === e.allowUnusedLabels + }, S.getAreDeclarationMapsEnabled = function(e) { + return !(!Nn(e) || !e.declarationMap) + }, S.getESModuleInterop = kn, S.getAllowSyntheticDefaultImports = function(e) { + var t = O(e); + return void 0 !== e.allowSyntheticDefaultImports ? e.allowSyntheticDefaultImports : kn(e) || t === S.ModuleKind.System + }, S.getEmitDeclarations = Nn, S.shouldPreserveConstEnums = function(e) { + return !(!e.preserveConstEnums && !e.isolatedModules) + }, S.isIncrementalCompilation = function(e) { + return !(!e.incremental && !e.composite) + }, S.getStrictOptionValue = An, S.getAllowJSCompilerOption = Fn, S.getUseDefineForClassFields = function(e) { + return void 0 === e.useDefineForClassFields ? 9 <= Cn(e) : e.useDefineForClassFields + }, S.compilerOptionsAffectSemanticDiagnostics = function(e, t) { + return i(t, e, S.semanticDiagnosticsOptionDeclarations) + }, S.compilerOptionsAffectEmit = function(e, t) { + return i(t, e, S.affectsEmitOptionDeclarations) + }, S.compilerOptionsAffectDeclarationPath = function(e, t) { + return i(t, e, S.affectsDeclarationPathOptionDeclarations) + }, S.getCompilerOptionValue = Pn, S.getJSXTransformEnabled = function(e) { + return 2 === (e = e.jsx) || 4 === e || 5 === e + }, S.getJSXImplicitImportBase = function(e, t) { + return t = null == t ? void 0 : t.pragmas.get("jsximportsource"), t = S.isArray(t) ? t[t.length - 1] : t, 4 === e.jsx || 5 === e.jsx || e.jsxImportSource || t ? (null == t ? void 0 : t.arguments.factory) || e.jsxImportSource || "react" : void 0 + }, S.getJSXRuntimeImport = function(e, t) { + return e ? "".concat(e, "/").concat(5 === t.jsx ? "jsx-dev-runtime" : "jsx-runtime") : void 0 + }, S.hasZeroOrOneAsteriskCharacter = function(e) { + for (var t = !1, r = 0; r < e.length; r++) + if (42 === e.charCodeAt(r)) { + if (t) return !1; + t = !0 + } + return !0 + }, S.createSymlinkCache = function(n, i) { + var a, o, r, s = !1; + return { + getSymlinkedFiles: function() { + return r + }, + getSymlinkedDirectories: function() { + return a + }, + getSymlinkedDirectoriesByRealpath: function() { + return o + }, + setSymlinkedFile: function(e, t) { + return (r = r || new S.Map).set(e, t) + }, + setSymlinkedDirectory: function(e, t) { + var r = S.toPath(e, n, i); + gi(r) || (r = S.ensureTrailingDirectorySeparator(r), !1 === t || null != a && a.has(r) || (o = o || S.createMultiMap()).add(S.ensureTrailingDirectorySeparator(t.realPath), e), (a = a || new S.Map).set(r, t)) + }, + setSymlinksFromResolutions: function(e, t) { + var r, n = this; + S.Debug.assert(!s), s = !0; + for (var i = 0, a = e; i < a.length; i++) null != (r = a[i].resolvedModules) && r.forEach(function(e) { + return c(n, e) + }); + null != t && t.forEach(function(e) { + return c(n, e) + }) + }, + hasProcessedResolutions: function() { + return s + } + }; + + function c(e, t) { + var r; + t && t.originalPath && t.resolvedFileName && (r = t.resolvedFileName, t = t.originalPath, e.setSymlinkedFile(S.toPath(t, n, i), r), t = (r = function(e, t, r, n) { + var i = S.getPathComponents(S.getNormalizedAbsolutePath(e, r)), + a = S.getPathComponents(S.getNormalizedAbsolutePath(t, r)), + o = !1; + for (; 2 <= i.length && 2 <= a.length && !wn(i[i.length - 2], n) && !wn(a[a.length - 2], n) && n(i[i.length - 1]) === n(a[a.length - 1]);) i.pop(), a.pop(), o = !0; + return o ? [S.getPathFromPathComponents(i), S.getPathFromPathComponents(a)] : void 0 + }(r, t, n, i) || S.emptyArray)[0], r = r[1], t) && r && e.setSymlinkedDirectory(r, { + real: t, + realPath: S.toPath(t, n, i) + }) + } + }, S.tryRemoveDirectoryPrefix = function(e, t, r) { + return void 0 !== (e = S.tryRemovePrefix(e, t, r)) && (t = e, S.isAnyDirectorySeparator(t.charCodeAt(0))) ? t.slice(1) : void 0 + }; + var In = /[^\w\s\/]/g; + + function On(e) { + return "\\" + e + } + S.regExpEscape = function(e) { + return e.replace(In, On) + }; + var Mn = [42, 63], + Ln = (S.commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"], "(?!(".concat(S.commonPackageFolders.join("|"), ")(/|$))")), + Rn = { + singleAsteriskRegexFragment: "([^./]|(\\.(?!min\\.js$))?)*", + doubleAsteriskRegexFragment: "(/".concat(Ln, "[^/.][^/]*)*?"), + replaceWildcardCharacter: function(e) { + return qn(e, Rn.singleAsteriskRegexFragment) + } + }, + Bn = { + singleAsteriskRegexFragment: "[^/]*", + doubleAsteriskRegexFragment: "(/".concat(Ln, "[^/.][^/]*)*?"), + replaceWildcardCharacter: function(e) { + return qn(e, Bn.singleAsteriskRegexFragment) + } + }, + jn = { + singleAsteriskRegexFragment: "[^/]*", + doubleAsteriskRegexFragment: "(/.+?)?", + replaceWildcardCharacter: function(e) { + return qn(e, jn.singleAsteriskRegexFragment) + } + }, + Jn = { + files: Rn, + directories: Bn, + exclude: jn + }; + + function zn(e, t, r) { + var e = Un(e, t, r); + if (e && e.length) return t = e.map(function(e) { + return "(".concat(e, ")") + }).join("|"), e = "exclude" === r ? "($|/)" : "$", "^(".concat(t, ")").concat(e) + } + + function Un(e, t, r) { + if (void 0 !== e && 0 !== e.length) return S.flatMap(e, function(e) { + return e && Vn(e, t, r, Jn[r]) + }) + } + + function Kn(e) { + return !/[.*?]/.test(e) + } + + function Vn(e, t, r, n) { + var i = n.singleAsteriskRegexFragment, + a = n.doubleAsteriskRegexFragment, + o = n.replaceWildcardCharacter, + s = "", + c = !1, + n = S.getNormalizedPathComponents(e, t), + e = S.last(n); + if ("exclude" === r || "**" !== e) { + n[0] = S.removeTrailingDirectorySeparator(n[0]), Kn(e) && n.push("**", "*"); + for (var l = 0, u = 0, _ = n; u < _.length; u++) { + var d, p = _[u]; + "**" === p ? s += a : ("directories" === r && (s += "(", l++), c && (s += S.directorySeparator), "exclude" !== r ? (d = "", 42 === p.charCodeAt(0) ? (d += "([^./]" + i + ")?", p = p.substr(1)) : 63 === p.charCodeAt(0) && (d += "[^./]", p = p.substr(1)), (d += p.replace(In, o)) !== p && (s += Ln), s += d) : s += p.replace(In, o)), c = !0 + } + for (; 0 < l;) s += ")?", l--; + return s + } + } + + function qn(e, t) { + return "*" === e ? t : "?" === e ? "[^/]" : "\\" + e + } + + function Wn(e, t, r, n, i) { + e = S.normalizePath(e), i = S.normalizePath(i); + i = S.combinePaths(i, e); + return { + includeFilePatterns: S.map(Un(r, i, "files"), function(e) { + return "^".concat(e, "$") + }), + includeFilePattern: zn(r, i, "files"), + includeDirectoryPattern: zn(r, i, "directories"), + excludePattern: zn(t, i, "exclude"), + basePaths: function(r, e, n) { + var i = [r]; + if (e) { + for (var t = [], a = 0, o = e; a < o.length; a++) { + var s = o[a], + s = S.isRootedDiskPath(s) ? s : S.normalizePath(S.combinePaths(r, s)); + t.push(function(e) { + var t = S.indexOfAnyCharCode(e, Mn); + if (t < 0) return S.hasExtension(e) ? S.removeTrailingDirectorySeparator(S.getDirectoryPath(e)) : e; + return e.substring(0, e.lastIndexOf(S.directorySeparator, t)) + }(s)) + } + t.sort(S.getStringComparer(!n)); + for (var c = 0, l = t; c < l.length; c++) ! function(t) { + S.every(i, function(e) { + return !S.containsPath(e, t, r, !n) + }) && i.push(t) + }(l[c]) + } + return i + }(e, r, n) + } + } + + function Hn(e, t) { + return new RegExp(e, t ? "" : "i") + } + + function Gn(e) { + switch (e.substr(e.lastIndexOf(".")).toLowerCase()) { + case ".js": + case ".cjs": + case ".mjs": + return 1; + case ".jsx": + return 2; + case ".ts": + case ".cts": + case ".mts": + return 3; + case ".tsx": + return 4; + case ".json": + return 6; + default: + return 0 + } + } + S.getRegularExpressionForWildcard = zn, S.getRegularExpressionsForWildcards = Un, S.isImplicitGlob = Kn, S.getPatternFromSpec = function(e, t, r) { + return (e = e && Vn(e, t, r, Jn[r])) && "^(".concat(e, ")").concat("exclude" === r ? "($|/)" : "$") + }, S.getFileMatcherPatterns = Wn, S.getRegexFromPattern = Hn, S.matchFiles = function(e, f, t, r, n, i, a, g, m) { + e = S.normalizePath(e), i = S.normalizePath(i); + for (var y = (e = Wn(e, t, r, n, i)).includeFilePatterns && e.includeFilePatterns.map(function(e) { + return Hn(e, n) + }), h = e.includeDirectoryPattern && Hn(e.includeDirectoryPattern, n), v = e.excludePattern && Hn(e.excludePattern, n), b = y ? y.map(function() { + return [] + }) : [ + [] + ], x = new S.Map, D = S.createGetCanonicalFileName(n), o = 0, s = e.basePaths; o < s.length; o++) { + var c = s[o]; + ! function e(n, i, t) { + var r = D(m(i)); + if (x.has(r)) return; + x.set(r, !0); + var r = g(n), + a = r.files, + r = r.directories; + var o = function(e) { + var t = S.combinePaths(n, e), + r = S.combinePaths(i, e); + return f && !S.fileExtensionIsOneOf(t, f) || v && v.test(r) ? "continue" : void(y ? -1 !== (e = S.findIndex(y, function(e) { + return e.test(r) + })) && b[e].push(t) : b[0].push(t)) + }; + for (var s = 0, c = S.sort(a, S.compareStringsCaseSensitive); s < c.length; s++) { + var l = c[s]; + o(l) + } + if (void 0 !== t && 0 === --t) return; + for (var u = 0, _ = S.sort(r, S.compareStringsCaseSensitive); u < _.length; u++) { + var l = _[u], + d = S.combinePaths(n, l), + p = S.combinePaths(i, l); + h && !h.test(p) || v && v.test(p) || e(d, p, t) + } + }(c, S.combinePaths(i, c), a) + } + return S.flatten(b) + }, S.ensureScriptKind = function(e, t) { + return t || Gn(e) || 3 + }, S.getScriptKindFromFileName = Gn, S.supportedTSExtensions = [ + [".ts", ".tsx", ".d.ts"], + [".cts", ".d.cts"], + [".mts", ".d.mts"] + ], S.supportedTSExtensionsFlat = S.flatten(S.supportedTSExtensions); + var Qn = __spreadArray(__spreadArray([], S.supportedTSExtensions, !0), [ + [".json"] + ], !1), + Xn = [".d.ts", ".d.cts", ".d.mts", ".cts", ".mts", ".ts", ".tsx", ".cts", ".mts"], + Yn = (S.supportedJSExtensions = [ + [".js", ".jsx"], + [".mjs"], + [".cjs"] + ], S.supportedJSExtensionsFlat = S.flatten(S.supportedJSExtensions), [ + [".ts", ".tsx", ".d.ts", ".js", ".jsx"], + [".cts", ".d.cts", ".cjs"], + [".mts", ".d.mts", ".mjs"] + ]), + Zn = __spreadArray(__spreadArray([], Yn, !0), [ + [".json"] + ], !1); + + function $n(e, t) { + var r, n = e && Fn(e); + return t && 0 !== t.length ? (e = n ? Yn : S.supportedTSExtensions, r = S.flatten(e), __spreadArray(__spreadArray([], e, !0), S.mapDefined(t, function(e) { + return 7 === e.scriptKind || n && (1 === (t = e.scriptKind) || 2 === t) && -1 === r.indexOf(e.extension) ? [e.extension] : void 0; + var t + }), !0)) : n ? Yn : S.supportedTSExtensions + } + + function ei(e, t) { + return e && e.resolveJsonModule ? t === Yn ? Zn : t === S.supportedTSExtensions ? Qn : __spreadArray(__spreadArray([], t, !0), [ + [".json"] + ], !1) : t + } + + function ti(e) { + e = e.match(/\//g); + return e ? e.length : 0 + } + S.supportedDeclarationExtensions = [".d.ts", ".d.cts", ".d.mts"], S.getSupportedExtensions = $n, S.getSupportedExtensionsWithJsonIfResolveJsonModule = ei, S.hasJSFileExtension = function(t) { + return S.some(S.supportedJSExtensionsFlat, function(e) { + return S.fileExtensionIs(t, e) + }) + }, S.hasTSFileExtension = function(t) { + return S.some(S.supportedTSExtensionsFlat, function(e) { + return S.fileExtensionIs(t, e) + }) + }, S.isSupportedSourceFileName = function(e, t, r) { + if (e) + for (var r = $n(t, r), n = 0, i = S.flatten(ei(t, r)); n < i.length; n++) { + var a = i[n]; + if (S.fileExtensionIs(e, a)) return !0 + } + return !1 + }, S.compareNumberOfDirectorySeparators = function(e, t) { + return S.compareValues(ti(e), ti(t)) + }; + var ri = [".d.ts", ".d.mts", ".d.cts", ".mjs", ".mts", ".cjs", ".cts", ".ts", ".js", ".tsx", ".jsx", ".json"]; + + function ni(e) { + for (var t = 0, r = ri; t < r.length; t++) { + var n = ii(e, r[t]); + if (void 0 !== n) return n + } + return e + } + + function ii(e, t) { + return S.fileExtensionIs(e, t) ? ai(e, t) : void 0 + } + + function ai(e, t) { + return e.substring(0, e.length - t.length) + } + + function oi(e) { + var t = e.indexOf("*"); + return -1 === t ? e : -1 !== e.indexOf("*", t + 1) ? void 0 : { + prefix: e.substr(0, t), + suffix: e.substr(t + 1) + } + } + + function M(e) { + return !(0 <= e) + } + + function si(e) { + return ".ts" === e || ".tsx" === e || ".d.ts" === e || ".cts" === e || ".mts" === e || ".d.mts" === e || ".d.cts" === e + } + + function ci(t) { + return S.find(ri, function(e) { + return S.fileExtensionIs(t, e) + }) + } + + function li(e, t) { + return e === t || "object" == typeof e && null !== e && "object" == typeof t && null !== t && S.equalOwnProperties(e, t, li) + } + + function ui(e, t) { + return e.pos = t, e + } + + function _i(e, t) { + return e.end = t, e + } + + function di(e, t, r) { + return _i(ui(e, t), r) + } + + function pi(e, t) { + return e && t && (e.parent = t), e + } + + function fi(e) { + return !S.isOmittedExpression(e) + } + + function gi(t) { + return S.some(S.ignoredPaths, function(e) { + return S.stringContains(t, e) + }) + } + + function mi(e) { + return 257 === e.kind && 295 === e.parent.kind + } + + function yi(e) { + return (+e).toString() === e + } + + function hi(e) { + switch (e.kind) { + case 165: + case 260: + case 261: + case 262: + case 263: + case 348: + case 341: + case 342: + return !0; + case 270: + return e.isTypeOnly; + case 273: + case 278: + return e.parent.parent.isTypeOnly; + default: + return !1 + } + } + S.removeFileExtension = ni, S.tryRemoveExtension = ii, S.removeExtension = ai, S.changeExtension = function(e, t) { + return S.changeAnyExtension(e, t, ri, !1) + }, S.tryParsePattern = oi, S.tryParsePatterns = function(e) { + return S.mapDefined(S.getOwnKeys(e), oi) + }, S.positionIsSynthesized = M, S.extensionIsTS = si, S.resolutionExtensionIsTSOrJson = function(e) { + return si(e) || ".json" === e + }, S.extensionFromPath = function(e) { + var t = ci(e); + return void 0 !== t ? t : S.Debug.fail("File ".concat(e, " has unknown extension.")) + }, S.isAnySupportedFileExtension = function(e) { + return void 0 !== ci(e) + }, S.tryGetExtensionFromPath = ci, S.isCheckJsEnabledForFile = function(e, t) { + return e.checkJsDirective ? e.checkJsDirective.enabled : t.checkJs + }, S.emptyFileSystemEntries = { + files: S.emptyArray, + directories: S.emptyArray + }, S.matchPatternOrExact = function(e, t) { + for (var r = [], n = 0, i = e; n < i.length; n++) { + var a = i[n]; + if (a === t) return t; + S.isString(a) || r.push(a) + } + return S.findBestPatternMatch(r, function(e) { + return e + }, t) + }, S.sliceAfter = function(e, t) { + return t = e.indexOf(t), S.Debug.assert(-1 !== t), e.slice(t) + }, S.addRelatedInfo = function(e) { + for (var t, r = [], n = 1; n < arguments.length; n++) r[n - 1] = arguments[n]; + return r.length && (e.relatedInformation || (e.relatedInformation = []), S.Debug.assert(e.relatedInformation !== S.emptyArray, "Diagnostic had empty array singleton for related info, but is still being constructed!"), (t = e.relatedInformation).push.apply(t, r)), e + }, S.minAndMax = function(e, t) { + S.Debug.assert(0 !== e.length); + for (var r = t(e[0]), n = r, i = 1; i < e.length; i++) { + var a = t(e[i]); + a < r ? r = a : n < a && (n = a) + } + return { + min: r, + max: n + } + }, S.rangeOfNode = function(e) { + return { + pos: a(e), + end: e.end + } + }, S.rangeOfTypeParameters = function(e, t) { + return { + pos: t.pos - 1, + end: S.skipTrivia(e.text, t.end) + 1 + } + }, S.skipTypeChecking = function(e, t, r) { + return t.skipLibCheck && e.isDeclarationFile || t.skipDefaultLibCheck && e.hasNoDefaultLib || r.isSourceOfProjectReferenceRedirect(e.fileName) + }, S.isJsonEqual = li, S.parsePseudoBigInt = function(e) { + var t; + switch (e.charCodeAt(1)) { + case 98: + case 66: + t = 1; + break; + case 111: + case 79: + t = 3; + break; + case 120: + case 88: + t = 4; + break; + default: + for (var r = e.length - 1, n = 0; 48 === e.charCodeAt(n);) n++; + return e.slice(n, r) || "0" + } + for (var i = e.length - 1, a = (i - 2) * t, o = new Uint16Array((a >>> 4) + (15 & a ? 1 : 0)), s = i - 1, c = 0; 2 <= s; s--, c += t) { + var l = c >>> 4, + u = e.charCodeAt(s), + u = (u <= 57 ? u - 48 : 10 + u - (u <= 70 ? 65 : 97)) << (15 & c), + u = (o[l] |= u, u >>> 16); + u && (o[l + 1] |= u) + } + for (var _ = "", d = o.length - 1, p = !0; p;) { + for (var f = 0, p = !1, l = d; 0 <= l; l--) { + var g = f << 16 | o[l], + m = g / 10 | 0, + f = g - 10 * (o[l] = m); + m && !p && (d = l, p = !0) + } + _ = f + _ + } + return _ + }, S.pseudoBigIntToString = function(e) { + var t = e.negative, + e = e.base10Value; + return (t && "0" !== e ? "-" : "") + e + }, S.isValidTypeOnlyAliasUseSite = function(e) { + return !!(16777216 & e.flags) || Je(e) || 79 === (t = e).kind && (117 === (null == (t = S.findAncestor(t.parent, function(e) { + switch (e.kind) { + case 294: + return !0; + case 208: + case 230: + return !1; + default: + return "quit" + } + })) ? void 0 : t.token) || 261 === (null == t ? void 0 : t.parent.kind)) || function(e) { + for (; 79 === e.kind || 208 === e.kind;) e = e.parent; + if (164 !== e.kind) return !1; + if (T(e.parent, 256)) return !0; + var t = e.parent.parent.kind; + return 261 === t || 184 === t + }(e) || !(Be(e) || (t = e, S.isIdentifier(t) && S.isShorthandPropertyAssignment(t.parent) && t.parent.name === t)); + var t + }, S.isIdentifierTypeReference = function(e) { + return S.isTypeReferenceNode(e) && S.isIdentifier(e.typeName) + }, S.arrayIsHomogeneous = function(e, t) { + if (void 0 === t && (t = S.equateValues), !(e.length < 2)) + for (var r = e[0], n = 1, i = e.length; n < i; n++) + if (!t(r, e[n])) return !1; + return !0 + }, S.setTextRangePos = ui, S.setTextRangeEnd = _i, S.setTextRangePosEnd = di, S.setTextRangePosWidth = function(e, t, r) { + return di(e, t, t + r) + }, S.setNodeFlags = function(e, t) { + return e && (e.flags = t), e + }, S.setParent = pi, S.setEachParent = function(e, t) { + if (e) + for (var r = 0, n = e; r < n.length; r++) pi(n[r], t); + return e + }, S.setParentRecursive = function(e, r) { + return e && S.forEachChildRecursively(e, S.isJSDocNode(e) ? i : function(e, t) { + return i(e, t) || function(e) { + if (S.hasJSDocNodes(e)) + for (var t = 0, r = e.jsDoc; t < r.length; t++) { + var n = r[t]; + i(n, e), S.forEachChildRecursively(n, i) + } + }(e) + }), e; + + function i(e, t) { + if (r && e.parent === t) return "skip"; + pi(e, t) + } + }, S.isPackedArrayLiteral = function(e) { + return S.isArrayLiteralExpression(e) && S.every(e.elements, fi) + }, S.expressionResultIsUnused = function(e) { + for (S.Debug.assertIsDefined(e.parent);;) { + var t = e.parent; + if (S.isParenthesizedExpression(t)); + else { + if (S.isExpressionStatement(t) || S.isVoidExpression(t) || S.isForStatement(t) && (t.initializer === e || t.incrementor === e)) return !0; + if (S.isCommaListExpression(t)) { + if (e !== S.last(t.elements)) return !0 + } else { + if (!S.isBinaryExpression(t) || 27 !== t.operatorToken.kind) return !1; + if (e === t.left) return !0 + } + } + e = t + } + }, S.containsIgnoredPath = gi, S.getContainingNodeArray = function(e) { + if (e.parent) { + switch (e.kind) { + case 165: + var t = e.parent; + return 192 === t.kind ? void 0 : t.typeParameters; + case 166: + return e.parent.parameters; + case 201: + case 236: + return e.parent.templateSpans; + case 167: + t = e.parent; + return S.canHaveDecorators(t) ? t.modifiers : S.canHaveIllegalDecorators(t) ? t.illegalDecorators : void 0; + case 294: + return e.parent.heritageClauses + } + var r = e.parent; + if (S.isJSDocTag(e)) return S.isJSDocTypeLiteral(e.parent) ? void 0 : e.parent.tags; + switch (r.kind) { + case 184: + case 261: + return S.isTypeElement(e) ? r.members : void 0; + case 189: + case 190: + return r.types; + case 186: + case 206: + case 354: + case 272: + case 276: + return r.elements; + case 207: + case 289: + return r.properties; + case 210: + case 211: + return S.isTypeNode(e) ? r.typeArguments : r.expression === e ? void 0 : r.arguments; + case 281: + case 285: + return S.isJsxChild(e) ? r.children : void 0; + case 283: + case 282: + return S.isTypeNode(e) ? r.typeArguments : void 0; + case 238: + case 292: + case 293: + case 265: + return r.statements; + case 266: + return r.clauses; + case 260: + case 228: + return S.isClassElement(e) ? r.members : void 0; + case 263: + return S.isEnumMember(e) ? r.members : void 0; + case 308: + return r.statements + } + } + }, S.hasContextSensitiveParameters = function(e) { + if (!e.typeParameters) { + if (S.some(e.parameters, function(e) { + return !Tr(e) + })) return !0; + if (216 !== e.kind) { + e = S.firstOrUndefined(e.parameters); + if (!e || !xr(e)) return !0 + } + } + return !1 + }, S.isInfinityOrNaNString = function(e) { + return "Infinity" === e || "-Infinity" === e || "NaN" === e + }, S.isCatchClauseVariableDeclaration = mi, S.isParameterOrCatchClauseVariable = function(e) { + return !!(e = e.valueDeclaration && zt(e.valueDeclaration)) && (S.isParameter(e) || mi(e)) + }, S.isFunctionExpressionOrArrowFunction = function(e) { + return 215 === e.kind || 216 === e.kind + }, S.escapeSnippetText = function(e) { + return e.replace(/\$/gm, function() { + return "\\$" + }) + }, S.isNumericLiteralName = yi, S.createPropertyNameNodeForIdentifierOrLiteral = function(e, t, r, n) { + return S.isIdentifierText(e, t) ? S.factory.createIdentifier(e) : !n && yi(e) && 0 <= +e ? S.factory.createNumericLiteral(+e) : S.factory.createStringLiteral(e, !!r) + }, S.isThisTypeParameter = function(e) { + return !!(262144 & e.flags && e.isThisType) + }, S.getNodeModulePathParts = function(e) { + for (var t = 0, r = 0, n = 0, i = 0, a = 0, o = 0; 0 <= a;) switch (i = a, a = e.indexOf("/", i + 1), o) { + case 0: + e.indexOf(S.nodeModulesPathPart, i) === i && (t = i, r = a, o = 1); + break; + case 1: + case 2: + o = 1 === o && "@" === e.charAt(i + 1) ? 2 : (n = a, 3); + break; + case 3: + o = e.indexOf(S.nodeModulesPathPart, i) === i ? 1 : 3 + } + return 1 < o ? { + topLevelNodeModulesIndex: t, + topLevelPackageNameIndex: r, + packageRootIndex: n, + fileNameIndex: i + } : void 0 + }, S.getParameterTypeNode = function(e) { + var t; + return 343 === e.kind ? null == (t = e.typeExpression) ? void 0 : t.type : e.type + }, S.isTypeDeclaration = hi, S.canHaveExportModifier = function(e) { + return S.isEnumDeclaration(e) || S.isVariableStatement(e) || S.isFunctionDeclaration(e) || S.isClassDeclaration(e) || S.isInterfaceDeclaration(e) || hi(e) || S.isModuleDeclaration(e) && !ee(e) && !$(e) + } + }(ts = ts || {}), ! function(o) { + o.createBaseNodeFactory = function() { + var t, r, n, i, a; + return { + createBaseSourceFileNode: function(e) { + return new(a = a || o.objectAllocator.getSourceFileConstructor())(e, -1, -1) + }, + createBaseIdentifierNode: function(e) { + return new(n = n || o.objectAllocator.getIdentifierConstructor())(e, -1, -1) + }, + createBasePrivateIdentifierNode: function(e) { + return new(i = i || o.objectAllocator.getPrivateIdentifierConstructor())(e, -1, -1) + }, + createBaseTokenNode: function(e) { + return new(r = r || o.objectAllocator.getTokenConstructor())(e, -1, -1) + }, + createBaseNode: function(e) { + return new(t = t || o.objectAllocator.getNodeConstructor())(e, -1, -1) + } + } + } + }(ts = ts || {}), ! function(v) { + v.createParenthesizerRules = function(i) { + var r, n; + return { + getParenthesizeLeftSideOfBinaryForOperator: function(t) { + var e = (r = r || new v.Map).get(t); + e || (e = function(e) { + return o(t, e) + }, r.set(t, e)); + return e + }, + getParenthesizeRightSideOfBinaryForOperator: function(t) { + var e = (n = n || new v.Map).get(t); + e || (e = function(e) { + return s(t, void 0, e) + }, n.set(t, e)); + return e + }, + parenthesizeLeftSideOfBinary: o, + parenthesizeRightSideOfBinary: s, + parenthesizeExpressionOfComputedPropertyName: function(e) { + return v.isCommaSequence(e) ? i.createParenthesizedExpression(e) : e + }, + parenthesizeConditionOfConditionalExpression: function(e) { + var t = v.getOperatorPrecedence(224, 57), + r = v.skipPartiallyEmittedExpressions(e), + r = v.getExpressionPrecedence(r); + return 1 === v.compareValues(r, t) ? e : i.createParenthesizedExpression(e) + }, + parenthesizeBranchOfConditionalExpression: function(e) { + var t = v.skipPartiallyEmittedExpressions(e); + return v.isCommaSequence(t) ? i.createParenthesizedExpression(e) : e + }, + parenthesizeExpressionOfExportDefault: function(e) { + var t = v.skipPartiallyEmittedExpressions(e), + r = v.isCommaSequence(t); + if (!r) switch (v.getLeftmostExpression(t, !1).kind) { + case 228: + case 215: + r = !0 + } + return r ? i.createParenthesizedExpression(e) : e + }, + parenthesizeExpressionOfNew: function(e) { + var t = v.getLeftmostExpression(e, !0); + switch (t.kind) { + case 210: + return i.createParenthesizedExpression(e); + case 211: + return t.arguments ? e : i.createParenthesizedExpression(e) + } + return c(e) + }, + parenthesizeLeftSideOfAccess: c, + parenthesizeOperandOfPostfixUnary: function(e) { + return v.isLeftHandSideExpression(e) ? e : v.setTextRange(i.createParenthesizedExpression(e), e) + }, + parenthesizeOperandOfPrefixUnary: function(e) { + return v.isUnaryExpression(e) ? e : v.setTextRange(i.createParenthesizedExpression(e), e) + }, + parenthesizeExpressionsOfCommaDelimitedList: function(e) { + var t = v.sameMap(e, u); + return v.setTextRange(i.createNodeArray(t, e.hasTrailingComma), e) + }, + parenthesizeExpressionForDisallowedComma: u, + parenthesizeExpressionOfExpressionStatement: function(e) { + var t = v.skipPartiallyEmittedExpressions(e); + if (v.isCallExpression(t)) { + var r = t.expression, + n = v.skipPartiallyEmittedExpressions(r).kind; + if (215 === n || 216 === n) return n = i.updateCallExpression(t, v.setTextRange(i.createParenthesizedExpression(r), r), t.typeArguments, t.arguments), i.restoreOuterExpressions(e, n, 8) + } + r = v.getLeftmostExpression(t, !1).kind; + return 207 !== r && 215 !== r ? e : v.setTextRange(i.createParenthesizedExpression(e), e) + }, + parenthesizeConciseBodyOfArrowFunction: function(e) { + return v.isBlock(e) || !v.isCommaSequence(e) && 207 !== v.getLeftmostExpression(e, !1).kind ? e : v.setTextRange(i.createParenthesizedExpression(e), e) + }, + parenthesizeCheckTypeOfConditionalType: t, + parenthesizeExtendsTypeOfConditionalType: function(e) { + if (191 === e.kind) return i.createParenthesizedType(e); + return e + }, + parenthesizeConstituentTypesOfUnionType: function(e) { + return i.createNodeArray(v.sameMap(e, _)) + }, + parenthesizeConstituentTypeOfUnionType: _, + parenthesizeConstituentTypesOfIntersectionType: function(e) { + return i.createNodeArray(v.sameMap(e, d)) + }, + parenthesizeConstituentTypeOfIntersectionType: d, + parenthesizeOperandOfTypeOperator: p, + parenthesizeOperandOfReadonlyTypeOperator: function(e) { + if (195 === e.kind) return i.createParenthesizedType(e); + return p(e) + }, + parenthesizeNonArrayTypeOfPostfixType: f, + parenthesizeElementTypesOfTupleType: function(e) { + return i.createNodeArray(v.sameMap(e, g)) + }, + parenthesizeElementTypeOfTupleType: g, + parenthesizeTypeOfOptionalType: function(e) { + return m(e) ? i.createParenthesizedType(e) : f(e) + }, + parenthesizeTypeArguments: function(e) { + if (v.some(e)) return i.createNodeArray(v.sameMap(e, h)) + }, + parenthesizeLeadingTypeArgument: y + }; + + function l(e) { + var t; + return e = v.skipPartiallyEmittedExpressions(e), v.isLiteralKind(e.kind) ? e.kind : 223 === e.kind && 39 === e.operatorToken.kind ? void 0 !== e.cachedLiteralKind ? e.cachedLiteralKind : (t = l(e.left), t = v.isLiteralKind(t) && t === l(e.right) ? t : 0, e.cachedLiteralKind = t) : 0 + } + + function a(e, t, r, n) { + return 214 !== v.skipPartiallyEmittedExpressions(t).kind && function(e, t, r, n) { + var i = v.getOperatorPrecedence(223, e), + a = v.getOperatorAssociativity(223, e), + o = v.skipPartiallyEmittedExpressions(t); + if (!r && 216 === t.kind && 3 < i) return 1; + var s = v.getExpressionPrecedence(o); + switch (v.compareValues(s, i)) { + case -1: + return r || 1 !== a || 226 !== t.kind ? 1 : void 0; + case 1: + return; + case 0: + if (r) return 1 === a; + if (v.isBinaryExpression(o) && o.operatorToken.kind === e) { + if (41 === (c = e) || 51 === c || 50 === c || 52 === c || 27 === c) return; + if (39 === e) { + var c = n ? l(n) : 0; + if (v.isLiteralKind(c) && c === l(o)) return + } + } + return 0 === v.getExpressionAssociativity(o) + } + }(e, t, r, n) ? i.createParenthesizedExpression(t) : t + } + + function o(e, t) { + return a(e, t, !0) + } + + function s(e, t, r) { + return a(e, r, !1, t) + } + + function c(e, t) { + var r = v.skipPartiallyEmittedExpressions(e); + return !v.isLeftHandSideExpression(r) || 211 === r.kind && !r.arguments || !t && v.isOptionalChain(r) ? v.setTextRange(i.createParenthesizedExpression(e), e) : e + } + + function u(e) { + var t = v.skipPartiallyEmittedExpressions(e), + t = v.getExpressionPrecedence(t); + return v.getOperatorPrecedence(223, 27) < t ? e : v.setTextRange(i.createParenthesizedExpression(e), e) + } + + function t(e) { + switch (e.kind) { + case 181: + case 182: + case 191: + return i.createParenthesizedType(e) + } + return e + } + + function _(e) { + switch (e.kind) { + case 189: + case 190: + return i.createParenthesizedType(e) + } + return t(e) + } + + function d(e) { + switch (e.kind) { + case 189: + case 190: + return i.createParenthesizedType(e) + } + return _(e) + } + + function p(e) { + return 190 === e.kind ? i.createParenthesizedType(e) : d(e) + } + + function f(e) { + switch (e.kind) { + case 192: + case 195: + case 183: + return i.createParenthesizedType(e) + } + return p(e) + } + + function g(e) { + return m(e) ? i.createParenthesizedType(e) : e + } + + function m(e) { + return v.isJSDocNullableType(e) ? e.postfix : v.isNamedTupleMember(e) || v.isFunctionTypeNode(e) || v.isConstructorTypeNode(e) || v.isTypeOperatorNode(e) ? m(e.type) : v.isConditionalTypeNode(e) ? m(e.falseType) : v.isUnionTypeNode(e) || v.isIntersectionTypeNode(e) ? m(v.last(e.types)) : !!v.isInferTypeNode(e) && !!e.typeParameter.constraint && m(e.typeParameter.constraint) + } + + function y(e) { + return v.isFunctionOrConstructorTypeNode(e) && e.typeParameters ? i.createParenthesizedType(e) : e + } + + function h(e, t) { + return 0 === t ? y(e) : e + } + }, v.nullParenthesizerRules = { + getParenthesizeLeftSideOfBinaryForOperator: function(e) { + return v.identity + }, + getParenthesizeRightSideOfBinaryForOperator: function(e) { + return v.identity + }, + parenthesizeLeftSideOfBinary: function(e, t) { + return t + }, + parenthesizeRightSideOfBinary: function(e, t, r) { + return r + }, + parenthesizeExpressionOfComputedPropertyName: v.identity, + parenthesizeConditionOfConditionalExpression: v.identity, + parenthesizeBranchOfConditionalExpression: v.identity, + parenthesizeExpressionOfExportDefault: v.identity, + parenthesizeExpressionOfNew: function(e) { + return v.cast(e, v.isLeftHandSideExpression) + }, + parenthesizeLeftSideOfAccess: function(e) { + return v.cast(e, v.isLeftHandSideExpression) + }, + parenthesizeOperandOfPostfixUnary: function(e) { + return v.cast(e, v.isLeftHandSideExpression) + }, + parenthesizeOperandOfPrefixUnary: function(e) { + return v.cast(e, v.isUnaryExpression) + }, + parenthesizeExpressionsOfCommaDelimitedList: function(e) { + return v.cast(e, v.isNodeArray) + }, + parenthesizeExpressionForDisallowedComma: v.identity, + parenthesizeExpressionOfExpressionStatement: v.identity, + parenthesizeConciseBodyOfArrowFunction: v.identity, + parenthesizeCheckTypeOfConditionalType: v.identity, + parenthesizeExtendsTypeOfConditionalType: v.identity, + parenthesizeConstituentTypesOfUnionType: function(e) { + return v.cast(e, v.isNodeArray) + }, + parenthesizeConstituentTypeOfUnionType: v.identity, + parenthesizeConstituentTypesOfIntersectionType: function(e) { + return v.cast(e, v.isNodeArray) + }, + parenthesizeConstituentTypeOfIntersectionType: v.identity, + parenthesizeOperandOfTypeOperator: v.identity, + parenthesizeOperandOfReadonlyTypeOperator: v.identity, + parenthesizeNonArrayTypeOfPostfixType: v.identity, + parenthesizeElementTypesOfTupleType: function(e) { + return v.cast(e, v.isNodeArray) + }, + parenthesizeElementTypeOfTupleType: v.identity, + parenthesizeTypeOfOptionalType: v.identity, + parenthesizeTypeArguments: function(e) { + return e && v.cast(e, v.isNodeArray) + }, + parenthesizeLeadingTypeArgument: v.identity + } + }(ts = ts || {}), ! function(c) { + c.createNodeConverters = function(n) { + return { + convertToFunctionBlock: function(e, t) { + var r; + return c.isBlock(e) ? e : (r = n.createReturnStatement(e), c.setTextRange(r, e), r = n.createBlock([r], t), c.setTextRange(r, e), r) + }, + convertToFunctionExpression: function(e) { + if (!e.body) return c.Debug.fail("Cannot convert a FunctionDeclaration without a body"); + var t = n.createFunctionExpression(e.modifiers, e.asteriskToken, e.name, e.typeParameters, e.parameters, e.type, e.body); + c.setOriginalNode(t, e), c.setTextRange(t, e), c.getStartsOnNewLine(e) && c.setStartsOnNewLine(t, !0); + return t + }, + convertToArrayAssignmentElement: t, + convertToObjectAssignmentElement: r, + convertToAssignmentPattern: i, + convertToObjectAssignmentPattern: a, + convertToArrayAssignmentPattern: o, + convertToAssignmentElementTarget: s + }; + + function t(e) { + var t; + return c.isBindingElement(e) ? e.dotDotDotToken ? (c.Debug.assertNode(e.name, c.isIdentifier), c.setOriginalNode(c.setTextRange(n.createSpreadElement(e.name), e), e)) : (t = s(e.name), e.initializer ? c.setOriginalNode(c.setTextRange(n.createAssignment(t, e.initializer), e), e) : t) : c.cast(e, c.isExpression) + } + + function r(e) { + var t; + return c.isBindingElement(e) ? e.dotDotDotToken ? (c.Debug.assertNode(e.name, c.isIdentifier), c.setOriginalNode(c.setTextRange(n.createSpreadAssignment(e.name), e), e)) : e.propertyName ? (t = s(e.name), c.setOriginalNode(c.setTextRange(n.createPropertyAssignment(e.propertyName, e.initializer ? n.createAssignment(t, e.initializer) : t), e), e)) : (c.Debug.assertNode(e.name, c.isIdentifier), c.setOriginalNode(c.setTextRange(n.createShorthandPropertyAssignment(e.name, e.initializer), e), e)) : c.cast(e, c.isObjectLiteralElementLike) + } + + function i(e) { + switch (e.kind) { + case 204: + case 206: + return o(e); + case 203: + case 207: + return a(e) + } + } + + function a(e) { + return c.isObjectBindingPattern(e) ? c.setOriginalNode(c.setTextRange(n.createObjectLiteralExpression(c.map(e.elements, r)), e), e) : c.cast(e, c.isObjectLiteralExpression) + } + + function o(e) { + return c.isArrayBindingPattern(e) ? c.setOriginalNode(c.setTextRange(n.createArrayLiteralExpression(c.map(e.elements, t)), e), e) : c.cast(e, c.isArrayLiteralExpression) + } + + function s(e) { + return c.isBindingPattern(e) ? i(e) : c.cast(e, c.isExpression) + } + }, c.nullNodeConverters = { + convertToFunctionBlock: c.notImplemented, + convertToFunctionExpression: c.notImplemented, + convertToArrayAssignmentElement: c.notImplemented, + convertToObjectAssignmentElement: c.notImplemented, + convertToAssignmentPattern: c.notImplemented, + convertToObjectAssignmentPattern: c.notImplemented, + convertToArrayAssignmentPattern: c.notImplemented, + convertToAssignmentElementTarget: c.notImplemented + } + }(ts = ts || {}), ! function(ui) { + var e, _i, di = 0; + + function t(e, l) { + var u = 8 & e ? pi : fi, + s = ui.memoize(function() { + return 1 & e ? ui.nullParenthesizerRules : ui.createParenthesizerRules(c) + }), + L = ui.memoize(function() { + return 2 & e ? ui.nullNodeConverters : ui.createNodeConverters(c) + }), + t = ui.memoizeOne(function(r) { + return function(e, t) { + return Mt(e, r, t) + } + }), + r = ui.memoizeOne(function(t) { + return function(e) { + return It(t, e) + } + }), + R = ui.memoizeOne(function(t) { + return function(e) { + return Ot(e, t) + } + }), + B = ui.memoizeOne(function(e) { + return function() { + return _(e) + } + }), + j = ui.memoizeOne(function(t) { + return function(e) { + return an(t, e) + } + }), + J = ui.memoizeOne(function(n) { + return function(e, t) { + return r = n, t = t, (e = e).type !== t ? u(an(r, t), e) : e; + var r + } + }), + z = ui.memoizeOne(function(r) { + return function(e, t) { + return nn(r, e, t) + } + }), + U = ui.memoizeOne(function(n) { + return function(e, t) { + return r = n, t = t, (e = e).type !== t ? u(nn(r, t, e.postfix), e) : e; + var r + } + }), + n = ui.memoizeOne(function(r) { + return function(e, t) { + return Sn(r, e, t) + } + }), + i = ui.memoizeOne(function(i) { + return function(e, t, r) { + var n = i; + return void 0 === t && (t = E(e)), e.tagName !== t || e.comment !== r ? u(Sn(n, t, r), e) : e + } + }), + a = ui.memoizeOne(function(n) { + return function(e, t, r) { + return Tn(n, e, t, r) + } + }), + o = ui.memoizeOne(function(a) { + return function(e, t, r, n) { + var i = a; + return void 0 === t && (t = E(e)), e.tagName !== t || e.typeExpression !== r || e.comment !== n ? u(Tn(i, t, r, n), e) : e + } + }), + c = {get parenthesizer() { + return s() + }, + get converters() { + return L() + }, + baseFactory: l, + flags: e, + createNodeArray: f, + createNumericLiteral: G, + createBigIntLiteral: Q, + createStringLiteral: v, + createStringLiteralFromNode: function(e) { + var t = X(ui.getTextOfIdentifierOrLiteral(e), void 0); + return t.textSourceNode = e, t + }, + createRegularExpressionLiteral: Y, + createLiteralLikeNode: function(e, t) { + switch (e) { + case 8: + return G(t, 0); + case 9: + return Q(t); + case 10: + return v(t, void 0); + case 11: + return In(t, !1); + case 12: + return In(t, !0); + case 13: + return Y(t); + case 14: + return Jt(e, t, void 0, 0) + } + }, + createIdentifier: b, + updateIdentifier: function(e, t) { + return e.typeArguments !== t ? u(b(ui.idText(e), t), e) : e + }, + createTempVariable: ee, + createLoopVariable: function(e) { + var t = 2; + e && (t |= 8); + return $("", t, void 0, void 0) + }, + createUniqueName: function(e, t, r, n) { + void 0 === t && (t = 0); + return ui.Debug.assert(!(7 & t), "Argument out of range: flags"), ui.Debug.assert(32 != (48 & t), "GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"), $(e, 3 | t, r, n) + }, + getGeneratedNameForNode: te, + createPrivateIdentifier: function(e) { + ui.startsWith(e, "#") || ui.Debug.fail("First character of private identifier must be #: " + e); + return re(e) + }, + createUniquePrivateName: function(e, t, r) { + e && !ui.startsWith(e, "#") && ui.Debug.fail("First character of private identifier must be #: " + e); + return ne(null != e ? e : "", 8 | (e ? 3 : 1), t, r) + }, + getGeneratedPrivateNameForNode: function(e, t, r) { + t = ne(ui.isMemberName(e) ? ui.formatGeneratedName(!0, t, e, r, ui.idText) : "#generated@".concat(ui.getNodeId(e)), 4 | (t || r ? 16 : 0), t, r); + return t.original = e, t + }, + createToken: x, + createSuper: function() { + return x(106) + }, + createThis: ae, + createNull: function() { + return x(104) + }, + createTrue: oe, + createFalse: se, + createModifier: ce, + createModifiersFromModifierFlags: le, + createQualifiedName: ue, + updateQualifiedName: function(e, t, r) { + return e.left !== t || e.right !== r ? u(ue(t, r), e) : e + }, + createComputedPropertyName: _e, + updateComputedPropertyName: function(e, t) { + return e.expression !== t ? u(_e(t), e) : e + }, + createTypeParameterDeclaration: de, + updateTypeParameterDeclaration: pe, + createParameterDeclaration: fe, + updateParameterDeclaration: ge, + createDecorator: me, + updateDecorator: function(e, t) { + return e.expression !== t ? u(me(t), e) : e + }, + createPropertySignature: ye, + updatePropertySignature: he, + createPropertyDeclaration: ve, + updatePropertyDeclaration: be, + createMethodSignature: xe, + updateMethodSignature: De, + createMethodDeclaration: Se, + updateMethodDeclaration: Te, + createConstructorDeclaration: Ee, + updateConstructorDeclaration: ke, + createGetAccessorDeclaration: Ne, + updateGetAccessorDeclaration: Ae, + createSetAccessorDeclaration: Fe, + updateSetAccessorDeclaration: Pe, + createCallSignature: we, + updateCallSignature: function(e, t, r, n) { + return e.typeParameters !== t || e.parameters !== r || e.type !== n ? y(we(t, r, n), e) : e + }, + createConstructSignature: Ie, + updateConstructSignature: function(e, t, r, n) { + return e.typeParameters !== t || e.parameters !== r || e.type !== n ? y(Ie(t, r, n), e) : e + }, + createIndexSignature: Oe, + updateIndexSignature: Me, + createClassStaticBlockDeclaration: Ce, + updateClassStaticBlockDeclaration: function(e, t) { + return e.body !== t ? function(e, t) { + e !== t && (e.illegalDecorators = t.illegalDecorators, e.modifiers = t.modifiers); + return u(e, t) + }(Ce(t), e) : e + }, + createTemplateLiteralTypeSpan: Le, + updateTemplateLiteralTypeSpan: function(e, t, r) { + return e.type !== t || e.literal !== r ? u(Le(t, r), e) : e + }, + createKeywordTypeNode: x, + createTypePredicateNode: Re, + updateTypePredicateNode: function(e, t, r, n) { + return e.assertsModifier !== t || e.parameterName !== r || e.type !== n ? u(Re(t, r, n), e) : e + }, + createTypeReferenceNode: Be, + updateTypeReferenceNode: function(e, t, r) { + return e.typeName !== t || e.typeArguments !== r ? u(Be(t, r), e) : e + }, + createFunctionTypeNode: je, + updateFunctionTypeNode: function(e, t, r, n) { + return e.typeParameters !== t || e.parameters !== r || e.type !== n ? function(e, t) { + e !== t && (e.modifiers = t.modifiers); + return y(e, t) + }(je(t, r, n), e) : e + }, + createConstructorTypeNode: Je, + updateConstructorTypeNode: function() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + return 5 === e.length ? Ue.apply(void 0, e) : 4 === e.length ? function(e, t, r, n) { + return Ue(e, e.modifiers, t, r, n) + }.apply(void 0, e) : ui.Debug.fail("Incorrect number of arguments specified.") + }, + createTypeQueryNode: Ke, + updateTypeQueryNode: function(e, t, r) { + return e.exprName !== t || e.typeArguments !== r ? u(Ke(t, r), e) : e + }, + createTypeLiteralNode: Ve, + updateTypeLiteralNode: function(e, t) { + return e.members !== t ? u(Ve(t), e) : e + }, + createArrayTypeNode: qe, + updateArrayTypeNode: function(e, t) { + return e.elementType !== t ? u(qe(t), e) : e + }, + createTupleTypeNode: We, + updateTupleTypeNode: function(e, t) { + return e.elements !== t ? u(We(t), e) : e + }, + createNamedTupleMember: He, + updateNamedTupleMember: function(e, t, r, n, i) { + return e.dotDotDotToken !== t || e.name !== r || e.questionToken !== n || e.type !== i ? u(He(t, r, n, i), e) : e + }, + createOptionalTypeNode: Ge, + updateOptionalTypeNode: function(e, t) { + return e.type !== t ? u(Ge(t), e) : e + }, + createRestTypeNode: Qe, + updateRestTypeNode: function(e, t) { + return e.type !== t ? u(Qe(t), e) : e + }, + createUnionTypeNode: function(e) { + return Xe(189, e, s().parenthesizeConstituentTypesOfUnionType) + }, + updateUnionTypeNode: function(e, t) { + return Ye(e, t, s().parenthesizeConstituentTypesOfUnionType) + }, + createIntersectionTypeNode: function(e) { + return Xe(190, e, s().parenthesizeConstituentTypesOfIntersectionType) + }, + updateIntersectionTypeNode: function(e, t) { + return Ye(e, t, s().parenthesizeConstituentTypesOfIntersectionType) + }, + createConditionalTypeNode: Ze, + updateConditionalTypeNode: function(e, t, r, n, i) { + return e.checkType !== t || e.extendsType !== r || e.trueType !== n || e.falseType !== i ? u(Ze(t, r, n, i), e) : e + }, + createInferTypeNode: $e, + updateInferTypeNode: function(e, t) { + return e.typeParameter !== t ? u($e(t), e) : e + }, + createImportTypeNode: tt, + updateImportTypeNode: function(e, t, r, n, i, a) { + void 0 === a && (a = e.isTypeOf); + return e.argument !== t || e.assertions !== r || e.qualifier !== n || e.typeArguments !== i || e.isTypeOf !== a ? u(tt(t, r, n, i, a), e) : e + }, + createParenthesizedType: rt, + updateParenthesizedType: function(e, t) { + return e.type !== t ? u(rt(t), e) : e + }, + createThisTypeNode: function() { + var e = _(194); + return e.transformFlags = 1, e + }, + createTypeOperatorNode: nt, + updateTypeOperatorNode: function(e, t) { + return e.type !== t ? u(nt(e.operator, t), e) : e + }, + createIndexedAccessTypeNode: it, + updateIndexedAccessTypeNode: function(e, t, r) { + return e.objectType !== t || e.indexType !== r ? u(it(t, r), e) : e + }, + createMappedTypeNode: at, + updateMappedTypeNode: function(e, t, r, n, i, a, o) { + return e.readonlyToken !== t || e.typeParameter !== r || e.nameType !== n || e.questionToken !== i || e.type !== a || e.members !== o ? u(at(t, r, n, i, a, o), e) : e + }, + createLiteralTypeNode: ot, + updateLiteralTypeNode: function(e, t) { + return e.literal !== t ? u(ot(t), e) : e + }, + createTemplateLiteralType: et, + updateTemplateLiteralType: function(e, t, r) { + return e.head !== t || e.templateSpans !== r ? u(et(t, r), e) : e + }, + createObjectBindingPattern: st, + updateObjectBindingPattern: function(e, t) { + return e.elements !== t ? u(st(t), e) : e + }, + createArrayBindingPattern: ct, + updateArrayBindingPattern: function(e, t) { + return e.elements !== t ? u(ct(t), e) : e + }, + createBindingElement: lt, + updateBindingElement: function(e, t, r, n, i) { + return e.propertyName !== r || e.dotDotDotToken !== t || e.name !== n || e.initializer !== i ? u(lt(t, r, n, i), e) : e + }, + createArrayLiteralExpression: ut, + updateArrayLiteralExpression: function(e, t) { + return e.elements !== t ? u(ut(t, e.multiLine), e) : e + }, + createObjectLiteralExpression: _t, + updateObjectLiteralExpression: function(e, t) { + return e.properties !== t ? u(_t(t, e.multiLine), e) : e + }, + createPropertyAccessExpression: 4 & e ? function(e, t) { + return ui.setEmitFlags(S(e, t), 131072) + } : S, + updatePropertyAccessExpression: function(e, t, r) { + if (ui.isPropertyAccessChain(e)) return pt(e, t, e.questionDotToken, ui.cast(r, ui.isIdentifier)); + return e.expression !== t || e.name !== r ? u(S(t, r), e) : e + }, + createPropertyAccessChain: 4 & e ? function(e, t, r) { + return ui.setEmitFlags(dt(e, t, r), 131072) + } : dt, + updatePropertyAccessChain: pt, + createElementAccessExpression: ft, + updateElementAccessExpression: function(e, t, r) { + if (ui.isElementAccessChain(e)) return mt(e, t, e.questionDotToken, r); + return e.expression !== t || e.argumentExpression !== r ? u(ft(t, r), e) : e + }, + createElementAccessChain: gt, + updateElementAccessChain: mt, + createCallExpression: T, + updateCallExpression: function(e, t, r, n) { + if (ui.isCallChain(e)) return ht(e, t, e.questionDotToken, r, n); + return e.expression !== t || e.typeArguments !== r || e.arguments !== n ? u(T(t, r, n), e) : e + }, + createCallChain: yt, + updateCallChain: ht, + createNewExpression: vt, + updateNewExpression: function(e, t, r, n) { + return e.expression !== t || e.typeArguments !== r || e.arguments !== n ? u(vt(t, r, n), e) : e + }, + createTaggedTemplateExpression: bt, + updateTaggedTemplateExpression: function(e, t, r, n) { + return e.tag !== t || e.typeArguments !== r || e.template !== n ? u(bt(t, r, n), e) : e + }, + createTypeAssertion: xt, + updateTypeAssertion: Dt, + createParenthesizedExpression: St, + updateParenthesizedExpression: Tt, + createFunctionExpression: Ct, + updateFunctionExpression: Et, + createArrowFunction: kt, + updateArrowFunction: Nt, + createDeleteExpression: At, + updateDeleteExpression: function(e, t) { + return e.expression !== t ? u(At(t), e) : e + }, + createTypeOfExpression: Ft, + updateTypeOfExpression: function(e, t) { + return e.expression !== t ? u(Ft(t), e) : e + }, + createVoidExpression: Pt, + updateVoidExpression: function(e, t) { + return e.expression !== t ? u(Pt(t), e) : e + }, + createAwaitExpression: wt, + updateAwaitExpression: function(e, t) { + return e.expression !== t ? u(wt(t), e) : e + }, + createPrefixUnaryExpression: It, + updatePrefixUnaryExpression: function(e, t) { + return e.operand !== t ? u(It(e.operator, t), e) : e + }, + createPostfixUnaryExpression: Ot, + updatePostfixUnaryExpression: function(e, t) { + return e.operand !== t ? u(Ot(t, e.operator), e) : e + }, + createBinaryExpression: Mt, + updateBinaryExpression: function(e, t, r, n) { + return e.left !== t || e.operatorToken !== r || e.right !== n ? u(Mt(t, r, n), e) : e + }, + createConditionalExpression: Rt, + updateConditionalExpression: function(e, t, r, n, i, a) { + return e.condition !== t || e.questionToken !== r || e.whenTrue !== n || e.colonToken !== i || e.whenFalse !== a ? u(Rt(t, r, n, i, a), e) : e + }, + createTemplateExpression: Bt, + updateTemplateExpression: function(e, t, r) { + return e.head !== t || e.templateSpans !== r ? u(Bt(t, r), e) : e + }, + createTemplateHead: function(e, t, r) { + return jt(15, e, t, r) + }, + createTemplateMiddle: function(e, t, r) { + return jt(16, e, t, r) + }, + createTemplateTail: function(e, t, r) { + return jt(17, e, t, r) + }, + createNoSubstitutionTemplateLiteral: function(e, t, r) { + return jt(14, e, t, r) + }, + createTemplateLiteralLikeNode: Jt, + createYieldExpression: zt, + updateYieldExpression: function(e, t, r) { + return e.expression !== r || e.asteriskToken !== t ? u(zt(t, r), e) : e + }, + createSpreadElement: Ut, + updateSpreadElement: function(e, t) { + return e.expression !== t ? u(Ut(t), e) : e + }, + createClassExpression: Kt, + updateClassExpression: Vt, + createOmittedExpression: function() { + return D(229) + }, + createExpressionWithTypeArguments: qt, + updateExpressionWithTypeArguments: function(e, t, r) { + return e.expression !== t || e.typeArguments !== r ? u(qt(t, r), e) : e + }, + createAsExpression: Wt, + updateAsExpression: Ht, + createNonNullExpression: Gt, + updateNonNullExpression: Qt, + createSatisfiesExpression: Xt, + updateSatisfiesExpression: Yt, + createNonNullChain: Zt, + updateNonNullChain: $t, + createMetaProperty: er, + updateMetaProperty: function(e, t) { + return e.name !== t ? u(er(e.keywordToken, t), e) : e + }, + createTemplateSpan: tr, + updateTemplateSpan: function(e, t, r) { + return e.expression !== t || e.literal !== r ? u(tr(t, r), e) : e + }, + createSemicolonClassElement: function() { + var e = _(237); + return e.transformFlags |= 1024, e + }, + createBlock: C, + updateBlock: function(e, t) { + return e.statements !== t ? u(C(t, e.multiLine), e) : e + }, + createVariableStatement: rr, + updateVariableStatement: nr, + createEmptyStatement: ir, + createExpressionStatement: ar, + updateExpressionStatement: function(e, t) { + return e.expression !== t ? u(ar(t), e) : e + }, + createIfStatement: or, + updateIfStatement: function(e, t, r, n) { + return e.expression !== t || e.thenStatement !== r || e.elseStatement !== n ? u(or(t, r, n), e) : e + }, + createDoStatement: sr, + updateDoStatement: function(e, t, r) { + return e.statement !== t || e.expression !== r ? u(sr(t, r), e) : e + }, + createWhileStatement: cr, + updateWhileStatement: function(e, t, r) { + return e.expression !== t || e.statement !== r ? u(cr(t, r), e) : e + }, + createForStatement: lr, + updateForStatement: function(e, t, r, n, i) { + return e.initializer !== t || e.condition !== r || e.incrementor !== n || e.statement !== i ? u(lr(t, r, n, i), e) : e + }, + createForInStatement: ur, + updateForInStatement: function(e, t, r, n) { + return e.initializer !== t || e.expression !== r || e.statement !== n ? u(ur(t, r, n), e) : e + }, + createForOfStatement: _r, + updateForOfStatement: function(e, t, r, n, i) { + return e.awaitModifier !== t || e.initializer !== r || e.expression !== n || e.statement !== i ? u(_r(t, r, n, i), e) : e + }, + createContinueStatement: dr, + updateContinueStatement: function(e, t) { + return e.label !== t ? u(dr(t), e) : e + }, + createBreakStatement: pr, + updateBreakStatement: function(e, t) { + return e.label !== t ? u(pr(t), e) : e + }, + createReturnStatement: fr, + updateReturnStatement: function(e, t) { + return e.expression !== t ? u(fr(t), e) : e + }, + createWithStatement: gr, + updateWithStatement: function(e, t, r) { + return e.expression !== t || e.statement !== r ? u(gr(t, r), e) : e + }, + createSwitchStatement: mr, + updateSwitchStatement: function(e, t, r) { + return e.expression !== t || e.caseBlock !== r ? u(mr(t, r), e) : e + }, + createLabeledStatement: yr, + updateLabeledStatement: hr, + createThrowStatement: vr, + updateThrowStatement: function(e, t) { + return e.expression !== t ? u(vr(t), e) : e + }, + createTryStatement: br, + updateTryStatement: function(e, t, r, n) { + return e.tryBlock !== t || e.catchClause !== r || e.finallyBlock !== n ? u(br(t, r, n), e) : e + }, + createDebuggerStatement: function() { + return _(256) + }, + createVariableDeclaration: xr, + updateVariableDeclaration: function(e, t, r, n, i) { + return e.name !== t || e.type !== n || e.exclamationToken !== r || e.initializer !== i ? u(xr(t, r, n, i), e) : e + }, + createVariableDeclarationList: Dr, + updateVariableDeclarationList: function(e, t) { + return e.declarations !== t ? u(Dr(t, e.flags), e) : e + }, + createFunctionDeclaration: Sr, + updateFunctionDeclaration: Tr, + createClassDeclaration: Cr, + updateClassDeclaration: Er, + createInterfaceDeclaration: kr, + updateInterfaceDeclaration: Nr, + createTypeAliasDeclaration: Ar, + updateTypeAliasDeclaration: Fr, + createEnumDeclaration: Pr, + updateEnumDeclaration: wr, + createModuleDeclaration: Ir, + updateModuleDeclaration: Or, + createModuleBlock: Mr, + updateModuleBlock: function(e, t) { + return e.statements !== t ? u(Mr(t), e) : e + }, + createCaseBlock: Lr, + updateCaseBlock: function(e, t) { + return e.clauses !== t ? u(Lr(t), e) : e + }, + createNamespaceExportDeclaration: Rr, + updateNamespaceExportDeclaration: function(e, t) { + return e.name !== t ? function(e, t) { + e !== t && (e.illegalDecorators = t.illegalDecorators, e.modifiers = t.modifiers); + return u(e, t) + }(Rr(t), e) : e + }, + createImportEqualsDeclaration: Br, + updateImportEqualsDeclaration: jr, + createImportDeclaration: Jr, + updateImportDeclaration: zr, + createImportClause: Ur, + updateImportClause: function(e, t, r, n) { + return e.isTypeOnly !== t || e.name !== r || e.namedBindings !== n ? u(Ur(t, r, n), e) : e + }, + createAssertClause: Kr, + updateAssertClause: function(e, t, r) { + return e.elements !== t || e.multiLine !== r ? u(Kr(t, r), e) : e + }, + createAssertEntry: Vr, + updateAssertEntry: function(e, t, r) { + return e.name !== t || e.value !== r ? u(Vr(t, r), e) : e + }, + createImportTypeAssertionContainer: qr, + updateImportTypeAssertionContainer: function(e, t, r) { + return e.assertClause !== t || e.multiLine !== r ? u(qr(t, r), e) : e + }, + createNamespaceImport: Wr, + updateNamespaceImport: function(e, t) { + return e.name !== t ? u(Wr(t), e) : e + }, + createNamespaceExport: Hr, + updateNamespaceExport: function(e, t) { + return e.name !== t ? u(Hr(t), e) : e + }, + createNamedImports: Gr, + updateNamedImports: function(e, t) { + return e.elements !== t ? u(Gr(t), e) : e + }, + createImportSpecifier: Qr, + updateImportSpecifier: function(e, t, r, n) { + return e.isTypeOnly !== t || e.propertyName !== r || e.name !== n ? u(Qr(t, r, n), e) : e + }, + createExportAssignment: Xr, + updateExportAssignment: Yr, + createExportDeclaration: Zr, + updateExportDeclaration: $r, + createNamedExports: en, + updateNamedExports: function(e, t) { + return e.elements !== t ? u(en(t), e) : e + }, + createExportSpecifier: tn, + updateExportSpecifier: function(e, t, r, n) { + return e.isTypeOnly !== t || e.propertyName !== r || e.name !== n ? u(tn(t, r, n), e) : e + }, + createMissingDeclaration: function() { + return d(279) + }, + createExternalModuleReference: rn, + updateExternalModuleReference: function(e, t) { + return e.expression !== t ? u(rn(t), e) : e + }, + get createJSDocAllType() { + return B(315) + }, + get createJSDocUnknownType() { + return B(316) + }, + get createJSDocNonNullableType() { + return z(318) + }, + get updateJSDocNonNullableType() { + return U(318) + }, + get createJSDocNullableType() { + return z(317) + }, + get updateJSDocNullableType() { + return U(317) + }, + get createJSDocOptionalType() { + return j(319) + }, + get updateJSDocOptionalType() { + return J(319) + }, + get createJSDocVariadicType() { + return j(321) + }, + get updateJSDocVariadicType() { + return J(321) + }, + get createJSDocNamepathType() { + return j(322) + }, + get updateJSDocNamepathType() { + return J(322) + }, + createJSDocFunctionType: on, + updateJSDocFunctionType: function(e, t, r) { + return e.parameters !== t || e.type !== r ? u(on(t, r), e) : e + }, + createJSDocTypeLiteral: sn, + updateJSDocTypeLiteral: function(e, t, r) { + return e.jsDocPropertyTags !== t || e.isArrayType !== r ? u(sn(t, r), e) : e + }, + createJSDocTypeExpression: cn, + updateJSDocTypeExpression: function(e, t) { + return e.type !== t ? u(cn(t), e) : e + }, + createJSDocSignature: ln, + updateJSDocSignature: function(e, t, r, n) { + return e.typeParameters !== t || e.parameters !== r || e.type !== n ? u(ln(t, r, n), e) : e + }, + createJSDocTemplateTag: un, + updateJSDocTemplateTag: function(e, t, r, n, i) { + void 0 === t && (t = E(e)); + return e.tagName !== t || e.constraint !== r || e.typeParameters !== n || e.comment !== i ? u(un(t, r, n, i), e) : e + }, + createJSDocTypedefTag: _n, + updateJSDocTypedefTag: function(e, t, r, n, i) { + void 0 === t && (t = E(e)); + return e.tagName !== t || e.typeExpression !== r || e.fullName !== n || e.comment !== i ? u(_n(t, r, n, i), e) : e + }, + createJSDocParameterTag: dn, + updateJSDocParameterTag: function(e, t, r, n, i, a, o) { + void 0 === t && (t = E(e)); + return e.tagName !== t || e.name !== r || e.isBracketed !== n || e.typeExpression !== i || e.isNameFirst !== a || e.comment !== o ? u(dn(t, r, n, i, a, o), e) : e + }, + createJSDocPropertyTag: pn, + updateJSDocPropertyTag: function(e, t, r, n, i, a, o) { + void 0 === t && (t = E(e)); + return e.tagName !== t || e.name !== r || e.isBracketed !== n || e.typeExpression !== i || e.isNameFirst !== a || e.comment !== o ? u(pn(t, r, n, i, a, o), e) : e + }, + createJSDocCallbackTag: fn, + updateJSDocCallbackTag: function(e, t, r, n, i) { + void 0 === t && (t = E(e)); + return e.tagName !== t || e.typeExpression !== r || e.fullName !== n || e.comment !== i ? u(fn(t, r, n, i), e) : e + }, + createJSDocAugmentsTag: gn, + updateJSDocAugmentsTag: function(e, t, r, n) { + void 0 === t && (t = E(e)); + return e.tagName !== t || e.class !== r || e.comment !== n ? u(gn(t, r, n), e) : e + }, + createJSDocImplementsTag: mn, + updateJSDocImplementsTag: function(e, t, r, n) { + void 0 === t && (t = E(e)); + return e.tagName !== t || e.class !== r || e.comment !== n ? u(mn(t, r, n), e) : e + }, + createJSDocSeeTag: yn, + updateJSDocSeeTag: function(e, t, r, n) { + return e.tagName !== t || e.name !== r || e.comment !== n ? u(yn(t, r, n), e) : e + }, + createJSDocNameReference: hn, + updateJSDocNameReference: function(e, t) { + return e.name !== t ? u(hn(t), e) : e + }, + createJSDocMemberName: vn, + updateJSDocMemberName: function(e, t, r) { + return e.left !== t || e.right !== r ? u(vn(t, r), e) : e + }, + createJSDocLink: bn, + updateJSDocLink: function(e, t, r) { + return e.name !== t ? u(bn(t, r), e) : e + }, + createJSDocLinkCode: xn, + updateJSDocLinkCode: function(e, t, r) { + return e.name !== t ? u(xn(t, r), e) : e + }, + createJSDocLinkPlain: Dn, + updateJSDocLinkPlain: function(e, t, r) { + return e.name !== t ? u(Dn(t, r), e) : e + }, + get createJSDocTypeTag() { + return a(346) + }, + get updateJSDocTypeTag() { + return o(346) + }, + get createJSDocReturnTag() { + return a(344) + }, + get updateJSDocReturnTag() { + return o(344) + }, + get createJSDocThisTag() { + return a(345) + }, + get updateJSDocThisTag() { + return o(345) + }, + get createJSDocEnumTag() { + return a(342) + }, + get updateJSDocEnumTag() { + return o(342) + }, + get createJSDocAuthorTag() { + return n(333) + }, + get updateJSDocAuthorTag() { + return i(333) + }, + get createJSDocClassTag() { + return n(335) + }, + get updateJSDocClassTag() { + return i(335) + }, + get createJSDocPublicTag() { + return n(336) + }, + get updateJSDocPublicTag() { + return i(336) + }, + get createJSDocPrivateTag() { + return n(337) + }, + get updateJSDocPrivateTag() { + return i(337) + }, + get createJSDocProtectedTag() { + return n(338) + }, + get updateJSDocProtectedTag() { + return i(338) + }, + get createJSDocReadonlyTag() { + return n(339) + }, + get updateJSDocReadonlyTag() { + return i(339) + }, + get createJSDocOverrideTag() { + return n(340) + }, + get updateJSDocOverrideTag() { + return i(340) + }, + get createJSDocDeprecatedTag() { + return n(334) + }, + get updateJSDocDeprecatedTag() { + return i(334) + }, + createJSDocUnknownTag: Cn, + updateJSDocUnknownTag: function(e, t, r) { + return e.tagName !== t || e.comment !== r ? u(Cn(t, r), e) : e + }, + createJSDocText: En, + updateJSDocText: function(e, t) { + return e.text !== t ? u(En(t), e) : e + }, + createJSDocComment: kn, + updateJSDocComment: function(e, t, r) { + return e.comment !== t || e.tags !== r ? u(kn(t, r), e) : e + }, + createJsxElement: Nn, + updateJsxElement: function(e, t, r, n) { + return e.openingElement !== t || e.children !== r || e.closingElement !== n ? u(Nn(t, r, n), e) : e + }, + createJsxSelfClosingElement: An, + updateJsxSelfClosingElement: function(e, t, r, n) { + return e.tagName !== t || e.typeArguments !== r || e.attributes !== n ? u(An(t, r, n), e) : e + }, + createJsxOpeningElement: Fn, + updateJsxOpeningElement: function(e, t, r, n) { + return e.tagName !== t || e.typeArguments !== r || e.attributes !== n ? u(Fn(t, r, n), e) : e + }, + createJsxClosingElement: Pn, + updateJsxClosingElement: function(e, t) { + return e.tagName !== t ? u(Pn(t), e) : e + }, + createJsxFragment: wn, + createJsxText: In, + updateJsxText: function(e, t, r) { + return e.text !== t || e.containsOnlyTriviaWhiteSpaces !== r ? u(In(t, r), e) : e + }, + createJsxOpeningFragment: function() { + var e = _(286); + return e.transformFlags |= 2, e + }, + createJsxJsxClosingFragment: function() { + var e = _(287); + return e.transformFlags |= 2, e + }, + updateJsxFragment: function(e, t, r, n) { + return e.openingFragment !== t || e.children !== r || e.closingFragment !== n ? u(wn(t, r, n), e) : e + }, + createJsxAttribute: On, + updateJsxAttribute: function(e, t, r) { + return e.name !== t || e.initializer !== r ? u(On(t, r), e) : e + }, + createJsxAttributes: Mn, + updateJsxAttributes: function(e, t) { + return e.properties !== t ? u(Mn(t), e) : e + }, + createJsxSpreadAttribute: Ln, + updateJsxSpreadAttribute: function(e, t) { + return e.expression !== t ? u(Ln(t), e) : e + }, + createJsxExpression: Rn, + updateJsxExpression: function(e, t) { + return e.expression !== t ? u(Rn(e.dotDotDotToken, t), e) : e + }, + createCaseClause: Bn, + updateCaseClause: function(e, t, r) { + return e.expression !== t || e.statements !== r ? u(Bn(t, r), e) : e + }, + createDefaultClause: jn, + updateDefaultClause: function(e, t) { + return e.statements !== t ? u(jn(t), e) : e + }, + createHeritageClause: Jn, + updateHeritageClause: function(e, t) { + return e.types !== t ? u(Jn(e.token, t), e) : e + }, + createCatchClause: zn, + updateCatchClause: function(e, t, r) { + return e.variableDeclaration !== t || e.block !== r ? u(zn(t, r), e) : e + }, + createPropertyAssignment: Un, + updatePropertyAssignment: function(e, t, r) { + return e.name !== t || e.initializer !== r ? function(e, t) { + e !== t && (e.illegalDecorators = t.illegalDecorators, e.modifiers = t.modifiers, e.questionToken = t.questionToken, e.exclamationToken = t.exclamationToken); + return u(e, t) + }(Un(t, r), e) : e + }, + createShorthandPropertyAssignment: Kn, + updateShorthandPropertyAssignment: function(e, t, r) { + return e.name !== t || e.objectAssignmentInitializer !== r ? function(e, t) { + e !== t && (e.equalsToken = t.equalsToken, e.illegalDecorators = t.illegalDecorators, e.modifiers = t.modifiers, e.questionToken = t.questionToken, e.exclamationToken = t.exclamationToken); + return u(e, t) + }(Kn(t, r), e) : e + }, + createSpreadAssignment: Vn, + updateSpreadAssignment: function(e, t) { + return e.expression !== t ? u(Vn(t), e) : e + }, + createEnumMember: qn, + updateEnumMember: function(e, t, r) { + return e.name !== t || e.initializer !== r ? u(qn(t, r), e) : e + }, + createSourceFile: function(e, t, r) { + var n = l.createBaseSourceFileNode(308); + return n.statements = f(e), n.endOfFileToken = t, n.flags |= r, n.fileName = "", n.text = "", n.languageVersion = 0, n.languageVariant = 0, n.scriptKind = 0, n.isDeclarationFile = !1, n.hasNoDefaultLib = !1, n.transformFlags |= vi(n.statements) | hi(n.endOfFileToken), n + }, + updateSourceFile: function(e, t, r, n, i, a, o) { + void 0 === r && (r = e.isDeclarationFile); + void 0 === n && (n = e.referencedFiles); + void 0 === i && (i = e.typeReferenceDirectives); + void 0 === a && (a = e.hasNoDefaultLib); + void 0 === o && (o = e.libReferenceDirectives); + return e.statements !== t || e.isDeclarationFile !== r || e.referencedFiles !== n || e.typeReferenceDirectives !== i || e.hasNoDefaultLib !== a || e.libReferenceDirectives !== o ? u(function(e, t, r, n, i, a, o) { + var s, c = e.redirectInfo ? Object.create(e.redirectInfo.redirectTarget) : l.createBaseSourceFileNode(308); + for (s in e) "emitNode" !== s && !ui.hasProperty(c, s) && ui.hasProperty(e, s) && (c[s] = e[s]); + return c.flags |= e.flags, c.statements = f(t), c.endOfFileToken = e.endOfFileToken, c.isDeclarationFile = r, c.referencedFiles = n, c.typeReferenceDirectives = i, c.hasNoDefaultLib = a, c.libReferenceDirectives = o, c.transformFlags = vi(c.statements) | hi(c.endOfFileToken), c.impliedNodeFormat = e.impliedNodeFormat, c + }(e, t, r, n, i, a, o), e) : e + }, + createBundle: Wn, + updateBundle: function(e, t, r) { + void 0 === r && (r = ui.emptyArray); + return e.sourceFiles !== t || e.prepends !== r ? u(Wn(t, r), e) : e + }, + createUnparsedSource: function(e, t, r) { + var n = _(310); + return n.prologues = e, n.syntheticReferences = t, n.texts = r, n.fileName = "", n.text = "", n.referencedFiles = ui.emptyArray, n.libReferenceDirectives = ui.emptyArray, n.getLineAndCharacterOfPosition = function(e) { + return ui.getLineAndCharacterOfPosition(n, e) + }, n + }, + createUnparsedPrologue: function(e) { + return Hn(303, e) + }, + createUnparsedPrepend: function(e, t) { + e = Hn(304, e); + return e.texts = t, e + }, + createUnparsedTextLike: function(e, t) { + return Hn(t ? 306 : 305, e) + }, + createUnparsedSyntheticReference: function(e) { + var t = _(307); + return t.data = e.data, t.section = e, t + }, + createInputFiles: function() { + var e = _(311); + return e.javascriptText = "", e.declarationText = "", e + }, + createSyntheticExpression: function(e, t, r) { + void 0 === t && (t = !1); + var n = _(234); + return n.type = e, n.isSpread = t, n.tupleNameSource = r, n + }, + createSyntaxList: function(e) { + var t = _(351); + return t._children = e, t + }, + createNotEmittedStatement: function(e) { + var t = _(352); + return t.original = e, ui.setTextRange(t, e), t + }, + createPartiallyEmittedExpression: Gn, + updatePartiallyEmittedExpression: Qn, + createCommaListExpression: Yn, + updateCommaListExpression: function(e, t) { + return e.elements !== t ? u(Yn(t), e) : e + }, + createEndOfDeclarationMarker: function(e) { + var t = _(356); + return t.emitNode = {}, t.original = e, t + }, + createMergeDeclarationMarker: function(e) { + var t = _(355); + return t.emitNode = {}, t.original = e, t + }, + createSyntheticReferenceExpression: Zn, + updateSyntheticReferenceExpression: function(e, t, r) { + return e.expression !== t || e.thisArg !== r ? u(Zn(t, r), e) : e + }, + cloneNode: $n, + get createComma() { + return t(27) + }, + get createAssignment() { + return t(63) + }, + get createLogicalOr() { + return t(56) + }, + get createLogicalAnd() { + return t(55) + }, + get createBitwiseOr() { + return t(51) + }, + get createBitwiseXor() { + return t(52) + }, + get createBitwiseAnd() { + return t(50) + }, + get createStrictEquality() { + return t(36) + }, + get createStrictInequality() { + return t(37) + }, + get createEquality() { + return t(34) + }, + get createInequality() { + return t(35) + }, + get createLessThan() { + return t(29) + }, + get createLessThanEquals() { + return t(32) + }, + get createGreaterThan() { + return t(31) + }, + get createGreaterThanEquals() { + return t(33) + }, + get createLeftShift() { + return t(47) + }, + get createRightShift() { + return t(48) + }, + get createUnsignedRightShift() { + return t(49) + }, + get createAdd() { + return t(39) + }, + get createSubtract() { + return t(40) + }, + get createMultiply() { + return t(41) + }, + get createDivide() { + return t(43) + }, + get createModulo() { + return t(44) + }, + get createExponent() { + return t(42) + }, + get createPrefixPlus() { + return r(39) + }, + get createPrefixMinus() { + return r(40) + }, + get createPrefixIncrement() { + return r(45) + }, + get createPrefixDecrement() { + return r(46) + }, + get createBitwiseNot() { + return r(54) + }, + get createLogicalNot() { + return r(53) + }, + get createPostfixIncrement() { + return R(45) + }, + get createPostfixDecrement() { + return R(46) + }, + createImmediatelyInvokedFunctionExpression: function(e, t, r) { + return T(Ct(void 0, void 0, void 0, void 0, t ? [t] : [], void 0, C(e, !0)), void 0, r ? [r] : []) + }, + createImmediatelyInvokedArrowFunction: function(e, t, r) { + return T(kt(void 0, void 0, t ? [t] : [], void 0, void 0, C(e, !0)), void 0, r ? [r] : []) + }, + createVoidZero: ei, + createExportDefault: function(e) { + return Xr(void 0, !1, e) + }, + createExternalModuleExport: function(e) { + return Zr(void 0, !1, en([tn(!1, void 0, e)])) + }, + createTypeCheck: function(e, t) { + return "undefined" === t ? c.createStrictEquality(e, ei()) : c.createStrictEquality(Ft(e), v(t)) + }, + createMethodCall: N, + createGlobalMethodCall: ti, + createFunctionBindCall: function(e, t, r) { + return N(e, "bind", __spreadArray([t], r, !0)) + }, + createFunctionCallCall: function(e, t, r) { + return N(e, "call", __spreadArray([t], r, !0)) + }, + createFunctionApplyCall: function(e, t, r) { + return N(e, "apply", [t, r]) + }, + createArraySliceCall: function(e, t) { + return N(e, "slice", void 0 === t ? [] : [O(t)]) + }, + createArrayConcatCall: function(e, t) { + return N(e, "concat", t) + }, + createObjectDefinePropertyCall: function(e, t, r) { + return ti("Object", "defineProperty", [e, O(t), r]) + }, + createReflectGetCall: function(e, t, r) { + return ti("Reflect", "get", r ? [e, t, r] : [e, t]) + }, + createReflectSetCall: function(e, t, r, n) { + return ti("Reflect", "set", n ? [e, t, r, n] : [e, t, r]) + }, + createPropertyDescriptor: function(e, t) { + var r = [], + n = (A(r, "enumerable", O(e.enumerable)), A(r, "configurable", O(e.configurable)), A(r, "writable", O(e.writable))), + i = (n = A(r, "value", e.value) || n, A(r, "get", e.get)); + return i = A(r, "set", e.set) || i, ui.Debug.assert(!(n && i), "A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."), _t(r, !t) + }, + createCallBinding: function(e, t, r, n) { + void 0 === n && (n = !1); + var i, a, o = ui.skipOuterExpressions(e, 15); + ui.isSuperProperty(o) ? (i = ae(), a = o) : ui.isSuperKeyword(o) ? (i = ae(), a = void 0 !== r && r < 2 ? ui.setTextRange(b("_super"), o) : o) : 4096 & ui.getEmitFlags(o) ? (i = ei(), a = s().parenthesizeLeftSideOfAccess(o, !1)) : ui.isPropertyAccessExpression(o) ? ii(o.expression, n) ? (i = ee(t), a = S(ui.setTextRange(c.createAssignment(i, o.expression), o.expression), o.name), ui.setTextRange(a, o)) : (i = o.expression, a = o) : ui.isElementAccessExpression(o) ? ii(o.expression, n) ? (i = ee(t), a = ft(ui.setTextRange(c.createAssignment(i, o.expression), o.expression), o.argumentExpression), ui.setTextRange(a, o)) : (i = o.expression, a = o) : (i = ei(), a = s().parenthesizeLeftSideOfAccess(e, !1)); + return { + target: a, + thisArg: i + } + }, + createAssignmentTargetWrapper: function(e, t) { + return S(St(_t([Fe(void 0, "value", [fe(void 0, void 0, e, void 0, void 0, void 0)], C([ar(t)]))])), "value") + }, + inlineExpressions: function(e) { + return 10 < e.length ? Yn(e) : ui.reduceLeft(e, c.createComma) + }, + getInternalName: function(e, t, r) { + return F(e, t, r, 49152) + }, + getLocalName: function(e, t, r) { + return F(e, t, r, 16384) + }, + getExportName: ai, + getDeclarationName: function(e, t, r) { + return F(e, t, r) + }, + getNamespaceMemberName: oi, + getExternalModuleOrNamespaceExportName: function(e, t, r, n) { + if (e && ui.hasSyntacticModifier(t, 1)) return oi(e, F(t), r, n); + return ai(t, r, n) + }, + restoreOuterExpressions: function e(t, r, n) { + void 0 === n && (n = 15); + if (t && ui.isOuterExpression(t, n) && !ni(t)) return ri(t, e(t.expression, r)); + return r + }, + restoreEnclosingLabel: function e(t, r, n) { + if (!r) return t; + t = hr(r, r.label, ui.isLabeledStatement(r.statement) ? e(t, r.statement) : t); + n && n(r); + return t + }, + createUseStrictPrologue: si, + copyPrologue: function(e, t, r, n) { + r = ci(e, t, 0, r); + return li(e, t, r, n) + }, + copyStandardPrologue: ci, + copyCustomPrologue: li, + ensureUseStrict: function(e) { + return ui.findUseStrictPrologue(e) ? e : ui.setTextRange(f(__spreadArray([si()], e, !0)), e) + }, + liftToBlock: function(e) { + return ui.Debug.assert(ui.every(e, ui.isStatementOrBlock), "Cannot lift nodes to a Block."), ui.singleOrUndefined(e) || C(e) + }, + mergeLexicalEnvironment: function(e, t) { + if (ui.some(t)) { + var r = P(e, ui.isPrologueDirective, 0), + n = P(e, ui.isHoistedFunction, r), + i = P(e, ui.isHoistedVariableStatement, n), + a = P(t, ui.isPrologueDirective, 0), + o = P(t, ui.isHoistedFunction, a), + s = P(t, ui.isHoistedVariableStatement, o), + c = P(t, ui.isCustomPrologue, s), + l = (ui.Debug.assert(c === t.length, "Expected declarations to be valid standard or custom prologues"), ui.isNodeArray(e) ? e.slice() : e); + if (s < c && l.splice.apply(l, __spreadArray([i, 0], t.slice(s, c), !1)), o < s && l.splice.apply(l, __spreadArray([n, 0], t.slice(o, s), !1)), a < o && l.splice.apply(l, __spreadArray([r, 0], t.slice(a, o), !1)), 0 < a) + if (0 === r) l.splice.apply(l, __spreadArray([0, 0], t.slice(0, a), !1)); + else { + for (var u = new ui.Map, _ = 0; _ < r; _++) { + var d = e[_]; + u.set(d.expression.text, !0) + } + for (_ = a - 1; 0 <= _; _--) { + var p = t[_]; + u.has(p.expression.text) || l.unshift(p) + } + } + if (ui.isNodeArray(e)) return ui.setTextRange(f(l, e.hasTrailingComma), e) + } + return e + }, + updateModifiers: function(e, t) { + var r; + t = "number" == typeof t ? le(t) : t; + return ui.isTypeParameterDeclaration(e) ? pe(e, t, e.name, e.constraint, e.default) : ui.isParameter(e) ? ge(e, t, e.dotDotDotToken, e.name, e.questionToken, e.type, e.initializer) : ui.isConstructorTypeNode(e) ? Ue(e, t, e.typeParameters, e.parameters, e.type) : ui.isPropertySignature(e) ? he(e, t, e.name, e.questionToken, e.type) : ui.isPropertyDeclaration(e) ? be(e, t, e.name, null != (r = e.questionToken) ? r : e.exclamationToken, e.type, e.initializer) : ui.isMethodSignature(e) ? De(e, t, e.name, e.questionToken, e.typeParameters, e.parameters, e.type) : ui.isMethodDeclaration(e) ? Te(e, t, e.asteriskToken, e.name, e.questionToken, e.typeParameters, e.parameters, e.type, e.body) : ui.isConstructorDeclaration(e) ? ke(e, t, e.parameters, e.body) : ui.isGetAccessorDeclaration(e) ? Ae(e, t, e.name, e.parameters, e.type, e.body) : ui.isSetAccessorDeclaration(e) ? Pe(e, t, e.name, e.parameters, e.body) : ui.isIndexSignatureDeclaration(e) ? Me(e, t, e.parameters, e.type) : ui.isFunctionExpression(e) ? Et(e, t, e.asteriskToken, e.name, e.typeParameters, e.parameters, e.type, e.body) : ui.isArrowFunction(e) ? Nt(e, t, e.typeParameters, e.parameters, e.type, e.equalsGreaterThanToken, e.body) : ui.isClassExpression(e) ? Vt(e, t, e.name, e.typeParameters, e.heritageClauses, e.members) : ui.isVariableStatement(e) ? nr(e, t, e.declarationList) : ui.isFunctionDeclaration(e) ? Tr(e, t, e.asteriskToken, e.name, e.typeParameters, e.parameters, e.type, e.body) : ui.isClassDeclaration(e) ? Er(e, t, e.name, e.typeParameters, e.heritageClauses, e.members) : ui.isInterfaceDeclaration(e) ? Nr(e, t, e.name, e.typeParameters, e.heritageClauses, e.members) : ui.isTypeAliasDeclaration(e) ? Fr(e, t, e.name, e.typeParameters, e.type) : ui.isEnumDeclaration(e) ? wr(e, t, e.name, e.members) : ui.isModuleDeclaration(e) ? Or(e, t, e.name, e.body) : ui.isImportEqualsDeclaration(e) ? jr(e, t, e.isTypeOnly, e.name, e.moduleReference) : ui.isImportDeclaration(e) ? zr(e, t, e.importClause, e.moduleSpecifier, e.assertClause) : ui.isExportAssignment(e) ? Yr(e, t, e.expression) : ui.isExportDeclaration(e) ? $r(e, t, e.isTypeOnly, e.exportClause, e.moduleSpecifier, e.assertClause) : ui.Debug.assertNever(e) + } + }; + return c; + + function f(e, t) { + if (void 0 === e || e === ui.emptyArray) e = []; + else if (ui.isNodeArray(e)) return void 0 === t || e.hasTrailingComma === t ? (void 0 === e.transformFlags && bi(e), ui.Debug.attachNodeArrayDebugInfo(e), e) : ((r = e.slice()).pos = e.pos, r.end = e.end, r.hasTrailingComma = t, r.transformFlags = e.transformFlags, ui.Debug.attachNodeArrayDebugInfo(r), r); + var r = e.length, + r = 1 <= r && r <= 4 ? e.slice() : e; + return ui.setTextRangePosEnd(r, -1, -1), r.hasTrailingComma = !!t, bi(r), ui.Debug.attachNodeArrayDebugInfo(r), r + } + + function _(e) { + return l.createBaseNode(e) + } + + function d(e) { + e = _(e); + return e.symbol = void 0, e.localSymbol = void 0, e.locals = void 0, e.nextContainer = void 0, e + } + + function p(e, t, r) { + var n = d(e); + if (r = I(r), n.name = r, ui.canHaveModifiers(n) && (n.modifiers = w(t), n.transformFlags |= vi(n.modifiers)), r) switch (n.kind) { + case 171: + case 174: + case 175: + case 169: + case 299: + if (ui.isIdentifier(r)) { + n.transformFlags |= yi(r); + break + } + default: + n.transformFlags |= hi(r) + } + return n + } + + function g(e, t, r, n) { + e = p(e, t, r); + return e.typeParameters = w(n), e.transformFlags |= vi(e.typeParameters), n && (e.transformFlags |= 1), e + } + + function m(e, t, r, n, i, a) { + e = g(e, t, r, n); + return e.parameters = f(i), e.type = a, e.transformFlags |= vi(e.parameters) | hi(e.type), a && (e.transformFlags |= 1), e.typeArguments = void 0, e + } + + function y(e, t) { + return e !== t && (e.typeArguments = t.typeArguments), u(e, t) + } + + function h(e, t, r, n, i, a, o) { + e = m(e, t, r, n, i, a); + return e.body = o, e.transformFlags |= -67108865 & hi(e.body), o || (e.transformFlags |= 1), e + } + + function K(e, t, r, n, i) { + e = g(e, t, r, n); + return e.heritageClauses = w(i), e.transformFlags |= vi(e.heritageClauses), e + } + + function V(e, t, r, n, i, a) { + e = K(e, t, r, n, i); + return e.members = f(a), e.transformFlags |= vi(e.members), e + } + + function q(e, t, r, n) { + e = p(e, t, r); + return e.initializer = n, e.transformFlags |= hi(e.initializer), e + } + + function W(e, t, r, n, i) { + e = q(e, t, r, i); + return e.type = n, e.transformFlags |= hi(n), n && (e.transformFlags |= 1), e + } + + function H(e, t) { + e = ie(e); + return e.text = t, e + } + + function G(e, t) { + void 0 === t && (t = 0); + e = H(8, "number" == typeof e ? e + "" : e); + return 384 & (e.numericLiteralFlags = t) && (e.transformFlags |= 1024), e + } + + function Q(e) { + e = H(9, "string" == typeof e ? e : ui.pseudoBigIntToString(e) + "n"); + return e.transformFlags |= 4, e + } + + function X(e, t) { + e = H(10, e); + return e.singleQuote = t, e + } + + function v(e, t, r) { + e = X(e, t); + return (e.hasExtendedUnicodeEscape = r) && (e.transformFlags |= 1024), e + } + + function Y(e) { + return H(13, e) + } + + function Z(e, t) { + 79 === (t = void 0 === t && e ? ui.stringToToken(e) : t) && (t = void 0); + var r = l.createBaseIdentifierNode(79); + return r.originalKeywordKind = t, r.escapedText = ui.escapeLeadingUnderscores(e), r + } + + function $(e, t, r, n) { + e = Z(e, void 0); + return e.autoGenerateFlags = t, e.autoGenerateId = di, e.autoGeneratePrefix = r, e.autoGenerateSuffix = n, di++, e + } + + function b(e, t, r, n) { + e = Z(e, r); + return t && (e.typeArguments = f(t)), 133 === e.originalKeywordKind && (e.transformFlags |= 67108864), n && (e.hasExtendedUnicodeEscape = n, e.transformFlags |= 1024), e + } + + function ee(e, t, r, n) { + var i = 1, + t = (t && (i |= 8), $("", i, r, n)); + return e && e(t), t + } + + function te(e, t, r, n) { + ui.Debug.assert(!(7 & (t = void 0 === t ? 0 : t)), "Argument out of range: flags"); + (r || n) && (t |= 16); + t = $(e ? ui.isMemberName(e) ? ui.formatGeneratedName(!1, r, e, n, ui.idText) : "generated@".concat(ui.getNodeId(e)) : "", 4 | t, r, n); + return t.original = e, t + } + + function re(e) { + var t = l.createBasePrivateIdentifierNode(80); + return t.escapedText = ui.escapeLeadingUnderscores(e), t.transformFlags |= 16777216, t + } + + function ne(e, t, r, n) { + e = re(e); + return e.autoGenerateFlags = t, e.autoGenerateId = di, e.autoGeneratePrefix = r, e.autoGenerateSuffix = n, di++, e + } + + function ie(e) { + return l.createBaseTokenNode(e) + } + + function x(e) { + ui.Debug.assert(0 <= e && e <= 162, "Invalid token"), ui.Debug.assert(e <= 14 || 17 <= e, "Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."), ui.Debug.assert(e <= 8 || 14 <= e, "Invalid token. Use 'createLiteralLikeNode' to create literals."), ui.Debug.assert(79 !== e, "Invalid token. Use 'createIdentifier' to create identifiers"); + var t = ie(e), + r = 0; + switch (e) { + case 132: + r = 384; + break; + case 123: + case 121: + case 122: + case 146: + case 126: + case 136: + case 85: + case 131: + case 148: + case 160: + case 144: + case 149: + case 101: + case 145: + case 161: + case 152: + case 134: + case 153: + case 114: + case 157: + case 155: + r = 1; + break; + case 106: + r = 134218752; + break; + case 124: + r = 1024; + break; + case 127: + r = 16777216; + break; + case 108: + r = 16384 + } + return r && (t.transformFlags |= r), t + } + + function ae() { + return x(108) + } + + function oe() { + return x(110) + } + + function se() { + return x(95) + } + + function ce(e) { + return x(e) + } + + function le(e) { + var t = []; + return 1 & e && t.push(x(93)), 2 & e && t.push(x(136)), 1024 & e && t.push(x(88)), 2048 & e && t.push(x(85)), 4 & e && t.push(x(123)), 8 & e && t.push(x(121)), 16 & e && t.push(x(122)), 256 & e && t.push(x(126)), 32 & e && t.push(x(124)), 16384 & e && t.push(x(161)), 64 & e && t.push(x(146)), 128 & e && t.push(x(127)), 512 & e && t.push(x(132)), 32768 & e && t.push(x(101)), 65536 & e && t.push(x(145)), t.length ? t : void 0 + } + + function ue(e, t) { + var r = _(163); + return r.left = e, r.right = I(t), r.transformFlags |= hi(r.left) | yi(r.right), r + } + + function _e(e) { + var t = _(164); + return t.expression = s().parenthesizeExpressionOfComputedPropertyName(e), t.transformFlags |= 132096 | hi(t.expression), t + } + + function de(e, t, r, n) { + e = p(165, e, t); + return e.constraint = r, e.default = n, e.transformFlags = 1, e + } + + function pe(e, t, r, n, i) { + return e.modifiers !== t || e.name !== r || e.constraint !== n || e.default !== i ? u(de(t, r, n, i), e) : e + } + + function fe(e, t, r, n, i, a) { + e = W(166, e, r, i, a && s().parenthesizeExpressionForDisallowedComma(a)); + return e.dotDotDotToken = t, e.questionToken = n, ui.isThisIdentifier(e.name) ? e.transformFlags = 1 : (e.transformFlags |= hi(e.dotDotDotToken) | hi(e.questionToken), n && (e.transformFlags |= 1), 16476 & ui.modifiersToFlags(e.modifiers) && (e.transformFlags |= 8192), (a || t) && (e.transformFlags |= 1024)), e + } + + function ge(e, t, r, n, i, a, o) { + return e.modifiers !== t || e.dotDotDotToken !== r || e.name !== n || e.questionToken !== i || e.type !== a || e.initializer !== o ? u(fe(t, r, n, i, a, o), e) : e + } + + function me(e) { + var t = _(167); + return t.expression = s().parenthesizeLeftSideOfAccess(e, !1), t.transformFlags |= 33562625 | hi(t.expression), t + } + + function ye(e, t, r, n) { + e = p(168, e, t); + return e.type = n, e.questionToken = r, e.transformFlags = 1, e.initializer = void 0, e + } + + function he(e, t, r, n, i) { + return e.modifiers !== t || e.name !== r || e.questionToken !== n || e.type !== i ? ((t = ye(t, r, n, i)) !== (r = e) && (t.initializer = r.initializer), u(t, r)) : e + } + + function ve(e, t, r, n, i) { + e = W(169, e, t, n, i); + return e.questionToken = r && ui.isQuestionToken(r) ? r : void 0, e.exclamationToken = r && ui.isExclamationToken(r) ? r : void 0, e.transformFlags |= hi(e.questionToken) | hi(e.exclamationToken) | 16777216, (ui.isComputedPropertyName(e.name) || ui.hasStaticModifier(e) && e.initializer) && (e.transformFlags |= 8192), (r || 2 & ui.modifiersToFlags(e.modifiers)) && (e.transformFlags |= 1), e + } + + function be(e, t, r, n, i, a) { + return e.modifiers !== t || e.name !== r || e.questionToken !== (void 0 !== n && ui.isQuestionToken(n) ? n : void 0) || e.exclamationToken !== (void 0 !== n && ui.isExclamationToken(n) ? n : void 0) || e.type !== i || e.initializer !== a ? u(ve(t, r, n, i, a), e) : e + } + + function xe(e, t, r, n, i, a) { + e = m(170, e, t, n, i, a); + return e.questionToken = r, e.transformFlags = 1, e + } + + function De(e, t, r, n, i, a, o) { + return e.modifiers !== t || e.name !== r || e.questionToken !== n || e.typeParameters !== i || e.parameters !== a || e.type !== o ? y(xe(t, r, n, i, a, o), e) : e + } + + function Se(e, t, r, n, i, a, o, s) { + e = h(171, e, r, i, a, o, s); + return e.asteriskToken = t, e.questionToken = n, e.transformFlags |= hi(e.asteriskToken) | hi(e.questionToken) | 1024, n && (e.transformFlags |= 1), 512 & ui.modifiersToFlags(e.modifiers) ? e.transformFlags |= t ? 128 : 256 : t && (e.transformFlags |= 2048), e.exclamationToken = void 0, e + } + + function Te(e, t, r, n, i, a, o, s, c) { + return e.modifiers !== t || e.asteriskToken !== r || e.name !== n || e.questionToken !== i || e.typeParameters !== a || e.parameters !== o || e.type !== s || e.body !== c ? ((t = Se(t, r, n, i, a, o, s, c)) !== (r = e) && (t.exclamationToken = r.exclamationToken), u(t, r)) : e + } + + function Ce(e) { + var t = g(172, void 0, void 0, void 0); + return t.body = e, t.transformFlags = 16777216 | hi(e), t.illegalDecorators = void 0, t.modifiers = void 0, t + } + + function Ee(e, t, r) { + e = h(173, e, void 0, void 0, t, void 0, r); + return e.transformFlags |= 1024, e.illegalDecorators = void 0, e.typeParameters = void 0, e.type = void 0, e + } + + function ke(e, t, r, n) { + return e.modifiers !== t || e.parameters !== r || e.body !== n ? ((t = Ee(t, r, n)) !== (r = e) && (t.illegalDecorators = r.illegalDecorators, t.typeParameters = r.typeParameters, t.type = r.type), y(t, r)) : e + } + + function Ne(e, t, r, n, i) { + e = h(174, e, t, void 0, r, n, i); + return e.typeParameters = void 0, e + } + + function Ae(e, t, r, n, i, a) { + return e.modifiers !== t || e.name !== r || e.parameters !== n || e.type !== i || e.body !== a ? ((t = Ne(t, r, n, i, a)) !== (r = e) && (t.typeParameters = r.typeParameters), y(t, r)) : e + } + + function Fe(e, t, r, n) { + e = h(175, e, t, void 0, r, void 0, n); + return e.typeParameters = void 0, e.type = void 0, e + } + + function Pe(e, t, r, n, i) { + return e.modifiers !== t || e.name !== r || e.parameters !== n || e.body !== i ? ((t = Fe(t, r, n, i)) !== (r = e) && (t.typeParameters = r.typeParameters, t.type = r.type), y(t, r)) : e + } + + function we(e, t, r) { + e = m(176, void 0, void 0, e, t, r); + return e.transformFlags = 1, e + } + + function Ie(e, t, r) { + e = m(177, void 0, void 0, e, t, r); + return e.transformFlags = 1, e + } + + function Oe(e, t, r) { + e = m(178, e, void 0, void 0, t, r); + return e.transformFlags = 1, e + } + + function Me(e, t, r, n) { + return e.parameters !== r || e.type !== n || e.modifiers !== t ? y(Oe(t, r, n), e) : e + } + + function Le(e, t) { + var r = _(201); + return r.type = e, r.literal = t, r.transformFlags = 1, r + } + + function Re(e, t, r) { + var n = _(179); + return n.assertsModifier = e, n.parameterName = I(t), n.type = r, n.transformFlags = 1, n + } + + function Be(e, t) { + var r = _(180); + return r.typeName = I(e), r.typeArguments = t && s().parenthesizeTypeArguments(f(t)), r.transformFlags = 1, r + } + + function je(e, t, r) { + e = m(181, void 0, void 0, e, t, r); + return e.transformFlags = 1, e.modifiers = void 0, e + } + + function Je() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + return 4 === e.length ? ze.apply(void 0, e) : 3 === e.length ? function(e, t, r) { + return ze(void 0, e, t, r) + }.apply(void 0, e) : ui.Debug.fail("Incorrect number of arguments specified.") + } + + function ze(e, t, r, n) { + e = m(182, e, void 0, t, r, n); + return e.transformFlags = 1, e + } + + function Ue(e, t, r, n, i) { + return e.modifiers !== t || e.typeParameters !== r || e.parameters !== n || e.type !== i ? y(Je(t, r, n, i), e) : e + } + + function Ke(e, t) { + var r = _(183); + return r.exprName = e, r.typeArguments = t && s().parenthesizeTypeArguments(t), r.transformFlags = 1, r + } + + function Ve(e) { + var t = _(184); + return t.members = f(e), t.transformFlags = 1, t + } + + function qe(e) { + var t = _(185); + return t.elementType = s().parenthesizeNonArrayTypeOfPostfixType(e), t.transformFlags = 1, t + } + + function We(e) { + var t = _(186); + return t.elements = f(s().parenthesizeElementTypesOfTupleType(e)), t.transformFlags = 1, t + } + + function He(e, t, r, n) { + var i = _(199); + return i.dotDotDotToken = e, i.name = t, i.questionToken = r, i.type = n, i.transformFlags = 1, i + } + + function Ge(e) { + var t = _(187); + return t.type = s().parenthesizeTypeOfOptionalType(e), t.transformFlags = 1, t + } + + function Qe(e) { + var t = _(188); + return t.type = e, t.transformFlags = 1, t + } + + function Xe(e, t, r) { + e = _(e); + return e.types = c.createNodeArray(r(t)), e.transformFlags = 1, e + } + + function Ye(e, t, r) { + return e.types !== t ? u(Xe(e.kind, t, r), e) : e + } + + function Ze(e, t, r, n) { + var i = _(191); + return i.checkType = s().parenthesizeCheckTypeOfConditionalType(e), i.extendsType = s().parenthesizeExtendsTypeOfConditionalType(t), i.trueType = r, i.falseType = n, i.transformFlags = 1, i + } + + function $e(e) { + var t = _(192); + return t.typeParameter = e, t.transformFlags = 1, t + } + + function et(e, t) { + var r = _(200); + return r.head = e, r.templateSpans = f(t), r.transformFlags = 1, r + } + + function tt(e, t, r, n, i) { + void 0 === i && (i = !1); + var a = _(202); + return a.argument = e, a.assertions = t, a.qualifier = r, a.typeArguments = n && s().parenthesizeTypeArguments(n), a.isTypeOf = i, a.transformFlags = 1, a + } + + function rt(e) { + var t = _(193); + return t.type = e, t.transformFlags = 1, t + } + + function nt(e, t) { + var r = _(195); + return r.operator = e, r.type = 146 === e ? s().parenthesizeOperandOfReadonlyTypeOperator(t) : s().parenthesizeOperandOfTypeOperator(t), r.transformFlags = 1, r + } + + function it(e, t) { + var r = _(196); + return r.objectType = s().parenthesizeNonArrayTypeOfPostfixType(e), r.indexType = t, r.transformFlags = 1, r + } + + function at(e, t, r, n, i, a) { + var o = _(197); + return o.readonlyToken = e, o.typeParameter = t, o.nameType = r, o.questionToken = n, o.type = i, o.members = a && f(a), o.transformFlags = 1, o + } + + function ot(e) { + var t = _(198); + return t.literal = e, t.transformFlags = 1, t + } + + function st(e) { + var t = _(203); + return t.elements = f(e), t.transformFlags |= 525312 | vi(t.elements), 32768 & t.transformFlags && (t.transformFlags |= 65664), t + } + + function ct(e) { + var t = _(204); + return t.elements = f(e), t.transformFlags |= 525312 | vi(t.elements), t + } + + function lt(e, t, r, n) { + r = q(205, void 0, r, n && s().parenthesizeExpressionForDisallowedComma(n)); + return r.propertyName = I(t), r.dotDotDotToken = e, r.transformFlags |= 1024 | hi(r.dotDotDotToken), r.propertyName && (r.transformFlags |= (ui.isIdentifier(r.propertyName) ? yi : hi)(r.propertyName)), e && (r.transformFlags |= 32768), r + } + + function D(e) { + return _(e) + } + + function ut(e, t) { + var r = D(206), + n = e && ui.lastOrUndefined(e), + e = f(e, !(!n || !ui.isOmittedExpression(n)) || void 0); + return r.elements = s().parenthesizeExpressionsOfCommaDelimitedList(e), r.multiLine = t, r.transformFlags |= vi(r.elements), r + } + + function _t(e, t) { + var r = D(207); + return r.properties = f(e), r.multiLine = t, r.transformFlags |= vi(r.properties), r + } + + function S(e, t) { + var r = D(208); + return r.expression = s().parenthesizeLeftSideOfAccess(e, !1), r.name = I(t), r.transformFlags = hi(r.expression) | (ui.isIdentifier(r.name) ? yi(r.name) : 536870912 | hi(r.name)), ui.isSuperKeyword(e) && (r.transformFlags |= 384), r + } + + function dt(e, t, r) { + var n = D(208); + return n.flags |= 32, n.expression = s().parenthesizeLeftSideOfAccess(e, !0), n.questionDotToken = t, n.name = I(r), n.transformFlags |= 32 | hi(n.expression) | hi(n.questionDotToken) | (ui.isIdentifier(n.name) ? yi(n.name) : 536870912 | hi(n.name)), n + } + + function pt(e, t, r, n) { + return ui.Debug.assert(!!(32 & e.flags), "Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."), e.expression !== t || e.questionDotToken !== r || e.name !== n ? u(dt(t, r, n), e) : e + } + + function ft(e, t) { + var r = D(209); + return r.expression = s().parenthesizeLeftSideOfAccess(e, !1), r.argumentExpression = O(t), r.transformFlags |= hi(r.expression) | hi(r.argumentExpression), ui.isSuperKeyword(e) && (r.transformFlags |= 384), r + } + + function gt(e, t, r) { + var n = D(209); + return n.flags |= 32, n.expression = s().parenthesizeLeftSideOfAccess(e, !0), n.questionDotToken = t, n.argumentExpression = O(r), n.transformFlags |= hi(n.expression) | hi(n.questionDotToken) | hi(n.argumentExpression) | 32, n + } + + function mt(e, t, r, n) { + return ui.Debug.assert(!!(32 & e.flags), "Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."), e.expression !== t || e.questionDotToken !== r || e.argumentExpression !== n ? u(gt(t, r, n), e) : e + } + + function T(e, t, r) { + var n = D(210); + return n.expression = s().parenthesizeLeftSideOfAccess(e, !1), n.typeArguments = w(t), n.arguments = s().parenthesizeExpressionsOfCommaDelimitedList(f(r)), n.transformFlags |= hi(n.expression) | vi(n.typeArguments) | vi(n.arguments), n.typeArguments && (n.transformFlags |= 1), ui.isImportKeyword(n.expression) ? n.transformFlags |= 8388608 : ui.isSuperProperty(n.expression) && (n.transformFlags |= 16384), n + } + + function yt(e, t, r, n) { + var i = D(210); + return i.flags |= 32, i.expression = s().parenthesizeLeftSideOfAccess(e, !0), i.questionDotToken = t, i.typeArguments = w(r), i.arguments = s().parenthesizeExpressionsOfCommaDelimitedList(f(n)), i.transformFlags |= hi(i.expression) | hi(i.questionDotToken) | vi(i.typeArguments) | vi(i.arguments) | 32, i.typeArguments && (i.transformFlags |= 1), ui.isSuperProperty(i.expression) && (i.transformFlags |= 16384), i + } + + function ht(e, t, r, n, i) { + return ui.Debug.assert(!!(32 & e.flags), "Cannot update a CallExpression using updateCallChain. Use updateCall instead."), e.expression !== t || e.questionDotToken !== r || e.typeArguments !== n || e.arguments !== i ? u(yt(t, r, n, i), e) : e + } + + function vt(e, t, r) { + var n = D(211); + return n.expression = s().parenthesizeExpressionOfNew(e), n.typeArguments = w(t), n.arguments = r ? s().parenthesizeExpressionsOfCommaDelimitedList(r) : void 0, n.transformFlags |= hi(n.expression) | vi(n.typeArguments) | vi(n.arguments) | 32, n.typeArguments && (n.transformFlags |= 1), n + } + + function bt(e, t, r) { + var n = D(212); + return n.tag = s().parenthesizeLeftSideOfAccess(e, !1), n.typeArguments = w(t), n.template = r, n.transformFlags |= hi(n.tag) | vi(n.typeArguments) | hi(n.template) | 1024, n.typeArguments && (n.transformFlags |= 1), ui.hasInvalidEscape(n.template) && (n.transformFlags |= 128), n + } + + function xt(e, t) { + var r = D(213); + return r.expression = s().parenthesizeOperandOfPrefixUnary(t), r.type = e, r.transformFlags |= hi(r.expression) | hi(r.type) | 1, r + } + + function Dt(e, t, r) { + return e.type !== t || e.expression !== r ? u(xt(t, r), e) : e + } + + function St(e) { + var t = D(214); + return t.expression = e, t.transformFlags = hi(t.expression), t + } + + function Tt(e, t) { + return e.expression !== t ? u(St(t), e) : e + } + + function Ct(e, t, r, n, i, a, o) { + e = h(215, e, r, n, i, a, o); + return e.asteriskToken = t, e.transformFlags |= hi(e.asteriskToken), e.typeParameters && (e.transformFlags |= 1), 512 & ui.modifiersToFlags(e.modifiers) ? e.asteriskToken ? e.transformFlags |= 128 : e.transformFlags |= 256 : e.asteriskToken && (e.transformFlags |= 2048), e + } + + function Et(e, t, r, n, i, a, o, s) { + return e.name !== n || e.modifiers !== t || e.asteriskToken !== r || e.typeParameters !== i || e.parameters !== a || e.type !== o || e.body !== s ? y(Ct(t, r, n, i, a, o, s), e) : e + } + + function kt(e, t, r, n, i, a) { + e = h(216, e, void 0, t, r, n, s().parenthesizeConciseBodyOfArrowFunction(a)); + return e.equalsGreaterThanToken = null != i ? i : x(38), e.transformFlags |= 1024 | hi(e.equalsGreaterThanToken), 512 & ui.modifiersToFlags(e.modifiers) && (e.transformFlags |= 16640), e + } + + function Nt(e, t, r, n, i, a, o) { + return e.modifiers !== t || e.typeParameters !== r || e.parameters !== n || e.type !== i || e.equalsGreaterThanToken !== a || e.body !== o ? y(kt(t, r, n, i, a, o), e) : e + } + + function At(e) { + var t = D(217); + return t.expression = s().parenthesizeOperandOfPrefixUnary(e), t.transformFlags |= hi(t.expression), t + } + + function Ft(e) { + var t = D(218); + return t.expression = s().parenthesizeOperandOfPrefixUnary(e), t.transformFlags |= hi(t.expression), t + } + + function Pt(e) { + var t = D(219); + return t.expression = s().parenthesizeOperandOfPrefixUnary(e), t.transformFlags |= hi(t.expression), t + } + + function wt(e) { + var t = D(220); + return t.expression = s().parenthesizeOperandOfPrefixUnary(e), t.transformFlags |= 2097536 | hi(t.expression), t + } + + function It(e, t) { + var r = D(221); + return r.operator = e, r.operand = s().parenthesizeOperandOfPrefixUnary(t), r.transformFlags |= hi(r.operand), 45 !== e && 46 !== e || !ui.isIdentifier(r.operand) || ui.isGeneratedIdentifier(r.operand) || ui.isLocalName(r.operand) || (r.transformFlags |= 268435456), r + } + + function Ot(e, t) { + var r = D(222); + return r.operator = t, r.operand = s().parenthesizeOperandOfPostfixUnary(e), r.transformFlags |= hi(r.operand), !ui.isIdentifier(r.operand) || ui.isGeneratedIdentifier(r.operand) || ui.isLocalName(r.operand) || (r.transformFlags |= 268435456), r + } + + function Mt(e, t, r) { + var n = D(223), + t = "number" == typeof(t = t) ? x(t) : t, + i = t.kind; + return n.left = s().parenthesizeLeftSideOfBinary(i, e), n.operatorToken = t, n.right = s().parenthesizeRightSideOfBinary(i, n.left, r), n.transformFlags |= hi(n.left) | hi(n.operatorToken) | hi(n.right), 60 === i ? n.transformFlags |= 32 : 63 === i ? ui.isObjectLiteralExpression(n.left) ? n.transformFlags |= 5248 | Lt(n.left) : ui.isArrayLiteralExpression(n.left) && (n.transformFlags |= 5120 | Lt(n.left)) : 42 === i || 67 === i ? n.transformFlags |= 512 : ui.isLogicalOrCoalescingAssignmentOperator(i) && (n.transformFlags |= 16), 101 === i && ui.isPrivateIdentifier(n.left) && (n.transformFlags |= 536870912), n + } + + function Lt(e) { + if (65536 & e.transformFlags) return 65536; + if (128 & e.transformFlags) + for (var t = 0, r = ui.getElementsOfBindingOrAssignmentPattern(e); t < r.length; t++) { + var n = r[t], + n = ui.getTargetOfBindingOrAssignmentElement(n); + if (n && ui.isAssignmentPattern(n)) { + if (65536 & n.transformFlags) return 65536; + if (128 & n.transformFlags) { + n = Lt(n); + if (n) return n + } + } + } + return 0 + } + + function Rt(e, t, r, n, i) { + var a = D(224); + return a.condition = s().parenthesizeConditionOfConditionalExpression(e), a.questionToken = null != t ? t : x(57), a.whenTrue = s().parenthesizeBranchOfConditionalExpression(r), a.colonToken = null != n ? n : x(58), a.whenFalse = s().parenthesizeBranchOfConditionalExpression(i), a.transformFlags |= hi(a.condition) | hi(a.questionToken) | hi(a.whenTrue) | hi(a.colonToken) | hi(a.whenFalse), a + } + + function Bt(e, t) { + var r = D(225); + return r.head = e, r.templateSpans = f(t), r.transformFlags |= hi(r.head) | vi(r.templateSpans) | 1024, r + } + + function jt(e, t, r, n) { + ui.Debug.assert(!(-2049 & (n = void 0 === n ? 0 : n)), "Unsupported template flags."); + var i = void 0; + if (void 0 !== r && r !== t && "object" == typeof(i = function(e, t) { + _i = _i || ui.createScanner(99, !1, 0); + switch (e) { + case 14: + _i.setText("`" + t + "`"); + break; + case 15: + _i.setText("`" + t + "${"); + break; + case 16: + _i.setText("}" + t + "${"); + break; + case 17: + _i.setText("}" + t + "`") + } + var r, e = _i.scan(); + 19 === e && (e = _i.reScanTemplateToken(!1)); + if (!_i.isUnterminated()) { + switch (e) { + case 14: + case 15: + case 16: + case 17: + r = _i.getTokenValue() + } + if (void 0 !== r && 1 === _i.scan()) return _i.setText(void 0), r + } + return _i.setText(void 0), mi + }(e, r))) return ui.Debug.fail("Invalid raw text"); + if (void 0 === t) { + if (void 0 === i) return ui.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined."); + t = i + } else void 0 !== i && ui.Debug.assert(t === i, "Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'."); + return Jt(e, t, r, n) + } + + function Jt(e, t, r, n) { + e = ie(e); + return e.text = t, e.rawText = r, e.templateFlags = 2048 & n, e.transformFlags |= 1024, e.templateFlags && (e.transformFlags |= 128), e + } + + function zt(e, t) { + ui.Debug.assert(!e || !!t, "A `YieldExpression` with an asteriskToken must have an expression."); + var r = D(226); + return r.expression = t && s().parenthesizeExpressionForDisallowedComma(t), r.asteriskToken = e, r.transformFlags |= hi(r.expression) | hi(r.asteriskToken) | 1049728, r + } + + function Ut(e) { + var t = D(227); + return t.expression = s().parenthesizeExpressionForDisallowedComma(e), t.transformFlags |= 33792 | hi(t.expression), t + } + + function Kt(e, t, r, n, i) { + e = V(228, e, t, r, n, i); + return e.transformFlags |= 1024, e + } + + function Vt(e, t, r, n, i, a) { + return e.modifiers !== t || e.name !== r || e.typeParameters !== n || e.heritageClauses !== i || e.members !== a ? u(Kt(t, r, n, i, a), e) : e + } + + function qt(e, t) { + var r = _(230); + return r.expression = s().parenthesizeLeftSideOfAccess(e, !1), r.typeArguments = t && s().parenthesizeTypeArguments(t), r.transformFlags |= hi(r.expression) | vi(r.typeArguments) | 1024, r + } + + function Wt(e, t) { + var r = D(231); + return r.expression = e, r.type = t, r.transformFlags |= hi(r.expression) | hi(r.type) | 1, r + } + + function Ht(e, t, r) { + return e.expression !== t || e.type !== r ? u(Wt(t, r), e) : e + } + + function Gt(e) { + var t = D(232); + return t.expression = s().parenthesizeLeftSideOfAccess(e, !1), t.transformFlags |= 1 | hi(t.expression), t + } + + function Qt(e, t) { + return ui.isNonNullChain(e) ? $t(e, t) : e.expression !== t ? u(Gt(t), e) : e + } + + function Xt(e, t) { + var r = D(235); + return r.expression = e, r.type = t, r.transformFlags |= hi(r.expression) | hi(r.type) | 1, r + } + + function Yt(e, t, r) { + return e.expression !== t || e.type !== r ? u(Xt(t, r), e) : e + } + + function Zt(e) { + var t = D(232); + return t.flags |= 32, t.expression = s().parenthesizeLeftSideOfAccess(e, !0), t.transformFlags |= 1 | hi(t.expression), t + } + + function $t(e, t) { + return ui.Debug.assert(!!(32 & e.flags), "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."), e.expression !== t ? u(Zt(t), e) : e + } + + function er(e, t) { + var r = D(233); + switch (r.keywordToken = e, r.name = t, r.transformFlags |= hi(r.name), e) { + case 103: + r.transformFlags |= 1024; + break; + case 100: + r.transformFlags |= 4; + break; + default: + return ui.Debug.assertNever(e) + } + return r + } + + function tr(e, t) { + var r = _(236); + return r.expression = e, r.literal = t, r.transformFlags |= hi(r.expression) | hi(r.literal) | 1024, r + } + + function C(e, t) { + var r = _(238); + return r.statements = f(e), r.multiLine = t, r.transformFlags |= vi(r.statements), r + } + + function rr(e, t) { + var r = d(240); + return r.modifiers = w(e), r.declarationList = ui.isArray(t) ? Dr(t) : t, r.transformFlags |= vi(r.modifiers) | hi(r.declarationList), 2 & ui.modifiersToFlags(r.modifiers) && (r.transformFlags = 1), r + } + + function nr(e, t, r) { + return e.modifiers !== t || e.declarationList !== r ? u(rr(t, r), e) : e + } + + function ir() { + return _(239) + } + + function ar(e) { + var t = _(241); + return t.expression = s().parenthesizeExpressionOfExpressionStatement(e), t.transformFlags |= hi(t.expression), t + } + + function or(e, t, r) { + var n = _(242); + return n.expression = e, n.thenStatement = M(t), n.elseStatement = M(r), n.transformFlags |= hi(n.expression) | hi(n.thenStatement) | hi(n.elseStatement), n + } + + function sr(e, t) { + var r = _(243); + return r.statement = M(e), r.expression = t, r.transformFlags |= hi(r.statement) | hi(r.expression), r + } + + function cr(e, t) { + var r = _(244); + return r.expression = e, r.statement = M(t), r.transformFlags |= hi(r.expression) | hi(r.statement), r + } + + function lr(e, t, r, n) { + var i = _(245); + return i.initializer = e, i.condition = t, i.incrementor = r, i.statement = M(n), i.transformFlags |= hi(i.initializer) | hi(i.condition) | hi(i.incrementor) | hi(i.statement), i + } + + function ur(e, t, r) { + var n = _(246); + return n.initializer = e, n.expression = t, n.statement = M(r), n.transformFlags |= hi(n.initializer) | hi(n.expression) | hi(n.statement), n + } + + function _r(e, t, r, n) { + var i = _(247); + return i.awaitModifier = e, i.initializer = t, i.expression = s().parenthesizeExpressionForDisallowedComma(r), i.statement = M(n), i.transformFlags |= hi(i.awaitModifier) | hi(i.initializer) | hi(i.expression) | hi(i.statement) | 1024, e && (i.transformFlags |= 128), i + } + + function dr(e) { + var t = _(248); + return t.label = I(e), t.transformFlags |= 4194304 | hi(t.label), t + } + + function pr(e) { + var t = _(249); + return t.label = I(e), t.transformFlags |= 4194304 | hi(t.label), t + } + + function fr(e) { + var t = _(250); + return t.expression = e, t.transformFlags |= 4194432 | hi(t.expression), t + } + + function gr(e, t) { + var r = _(251); + return r.expression = e, r.statement = M(t), r.transformFlags |= hi(r.expression) | hi(r.statement), r + } + + function mr(e, t) { + var r = _(252); + return r.expression = s().parenthesizeExpressionForDisallowedComma(e), r.caseBlock = t, r.transformFlags |= hi(r.expression) | hi(r.caseBlock), r + } + + function yr(e, t) { + var r = _(253); + return r.label = I(e), r.statement = M(t), r.transformFlags |= hi(r.label) | hi(r.statement), r + } + + function hr(e, t, r) { + return e.label !== t || e.statement !== r ? u(yr(t, r), e) : e + } + + function vr(e) { + var t = _(254); + return t.expression = e, t.transformFlags |= hi(t.expression), t + } + + function br(e, t, r) { + var n = _(255); + return n.tryBlock = e, n.catchClause = t, n.finallyBlock = r, n.transformFlags |= hi(n.tryBlock) | hi(n.catchClause) | hi(n.finallyBlock), n + } + + function xr(e, t, r, n) { + e = W(257, void 0, e, r, n && s().parenthesizeExpressionForDisallowedComma(n)); + return e.exclamationToken = t, e.transformFlags |= hi(e.exclamationToken), t && (e.transformFlags |= 1), e + } + + function Dr(e, t) { + void 0 === t && (t = 0); + var r = _(258); + return r.flags |= 3 & t, r.declarations = f(e), r.transformFlags |= 4194304 | vi(r.declarations), 3 & t && (r.transformFlags |= 263168), r + } + + function Sr(e, t, r, n, i, a, o) { + e = h(259, e, r, n, i, a, o); + return e.asteriskToken = t, !e.body || 2 & ui.modifiersToFlags(e.modifiers) ? e.transformFlags = 1 : (e.transformFlags |= 4194304 | hi(e.asteriskToken), 512 & ui.modifiersToFlags(e.modifiers) ? e.asteriskToken ? e.transformFlags |= 128 : e.transformFlags |= 256 : e.asteriskToken && (e.transformFlags |= 2048)), e.illegalDecorators = void 0, e + } + + function Tr(e, t, r, n, i, a, o, s) { + return e.modifiers !== t || e.asteriskToken !== r || e.name !== n || e.typeParameters !== i || e.parameters !== a || e.type !== o || e.body !== s ? ((t = Sr(t, r, n, i, a, o, s)) !== (r = e) && (t.illegalDecorators = r.illegalDecorators), y(t, r)) : e + } + + function Cr(e, t, r, n, i) { + e = V(260, e, t, r, n, i); + return 2 & ui.modifiersToFlags(e.modifiers) ? e.transformFlags = 1 : (e.transformFlags |= 1024, 8192 & e.transformFlags && (e.transformFlags |= 1)), e + } + + function Er(e, t, r, n, i, a) { + return e.modifiers !== t || e.name !== r || e.typeParameters !== n || e.heritageClauses !== i || e.members !== a ? u(Cr(t, r, n, i, a), e) : e + } + + function kr(e, t, r, n, i) { + e = K(261, e, t, r, n); + return e.members = f(i), e.transformFlags = 1, e.illegalDecorators = void 0, e + } + + function Nr(e, t, r, n, i, a) { + return e.modifiers !== t || e.name !== r || e.typeParameters !== n || e.heritageClauses !== i || e.members !== a ? ((t = kr(t, r, n, i, a)) !== (r = e) && (t.illegalDecorators = r.illegalDecorators), u(t, r)) : e + } + + function Ar(e, t, r, n) { + e = g(262, e, t, r); + return e.type = n, e.transformFlags = 1, e.illegalDecorators = void 0, e + } + + function Fr(e, t, r, n, i) { + return e.modifiers !== t || e.name !== r || e.typeParameters !== n || e.type !== i ? ((t = Ar(t, r, n, i)) !== (r = e) && (t.illegalDecorators = r.illegalDecorators), u(t, r)) : e + } + + function Pr(e, t, r) { + e = p(263, e, t); + return e.members = f(r), e.transformFlags |= 1 | vi(e.members), e.transformFlags &= -67108865, e.illegalDecorators = void 0, e + } + + function wr(e, t, r, n) { + return e.modifiers !== t || e.name !== r || e.members !== n ? ((t = Pr(t, r, n)) !== (r = e) && (t.illegalDecorators = r.illegalDecorators), u(t, r)) : e + } + + function Ir(e, t, r, n) { + void 0 === n && (n = 0); + var i = d(264); + return i.modifiers = w(e), i.flags |= 1044 & n, i.name = t, i.body = r, 2 & ui.modifiersToFlags(i.modifiers) ? i.transformFlags = 1 : i.transformFlags |= vi(i.modifiers) | hi(i.name) | hi(i.body) | 1, i.transformFlags &= -67108865, i.illegalDecorators = void 0, i + } + + function Or(e, t, r, n) { + return e.modifiers !== t || e.name !== r || e.body !== n ? ((t = Ir(t, r, n, e.flags)) !== (r = e) && (t.illegalDecorators = r.illegalDecorators), u(t, r)) : e + } + + function Mr(e) { + var t = _(265); + return t.statements = f(e), t.transformFlags |= vi(t.statements), t + } + + function Lr(e) { + var t = _(266); + return t.clauses = f(e), t.transformFlags |= vi(t.clauses), t + } + + function Rr(e) { + e = p(267, void 0, e); + return e.transformFlags = 1, e.illegalDecorators = void 0, e.modifiers = void 0, e + } + + function Br(e, t, r, n) { + e = p(268, e, r); + return e.isTypeOnly = t, e.moduleReference = n, e.transformFlags |= hi(e.moduleReference), ui.isExternalModuleReference(e.moduleReference) || (e.transformFlags |= 1), e.transformFlags &= -67108865, e.illegalDecorators = void 0, e + } + + function jr(e, t, r, n, i) { + return e.modifiers !== t || e.isTypeOnly !== r || e.name !== n || e.moduleReference !== i ? ((t = Br(t, r, n, i)) !== (r = e) && (t.illegalDecorators = r.illegalDecorators), u(t, r)) : e + } + + function Jr(e, t, r, n) { + var i = d(269); + return i.modifiers = w(e), i.importClause = t, i.moduleSpecifier = r, i.assertClause = n, i.transformFlags |= hi(i.importClause) | hi(i.moduleSpecifier), i.transformFlags &= -67108865, i.illegalDecorators = void 0, i + } + + function zr(e, t, r, n, i) { + return e.modifiers !== t || e.importClause !== r || e.moduleSpecifier !== n || e.assertClause !== i ? ((t = Jr(t, r, n, i)) !== (r = e) && (t.illegalDecorators = r.illegalDecorators), u(t, r)) : e + } + + function Ur(e, t, r) { + var n = _(270); + return n.isTypeOnly = e, n.name = t, n.namedBindings = r, n.transformFlags |= hi(n.name) | hi(n.namedBindings), e && (n.transformFlags |= 1), n.transformFlags &= -67108865, n + } + + function Kr(e, t) { + var r = _(296); + return r.elements = f(e), r.multiLine = t, r.transformFlags |= 4, r + } + + function Vr(e, t) { + var r = _(297); + return r.name = e, r.value = t, r.transformFlags |= 4, r + } + + function qr(e, t) { + var r = _(298); + return r.assertClause = e, r.multiLine = t, r + } + + function Wr(e) { + var t = _(271); + return t.name = e, t.transformFlags |= hi(t.name), t.transformFlags &= -67108865, t + } + + function Hr(e) { + var t = _(277); + return t.name = e, t.transformFlags |= 4 | hi(t.name), t.transformFlags &= -67108865, t + } + + function Gr(e) { + var t = _(272); + return t.elements = f(e), t.transformFlags |= vi(t.elements), t.transformFlags &= -67108865, t + } + + function Qr(e, t, r) { + var n = _(273); + return n.isTypeOnly = e, n.propertyName = t, n.name = r, n.transformFlags |= hi(n.propertyName) | hi(n.name), n.transformFlags &= -67108865, n + } + + function Xr(e, t, r) { + var n = d(274); + return n.modifiers = w(e), n.isExportEquals = t, n.expression = t ? s().parenthesizeRightSideOfBinary(63, void 0, r) : s().parenthesizeExpressionOfExportDefault(r), n.transformFlags |= vi(n.modifiers) | hi(n.expression), n.transformFlags &= -67108865, n.illegalDecorators = void 0, n + } + + function Yr(e, t, r) { + return e.modifiers !== t || e.expression !== r ? ((t = Xr(t, e.isExportEquals, r)) !== (r = e) && (t.illegalDecorators = r.illegalDecorators), u(t, r)) : e + } + + function Zr(e, t, r, n, i) { + var a = d(275); + return a.modifiers = w(e), a.isTypeOnly = t, a.exportClause = r, a.moduleSpecifier = n, a.assertClause = i, a.transformFlags |= vi(a.modifiers) | hi(a.exportClause) | hi(a.moduleSpecifier), a.transformFlags &= -67108865, a.illegalDecorators = void 0, a + } + + function $r(e, t, r, n, i, a) { + return e.modifiers !== t || e.isTypeOnly !== r || e.exportClause !== n || e.moduleSpecifier !== i || e.assertClause !== a ? ((t = Zr(t, r, n, i, a)) !== (r = e) && (t.illegalDecorators = r.illegalDecorators), u(t, r)) : e + } + + function en(e) { + var t = _(276); + return t.elements = f(e), t.transformFlags |= vi(t.elements), t.transformFlags &= -67108865, t + } + + function tn(e, t, r) { + var n = _(278); + return n.isTypeOnly = e, n.propertyName = I(t), n.name = I(r), n.transformFlags |= hi(n.propertyName) | hi(n.name), n.transformFlags &= -67108865, n + } + + function rn(e) { + var t = _(280); + return t.expression = e, t.transformFlags |= hi(t.expression), t.transformFlags &= -67108865, t + } + + function nn(e, t, r) { + e = an(e, (r = void 0 === r ? !1 : r) ? t && s().parenthesizeNonArrayTypeOfPostfixType(t) : t); + return e.postfix = r, e + } + + function an(e, t) { + e = _(e); + return e.type = t, e + } + + function on(e, t) { + return m(320, void 0, void 0, void 0, e, t) + } + + function sn(e, t) { + void 0 === t && (t = !1); + var r = _(325); + return r.jsDocPropertyTags = w(e), r.isArrayType = t, r + } + + function cn(e) { + var t = _(312); + return t.type = e, t + } + + function ln(e, t, r) { + var n = _(326); + return n.typeParameters = w(e), n.parameters = f(t), n.type = r, n + } + + function E(e) { + var t = gi(e.kind); + return e.tagName.escapedText === ui.escapeLeadingUnderscores(t) ? e.tagName : b(t) + } + + function k(e, t, r) { + e = _(e); + return e.tagName = t, e.comment = r, e + } + + function un(e, t, r, n) { + e = k(347, null != e ? e : b("template"), n); + return e.constraint = t, e.typeParameters = f(r), e + } + + function _n(e, t, r, n) { + e = k(348, null != e ? e : b("typedef"), n); + return e.typeExpression = t, e.fullName = r, e.name = ui.getJSDocTypeAliasName(r), e + } + + function dn(e, t, r, n, i, a) { + e = k(343, null != e ? e : b("param"), a); + return e.typeExpression = n, e.name = t, e.isNameFirst = !!i, e.isBracketed = r, e + } + + function pn(e, t, r, n, i, a) { + e = k(350, null != e ? e : b("prop"), a); + return e.typeExpression = n, e.name = t, e.isNameFirst = !!i, e.isBracketed = r, e + } + + function fn(e, t, r, n) { + e = k(341, null != e ? e : b("callback"), n); + return e.typeExpression = t, e.fullName = r, e.name = ui.getJSDocTypeAliasName(r), e + } + + function gn(e, t, r) { + e = k(331, null != e ? e : b("augments"), r); + return e.class = t, e + } + + function mn(e, t, r) { + e = k(332, null != e ? e : b("implements"), r); + return e.class = t, e + } + + function yn(e, t, r) { + e = k(349, null != e ? e : b("see"), r); + return e.name = t, e + } + + function hn(e) { + var t = _(313); + return t.name = e, t + } + + function vn(e, t) { + var r = _(314); + return r.left = e, r.right = t, r.transformFlags |= hi(r.left) | hi(r.right), r + } + + function bn(e, t) { + var r = _(327); + return r.name = e, r.text = t, r + } + + function xn(e, t) { + var r = _(328); + return r.name = e, r.text = t, r + } + + function Dn(e, t) { + var r = _(329); + return r.name = e, r.text = t, r + } + + function Sn(e, t, r) { + return k(e, null != t ? t : b(gi(e)), r) + } + + function Tn(e, t, r, n) { + t = k(e, null != t ? t : b(gi(e)), n); + return t.typeExpression = r, t + } + + function Cn(e, t) { + return k(330, e, t) + } + + function En(e) { + var t = _(324); + return t.text = e, t + } + + function kn(e, t) { + var r = _(323); + return r.comment = e, r.tags = w(t), r + } + + function Nn(e, t, r) { + var n = _(281); + return n.openingElement = e, n.children = f(t), n.closingElement = r, n.transformFlags |= hi(n.openingElement) | vi(n.children) | hi(n.closingElement) | 2, n + } + + function An(e, t, r) { + var n = _(282); + return n.tagName = e, n.typeArguments = w(t), n.attributes = r, n.transformFlags |= hi(n.tagName) | vi(n.typeArguments) | hi(n.attributes) | 2, n.typeArguments && (n.transformFlags |= 1), n + } + + function Fn(e, t, r) { + var n = _(283); + return n.tagName = e, n.typeArguments = w(t), n.attributes = r, n.transformFlags |= hi(n.tagName) | vi(n.typeArguments) | hi(n.attributes) | 2, t && (n.transformFlags |= 1), n + } + + function Pn(e) { + var t = _(284); + return t.tagName = e, t.transformFlags |= 2 | hi(t.tagName), t + } + + function wn(e, t, r) { + var n = _(285); + return n.openingFragment = e, n.children = f(t), n.closingFragment = r, n.transformFlags |= hi(n.openingFragment) | vi(n.children) | hi(n.closingFragment) | 2, n + } + + function In(e, t) { + var r = _(11); + return r.text = e, r.containsOnlyTriviaWhiteSpaces = !!t, r.transformFlags |= 2, r + } + + function On(e, t) { + var r = _(288); + return r.name = e, r.initializer = t, r.transformFlags |= hi(r.name) | hi(r.initializer) | 2, r + } + + function Mn(e) { + var t = _(289); + return t.properties = f(e), t.transformFlags |= 2 | vi(t.properties), t + } + + function Ln(e) { + var t = _(290); + return t.expression = e, t.transformFlags |= 2 | hi(t.expression), t + } + + function Rn(e, t) { + var r = _(291); + return r.dotDotDotToken = e, r.expression = t, r.transformFlags |= hi(r.dotDotDotToken) | hi(r.expression) | 2, r + } + + function Bn(e, t) { + var r = _(292); + return r.expression = s().parenthesizeExpressionForDisallowedComma(e), r.statements = f(t), r.transformFlags |= hi(r.expression) | vi(r.statements), r + } + + function jn(e) { + var t = _(293); + return t.statements = f(e), t.transformFlags = vi(t.statements), t + } + + function Jn(e, t) { + var r = _(294); + switch (r.token = e, r.types = f(t), r.transformFlags |= vi(r.types), e) { + case 94: + r.transformFlags |= 1024; + break; + case 117: + r.transformFlags |= 1; + break; + default: + return ui.Debug.assertNever(e) + } + return r + } + + function zn(e, t) { + var r = _(295); + return ("string" == typeof e || e && !ui.isVariableDeclaration(e)) && (e = xr(e, void 0, void 0, void 0)), r.variableDeclaration = e, r.block = t, r.transformFlags |= hi(r.variableDeclaration) | hi(r.block), e || (r.transformFlags |= 64), r + } + + function Un(e, t) { + e = p(299, void 0, e); + return e.initializer = s().parenthesizeExpressionForDisallowedComma(t), e.transformFlags |= hi(e.name) | hi(e.initializer), e.illegalDecorators = void 0, e.modifiers = void 0, e.questionToken = void 0, e.exclamationToken = void 0, e + } + + function Kn(e, t) { + e = p(300, void 0, e); + return e.objectAssignmentInitializer = t && s().parenthesizeExpressionForDisallowedComma(t), e.transformFlags |= 1024 | hi(e.objectAssignmentInitializer), e.equalsToken = void 0, e.illegalDecorators = void 0, e.modifiers = void 0, e.questionToken = void 0, e.exclamationToken = void 0, e + } + + function Vn(e) { + var t = _(301); + return t.expression = s().parenthesizeExpressionForDisallowedComma(e), t.transformFlags |= 65664 | hi(t.expression), t + } + + function qn(e, t) { + var r = _(302); + return r.name = I(e), r.initializer = t && s().parenthesizeExpressionForDisallowedComma(t), r.transformFlags |= hi(r.name) | hi(r.initializer) | 1, r + } + + function Wn(e, t) { + void 0 === t && (t = ui.emptyArray); + var r = _(309); + return r.prepends = t, r.sourceFiles = e, r + } + + function Hn(e, t) { + e = _(e); + return e.data = t, e + } + + function Gn(e, t) { + var r = _(353); + return r.expression = e, r.original = t, r.transformFlags |= 1 | hi(r.expression), ui.setTextRange(r, t), r + } + + function Qn(e, t) { + return e.expression !== t ? u(Gn(t, e.original), e) : e + } + + function Xn(e) { + if (ui.nodeIsSynthesized(e) && !ui.isParseTreeNode(e) && !e.original && !e.emitNode && !e.id) { + if (ui.isCommaListExpression(e)) return e.elements; + if (ui.isBinaryExpression(e) && ui.isCommaToken(e.operatorToken)) return [e.left, e.right] + } + return e + } + + function Yn(e) { + var t = _(354); + return t.elements = f(ui.sameFlatMap(e, Xn)), t.transformFlags |= vi(t.elements), t + } + + function Zn(e, t) { + var r = _(357); + return r.expression = e, r.thisArg = t, r.transformFlags |= hi(r.expression) | hi(r.thisArg), r + } + + function $n(e) { + if (void 0 === e) return e; + var t, r = ui.isSourceFile(e) ? l.createBaseSourceFileNode(308) : ui.isIdentifier(e) ? l.createBaseIdentifierNode(79) : ui.isPrivateIdentifier(e) ? l.createBasePrivateIdentifierNode(80) : ui.isNodeKind(e.kind) ? l.createBaseNode(e.kind) : l.createBaseTokenNode(e.kind); + for (t in r.flags |= -9 & e.flags, r.transformFlags = e.transformFlags, xi(r, e), e) !ui.hasProperty(r, t) && ui.hasProperty(e, t) && (r[t] = e[t]); + return r + } + + function ei() { + return Pt(G("0")) + } + + function N(e, t, r) { + return ui.isCallChain(e) ? yt(dt(e, void 0, t), void 0, void 0, r) : T(S(e, t), void 0, r) + } + + function ti(e, t, r) { + return N(b(e), t, r) + } + + function A(e, t, r) { + return !!r && (e.push(Un(t, r)), !0) + } + + function ri(e, t) { + switch (e.kind) { + case 214: + return Tt(e, t); + case 213: + return Dt(e, e.type, t); + case 231: + return Ht(e, t, e.type); + case 235: + return Yt(e, t, e.type); + case 232: + return Qt(e, t); + case 353: + return Qn(e, t) + } + } + + function ni(e) { + return ui.isParenthesizedExpression(e) && ui.nodeIsSynthesized(e) && ui.nodeIsSynthesized(ui.getSourceMapRange(e)) && ui.nodeIsSynthesized(ui.getCommentRange(e)) && !ui.some(ui.getSyntheticLeadingComments(e)) && !ui.some(ui.getSyntheticTrailingComments(e)) + } + + function ii(e, t) { + var r = ui.skipParentheses(e); + switch (r.kind) { + case 79: + return t; + case 108: + case 8: + case 9: + case 10: + return; + case 206: + return 0 === r.elements.length ? void 0 : 1; + case 207: + return 0 < r.properties.length; + default: + return 1 + } + } + + function F(e, t, r, n) { + void 0 === n && (n = 0); + var i, a = ui.getNameOfDeclaration(e); + return a && ui.isIdentifier(a) && !ui.isGeneratedIdentifier(a) ? (i = ui.setParent(ui.setTextRange($n(a), a), a.parent), n |= ui.getEmitFlags(a), r || (n |= 48), t || (n |= 1536), n && ui.setEmitFlags(i, n), i) : te(e) + } + + function ai(e, t, r) { + return F(e, t, r, 8192) + } + + function oi(e, t, r, n) { + e = S(e, ui.nodeIsSynthesized(t) ? t : $n(t)), ui.setTextRange(e, t), t = 0; + return n || (t |= 48), r || (t |= 1536), t && ui.setEmitFlags(e, t), e + } + + function si() { + return ui.startOnNewLine(ar(v("use strict"))) + } + + function ci(e, t, r, n) { + void 0 === r && (r = 0), ui.Debug.assert(0 === t.length, "Prologue directives should be at the first statement in the target statements array"); + for (var i, a = !1, o = e.length; r < o;) { + var s = e[r]; + if (!ui.isPrologueDirective(s)) break; + i = s, ui.isStringLiteral(i.expression) && "use strict" === i.expression.text && (a = !0), t.push(s), r++ + } + return n && !a && t.push(si()), r + } + + function li(e, t, r, n, i) { + void 0 === i && (i = ui.returnTrue); + for (var a = e.length; void 0 !== r && r < a;) { + var o = e[r]; + if (!(1048576 & ui.getEmitFlags(o) && i(o))) break; + ui.append(t, n ? ui.visitNode(o, n, ui.isStatement) : o), r++ + } + return r + } + + function P(e, t, r) { + for (var n = r; n < e.length && t(e[n]);) n++; + return n + } + + function w(e) { + return e ? f(e) : void 0 + } + + function I(e) { + return "string" == typeof e ? b(e) : e + } + + function O(e) { + return "string" == typeof e ? v(e) : "number" == typeof e ? G(e) : "boolean" == typeof e ? (e ? oe : se)() : e + } + + function M(e) { + return e && ui.isNotEmittedStatement(e) ? ui.setTextRange(xi(ir(), e), e) : e + } + } + + function pi(e, t) { + return e !== t && ui.setTextRange(e, t), e + } + + function fi(e, t) { + return e !== t && (xi(e, t), ui.setTextRange(e, t)), e + } + + function gi(e) { + switch (e) { + case 346: + return "type"; + case 344: + return "returns"; + case 345: + return "this"; + case 342: + return "enum"; + case 333: + return "author"; + case 335: + return "class"; + case 336: + return "public"; + case 337: + return "private"; + case 338: + return "protected"; + case 339: + return "readonly"; + case 340: + return "override"; + case 347: + return "template"; + case 348: + return "typedef"; + case 343: + return "param"; + case 350: + return "prop"; + case 341: + return "callback"; + case 331: + return "augments"; + case 332: + return "implements"; + default: + return ui.Debug.fail("Unsupported kind: ".concat(ui.Debug.formatSyntaxKind(e))) + } + }(e = ui.NodeFactoryFlags || (ui.NodeFactoryFlags = {}))[e.None = 0] = "None", e[e.NoParenthesizerRules = 1] = "NoParenthesizerRules", e[e.NoNodeConverters = 2] = "NoNodeConverters", e[e.NoIndentationOnFreshPropertyAccess = 4] = "NoIndentationOnFreshPropertyAccess", e[e.NoOriginalNode = 8] = "NoOriginalNode", ui.createNodeFactory = t; + var mi = {}; + + function yi(e) { + return -67108865 & hi(e) + } + + function hi(e) { + var t; + return e ? (t = e.transformFlags & ~r(e.kind), ui.isNamedDeclaration(e) && ui.isPropertyName(e.name) ? (e = e.name, t | 134234112 & e.transformFlags) : t) : 0 + } + + function vi(e) { + return e ? e.transformFlags : 0 + } + + function bi(e) { + for (var t = 0, r = 0, n = e; r < n.length; r++) t |= hi(n[r]); + e.transformFlags = t + } + + function r(e) { + if (179 <= e && e <= 202) return -2; + switch (e) { + case 210: + case 211: + case 206: + return -2147450880; + case 264: + return -1941676032; + case 166: + return -2147483648; + case 216: + return -2072174592; + case 215: + case 259: + return -1937940480; + case 258: + return -2146893824; + case 260: + case 228: + return -2147344384; + case 173: + return -1937948672; + case 169: + return -2013249536; + case 171: + case 174: + case 175: + return -2005057536; + case 131: + case 148: + case 160: + case 144: + case 152: + case 149: + case 134: + case 153: + case 114: + case 165: + case 168: + case 170: + case 176: + case 177: + case 178: + case 261: + case 262: + return -2; + case 207: + return -2147278848; + case 295: + return -2147418112; + case 203: + case 204: + return -2147450880; + case 213: + case 235: + case 231: + case 353: + case 214: + case 106: + return -2147483648; + default: + return -2147483648 + } + } + ui.getTransformFlagsSubtreeExclusions = r; + var n, i = ui.createBaseNodeFactory(); + + function a(e) { + return e.flags |= 8, e + } + + function xi(e, t) { + return (e.original = t) && (t = t.emitNode) && (e.emitNode = function(e, t) { + var r = e.flags, + n = e.leadingComments, + i = e.trailingComments, + a = e.commentRange, + o = e.sourceMapRange, + s = e.tokenSourceMapRanges, + c = e.constantValue, + l = e.helpers, + u = e.startsOnNewLine, + e = e.snippetElement; + t = t || {}; + n && (t.leadingComments = ui.addRange(n.slice(), t.leadingComments)); + i && (t.trailingComments = ui.addRange(i.slice(), t.trailingComments)); + r && (t.flags = -268435457 & r); + a && (t.commentRange = a); + o && (t.sourceMapRange = o); + s && (t.tokenSourceMapRanges = function(e, t) { + t = t || []; + for (var r in e) t[r] = e[r]; + return t + }(s, t.tokenSourceMapRanges)); + void 0 !== c && (t.constantValue = c); + if (l) + for (var _ = 0, d = l; _ < d.length; _++) { + var p = d[_]; + t.helpers = ui.appendIfUnique(t.helpers, p) + } + void 0 !== u && (t.startsOnNewLine = u); + void 0 !== e && (t.snippetElement = e); + return t + }(t, e.emitNode)), e + } + ui.factory = t(4, { + createBaseSourceFileNode: function(e) { + return a(i.createBaseSourceFileNode(e)) + }, + createBaseIdentifierNode: function(e) { + return a(i.createBaseIdentifierNode(e)) + }, + createBasePrivateIdentifierNode: function(e) { + return a(i.createBasePrivateIdentifierNode(e)) + }, + createBaseTokenNode: function(e) { + return a(i.createBaseTokenNode(e)) + }, + createBaseNode: function(e) { + return a(i.createBaseNode(e)) + } + }), ui.createUnparsedSourceFile = function(e, t, r) { + var n, i, a, o, s, c, l, u, _, d; + return ui.isString(e) ? (a = "", s = (o = e).length, c = t, l = r) : (ui.Debug.assert("js" === t || "dts" === t), a = ("js" === t ? e.javascriptPath : e.declarationPath) || "", c = "js" === t ? e.javascriptMapPath : e.declarationMapPath, u = function() { + return "js" === t ? e.javascriptText : e.declarationText + }, _ = function() { + return "js" === t ? e.javascriptMapText : e.declarationMapText + }, s = function() { + return u().length + }, e.buildInfo && e.buildInfo.bundle && (ui.Debug.assert(void 0 === r || "boolean" == typeof r), n = r, i = "js" === t ? e.buildInfo.bundle.js : e.buildInfo.bundle.dts, d = e.oldFileOfCurrentEmit)), (r = d ? function(e) { + for (var t, r, n = 0, i = e.sections; n < i.length; n++) { + var a = i[n]; + switch (a.kind) { + case "internal": + case "text": + t = ui.append(t, ui.setTextRange(ui.factory.createUnparsedTextLike(a.data, "internal" === a.kind), a)); + break; + case "no-default-lib": + case "reference": + case "type": + case "type-import": + case "type-require": + case "lib": + r = ui.append(r, ui.setTextRange(ui.factory.createUnparsedSyntheticReference(a), a)); + break; + case "prologue": + case "emitHelpers": + case "prepend": + break; + default: + ui.Debug.assertNever(a) + } + } + var o = ui.factory.createUnparsedSource(ui.emptyArray, r, null != t ? t : ui.emptyArray); + return ui.setEachParent(r, o), ui.setEachParent(t, o), o.helpers = ui.map(e.sources && e.sources.helpers, function(e) { + return ui.getAllUnscopedEmitHelpers().get(e) + }), o + }(ui.Debug.checkDefined(i)) : function(e, t, r) { + for (var n, i, a, o, s, c, l, u, _ = 0, d = e ? e.sections : ui.emptyArray; _ < d.length; _++) { + var p = d[_]; + switch (p.kind) { + case "prologue": + n = ui.append(n, ui.setTextRange(ui.factory.createUnparsedPrologue(p.data), p)); + break; + case "emitHelpers": + i = ui.append(i, ui.getAllUnscopedEmitHelpers().get(p.data)); + break; + case "no-default-lib": + u = !0; + break; + case "reference": + a = ui.append(a, { + pos: -1, + end: -1, + fileName: p.data + }); + break; + case "type": + o = ui.append(o, { + pos: -1, + end: -1, + fileName: p.data + }); + break; + case "type-import": + o = ui.append(o, { + pos: -1, + end: -1, + fileName: p.data, + resolutionMode: ui.ModuleKind.ESNext + }); + break; + case "type-require": + o = ui.append(o, { + pos: -1, + end: -1, + fileName: p.data, + resolutionMode: ui.ModuleKind.CommonJS + }); + break; + case "lib": + s = ui.append(s, { + pos: -1, + end: -1, + fileName: p.data + }); + break; + case "prepend": + for (var f = void 0, g = 0, m = p.texts; g < m.length; g++) { + var y = m[g]; + t && "internal" === y.kind || (f = ui.append(f, ui.setTextRange(ui.factory.createUnparsedTextLike(y.data, "internal" === y.kind), y))) + } + c = ui.addRange(c, f), l = ui.append(l, ui.factory.createUnparsedPrepend(p.data, null != f ? f : ui.emptyArray)); + break; + case "internal": + if (t) { + l = l || []; + break + } + case "text": + l = ui.append(l, ui.setTextRange(ui.factory.createUnparsedTextLike(p.data, "internal" === p.kind), p)); + break; + default: + ui.Debug.assertNever(p) + } + } + l || (e = ui.factory.createUnparsedTextLike(void 0, !1), ui.setTextRangePosWidth(e, 0, "function" == typeof r ? r() : r), l = [e]); + r = ui.parseNodeFactory.createUnparsedSource(null != n ? n : ui.emptyArray, void 0, l); + return ui.setEachParent(n, r), ui.setEachParent(l, r), ui.setEachParent(c, r), r.hasNoDefaultLib = u, r.helpers = i, r.referencedFiles = a || ui.emptyArray, r.typeReferenceDirectives = o, r.libReferenceDirectives = s || ui.emptyArray, r + }(i, n, s)).fileName = a, r.sourceMapPath = c, r.oldFileOfCurrentEmit = d, u && _ ? (Object.defineProperty(r, "text", { + get: u + }), Object.defineProperty(r, "sourceMapText", { + get: _ + })) : (ui.Debug.assert(!d), r.text = null != o ? o : "", r.sourceMapText = l), r + }, ui.createInputFiles = function(r, e, t, n, i, a, o, s, c, l, u) { + var _, d, p, f, g = ui.parseNodeFactory.createInputFiles(); + return ui.isString(r) ? (g.javascriptText = r, g.javascriptMapPath = t, g.javascriptMapText = n, g.declarationText = e, g.declarationMapPath = i, g.declarationMapText = a, g.javascriptPath = o, g.declarationPath = s, g.buildInfoPath = c, g.buildInfo = l, g.oldFileOfCurrentEmit = u) : (_ = new ui.Map, d = function(e) { + var t; + if (void 0 !== e) return void 0 === (t = _.get(e)) && (t = r(e), _.set(e, void 0 !== t && t)), !1 !== t ? t : void 0 + }, p = function(e) { + var t = d(e); + return void 0 !== t ? t : "/* Input file ".concat(e, " was missing */\r\n") + }, g.javascriptPath = e, g.javascriptMapPath = t, g.declarationPath = ui.Debug.checkDefined(n), g.declarationMapPath = i, g.buildInfoPath = a, Object.defineProperties(g, { + javascriptText: { + get: function() { + return p(e) + } + }, + javascriptMapText: { + get: function() { + return d(t) + } + }, + declarationText: { + get: function() { + return p(ui.Debug.checkDefined(n)) + } + }, + declarationMapText: { + get: function() { + return d(i) + } + }, + buildInfo: { + get: function() { + return e = function() { + return d(a) + }, void 0 === f && (e = e(), f = void 0 !== e && null != (e = ui.getBuildInfo(g.buildInfoPath, e)) && e), f || void 0; + var e + } + } + })), g + }, ui.createSourceMapSource = function(e, t, r) { + return new(n = n || ui.objectAllocator.getSourceMapSourceConstructor())(e, t, r) + }, ui.setOriginalNode = xi + }(ts = ts || {}), ! function(c) { + function l(e) { + var t; + if (e.emitNode) c.Debug.assert(!(268435456 & e.emitNode.flags), "Invalid attempt to mutate an immutable node."); + else { + if (c.isParseTreeNode(e)) { + if (308 === e.kind) return e.emitNode = { + annotatedNodes: [e] + }; + l(null != (t = c.getSourceFileOfNode(c.getParseTreeNode(c.getSourceFileOfNode(e)))) ? t : c.Debug.fail("Could not determine parsed source file.")).annotatedNodes.push(e) + } + e.emitNode = {} + } + return e.emitNode + } + + function i(e) { + return null == (e = e.emitNode) ? void 0 : e.leadingComments + } + + function a(e, t) { + return l(e).leadingComments = t, e + } + + function o(e) { + return null == (e = e.emitNode) ? void 0 : e.trailingComments + } + + function s(e, t) { + return l(e).trailingComments = t, e + } + c.getOrCreateEmitNode = l, c.disposeEmitNodes = function(e) { + if (e = null == (e = null == (e = c.getSourceFileOfNode(c.getParseTreeNode(e))) ? void 0 : e.emitNode) ? void 0 : e.annotatedNodes) + for (var t = 0, r = e; t < r.length; t++) r[t].emitNode = void 0 + }, c.removeAllComments = function(e) { + var t = l(e); + return t.flags |= 1536, t.leadingComments = void 0, t.trailingComments = void 0, e + }, c.setEmitFlags = function(e, t) { + return l(e).flags = t, e + }, c.addEmitFlags = function(e, t) { + var r = l(e); + return r.flags = r.flags | t, e + }, c.getSourceMapRange = function(e) { + var t; + return null != (t = null == (t = e.emitNode) ? void 0 : t.sourceMapRange) ? t : e + }, c.setSourceMapRange = function(e, t) { + return l(e).sourceMapRange = t, e + }, c.getTokenSourceMapRange = function(e, t) { + return null == (e = null == (e = e.emitNode) ? void 0 : e.tokenSourceMapRanges) ? void 0 : e[t] + }, c.setTokenSourceMapRange = function(e, t, r) { + var n, i = l(e); + return (null != (n = i.tokenSourceMapRanges) ? n : i.tokenSourceMapRanges = [])[t] = r, e + }, c.getStartsOnNewLine = function(e) { + return null == (e = e.emitNode) ? void 0 : e.startsOnNewLine + }, c.setStartsOnNewLine = function(e, t) { + return l(e).startsOnNewLine = t, e + }, c.getCommentRange = function(e) { + var t; + return null != (t = null == (t = e.emitNode) ? void 0 : t.commentRange) ? t : e + }, c.setCommentRange = function(e, t) { + return l(e).commentRange = t, e + }, c.getSyntheticLeadingComments = i, c.setSyntheticLeadingComments = a, c.addSyntheticLeadingComment = function(e, t, r, n) { + return a(e, c.append(i(e), { + kind: t, + pos: -1, + end: -1, + hasTrailingNewLine: n, + text: r + })) + }, c.getSyntheticTrailingComments = o, c.setSyntheticTrailingComments = s, c.addSyntheticTrailingComment = function(e, t, r, n) { + return s(e, c.append(o(e), { + kind: t, + pos: -1, + end: -1, + hasTrailingNewLine: n, + text: r + })) + }, c.moveSyntheticComments = function(e, t) { + return a(e, i(t)), s(e, o(t)), (t = l(t)).leadingComments = void 0, t.trailingComments = void 0, e + }, c.getConstantValue = function(e) { + return null == (e = e.emitNode) ? void 0 : e.constantValue + }, c.setConstantValue = function(e, t) { + return l(e).constantValue = t, e + }, c.addEmitHelper = function(e, t) { + var r = l(e); + return r.helpers = c.append(r.helpers, t), e + }, c.addEmitHelpers = function(e, t) { + if (c.some(t)) + for (var r = l(e), n = 0, i = t; n < i.length; n++) { + var a = i[n]; + r.helpers = c.appendIfUnique(r.helpers, a) + } + return e + }, c.removeEmitHelper = function(e, t) { + return !!(e = null == (e = e.emitNode) ? void 0 : e.helpers) && c.orderedRemoveItem(e, t) + }, c.getEmitHelpers = function(e) { + return null == (e = e.emitNode) ? void 0 : e.helpers + }, c.moveEmitHelpers = function(e, t, r) { + var n = (e = e.emitNode) && e.helpers; + if (c.some(n)) { + for (var i = l(t), a = 0, o = 0; o < n.length; o++) { + var s = n[o]; + r(s) ? (a++, i.helpers = c.appendIfUnique(i.helpers, s)) : 0 < a && (n[o - a] = s) + } + 0 < a && (n.length -= a) + } + }, c.getSnippetElement = function(e) { + return null == (e = e.emitNode) ? void 0 : e.snippetElement + }, c.setSnippetElement = function(e, t) { + return l(e).snippetElement = t, e + }, c.ignoreSourceNewlines = function(e) { + return l(e).flags |= 134217728, e + }, c.setTypeNode = function(e, t) { + return l(e).typeNode = t, e + }, c.getTypeNode = function(e) { + return null == (e = e.emitNode) ? void 0 : e.typeNode + } + }(ts = ts || {}), ! function(d) { + function e(n) { + for (var i = [], e = 1; e < arguments.length; e++) i[e - 1] = arguments[e]; + return function(e) { + for (var t = "", r = 0; r < i.length; r++) t = (t += n[r]) + e(i[r]); + return t += n[n.length - 1] + } + } + var t; + d.createEmitHelperFactory = function(l) { + var u = l.factory, + n = d.memoize(function() { + return d.setEmitFlags(u.createTrue(), 268435456) + }), + i = d.memoize(function() { + return d.setEmitFlags(u.createFalse(), 268435456) + }); + return { + getUnscopedHelperName: _, + createDecorateHelper: function(e, t, r, n) { + l.requestEmitHelper(d.decorateHelper); + var i = []; + i.push(u.createArrayLiteralExpression(e, !0)), i.push(t), r && (i.push(r), n) && i.push(n); + return u.createCallExpression(_("__decorate"), void 0, i) + }, + createMetadataHelper: function(e, t) { + return l.requestEmitHelper(d.metadataHelper), u.createCallExpression(_("__metadata"), void 0, [u.createStringLiteral(e), t]) + }, + createParamHelper: function(e, t, r) { + return l.requestEmitHelper(d.paramHelper), d.setTextRange(u.createCallExpression(_("__param"), void 0, [u.createNumericLiteral(t + ""), e]), r) + }, + createAssignHelper: function(e) { + if (2 <= d.getEmitScriptTarget(l.getCompilerOptions())) return u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"), "assign"), void 0, e); + return l.requestEmitHelper(d.assignHelper), u.createCallExpression(_("__assign"), void 0, e) + }, + createAwaitHelper: function(e) { + return l.requestEmitHelper(d.awaitHelper), u.createCallExpression(_("__await"), void 0, [e]) + }, + createAsyncGeneratorHelper: function(e, t) { + return l.requestEmitHelper(d.awaitHelper), l.requestEmitHelper(d.asyncGeneratorHelper), (e.emitNode || (e.emitNode = {})).flags |= 786432, u.createCallExpression(_("__asyncGenerator"), void 0, [t ? u.createThis() : u.createVoidZero(), u.createIdentifier("arguments"), e]) + }, + createAsyncDelegatorHelper: function(e) { + return l.requestEmitHelper(d.awaitHelper), l.requestEmitHelper(d.asyncDelegator), u.createCallExpression(_("__asyncDelegator"), void 0, [e]) + }, + createAsyncValuesHelper: function(e) { + return l.requestEmitHelper(d.asyncValues), u.createCallExpression(_("__asyncValues"), void 0, [e]) + }, + createRestHelper: function(e, t, r, n) { + l.requestEmitHelper(d.restHelper); + for (var i = [], a = 0, o = 0; o < t.length - 1; o++) { + var s, c = d.getPropertyNameOfBindingOrAssignmentElement(t[o]); + c && (d.isComputedPropertyName(c) ? (d.Debug.assertIsDefined(r, "Encountered computed property name but 'computedTempVariables' argument was not provided."), s = r[a], a++, i.push(u.createConditionalExpression(u.createTypeCheck(s, "symbol"), void 0, s, void 0, u.createAdd(s, u.createStringLiteral(""))))) : i.push(u.createStringLiteralFromNode(c))) + } + return u.createCallExpression(_("__rest"), void 0, [e, d.setTextRange(u.createArrayLiteralExpression(i), n)]) + }, + createAwaiterHelper: function(e, t, r, n) { + l.requestEmitHelper(d.awaiterHelper); + n = u.createFunctionExpression(void 0, u.createToken(41), void 0, void 0, [], void 0, n); + return (n.emitNode || (n.emitNode = {})).flags |= 786432, u.createCallExpression(_("__awaiter"), void 0, [e ? u.createThis() : u.createVoidZero(), t ? u.createIdentifier("arguments") : u.createVoidZero(), r ? d.createExpressionFromEntityName(u, r) : u.createVoidZero(), n]) + }, + createExtendsHelper: function(e) { + return l.requestEmitHelper(d.extendsHelper), u.createCallExpression(_("__extends"), void 0, [e, u.createUniqueName("_super", 48)]) + }, + createTemplateObjectHelper: function(e, t) { + return l.requestEmitHelper(d.templateObjectHelper), u.createCallExpression(_("__makeTemplateObject"), void 0, [e, t]) + }, + createSpreadArrayHelper: function(e, t, r) { + return l.requestEmitHelper(d.spreadArrayHelper), u.createCallExpression(_("__spreadArray"), void 0, [e, t, (r ? n : i)()]) + }, + createValuesHelper: function(e) { + return l.requestEmitHelper(d.valuesHelper), u.createCallExpression(_("__values"), void 0, [e]) + }, + createReadHelper: function(e, t) { + return l.requestEmitHelper(d.readHelper), u.createCallExpression(_("__read"), void 0, void 0 !== t ? [e, u.createNumericLiteral(t + "")] : [e]) + }, + createGeneratorHelper: function(e) { + return l.requestEmitHelper(d.generatorHelper), u.createCallExpression(_("__generator"), void 0, [u.createThis(), e]) + }, + createCreateBindingHelper: function(e, t, r) { + return l.requestEmitHelper(d.createBindingHelper), u.createCallExpression(_("__createBinding"), void 0, __spreadArray([u.createIdentifier("exports"), e, t], r ? [r] : [], !0)) + }, + createImportStarHelper: function(e) { + return l.requestEmitHelper(d.importStarHelper), u.createCallExpression(_("__importStar"), void 0, [e]) + }, + createImportStarCallbackHelper: function() { + return l.requestEmitHelper(d.importStarHelper), _("__importStar") + }, + createImportDefaultHelper: function(e) { + return l.requestEmitHelper(d.importDefaultHelper), u.createCallExpression(_("__importDefault"), void 0, [e]) + }, + createExportStarHelper: function(e, t) { + void 0 === t && (t = u.createIdentifier("exports")); + return l.requestEmitHelper(d.exportStarHelper), l.requestEmitHelper(d.createBindingHelper), u.createCallExpression(_("__exportStar"), void 0, [e, t]) + }, + createClassPrivateFieldGetHelper: function(e, t, r, n) { + l.requestEmitHelper(d.classPrivateFieldGetHelper), n = n ? [e, t, u.createStringLiteral(r), n] : [e, t, u.createStringLiteral(r)]; + return u.createCallExpression(_("__classPrivateFieldGet"), void 0, n) + }, + createClassPrivateFieldSetHelper: function(e, t, r, n, i) { + l.requestEmitHelper(d.classPrivateFieldSetHelper), i = i ? [e, t, r, u.createStringLiteral(n), i] : [e, t, r, u.createStringLiteral(n)]; + return u.createCallExpression(_("__classPrivateFieldSet"), void 0, i) + }, + createClassPrivateFieldInHelper: function(e, t) { + return l.requestEmitHelper(d.classPrivateFieldInHelper), u.createCallExpression(_("__classPrivateFieldIn"), void 0, [e, t]) + } + }; + + function _(e) { + return d.setEmitFlags(u.createIdentifier(e), 4098) + } + }, d.compareEmitHelpers = function(e, t) { + return e === t || e.priority === t.priority ? 0 : void 0 === e.priority ? 1 : void 0 === t.priority ? -1 : d.compareValues(e.priority, t.priority) + }, d.helperString = e, d.decorateHelper = { + name: "typescript:decorate", + importName: "__decorate", + scoped: !1, + priority: 2, + text: '\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 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 };' + }, d.metadataHelper = { + name: "typescript:metadata", + importName: "__metadata", + scoped: !1, + priority: 3, + text: '\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };' + }, d.paramHelper = { + name: "typescript:param", + importName: "__param", + scoped: !1, + priority: 4, + text: "\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };" + }, d.assignHelper = { + name: "typescript:assign", + importName: "__assign", + scoped: !1, + priority: 1, + text: "\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };" + }, d.awaitHelper = { + name: "typescript:await", + importName: "__await", + scoped: !1, + text: "\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }" + }, d.asyncGeneratorHelper = { + name: "typescript:asyncGenerator", + importName: "__asyncGenerator", + scoped: !1, + dependencies: [d.awaitHelper], + text: '\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };' + }, d.asyncDelegator = { + name: "typescript:asyncDelegator", + importName: "__asyncDelegator", + scoped: !1, + dependencies: [d.awaitHelper], + text: '\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };' + }, d.asyncValues = { + name: "typescript:asyncValues", + importName: "__asyncValues", + scoped: !1, + text: '\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };' + }, d.restHelper = { + name: "typescript:rest", + importName: "__rest", + scoped: !1, + text: '\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };' + }, d.awaiterHelper = { + name: "typescript:awaiter", + importName: "__awaiter", + scoped: !1, + priority: 5, + text: '\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };' + }, d.extendsHelper = { + name: "typescript:extends", + importName: "__extends", + scoped: !1, + priority: 0, + text: '\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();' + }, d.templateObjectHelper = { + name: "typescript:makeTemplateObject", + importName: "__makeTemplateObject", + scoped: !1, + priority: 0, + text: '\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };' + }, d.readHelper = { + name: "typescript:read", + importName: "__read", + scoped: !1, + text: '\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };' + }, d.spreadArrayHelper = { + name: "typescript:spreadArray", + importName: "__spreadArray", + scoped: !1, + text: "\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };" + }, d.valuesHelper = { + name: "typescript:values", + importName: "__values", + scoped: !1, + text: '\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };' + }, d.generatorHelper = { + name: "typescript:generator", + importName: "__generator", + scoped: !1, + priority: 6, + text: '\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };' + }, d.createBindingHelper = { + name: "typescript:commonjscreatebinding", + importName: "__createBinding", + scoped: !1, + priority: 1, + text: '\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));' + }, d.setModuleDefaultHelper = { + name: "typescript:commonjscreatevalue", + importName: "__setModuleDefault", + scoped: !1, + priority: 1, + text: '\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });' + }, d.importStarHelper = { + name: "typescript:commonjsimportstar", + importName: "__importStar", + scoped: !1, + dependencies: [d.createBindingHelper, d.setModuleDefaultHelper], + priority: 2, + text: '\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };' + }, d.importDefaultHelper = { + name: "typescript:commonjsimportdefault", + importName: "__importDefault", + scoped: !1, + text: '\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };' + }, d.exportStarHelper = { + name: "typescript:export-star", + importName: "__exportStar", + scoped: !1, + dependencies: [d.createBindingHelper], + priority: 2, + text: '\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };' + }, d.classPrivateFieldGetHelper = { + name: "typescript:classPrivateFieldGet", + importName: "__classPrivateFieldGet", + scoped: !1, + text: '\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };' + }, d.classPrivateFieldSetHelper = { + name: "typescript:classPrivateFieldSet", + importName: "__classPrivateFieldSet", + scoped: !1, + text: '\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };' + }, d.classPrivateFieldInHelper = { + name: "typescript:classPrivateFieldIn", + importName: "__classPrivateFieldIn", + scoped: !1, + text: '\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };' + }, d.getAllUnscopedEmitHelpers = function() { + return t = t || d.arrayToMap([d.decorateHelper, d.metadataHelper, d.paramHelper, d.assignHelper, d.awaitHelper, d.asyncGeneratorHelper, d.asyncDelegator, d.asyncValues, d.restHelper, d.awaiterHelper, d.extendsHelper, d.templateObjectHelper, d.spreadArrayHelper, d.valuesHelper, d.readHelper, d.generatorHelper, d.importStarHelper, d.importDefaultHelper, d.exportStarHelper, d.classPrivateFieldGetHelper, d.classPrivateFieldSetHelper, d.classPrivateFieldInHelper, d.createBindingHelper, d.setModuleDefaultHelper], function(e) { + return e.name + }) + }, d.asyncSuperHelper = { + name: "typescript:async-super", + scoped: !0, + text: e(__makeTemplateObject(["\n const ", " = name => super[name];"], ["\n const ", " = name => super[name];"]), "_superIndex") + }, d.advancedAsyncSuperHelper = { + name: "typescript:advanced-async-super", + scoped: !0, + text: e(__makeTemplateObject(["\n const ", " = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"], ["\n const ", " = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]), "_superIndex") + }, d.isCallToHelper = function(e, t) { + return d.isCallExpression(e) && d.isIdentifier(e.expression) && 0 != (4096 & d.getEmitFlags(e.expression)) && e.expression.escapedText === t + } + }(ts = ts || {}), ! function(e) { + e.isNumericLiteral = function(e) { + return 8 === e.kind + }, e.isBigIntLiteral = function(e) { + return 9 === e.kind + }, e.isStringLiteral = function(e) { + return 10 === e.kind + }, e.isJsxText = function(e) { + return 11 === e.kind + }, e.isRegularExpressionLiteral = function(e) { + return 13 === e.kind + }, e.isNoSubstitutionTemplateLiteral = function(e) { + return 14 === e.kind + }, e.isTemplateHead = function(e) { + return 15 === e.kind + }, e.isTemplateMiddle = function(e) { + return 16 === e.kind + }, e.isTemplateTail = function(e) { + return 17 === e.kind + }, e.isDotDotDotToken = function(e) { + return 25 === e.kind + }, e.isCommaToken = function(e) { + return 27 === e.kind + }, e.isPlusToken = function(e) { + return 39 === e.kind + }, e.isMinusToken = function(e) { + return 40 === e.kind + }, e.isAsteriskToken = function(e) { + return 41 === e.kind + }, e.isExclamationToken = function(e) { + return 53 === e.kind + }, e.isQuestionToken = function(e) { + return 57 === e.kind + }, e.isColonToken = function(e) { + return 58 === e.kind + }, e.isQuestionDotToken = function(e) { + return 28 === e.kind + }, e.isEqualsGreaterThanToken = function(e) { + return 38 === e.kind + }, e.isIdentifier = function(e) { + return 79 === e.kind + }, e.isPrivateIdentifier = function(e) { + return 80 === e.kind + }, e.isExportModifier = function(e) { + return 93 === e.kind + }, e.isAsyncModifier = function(e) { + return 132 === e.kind + }, e.isAssertsKeyword = function(e) { + return 129 === e.kind + }, e.isAwaitKeyword = function(e) { + return 133 === e.kind + }, e.isReadonlyKeyword = function(e) { + return 146 === e.kind + }, e.isStaticModifier = function(e) { + return 124 === e.kind + }, e.isAbstractModifier = function(e) { + return 126 === e.kind + }, e.isOverrideModifier = function(e) { + return 161 === e.kind + }, e.isAccessorModifier = function(e) { + return 127 === e.kind + }, e.isSuperKeyword = function(e) { + return 106 === e.kind + }, e.isImportKeyword = function(e) { + return 100 === e.kind + }, e.isQualifiedName = function(e) { + return 163 === e.kind + }, e.isComputedPropertyName = function(e) { + return 164 === e.kind + }, e.isTypeParameterDeclaration = function(e) { + return 165 === e.kind + }, e.isParameter = function(e) { + return 166 === e.kind + }, e.isDecorator = function(e) { + return 167 === e.kind + }, e.isPropertySignature = function(e) { + return 168 === e.kind + }, e.isPropertyDeclaration = function(e) { + return 169 === e.kind + }, e.isMethodSignature = function(e) { + return 170 === e.kind + }, e.isMethodDeclaration = function(e) { + return 171 === e.kind + }, e.isClassStaticBlockDeclaration = function(e) { + return 172 === e.kind + }, e.isConstructorDeclaration = function(e) { + return 173 === e.kind + }, e.isGetAccessorDeclaration = function(e) { + return 174 === e.kind + }, e.isSetAccessorDeclaration = function(e) { + return 175 === e.kind + }, e.isCallSignatureDeclaration = function(e) { + return 176 === e.kind + }, e.isConstructSignatureDeclaration = function(e) { + return 177 === e.kind + }, e.isIndexSignatureDeclaration = function(e) { + return 178 === e.kind + }, e.isTypePredicateNode = function(e) { + return 179 === e.kind + }, e.isTypeReferenceNode = function(e) { + return 180 === e.kind + }, e.isFunctionTypeNode = function(e) { + return 181 === e.kind + }, e.isConstructorTypeNode = function(e) { + return 182 === e.kind + }, e.isTypeQueryNode = function(e) { + return 183 === e.kind + }, e.isTypeLiteralNode = function(e) { + return 184 === e.kind + }, e.isArrayTypeNode = function(e) { + return 185 === e.kind + }, e.isTupleTypeNode = function(e) { + return 186 === e.kind + }, e.isNamedTupleMember = function(e) { + return 199 === e.kind + }, e.isOptionalTypeNode = function(e) { + return 187 === e.kind + }, e.isRestTypeNode = function(e) { + return 188 === e.kind + }, e.isUnionTypeNode = function(e) { + return 189 === e.kind + }, e.isIntersectionTypeNode = function(e) { + return 190 === e.kind + }, e.isConditionalTypeNode = function(e) { + return 191 === e.kind + }, e.isInferTypeNode = function(e) { + return 192 === e.kind + }, e.isParenthesizedTypeNode = function(e) { + return 193 === e.kind + }, e.isThisTypeNode = function(e) { + return 194 === e.kind + }, e.isTypeOperatorNode = function(e) { + return 195 === e.kind + }, e.isIndexedAccessTypeNode = function(e) { + return 196 === e.kind + }, e.isMappedTypeNode = function(e) { + return 197 === e.kind + }, e.isLiteralTypeNode = function(e) { + return 198 === e.kind + }, e.isImportTypeNode = function(e) { + return 202 === e.kind + }, e.isTemplateLiteralTypeSpan = function(e) { + return 201 === e.kind + }, e.isTemplateLiteralTypeNode = function(e) { + return 200 === e.kind + }, e.isObjectBindingPattern = function(e) { + return 203 === e.kind + }, e.isArrayBindingPattern = function(e) { + return 204 === e.kind + }, e.isBindingElement = function(e) { + return 205 === e.kind + }, e.isArrayLiteralExpression = function(e) { + return 206 === e.kind + }, e.isObjectLiteralExpression = function(e) { + return 207 === e.kind + }, e.isPropertyAccessExpression = function(e) { + return 208 === e.kind + }, e.isElementAccessExpression = function(e) { + return 209 === e.kind + }, e.isCallExpression = function(e) { + return 210 === e.kind + }, e.isNewExpression = function(e) { + return 211 === e.kind + }, e.isTaggedTemplateExpression = function(e) { + return 212 === e.kind + }, e.isTypeAssertionExpression = function(e) { + return 213 === e.kind + }, e.isParenthesizedExpression = function(e) { + return 214 === e.kind + }, e.isFunctionExpression = function(e) { + return 215 === e.kind + }, e.isArrowFunction = function(e) { + return 216 === e.kind + }, e.isDeleteExpression = function(e) { + return 217 === e.kind + }, e.isTypeOfExpression = function(e) { + return 218 === e.kind + }, e.isVoidExpression = function(e) { + return 219 === e.kind + }, e.isAwaitExpression = function(e) { + return 220 === e.kind + }, e.isPrefixUnaryExpression = function(e) { + return 221 === e.kind + }, e.isPostfixUnaryExpression = function(e) { + return 222 === e.kind + }, e.isBinaryExpression = function(e) { + return 223 === e.kind + }, e.isConditionalExpression = function(e) { + return 224 === e.kind + }, e.isTemplateExpression = function(e) { + return 225 === e.kind + }, e.isYieldExpression = function(e) { + return 226 === e.kind + }, e.isSpreadElement = function(e) { + return 227 === e.kind + }, e.isClassExpression = function(e) { + return 228 === e.kind + }, e.isOmittedExpression = function(e) { + return 229 === e.kind + }, e.isExpressionWithTypeArguments = function(e) { + return 230 === e.kind + }, e.isAsExpression = function(e) { + return 231 === e.kind + }, e.isSatisfiesExpression = function(e) { + return 235 === e.kind + }, e.isNonNullExpression = function(e) { + return 232 === e.kind + }, e.isMetaProperty = function(e) { + return 233 === e.kind + }, e.isSyntheticExpression = function(e) { + return 234 === e.kind + }, e.isPartiallyEmittedExpression = function(e) { + return 353 === e.kind + }, e.isCommaListExpression = function(e) { + return 354 === e.kind + }, e.isTemplateSpan = function(e) { + return 236 === e.kind + }, e.isSemicolonClassElement = function(e) { + return 237 === e.kind + }, e.isBlock = function(e) { + return 238 === e.kind + }, e.isVariableStatement = function(e) { + return 240 === e.kind + }, e.isEmptyStatement = function(e) { + return 239 === e.kind + }, e.isExpressionStatement = function(e) { + return 241 === e.kind + }, e.isIfStatement = function(e) { + return 242 === e.kind + }, e.isDoStatement = function(e) { + return 243 === e.kind + }, e.isWhileStatement = function(e) { + return 244 === e.kind + }, e.isForStatement = function(e) { + return 245 === e.kind + }, e.isForInStatement = function(e) { + return 246 === e.kind + }, e.isForOfStatement = function(e) { + return 247 === e.kind + }, e.isContinueStatement = function(e) { + return 248 === e.kind + }, e.isBreakStatement = function(e) { + return 249 === e.kind + }, e.isReturnStatement = function(e) { + return 250 === e.kind + }, e.isWithStatement = function(e) { + return 251 === e.kind + }, e.isSwitchStatement = function(e) { + return 252 === e.kind + }, e.isLabeledStatement = function(e) { + return 253 === e.kind + }, e.isThrowStatement = function(e) { + return 254 === e.kind + }, e.isTryStatement = function(e) { + return 255 === e.kind + }, e.isDebuggerStatement = function(e) { + return 256 === e.kind + }, e.isVariableDeclaration = function(e) { + return 257 === e.kind + }, e.isVariableDeclarationList = function(e) { + return 258 === e.kind + }, e.isFunctionDeclaration = function(e) { + return 259 === e.kind + }, e.isClassDeclaration = function(e) { + return 260 === e.kind + }, e.isInterfaceDeclaration = function(e) { + return 261 === e.kind + }, e.isTypeAliasDeclaration = function(e) { + return 262 === e.kind + }, e.isEnumDeclaration = function(e) { + return 263 === e.kind + }, e.isModuleDeclaration = function(e) { + return 264 === e.kind + }, e.isModuleBlock = function(e) { + return 265 === e.kind + }, e.isCaseBlock = function(e) { + return 266 === e.kind + }, e.isNamespaceExportDeclaration = function(e) { + return 267 === e.kind + }, e.isImportEqualsDeclaration = function(e) { + return 268 === e.kind + }, e.isImportDeclaration = function(e) { + return 269 === e.kind + }, e.isImportClause = function(e) { + return 270 === e.kind + }, e.isImportTypeAssertionContainer = function(e) { + return 298 === e.kind + }, e.isAssertClause = function(e) { + return 296 === e.kind + }, e.isAssertEntry = function(e) { + return 297 === e.kind + }, e.isNamespaceImport = function(e) { + return 271 === e.kind + }, e.isNamespaceExport = function(e) { + return 277 === e.kind + }, e.isNamedImports = function(e) { + return 272 === e.kind + }, e.isImportSpecifier = function(e) { + return 273 === e.kind + }, e.isExportAssignment = function(e) { + return 274 === e.kind + }, e.isExportDeclaration = function(e) { + return 275 === e.kind + }, e.isNamedExports = function(e) { + return 276 === e.kind + }, e.isExportSpecifier = function(e) { + return 278 === e.kind + }, e.isMissingDeclaration = function(e) { + return 279 === e.kind + }, e.isNotEmittedStatement = function(e) { + return 352 === e.kind + }, e.isSyntheticReference = function(e) { + return 357 === e.kind + }, e.isMergeDeclarationMarker = function(e) { + return 355 === e.kind + }, e.isEndOfDeclarationMarker = function(e) { + return 356 === e.kind + }, e.isExternalModuleReference = function(e) { + return 280 === e.kind + }, e.isJsxElement = function(e) { + return 281 === e.kind + }, e.isJsxSelfClosingElement = function(e) { + return 282 === e.kind + }, e.isJsxOpeningElement = function(e) { + return 283 === e.kind + }, e.isJsxClosingElement = function(e) { + return 284 === e.kind + }, e.isJsxFragment = function(e) { + return 285 === e.kind + }, e.isJsxOpeningFragment = function(e) { + return 286 === e.kind + }, e.isJsxClosingFragment = function(e) { + return 287 === e.kind + }, e.isJsxAttribute = function(e) { + return 288 === e.kind + }, e.isJsxAttributes = function(e) { + return 289 === e.kind + }, e.isJsxSpreadAttribute = function(e) { + return 290 === e.kind + }, e.isJsxExpression = function(e) { + return 291 === e.kind + }, e.isCaseClause = function(e) { + return 292 === e.kind + }, e.isDefaultClause = function(e) { + return 293 === e.kind + }, e.isHeritageClause = function(e) { + return 294 === e.kind + }, e.isCatchClause = function(e) { + return 295 === e.kind + }, e.isPropertyAssignment = function(e) { + return 299 === e.kind + }, e.isShorthandPropertyAssignment = function(e) { + return 300 === e.kind + }, e.isSpreadAssignment = function(e) { + return 301 === e.kind + }, e.isEnumMember = function(e) { + return 302 === e.kind + }, e.isUnparsedPrepend = function(e) { + return 304 === e.kind + }, e.isSourceFile = function(e) { + return 308 === e.kind + }, e.isBundle = function(e) { + return 309 === e.kind + }, e.isUnparsedSource = function(e) { + return 310 === e.kind + }, e.isJSDocTypeExpression = function(e) { + return 312 === e.kind + }, e.isJSDocNameReference = function(e) { + return 313 === e.kind + }, e.isJSDocMemberName = function(e) { + return 314 === e.kind + }, e.isJSDocLink = function(e) { + return 327 === e.kind + }, e.isJSDocLinkCode = function(e) { + return 328 === e.kind + }, e.isJSDocLinkPlain = function(e) { + return 329 === e.kind + }, e.isJSDocAllType = function(e) { + return 315 === e.kind + }, e.isJSDocUnknownType = function(e) { + return 316 === e.kind + }, e.isJSDocNullableType = function(e) { + return 317 === e.kind + }, e.isJSDocNonNullableType = function(e) { + return 318 === e.kind + }, e.isJSDocOptionalType = function(e) { + return 319 === e.kind + }, e.isJSDocFunctionType = function(e) { + return 320 === e.kind + }, e.isJSDocVariadicType = function(e) { + return 321 === e.kind + }, e.isJSDocNamepathType = function(e) { + return 322 === e.kind + }, e.isJSDoc = function(e) { + return 323 === e.kind + }, e.isJSDocTypeLiteral = function(e) { + return 325 === e.kind + }, e.isJSDocSignature = function(e) { + return 326 === e.kind + }, e.isJSDocAugmentsTag = function(e) { + return 331 === e.kind + }, e.isJSDocAuthorTag = function(e) { + return 333 === e.kind + }, e.isJSDocClassTag = function(e) { + return 335 === e.kind + }, e.isJSDocCallbackTag = function(e) { + return 341 === e.kind + }, e.isJSDocPublicTag = function(e) { + return 336 === e.kind + }, e.isJSDocPrivateTag = function(e) { + return 337 === e.kind + }, e.isJSDocProtectedTag = function(e) { + return 338 === e.kind + }, e.isJSDocReadonlyTag = function(e) { + return 339 === e.kind + }, e.isJSDocOverrideTag = function(e) { + return 340 === e.kind + }, e.isJSDocDeprecatedTag = function(e) { + return 334 === e.kind + }, e.isJSDocSeeTag = function(e) { + return 349 === e.kind + }, e.isJSDocEnumTag = function(e) { + return 342 === e.kind + }, e.isJSDocParameterTag = function(e) { + return 343 === e.kind + }, e.isJSDocReturnTag = function(e) { + return 344 === e.kind + }, e.isJSDocThisTag = function(e) { + return 345 === e.kind + }, e.isJSDocTypeTag = function(e) { + return 346 === e.kind + }, e.isJSDocTemplateTag = function(e) { + return 347 === e.kind + }, e.isJSDocTypedefTag = function(e) { + return 348 === e.kind + }, e.isJSDocUnknownTag = function(e) { + return 330 === e.kind + }, e.isJSDocPropertyTag = function(e) { + return 350 === e.kind + }, e.isJSDocImplementsTag = function(e) { + return 332 === e.kind + }, e.isSyntaxList = function(e) { + return 351 === e.kind + } + }(ts = ts || {}), ! function(f) { + function _(e, t, r, n) { + return f.isComputedPropertyName(r) ? f.setTextRange(e.createElementAccessExpression(t, r.expression), n) : (n = f.setTextRange(f.isMemberName(r) ? e.createPropertyAccessExpression(t, r) : e.createElementAccessExpression(t, r), r), f.getOrCreateEmitNode(n).flags |= 64, n) + } + + function g(e, t) { + e = f.parseNodeFactory.createIdentifier(e || "React"); + return f.setParent(e, f.getParseTreeNode(t)), e + } + + function m(e, t, r) { + var n, i; + return f.isQualifiedName(t) ? (n = m(e, t.left, r), (i = e.createIdentifier(f.idText(t.right))).escapedText = t.right.escapedText, e.createPropertyAccessExpression(n, i)) : g(f.idText(t), r) + } + + function y(e, t, r, n) { + return t ? m(e, t, n) : e.createPropertyAccessExpression(g(r, n), "createElement") + } + + function d(e, t) { + return f.isIdentifier(t) ? e.createStringLiteralFromNode(t) : f.isComputedPropertyName(t) ? f.setParent(f.setTextRange(e.cloneNode(t.expression), t.expression), t.expression.parent) : f.setParent(f.setTextRange(e.cloneNode(t), t), t.parent) + } + + function i(e) { + return f.isStringLiteral(e.expression) && "use strict" === e.expression.text + } + + function r(e) { + return f.isParenthesizedExpression(e) && f.isInJSFile(e) && !!f.getJSDocTypeTag(e) + } + + function n(e, t) { + switch (void 0 === t && (t = 15), e.kind) { + case 214: + return 16 & t && r(e) ? !1 : 0 != (1 & t); + case 213: + case 231: + case 235: + return 0 != (2 & t); + case 232: + return 0 != (4 & t); + case 353: + return 0 != (8 & t) + } + return !1 + } + + function t(e, t) { + for (void 0 === t && (t = 15); n(e, t);) e = e.expression; + return e + } + + function h(e) { + return f.setStartsOnNewLine(e, !0) + } + + function l(e) { + e = f.getOriginalNode(e, f.isSourceFile), e = e && e.emitNode; + return e && e.externalHelpersModuleName + } + + function p(e, t, r, n, i) { + if (r.importHelpers && f.isEffectiveExternalModule(t, r)) { + var a = l(t); + if (a) return a; + var a = f.getEmitModuleKind(r), + o = (n || f.getESModuleInterop(r) && i) && a !== f.ModuleKind.System && (a < f.ModuleKind.ES2015 || t.impliedNodeFormat === f.ModuleKind.CommonJS); + if (!o) { + n = f.getEmitHelpers(t); + if (n) + for (var s = 0, c = n; s < c.length; s++) + if (!c[s].scoped) { + o = !0; + break + } + } + return o ? (r = f.getOriginalNode(t, f.isSourceFile), (i = f.getOrCreateEmitNode(r)).externalHelpersModuleName || (i.externalHelpersModuleName = e.createUniqueName(f.externalHelpersModuleNameText))) : void 0 + } + } + + function s(e, t, r, n) { + if (t) return t.moduleName ? e.createStringLiteral(t.moduleName) : !t.isDeclarationFile && f.outFile(n) ? e.createStringLiteral(f.getExternalModuleNameFromPath(r, t.fileName)) : void 0 + } + + function a(e) { + if (f.isDeclarationBindingElement(e)) return e.name; + if (!f.isObjectLiteralElementLike(e)) return f.isAssignmentExpression(e, !0) ? a(e.left) : f.isSpreadElement(e) ? a(e.expression) : e; + switch (e.kind) { + case 299: + return a(e.initializer); + case 300: + return e.name; + case 301: + return a(e.expression) + } + } + + function o(e) { + switch (e.kind) { + case 205: + if (e.propertyName) return t = e.propertyName, f.isPrivateIdentifier(t) ? f.Debug.failBadSyntaxKind(t) : f.isComputedPropertyName(t) && c(t.expression) ? t.expression : t; + break; + case 299: + var t; + if (e.name) return t = e.name, f.isPrivateIdentifier(t) ? f.Debug.failBadSyntaxKind(t) : f.isComputedPropertyName(t) && c(t.expression) ? t.expression : t; + break; + case 301: + return e.name && f.isPrivateIdentifier(e.name) ? f.Debug.failBadSyntaxKind(e.name) : e.name + } + var r = a(e); + if (r && f.isPropertyName(r)) return r + } + + function c(e) { + e = e.kind; + return 10 === e || 8 === e + } + + function u(e) { + return 60 === (t = e) || 55 === (n = r = t) || 56 === n || 50 === (r = n = r) || 51 === r || 52 === r || 34 === (n = r = n) || 36 === n || 35 === n || 37 === n || 29 === (r = n = r) || 32 === r || 31 === r || 33 === r || 102 === r || 101 === r || 47 === (n = r = n) || 48 === n || 49 === n || 39 === (r = n = r) || 40 === r || 42 === (r = n) || 41 === (r = r) || 43 === r || 44 === r || f.isAssignmentOperator(t) || 27 === e; + var t, r, n + } + var v, e; + + function b(e, t, r, n, i, a, o) { + var s = 0 < t ? i[t - 1] : void 0; + return f.Debug.assertEqual(r[t], b), i[t] = e.onEnter(n[t], s, o), r[t] = E(e, b), t + } + + function x(e, t, r, n, i, a, o) { + f.Debug.assertEqual(r[t], x), f.Debug.assertIsDefined(e.onLeft), r[t] = E(e, x); + e = e.onLeft(n[t].left, i[t], n[t]); + return e ? (N(t, n, e), k(t, r, n, i, e)) : t + } + + function D(e, t, r, n, i, a, o) { + return f.Debug.assertEqual(r[t], D), f.Debug.assertIsDefined(e.onOperator), r[t] = E(e, D), e.onOperator(n[t].operatorToken, i[t], n[t]), t + } + + function S(e, t, r, n, i, a, o) { + f.Debug.assertEqual(r[t], S), f.Debug.assertIsDefined(e.onRight), r[t] = E(e, S); + e = e.onRight(n[t].right, i[t], n[t]); + return e ? (N(t, n, e), k(t, r, n, i, e)) : t + } + + function T(e, t, r, n, i, a, o) { + f.Debug.assertEqual(r[t], T), r[t] = E(e, T); + n = e.onExit(n[t], i[t]); + return 0 < t ? (t--, e.foldState && (r = r[t] === T ? "right" : "left", i[t] = e.foldState(i[t], n, r))) : a.value = n, t + } + + function C(e, t, r, n, i, a, o) { + return f.Debug.assertEqual(r[t], C), t + } + + function E(e, t) { + switch (t) { + case b: + if (e.onLeft) return x; + case x: + if (e.onOperator) return D; + case D: + if (e.onRight) return S; + case S: + return T; + case T: + case C: + return C; + default: + f.Debug.fail("Invalid state") + } + } + + function k(e, t, r, n, i) { + return t[++e] = b, r[e] = i, n[e] = void 0, e + } + + function N(e, t, r) { + if (f.Debug.shouldAssert(2)) + for (; 0 <= e;) f.Debug.assert(t[e] !== r, "Circular traversal detected."), e-- + } + f.createEmptyExports = function(e) { + return e.createExportDeclaration(void 0, !1, e.createNamedExports([]), void 0) + }, f.createMemberAccessForPropertyName = _, f.createJsxFactoryExpression = y, f.createExpressionForJsxElement = function(e, t, r, n, i, a) { + var o = [r]; + if (n && o.push(n), i && 0 < i.length) + if (n || o.push(e.createNull()), 1 < i.length) + for (var s = 0, c = i; s < c.length; s++) { + var l = c[s]; + h(l), o.push(l) + } else o.push(i[0]); + return f.setTextRange(e.createCallExpression(t, void 0, o), a) + }, f.createExpressionForJsxFragment = function(e, t, r, n, i, a, o) { + s = e, c = n, l = a; + var s, c, l, u = [(r = r) ? m(s, r, l) : s.createPropertyAccessExpression(g(c, l), "Fragment"), e.createNull()]; + if (i && 0 < i.length) + if (1 < i.length) + for (var _ = 0, d = i; _ < d.length; _++) { + var p = d[_]; + h(p), u.push(p) + } else u.push(i[0]); + return f.setTextRange(e.createCallExpression(y(e, t, n, a), void 0, u), o) + }, f.createForOfBindingStatement = function(e, t, r) { + var n; + return f.isVariableDeclarationList(t) ? (n = f.first(t.declarations), n = e.updateVariableDeclaration(n, n.name, void 0, void 0, r), f.setTextRange(e.createVariableStatement(void 0, e.updateVariableDeclarationList(t, [n])), t)) : (n = f.setTextRange(e.createAssignment(t, r), t), f.setTextRange(e.createExpressionStatement(n), t)) + }, f.insertLeadingStatement = function(e, t, r) { + return f.isBlock(t) ? e.updateBlock(t, f.setTextRange(e.createNodeArray(__spreadArray([r], t.statements, !0)), t.statements)) : e.createBlock(e.createNodeArray([t, r]), !0) + }, f.createExpressionFromEntityName = function e(t, r) { + var n, i; + return f.isQualifiedName(r) ? (n = e(t, r.left), i = f.setParent(f.setTextRange(t.cloneNode(r.right), r.right), r.right.parent), f.setTextRange(t.createPropertyAccessExpression(n, i), r)) : f.setParent(f.setTextRange(t.cloneNode(r), r), r.parent) + }, f.createExpressionForPropertyName = d, f.createExpressionForObjectLiteralElementLike = function(e, t, r, n) { + switch (r.name && f.isPrivateIdentifier(r.name) && f.Debug.failBadSyntaxKind(r.name, "Private identifiers are not allowed in object literals."), r.kind) { + case 174: + case 175: + var i = e, + a = t.properties, + o = r, + s = n, + c = !!t.multiLine, + l = (a = f.getAllAccessorDeclarations(a, o)).firstAccessor, + u = a.getAccessor, + a = a.setAccessor; + return o === l ? f.setTextRange(i.createObjectDefinePropertyCall(s, d(i, o.name), i.createPropertyDescriptor({ + enumerable: i.createFalse(), + configurable: !0, + get: u && f.setTextRange(f.setOriginalNode(i.createFunctionExpression(f.getModifiers(u), void 0, void 0, void 0, u.parameters, void 0, u.body), u), u), + set: a && f.setTextRange(f.setOriginalNode(i.createFunctionExpression(f.getModifiers(a), void 0, void 0, void 0, a.parameters, void 0, a.body), a), a) + }, !c)), l) : void 0; + case 299: + return s = r, f.setOriginalNode(f.setTextRange(e.createAssignment(_(e, n, s.name, s.name), s.initializer), s), s); + case 300: + return o = e, u = r, f.setOriginalNode(f.setTextRange(o.createAssignment(_(o, n, u.name, u.name), o.cloneNode(u.name)), u), u); + case 171: + return i = e, a = r, f.setOriginalNode(f.setTextRange(i.createAssignment(_(i, n, a.name, a.name), f.setOriginalNode(f.setTextRange(i.createFunctionExpression(f.getModifiers(a), a.asteriskToken, void 0, void 0, a.parameters, void 0, a.body), a), a)), a), a) + } + }, f.expandPreOrPostfixIncrementOrDecrementExpression = function(e, t, r, n, i) { + var a = t.operator, + n = (f.Debug.assert(45 === a || 46 === a, "Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression"), e.createTempVariable(n)), + a = (r = e.createAssignment(n, r), f.setTextRange(r, t.operand), f.isPrefixUnaryExpression(t) ? e.createPrefixUnaryExpression(a, n) : e.createPostfixUnaryExpression(n, a)); + return f.setTextRange(a, t), i && (a = e.createAssignment(i, a), f.setTextRange(a, t)), r = e.createComma(r, a), f.setTextRange(r, t), f.isPostfixUnaryExpression(t) && (r = e.createComma(r, n), f.setTextRange(r, t)), r + }, f.isInternalName = function(e) { + return 0 != (32768 & f.getEmitFlags(e)) + }, f.isLocalName = function(e) { + return 0 != (16384 & f.getEmitFlags(e)) + }, f.isExportName = function(e) { + return 0 != (8192 & f.getEmitFlags(e)) + }, f.findUseStrictPrologue = function(e) { + for (var t = 0, r = e; t < r.length; t++) { + var n = r[t]; + if (!f.isPrologueDirective(n)) break; + if (i(n)) return n + } + }, f.startsWithUseStrict = function(e) { + return void 0 !== (e = f.firstOrUndefined(e)) && f.isPrologueDirective(e) && i(e) + }, f.isCommaSequence = function(e) { + return 223 === e.kind && 27 === e.operatorToken.kind || 354 === e.kind + }, f.isJSDocTypeAssertion = r, f.getJSDocTypeAssertionType = function(e) { + return e = f.getJSDocType(e), f.Debug.assertIsDefined(e), e + }, f.isOuterExpression = n, f.skipOuterExpressions = t, f.skipAssertions = function(e) { + return t(e, 6) + }, f.startOnNewLine = h, f.getExternalHelpersModuleName = l, f.hasRecordedExternalHelpers = function(e) { + return !(!(e = (e = f.getOriginalNode(e, f.isSourceFile)) && e.emitNode) || !e.externalHelpersModuleName && !e.externalHelpers) + }, f.createExternalHelpersImportDeclarationIfNeeded = function(t, r, n, e, i, a, o) { + if (e.importHelpers && f.isEffectiveExternalModule(n, e)) { + var s = void 0, + c = f.getEmitModuleKind(e); + if (c >= f.ModuleKind.ES2015 && c <= f.ModuleKind.ESNext || n.impliedNodeFormat === f.ModuleKind.ESNext) { + c = f.getEmitHelpers(n); + if (c) { + for (var l = [], u = 0, _ = c; u < _.length; u++) { + var d = _[u]; + d.scoped || (d = d.importName) && f.pushIfUnique(l, d) + } + f.some(l) && (l.sort(f.compareStringsCaseSensitive), s = t.createNamedImports(f.map(l, function(e) { + return f.isFileLevelUniqueName(n, e) ? t.createImportSpecifier(!1, void 0, t.createIdentifier(e)) : t.createImportSpecifier(!1, t.createIdentifier(e), r.getUnscopedHelperName(e)) + })), c = f.getOriginalNode(n, f.isSourceFile), f.getOrCreateEmitNode(c).externalHelpers = !0) + } + } else { + c = p(t, n, e, i, a || o); + c && (s = t.createNamespaceImport(c)) + } + if (s) return e = t.createImportDeclaration(void 0, t.createImportClause(!1, void 0, s), t.createStringLiteral(f.externalHelpersModuleNameText), void 0), f.addEmitFlags(e, 67108864), e + } + }, f.getOrCreateExternalHelpersModuleNameIfNeeded = p, f.getLocalNameForExternalImport = function(e, t, r) { + var n = f.getNamespaceDeclarationNode(t); + return !n || f.isDefaultImport(t) || f.isExportNamespaceAsDefaultDeclaration(t) ? 269 === t.kind && t.importClause || 275 === t.kind && t.moduleSpecifier ? e.getGeneratedNameForNode(t) : void 0 : (t = n.name, f.isGeneratedIdentifier(t) ? t : e.createIdentifier(f.getSourceTextOfNodeFromSourceFile(r, t) || f.idText(t))) + }, f.getExternalModuleNameLiteral = function(e, t, r, n, i, a) { + var o = f.getExternalModuleName(t); + if (o && f.isStringLiteral(o)) return n = n, a = a, s(e, i.getExternalModuleFileFromDeclaration(t), n, a) || function(e, t, r) { + r = r.renamedDependencies && r.renamedDependencies.get(t.text); + return r ? e.createStringLiteral(r) : void 0 + }(e, o, r) || e.cloneNode(o) + }, f.tryGetModuleNameFromFile = s, f.getInitializerOfBindingOrAssignmentElement = function e(t) { + var r; + return f.isDeclarationBindingElement(t) ? t.initializer : f.isPropertyAssignment(t) ? (r = t.initializer, f.isAssignmentExpression(r, !0) ? r.right : void 0) : f.isShorthandPropertyAssignment(t) ? t.objectAssignmentInitializer : f.isAssignmentExpression(t, !0) ? t.right : f.isSpreadElement(t) ? e(t.expression) : void 0 + }, f.getTargetOfBindingOrAssignmentElement = a, f.getRestIndicatorOfBindingOrAssignmentElement = function(e) { + switch (e.kind) { + case 166: + case 205: + return e.dotDotDotToken; + case 227: + case 301: + return e + } + }, f.getPropertyNameOfBindingOrAssignmentElement = function(e) { + var t = o(e); + return f.Debug.assert(!!t || f.isSpreadAssignment(e), "Invalid property name for binding element."), t + }, f.tryGetPropertyNameOfBindingOrAssignmentElement = o, f.getElementsOfBindingOrAssignmentPattern = function(e) { + switch (e.kind) { + case 203: + case 204: + case 206: + return e.elements; + case 207: + return e.properties + } + }, f.getJSDocTypeAliasName = function(e) { + if (e) + for (var t = e;;) { + if (f.isIdentifier(t) || !t.body) return f.isIdentifier(t) ? t : t.name; + t = t.body + } + }, f.canHaveIllegalType = function(e) { + return 173 === (e = e.kind) || 175 === e + }, f.canHaveIllegalTypeParameters = function(e) { + return 173 === (e = e.kind) || 174 === e || 175 === e + }, f.canHaveIllegalDecorators = function(e) { + return 299 === (e = e.kind) || 300 === e || 259 === e || 173 === e || 178 === e || 172 === e || 279 === e || 240 === e || 261 === e || 262 === e || 263 === e || 264 === e || 268 === e || 269 === e || 267 === e || 275 === e || 274 === e + }, f.canHaveIllegalModifiers = function(e) { + return 172 === (e = e.kind) || 299 === e || 300 === e || 181 === e || 279 === e || 267 === e + }, f.isTypeNodeOrTypeParameterDeclaration = f.or(f.isTypeNode, f.isTypeParameterDeclaration), f.isQuestionOrExclamationToken = f.or(f.isQuestionToken, f.isExclamationToken), f.isIdentifierOrThisTypeNode = f.or(f.isIdentifier, f.isThisTypeNode), f.isReadonlyKeywordOrPlusOrMinusToken = f.or(f.isReadonlyKeyword, f.isPlusToken, f.isMinusToken), f.isQuestionOrPlusOrMinusToken = f.or(f.isQuestionToken, f.isPlusToken, f.isMinusToken), f.isModuleName = f.or(f.isIdentifier, f.isStringLiteral), f.isLiteralTypeLikeExpression = function(e) { + var t = e.kind; + return 104 === t || 110 === t || 95 === t || f.isLiteralExpression(e) || f.isPrefixUnaryExpression(e) + }, f.isBinaryOperatorToken = function(e) { + return u(e.kind) + }, (e = v = v || {}).enter = b, e.left = x, e.operator = D, e.right = S, e.exit = T, e.done = C, e.nextState = E; + var A = function(e, t, r, n, i, a) { + this.onEnter = e, this.onLeft = t, this.onOperator = r, this.onRight = n, this.onExit = i, this.foldState = a + }; + + function F(e, t) { + return "object" == typeof e ? w(!1, e.prefix, e.node, e.suffix, t) : "string" == typeof e ? 0 < e.length && 35 === e.charCodeAt(0) ? e.slice(1) : e : "" + } + + function P(e, t) { + return "string" == typeof e ? e : (e = e, t = f.Debug.checkDefined(t), f.isGeneratedPrivateIdentifier(e) ? t(e).slice(1) : f.isGeneratedIdentifier(e) ? t(e) : f.isPrivateIdentifier(e) ? e.escapedText.slice(1) : f.idText(e)) + } + + function w(e, t, r, n, i) { + return t = F(t, i), n = F(n, i), r = P(r, i), "".concat(e ? "#" : "").concat(t).concat(r).concat(n) + } + f.createBinaryExpressionTrampoline = function(e, t, r, n, i, a) { + var s = new A(e, t, r, n, i, a); + return function(e, t) { + var r = { + value: void 0 + }, + n = [v.enter], + i = [e], + a = [void 0], + o = 0; + for (; n[o] !== v.done;) o = n[o](s, o, n, i, a, r, t); + return f.Debug.assertEqual(o, 0), r.value + } + }, f.elideNodes = function(e, t) { + if (void 0 !== t) return 0 === t.length ? t : f.setTextRange(e.createNodeArray([], t.hasTrailingComma), t) + }, f.getNodeForGeneratedName = function(e) { + if (4 & e.autoGenerateFlags) { + for (var t = e.autoGenerateId, r = e, n = r.original; n && (r = n, !(f.isMemberName(r) && 4 & r.autoGenerateFlags && r.autoGenerateId !== t));) n = r.original; + return r + } + return e + }, f.formatGeneratedNamePart = F, f.formatGeneratedName = w, f.createAccessorPropertyBackingField = function(e, t, r, n) { + return e.updatePropertyDeclaration(t, r, e.getGeneratedPrivateNameForNode(t.name, void 0, "_accessor_storage"), void 0, void 0, n) + }, f.createAccessorPropertyGetRedirector = function(e, t, r, n) { + return e.createGetAccessorDeclaration(r, n, [], void 0, e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(e.createThis(), e.getGeneratedPrivateNameForNode(t.name, void 0, "_accessor_storage")))])) + }, f.createAccessorPropertySetRedirector = function(e, t, r, n) { + return e.createSetAccessorDeclaration(r, n, [e.createParameterDeclaration(void 0, void 0, "value")], e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(e.createThis(), e.getGeneratedPrivateNameForNode(t.name, void 0, "_accessor_storage")), e.createIdentifier("value")))])) + } + }(ts = ts || {}), ! function(r) { + r.setTextRange = function(e, t) { + return t ? r.setTextRangePosEnd(e, t.pos, t.end) : e + }, r.canHaveModifiers = function(e) { + return 165 === (e = e.kind) || 166 === e || 168 === e || 169 === e || 170 === e || 171 === e || 173 === e || 174 === e || 175 === e || 178 === e || 182 === e || 215 === e || 216 === e || 228 === e || 240 === e || 259 === e || 260 === e || 261 === e || 262 === e || 263 === e || 264 === e || 268 === e || 269 === e || 274 === e || 275 === e + }, r.canHaveDecorators = function(e) { + return 166 === (e = e.kind) || 169 === e || 171 === e || 174 === e || 175 === e || 228 === e || 260 === e + } + }(ts = ts || {}), ! function(G) { + var t, r, a, o, s; + + function n(e, t) { + return t && e(t) + } + + function i(e, t, r) { + if (r) { + if (t) return t(r); + for (var n = 0, i = r; n < i.length; n++) { + var a = e(i[n]); + if (a) return a + } + } + } + + function de(e, t) { + return 42 === e.charCodeAt(t + 1) && 42 === e.charCodeAt(t + 2) && 47 !== e.charCodeAt(t + 3) + } + + function c(e) { + return G.forEach(e.statements, u) || (4194304 & (e = e).flags ? f(e) : void 0) + } + + function u(e) { + return G.canHaveModifiers(e) && (t = 93, G.some(e.modifiers, function(e) { + return e.kind === t + })) || G.isImportEqualsDeclaration(e) && G.isExternalModuleReference(e.moduleReference) || G.isImportDeclaration(e) || G.isExportAssignment(e) || G.isExportDeclaration(e) ? e : void 0; + var t + } + + function f(e) { + return t = e, G.isMetaProperty(t) && 100 === t.keywordToken && "meta" === t.name.escapedText ? e : Ie(e, f); + var t + } + G.parseBaseNodeFactory = { + createBaseSourceFileNode: function(e) { + return new(s = s || G.objectAllocator.getSourceFileConstructor())(e, -1, -1) + }, + createBaseIdentifierNode: function(e) { + return new(a = a || G.objectAllocator.getIdentifierConstructor())(e, -1, -1) + }, + createBasePrivateIdentifierNode: function(e) { + return new(o = o || G.objectAllocator.getPrivateIdentifierConstructor())(e, -1, -1) + }, + createBaseTokenNode: function(e) { + return new(r = r || G.objectAllocator.getTokenConstructor())(e, -1, -1) + }, + createBaseNode: function(e) { + return new(t = t || G.objectAllocator.getNodeConstructor())(e, -1, -1) + } + }, G.parseNodeFactory = G.createNodeFactory(1, G.parseBaseNodeFactory), G.isJSDocLikeText = de, G.isFileProbablyExternalModule = c; + (e = {})[163] = function(e, t, r) { + return n(t, e.left) || n(t, e.right) + }, e[165] = function(e, t, r) { + return i(t, r, e.modifiers) || n(t, e.name) || n(t, e.constraint) || n(t, e.default) || n(t, e.expression) + }, e[300] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || i(t, r, e.modifiers) || n(t, e.name) || n(t, e.questionToken) || n(t, e.exclamationToken) || n(t, e.equalsToken) || n(t, e.objectAssignmentInitializer) + }, e[301] = function(e, t, r) { + return n(t, e.expression) + }, e[166] = function(e, t, r) { + return i(t, r, e.modifiers) || n(t, e.dotDotDotToken) || n(t, e.name) || n(t, e.questionToken) || n(t, e.type) || n(t, e.initializer) + }, e[169] = function(e, t, r) { + return i(t, r, e.modifiers) || n(t, e.name) || n(t, e.questionToken) || n(t, e.exclamationToken) || n(t, e.type) || n(t, e.initializer) + }, e[168] = function(e, t, r) { + return i(t, r, e.modifiers) || n(t, e.name) || n(t, e.questionToken) || n(t, e.type) || n(t, e.initializer) + }, e[299] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || i(t, r, e.modifiers) || n(t, e.name) || n(t, e.questionToken) || n(t, e.exclamationToken) || n(t, e.initializer) + }, e[257] = function(e, t, r) { + return n(t, e.name) || n(t, e.exclamationToken) || n(t, e.type) || n(t, e.initializer) + }, e[205] = function(e, t, r) { + return n(t, e.dotDotDotToken) || n(t, e.propertyName) || n(t, e.name) || n(t, e.initializer) + }, e[178] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || i(t, r, e.modifiers) || i(t, r, e.typeParameters) || i(t, r, e.parameters) || n(t, e.type) + }, e[182] = function(e, t, r) { + return i(t, r, e.modifiers) || i(t, r, e.typeParameters) || i(t, r, e.parameters) || n(t, e.type) + }, e[181] = function(e, t, r) { + return i(t, r, e.modifiers) || i(t, r, e.typeParameters) || i(t, r, e.parameters) || n(t, e.type) + }, e[176] = ye, e[177] = ye, e[171] = function(e, t, r) { + return i(t, r, e.modifiers) || n(t, e.asteriskToken) || n(t, e.name) || n(t, e.questionToken) || n(t, e.exclamationToken) || i(t, r, e.typeParameters) || i(t, r, e.parameters) || n(t, e.type) || n(t, e.body) + }, e[170] = function(e, t, r) { + return i(t, r, e.modifiers) || n(t, e.name) || n(t, e.questionToken) || i(t, r, e.typeParameters) || i(t, r, e.parameters) || n(t, e.type) + }, e[173] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || i(t, r, e.modifiers) || n(t, e.name) || i(t, r, e.typeParameters) || i(t, r, e.parameters) || n(t, e.type) || n(t, e.body) + }, e[174] = function(e, t, r) { + return i(t, r, e.modifiers) || n(t, e.name) || i(t, r, e.typeParameters) || i(t, r, e.parameters) || n(t, e.type) || n(t, e.body) + }, e[175] = function(e, t, r) { + return i(t, r, e.modifiers) || n(t, e.name) || i(t, r, e.typeParameters) || i(t, r, e.parameters) || n(t, e.type) || n(t, e.body) + }, e[259] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || i(t, r, e.modifiers) || n(t, e.asteriskToken) || n(t, e.name) || i(t, r, e.typeParameters) || i(t, r, e.parameters) || n(t, e.type) || n(t, e.body) + }, e[215] = function(e, t, r) { + return i(t, r, e.modifiers) || n(t, e.asteriskToken) || n(t, e.name) || i(t, r, e.typeParameters) || i(t, r, e.parameters) || n(t, e.type) || n(t, e.body) + }, e[216] = function(e, t, r) { + return i(t, r, e.modifiers) || i(t, r, e.typeParameters) || i(t, r, e.parameters) || n(t, e.type) || n(t, e.equalsGreaterThanToken) || n(t, e.body) + }, e[172] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || i(t, r, e.modifiers) || n(t, e.body) + }, e[180] = function(e, t, r) { + return n(t, e.typeName) || i(t, r, e.typeArguments) + }, e[179] = function(e, t, r) { + return n(t, e.assertsModifier) || n(t, e.parameterName) || n(t, e.type) + }, e[183] = function(e, t, r) { + return n(t, e.exprName) || i(t, r, e.typeArguments) + }, e[184] = function(e, t, r) { + return i(t, r, e.members) + }, e[185] = function(e, t, r) { + return n(t, e.elementType) + }, e[186] = function(e, t, r) { + return i(t, r, e.elements) + }, e[189] = he, e[190] = he, e[191] = function(e, t, r) { + return n(t, e.checkType) || n(t, e.extendsType) || n(t, e.trueType) || n(t, e.falseType) + }, e[192] = function(e, t, r) { + return n(t, e.typeParameter) + }, e[202] = function(e, t, r) { + return n(t, e.argument) || n(t, e.assertions) || n(t, e.qualifier) || i(t, r, e.typeArguments) + }, e[298] = function(e, t, r) { + return n(t, e.assertClause) + }, e[193] = ve, e[195] = ve, e[196] = function(e, t, r) { + return n(t, e.objectType) || n(t, e.indexType) + }, e[197] = function(e, t, r) { + return n(t, e.readonlyToken) || n(t, e.typeParameter) || n(t, e.nameType) || n(t, e.questionToken) || n(t, e.type) || i(t, r, e.members) + }, e[198] = function(e, t, r) { + return n(t, e.literal) + }, e[199] = function(e, t, r) { + return n(t, e.dotDotDotToken) || n(t, e.name) || n(t, e.questionToken) || n(t, e.type) + }, e[203] = be, e[204] = be, e[206] = function(e, t, r) { + return i(t, r, e.elements) + }, e[207] = function(e, t, r) { + return i(t, r, e.properties) + }, e[208] = function(e, t, r) { + return n(t, e.expression) || n(t, e.questionDotToken) || n(t, e.name) + }, e[209] = function(e, t, r) { + return n(t, e.expression) || n(t, e.questionDotToken) || n(t, e.argumentExpression) + }, e[210] = xe, e[211] = xe, e[212] = function(e, t, r) { + return n(t, e.tag) || n(t, e.questionDotToken) || i(t, r, e.typeArguments) || n(t, e.template) + }, e[213] = function(e, t, r) { + return n(t, e.type) || n(t, e.expression) + }, e[214] = function(e, t, r) { + return n(t, e.expression) + }, e[217] = function(e, t, r) { + return n(t, e.expression) + }, e[218] = function(e, t, r) { + return n(t, e.expression) + }, e[219] = function(e, t, r) { + return n(t, e.expression) + }, e[221] = function(e, t, r) { + return n(t, e.operand) + }, e[226] = function(e, t, r) { + return n(t, e.asteriskToken) || n(t, e.expression) + }, e[220] = function(e, t, r) { + return n(t, e.expression) + }, e[222] = function(e, t, r) { + return n(t, e.operand) + }, e[223] = function(e, t, r) { + return n(t, e.left) || n(t, e.operatorToken) || n(t, e.right) + }, e[231] = function(e, t, r) { + return n(t, e.expression) || n(t, e.type) + }, e[232] = function(e, t, r) { + return n(t, e.expression) + }, e[235] = function(e, t, r) { + return n(t, e.expression) || n(t, e.type) + }, e[233] = function(e, t, r) { + return n(t, e.name) + }, e[224] = function(e, t, r) { + return n(t, e.condition) || n(t, e.questionToken) || n(t, e.whenTrue) || n(t, e.colonToken) || n(t, e.whenFalse) + }, e[227] = function(e, t, r) { + return n(t, e.expression) + }, e[238] = De, e[265] = De, e[308] = function(e, t, r) { + return i(t, r, e.statements) || n(t, e.endOfFileToken) + }, e[240] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || i(t, r, e.modifiers) || n(t, e.declarationList) + }, e[258] = function(e, t, r) { + return i(t, r, e.declarations) + }, e[241] = function(e, t, r) { + return n(t, e.expression) + }, e[242] = function(e, t, r) { + return n(t, e.expression) || n(t, e.thenStatement) || n(t, e.elseStatement) + }, e[243] = function(e, t, r) { + return n(t, e.statement) || n(t, e.expression) + }, e[244] = function(e, t, r) { + return n(t, e.expression) || n(t, e.statement) + }, e[245] = function(e, t, r) { + return n(t, e.initializer) || n(t, e.condition) || n(t, e.incrementor) || n(t, e.statement) + }, e[246] = function(e, t, r) { + return n(t, e.initializer) || n(t, e.expression) || n(t, e.statement) + }, e[247] = function(e, t, r) { + return n(t, e.awaitModifier) || n(t, e.initializer) || n(t, e.expression) || n(t, e.statement) + }, e[248] = Se, e[249] = Se, e[250] = function(e, t, r) { + return n(t, e.expression) + }, e[251] = function(e, t, r) { + return n(t, e.expression) || n(t, e.statement) + }, e[252] = function(e, t, r) { + return n(t, e.expression) || n(t, e.caseBlock) + }, e[266] = function(e, t, r) { + return i(t, r, e.clauses) + }, e[292] = function(e, t, r) { + return n(t, e.expression) || i(t, r, e.statements) + }, e[293] = function(e, t, r) { + return i(t, r, e.statements) + }, e[253] = function(e, t, r) { + return n(t, e.label) || n(t, e.statement) + }, e[254] = function(e, t, r) { + return n(t, e.expression) + }, e[255] = function(e, t, r) { + return n(t, e.tryBlock) || n(t, e.catchClause) || n(t, e.finallyBlock) + }, e[295] = function(e, t, r) { + return n(t, e.variableDeclaration) || n(t, e.block) + }, e[167] = function(e, t, r) { + return n(t, e.expression) + }, e[260] = Te, e[228] = Te, e[261] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || i(t, r, e.modifiers) || n(t, e.name) || i(t, r, e.typeParameters) || i(t, r, e.heritageClauses) || i(t, r, e.members) + }, e[262] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || i(t, r, e.modifiers) || n(t, e.name) || i(t, r, e.typeParameters) || n(t, e.type) + }, e[263] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || i(t, r, e.modifiers) || n(t, e.name) || i(t, r, e.members) + }, e[302] = function(e, t, r) { + return n(t, e.name) || n(t, e.initializer) + }, e[264] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || i(t, r, e.modifiers) || n(t, e.name) || n(t, e.body) + }, e[268] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || i(t, r, e.modifiers) || n(t, e.name) || n(t, e.moduleReference) + }, e[269] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || i(t, r, e.modifiers) || n(t, e.importClause) || n(t, e.moduleSpecifier) || n(t, e.assertClause) + }, e[270] = function(e, t, r) { + return n(t, e.name) || n(t, e.namedBindings) + }, e[296] = function(e, t, r) { + return i(t, r, e.elements) + }, e[297] = function(e, t, r) { + return n(t, e.name) || n(t, e.value) + }, e[267] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || n(t, e.name) + }, e[271] = function(e, t, r) { + return n(t, e.name) + }, e[277] = function(e, t, r) { + return n(t, e.name) + }, e[272] = Ce, e[276] = Ce, e[275] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || i(t, r, e.modifiers) || n(t, e.exportClause) || n(t, e.moduleSpecifier) || n(t, e.assertClause) + }, e[273] = Ee, e[278] = Ee, e[274] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || i(t, r, e.modifiers) || n(t, e.expression) + }, e[225] = function(e, t, r) { + return n(t, e.head) || i(t, r, e.templateSpans) + }, e[236] = function(e, t, r) { + return n(t, e.expression) || n(t, e.literal) + }, e[200] = function(e, t, r) { + return n(t, e.head) || i(t, r, e.templateSpans) + }, e[201] = function(e, t, r) { + return n(t, e.type) || n(t, e.literal) + }, e[164] = function(e, t, r) { + return n(t, e.expression) + }, e[294] = function(e, t, r) { + return i(t, r, e.types) + }, e[230] = function(e, t, r) { + return n(t, e.expression) || i(t, r, e.typeArguments) + }, e[280] = function(e, t, r) { + return n(t, e.expression) + }, e[279] = function(e, t, r) { + return i(t, r, e.illegalDecorators) || i(t, r, e.modifiers) + }, e[354] = function(e, t, r) { + return i(t, r, e.elements) + }, e[281] = function(e, t, r) { + return n(t, e.openingElement) || i(t, r, e.children) || n(t, e.closingElement) + }, e[285] = function(e, t, r) { + return n(t, e.openingFragment) || i(t, r, e.children) || n(t, e.closingFragment) + }, e[282] = ke, e[283] = ke, e[289] = function(e, t, r) { + return i(t, r, e.properties) + }, e[288] = function(e, t, r) { + return n(t, e.name) || n(t, e.initializer) + }, e[290] = function(e, t, r) { + return n(t, e.expression) + }, e[291] = function(e, t, r) { + return n(t, e.dotDotDotToken) || n(t, e.expression) + }, e[284] = function(e, t, r) { + return n(t, e.tagName) + }, e[187] = Ne, e[188] = Ne, e[312] = Ne, e[318] = Ne, e[317] = Ne, e[319] = Ne, e[321] = Ne, e[320] = function(e, t, r) { + return i(t, r, e.parameters) || n(t, e.type) + }, e[323] = function(e, t, r) { + return ("string" == typeof e.comment ? void 0 : i(t, r, e.comment)) || i(t, r, e.tags) + }, e[349] = function(e, t, r) { + return n(t, e.tagName) || n(t, e.name) || ("string" == typeof e.comment ? void 0 : i(t, r, e.comment)) + }, e[313] = function(e, t, r) { + return n(t, e.name) + }, e[314] = function(e, t, r) { + return n(t, e.left) || n(t, e.right) + }, e[343] = Ae, e[350] = Ae, e[333] = function(e, t, r) { + return n(t, e.tagName) || ("string" == typeof e.comment ? void 0 : i(t, r, e.comment)) + }, e[332] = function(e, t, r) { + return n(t, e.tagName) || n(t, e.class) || ("string" == typeof e.comment ? void 0 : i(t, r, e.comment)) + }, e[331] = function(e, t, r) { + return n(t, e.tagName) || n(t, e.class) || ("string" == typeof e.comment ? void 0 : i(t, r, e.comment)) + }, e[347] = function(e, t, r) { + return n(t, e.tagName) || n(t, e.constraint) || i(t, r, e.typeParameters) || ("string" == typeof e.comment ? void 0 : i(t, r, e.comment)) + }, e[348] = function(e, t, r) { + return n(t, e.tagName) || (e.typeExpression && 312 === e.typeExpression.kind ? n(t, e.typeExpression) || n(t, e.fullName) || ("string" == typeof e.comment ? void 0 : i(t, r, e.comment)) : n(t, e.fullName) || n(t, e.typeExpression) || ("string" == typeof e.comment ? void 0 : i(t, r, e.comment))) + }, e[341] = function(e, t, r) { + return n(t, e.tagName) || n(t, e.fullName) || n(t, e.typeExpression) || ("string" == typeof e.comment ? void 0 : i(t, r, e.comment)) + }, e[344] = Fe, e[346] = Fe, e[345] = Fe, e[342] = Fe, e[326] = function(e, t, r) { + return G.forEach(e.typeParameters, t) || G.forEach(e.parameters, t) || n(t, e.type) + }, e[327] = Pe, e[328] = Pe, e[329] = Pe, e[325] = function(e, t, r) { + return G.forEach(e.jsDocPropertyTags, t) + }, e[330] = we, e[335] = we, e[336] = we, e[337] = we, e[338] = we, e[339] = we, e[334] = we, e[340] = we, e[353] = function(e, t, r) { + return n(t, e.expression) + }; + var y, g, m, h, v, b, Q, E, pe, k, S, N, A, F, d, P, w, X, I, O, M, fe, l, L, p, Y, R, B, ge, j, J, z, e, me = e; + + function ye(e, t, r) { + return i(t, r, e.typeParameters) || i(t, r, e.parameters) || n(t, e.type) + } + + function he(e, t, r) { + return i(t, r, e.types) + } + + function ve(e, t, r) { + return n(t, e.type) + } + + function be(e, t, r) { + return i(t, r, e.elements) + } + + function xe(e, t, r) { + return n(t, e.expression) || n(t, e.questionDotToken) || i(t, r, e.typeArguments) || i(t, r, e.arguments) + } + + function De(e, t, r) { + return i(t, r, e.statements) + } + + function Se(e, t, r) { + return n(t, e.label) + } + + function Te(e, t, r) { + return i(t, r, e.modifiers) || n(t, e.name) || i(t, r, e.typeParameters) || i(t, r, e.heritageClauses) || i(t, r, e.members) + } + + function Ce(e, t, r) { + return i(t, r, e.elements) + } + + function Ee(e, t, r) { + return n(t, e.propertyName) || n(t, e.name) + } + + function ke(e, t, r) { + return n(t, e.tagName) || i(t, r, e.typeArguments) || n(t, e.attributes) + } + + function Ne(e, t, r) { + return n(t, e.type) + } + + function Ae(e, t, r) { + return n(t, e.tagName) || (e.isNameFirst ? n(t, e.name) || n(t, e.typeExpression) : n(t, e.typeExpression) || n(t, e.name)) || ("string" == typeof e.comment ? void 0 : i(t, r, e.comment)) + } + + function Fe(e, t, r) { + return n(t, e.tagName) || n(t, e.typeExpression) || ("string" == typeof e.comment ? void 0 : i(t, r, e.comment)) + } + + function Pe(e, t, r) { + return n(t, e.name) + } + + function we(e, t, r) { + return n(t, e.tagName) || ("string" == typeof e.comment ? void 0 : i(t, r, e.comment)) + } + + function Ie(e, t, r) { + var n; + return void 0 === e || e.kind <= 162 || void 0 === (n = me[e.kind]) ? void 0 : n(e, t, r) + } + + function Oe(e) { + var t = []; + return Ie(e, r, r), t; + + function r(e) { + t.unshift(e) + } + } + + function Me(e) { + e.externalModuleIndicator = c(e) + } + + function Le(e) { + return void 0 !== e.externalModuleIndicator + } + + function Re(e) { + return I++, e + } + + function Be(e, t, r, n, i) { + void 0 === i && (i = !1), je(e, t, r = void 0 === r ? 2 : r, n, 6), k = p, te(); + var a, o, t = ee(); + if (1 === X) a = W([], t, t), o = _(); + else { + for (var s = void 0; 1 !== X;) { + var c = void 0; + switch (X) { + case 22: + c = Yn(); + break; + case 110: + case 95: + case 104: + c = _(); + break; + case 40: + c = (re(function() { + return 8 === te() && 58 !== te() + }) ? Nn : $n)(); + break; + case 8: + case 10: + if (re(function() { + return 58 !== te() + })) { + c = dr(); + break + } + default: + c = $n() + } + s && G.isArray(s) ? s.push(c) : s ? s = [s, c] : (s = c, 1 !== X && K(G.Diagnostics.Unexpected_token)) + } + r = G.isArray(s) ? se(Y.createArrayLiteralExpression(s), t) : G.Debug.checkDefined(s), n = Y.createExpressionStatement(r); + se(n, t), a = W([n], t), o = Tt(1, G.Diagnostics.Unexpected_token) + } + r = Ve(e, 2, 6, !1, a, o, k, G.noop), i && Ke(r), r.nodeCount = I, r.identifierCount = fe, r.identifiers = O, r.parseDiagnostics = G.attachFileToDiagnostics(d, r), P && (r.jsDocDiagnostics = G.attachFileToDiagnostics(P, r)), n = r; + return Je(), n + } + + function je(e, t, r, n, i) { + switch (g = G.objectAllocator.getNodeConstructor(), m = G.objectAllocator.getTokenConstructor(), h = G.objectAllocator.getIdentifierConstructor(), v = G.objectAllocator.getPrivateIdentifierConstructor(), b = G.objectAllocator.getSourceFileConstructor(), pe = G.normalizePath(e), S = t, N = r, w = n, A = i, F = G.getLanguageVariant(i), d = [], l = 0, O = new G.Map, M = new G.Map, R = !(k = I = fe = 0), A) { + case 1: + case 2: + p = 262144; + break; + case 6: + p = 67371008; + break; + default: + p = 0 + } + B = !1, Q.setText(S), Q.setOnError(ct), Q.setScriptTarget(N), Q.setLanguageVariant(F) + } + + function Je() { + Q.clearCommentDirectives(), Q.setText(""), Q.setOnError(void 0), F = A = w = N = S = void 0, P = d = void(k = 0), R = !(L = O = void(l = 0)) + } + + function Z(e, t) { + return t ? ze(e) : e + } + + function ze(t) { + G.Debug.assert(!t.jsDoc); + var e = G.mapDefined(G.getJSDocCommentRanges(t, S), function(e) { + return j.parseJSDocComment(t, e.pos, e.end - e.pos) + }); + return e.length && (t.jsDoc = e), ge && (ge = !1, t.flags |= 268435456), t + } + + function Ue(i) { + for (var t, e, r = w, n = z.createSyntaxCursor(i), a = (w = { + currentNode: function(e) { + e = n.currentNode(e); + R && e && l(e) && (e.intersectsChange = !0); + return e + } + }, []), o = d, s = (d = [], 0), c = u(i.statements, 0); - 1 !== c;) ! function() { + var t = i.statements[s], + n = i.statements[c], + e = (G.addRange(a, i.statements, s, c), s = _(i.statements, c), G.findIndex(o, function(e) { + return e.start >= t.pos + })), + r = 0 <= e ? G.findIndex(o, function(e) { + return e.start >= n.pos + }, e) : -1; + 0 <= e && G.addRange(d, o, e, 0 <= r ? r : void 0), yt(function() { + var e = p; + for (p |= 32768, Q.setTextPos(n.pos), te(); 1 !== X;) { + var t = Q.getStartPos(), + r = $t(0, C); + if (a.push(r), t === Q.getStartPos() && te(), 0 <= s) { + t = i.statements[s]; + if (r.end === t.pos) break; + r.end > t.pos && (s = _(i.statements, s + 1)) + } + } + p = e + }, 2), c = 0 <= s ? u(i.statements, s) : -1 + }(); + return 0 <= s && (t = i.statements[s], G.addRange(a, i.statements, s), 0 <= (e = G.findIndex(o, function(e) { + return e.start >= t.pos + }))) && G.addRange(d, o, e), w = r, Y.updateSourceFile(i, G.setTextRange(Y.createNodeArray(a), i.statements)); + + function l(e) { + return !(32768 & e.flags) && 67108864 & e.transformFlags + } + + function u(e, t) { + for (var r = t; r < e.length; r++) + if (l(e[r])) return r; + return -1 + } + + function _(e, t) { + for (var r = t; r < e.length; r++) + if (!l(e[r])) return r; + return -1 + } + } + + function Ke(e) { + G.setParentRecursive(e, !0) + } + + function Ve(t, r, n, i, e, a, o, s) { + e = Y.createSourceFile(e, a, o); + return G.setTextRangePosWidth(e, 0, S.length), c(e), !i && Le(e) && 67108864 & e.transformFlags && c(e = Ue(e)), e; + + function c(e) { + e.text = S, e.bindDiagnostics = [], e.bindSuggestionDiagnostics = void 0, e.languageVersion = r, e.fileName = t, e.languageVariant = G.getLanguageVariant(n), e.isDeclarationFile = i, e.scriptKind = n, s(e), e.setExternalModuleIndicator = s + } + } + + function qe(e, t) { + e ? p |= t : p &= ~t + } + + function We(e) { + qe(e, 4096) + } + + function He(e) { + qe(e, 8192) + } + + function Ge(e) { + qe(e, 16384) + } + + function $(e) { + qe(e, 32768) + } + + function Qe(e, t) { + var r, e = e & p; + return e ? (qe(!1, e), r = t(), qe(!0, e), r) : t() + } + + function U(e, t) { + var r, e = e & ~p; + return e ? (qe(!0, e), r = t(), qe(!1, e), r) : t() + } + + function x(e) { + return Qe(4096, e) + } + + function Xe(e) { + return Qe(65536, e) + } + + function Ye(e) { + return U(65536, e) + } + + function Ze(e) { + return U(32768, e) + } + + function $e(e) { + return Qe(32768, e) + } + + function et(e) { + return 0 != (p & e) + } + + function tt() { + return et(8192) + } + + function rt() { + return et(4096) + } + + function nt() { + return et(65536) + } + + function it() { + return et(16384) + } + + function at() { + return et(32768) + } + + function K(e, t) { + return V(Q.getTokenPos(), Q.getTextPos(), e, t) + } + + function ot(e, t, r, n) { + var i, a = G.lastOrUndefined(d); + return a && e === a.start || (i = G.createDetachedDiagnostic(pe, e, t, r, n), d.push(i)), B = !0, i + } + + function V(e, t, r, n) { + return ot(e, t - e, r, n) + } + + function st(e, t, r) { + V(e.pos, e.end, t, r) + } + + function ct(e, t) { + ot(Q.getTextPos(), t, e) + } + + function ee() { + return Q.getStartPos() + } + + function D() { + return Q.hasPrecedingJSDocComment() + } + + function lt() { + return X = Q.scan() + } + + function ut(e) { + return te(), e() + } + + function te() { + return G.isKeyword(X) && (Q.hasUnicodeEscape() || Q.hasExtendedUnicodeEscape()) && V(Q.getTokenPos(), Q.getTextPos(), G.Diagnostics.Keywords_cannot_contain_escape_characters), lt() + } + + function q() { + return X = Q.scanJsDocToken() + } + + function _t() { + return X = Q.reScanGreaterToken() + } + + function dt() { + X = Q.reScanTemplateHeadOrNoSubstitutionTemplate() + } + + function pt() { + return X = Q.reScanLessThanToken() + } + + function ft() { + X = Q.reScanHashToken() + } + + function gt() { + X = Q.scanJsxIdentifier() + } + + function mt() { + X = Q.scanJsxToken() + } + + function yt(e, t) { + var r = X, + n = d.length, + i = B, + a = p, + e = 0 !== t ? Q.lookAhead(e) : Q.tryScan(e); + return G.Debug.assert(a === p), e && 0 === t || (X = r, 2 !== t && (d.length = n), B = i), e + } + + function re(e) { + return yt(e, 1) + } + + function ne(e) { + return yt(e, 0) + } + + function ht() { + return 79 === X || 116 < X + } + + function ie() { + return 79 === X || !(125 === X && tt() || 133 === X && at()) && 116 < X + } + + function ae(e, t, r) { + return void 0 === r && (r = !0), X === e ? (r && te(), !0) : (t ? K(t) : K(G.Diagnostics._0_expected, G.tokenToString(e)), !1) + } + + function vt(e) { + if (G.isTaggedTemplateExpression(e)) V(G.skipTrivia(S, e.template.pos), e.template.end, G.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings); + else { + var t = G.isIdentifier(e) ? G.idText(e) : void 0; + if (t && G.isIdentifierText(t, N)) { + var r = G.skipTrivia(S, e.pos); + switch (t) { + case "const": + case "let": + case "var": + return void V(r, e.end, G.Diagnostics.Variable_declaration_not_allowed_at_this_location); + case "declare": + return; + case "interface": + return void bt(G.Diagnostics.Interface_name_cannot_be_0, G.Diagnostics.Interface_must_be_given_a_name, 18); + case "is": + return void V(r, Q.getTextPos(), G.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods); + case "module": + case "namespace": + return void bt(G.Diagnostics.Namespace_name_cannot_be_0, G.Diagnostics.Namespace_must_be_given_a_name, 18); + case "type": + return void bt(G.Diagnostics.Type_alias_name_cannot_be_0, G.Diagnostics.Type_alias_must_be_given_a_name, 63) + } + var n = null != (n = G.getSpellingSuggestion(t, J, function(e) { + return e + })) ? n : function(e) { + for (var t = 0, r = J; t < r.length; t++) { + var n = r[t]; + if (e.length > n.length + 2 && G.startsWith(e, n)) return "".concat(n, " ").concat(e.slice(n.length)) + } + return + }(t); + n ? V(r, e.end, G.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0, n) : 0 !== X && V(r, e.end, G.Diagnostics.Unexpected_keyword_or_identifier) + } else K(G.Diagnostics._0_expected, G.tokenToString(26)) + } + } + + function bt(e, t, r) { + X === r ? K(t) : K(e, Q.getTokenValue()) + } + + function xt(e) { + X === e ? q() : K(G.Diagnostics._0_expected, G.tokenToString(e)) + } + + function Dt(e, t, r, n) { + var i; + X === t ? te() : (i = K(G.Diagnostics._0_expected, G.tokenToString(t)), r && i && G.addRelatedInfo(i, G.createDetachedDiagnostic(pe, n, 1, G.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, G.tokenToString(e), G.tokenToString(t)))) + } + + function oe(e) { + return X === e && (te(), !0) + } + + function T(e) { + if (X === e) return _() + } + + function St(e) { + if (X === e) return e = ee(), t = X, q(), se(Y.createToken(t), e); + var t + } + + function Tt(e, t, r) { + return T(e) || Nt(e, !1, t || G.Diagnostics._0_expected, r || G.tokenToString(e)) + } + + function _() { + var e = ee(), + t = X; + return te(), se(Y.createToken(t), e) + } + + function Ct() { + return 26 === X || 19 === X || 1 === X || Q.hasPrecedingLineBreak() + } + + function Et() { + return !!Ct() && (26 === X && te(), !0) + } + + function kt() { + Et() || ae(26) + } + + function W(e, t, r, n) { + e = Y.createNodeArray(e, n); + return G.setTextRangePosEnd(e, t, null != r ? r : Q.getStartPos()), e + } + + function se(e, t, r) { + return G.setTextRangePosEnd(e, t, null != r ? r : Q.getStartPos()), p && (e.flags |= p), B && (B = !1, e.flags |= 131072), e + } + + function Nt(e, t, r, n) { + t ? ot(Q.getStartPos(), 0, r, n) : r && K(r, n); + t = ee(); + return se(79 === e ? Y.createIdentifier("", void 0, void 0) : G.isTemplateLiteralKind(e) ? Y.createTemplateLiteralLikeNode(e, "", "", void 0) : 8 === e ? Y.createNumericLiteral("", void 0) : 10 === e ? Y.createStringLiteral("", void 0) : 279 === e ? Y.createMissingDeclaration() : Y.createToken(e), t) + } + + function At(e) { + var t = O.get(e); + return void 0 === t && O.set(e, t = e), t + } + + function Ft(e, t, r) { + if (e) return fe++, e = ee(), i = X, n = At(Q.getTokenValue()), a = Q.hasExtendedUnicodeEscape(), lt(), se(Y.createIdentifier(n, void 0, i, a), e); + if (80 === X) return K(r || G.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies), Ft(!0); + if (0 === X && Q.tryScan(function() { + return 79 === Q.reScanInvalidIdentifier() + })) return Ft(!0); + fe++; + var n = 1 === X, + i = Q.isReservedWord(), + a = Q.getTokenText(), + e = i ? G.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here : G.Diagnostics.Identifier_expected; + return Nt(79, n, t || e, a) + } + + function Pt(e) { + return Ft(ht(), void 0, e) + } + + function ce(e, t) { + return Ft(ie(), e, t) + } + + function le(e) { + return Ft(G.tokenIsIdentifierOrKeyword(X), e) + } + + function wt() { + return G.tokenIsIdentifierOrKeyword(X) || 10 === X || 8 === X + } + + function It(e) { + var t; + return 10 === X || 8 === X ? ((t = dr()).text = At(t.text), t) : e && 22 === X ? (t = ee(), ae(22), e = x(H), ae(23), se(Y.createComputedPropertyName(e), t)) : (80 === X ? Mt : le)() + } + + function Ot() { + return It(!0) + } + + function Mt() { + var e, t = ee(), + r = Y.createPrivateIdentifier((r = Q.getTokenValue(), void 0 === (e = M.get(r)) && M.set(r, e = r), e)); + return te(), se(r, t) + } + + function Lt(e) { + return X === e && ne(Bt) + } + + function Rt() { + return te(), !Q.hasPrecedingLineBreak() && zt() + } + + function Bt() { + switch (X) { + case 85: + return 92 === te(); + case 93: + return te(), 88 === X ? re(Ut) : 154 === X ? re(Jt) : jt(); + case 88: + return Ut(); + case 127: + case 124: + case 137: + case 151: + return te(), zt(); + default: + return Rt() + } + } + + function jt() { + return 41 !== X && 128 !== X && 18 !== X && zt() + } + + function Jt() { + return te(), jt() + } + + function zt() { + return 22 === X || 18 === X || 41 === X || 25 === X || wt() + } + + function Ut() { + return te(), 84 === X || 98 === X || 118 === X || 126 === X && re(ui) || 132 === X && re(_i) + } + + function Kt(e, t) { + if (er(e)) return 1; + switch (e) { + case 0: + case 1: + case 3: + return (26 !== X || !t) && gi(); + case 2: + return 82 === X || 88 === X; + case 4: + return re(Or); + case 5: + return re(Li) || 26 === X && !t; + case 6: + return 22 === X || wt(); + case 12: + switch (X) { + case 22: + case 41: + case 25: + case 24: + return 1; + default: + return wt() + } + case 18: + return wt(); + case 9: + return 22 === X || 25 === X || wt(); + case 24: + return G.tokenIsIdentifierOrKeyword(X) || 10 === X; + case 7: + return 18 === X ? re(Vt) : t ? ie() && !Gt() : gn() && !Gt(); + case 8: + return Si(); + case 10: + return 27 === X || 25 === X || Si(); + case 19: + return 101 === X || ie(); + case 15: + switch (X) { + case 27: + case 24: + return 1 + } + case 11: + return 25 === X || mn(); + case 16: + return Sr(!1); + case 17: + return Sr(!0); + case 20: + case 21: + return 27 === X || $r(); + case 22: + return Zi(); + case 23: + return G.tokenIsIdentifierOrKeyword(X); + case 13: + return G.tokenIsIdentifierOrKeyword(X) || 18 === X; + case 14: + return 1 + } + return G.Debug.fail("Non-exhaustive case in 'isListElement'.") + } + + function Vt() { + var e; + return G.Debug.assert(18 === X), 19 !== te() || 27 === (e = te()) || 18 === e || 94 === e || 117 === e + } + + function qt() { + return te(), ie() + } + + function Wt() { + return te(), G.tokenIsIdentifierOrKeyword(X) + } + + function Ht() { + return te(), G.tokenIsIdentifierOrKeywordOrGreaterThan(X) + } + + function Gt() { + return (117 === X || 94 === X) && re(Qt) + } + + function Qt() { + return te(), mn() + } + + function Xt() { + return te(), $r() + } + + function Yt(e) { + if (1 === X) return 1; + switch (e) { + case 1: + case 2: + case 4: + case 5: + case 6: + case 12: + case 9: + case 23: + case 24: + return 19 === X; + case 3: + return 19 === X || 82 === X || 88 === X; + case 7: + return 18 === X || 94 === X || 117 === X; + case 8: + return Ct() ? 1 : Tn(X) || 38 === X; + case 19: + return 31 === X || 20 === X || 18 === X || 94 === X || 117 === X; + case 11: + return 21 === X || 26 === X; + case 15: + case 21: + case 10: + return 23 === X; + case 17: + case 16: + case 18: + return 21 === X || 23 === X; + case 20: + return 27 !== X; + case 22: + return 18 === X || 19 === X; + case 13: + return 31 === X || 43 === X; + case 14: + return 29 === X && re(ia); + default: + return + } + } + + function Zt(e, t) { + for (var r = l, n = (l |= 1 << e, []), i = ee(); !Yt(e);) + if (Kt(e, !1)) n.push($t(e, t)); + else if (rr(e)) break; + return l = r, W(n, i) + } + + function $t(e, t) { + e = er(e); + return e ? tr(e) : t() + } + + function er(e, t) { + if (w && function(e) { + switch (e) { + case 5: + case 2: + case 0: + case 1: + case 3: + case 6: + case 4: + case 8: + case 17: + case 16: + return 1 + } + return + }(e) && !B) { + t = w.currentNode(null != t ? t : Q.getStartPos()); + if (!(G.nodeIsMissing(t) || t.intersectsChange || G.containsParseError(t))) { + var r = 50720768 & t.flags; + if (r === p && function(e, t) { + switch (t) { + case 5: + return function(e) { + if (e) switch (e.kind) { + case 173: + case 178: + case 174: + case 175: + case 169: + case 237: + return 1; + case 171: + var t = e; + return !(79 === t.name.kind && 135 === t.name.originalKeywordKind) + } + return + }(e); + case 2: + return function(e) { + if (e) switch (e.kind) { + case 292: + case 293: + return 1 + } + return + }(e); + case 0: + case 1: + case 3: + return function(e) { + if (e) switch (e.kind) { + case 259: + case 240: + case 238: + case 242: + case 241: + case 254: + case 250: + case 252: + case 249: + case 248: + case 246: + case 247: + case 245: + case 244: + case 251: + case 239: + case 255: + case 253: + case 243: + case 256: + case 269: + case 268: + case 275: + case 274: + case 264: + case 260: + case 261: + case 263: + case 262: + return 1 + } + return + }(e); + case 6: + return 302 === e.kind; + case 4: + return function(e) { + if (e) switch (e.kind) { + case 177: + case 170: + case 178: + case 168: + case 176: + return 1 + } + return + }(e); + case 8: + return function(e) { + if (257 !== e.kind) return; + return void 0 === e.initializer + }(e); + case 17: + case 16: + return function(e) { + if (166 !== e.kind) return; + return void 0 === e.initializer + }(e) + } + return + }(t, e)) return t.jsDocCache && (t.jsDocCache = void 0), t + } + } + } + + function tr(e) { + return Q.setTextPos(e.end), te(), e + } + + function rr(e) { + if (! function(e) { + switch (e) { + case 0: + return 88 === X ? K(G.Diagnostics._0_expected, G.tokenToString(93)) : K(G.Diagnostics.Declaration_or_statement_expected); + case 1: + return K(G.Diagnostics.Declaration_or_statement_expected); + case 2: + return K(G.Diagnostics.case_or_default_expected); + case 3: + return K(G.Diagnostics.Statement_expected); + case 18: + case 4: + return K(G.Diagnostics.Property_or_signature_expected); + case 5: + return K(G.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected); + case 6: + return K(G.Diagnostics.Enum_member_expected); + case 7: + return K(G.Diagnostics.Expression_expected); + case 8: + return G.isKeyword(X) ? K(G.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name, G.tokenToString(X)) : K(G.Diagnostics.Variable_declaration_expected); + case 9: + return K(G.Diagnostics.Property_destructuring_pattern_expected); + case 10: + return K(G.Diagnostics.Array_element_destructuring_pattern_expected); + case 11: + return K(G.Diagnostics.Argument_expression_expected); + case 12: + return K(G.Diagnostics.Property_assignment_expected); + case 15: + return K(G.Diagnostics.Expression_or_comma_expected); + case 17: + return K(G.Diagnostics.Parameter_declaration_expected); + case 16: + return G.isKeyword(X) ? K(G.Diagnostics._0_is_not_allowed_as_a_parameter_name, G.tokenToString(X)) : K(G.Diagnostics.Parameter_declaration_expected); + case 19: + return K(G.Diagnostics.Type_parameter_declaration_expected); + case 20: + return K(G.Diagnostics.Type_argument_expected); + case 21: + return K(G.Diagnostics.Type_expected); + case 22: + return K(G.Diagnostics.Unexpected_token_expected); + case 23: + case 13: + case 14: + return K(G.Diagnostics.Identifier_expected); + case 24: + return K(G.Diagnostics.Identifier_or_string_literal_expected); + case 25: + return G.Debug.fail("ParsingContext.Count used as a context"); + default: + G.Debug.assertNever(e) + } + }(e), function() { + for (var e = 0; e < 25; e++) + if (l & 1 << e && (Kt(e, !0) || Yt(e))) return 1 + }()) return 1; + te() + } + + function nr(e, t, r) { + for (var n = l, i = (l |= 1 << e, []), a = ee(), o = -1;;) + if (Kt(e, !1)) { + var s = Q.getStartPos(), + c = $t(e, t); + if (!c) return void(l = n); + if (i.push(c), o = Q.getTokenPos(), !oe(27)) { + if (o = -1, Yt(e)) break; + ae(27, 6 === e ? G.Diagnostics.An_enum_member_name_must_be_followed_by_a_or : void 0), r && 26 === X && !Q.hasPrecedingLineBreak() && te(), s === Q.getStartPos() && te() + } + } else { + if (Yt(e)) break; + if (rr(e)) break + } + return l = n, W(i, a, void 0, 0 <= o) + } + + function ir() { + var e = W([], ee()); + return e.isMissingList = !0, e + } + + function ar(e, t, r, n) { + return ae(r) ? (r = nr(e, t), ae(n), r) : ir() + } + + function or(e, t) { + for (var r = ee(), n = (e ? le : ce)(t), i = ee(); oe(24);) { + if (29 === X) { + n.jsdocDotPos = i; + break + } + i = ee(), n = se(Y.createQualifiedName(n, sr(e, !1)), r) + } + return n + } + + function sr(e, t) { + var r; + if (Q.hasPrecedingLineBreak() && G.tokenIsIdentifierOrKeyword(X) && re(li)) return Nt(79, !0, G.Diagnostics.Identifier_expected); + return 80 === X ? (r = Mt(), t ? r : Nt(79, !0, G.Diagnostics.Identifier_expected)) : (e ? le : ce)() + } + + function cr(e) { + for (var t, r, n = ee(), i = []; t = e, r = void 0, r = ee(), t = se(Y.createTemplateSpan(x(H), _r(t)), r), i.push(t), 16 === t.literal.kind;); + return W(i, n) + } + + function lr(e) { + var t = ee(); + return se(Y.createTemplateExpression(pr(e), cr(e)), t) + } + + function ur() { + var e = ee(); + return se(Y.createTemplateLiteralType(pr(!1), function() { + var e, t = ee(), + r = []; + for (; e = function() { + var e = ee(); + return se(Y.createTemplateLiteralTypeSpan(ue(), _r(!1)), e) + }(), r.push(e), 16 === e.literal.kind;); + return W(r, t) + }()), e) + } + + function _r(e) { + return 19 === X ? (X = Q.reScanTemplateToken(e), e = fr(X), G.Debug.assert(16 === e.kind || 17 === e.kind, "Template fragment has wrong token kind"), e) : Tt(17, G.Diagnostics._0_expected, G.tokenToString(19)) + } + + function dr() { + return fr(X) + } + + function pr(e) { + e && dt(); + e = fr(X); + return G.Debug.assert(15 === e.kind, "Template head has wrong token kind"), e + } + + function fr(e) { + var t, r = ee(), + n = G.isTemplateLiteralKind(e) ? Y.createTemplateLiteralLikeNode(e, Q.getTokenValue(), (t = 14 === (t = e) || 17 === t, (n = Q.getTokenText()).substring(1, n.length - (Q.isUnterminated() ? 0 : t ? 1 : 2))), 2048 & Q.getTokenFlags()) : 8 === e ? Y.createNumericLiteral(Q.getTokenValue(), Q.getNumericLiteralFlags()) : 10 === e ? Y.createStringLiteral(Q.getTokenValue(), void 0, Q.hasExtendedUnicodeEscape()) : G.isLiteralKind(e) ? Y.createLiteralLikeNode(e, Q.getTokenValue()) : G.Debug.fail(); + return Q.hasExtendedUnicodeEscape() && (n.hasExtendedUnicodeEscape = !0), Q.isUnterminated() && (n.isUnterminated = !0), te(), se(n, r) + } + + function gr() { + return or(!0, G.Diagnostics.Type_expected) + } + + function mr() { + if (!Q.hasPrecedingLineBreak() && 29 === pt()) return ar(20, ue, 29, 31) + } + + function yr() { + var e = ee(); + return se(Y.createTypeReferenceNode(gr(), mr()), e) + } + + function hr() { + var e = ee(); + return te(), se(Y.createThisTypeNode(), e) + } + + function vr() { + var e, t = ee(); + return 108 !== X && 103 !== X || (e = le(), ae(58)), se(Y.createParameterDeclaration(void 0, void 0, e, void 0, br(), void 0), t) + } + + function br() { + Q.setInJSDocType(!0); + var e = ee(); + if (oe(142)) { + var t = Y.createJSDocNamepathType(void 0); + e: for (;;) switch (X) { + case 19: + case 1: + case 27: + case 5: + break e; + default: + q() + } + return Q.setInJSDocType(!1), se(t, e) + } + var t = oe(25), + r = dn(); + return Q.setInJSDocType(!1), t && (r = se(Y.createJSDocVariadicType(r), e)), 63 === X ? (te(), se(Y.createJSDocOptionalType(r), e)) : r + } + + function xr() { + var e, t, r = ee(), + n = Ki(), + i = ce(), + a = (oe(94) && ($r() || !mn() ? e = ue() : t = An()), oe(63) ? ue() : void 0), + n = Y.createTypeParameterDeclaration(n, i, e, a); + return n.expression = t, se(n, r) + } + + function Dr() { + if (29 === X) return ar(19, xr, 29, 31) + } + + function Sr(e) { + return 25 === X || Si() || G.isModifierKind(X) || 59 === X || $r(!e) + } + + function Tr(e) { + return Cr(e) + } + + function Cr(e, t) { + void 0 === t && (t = !0); + var r, n, i = ee(), + a = D(), + e = (e ? Ze : $e)(Ji); + return 108 === X ? (r = Y.createParameterDeclaration(e, void 0, Ft(!0), void 0, fn(), void 0), e && st(e[0], G.Diagnostics.Decorators_may_not_be_applied_to_this_parameters), Z(se(r, i), a)) : (r = R, R = !1, e = Ui(e, Ki()), n = T(25), t || ht() || 22 === X || 18 === X ? (e = Z(se(Y.createParameterDeclaration(e, n, (t = e, n = Ti(G.Diagnostics.Private_identifiers_cannot_be_used_as_parameters), 0 === G.getFullWidth(n) && !G.some(t) && G.isModifierKind(X) && te(), n), T(57), fn(), yn()), i), a), R = r, e) : void 0) + } + + function Er(e, t) { + if (function(e, t) { + { + if (38 === e) return ae(e), 1; + if (oe(58)) return 1; + if (t && 38 === X) return K(G.Diagnostics._0_expected, G.tokenToString(58)), te(), 1 + } + return + }(e, t)) return Xe(dn) + } + + function kr(e, t) { + var r = tt(), + n = at(), + e = (He(!!(1 & e)), $(!!(2 & e)), 32 & e ? nr(17, vr) : nr(16, function() { + return t ? Tr(n) : Cr(n, !1) + })); + return He(r), $(n), e + } + + function Nr(e) { + return ae(20) ? (e = kr(e, !0), ae(21), e) : ir() + } + + function Ar() { + oe(27) || kt() + } + + function Fr(e) { + var t = ee(), + r = D(), + n = (177 === e && ae(103), Dr()), + i = Nr(4), + a = Er(58, !0); + return Ar(), Z(se(176 === e ? Y.createCallSignature(n, i, a) : Y.createConstructSignature(n, i, a), t), r) + } + + function Pr() { + return 22 === X && re(wr) + } + + function wr() { + if (te(), 25 === X || 23 === X) return !0; + if (G.isModifierKind(X)) { + if (te(), ie()) return !0 + } else { + if (!ie()) return !1; + te() + } + return 58 === X || 27 === X || 57 === X && (te(), 58 === X || 27 === X || 23 === X) + } + + function Ir(e, t, r, n) { + var i = ar(16, function() { + return Cr(!1) + }, 22, 23), + a = fn(), + n = (Ar(), Y.createIndexSignature(n, i, a)); + return n.illegalDecorators = r, Z(se(n, e), t) + } + + function Or() { + if (20 === X || 29 === X || 137 === X || 151 === X) return !0; + for (var e = !1; G.isModifierKind(X);) e = !0, te(); + return 22 === X || (wt() && (e = !0, te()), !!e && (20 === X || 29 === X || 57 === X || 58 === X || 27 === X || Ct())) + } + + function Mr() { + var e, t, r, n, i, a, o, s; + return 20 === X || 29 === X ? Fr(176) : 103 === X && re(Lr) ? Fr(177) : (e = ee(), t = D(), r = Ki(), Lt(137) ? Mi(e, t, void 0, r, 174, 4) : Lt(151) ? Mi(e, t, void 0, r, 175, 4) : Pr() ? Ir(e, t, void 0, r) : (e = e, t = t, r = r, o = Ot(), s = T(57), 20 === X || 29 === X ? (i = Dr(), n = Nr(4), a = Er(58, !0), i = Y.createMethodSignature(r, o, s, i, n, a)) : (a = fn(), i = Y.createPropertySignature(r, o, s, a), 63 === X && (i.initializer = yn())), Ar(), Z(se(i, e), t))) + } + + function Lr() { + return te(), 20 === X || 29 === X + } + + function Rr() { + return 24 === te() + } + + function Br() { + switch (te()) { + case 20: + case 29: + case 24: + return !0 + } + return !1 + } + + function jr() { + var e; + return ae(18) ? (e = Zt(4, Mr), ae(19)) : e = ir(), e + } + + function Jr() { + return te(), 39 === X || 40 === X ? 146 === te() : (146 === X && te(), 22 === X && qt() && 101 === te()) + } + + function zr() { + var e, t, r = ee(), + n = (ae(18), 146 !== X && 39 !== X && 40 !== X || 146 !== (e = _()).kind && ae(146), ae(22), a = ee(), n = le(), ae(101), i = ue(), se(Y.createTypeParameterDeclaration(void 0, n, i, void 0), a)), + i = oe(128) ? ue() : void 0, + a = (ae(23), 57 !== X && 39 !== X && 40 !== X || 57 !== (t = _()).kind && ae(57), fn()), + o = (kt(), Zt(4, Mr)); + return ae(19), se(Y.createMappedTypeNode(e, n, i, t, a, o), r) + } + + function Ur() { + var e, t = ee(); + return oe(25) ? se(Y.createRestTypeNode(ue()), t) : (t = ue(), G.isJSDocNullableType(t) && t.pos === t.type.pos ? (e = Y.createOptionalTypeNode(t.type), G.setTextRange(e, t), e.flags = t.flags, e) : t) + } + + function Kr() { + return 58 === te() || 57 === X && 58 === te() + } + + function Vr() { + return 25 === X ? G.tokenIsIdentifierOrKeyword(te()) && Kr() : G.tokenIsIdentifierOrKeyword(X) && Kr() + } + + function qr() { + var e, t, r, n, i, a; + return re(Vr) ? (e = ee(), t = D(), r = T(25), n = le(), i = T(57), ae(58), a = Ur(), Z(se(Y.createNamedTupleMember(r, n, i, a), e), t)) : Ur() + } + + function Wr() { + var e, t = ee(), + r = D(), + n = (126 === X && (e = ee(), te(), e = W([se(Y.createToken(126), e)], e)), oe(103)), + i = Dr(), + a = Nr(4), + o = Er(38, !1), + i = n ? Y.createConstructorTypeNode(e, i, a, o) : Y.createFunctionTypeNode(i, a, o); + return n || (i.modifiers = e), Z(se(i, t), r) + } + + function Hr() { + var e = _(); + return 24 === X ? void 0 : e + } + + function Gr(e) { + var t = ee(), + r = (e && te(), 110 === X || 95 === X || 104 === X ? _() : fr(X)); + return e && (r = se(Y.createPrefixUnaryExpression(40, r), t)), se(Y.createLiteralTypeNode(r), t) + } + + function Qr() { + return te(), 100 === X + } + + function Xr() { + k |= 2097152; + var e, t, r, n = ee(), + i = oe(112), + a = (ae(100), ae(20), ue()), + o = (oe(27) && (t = ee(), o = Q.getTokenPos(), ae(18), r = Q.hasPrecedingLineBreak(), ae(130), ae(58), s = oa(!0), ae(19) || (e = G.lastOrUndefined(d)) && e.code === G.Diagnostics._0_expected.code && G.addRelatedInfo(e, G.createDetachedDiagnostic(pe, o, 1, G.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}")), e = se(Y.createImportTypeAssertionContainer(s, r), t)), ae(21), oe(24) ? gr() : void 0), + s = mr(); + return se(Y.createImportTypeNode(a, e, o, s, i), n) + } + + function Yr() { + return te(), 8 === X || 9 === X + } + + function Zr() { + switch (X) { + case 131: + case 157: + case 152: + case 148: + case 160: + case 153: + case 134: + case 155: + case 144: + case 149: + return ne(Hr) || yr(); + case 66: + Q.reScanAsteriskEqualsToken(); + case 41: + return u = ee(), te(), se(Y.createJSDocAllType(), u); + case 60: + Q.reScanQuestionToken(); + case 57: + return u = ee(), te(), se(27 === X || 19 === X || 21 === X || 31 === X || 63 === X || 51 === X ? Y.createJSDocUnknownType() : Y.createJSDocNullableType(ue(), !1), u); + case 98: + return c = ee(), l = D(), re(ra) ? (te(), o = Nr(36), s = Er(58, !1), Z(se(Y.createJSDocFunctionType(o, s), c), l)) : se(Y.createTypeReferenceNode(le(), void 0), c); + case 53: + return o = ee(), te(), se(Y.createJSDocNonNullableType(Zr(), !1), o); + case 14: + case 10: + case 8: + case 9: + case 110: + case 95: + case 104: + return Gr(); + case 40: + return re(Yr) ? Gr(!0) : yr(); + case 114: + return _(); + case 108: + s = hr(); + return 140 !== X || Q.hasPrecedingLineBreak() ? s : (l = s, te(), se(Y.createTypePredicateNode(void 0, l, ue()), l.pos)); + case 112: + return re(Qr) ? Xr() : (c = ee(), ae(112), i = or(!0), a = Q.hasPrecedingLineBreak() ? void 0 : Yi(), se(Y.createTypeQueryNode(i, a), c)); + case 18: + return re(Jr) ? zr() : (i = ee(), se(Y.createTypeLiteralNode(jr()), i)); + case 22: + return a = ee(), se(Y.createTupleTypeNode(ar(21, qr, 22, 23)), a); + case 20: + return r = ee(), ae(20), n = ue(), ae(21), se(Y.createParenthesizedType(n), r); + case 100: + return Xr(); + case 129: + return re(li) ? (n = ee(), r = Tt(129), e = (108 === X ? hr : ce)(), t = oe(140) ? ue() : void 0, se(Y.createTypePredicateNode(r, e, t), n)) : yr(); + case 15: + return ur(); + default: + return yr() + } + var e, t, r, n, i, a, o, s, c, l, u + } + + function $r(e) { + switch (X) { + case 131: + case 157: + case 152: + case 148: + case 160: + case 134: + case 146: + case 153: + case 156: + case 114: + case 155: + case 104: + case 108: + case 112: + case 144: + case 18: + case 22: + case 29: + case 51: + case 50: + case 103: + case 10: + case 8: + case 9: + case 110: + case 95: + case 149: + case 41: + case 57: + case 53: + case 25: + case 138: + case 100: + case 129: + case 14: + case 15: + return !0; + case 98: + return !e; + case 40: + return !e && re(Yr); + case 20: + return !e && re(en); + default: + return ie() + } + } + + function en() { + return te(), 21 === X || Sr(!1) || $r() + } + + function tn() { + for (var e, t = ee(), r = Zr(); !Q.hasPrecedingLineBreak();) switch (X) { + case 53: + te(), r = se(Y.createJSDocNonNullableType(r, !0), t); + break; + case 57: + if (re(Xt)) return r; + te(), r = se(Y.createJSDocNullableType(r, !0), t); + break; + case 22: + ae(22), r = $r() ? (e = ue(), ae(23), se(Y.createIndexedAccessTypeNode(r, e), t)) : (ae(23), se(Y.createArrayTypeNode(r), t)); + break; + default: + return r + } + return r + } + + function rn() { + if (oe(94)) { + var e = Ye(ue); + if (nt() || 57 !== X) return e + } + } + + function nn() { + var e, t, r, n = ee(); + return ae(138), se(Y.createInferTypeNode((e = ee(), t = ce(), r = ne(rn), se(Y.createTypeParameterDeclaration(void 0, t, r), e))), n) + } + + function an() { + var e, t, r = X; + switch (r) { + case 141: + case 156: + case 146: + return e = r, t = ee(), ae(e), se(Y.createTypeOperatorNode(e, an()), t); + case 138: + return nn() + } + return Xe(tn) + } + + function on(e) { + var t; + if (un()) return st(t = Wr(), G.isFunctionTypeNode(t) ? e ? G.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type : G.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type : e ? G.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type : G.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type), t + } + + function sn(e, t, r) { + var n = ee(), + i = 51 === e, + a = oe(e), + o = a && on(i) || t(); + if (X === e || a) { + for (var s = [o]; oe(e);) s.push(on(i) || t()); + o = se(r(W(s, n)), n) + } + return o + } + + function cn() { + return sn(50, an, Y.createIntersectionTypeNode) + } + + function ln() { + return te(), 103 === X + } + + function un() { + return 29 === X || 20 === X && re(_n) || 103 === X || 126 === X && re(ln) + } + + function _n() { + if (te(), 21 === X || 25 === X) return !0; + if (G.isModifierKind(X) && Ki(), ie() || 108 === X ? (te(), 1) : 22 === X || 18 === X ? (e = d.length, Ti(), e === d.length) : void 0) { + if (58 === X || 27 === X || 57 === X || 63 === X) return !0; + if (21 === X && (te(), 38 === X)) return !0 + } + var e; + return !1 + } + + function dn() { + var e = ee(), + t = ie() && ne(pn), + r = ue(); + return t ? se(Y.createTypePredicateNode(void 0, t, r), e) : r + } + + function pn() { + var e = ce(); + if (140 === X && !Q.hasPrecedingLineBreak()) return te(), e + } + + function ue() { + var e, t, r, n, i; + return 40960 & p ? Qe(40960, ue) : un() ? Wr() : (e = ee(), t = sn(51, cn, Y.createUnionTypeNode), nt() || Q.hasPrecedingLineBreak() || !oe(94) ? t : (r = Ye(ue), ae(57), n = Xe(ue), ae(58), i = Xe(ue), se(Y.createConditionalTypeNode(t, r, n, i), e))) + } + + function fn() { + return oe(58) ? ue() : void 0 + } + + function gn() { + switch (X) { + case 108: + case 106: + case 104: + case 110: + case 95: + case 8: + case 9: + case 10: + case 14: + case 15: + case 20: + case 22: + case 18: + case 98: + case 84: + case 103: + case 43: + case 68: + case 79: + return !0; + case 100: + return re(Br); + default: + return ie() + } + } + + function mn() { + if (gn()) return !0; + switch (X) { + case 39: + case 40: + case 54: + case 53: + case 89: + case 112: + case 114: + case 45: + case 46: + case 29: + case 133: + case 125: + case 80: + return !0; + default: + return En() ? !0 : ie() + } + } + + function H() { + for (var e, t = it(), r = (t && Ge(!1), ee()), n = _e(!0); e = T(27);) n = kn(n, e, _e(!0), r); + return t && Ge(!0), n + } + + function yn() { + return oe(63) ? _e(!0) : void 0 + } + + function _e(e) { + var t, r, n, i; + return function() { + if (125 !== X) return; + if (tt()) return 1; + return re(di) + }() ? (t = ee(), te(), Q.hasPrecedingLineBreak() || 41 !== X && !mn() ? se(Y.createYieldExpression(void 0, void 0), t) : se(Y.createYieldExpression(T(41), _e(!0)), t)) : function(r) { + var e = 20 !== X && 29 !== X && 132 !== X ? 38 !== X ? 0 : 1 : re(vn); + if (0 !== e) return 1 === e ? xn(!0, !0) : ne(function() { + var e = r, + t = Q.getTokenPos(); + if (null == L || !L.has(t)) return (e = xn(!1, e)) || (L = L || new G.Set).add(t), e + }) + }(e) || function(e) { + if (132 === X) { + var t, r, n; + if (1 === re(bn)) return t = ee(), r = Vi(), n = Sn(0), hn(t, n, e, r) + } + return + }(e) || (t = ee(), 79 === (r = Sn(0)).kind && 38 === X ? hn(t, r, e, void 0) : G.isLeftHandSideExpression(r) && G.isAssignmentOperator(_t()) ? kn(r, _(), _e(e), t) : (r = r, n = t, e = e, (i = T(57)) ? se(Y.createConditionalExpression(r, i, Qe(E, function() { + return _e(!1) + }), i = Tt(58), G.nodeIsPresent(i) ? _e(e) : Nt(79, !1, G.Diagnostics._0_expected, G.tokenToString(58))), n) : r)) + } + + function hn(e, t, r, n) { + G.Debug.assert(38 === X, "parseSimpleArrowFunctionExpression should only have been called if we had a =>"); + var i = Y.createParameterDeclaration(void 0, void 0, t, void 0, void 0, void 0), + t = (se(i, t.pos), W([i], i.pos, i.end)), + i = Tt(38), + r = Dn(!!n, r); + return ze(se(Y.createArrowFunction(n, void 0, t, void 0, i, r), e)) + } + + function vn() { + if (132 === X) { + if (te(), Q.hasPrecedingLineBreak()) return 0; + if (20 !== X && 29 !== X) return 0 + } + var e = X, + t = te(); + if (20 !== e) return G.Debug.assert(29 === e), ie() ? 1 === F ? re(function() { + var e = te(); + if (94 === e) switch (te()) { + case 63: + case 31: + return !1; + default: + return !0 + } else if (27 === e || 63 === e) return !0; + return !1 + }) ? 1 : 0 : 2 : 0; + if (21 === t) switch (te()) { + case 38: + case 58: + case 18: + return 1; + default: + return 0 + } + if (22 === t || 18 === t) return 2; + if (25 === t) return 1; + if (G.isModifierKind(t) && 132 !== t && re(qt)) return 128 === te() ? 0 : 1; + if (ie() || 108 === t) switch (te()) { + case 58: + return 1; + case 57: + return te(), 58 === X || 27 === X || 63 === X || 21 === X ? 1 : 0; + case 27: + case 63: + case 21: + return 2 + } + return 0 + } + + function bn() { + if (132 === X) { + if (te(), Q.hasPrecedingLineBreak() || 38 === X) return 0; + var e = Sn(0); + if (!Q.hasPrecedingLineBreak() && 79 === e.kind && 38 === X) return 1 + } + return 0 + } + + function xn(e, t) { + var r, n = ee(), + i = D(), + a = Vi(), + o = G.some(a, G.isAsyncModifier) ? 2 : 0, + s = Dr(); + if (ae(20)) { + if (e) r = kr(o, e); + else { + o = kr(o, e); + if (!o) return; + r = o + } + if (!ae(21) && !e) return + } else { + if (!e) return; + r = ir() + } + var o = 58 === X, + c = Er(58, !1); + if (!c || e || ! function e(t) { + switch (t.kind) { + case 180: + return G.nodeIsMissing(t.typeName); + case 181: + case 182: + var r = t.parameters, + n = t.type; + return !!r.isMissingList || e(n); + case 193: + return e(t.type); + default: + return !1 + } + }(c)) { + for (var l = c; 193 === (null == l ? void 0 : l.kind);) l = l.type; + var u = l && G.isJSDocFunctionType(l); + if (e || 38 === X || !u && 18 === X) { + e = X, u = Tt(38), e = 38 === e || 18 === e ? Dn(G.some(a, G.isAsyncModifier), t) : ce(); + if (t || !o || 58 === X) return Z(se(Y.createArrowFunction(a, s, r, c, u, e), n), i) + } + } + } + + function Dn(e, t) { + var r, n; + return 18 === X ? ni(e ? 2 : 0) : 26 === X || 98 === X || 84 === X || !gi() || 18 !== X && 98 !== X && 84 !== X && 59 !== X && mn() ? (r = R, R = !1, n = (e ? Ze : $e)(function() { + return _e(t) + }), R = r, n) : ni(16 | (e ? 2 : 0)) + } + + function Sn(e) { + var t = ee(); + return Cn(e, An(), t) + } + + function Tn(e) { + return 101 === e || 162 === e + } + + function Cn(e, t, r) { + for (;;) { + _t(); + var n = G.getBinaryOperatorPrecedence(X); + if (!(42 === X ? e <= n : e < n)) break; + if (101 === X && rt()) break; + if (128 === X || 150 === X) { + if (Q.hasPrecedingLineBreak()) break; + var i = X; + te(), t = 150 === i ? (i = t, a = ue(), se(Y.createSatisfiesExpression(i, a), i.pos)) : (a = t, i = ue(), se(Y.createAsExpression(a, i), a.pos)) + } else t = kn(t, _(), Sn(n), r) + } + var a; + return t + } + + function En() { + return (!rt() || 101 !== X) && 0 < G.getBinaryOperatorPrecedence(X) + } + + function kn(e, t, r, n) { + return se(Y.createBinaryExpression(e, t, r), n) + } + + function Nn() { + var e = ee(); + return se(Y.createPrefixUnaryExpression(X, ut(Fn)), e) + } + + function An() { + var e, t, r, n; + return function() { + switch (X) { + case 39: + case 40: + case 54: + case 53: + case 89: + case 112: + case 114: + case 133: + return; + case 29: + if (1 !== F) return; + default: + return 1 + } + }() ? (r = ee(), e = Pn(), 42 === X ? Cn(G.getBinaryOperatorPrecedence(X), e, r) : e) : (e = X, t = Fn(), 42 === X && (r = G.skipTrivia(S, t.pos), n = t.end, 213 === t.kind ? V(r, n, G.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses) : V(r, n, G.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses, G.tokenToString(e))), t) + } + + function Fn() { + switch (X) { + case 39: + case 40: + case 54: + case 53: + return Nn(); + case 89: + return n = ee(), se(Y.createDeleteExpression(ut(Fn)), n); + case 112: + return n = ee(), se(Y.createTypeOfExpression(ut(Fn)), n); + case 114: + return r = ee(), se(Y.createVoidExpression(ut(Fn)), r); + case 29: + return r = ee(), ae(29), e = ue(), ae(31), t = Fn(), se(Y.createTypeAssertion(e, t), r); + case 133: + if (133 === X && (at() || re(di))) return e = ee(), se(Y.createAwaitExpression(ut(Fn)), e); + default: + return Pn() + } + var e, t, r, n + } + + function Pn() { + var e, t; + return 45 === X || 46 === X ? (e = ee(), se(Y.createPrefixUnaryExpression(X, ut(wn)), e)) : 1 === F && 29 === X && re(Ht) ? On(!0) : (e = wn(), G.Debug.assert(G.isLeftHandSideExpression(e)), 45 !== X && 46 !== X || Q.hasPrecedingLineBreak() ? e : (t = X, te(), se(Y.createPostfixUnaryExpression(e, t), e.pos))) + } + + function wn() { + var e, t = ee(); + return 100 === X ? re(Lr) ? (k |= 2097152, e = _()) : re(Rr) ? (te(), te(), e = se(Y.createMetaProperty(100, le()), t), k |= 4194304) : e = In() : e = (106 === X ? function() { + var e = ee(), + t = _(); { + var r, n; + 29 === X && (r = ee(), void 0 !== (n = ne(Hn))) && (V(r, ee(), G.Diagnostics.super_may_not_use_type_arguments), Kn() || (t = Y.createExpressionWithTypeArguments(t, n))) + } + return 20 !== X && 24 !== X && 22 !== X ? (Tt(24, G.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access), se(Y.createPropertyAccessExpression(t, sr(!0, !0)), e)) : t + } : In)(), qn(t, e) + } + + function In() { + return Un(ee(), Gn(), !0) + } + + function On(e, t, r) { + var n, i, a = ee(), + o = function(e) { + var t = ee(); + if (ae(29), 31 === X) return mt(), se(Y.createJsxOpeningFragment(), t); + var r = Rn(), + n = 0 == (262144 & p) ? Yi() : void 0, + i = function() { + var e = ee(); + return se(Y.createJsxAttributes(Zt(13, jn)), e) + }(); + e = 31 === X ? (mt(), Y.createJsxOpeningElement(r, n, i)) : (ae(43), ae(31, void 0, !1) && (e ? te : mt)(), Y.createJsxSelfClosingElement(r, n, i)); + return se(e, t) + }(e), + s = 283 === o.kind ? (i = void 0, 281 === (null == (c = (n = Ln(o))[n.length - 1]) ? void 0 : c.kind) && !Na(c.openingElement.tagName, c.closingElement.tagName) && Na(o.tagName, c.closingElement.tagName) ? (u = c.children.end, s = se(Y.createJsxElement(c.openingElement, c.children, se(Y.createJsxClosingElement(se(Y.createIdentifier(""), u, u)), u, u)), c.openingElement.pos, u), n = W(__spreadArray(__spreadArray([], n.slice(0, n.length - 1), !0), [s], !1), n.pos, u), i = c.closingElement) : (i = function(e, t) { + var r = ee(), + n = (ae(30), Rn()); + ae(31, void 0, !1) && (t || !Na(e.tagName, n) ? te : mt)(); + return se(Y.createJsxClosingElement(n), r) + }(o, e), Na(o.tagName, i.tagName) || (r && G.isJsxOpeningElement(r) && Na(i.tagName, r.tagName) ? st(o.tagName, G.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag, G.getTextOfNodeFromSourceText(S, o.tagName)) : st(i.tagName, G.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0, G.getTextOfNodeFromSourceText(S, o.tagName)))), se(Y.createJsxElement(o, n, i), a)) : 286 === o.kind ? se(Y.createJsxFragment(o, Ln(o), function(e) { + var t = ee(); + ae(30), G.tokenIsIdentifierOrKeyword(X) && st(Rn(), G.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment); + ae(31, void 0, !1) && (e ? te : mt)(); + return se(Y.createJsxJsxClosingFragment(), t) + }(e)), a) : (G.Debug.assert(282 === o.kind), o); + if (e && 29 === X) { + var c, l = void 0 === t ? s.pos : t, + u = ne(function() { + return On(!0, l) + }); + if (u) return c = Nt(27, !1), G.setTextRangePosWidth(c, u.pos, 0), V(G.skipTrivia(S, l), u.end, G.Diagnostics.JSX_expressions_must_have_one_parent_element), se(Y.createBinaryExpression(s, c, u), a) + } + return s + } + + function Mn(e, t) { + switch (t) { + case 1: + return void(G.isJsxOpeningFragment(e) ? st(e, G.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag) : (r = e.tagName, V(G.skipTrivia(S, r.pos), r.end, G.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag, G.getTextOfNodeFromSourceText(S, e.tagName)))); + case 30: + case 7: + return; + case 11: + case 12: + return r = ee(), n = Y.createJsxText(Q.getTokenValue(), 12 === X), X = Q.scanJsxToken(), se(n, r); + case 18: + return Bn(!1); + case 29: + return On(!1, void 0, e); + default: + return G.Debug.assertNever(t) + } + var r, n + } + + function Ln(e) { + var t = [], + r = ee(), + n = l; + for (l |= 16384;;) { + var i = Mn(e, X = Q.reScanJsxToken()); + if (!i) break; + if (t.push(i), G.isJsxOpeningElement(e) && 281 === (null == i ? void 0 : i.kind) && !Na(i.openingElement.tagName, i.closingElement.tagName) && Na(e.tagName, i.closingElement.tagName)) break + } + return l = n, W(t, r) + } + + function Rn() { + for (var e = ee(), t = (gt(), (108 === X ? _ : le)()); oe(24);) t = se(Y.createPropertyAccessExpression(t, sr(!0, !1)), e); + return t + } + + function Bn(e) { + var t, r, n = ee(); + if (ae(18)) return 19 !== X && (t = T(25), r = H()), e ? ae(19) : ae(19, void 0, !1) && mt(), se(Y.createJsxExpression(t, r), n) + } + + function jn() { + var e, t; + return 18 === X ? (e = ee(), ae(18), ae(25), t = H(), ae(19), se(Y.createJsxSpreadAttribute(t), e)) : (gt(), t = ee(), se(Y.createJsxAttribute(le(), function() { + if (63 === X) { + if (10 === (X = Q.scanJsxAttributeValue())) return dr(); + if (18 === X) return Bn(!0); + if (29 === X) return On(!0); + K(G.Diagnostics.or_JSX_element_expected) + } + return + }()), t)) + } + + function Jn() { + return te(), G.tokenIsIdentifierOrKeyword(X) || 22 === X || Kn() + } + + function zn(e) { + if (32 & e.flags) return !0; + if (G.isNonNullExpression(e)) { + for (var t = e.expression; G.isNonNullExpression(t) && !(32 & t.flags);) t = t.expression; + if (32 & t.flags) { + for (; G.isNonNullExpression(e);) e.flags |= 32, e = e.expression; + return !0 + } + } + return !1 + } + + function Un(e, t, r) { + for (;;) { + var n = void 0; + if (r && 28 === X && re(Jn) ? (n = Tt(28), G.tokenIsIdentifierOrKeyword(X)) : oe(24)) i = e, a = t, o = n, s = sr(!(c = s = void 0), !0), c = o || zn(a), o = c ? Y.createPropertyAccessChain(a, o, s) : Y.createPropertyAccessExpression(a, s), c && G.isPrivateIdentifier(o.name) && st(o.name, G.Diagnostics.An_optional_chain_cannot_contain_private_identifiers), G.isExpressionWithTypeArguments(a) && a.typeArguments && V(a.typeArguments.pos - 1, G.skipTrivia(S, a.typeArguments.end) + 1, G.Diagnostics.An_instantiation_expression_cannot_be_followed_by_a_property_access), t = se(o, i); + else if (!n && it() || !oe(22)) { + if (!Kn()) { + if (!n) { + if (53 === X && !Q.hasPrecedingLineBreak()) { + te(), t = se(Y.createNonNullExpression(t), e); + continue + } + s = ne(Hn); + if (s) { + t = se(Y.createExpressionWithTypeArguments(t, s), e); + continue + } + } + return t + } + t = n || 230 !== t.kind ? Vn(e, t, n, void 0) : Vn(e, t.expression, n, t.typeArguments) + } else c = e, a = t, o = n, i = void 0, i = 23 === X ? Nt(79, !0, G.Diagnostics.An_element_access_expression_should_take_an_argument) : (i = x(H), G.isStringOrNumericLiteralLike(i) && (i.text = At(i.text)), i), ae(23), t = se(o || zn(a) ? Y.createElementAccessChain(a, o, i) : Y.createElementAccessExpression(a, i), c) + } + var i, a, o, s, c + } + + function Kn() { + return 14 === X || 15 === X + } + + function Vn(e, t, r, n) { + n = Y.createTaggedTemplateExpression(t, n, 14 === X ? (dt(), dr()) : lr(!0)); + return (r || 32 & t.flags) && (n.flags |= 32), n.questionDotToken = r, se(n, e) + } + + function qn(e, t) { + for (;;) { + t = Un(e, t, !0); + var r = void 0, + n = T(28); + if (n && (r = ne(Hn), Kn())) t = Vn(e, t, n, r); + else { + if (!r && 20 !== X) { + n && (i = Nt(79, !1, G.Diagnostics.Identifier_expected), t = se(Y.createPropertyAccessChain(t, n, i), e)); + break + } + n || 230 !== t.kind || (r = t.typeArguments, t = t.expression); + var i = Wn(); + t = se(n || zn(t) ? Y.createCallChain(t, n, r, i) : Y.createCallExpression(t, r, i), e) + } + } + return t + } + + function Wn() { + ae(20); + var e = nr(11, Xn); + return ae(21), e + } + + function Hn() { + if (0 == (262144 & p) && 29 === pt()) { + te(); + var e = nr(20, ue); + if (31 === _t()) return te(), e && function() { + switch (X) { + case 20: + case 14: + case 15: + return 1; + case 29: + case 31: + case 39: + case 40: + return + } + return Q.hasPrecedingLineBreak() || En() || !mn() + }() ? e : void 0 + } + } + + function Gn() { + switch (X) { + case 8: + case 9: + case 10: + case 14: + return dr(); + case 108: + case 106: + case 104: + case 110: + case 95: + return _(); + case 20: + return n = ee(), i = D(), ae(20), r = x(H), ae(21), Z(se(Y.createParenthesizedExpression(r), n), i); + case 22: + return Yn(); + case 18: + return $n(); + case 132: + if (re(_i)) return ei(); + break; + case 84: + return Hi(ee(), D(), void 0, void 0, 228); + case 98: + return ei(); + case 103: + var e, t, r = ee(); + return (ae(103), oe(24)) ? (t = le(), se(Y.createMetaProperty(103, t), r)) : (230 === (t = Un(ee(), Gn(), !1)).kind && (e = t.typeArguments, t = t.expression), 28 === X && K(G.Diagnostics.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0, G.getTextOfNodeFromSourceText(S, t)), n = 20 === X ? Wn() : void 0, se(Y.createNewExpression(t, e, n), r)); + case 43: + case 68: + if (13 === (X = Q.reScanSlashToken())) return dr(); + break; + case 15: + return lr(!1); + case 80: + return Mt() + } + var n, i, r; + return ce(G.Diagnostics.Expression_expected) + } + + function Qn() { + return 25 === X ? (e = ee(), ae(25), t = _e(!0), se(Y.createSpreadElement(t), e)) : 27 === X ? se(Y.createOmittedExpression(), ee()) : _e(!0); + var e, t + } + + function Xn() { + return Qe(E, Qn) + } + + function Yn() { + var e = ee(), + t = Q.getTokenPos(), + r = ae(22), + n = Q.hasPrecedingLineBreak(), + i = nr(15, Qn); + return Dt(22, 23, r, t), se(Y.createArrayLiteralExpression(i, n), e) + } + + function Zn() { + var e, t, r, n, i, a, o, s, c = ee(), + l = D(); + return T(25) ? (e = _e(!0), Z(se(Y.createSpreadAssignment(e), c), l)) : (e = Ji(), t = Ki(), Lt(137) ? Mi(c, l, e, t, 174, 0) : Lt(151) ? Mi(c, l, e, t, 175, 0) : (a = T(41), s = ie(), r = Ot(), n = T(57), i = T(53), a || 20 === X || 29 === X ? wi(c, l, e, t, a, r, n, i) : (s && 58 !== X ? (s = (a = T(63)) ? x(function() { + return _e(!0) + }) : void 0, (o = Y.createShorthandPropertyAssignment(r, s)).equalsToken = a) : (ae(58), s = x(function() { + return _e(!0) + }), o = Y.createPropertyAssignment(r, s)), o.illegalDecorators = e, o.modifiers = t, o.questionToken = n, o.exclamationToken = i, Z(se(o, c), l)))) + } + + function $n() { + var e = ee(), + t = Q.getTokenPos(), + r = ae(18), + n = Q.hasPrecedingLineBreak(), + i = nr(12, Zn, !0); + return Dt(18, 19, r, t), se(Y.createObjectLiteralExpression(i, n), e) + } + + function ei() { + var e = it(), + t = (Ge(!1), ee()), + r = D(), + n = Ki(), + i = (ae(98), T(41)), + a = i ? 1 : 0, + o = G.some(n, G.isAsyncModifier) ? 2 : 0, + s = a && o ? U(40960, ti) : a ? U(8192, ti) : o ? Ze(ti) : ti(), + c = Dr(), + l = Nr(a | o), + u = Er(58, !1), + a = ni(a | o); + return Ge(e), Z(se(Y.createFunctionExpression(n, i, s, c, l, u, a), t), r) + } + + function ti() { + return ht() ? Pt() : void 0 + } + + function ri(e, t) { + var r, n = ee(), + i = D(), + a = Q.getTokenPos(), + t = ae(18, t); + return t || e ? (e = Q.hasPrecedingLineBreak(), r = Zt(1, C), Dt(18, 19, t, a), t = Z(se(Y.createBlock(r, e), n), i), 63 === X && (K(G.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses), te()), t) : (r = ir(), Z(se(Y.createBlock(r, void 0), n), i)) + } + + function ni(e, t) { + var r = tt(), + n = (He(!!(1 & e)), at()), + i = ($(!!(2 & e)), R), + a = (R = !1, it()), + e = (a && Ge(!1), ri(!!(16 & e), t)); + return a && Ge(!0), R = i, He(r), $(n), e + } + + function ii() { + var e, t, r = ee(), + n = D(), + i = (ae(97), T(133)); + return ae(20), 26 !== X && (e = 113 === X || 119 === X || 85 === X ? ki(!0) : U(4096, H)), Z(se((i ? ae : oe)(162) ? (t = x(function() { + return _e(!0) + }), ae(21), Y.createForOfStatement(i, e, t, C())) : oe(101) ? (t = x(H), ae(21), Y.createForInStatement(e, t, C())) : (ae(26), i = 26 !== X && 21 !== X ? x(H) : void 0, ae(26), t = 21 !== X ? x(H) : void 0, ae(21), Y.createForStatement(e, i, t, C())), r), n) + } + + function ai(e) { + var t = ee(), + r = D(), + n = (ae(249 === e ? 81 : 86), Ct() ? void 0 : ce()); + return kt(), Z(se(249 === e ? Y.createBreakStatement(n) : Y.createContinueStatement(n), t), r) + } + + function oi() { + return 82 === X ? (e = ee(), t = D(), ae(82), r = x(H), ae(58), n = Zt(3, C), Z(se(Y.createCaseClause(r, n), e), t)) : (r = ee(), ae(88), ae(58), n = Zt(3, C), se(Y.createDefaultClause(n), r)); + var e, t, r, n + } + + function si() { + var e, t = ee(), + r = D(), + n = (ae(107), ae(20), x(H)), + i = (ae(21), e = ee(), ae(18), i = Zt(2, oi), ae(19), se(Y.createCaseBlock(i), e)); + return Z(se(Y.createSwitchStatement(n, i), t), r) + } + + function ci() { + var e, t, r, n = ee(), + i = D(), + a = (ae(111), ri(!1)), + o = 83 === X ? (e = ee(), ae(83), oe(20) ? (o = Ei(), ae(21)) : o = void 0, t = ri(!1), se(Y.createCatchClause(o, t), e)) : void 0; + return o && 96 !== X || (ae(96, G.Diagnostics.catch_or_finally_expected), r = ri(!1)), Z(se(Y.createTryStatement(a, o, r), n), i) + } + + function li() { + return te(), G.tokenIsIdentifierOrKeyword(X) && !Q.hasPrecedingLineBreak() + } + + function ui() { + return te(), 84 === X && !Q.hasPrecedingLineBreak() + } + + function _i() { + return te(), 98 === X && !Q.hasPrecedingLineBreak() + } + + function di() { + return te(), (G.tokenIsIdentifierOrKeyword(X) || 8 === X || 9 === X || 10 === X) && !Q.hasPrecedingLineBreak() + } + + function pi() { + for (;;) switch (X) { + case 113: + case 119: + case 85: + case 98: + case 84: + case 92: + return !0; + case 118: + case 154: + return te(), !Q.hasPrecedingLineBreak() && ie(); + case 142: + case 143: + return te(), !Q.hasPrecedingLineBreak() && (ie() || 10 === X); + case 126: + case 127: + case 132: + case 136: + case 121: + case 122: + case 123: + case 146: + if (te(), Q.hasPrecedingLineBreak()) return !1; + continue; + case 159: + return te(), 18 === X || 79 === X || 93 === X; + case 100: + return te(), 10 === X || 41 === X || 18 === X || G.tokenIsIdentifierOrKeyword(X); + case 93: + var e = te(); + if (63 === (e = 154 === e ? re(te) : e) || 41 === e || 18 === e || 88 === e || 128 === e) return !0; + continue; + case 124: + te(); + continue; + default: + return !1 + } + } + + function fi() { + return re(pi) + } + + function gi() { + switch (X) { + case 59: + case 26: + case 18: + case 113: + case 119: + case 98: + case 84: + case 92: + case 99: + case 90: + case 115: + case 97: + case 86: + case 81: + case 105: + case 116: + case 107: + case 109: + case 111: + case 87: + case 83: + case 96: + return !0; + case 100: + return fi() || re(Br); + case 85: + case 93: + return fi(); + case 132: + case 136: + case 118: + case 142: + case 143: + case 154: + case 159: + return !0; + case 127: + case 123: + case 121: + case 122: + case 124: + case 146: + return fi() || !re(li); + default: + return mn() + } + } + + function mi() { + return te(), ht() || 18 === X || 22 === X + } + + function C() { + switch (X) { + case 26: + return f = ee(), g = D(), ae(26), Z(se(Y.createEmptyStatement(), f), g); + case 18: + return ri(!1); + case 113: + return Ai(ee(), D(), void 0, void 0); + case 119: + if (re(mi)) return Ai(ee(), D(), void 0, void 0); + break; + case 98: + return Fi(ee(), D(), void 0, void 0); + case 84: + return Wi(ee(), D(), void 0, void 0); + case 99: + return f = ee(), g = D(), ae(99), _ = Q.getTokenPos(), d = ae(20), p = x(H), Dt(20, 21, d, _), d = C(), _ = oe(91) ? C() : void 0, Z(se(Y.createIfStatement(p, d, _), f), g); + case 90: + return p = ee(), d = D(), ae(90), _ = C(), ae(115), c = Q.getTokenPos(), l = ae(20), u = x(H), Dt(20, 21, l, c), oe(26), Z(se(Y.createDoStatement(_, u), p), d); + case 115: + return l = ee(), c = D(), ae(115), u = Q.getTokenPos(), o = ae(20), s = x(H), Dt(20, 21, o, u), o = C(), Z(se(Y.createWhileStatement(s, o), l), c); + case 97: + return ii(); + case 86: + return ai(248); + case 81: + return ai(249); + case 105: + return s = ee(), o = D(), ae(105), a = Ct() ? void 0 : x(H), kt(), Z(se(Y.createReturnStatement(a), s), o); + case 116: + return a = ee(), t = D(), ae(116), r = Q.getTokenPos(), n = ae(20), i = x(H), Dt(20, 21, n, r), n = U(33554432, C), Z(se(Y.createWithStatement(i, n), a), t); + case 107: + return si(); + case 109: + return r = ee(), i = D(), ae(109), void 0 === (n = Q.hasPrecedingLineBreak() ? void 0 : x(H)) && (fe++, n = se(Y.createIdentifier(""), ee())), Et() || vt(n), Z(se(Y.createThrowStatement(n), r), i); + case 111: + case 83: + case 96: + return ci(); + case 87: + return t = ee(), e = D(), ae(87), kt(), Z(se(Y.createDebuggerStatement(), t), e); + case 59: + return hi(); + case 132: + case 118: + case 154: + case 142: + case 143: + case 136: + case 85: + case 92: + case 93: + case 100: + case 121: + case 122: + case 123: + case 126: + case 127: + case 124: + case 146: + case 159: + if (fi()) return hi() + } + var e, t, r, n, i, a, o, s, c, l, u, _, d, p, f, g, m, y, h, v, b; + return y = ee(), h = D(), v = 20 === X, b = x(H), G.isIdentifier(b) && oe(58) ? m = Y.createLabeledStatement(b, C()) : (Et() || vt(b), m = Y.createExpressionStatement(b), v && (h = !1)), Z(se(m, y), h) + } + + function yi(e) { + return 136 === e.kind + } + + function hi() { + var t, e = ee(), + r = D(), + n = Ji(), + i = Ki(); + if (G.some(i, yi)) { + t = e; + var a = U(16777216, function() { + var e = er(l, t); + if (e) return tr(e) + }); + if (a) return a; + for (var o = 0, s = i; o < s.length; o++) s[o].flags |= 16777216; + return U(16777216, function() { + return vi(e, r, n, i) + }) + } + return vi(e, r, n, i) + } + + function vi(e, t, r, n) { + switch (X) { + case 113: + case 119: + case 85: + return Ai(e, t, r, n); + case 98: + return Fi(e, t, r, n); + case 84: + return Wi(e, t, r, n); + case 118: + return A = e, i = t, F = r, P = n, ae(118), w = ce(), I = Dr(), O = Gi(), M = jr(), (P = Y.createInterfaceDeclaration(P, w, I, O, M)).illegalDecorators = F, Z(se(P, A), i); + case 154: + return w = e, I = t, O = r, M = n, ae(154), F = ce(), P = Dr(), ae(63), A = 139 === X && ne(Hr) || ue(), kt(), (M = Y.createTypeAliasDeclaration(M, F, P, A)).illegalDecorators = O, Z(se(M, w), I); + case 92: + var i = e, + a = t, + o = r, + s = n; + ae(92); + var c = ce(); + return ae(18) ? (l = Qe(40960, function() { + return nr(6, $i) + }), ae(19)) : l = ir(), (s = Y.createEnumDeclaration(s, c, l)).illegalDecorators = o, Z(se(s, i), a); + case 159: + case 142: + case 143: + var c = e, + l = t, + o = r, + s = n, + a = 0; + if (159 === X) return ta(c, l, o, s); + if (oe(143)) a |= 16; + else if (ae(142), 10 === X) return ta(c, l, o, s); + return function e(t, r, n, i, a) { + var o = 16 & a; + var s = ce(); + o = oe(24) ? e(ee(), !1, void 0, void 0, 4 | o) : ea(); + i = Y.createModuleDeclaration(i, s, o, a); + i.illegalDecorators = n; + return Z(se(i, t), r) + }(c, l, o, s, a); + case 100: + var u = e, + _ = t, + d = r, + p = n, + f = (ae(100), Q.getStartPos()); + ie() && (h = ce()); + var L, g = !1; + if (158 === X || "type" !== (null == h ? void 0 : h.escapedText) || !ie() && 41 !== X && 18 !== X || (g = !0, h = ie() ? ce() : void 0), h && 27 !== X && 158 !== X) { + var R = u; + var B = _; + var j = d; + var m = p; + var J = h; + var y = g; + ae(63); + var z = 147 === X && re(ra) ? function() { + var e = ee(), + t = (ae(147), ae(20), sa()); + return ae(21), se(Y.createExternalModuleReference(t), e) + }() : or(!1), + m = (kt(), Y.createImportEqualsDeclaration(m, y, J, z)); + return m.illegalDecorators = j, Z(se(m, R), B); + return + }!h && 41 !== X && 18 !== X || (L = function(e, t, r) { + var n; + e && !oe(27) || (n = 41 === X ? function() { + var e = ee(), + t = (ae(41), ae(128), ce()); + return se(Y.createNamespaceImport(t), e) + }() : ca(272)); + return se(Y.createImportClause(r, e, n), t) + }(h, f, g), ae(158)); + var U, h = sa(); + return 130 !== X || Q.hasPrecedingLineBreak() || (U = oa()), kt(), (f = Y.createImportDeclaration(p, L, h, U)).illegalDecorators = d, Z(se(f, u), _); + case 93: + switch (te(), X) { + case 88: + case 63: + return x = e, D = t, T = r, C = n, k = at(), $(!0), oe(63) ? E = !0 : ae(88), N = _e(!0), kt(), $(k), (k = Y.createExportAssignment(C, E, N)).illegalDecorators = T, Z(se(k, x), D); + case 128: + return C = e, E = t, N = r, T = n, ae(128), ae(143), k = ce(), kt(), (k = Y.createNamespaceExportDeclaration(k)).illegalDecorators = N, k.modifiers = T, Z(se(k, C), E); + default: + var v, b, K, x = e, + D = t, + V = r, + q = n, + W = at(), + H = ($(!0), oe(154)), + S = ee(); + return oe(41) ? (oe(128) && (v = function(e) { + return se(Y.createNamespaceExport(le()), e) + }(S)), ae(158), b = sa()) : (v = ca(276), 158 !== X && (10 !== X || Q.hasPrecedingLineBreak()) || (ae(158), b = sa())), b && 130 === X && !Q.hasPrecedingLineBreak() && (K = oa()), kt(), $(W), (S = Y.createExportDeclaration(q, H, v, b, K)).illegalDecorators = V, Z(se(S, x), D) + } + default: + if (r || n) return y = Nt(279, !0, G.Diagnostics.Declaration_expected), G.setTextRangePos(y, e), y.illegalDecorators = r, y.modifiers = n, y + } + var x, D, T, C, E, k, N, A, i, F, P, w, I, O, M + } + + function bi(e, t) { + if (18 !== X) { + if (4 & e) return void Ar(); + if (Ct()) return void kt() + } + return ni(e, t) + } + + function xi() { + var e, t, r, n = ee(); + return 27 === X ? se(Y.createOmittedExpression(), n) : (e = T(25), t = Ti(), r = yn(), se(Y.createBindingElement(e, void 0, t, r), n)) + } + + function Di() { + var e, t = ee(), + r = T(25), + n = ht(), + i = Ot(), + n = (n && 58 !== X ? (e = i, i = void 0) : (ae(58), e = Ti()), yn()); + return se(Y.createBindingElement(r, i, e, n), t) + } + + function Si() { + return 18 === X || 22 === X || 80 === X || ht() + } + + function Ti(e) { + var t, r; + return 22 === X ? (r = ee(), ae(22), t = nr(10, xi), ae(23), se(Y.createArrayBindingPattern(t), r)) : 18 === X ? (t = ee(), ae(18), r = nr(9, Di), ae(19), se(Y.createObjectBindingPattern(r), t)) : Pt(e) + } + + function Ci() { + return Ei(!0) + } + + function Ei(e) { + var t, r = ee(), + n = D(), + i = Ti(G.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations), + e = (e && 79 === i.kind && 53 === X && !Q.hasPrecedingLineBreak() && (t = _()), fn()), + a = Tn(X) ? void 0 : yn(); + return Z(se(Y.createVariableDeclaration(i, t, e, a), r), n) + } + + function ki(e) { + var t, r, n = ee(), + i = 0; + switch (X) { + case 113: + break; + case 119: + i |= 1; + break; + case 85: + i |= 2; + break; + default: + G.Debug.fail() + } + return te(), 162 === X && re(Ni) ? t = ir() : (r = rt(), We(e), t = nr(8, e ? Ei : Ci), We(r)), se(Y.createVariableDeclarationList(t, i), n) + } + + function Ni() { + return qt() && 21 === te() + } + + function Ai(e, t, r, n) { + var i = ki(!1), + n = (kt(), Y.createVariableStatement(n, i)); + return n.illegalDecorators = r, Z(se(n, e), t) + } + + function Fi(e, t, r, n) { + var i = at(), + a = G.modifiersToFlags(n), + o = (ae(98), T(41)), + s = (1024 & a ? ti : Pt)(), + c = o ? 1 : 0, + l = 512 & a ? 2 : 0, + u = Dr(), + a = (1 & a && $(!0), Nr(c | l)), + _ = Er(58, !1), + c = bi(c | l, G.Diagnostics.or_expected), + l = ($(i), Y.createFunctionDeclaration(n, o, s, u, a, _, c)); + return l.illegalDecorators = r, Z(se(l, e), t) + } + + function Pi(i, a, o, s) { + return ne(function() { + var e, t, r, n; + if (135 === X ? ae(135) : 10 === X && 20 === re(te) && ne(function() { + var e = dr(); + return "constructor" === e.text ? e : void 0 + })) return e = Dr(), n = Nr(0), t = Er(58, !1), r = bi(0, G.Diagnostics.or_expected), (n = Y.createConstructorDeclaration(s, n, r)).illegalDecorators = o, n.typeParameters = e, n.type = t, Z(se(n, i), a) + }) + } + + function wi(e, t, r, n, i, a, o, s, c) { + var l = i ? 1 : 0, + u = G.some(n, G.isAsyncModifier) ? 2 : 0, + _ = Dr(), + d = Nr(l | u), + p = Er(58, !1), + l = bi(l | u, c), + u = Y.createMethodDeclaration(Ui(r, n), i, a, o, _, d, p, l); + return u.exclamationToken = s, Z(se(u, e), t) + } + + function Ii(e, t, r, n, i, a) { + var o, s, c, l = a || Q.hasPrecedingLineBreak() ? void 0 : T(53), + u = fn(), + _ = Qe(45056, yn); + return o = i, s = u, c = _, 59 !== X || Q.hasPrecedingLineBreak() ? 20 === X ? (K(G.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation), te()) : s && !Ct() ? c ? K(G.Diagnostics._0_expected, G.tokenToString(26)) : K(G.Diagnostics.Expected_for_property_initializer) : Et() || (c ? K(G.Diagnostics._0_expected, G.tokenToString(26)) : vt(o)) : K(G.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations), Z(se(Y.createPropertyDeclaration(Ui(r, n), i, a || l, u, _), e), t) + } + + function Oi(e, t, r, n) { + var i = T(41), + a = Ot(), + o = T(57); + return i || 20 === X || 29 === X ? wi(e, t, r, n, i, a, o, void 0, G.Diagnostics.or_expected) : Ii(e, t, r, n, a, o) + } + + function Mi(e, t, r, n, i, a) { + var o = Ot(), + s = Dr(), + c = Nr(0), + l = Er(58, !1), + a = bi(a), + i = 174 === i ? Y.createGetAccessorDeclaration(Ui(r, n), o, c, l, a) : Y.createSetAccessorDeclaration(Ui(r, n), o, c, a); + return i.typeParameters = s, G.isSetAccessorDeclaration(i) && (i.type = l), Z(se(i, e), t) + } + + function Li() { + var e; + if (59 === X) return !0; + for (; G.isModifierKind(X);) { + if (e = X, G.isClassMemberModifier(e)) return !0; + te() + } + if (41 === X) return !0; + if (wt() && (e = X, te()), 22 === X) return !0; + if (void 0 !== e) { + if (!G.isKeyword(e) || 151 === e || 137 === e) return !0; + switch (X) { + case 20: + case 29: + case 53: + case 58: + case 63: + case 57: + return !0; + default: + return Ct() + } + } + return !1 + } + + function Ri(e, t, r, n) { + Tt(124), o = tt(), i = at(), He(!1), $(!0), a = ri(!1), He(o), $(i); + var i, a, o = Z(se(Y.createClassStaticBlockDeclaration(a), e), t); + return o.illegalDecorators = r, o.modifiers = n, o + } + + function Bi() { + var e, t; + return at() && 133 === X ? (e = ee(), t = ce(G.Diagnostics.Expression_expected), te(), qn(e, Un(e, t, !0))) : wn() + } + + function ji() { + var e, t = ee(); + if (oe(59)) return e = U(16384, Bi), se(Y.createDecorator(e), t) + } + + function Ji() { + for (var e, t, r = ee(); t = ji();) e = G.append(e, t); + return e && W(e, r) + } + + function zi(e, t, r) { + var n = ee(), + i = X; + if (85 === X && e) { + if (!ne(Rt)) return + } else { + if (t && 124 === X && re(na)) return; + if (r && 124 === X) return; + if (!G.isModifierKind(X) || !ne(Bt)) return + } + return se(Y.createToken(i), n) + } + + function Ui(e, t) { + var r; + return e ? t ? (r = Y.createNodeArray(G.concatenate(e, t)), G.setTextRangePosEnd(r, e.pos, t.end), r) : e : t + } + + function Ki(e, t) { + for (var r, n, i = ee(), a = !1; n = zi(e, t, a);) 124 === n.kind && (a = !0), r = G.append(r, n); + return r && W(r, i) + } + + function Vi() { + var e; + return 132 === X && (e = ee(), te(), e = W([se(Y.createToken(132), e)], e)), e + } + + function qi() { + var e = ee(); + if (26 === X) return te(), se(Y.createSemicolonClassElement(), e); + var t = D(), + r = Ji(), + n = Ki(!0, !0); + if (124 === X && re(na)) return Ri(e, t, r, n); + if (Lt(137)) return Mi(e, t, r, n, 174, 0); + if (Lt(151)) return Mi(e, t, r, n, 175, 0); + if (135 === X || 10 === X) { + var i = Pi(e, t, r, n); + if (i) return i + } + if (Pr()) return Ir(e, t, r, n); + if (G.tokenIsIdentifierOrKeyword(X) || 10 === X || 8 === X || 41 === X || 22 === X) { + if (G.some(n, yi)) { + for (var a = 0, o = n; a < o.length; a++) o[a].flags |= 16777216; + return U(16777216, function() { + return Oi(e, t, r, n) + }) + } + return Oi(e, t, r, n) + } + return r || n ? (i = Nt(79, !0, G.Diagnostics.Declaration_expected), Ii(e, t, r, n, i, void 0)) : G.Debug.fail("Should not have attempted to parse class member declaration.") + } + + function Wi(e, t, r, n) { + return Hi(e, t, r, n, 260) + } + + function Hi(e, t, r, n, i) { + var a, o = at(), + s = (ae(84), !ht() || 117 === X && re(Wt) ? void 0 : Ft(ht())), + c = Dr(), + l = (G.some(n, G.isExportModifier) && $(!0), Gi()); + return ae(18) ? (a = Zt(5, qi), ae(19)) : a = ir(), $(o), Z(se(260 === i ? Y.createClassDeclaration(Ui(r, n), s, c, l, a) : Y.createClassExpression(Ui(r, n), s, c, l, a), e), t) + } + + function Gi() { + if (Zi()) return Zt(22, Qi) + } + + function Qi() { + var e = ee(), + t = X, + r = (G.Debug.assert(94 === t || 117 === t), te(), nr(7, Xi)); + return se(Y.createHeritageClause(t, r), e) + } + + function Xi() { + var e, t = ee(), + r = wn(); + return 230 === r.kind ? r : (e = Yi(), se(Y.createExpressionWithTypeArguments(r, e), t)) + } + + function Yi() { + return 29 === X ? ar(20, ue, 29, 31) : void 0 + } + + function Zi() { + return 94 === X || 117 === X + } + + function $i() { + var e = ee(), + t = D(), + r = Ot(), + n = x(yn); + return Z(se(Y.createEnumMember(r, n), e), t) + } + + function ea() { + var e, t = ee(); + return ae(18) ? (e = Zt(1, C), ae(19)) : e = ir(), se(Y.createModuleBlock(e), t) + } + + function ta(e, t, r, n) { + var i, a, o = 0, + n = (159 === X ? (i = ce(), o |= 1024) : (i = dr()).text = At(i.text), 18 === X ? a = ea() : kt(), Y.createModuleDeclaration(n, i, a, o)); + return n.illegalDecorators = r, Z(se(n, e), t) + } + + function ra() { + return 20 === te() + } + + function na() { + return 18 === te() + } + + function ia() { + return 43 === te() + } + + function aa() { + var e = ee(), + t = G.tokenIsIdentifierOrKeyword(X) ? le() : fr(10), + r = (ae(58), _e(!0)); + return se(Y.createAssertEntry(t, r), e) + } + + function oa(e) { + var t, r, n, i = ee(), + e = (e || ae(130), Q.getTokenPos()); + return ae(18) ? (t = Q.hasPrecedingLineBreak(), n = nr(24, aa, !0), ae(19) || (r = G.lastOrUndefined(d)) && r.code === G.Diagnostics._0_expected.code && G.addRelatedInfo(r, G.createDetachedDiagnostic(pe, e, 1, G.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}")), se(Y.createAssertClause(n, t), i)) : (n = W([], ee(), void 0, !1), se(Y.createAssertClause(n, !1), i)) + } + + function sa() { + var e; + return 10 === X ? ((e = dr()).text = At(e.text), e) : H() + } + + function ca(e) { + var t = ee(); + return se(272 === e ? Y.createNamedImports(ar(23, ua, 18, 19)) : Y.createNamedExports(ar(23, la, 18, 19)), t) + } + + function la() { + var e = D(); + return Z(_a(278), e) + } + + function ua() { + return _a(273) + } + + function _a(e) { + var t, r, n, i = ee(), + a = G.isKeyword(X) && !ie(), + o = Q.getTokenPos(), + s = Q.getTextPos(), + c = !1, + l = !0, + u = le(); + return "type" === u.escapedText && (128 === X ? (r = le(), 128 === X ? (n = le(), u = G.tokenIsIdentifierOrKeyword(X) ? (c = !0, t = r, _()) : (t = u, n), l = !1) : u = G.tokenIsIdentifierOrKeyword(X) ? (t = u, l = !1, _()) : (c = !0, r)) : G.tokenIsIdentifierOrKeyword(X) && (c = !0, u = _())), l && 128 === X && (t = u, ae(128), u = _()), 273 === e && a && V(o, s, G.Diagnostics.Identifier_expected), se(273 === e ? Y.createImportSpecifier(c, t, u) : Y.createExportSpecifier(c, t, u), i); + + function _() { + return a = G.isKeyword(X) && !ie(), o = Q.getTokenPos(), s = Q.getTextPos(), le() + } + } + + function da(e) { + var t = ee(), + r = (e ? oe : ae)(18), + n = U(8388608, br), + e = (e && !r || xt(19), Y.createJSDocTypeExpression(n)); + return Ke(e), se(e, t) + } + + function pa() { + for (var e = ee(), t = oe(18), r = ee(), n = or(!1); 80 === X;) ft(), q(), n = se(Y.createJSDocMemberName(n, ce()), r); + t && xt(19); + t = Y.createJSDocNameReference(n); + return Ke(t), se(t, e) + } + + function fa(c, e) { + void 0 === c && (c = 0); + var C, l, u, _, d, p, f, g = S, + m = void 0 === e ? g.length : c + e; + if (e = m - c, G.Debug.assert(0 <= c), G.Debug.assert(c <= m), G.Debug.assert(m <= g.length), de(g, c)) return p = [], f = [], Q.scanRange(c + 3, e - 5, function() { + var t, e = 1, + r = c - (g.lastIndexOf("\n", c) + 1) + 4; + + function n(e) { + t = t || r, p.push(e), r += e.length + } + for (q(); J(5);); + J(4) && (r = e = 0); + e: for (;;) { + switch (X) { + case 59: + 0 === e || 1 === e ? (h(p), d = d || ee(), (i = N(r)) && (C ? C.push(i) : (C = [i], l = i.pos), u = i.end), t = void(e = 0)) : n(Q.getTokenText()); + break; + case 4: + p.push(Q.getTokenText()), r = e = 0; + break; + case 41: + var i = Q.getTokenText(); + 1 === e || 2 === e ? (e = 2, n(i)) : (e = 1, r += i.length); + break; + case 5: + var a = Q.getTokenText(); + 2 === e ? p.push(a) : void 0 !== t && r + a.length > t && p.push(a.slice(t - r)), r += a.length; + break; + case 1: + break e; + case 18: + var e = 2, + a = Q.getStartPos(), + o = b(Q.getTextPos() - 1); + if (o) { + _ || y(p), f.push(se(Y.createJSDocText(p.join("")), null != _ ? _ : c, a)), f.push(o), p = [], _ = Q.getTextPos(); + break + } + default: + e = 2, n(Q.getTokenText()) + } + q() + } + h(p), f.length && p.length && f.push(se(Y.createJSDocText(p.join("")), null != _ ? _ : c, d)), f.length && C && G.Debug.assertIsDefined(d, "having parsed tags implies that the end of the comment span should be set"); + var s = C && W(C, l, u); + return se(Y.createJSDocComment(f.length ? W(f, c, d) : p.length ? p.join("") : void 0, s), c, m) + }); + + function y(e) { + for (; e.length && ("\n" === e[0] || "\r" === e[0]);) e.shift() + } + + function h(e) { + for (; e.length && "" === e[e.length - 1].trim();) e.pop() + } + + function n() { + for (;;) { + if (q(), 1 === X) return !0; + if (5 !== X && 4 !== X) return !1 + } + } + + function E() { + if (5 !== X && 4 !== X || !re(n)) + for (; 5 === X || 4 === X;) q() + } + + function k() { + if ((5 === X || 4 === X) && re(n)) return ""; + for (var e = Q.hasPrecedingLineBreak(), t = !1, r = ""; e && 41 === X || 5 === X || 4 === X;) r += Q.getTokenText(), 4 === X ? (t = e = !0, r = "") : 41 === X && (e = !1), q(); + return t ? r : "" + } + + function N(e) { + G.Debug.assert(59 === X); + var t, r, n, i, a, o, s, c, l, u, _, d, p, f, g, m, y, h, v, b, x, D = Q.getTokenPos(), + S = (q(), z(void 0)), + T = k(); + switch (S.escapedText) { + case "author": + t = function(e, t, r, n) { + var i = ee(), + a = function() { + var e = [], + t = !1, + r = Q.getToken(); + for (; 1 !== r && 4 !== r;) { + if (29 === r) t = !0; + else { + if (59 === r && !t) break; + if (31 === r && t) { + e.push(Q.getTokenText()), Q.setTextPos(Q.getTokenPos() + 1); + break + } + } + e.push(Q.getTokenText()), r = q() + } + return Y.createJSDocText(e.join("")) + }(), + o = Q.getStartPos(), + r = A(e, o, r, n); + r || (o = Q.getStartPos()); + n = "string" != typeof r ? W(G.concatenate([se(a, i, o)], r), i) : a.text + r; + return se(Y.createJSDocAuthorTag(t, n), e) + }(D, S, e, T); + break; + case "implements": + y = D, h = S, v = e, b = T, x = L(), t = se(Y.createJSDocImplementsTag(h, x, A(y, ee(), v, b)), y); + break; + case "augments": + case "extends": + h = D, x = S, v = e, b = T, y = L(), t = se(Y.createJSDocAugmentsTag(x, y, A(h, ee(), v, b)), h); + break; + case "class": + case "constructor": + t = R(D, Y.createJSDocClassTag, S, e, T); + break; + case "public": + t = R(D, Y.createJSDocPublicTag, S, e, T); + break; + case "private": + t = R(D, Y.createJSDocPrivateTag, S, e, T); + break; + case "protected": + t = R(D, Y.createJSDocProtectedTag, S, e, T); + break; + case "readonly": + t = R(D, Y.createJSDocReadonlyTag, S, e, T); + break; + case "override": + t = R(D, Y.createJSDocOverrideTag, S, e, T); + break; + case "deprecated": + ge = !0, t = R(D, Y.createJSDocDeprecatedTag, S, e, T); + break; + case "this": + d = D, p = S, f = e, g = T, m = da(!0), E(), t = se(Y.createJSDocThisTag(p, m, A(d, ee(), f, g)), d); + break; + case "enum": + p = D, m = S, f = e, g = T, d = da(!0), E(), t = se(Y.createJSDocEnumTag(m, d, A(p, ee(), f, g)), p); + break; + case "arg": + case "argument": + case "param": + return O(D, S, 2, e); + case "return": + case "returns": + s = D, c = S, l = e, u = T, G.some(C, G.isJSDocReturnTag) && V(c.pos, Q.getTokenPos(), G.Diagnostics._0_tag_already_specified, c.escapedText), _ = w(), t = se(Y.createJSDocReturnTag(c, _, A(s, ee(), l, u)), s); + break; + case "template": + c = D, _ = S, l = e, u = T, s = 18 === X ? da() : void 0, o = function() { + var e = ee(), + t = []; + do { + E(); + var r = function() { + var e = ee(), + t = J(22); + t && E(); + var r, n = z(G.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces); + t && (E(), ae(63), r = U(8388608, br), ae(23)); + if (G.nodeIsMissing(n)) return; + return se(Y.createTypeParameterDeclaration(void 0, n, void 0, r), e) + }() + } while (void 0 !== r && t.push(r), k(), J(27)); + return W(t, e) + }(), t = se(Y.createJSDocTemplateTag(_, s, o, A(c, ee(), l, u)), c); + break; + case "type": + t = M(D, S, e, T); + break; + case "typedef": + t = function(e, t, r, n) { + var i, a = w(), + o = (k(), B()), + s = (E(), F(r)); + if (!a || I(a.type)) { + for (var c, l = void 0, u = void 0, _ = void 0, d = !1; l = ne(function() { + return j(1, r) + });) + if (d = !0, 346 === l.kind) { + if (u) { + var p = K(G.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags); + p && G.addRelatedInfo(p, G.createDetachedDiagnostic(pe, 0, 0, G.Diagnostics.The_tag_was_first_specified_here)); + break + } + u = l + } else _ = G.append(_, l); + d && (c = a && 185 === a.type.kind, c = Y.createJSDocTypeLiteral(_, c), a = u && u.typeExpression && !I(u.typeExpression.type) ? u.typeExpression : se(c, e), c = a.end) + } + c = c || void 0 !== s ? ee() : (null != (i = null != o ? o : a) ? i : t).end, s = s || A(e, c, r, n); + return se(Y.createJSDocTypedefTag(t, a, o, s), e, c) + }(D, S, e, T); + break; + case "callback": + t = function(e, t, r, n) { + var i = B(), + a = (E(), F(r)), + o = function(e) { + var t, r, n = ee(); + for (; t = ne(function() { + return j(4, e) + });) r = G.append(r, t); + return W(r || [], n) + }(r), + s = ne(function() { + if (J(59)) { + var e = N(r); + if (e && 344 === e.kind) return e + } + }), + o = se(Y.createJSDocSignature(void 0, o, s), e); + a = a || A(e, ee(), r, n); + s = void 0 !== a ? ee() : o.end; + return se(Y.createJSDocCallbackTag(t, o, i, a), e, s) + }(D, S, e, T); + break; + case "see": + o = D, r = S, n = e, i = T, a = 22 === X || re(function() { + return 59 === q() && G.tokenIsIdentifierOrKeyword(q()) && P(Q.getTokenValue()) + }) ? void 0 : pa(), n = void 0 !== n && void 0 !== i ? A(o, ee(), n, i) : void 0, t = se(Y.createJSDocSeeTag(r, a, n), o); + break; + default: + i = D, r = e, a = T, t = se(Y.createJSDocUnknownTag(S, A(i, ee(), r, a)), i) + } + return t + } + + function A(e, t, r, n) { + return n || (r += t - e), F(r, n.slice(r)) + } + + function F(t, e) { + var r, n, i = ee(), + a = [], + o = [], + s = 0, + c = !0; + + function l(e) { + n = n || t, a.push(e), t += e.length + } + void 0 !== e && ("" !== e && l(e), s = 1); + var u = X; + e: for (;;) { + switch (u) { + case 4: + s = 0, a.push(Q.getTokenText()), t = 0; + break; + case 59: + if (3 === s || 2 === s && (!c || re(v))) { + a.push(Q.getTokenText()); + break + } + Q.setTextPos(Q.getTextPos() - 1); + case 1: + break e; + case 5: + 2 === s || 3 === s ? l(Q.getTokenText()) : (_ = Q.getTokenText(), void 0 !== n && t + _.length > n && a.push(_.slice(n - t)), t += _.length); + break; + case 18: + var s = 2, + _ = Q.getStartPos(), + d = b(Q.getTextPos() - 1); + d ? (o.push(se(Y.createJSDocText(a.join("")), null != r ? r : i, _)), o.push(d), a = [], r = Q.getTextPos()) : l(Q.getTokenText()); + break; + case 61: + s = 3 === s ? 2 : 3, l(Q.getTokenText()); + break; + case 41: + if (0 === s) { + t += s = 1; + break + } + default: + 3 !== s && (s = 2), l(Q.getTokenText()) + } + c = 5 === X, u = q() + } + return y(a), h(a), o.length ? (a.length && o.push(se(Y.createJSDocText(a.join("")), null != r ? r : i)), W(o, i, Q.getTextPos())) : a.length ? a.join("") : void 0 + } + + function v() { + var e = q(); + return 5 === e || 4 === e + } + + function b(e) { + var t = ne(x); + if (t) { + q(), E(); + var r = ee(), + n = G.tokenIsIdentifierOrKeyword(X) ? or(!0) : void 0; + if (n) + for (; 80 === X;) ft(), q(), n = se(Y.createJSDocMemberName(n, ce()), r); + for (var i = []; 19 !== X && 4 !== X && 1 !== X;) i.push(Q.getTokenText()), q(); + return se(("link" === t ? Y.createJSDocLink : "linkcode" === t ? Y.createJSDocLinkCode : Y.createJSDocLinkPlain)(n, i.join("")), e, Q.getTextPos()) + } + } + + function x() { + if (k(), 18 === X && 59 === q() && G.tokenIsIdentifierOrKeyword(q())) { + var e = Q.getTokenValue(); + if (P(e)) return e + } + } + + function P(e) { + return "link" === e || "linkcode" === e || "linkplain" === e + } + + function w() { + return k(), 18 === X ? da() : void 0 + } + + function D() { + var e = J(22), + t = (e && E(), J(61)), + r = function() { + var e = z(); + oe(22) && ae(23); + for (; oe(24);) { + var t = z(); + oe(22) && ae(23), e = function(e, t) { + return se(Y.createQualifiedName(e, t), e.pos) + }(e, t) + } + return e + }(); + return t && !St(t = 61) && Nt(t, !1, G.Diagnostics._0_expected, G.tokenToString(t)), e && (E(), T(63) && H(), ae(23)), { + name: r, + isBracketed: e + } + } + + function I(e) { + switch (e.kind) { + case 149: + return !0; + case 185: + return I(e.elementType); + default: + return G.isTypeReferenceNode(e) && G.isIdentifier(e.typeName) && "Object" === e.typeName.escapedText && !e.typeArguments + } + } + + function O(e, t, r, n) { + var i = w(), + a = !i, + o = (k(), D()), + s = o.name, + o = o.isBracketed, + c = k(), + c = (a && !re(x) && (i = w()), A(e, ee(), n, c)), + n = 4 !== r && function(e, t, r, n) { + if (e && I(e.type)) { + for (var i = ee(), a = void 0, o = void 0; a = ne(function() { + return j(r, n, t) + });) 343 !== a.kind && 350 !== a.kind || (o = G.append(o, a)); + if (o) return e = se(Y.createJSDocTypeLiteral(o, 185 === e.type.kind), i), se(Y.createJSDocTypeExpression(e), i) + } + }(i, s, r, n); + return n && (i = n, a = !0), se(1 === r ? Y.createJSDocPropertyTag(t, s, o, i, a, c) : Y.createJSDocParameterTag(t, s, o, i, a, c), e) + } + + function M(e, t, r, n) { + G.some(C, G.isJSDocTypeTag) && V(t.pos, Q.getTokenPos(), G.Diagnostics._0_tag_already_specified, t.escapedText); + var i = da(!0), + r = void 0 !== r && void 0 !== n ? A(e, ee(), r, n) : void 0; + return se(Y.createJSDocTypeTag(t, i, r), e) + } + + function L() { + var e = oe(18), + t = ee(), + r = function() { + var e = ee(), + t = z(); + for (; oe(24);) { + var r = z(); + t = se(Y.createPropertyAccessExpression(t, r), e) + } + return t + }(), + n = Yi(), + r = se(Y.createExpressionWithTypeArguments(r, n), t); + return e && ae(19), r + } + + function R(e, t, r, n, i) { + return se(t(r, A(e, ee(), n, i)), e) + } + + function B(e) { + var t, r, n = Q.getTokenPos(); + if (G.tokenIsIdentifierOrKeyword(X)) return t = z(), oe(24) ? (r = B(!0), se(Y.createModuleDeclaration(void 0, t, r, e ? 4 : void 0), n)) : (e && (t.isInJSDocNamespace = !0), t) + } + + function j(e, t, r) { + for (var n, i = !0, a = !1;;) switch (q()) { + case 59: + if (i) return !((n = function(e, t) { + G.Debug.assert(59 === X); + var r, n = Q.getStartPos(), + i = (q(), z()); + switch (E(), i.escapedText) { + case "type": + return 1 === e && M(n, i); + case "prop": + case "property": + r = 1; + break; + case "arg": + case "argument": + case "param": + r = 6; + break; + default: + return !1 + } + return !!(e & r) && O(n, i, e, t) + }(e, t)) && (343 === n.kind || 350 === n.kind) && 4 !== e && r && (G.isIdentifier(n.name) || ! function(e, t) { + for (; !G.isIdentifier(e) || !G.isIdentifier(t);) { + if (G.isIdentifier(e) || G.isIdentifier(t) || e.right.escapedText !== t.right.escapedText) return; + e = e.left, t = t.left + } + return e.escapedText === t.escapedText + }(r, n.name.left))) && n; + a = !1; + break; + case 4: + a = !(i = !0); + break; + case 41: + a && (i = !1), a = !0; + break; + case 79: + i = !1; + break; + case 1: + return !1 + } + } + + function J(e) { + return X === e && (q(), !0) + } + + function z(e) { + if (!G.tokenIsIdentifierOrKeyword(X)) return Nt(79, !e, e || G.Diagnostics.Identifier_expected); + fe++; + var e = Q.getTokenPos(), + t = Q.getTextPos(), + r = X, + n = At(Q.getTokenValue()), + n = se(Y.createIdentifier(n, void 0, r), e, t); + return q(), n + } + } + + function ga(e, t, i, a, o, s) { + function c(e) { + var t = ""; + if (s && ma(e) && (t = a.substring(e.pos, e.end)), e._children && (e._children = void 0), G.setTextRangePosEnd(e, e.pos + i, e.end + i), s && ma(e) && G.Debug.assert(t === o.substring(e.pos, e.end)), Ie(e, c, l), G.hasJSDocNodes(e)) + for (var r = 0, n = e.jsDoc; r < n.length; r++) c(n[r]); + ha(e, s) + } + + function l(e) { + e._children = void 0, G.setTextRangePosEnd(e, e.pos + i, e.end + i); + for (var t = 0, r = e; t < r.length; t++) c(r[t]) + }(t ? l : c)(e) + } + + function ma(e) { + switch (e.kind) { + case 10: + case 8: + case 79: + return 1 + } + } + + function ya(e, t, r, n, i) { + G.Debug.assert(e.end >= t, "Adjusting an element that was entirely before the change range"), G.Debug.assert(e.pos <= r, "Adjusting an element that was entirely after the change range"), G.Debug.assert(e.pos <= e.end); + t = Math.min(e.pos, n), r = e.end >= r ? e.end + i : Math.min(e.end, n); + G.Debug.assert(t <= r), e.parent && (G.Debug.assertGreaterThanOrEqual(t, e.parent.pos), G.Debug.assertLessThanOrEqual(r, e.parent.end)), G.setTextRangePosEnd(e, t, r) + } + + function ha(e, t) { + if (t) { + var r = e.pos, + n = function(e) { + G.Debug.assert(e.pos >= r), r = e.end + }; + if (G.hasJSDocNodes(e)) + for (var i = 0, a = e.jsDoc; i < a.length; i++) n(a[i]); + Ie(e, n), G.Debug.assert(r <= e.end) + } + } + + function va(e, t, r, n) { + var i, e = e.text; + r && (G.Debug.assert(e.length - r.span.length + r.newLength === t.length), n || G.Debug.shouldAssert(3)) && (n = e.substr(0, r.span.start), i = t.substr(0, r.span.start), G.Debug.assert(n === i), n = e.substring(G.textSpanEnd(r.span), e.length), i = t.substring(G.textSpanEnd(G.textChangeRangeNewSpan(r)), t.length), G.Debug.assert(n === i)) + } + + function ba(t) { + var o = t.statements, + s = 0, + c = (G.Debug.assert(s < o.length), o[s]), + r = -1; + return { + currentNode: function(e) { + function n(e) { + return a >= e.pos && a < e.end && (Ie(e, n, i), !0) + } + + function i(e) { + if (a >= e.pos && a < e.end) + for (var t = 0; t < e.length; t++) { + var r = e[t]; + if (r) { + if (r.pos === a) return o = e, s = t, c = r, !0; + if (r.pos < a && a < r.end) return Ie(r, n, i), !0 + } + } + return !1 + } + var a; + return e === r || (c = c && c.end === e && s < o.length - 1 ? o[++s] : c) && c.pos === e || (a = e, s = -1, c = o = void 0, Ie(t, n, i)), r = e, G.Debug.assert(!c || c.pos === e), c + } + } + } + + function xa(e) { + return G.fileExtensionIsOneOf(e, G.supportedDeclarationExtensions) + } + + function Da(e, t) { + for (var r = [], n = 0, i = G.getLeadingCommentRanges(t, 0) || G.emptyArray; n < i.length; n++) { + var a = i[n]; + ! function(e, t, r) { + var n = 2 === t.kind && Ca.exec(r); + if (n) { + var n = n[1].toLowerCase(), + i = G.commentPragmas[n]; + if (i && 1 & i.kind) + if (i.args) { + for (var a = {}, o = 0, s = i.args; o < s.length; o++) { + var c, l = s[o], + u = function(e) { + if (Ta.has(e)) return Ta.get(e); + var t = new RegExp("(\\s".concat(e, "\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"), "im"); + return Ta.set(e, t), t + }(l.name).exec(r); + if (!u && !l.optional) return; + u && (c = u[2] || u[3], l.captureSpan ? (u = t.pos + u.index + u[1].length + 1, a[l.name] = { + value: c, + pos: u, + end: u + c.length + }) : a[l.name] = c) + } + e.push({ + name: n, + args: { + arguments: a, + range: t + } + }) + } else e.push({ + name: n, + args: { + arguments: {}, + range: t + } + }) + } else { + i = 2 === t.kind && Ea.exec(r); + if (i) return ka(e, t, 2, i); + if (3 === t.kind) + for (var _ = /@(\S+)(\s+.*)?$/gim, d = void 0; d = _.exec(r);) ka(e, t, 4, d) + } + }(r, a, t.substring(a.pos, a.end)) + } + e.pragmas = new G.Map; + for (var o = 0, s = r; o < s.length; o++) { + var c, l = s[o]; + e.pragmas.has(l.name) ? (c = e.pragmas.get(l.name)) instanceof Array ? c.push(l.args) : e.pragmas.set(l.name, [c, l.args]) : e.pragmas.set(l.name, l.args) + } + } + + function Sa(c, l) { + c.checkJsDirective = void 0, c.referencedFiles = [], c.typeReferenceDirectives = [], c.libReferenceDirectives = [], c.amdDependencies = [], c.hasNoDefaultLib = !1, c.pragmas.forEach(function(e, t) { + switch (t) { + case "reference": + var a = c.referencedFiles, + o = c.typeReferenceDirectives, + s = c.libReferenceDirectives; + G.forEach(G.toArray(e), function(e) { + var t = e.arguments, + r = t.types, + n = t.lib, + i = t.path, + t = t["resolution-mode"]; + e.arguments["no-default-lib"] ? c.hasNoDefaultLib = !0 : r ? (t = function(e, t, r, n) { + if (e) return "import" === e ? G.ModuleKind.ESNext : "require" === e ? G.ModuleKind.CommonJS : void n(t, r - t, G.Diagnostics.resolution_mode_should_be_either_require_or_import) + }(t, r.pos, r.end, l), o.push(__assign({ + pos: r.pos, + end: r.end, + fileName: r.value + }, t ? { + resolutionMode: t + } : {}))) : n ? s.push({ + pos: n.pos, + end: n.end, + fileName: n.value + }) : i ? a.push({ + pos: i.pos, + end: i.end, + fileName: i.value + }) : l(e.range.pos, e.range.end - e.range.pos, G.Diagnostics.Invalid_reference_directive_syntax) + }); + break; + case "amd-dependency": + c.amdDependencies = G.map(G.toArray(e), function(e) { + return { + name: e.arguments.name, + path: e.arguments.path + } + }); + break; + case "amd-module": + if (e instanceof Array) + for (var r = 0, n = e; r < n.length; r++) { + var i = n[r]; + c.moduleName && l(i.range.pos, i.range.end - i.range.pos, G.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments), c.moduleName = i.arguments.name + } else c.moduleName = e.arguments.name; + break; + case "ts-nocheck": + case "ts-check": + G.forEach(G.toArray(e), function(e) { + (!c.checkJsDirective || e.range.pos > c.checkJsDirective.pos) && (c.checkJsDirective = { + enabled: "ts-check" === t, + end: e.range.end, + pos: e.range.pos + }) + }); + break; + case "jsx": + case "jsxfrag": + case "jsximportsource": + case "jsxruntime": + return; + default: + G.Debug.fail("Unhandled pragma kind") + } + }) + } + G.forEachChild = Ie, G.forEachChildRecursively = function(e, t, r) { + for (var n = Oe(e), i = []; i.length < n.length;) i.push(e); + for (; 0 !== n.length;) { + var a, o = n.pop(), + s = i.pop(); + if (G.isArray(o)) { + if (r) + if (a = r(o, s)) { + if ("skip" === a) continue; + return a + } + for (var c = o.length - 1; 0 <= c; --c) n.push(o[c]), i.push(s) + } else { + if (a = t(o, s)) { + if ("skip" === a) continue; + return a + } + if (163 <= o.kind) + for (var l = 0, u = Oe(o); l < u.length; l++) { + var _ = u[l]; + n.push(_), i.push(o) + } + } + } + }, G.createSourceFile = function(e, t, r, n, i) { + void 0 === n && (n = !1), null !== G.tracing && void 0 !== G.tracing && G.tracing.push("parse", "createSourceFile", { + path: e + }, !0), G.performance.mark("beforeParse"), G.perfLogger.logStartParseSourceFile(e); + var a = (r = "object" == typeof r ? r : { + languageVersion: r + }).languageVersion, + o = r.setExternalModuleIndicator, + s = r.impliedNodeFormat; + return r = 100 === a ? y.parseSourceFile(e, t, a, void 0, n, 6, G.noop) : y.parseSourceFile(e, t, a, void 0, n, i, void 0 === s ? o : function(e) { + return e.impliedNodeFormat = s, (o || Me)(e) + }), G.perfLogger.logStopParseSourceFile(), G.performance.mark("afterParse"), G.performance.measure("Parse", "beforeParse", "afterParse"), null !== G.tracing && void 0 !== G.tracing && G.tracing.pop(), r + }, G.parseIsolatedEntityName = function(e, t) { + return y.parseIsolatedEntityName(e, t) + }, G.parseJsonText = function(e, t) { + return y.parseJsonText(e, t) + }, G.isExternalModule = Le, G.updateSourceFile = function(e, t, r, n) { + return (t = z.updateSourceFile(e, t, r, n = void 0 === n ? !1 : n)).flags |= 6291456 & e.flags, t + }, G.parseIsolatedJSDocComment = function(e, t, r) { + return (e = y.JSDocParser.parseIsolatedJSDocComment(e, t, r)) && e.jsDoc && y.fixupParentReferences(e.jsDoc), e + }, G.parseJSDocTypeExpressionForTests = function(e, t, r) { + return y.JSDocParser.parseJSDocTypeExpressionForTests(e, t, r) + }, e = y = y || {}, Q = G.createScanner(99, !0), E = 20480, Y = G.createNodeFactory(11, { + createBaseSourceFileNode: function(e) { + return Re(new b(e, 0, 0)) + }, + createBaseIdentifierNode: function(e) { + return Re(new h(e, 0, 0)) + }, + createBasePrivateIdentifierNode: function(e) { + return Re(new v(e, 0, 0)) + }, + createBaseTokenNode: function(e) { + return Re(new m(e, 0, 0)) + }, + createBaseNode: function(e) { + return Re(new g(e, 0, 0)) + } + }), B = !(R = !0), e.parseSourceFile = function(e, t, r, n, i, a, o) { + var s; + if (void 0 === i && (i = !1), 6 === (a = G.ensureScriptKind(e, a))) return s = Be(e, t, r, n, i), G.convertToObjectWorker(s, null == (c = s.statements[0]) ? void 0 : c.expression, s.parseDiagnostics, !1, void 0, void 0), s.referencedFiles = G.emptyArray, s.typeReferenceDirectives = G.emptyArray, s.libReferenceDirectives = G.emptyArray, s.amdDependencies = G.emptyArray, s.hasNoDefaultLib = !1, s.pragmas = G.emptyMap, s; + je(e, t, r, n, a); + var c = function(e, t, r, n) { + var i = xa(pe); + i && (p |= 16777216); + k = p, te(); + var a = Zt(0, C), + o = (G.Debug.assert(1 === X), ze(_())), + e = Ve(pe, e, r, i, a, o, k, n); + Da(e, S), Sa(e, function(e, t, r) { + d.push(G.createDetachedDiagnostic(pe, e, t, r)) + }), e.commentDirectives = Q.getCommentDirectives(), e.nodeCount = I, e.identifierCount = fe, e.identifiers = O, e.parseDiagnostics = G.attachFileToDiagnostics(d, e), P && (e.jsDocDiagnostics = G.attachFileToDiagnostics(P, e)); + t && Ke(e); + return e + }(r, i, a, o || Me); + return Je(), c + }, e.parseIsolatedEntityName = function(e, t) { + return je("", e, t, void 0, 1), te(), e = or(!0), t = 1 === X && !d.length, Je(), t ? e : void 0 + }, e.parseJsonText = Be, ge = !1, e.fixupParentReferences = Ke, J = Object.keys(G.textToKeywordObj).filter(function(e) { + return 2 < e.length + }), (e = j = e.JSDocParser || (e.JSDocParser = {})).parseJSDocTypeExpressionForTests = function(e, t, r) { + return je("file.js", e, 99, void 0, 1), Q.setText(e, t, r), X = Q.scan(), e = da(), t = Ve("file.js", 99, 1, !1, [], Y.createToken(1), 0, G.noop), r = G.attachFileToDiagnostics(d, t), P && (t.jsDocDiagnostics = G.attachFileToDiagnostics(P, t)), Je(), e ? { + jsDocTypeExpression: e, + diagnostics: r + } : void 0 + }, e.parseJSDocTypeExpression = da, e.parseJSDocNameReference = pa, e.parseIsolatedJSDocComment = function(e, t, r) { + je("", e, 99, void 0, 1); + var n = U(8388608, function() { + return fa(t, r) + }), + e = G.attachFileToDiagnostics(d, { + languageVariant: 0, + text: e + }); + return Je(), n ? { + jsDoc: n, + diagnostics: e + } : void 0 + }, e.parseJSDocComment = function(e, t, r) { + var n = X, + i = d.length, + a = B, + o = U(8388608, function() { + return fa(t, r) + }); + return G.setParent(o, e), 262144 & p && (P = P || []).push.apply(P, d), X = n, d.length = i, B = a, o + }, (e = z = z || {}).updateSourceFile = function(e, t, r, n) { + var i, a, o, s, c, l, u, _, d, p, f; + return va(e, t, r, n = n || G.Debug.shouldAssert(2)), G.textChangeRangeIsUnchanged(r) ? e : 0 === e.statements.length ? y.parseSourceFile(e.fileName, t, e.languageVersion, void 0, !0, e.scriptKind, e.setExternalModuleIndicator) : (_ = e, G.Debug.assert(!_.hasBeenIncrementallyParsed), _.hasBeenIncrementallyParsed = !0, y.fixupParentReferences(_), d = e.text, p = ba(e), f = function(e, t) { + for (var r = t.span.start, n = 0; 0 < r && n <= 1; n++) { + var i = function(e, r) { + var n, i = e; + Ie(e, function e(t) { + if (G.nodeIsMissing(t)) return; { + if (!(t.pos <= r)) return G.Debug.assert(t.pos > r), !0; { + if (t.pos >= i.pos && (i = t), r < t.end) return Ie(t, e), !0; + G.Debug.assert(t.end <= r), n = t + } + } + }), n && (e = function(e) { + for (;;) { + var t = G.getLastChild(e); + if (!t) return e; + e = t + } + }(n)).pos > i.pos && (i = e); + return i + }(e, r), + i = (G.Debug.assert(i.pos <= r), i.pos); + r = Math.max(0, i - 1) + } + var a = G.createTextSpanFromBounds(r, G.textSpanEnd(t.span)), + t = t.newLength + (t.span.start - r); + return G.createTextChangeRange(a, t) + }(e, r), va(e, t, f, n), G.Debug.assert(f.span.start <= r.span.start), G.Debug.assert(G.textSpanEnd(f.span) === G.textSpanEnd(r.span)), G.Debug.assert(G.textSpanEnd(G.textChangeRangeNewSpan(f)) === G.textSpanEnd(G.textChangeRangeNewSpan(r))), r = G.textChangeRangeNewSpan(f).length - f.span.length, _ = _, i = f.span.start, a = G.textSpanEnd(f.span), o = G.textSpanEnd(G.textChangeRangeNewSpan(f)), s = r, c = d, l = t, u = n, g(_), (_ = y.parseSourceFile(e.fileName, t, e.languageVersion, p, !0, e.scriptKind, e.setExternalModuleIndicator)).commentDirectives = function(e, t, r, n, i, a, o, s) { + if (!e) return t; + for (var c, l = !1, u = 0, _ = e; u < _.length; u++) { + var d = _[u], + p = d.range, + f = d.type; + p.end < r ? c = G.append(c, d) : p.pos > n && (g(), d = { + range: { + pos: p.pos + i, + end: p.end + i + }, + type: f + }, c = G.append(c, d), s) && G.Debug.assert(a.substring(p.pos, p.end) === o.substring(d.range.pos, d.range.end)) + } + return g(), c; + + function g() { + l || (l = !0, c ? t && c.push.apply(c, t) : c = t) + } + }(e.commentDirectives, _.commentDirectives, f.span.start, G.textSpanEnd(f.span), r, d, t, n), _.impliedNodeFormat = e.impliedNodeFormat, _); + + function g(e) { + if (G.Debug.assert(e.pos <= e.end), e.pos > a) ga(e, !1, s, c, l, u); + else { + var t = e.end; + if (i <= t) { + if (e.intersectsChange = !0, e._children = void 0, ya(e, i, a, o, s), Ie(e, g, m), G.hasJSDocNodes(e)) + for (var r = 0, n = e.jsDoc; r < n.length; r++) g(n[r]); + ha(e, u) + } else G.Debug.assert(t < i) + } + } + + function m(e) { + if (G.Debug.assert(e.pos <= e.end), e.pos > a) ga(e, !0, s, c, l, u); + else { + var t = e.end; + if (i <= t) { + e.intersectsChange = !0, e._children = void 0, ya(e, i, a, o, s); + for (var r = 0, n = e; r < n.length; r++) g(n[r]) + } else G.Debug.assert(t < i) + } + } + }, e.createSyntaxCursor = ba, G.isDeclarationFileName = xa, G.processCommentPragmas = Da, G.processPragmasIntoFields = Sa; + var Ta = new G.Map; + var Ca = /^\/\/\/\s*<(\S+)\s.*?\/>/im, + Ea = /^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im; + + function ka(e, t, r, n) { + var i, a; + n && (i = n[1].toLowerCase(), a = G.commentPragmas[i]) && a.kind & r && "fail" !== (r = function(e, t) { + if (!t) return {}; + if (!e.args) return {}; + for (var r = G.trimString(t).split(/\s+/), n = {}, i = 0; i < e.args.length; i++) { + var a = e.args[i]; + if (!r[i] && !a.optional) return "fail"; + if (a.captureSpan) return G.Debug.fail("Capture spans not yet implemented for non-xml pragmas"); + n[a.name] = r[i] + } + return n + }(a, n[2])) && e.push({ + name: i, + args: { + arguments: r, + range: t + } + }) + } + + function Na(e, t) { + return e.kind === t.kind && (79 === e.kind ? e.escapedText === t.escapedText : 108 === e.kind || e.name.escapedText === t.name.escapedText && Na(e.expression, t.expression)) + } + G.tagNamesAreEquivalent = Na + }(ts = ts || {}), ! function(b) { + b.compileOnSaveCommandLineOption = { + name: "compileOnSave", + type: "boolean", + defaultValueDescription: !1 + }; + var e, t = new b.Map(b.getEntries({ + preserve: 1, + "react-native": 3, + react: 2, + "react-jsx": 4, + "react-jsxdev": 5 + })), + r = (b.inverseJsxOptionMap = new b.Map(b.arrayFrom(b.mapIterator(t.entries(), function(e) { + var t = e[0]; + return ["" + e[1], t] + }))), [ + ["es5", "lib.es5.d.ts"], + ["es6", "lib.es2015.d.ts"], + ["es2015", "lib.es2015.d.ts"], + ["es7", "lib.es2016.d.ts"], + ["es2016", "lib.es2016.d.ts"], + ["es2017", "lib.es2017.d.ts"], + ["es2018", "lib.es2018.d.ts"], + ["es2019", "lib.es2019.d.ts"], + ["es2020", "lib.es2020.d.ts"], + ["es2021", "lib.es2021.d.ts"], + ["es2022", "lib.es2022.d.ts"], + ["esnext", "lib.esnext.d.ts"], + ["dom", "lib.dom.d.ts"], + ["dom.iterable", "lib.dom.iterable.d.ts"], + ["webworker", "lib.webworker.d.ts"], + ["webworker.importscripts", "lib.webworker.importscripts.d.ts"], + ["webworker.iterable", "lib.webworker.iterable.d.ts"], + ["scripthost", "lib.scripthost.d.ts"], + ["es2015.core", "lib.es2015.core.d.ts"], + ["es2015.collection", "lib.es2015.collection.d.ts"], + ["es2015.generator", "lib.es2015.generator.d.ts"], + ["es2015.iterable", "lib.es2015.iterable.d.ts"], + ["es2015.promise", "lib.es2015.promise.d.ts"], + ["es2015.proxy", "lib.es2015.proxy.d.ts"], + ["es2015.reflect", "lib.es2015.reflect.d.ts"], + ["es2015.symbol", "lib.es2015.symbol.d.ts"], + ["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"], + ["es2016.array.include", "lib.es2016.array.include.d.ts"], + ["es2017.object", "lib.es2017.object.d.ts"], + ["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"], + ["es2017.string", "lib.es2017.string.d.ts"], + ["es2017.intl", "lib.es2017.intl.d.ts"], + ["es2017.typedarrays", "lib.es2017.typedarrays.d.ts"], + ["es2018.asyncgenerator", "lib.es2018.asyncgenerator.d.ts"], + ["es2018.asynciterable", "lib.es2018.asynciterable.d.ts"], + ["es2018.intl", "lib.es2018.intl.d.ts"], + ["es2018.promise", "lib.es2018.promise.d.ts"], + ["es2018.regexp", "lib.es2018.regexp.d.ts"], + ["es2019.array", "lib.es2019.array.d.ts"], + ["es2019.object", "lib.es2019.object.d.ts"], + ["es2019.string", "lib.es2019.string.d.ts"], + ["es2019.symbol", "lib.es2019.symbol.d.ts"], + ["es2019.intl", "lib.es2019.intl.d.ts"], + ["es2020.bigint", "lib.es2020.bigint.d.ts"], + ["es2020.date", "lib.es2020.date.d.ts"], + ["es2020.promise", "lib.es2020.promise.d.ts"], + ["es2020.sharedmemory", "lib.es2020.sharedmemory.d.ts"], + ["es2020.string", "lib.es2020.string.d.ts"], + ["es2020.symbol.wellknown", "lib.es2020.symbol.wellknown.d.ts"], + ["es2020.intl", "lib.es2020.intl.d.ts"], + ["es2020.number", "lib.es2020.number.d.ts"], + ["es2021.promise", "lib.es2021.promise.d.ts"], + ["es2021.string", "lib.es2021.string.d.ts"], + ["es2021.weakref", "lib.es2021.weakref.d.ts"], + ["es2021.intl", "lib.es2021.intl.d.ts"], + ["es2022.array", "lib.es2022.array.d.ts"], + ["es2022.error", "lib.es2022.error.d.ts"], + ["es2022.intl", "lib.es2022.intl.d.ts"], + ["es2022.object", "lib.es2022.object.d.ts"], + ["es2022.sharedmemory", "lib.es2022.sharedmemory.d.ts"], + ["es2022.string", "lib.es2022.string.d.ts"], + ["esnext.array", "lib.es2022.array.d.ts"], + ["esnext.symbol", "lib.es2019.symbol.d.ts"], + ["esnext.asynciterable", "lib.es2018.asynciterable.d.ts"], + ["esnext.intl", "lib.esnext.intl.d.ts"], + ["esnext.bigint", "lib.es2020.bigint.d.ts"], + ["esnext.string", "lib.es2022.string.d.ts"], + ["esnext.promise", "lib.es2021.promise.d.ts"], + ["esnext.weakref", "lib.es2021.weakref.d.ts"] + ]), + g = (b.libs = r.map(function(e) { + return e[0] + }), b.libMap = new b.Map(r), b.optionsForWatch = [{ + name: "watchFile", + type: new b.Map(b.getEntries({ + fixedpollinginterval: b.WatchFileKind.FixedPollingInterval, + prioritypollinginterval: b.WatchFileKind.PriorityPollingInterval, + dynamicprioritypolling: b.WatchFileKind.DynamicPriorityPolling, + fixedchunksizepolling: b.WatchFileKind.FixedChunkSizePolling, + usefsevents: b.WatchFileKind.UseFsEvents, + usefseventsonparentdirectory: b.WatchFileKind.UseFsEventsOnParentDirectory + })), + category: b.Diagnostics.Watch_and_Build_Modes, + description: b.Diagnostics.Specify_how_the_TypeScript_watch_mode_works, + defaultValueDescription: b.WatchFileKind.UseFsEvents + }, { + name: "watchDirectory", + type: new b.Map(b.getEntries({ + usefsevents: b.WatchDirectoryKind.UseFsEvents, + fixedpollinginterval: b.WatchDirectoryKind.FixedPollingInterval, + dynamicprioritypolling: b.WatchDirectoryKind.DynamicPriorityPolling, + fixedchunksizepolling: b.WatchDirectoryKind.FixedChunkSizePolling + })), + category: b.Diagnostics.Watch_and_Build_Modes, + description: b.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality, + defaultValueDescription: b.WatchDirectoryKind.UseFsEvents + }, { + name: "fallbackPolling", + type: new b.Map(b.getEntries({ + fixedinterval: b.PollingWatchKind.FixedInterval, + priorityinterval: b.PollingWatchKind.PriorityInterval, + dynamicpriority: b.PollingWatchKind.DynamicPriority, + fixedchunksize: b.PollingWatchKind.FixedChunkSize + })), + category: b.Diagnostics.Watch_and_Build_Modes, + description: b.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers, + defaultValueDescription: b.PollingWatchKind.PriorityInterval + }, { + name: "synchronousWatchDirectory", + type: "boolean", + category: b.Diagnostics.Watch_and_Build_Modes, + description: b.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively, + defaultValueDescription: !1 + }, { + name: "excludeDirectories", + type: "list", + element: { + name: "excludeDirectory", + type: "string", + isFilePath: !0, + extraValidation: M + }, + category: b.Diagnostics.Watch_and_Build_Modes, + description: b.Diagnostics.Remove_a_list_of_directories_from_the_watch_process + }, { + name: "excludeFiles", + type: "list", + element: { + name: "excludeFile", + type: "string", + isFilePath: !0, + extraValidation: M + }, + category: b.Diagnostics.Watch_and_Build_Modes, + description: b.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing + }], b.commonOptionsWithBuild = [{ + name: "help", + shortName: "h", + type: "boolean", + showInSimplifiedHelpView: !0, + isCommandLineOnly: !0, + category: b.Diagnostics.Command_line_Options, + description: b.Diagnostics.Print_this_message, + defaultValueDescription: !1 + }, { + name: "help", + shortName: "?", + type: "boolean", + isCommandLineOnly: !0, + category: b.Diagnostics.Command_line_Options, + defaultValueDescription: !1 + }, { + name: "watch", + shortName: "w", + type: "boolean", + showInSimplifiedHelpView: !0, + isCommandLineOnly: !0, + category: b.Diagnostics.Command_line_Options, + description: b.Diagnostics.Watch_input_files, + defaultValueDescription: !1 + }, { + name: "preserveWatchOutput", + type: "boolean", + showInSimplifiedHelpView: !1, + category: b.Diagnostics.Output_Formatting, + description: b.Diagnostics.Disable_wiping_the_console_in_watch_mode, + defaultValueDescription: !1 + }, { + name: "listFiles", + type: "boolean", + category: b.Diagnostics.Compiler_Diagnostics, + description: b.Diagnostics.Print_all_of_the_files_read_during_the_compilation, + defaultValueDescription: !1 + }, { + name: "explainFiles", + type: "boolean", + category: b.Diagnostics.Compiler_Diagnostics, + description: b.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included, + defaultValueDescription: !1 + }, { + name: "listEmittedFiles", + type: "boolean", + category: b.Diagnostics.Compiler_Diagnostics, + description: b.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation, + defaultValueDescription: !1 + }, { + name: "pretty", + type: "boolean", + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Output_Formatting, + description: b.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read, + defaultValueDescription: !0 + }, { + name: "traceResolution", + type: "boolean", + category: b.Diagnostics.Compiler_Diagnostics, + description: b.Diagnostics.Log_paths_used_during_the_moduleResolution_process, + defaultValueDescription: !1 + }, { + name: "diagnostics", + type: "boolean", + category: b.Diagnostics.Compiler_Diagnostics, + description: b.Diagnostics.Output_compiler_performance_information_after_building, + defaultValueDescription: !1 + }, { + name: "extendedDiagnostics", + type: "boolean", + category: b.Diagnostics.Compiler_Diagnostics, + description: b.Diagnostics.Output_more_detailed_compiler_performance_information_after_building, + defaultValueDescription: !1 + }, { + name: "generateCpuProfile", + type: "string", + isFilePath: !0, + paramType: b.Diagnostics.FILE_OR_DIRECTORY, + category: b.Diagnostics.Compiler_Diagnostics, + description: b.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging, + defaultValueDescription: "profile.cpuprofile" + }, { + name: "generateTrace", + type: "string", + isFilePath: !0, + isCommandLineOnly: !0, + paramType: b.Diagnostics.DIRECTORY, + category: b.Diagnostics.Compiler_Diagnostics, + description: b.Diagnostics.Generates_an_event_trace_and_a_list_of_types + }, { + name: "incremental", + shortName: "i", + type: "boolean", + category: b.Diagnostics.Projects, + description: b.Diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects, + transpileOptionValue: void 0, + defaultValueDescription: b.Diagnostics.false_unless_composite_is_set + }, { + name: "assumeChangesOnlyAffectDirectDependencies", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Watch_and_Build_Modes, + description: b.Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it, + defaultValueDescription: !1 + }, { + name: "locale", + type: "string", + category: b.Diagnostics.Command_line_Options, + isCommandLineOnly: !0, + description: b.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit, + defaultValueDescription: b.Diagnostics.Platform_specific + }], b.targetOptionDeclaration = { + name: "target", + shortName: "t", + type: new b.Map(b.getEntries({ + es3: 0, + es5: 1, + es6: 2, + es2015: 2, + es2016: 3, + es2017: 4, + es2018: 5, + es2019: 6, + es2020: 7, + es2021: 8, + es2022: 9, + esnext: 99 + })), + affectsSourceFile: !0, + affectsModuleResolution: !0, + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + paramType: b.Diagnostics.VERSION, + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Language_and_Environment, + description: b.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations, + defaultValueDescription: 0 + }, b.moduleOptionDeclaration = { + name: "module", + shortName: "m", + type: new b.Map(b.getEntries({ + none: b.ModuleKind.None, + commonjs: b.ModuleKind.CommonJS, + amd: b.ModuleKind.AMD, + system: b.ModuleKind.System, + umd: b.ModuleKind.UMD, + es6: b.ModuleKind.ES2015, + es2015: b.ModuleKind.ES2015, + es2020: b.ModuleKind.ES2020, + es2022: b.ModuleKind.ES2022, + esnext: b.ModuleKind.ESNext, + node16: b.ModuleKind.Node16, + nodenext: b.ModuleKind.NodeNext + })), + affectsModuleResolution: !0, + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + paramType: b.Diagnostics.KIND, + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Modules, + description: b.Diagnostics.Specify_what_module_code_is_generated, + defaultValueDescription: void 0 + }, [{ + name: "all", + type: "boolean", + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Command_line_Options, + description: b.Diagnostics.Show_all_compiler_options, + defaultValueDescription: !1 + }, { + name: "version", + shortName: "v", + type: "boolean", + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Command_line_Options, + description: b.Diagnostics.Print_the_compiler_s_version, + defaultValueDescription: !1 + }, { + name: "init", + type: "boolean", + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Command_line_Options, + description: b.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file, + defaultValueDescription: !1 + }, { + name: "project", + shortName: "p", + type: "string", + isFilePath: !0, + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Command_line_Options, + paramType: b.Diagnostics.FILE_OR_DIRECTORY, + description: b.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json + }, { + name: "build", + type: "boolean", + shortName: "b", + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Command_line_Options, + description: b.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date, + defaultValueDescription: !1 + }, { + name: "showConfig", + type: "boolean", + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Command_line_Options, + isCommandLineOnly: !0, + description: b.Diagnostics.Print_the_final_configuration_instead_of_building, + defaultValueDescription: !1 + }, { + name: "listFilesOnly", + type: "boolean", + category: b.Diagnostics.Command_line_Options, + affectsSemanticDiagnostics: !0, + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + isCommandLineOnly: !0, + description: b.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing, + defaultValueDescription: !1 + }, b.targetOptionDeclaration, b.moduleOptionDeclaration, { + name: "lib", + type: "list", + element: { + name: "lib", + type: b.libMap, + defaultValueDescription: void 0 + }, + affectsProgramStructure: !0, + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Language_and_Environment, + description: b.Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment, + transpileOptionValue: void 0 + }, { + name: "allowJs", + type: "boolean", + affectsModuleResolution: !0, + showInSimplifiedHelpView: !0, + category: b.Diagnostics.JavaScript_Support, + description: b.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files, + defaultValueDescription: !1 + }, { + name: "checkJs", + type: "boolean", + showInSimplifiedHelpView: !0, + category: b.Diagnostics.JavaScript_Support, + description: b.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files, + defaultValueDescription: !1 + }, { + name: "jsx", + type: t, + affectsSourceFile: !0, + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + affectsModuleResolution: !0, + paramType: b.Diagnostics.KIND, + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Language_and_Environment, + description: b.Diagnostics.Specify_what_JSX_code_is_generated, + defaultValueDescription: void 0 + }, { + name: "declaration", + shortName: "d", + type: "boolean", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Emit, + transpileOptionValue: void 0, + description: b.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project, + defaultValueDescription: b.Diagnostics.false_unless_composite_is_set + }, { + name: "declarationMap", + type: "boolean", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Emit, + transpileOptionValue: void 0, + defaultValueDescription: !1, + description: b.Diagnostics.Create_sourcemaps_for_d_ts_files + }, { + name: "emitDeclarationOnly", + type: "boolean", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files, + transpileOptionValue: void 0, + defaultValueDescription: !1 + }, { + name: "sourceMap", + type: "boolean", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Emit, + defaultValueDescription: !1, + description: b.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files + }, { + name: "outFile", + type: "string", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + affectsDeclarationPath: !0, + affectsBundleEmitBuildInfo: !0, + isFilePath: !0, + paramType: b.Diagnostics.FILE, + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output, + transpileOptionValue: void 0 + }, { + name: "outDir", + type: "string", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + affectsDeclarationPath: !0, + isFilePath: !0, + paramType: b.Diagnostics.DIRECTORY, + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Specify_an_output_folder_for_all_emitted_files + }, { + name: "rootDir", + type: "string", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + affectsDeclarationPath: !0, + isFilePath: !0, + paramType: b.Diagnostics.LOCATION, + category: b.Diagnostics.Modules, + description: b.Diagnostics.Specify_the_root_folder_within_your_source_files, + defaultValueDescription: b.Diagnostics.Computed_from_the_list_of_input_files + }, { + name: "composite", + type: "boolean", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + affectsBundleEmitBuildInfo: !0, + isTSConfigOnly: !0, + category: b.Diagnostics.Projects, + transpileOptionValue: void 0, + defaultValueDescription: !1, + description: b.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references + }, { + name: "tsBuildInfoFile", + type: "string", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + affectsBundleEmitBuildInfo: !0, + isFilePath: !0, + paramType: b.Diagnostics.FILE, + category: b.Diagnostics.Projects, + transpileOptionValue: void 0, + defaultValueDescription: ".tsbuildinfo", + description: b.Diagnostics.Specify_the_path_to_tsbuildinfo_incremental_compilation_file + }, { + name: "removeComments", + type: "boolean", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Emit, + defaultValueDescription: !1, + description: b.Diagnostics.Disable_emitting_comments + }, { + name: "noEmit", + type: "boolean", + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Disable_emitting_files_from_a_compilation, + transpileOptionValue: void 0, + defaultValueDescription: !1 + }, { + name: "importHelpers", + type: "boolean", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file, + defaultValueDescription: !1 + }, { + name: "importsNotUsedAsValues", + type: new b.Map(b.getEntries({ + remove: 0, + preserve: 1, + error: 2 + })), + affectsEmit: !0, + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types, + defaultValueDescription: 0 + }, { + name: "downlevelIteration", + type: "boolean", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration, + defaultValueDescription: !1 + }, { + name: "isolatedModules", + type: "boolean", + category: b.Diagnostics.Interop_Constraints, + description: b.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports, + transpileOptionValue: !0, + defaultValueDescription: !1 + }, { + name: "strict", + type: "boolean", + affectsMultiFileEmitBuildInfo: !0, + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Enable_all_strict_type_checking_options, + defaultValueDescription: !1 + }, { + name: "noImplicitAny", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + strictFlag: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type, + defaultValueDescription: b.Diagnostics.false_unless_strict_is_set + }, { + name: "strictNullChecks", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + strictFlag: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.When_type_checking_take_into_account_null_and_undefined, + defaultValueDescription: b.Diagnostics.false_unless_strict_is_set + }, { + name: "strictFunctionTypes", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + strictFlag: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible, + defaultValueDescription: b.Diagnostics.false_unless_strict_is_set + }, { + name: "strictBindCallApply", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + strictFlag: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function, + defaultValueDescription: b.Diagnostics.false_unless_strict_is_set + }, { + name: "strictPropertyInitialization", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + strictFlag: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor, + defaultValueDescription: b.Diagnostics.false_unless_strict_is_set + }, { + name: "noImplicitThis", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + strictFlag: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any, + defaultValueDescription: b.Diagnostics.false_unless_strict_is_set + }, { + name: "useUnknownInCatchVariables", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + strictFlag: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any, + defaultValueDescription: !1 + }, { + name: "alwaysStrict", + type: "boolean", + affectsSourceFile: !0, + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + strictFlag: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Ensure_use_strict_is_always_emitted, + defaultValueDescription: b.Diagnostics.false_unless_strict_is_set + }, { + name: "noUnusedLocals", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read, + defaultValueDescription: !1 + }, { + name: "noUnusedParameters", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read, + defaultValueDescription: !1 + }, { + name: "exactOptionalPropertyTypes", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined, + defaultValueDescription: !1 + }, { + name: "noImplicitReturns", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function, + defaultValueDescription: !1 + }, { + name: "noFallthroughCasesInSwitch", + type: "boolean", + affectsBindDiagnostics: !0, + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements, + defaultValueDescription: !1 + }, { + name: "noUncheckedIndexedAccess", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index, + defaultValueDescription: !1 + }, { + name: "noImplicitOverride", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier, + defaultValueDescription: !1 + }, { + name: "noPropertyAccessFromIndexSignature", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + showInSimplifiedHelpView: !1, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type, + defaultValueDescription: !1 + }, { + name: "moduleResolution", + type: new b.Map(b.getEntries({ + node: b.ModuleResolutionKind.NodeJs, + classic: b.ModuleResolutionKind.Classic, + node16: b.ModuleResolutionKind.Node16, + nodenext: b.ModuleResolutionKind.NodeNext + })), + affectsModuleResolution: !0, + paramType: b.Diagnostics.STRATEGY, + category: b.Diagnostics.Modules, + description: b.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier, + defaultValueDescription: b.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node + }, { + name: "baseUrl", + type: "string", + affectsModuleResolution: !0, + isFilePath: !0, + category: b.Diagnostics.Modules, + description: b.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names + }, { + name: "paths", + type: "object", + affectsModuleResolution: !0, + isTSConfigOnly: !0, + category: b.Diagnostics.Modules, + description: b.Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations, + transpileOptionValue: void 0 + }, { + name: "rootDirs", + type: "list", + isTSConfigOnly: !0, + element: { + name: "rootDirs", + type: "string", + isFilePath: !0 + }, + affectsModuleResolution: !0, + category: b.Diagnostics.Modules, + description: b.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules, + transpileOptionValue: void 0, + defaultValueDescription: b.Diagnostics.Computed_from_the_list_of_input_files + }, { + name: "typeRoots", + type: "list", + element: { + name: "typeRoots", + type: "string", + isFilePath: !0 + }, + affectsModuleResolution: !0, + category: b.Diagnostics.Modules, + description: b.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types + }, { + name: "types", + type: "list", + element: { + name: "types", + type: "string" + }, + affectsProgramStructure: !0, + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Modules, + description: b.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file, + transpileOptionValue: void 0 + }, { + name: "allowSyntheticDefaultImports", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Interop_Constraints, + description: b.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export, + defaultValueDescription: b.Diagnostics.module_system_or_esModuleInterop + }, { + name: "esModuleInterop", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + showInSimplifiedHelpView: !0, + category: b.Diagnostics.Interop_Constraints, + description: b.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility, + defaultValueDescription: !1 + }, { + name: "preserveSymlinks", + type: "boolean", + category: b.Diagnostics.Interop_Constraints, + description: b.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node, + defaultValueDescription: !1 + }, { + name: "allowUmdGlobalAccess", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Modules, + description: b.Diagnostics.Allow_accessing_UMD_globals_from_modules, + defaultValueDescription: !1 + }, { + name: "moduleSuffixes", + type: "list", + element: { + name: "suffix", + type: "string" + }, + listPreserveFalsyValues: !0, + affectsModuleResolution: !0, + category: b.Diagnostics.Modules, + description: b.Diagnostics.List_of_file_name_suffixes_to_search_when_resolving_a_module + }, { + name: "sourceRoot", + type: "string", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + paramType: b.Diagnostics.LOCATION, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code + }, { + name: "mapRoot", + type: "string", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + paramType: b.Diagnostics.LOCATION, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations + }, { + name: "inlineSourceMap", + type: "boolean", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript, + defaultValueDescription: !1 + }, { + name: "inlineSources", + type: "boolean", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript, + defaultValueDescription: !1 + }, { + name: "experimentalDecorators", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Language_and_Environment, + description: b.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators, + defaultValueDescription: !1 + }, { + name: "emitDecoratorMetadata", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Language_and_Environment, + description: b.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files, + defaultValueDescription: !1 + }, { + name: "jsxFactory", + type: "string", + category: b.Diagnostics.Language_and_Environment, + description: b.Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h, + defaultValueDescription: "`React.createElement`" + }, { + name: "jsxFragmentFactory", + type: "string", + category: b.Diagnostics.Language_and_Environment, + description: b.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment, + defaultValueDescription: "React.Fragment" + }, { + name: "jsxImportSource", + type: "string", + affectsSemanticDiagnostics: !0, + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + affectsModuleResolution: !0, + category: b.Diagnostics.Language_and_Environment, + description: b.Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk, + defaultValueDescription: "react" + }, { + name: "resolveJsonModule", + type: "boolean", + affectsModuleResolution: !0, + category: b.Diagnostics.Modules, + description: b.Diagnostics.Enable_importing_json_files, + defaultValueDescription: !1 + }, { + name: "out", + type: "string", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + affectsDeclarationPath: !0, + affectsBundleEmitBuildInfo: !0, + isFilePath: !1, + category: b.Diagnostics.Backwards_Compatibility, + paramType: b.Diagnostics.FILE, + transpileOptionValue: void 0, + description: b.Diagnostics.Deprecated_setting_Use_outFile_instead + }, { + name: "reactNamespace", + type: "string", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Language_and_Environment, + description: b.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit, + defaultValueDescription: "`React`" + }, { + name: "skipDefaultLibCheck", + type: "boolean", + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Completeness, + description: b.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript, + defaultValueDescription: !1 + }, { + name: "charset", + type: "string", + category: b.Diagnostics.Backwards_Compatibility, + description: b.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files, + defaultValueDescription: "utf8" + }, { + name: "emitBOM", + type: "boolean", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files, + defaultValueDescription: !1 + }, { + name: "newLine", + type: new b.Map(b.getEntries({ + crlf: 0, + lf: 1 + })), + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + paramType: b.Diagnostics.NEWLINE, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Set_the_newline_character_for_emitting_files, + defaultValueDescription: b.Diagnostics.Platform_specific + }, { + name: "noErrorTruncation", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Output_Formatting, + description: b.Diagnostics.Disable_truncating_types_in_error_messages, + defaultValueDescription: !1 + }, { + name: "noLib", + type: "boolean", + category: b.Diagnostics.Language_and_Environment, + affectsProgramStructure: !0, + description: b.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts, + transpileOptionValue: !0, + defaultValueDescription: !1 + }, { + name: "noResolve", + type: "boolean", + affectsModuleResolution: !0, + category: b.Diagnostics.Modules, + description: b.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project, + transpileOptionValue: !0, + defaultValueDescription: !1 + }, { + name: "stripInternal", + type: "boolean", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments, + defaultValueDescription: !1 + }, { + name: "disableSizeLimit", + type: "boolean", + affectsProgramStructure: !0, + category: b.Diagnostics.Editor_Support, + description: b.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server, + defaultValueDescription: !1 + }, { + name: "disableSourceOfProjectReferenceRedirect", + type: "boolean", + isTSConfigOnly: !0, + category: b.Diagnostics.Projects, + description: b.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects, + defaultValueDescription: !1 + }, { + name: "disableSolutionSearching", + type: "boolean", + isTSConfigOnly: !0, + category: b.Diagnostics.Projects, + description: b.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing, + defaultValueDescription: !1 + }, { + name: "disableReferencedProjectLoad", + type: "boolean", + isTSConfigOnly: !0, + category: b.Diagnostics.Projects, + description: b.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript, + defaultValueDescription: !1 + }, { + name: "noImplicitUseStrict", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Backwards_Compatibility, + description: b.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files, + defaultValueDescription: !1 + }, { + name: "noEmitHelpers", + type: "boolean", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output, + defaultValueDescription: !1 + }, { + name: "noEmitOnError", + type: "boolean", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Emit, + transpileOptionValue: void 0, + description: b.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported, + defaultValueDescription: !1 + }, { + name: "preserveConstEnums", + type: "boolean", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code, + defaultValueDescription: !1 + }, { + name: "declarationDir", + type: "string", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + affectsDeclarationPath: !0, + isFilePath: !0, + paramType: b.Diagnostics.DIRECTORY, + category: b.Diagnostics.Emit, + transpileOptionValue: void 0, + description: b.Diagnostics.Specify_the_output_directory_for_generated_declaration_files + }, { + name: "skipLibCheck", + type: "boolean", + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Completeness, + description: b.Diagnostics.Skip_type_checking_all_d_ts_files, + defaultValueDescription: !1 + }, { + name: "allowUnusedLabels", + type: "boolean", + affectsBindDiagnostics: !0, + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Disable_error_reporting_for_unused_labels, + defaultValueDescription: void 0 + }, { + name: "allowUnreachableCode", + type: "boolean", + affectsBindDiagnostics: !0, + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Type_Checking, + description: b.Diagnostics.Disable_error_reporting_for_unreachable_code, + defaultValueDescription: void 0 + }, { + name: "suppressExcessPropertyErrors", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Backwards_Compatibility, + description: b.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals, + defaultValueDescription: !1 + }, { + name: "suppressImplicitAnyIndexErrors", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Backwards_Compatibility, + description: b.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures, + defaultValueDescription: !1 + }, { + name: "forceConsistentCasingInFileNames", + type: "boolean", + affectsModuleResolution: !0, + category: b.Diagnostics.Interop_Constraints, + description: b.Diagnostics.Ensure_that_casing_is_correct_in_imports, + defaultValueDescription: !1 + }, { + name: "maxNodeModuleJsDepth", + type: "number", + affectsModuleResolution: !0, + category: b.Diagnostics.JavaScript_Support, + description: b.Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs, + defaultValueDescription: 0 + }, { + name: "noStrictGenericChecks", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Backwards_Compatibility, + description: b.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types, + defaultValueDescription: !1 + }, { + name: "useDefineForClassFields", + type: "boolean", + affectsSemanticDiagnostics: !0, + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Language_and_Environment, + description: b.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields, + defaultValueDescription: b.Diagnostics.true_for_ES2022_and_above_including_ESNext + }, { + name: "preserveValueImports", + type: "boolean", + affectsEmit: !0, + affectsMultiFileEmitBuildInfo: !0, + category: b.Diagnostics.Emit, + description: b.Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed, + defaultValueDescription: !1 + }, { + name: "keyofStringsOnly", + type: "boolean", + category: b.Diagnostics.Backwards_Compatibility, + description: b.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option, + defaultValueDescription: !1 + }, { + name: "plugins", + type: "list", + isTSConfigOnly: !0, + element: { + name: "plugin", + type: "object" + }, + description: b.Diagnostics.Specify_a_list_of_language_service_plugins_to_include, + category: b.Diagnostics.Editor_Support + }, { + name: "moduleDetection", + type: new b.Map(b.getEntries({ + auto: b.ModuleDetectionKind.Auto, + legacy: b.ModuleDetectionKind.Legacy, + force: b.ModuleDetectionKind.Force + })), + affectsModuleResolution: !0, + description: b.Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files, + category: b.Diagnostics.Language_and_Environment, + defaultValueDescription: b.Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules + }]); + + function n(e) { + var t = new b.Map, + r = new b.Map; + return b.forEach(e, function(e) { + t.set(e.name.toLowerCase(), e), e.shortName && r.set(e.shortName, e.name) + }), { + optionsNameMap: t, + shortOptionNames: r + } + } + + function a() { + return e = e || n(b.optionDeclarations) + } + b.optionDeclarations = __spreadArray(__spreadArray([], b.commonOptionsWithBuild, !0), g, !0), b.semanticDiagnosticsOptionDeclarations = b.optionDeclarations.filter(function(e) { + return !!e.affectsSemanticDiagnostics + }), b.affectsEmitOptionDeclarations = b.optionDeclarations.filter(function(e) { + return !!e.affectsEmit + }), b.affectsDeclarationPathOptionDeclarations = b.optionDeclarations.filter(function(e) { + return !!e.affectsDeclarationPath + }), b.moduleResolutionOptionDeclarations = b.optionDeclarations.filter(function(e) { + return !!e.affectsModuleResolution + }), b.sourceFileAffectingCompilerOptions = b.optionDeclarations.filter(function(e) { + return !!e.affectsSourceFile || !!e.affectsModuleResolution || !!e.affectsBindDiagnostics + }), b.optionsAffectingProgramStructure = b.optionDeclarations.filter(function(e) { + return !!e.affectsProgramStructure + }), b.transpileOptionValueCompilerOptions = b.optionDeclarations.filter(function(e) { + return b.hasProperty(e, "transpileOptionValue") + }), b.optionsForBuild = [{ + name: "verbose", + shortName: "v", + category: b.Diagnostics.Command_line_Options, + description: b.Diagnostics.Enable_verbose_logging, + type: "boolean", + defaultValueDescription: !1 + }, { + name: "dry", + shortName: "d", + category: b.Diagnostics.Command_line_Options, + description: b.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean, + type: "boolean", + defaultValueDescription: !1 + }, { + name: "force", + shortName: "f", + category: b.Diagnostics.Command_line_Options, + description: b.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date, + type: "boolean", + defaultValueDescription: !1 + }, { + name: "clean", + category: b.Diagnostics.Command_line_Options, + description: b.Diagnostics.Delete_the_outputs_of_all_projects, + type: "boolean", + defaultValueDescription: !1 + }], b.buildOpts = __spreadArray(__spreadArray([], b.commonOptionsWithBuild, !0), b.optionsForBuild, !0), b.typeAcquisitionDeclarations = [{ + name: "enableAutoDiscovery", + type: "boolean", + defaultValueDescription: !1 + }, { + name: "enable", + type: "boolean", + defaultValueDescription: !1 + }, { + name: "include", + type: "list", + element: { + name: "include", + type: "string" + } + }, { + name: "exclude", + type: "list", + element: { + name: "exclude", + type: "string" + } + }, { + name: "disableFilenameBasedTypeAcquisition", + type: "boolean", + defaultValueDescription: !1 + }], b.createOptionNameMap = n, b.getOptionsNameMap = a; + var i, r = { + diagnostic: b.Diagnostics.Compiler_option_0_may_only_be_used_with_build, + getOptionsNameMap: f + }; + + function o(e) { + return e && void 0 !== e.enableAutoDiscovery && void 0 === e.enable ? { + enable: e.enableAutoDiscovery, + include: e.include || [], + exclude: e.exclude || [] + } : e + } + + function s(e) { + return c(e, b.createCompilerDiagnostic) + } + + function c(e, t) { + var r = b.arrayFrom(e.type.keys()).map(function(e) { + return "'".concat(e, "'") + }).join(", "); + return t(b.Diagnostics.Argument_for_0_option_must_be_Colon_1, "--".concat(e.name), r) + } + + function l(e, t, r) { + return _e(e, b.trimString(t || ""), r) + } + + function u(t, e, r) { + if (e = b.trimString(e = void 0 === e ? "" : e), !b.startsWith(e, "-")) { + if ("" === e) return []; + var n = e.split(","); + switch (t.element.type) { + case "number": + return b.mapDefined(n, function(e) { + return O(t.element, parseInt(e), r) + }); + case "string": + return b.mapDefined(n, function(e) { + return O(t.element, e || "", r) + }); + default: + return b.mapDefined(n, function(e) { + return l(t.element, e, r) + }) + } + } + } + + function _(e) { + return e.name + } + + function y(e, t, r, n) { + var i; + return null != (i = t.alternateMode) && i.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()) ? r(t.alternateMode.diagnostic, e) : (i = b.getSpellingSuggestion(e, t.optionDeclarations, _)) ? r(t.unknownDidYouMeanDiagnostic, n || e, i.name) : r(t.unknownOptionDiagnostic, n || e) + } + + function d(u, e, _) { + var d, p = {}, + f = [], + g = []; + return m(e), { + options: p, + watchOptions: d, + fileNames: f, + errors: g + }; + + function m(e) { + for (var t = 0; t < e.length;) { + var r, n, i = e[t]; + if (t++, 64 === i.charCodeAt(0)) { + l = c = s = o = a = void 0; + var a = i.slice(1), + o = x(a, _ || function(e) { + return b.sys.readFile(e) + }); + if (b.isString(o)) { + for (var s = [], c = 0;;) { + for (; c < o.length && o.charCodeAt(c) <= 32;) c++; + if (c >= o.length) break; + var l = c; + if (34 === o.charCodeAt(l)) { + for (c++; c < o.length && 34 !== o.charCodeAt(c);) c++; + c < o.length ? (s.push(o.substring(l + 1, c)), c++) : g.push(b.createCompilerDiagnostic(b.Diagnostics.Unterminated_quoted_string_in_response_file_0, a)) + } else { + for (; 32 < o.charCodeAt(c);) c++; + s.push(o.substring(l, c)) + } + } + m(s) + } else g.push(o) + } else 45 === i.charCodeAt(0) ? (r = i.slice(45 === i.charCodeAt(1) ? 2 : 1), (n = v(u.getOptionsNameMap, r, !0)) ? t = h(e, t, u, n, p, g) : (n = v(T.getOptionsNameMap, r, !0)) ? t = h(e, t, T, n, d = d || {}, g) : g.push(y(r, u, b.createCompilerDiagnostic, i))) : f.push(i) + } + } + } + + function h(e, t, r, n, i, a) { + if (n.isTSConfigOnly) "null" === (o = e[t]) ? (i[n.name] = void 0, t++) : "boolean" === n.type ? "false" === o ? (i[n.name] = O(n, !1, a), t++) : ("true" === o && t++, a.push(b.createCompilerDiagnostic(b.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line, n.name))) : (a.push(b.createCompilerDiagnostic(b.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line, n.name)), o && !b.startsWith(o, "-") && t++); + else if (e[t] || "boolean" === n.type || a.push(b.createCompilerDiagnostic(r.optionTypeMismatchDiagnostic, n.name, k(n))), "null" !== e[t]) switch (n.type) { + case "number": + i[n.name] = O(n, parseInt(e[t]), a), t++; + break; + case "boolean": + var o = e[t]; + i[n.name] = O(n, "false" !== o, a), "false" !== o && "true" !== o || t++; + break; + case "string": + i[n.name] = O(n, e[t] || "", a), t++; + break; + case "list": + var s = u(n, e[t], a); + i[n.name] = s || [], s && t++; + break; + default: + i[n.name] = l(n, e[t], a), t++ + } else i[n.name] = void 0, t++; + return t + } + + function p(e, t) { + return v(a, e, t) + } + + function v(e, t, r) { + void 0 === r && (r = !1), t = t.toLowerCase(); + var e = e(), + n = e.optionsNameMap, + e = e.shortOptionNames; + return r && void 0 !== (r = e.get(t)) && (t = r), n.get(t) + } + + function f() { + return i = i || n(b.buildOpts) + } + b.defaultInitCompilerOptions = { + module: b.ModuleKind.CommonJS, + target: 3, + strict: !0, + esModuleInterop: !0, + forceConsistentCasingInFileNames: !0, + skipLibCheck: !0 + }, b.convertEnableAutoDiscoveryToEnable = o, b.createCompilerDiagnosticForInvalidCustomType = s, b.parseCustomTypeOption = l, b.parseListTypeOption = u, b.parseCommandLineWorker = d, b.compilerOptionsDidYouMeanDiagnostics = { + alternateMode: r, + getOptionsNameMap: a, + optionDeclarations: b.optionDeclarations, + unknownOptionDiagnostic: b.Diagnostics.Unknown_compiler_option_0, + unknownDidYouMeanDiagnostic: b.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1, + optionTypeMismatchDiagnostic: b.Diagnostics.Compiler_option_0_expects_an_argument + }, b.parseCommandLine = function(e, t) { + return d(b.compilerOptionsDidYouMeanDiagnostics, e, t) + }, b.getOptionFromName = p; + var L = { + alternateMode: { + diagnostic: b.Diagnostics.Compiler_option_0_may_not_be_used_with_build, + getOptionsNameMap: a + }, + getOptionsNameMap: f, + optionDeclarations: b.buildOpts, + unknownOptionDiagnostic: b.Diagnostics.Unknown_build_option_0, + unknownDidYouMeanDiagnostic: b.Diagnostics.Unknown_build_option_0_Did_you_mean_1, + optionTypeMismatchDiagnostic: b.Diagnostics.Build_option_0_requires_a_value_of_type_1 + }; + + function R(e, t) { + e = b.parseJsonText(e, t); + return { + config: W(e, e.parseDiagnostics, !1, void 0), + error: e.parseDiagnostics.length ? e.parseDiagnostics[0] : void 0 + } + } + + function B(e, t) { + t = x(e, t); + return b.isString(t) ? b.parseJsonText(e, t) : { + fileName: e, + parseDiagnostics: [t] + } + } + + function x(t, e) { + var r; + try { + r = e(t) + } catch (e) { + return b.createCompilerDiagnostic(b.Diagnostics.Cannot_read_file_0_Colon_1, t, e.message) + } + return void 0 === r ? b.createCompilerDiagnostic(b.Diagnostics.Cannot_read_file_0, t) : r + } + + function m(e) { + return b.arrayToMap(e, _) + } + b.parseBuildCommand = function(e) { + var t = (e = d(L, e)).options, + r = e.watchOptions, + n = e.fileNames, + e = e.errors; + return 0 === n.length && n.push("."), t.clean && t.force && e.push(b.createCompilerDiagnostic(b.Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "force")), t.clean && t.verbose && e.push(b.createCompilerDiagnostic(b.Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "verbose")), t.clean && t.watch && e.push(b.createCompilerDiagnostic(b.Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "watch")), t.watch && t.dry && e.push(b.createCompilerDiagnostic(b.Diagnostics.Options_0_and_1_cannot_be_combined, "watch", "dry")), { + buildOptions: t, + watchOptions: r, + projects: n, + errors: e + } + }, b.getDiagnosticText = function(e) { + for (var t = 1; t < arguments.length; t++) t - 1, 0; + return b.createCompilerDiagnostic.apply(void 0, arguments).messageText + }, b.getParsedCommandLineOfConfigFile = function(e, t, r, n, i, a) { + var o, s, c = x(e, function(e) { + return r.readFile(e) + }); + if (b.isString(c)) return o = b.parseJsonText(e, c), s = r.getCurrentDirectory(), o.path = b.toPath(e, s, b.createGetCanonicalFileName(r.useCaseSensitiveFileNames)), o.resolvedPath = o.path, o.originalFileName = o.fileName, $(o, r, b.getNormalizedAbsolutePath(b.getDirectoryPath(e), s), t, b.getNormalizedAbsolutePath(e, s), void 0, a, n, i); + r.onUnRecoverableConfigFileDiagnostic(c) + }, b.readConfigFile = function(e, t) { + return t = x(e, t), b.isString(t) ? R(e, t) : { + config: {}, + error: t + } + }, b.parseConfigFileTextToJson = R, b.readJsonConfigFile = B, b.tryReadFile = x; + var j, D = { + optionDeclarations: b.typeAcquisitionDeclarations, + unknownOptionDiagnostic: b.Diagnostics.Unknown_type_acquisition_option_0, + unknownDidYouMeanDiagnostic: b.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1 + }; + + function J() { + return j = j || n(b.optionsForWatch) + } + var z, U, K, S, T = { + getOptionsNameMap: J, + optionDeclarations: b.optionsForWatch, + unknownOptionDiagnostic: b.Diagnostics.Unknown_watch_option_0, + unknownDidYouMeanDiagnostic: b.Diagnostics.Unknown_watch_option_0_Did_you_mean_1, + optionTypeMismatchDiagnostic: b.Diagnostics.Watch_option_0_requires_a_value_of_type_1 + }; + + function V() { + return z = z || m(b.optionDeclarations) + } + + function q() { + return U = U || m(b.optionsForWatch) + } + + function C() { + return K = K || m(b.typeAcquisitionDeclarations) + } + + function W(e, t, r, n) { + var i = null == (i = e.statements[0]) ? void 0 : i.expression, + r = r ? S = void 0 === S ? { + name: void 0, + type: "object", + elementOptions: m([{ + name: "compilerOptions", + type: "object", + elementOptions: V(), + extraKeyDiagnostics: b.compilerOptionsDidYouMeanDiagnostics + }, { + name: "watchOptions", + type: "object", + elementOptions: q(), + extraKeyDiagnostics: T + }, { + name: "typingOptions", + type: "object", + elementOptions: C(), + extraKeyDiagnostics: D + }, { + name: "typeAcquisition", + type: "object", + elementOptions: C(), + extraKeyDiagnostics: D + }, { + name: "extends", + type: "string", + category: b.Diagnostics.File_Management + }, { + name: "references", + type: "list", + element: { + name: "references", + type: "object" + }, + category: b.Diagnostics.Projects + }, { + name: "files", + type: "list", + element: { + name: "files", + type: "string" + }, + category: b.Diagnostics.File_Management + }, { + name: "include", + type: "list", + element: { + name: "include", + type: "string" + }, + category: b.Diagnostics.File_Management, + defaultValueDescription: b.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk + }, { + name: "exclude", + type: "list", + element: { + name: "exclude", + type: "string" + }, + category: b.Diagnostics.File_Management, + defaultValueDescription: b.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified + }, b.compileOnSaveCommandLineOption]) + } : S : void 0; + if (i && 207 !== i.kind) { + if (t.push(b.createDiagnosticForNodeInSourceFile(e, i, b.Diagnostics.The_root_value_of_a_0_file_must_be_an_object, "jsconfig.json" === b.getBaseFileName(e.fileName) ? "jsconfig.json" : "tsconfig.json")), b.isArrayLiteralExpression(i)) { + var a = b.find(i.elements, b.isObjectLiteralExpression); + if (a) return E(e, a, t, !0, r, n) + } + return {} + } + return E(e, i, t, !0, r, n) + } + + function H(e, t) { + return E(e, null == (e = e.statements[0]) ? void 0 : e.expression, t, !0, void 0, void 0) + } + + function E(l, e, u, _, t, d) { + return e ? f(e, t) : _ ? {} : void 0; + + function p(e) { + return t && t.elementOptions === e + } + + function s(e, a, o, s) { + for (var c = _ ? {} : void 0, t = 0, r = e.properties; t < r.length; t++) ! function(n) { + if (299 !== n.kind) return u.push(b.createDiagnosticForNodeInSourceFile(l, n, b.Diagnostics.Property_assignment_expected)); + n.questionToken && u.push(b.createDiagnosticForNodeInSourceFile(l, n.questionToken, b.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, "?")), g(n.name) || u.push(b.createDiagnosticForNodeInSourceFile(l, n.name, b.Diagnostics.String_literal_with_double_quotes_expected)); + var e, t = b.isComputedNonLiteralName(n.name) ? void 0 : b.getTextOfPropertyName(n.name), + t = t && b.unescapeLeadingUnderscores(t), + r = t && a ? a.get(t) : void 0, + i = (t && o && !r && (a ? u.push(y(t, o, function(e, t, r) { + return b.createDiagnosticForNodeInSourceFile(l, n.name, e, t, r) + })) : u.push(b.createDiagnosticForNodeInSourceFile(l, n.name, o.unknownOptionDiagnostic, t))), f(n.initializer, r)); + void 0 !== t && (_ && (c[t] = i), d) && (s || p(a)) && (e = G(r, i), s ? e && d.onSetValidOptionKeyValueInParent(s, r, i) : p(a) && (e ? d.onSetValidOptionKeyValueInRoot(t, n.name, i, n.initializer) : r || d.onSetUnknownOptionKeyValueInRoot(t, n.name, i, n.initializer))) + }(r[t]); + return c + } + + function f(n, r) { + var i; + switch (n.kind) { + case 110: + return o(r && "boolean" !== r.type), a(!0); + case 95: + return o(r && "boolean" !== r.type), a(!1); + case 104: + return o(r && "extends" === r.name), a(null); + case 10: + g(n) || u.push(b.createDiagnosticForNodeInSourceFile(l, n, b.Diagnostics.String_literal_with_double_quotes_expected)), o(r && b.isString(r.type) && "string" !== r.type); + var e = n.text; + return !r || b.isString(r.type) || (t = r).type.has(e.toLowerCase()) || (u.push(c(t, function(e, t, r) { + return b.createDiagnosticForNodeInSourceFile(l, n, e, t, r) + })), i = !0), a(e); + case 8: + return o(r && "number" !== r.type), a(Number(n.text)); + case 221: + if (40 !== n.operator || 8 !== n.operand.kind) break; + return o(r && "number" !== r.type), a(-Number(n.operand.text)); + case 207: + o(r && "object" !== r.type); + var t = n; + return a(r ? s(t, r.elementOptions, r.extraKeyDiagnostics, r.name) : s(t, void 0, void 0, void 0)); + case 206: + return o(r && "list" !== r.type), a(function(e, t) { + if (_) return b.filter(e.map(function(e) { + return f(e, t) + }), function(e) { + return void 0 !== e + }); + e.forEach(function(e) { + return f(e, t) + }) + }(n.elements, r && r.element)) + } + + function a(e) { + if (!i) { + var t = null == (t = null == r ? void 0 : r.extraValidation) ? void 0 : t.call(r, e); + if (t) return void u.push(b.createDiagnosticForNodeInSourceFile.apply(void 0, __spreadArray([l, n], t, !1))) + } + return e + } + + function o(e) { + e && (u.push(b.createDiagnosticForNodeInSourceFile(l, n, b.Diagnostics.Compiler_option_0_requires_a_value_of_type_1, r.name, k(r))), i = !0) + } + r ? o(!0) : u.push(b.createDiagnosticForNodeInSourceFile(l, n, b.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)) + } + + function g(e) { + return b.isStringLiteral(e) && b.isStringDoubleQuoted(e, l) + } + } + + function k(e) { + return "list" === e.type ? "Array" : b.isString(e.type) ? e.type : "string" + } + + function G(e, t) { + return !!e && (!!A(t) || ("list" === e.type ? b.isArray(t) : typeof t === (b.isString(e.type) ? e.type : "string"))) + } + + function Q(e) { + return __assign({}, b.arrayFrom(e.entries()).reduce(function(e, t) { + return __assign(__assign({}, e), ((e = {})[t[0]] = t[1], e)) + }, {})) + } + + function N(r, e) { + return b.forEachEntry(e, function(e, t) { + if (e === r) return t + }) + } + + function X(e, t) { + return Y(e, a(), t) + } + + function Y(i, e, a) { + function t(e) { + if (b.hasProperty(i, e)) { + if (o.has(e) && (o.get(e).category === b.Diagnostics.Command_line_Options || o.get(e).category === b.Diagnostics.Output_Formatting)) return; + var t, r = i[e], + n = o.get(e.toLowerCase()); + n && ((t = function e(t) { + if ("string" !== t.type && "number" !== t.type && "boolean" !== t.type && "object" !== t.type) return "list" === t.type ? e(t.element) : t.type + }(n)) ? "list" === n.type ? s.set(e, r.map(function(e) { + return N(e, t) + })) : s.set(e, N(r, t)) : a && n.isFilePath ? s.set(e, b.getRelativePathFromFile(a.configFilePath, b.getNormalizedAbsolutePath(r, b.getDirectoryPath(a.configFilePath)), c)) : s.set(e, r)) + } + } + var r, o = e.optionsNameMap, + s = new b.Map, + c = a && b.createGetCanonicalFileName(a.useCaseSensitiveFileNames); + for (r in i) t(r); + return s + } + + function Z(e) { + return X(b.extend(e, b.defaultInitCompilerOptions)) + } + + function $(e, t, r, n, i, a, o, s, c) { + null !== b.tracing && void 0 !== b.tracing && b.tracing.push("parse", "parseJsonSourceFileConfigFileContent", { + path: e.fileName + }); + e = te(void 0, e, t, r, n, c, i, a, o, s); + return null !== b.tracing && void 0 !== b.tracing && b.tracing.pop(), e + } + + function ee(e, t) { + t && Object.defineProperty(e, "configFile", { + enumerable: !1, + writable: !1, + value: t + }) + } + + function A(e) { + return null == e + } + + function F(e, t) { + return b.getDirectoryPath(b.getNormalizedAbsolutePath(e, t)) + } + + function te(e, c, t, r, n, i, l, a, o, s) { + void 0 === n && (n = {}), void 0 === a && (a = []), void 0 === o && (o = []), b.Debug.assert(void 0 === e && void 0 !== c || void 0 !== e && void 0 === c); + var u = [], + e = ae(e, c, t, r, l, a, u, s), + _ = e.raw, + d = b.extend(n, e.options || {}), + s = i && e.watchOptions ? b.extend(i, e.watchOptions) : e.watchOptions || i, + p = (d.configFilePath = l && b.normalizeSlashes(l), function() { + var e = m("references", function(e) { + return "object" == typeof e + }, "object"), + t = f(g("files")); + t && (e = "no-prop" === e || b.isArray(e) && 0 === e.length, i = b.hasProperty(_, "extends"), 0 === t.length) && e && !i && (c ? (e = l || "tsconfig.json", i = b.Diagnostics.The_files_list_in_config_file_0_is_empty, a = b.firstDefined(b.getTsConfigPropArray(c, "files"), function(e) { + return e.initializer + }), a = a ? b.createDiagnosticForNodeInSourceFile(c, a, i, e) : b.createCompilerDiagnostic(i, e), u.push(a)) : y(b.Diagnostics.The_files_list_in_config_file_0_is_empty, l || "tsconfig.json")); + var r, n, i = f(g("include")), + e = g("exclude"), + a = !1, + o = f(e); { + var s; + "no-prop" === e && _.compilerOptions && (e = _.compilerOptions.outDir, s = _.compilerOptions.declarationDir, e || s) && (o = [e, s].filter(function(e) { + return !!e + })) + } + void 0 === t && void 0 === i && (i = [b.defaultIncludeSpec], a = !0); + i && (r = ye(i, u, !0, c, "include")); + o && (n = ye(o, u, !1, c, "exclude")); + return { + filesSpecs: t, + includeSpecs: i, + excludeSpecs: o, + validatedFilesSpec: b.filter(t, b.isString), + validatedIncludeSpecs: r, + validatedExcludeSpecs: n, + pathPatterns: void 0, + isDefaultIncludeSpec: a + } + }()), + n = (c && (c.configFileSpecs = p), ee(d, c), b.normalizePath(l ? F(l, r) : r)); + return { + options: d, + watchOptions: s, + fileNames: function(e) { + e = fe(p, e, d, t, o); + ne(e, ie(_), a) && u.push(re(p, l)); + return e + }(n), + projectReferences: function(e) { + var t, r = m("references", function(e) { + return "object" == typeof e + }, "object"); + if (b.isArray(r)) + for (var n = 0, i = r; n < i.length; n++) { + var a = i[n]; + "string" != typeof a.path ? y(b.Diagnostics.Compiler_option_0_requires_a_value_of_type_1, "reference.path", "string") : (t = t || []).push({ + path: b.getNormalizedAbsolutePath(a.path, e), + originalPath: a.path, + prepend: a.prepend, + circular: a.circular + }) + } + return t + }(n), + typeAcquisition: e.typeAcquisition || P(), + raw: _, + errors: u, + wildcardDirectories: function(e, t, r) { + var n = e.validatedIncludeSpecs, + e = e.validatedExcludeSpecs, + e = b.getRegularExpressionForWildcard(e, t, "exclude"), + i = e && new RegExp(e, r ? "" : "i"), + a = {}; + if (void 0 !== n) { + for (var o = [], s = 0, c = n; s < c.length; s++) { + var l, u, _ = c[s], + _ = b.normalizePath(b.combinePaths(t, _)); + i && i.test(_) || (_ = function(e, t) { + var r = pe.exec(e); { + var n, i, a; + if (r) return n = e.indexOf("?"), i = e.indexOf("*"), a = e.lastIndexOf(b.directorySeparator), { + key: t ? r[0] : b.toFileNameLowerCase(r[0]), + flags: -1 !== n && n < a || -1 !== i && i < a ? 1 : 0 + } + } + if (b.isImplicitGlob(e.substring(e.lastIndexOf(b.directorySeparator) + 1))) return { + key: b.removeTrailingDirectorySeparator(t ? e : b.toFileNameLowerCase(e)), + flags: 1 + }; + return + }(_, r)) && (l = _.key, _ = _.flags, void 0 === (u = a[l]) || u < _) && 1 === (a[l] = _) && o.push(l) + } + for (l in a) + if (b.hasProperty(a, l)) + for (var d = 0, p = o; d < p.length; d++) { + var f = p[d]; + l !== f && b.containsPath(f, l, t, !r) && delete a[l] + } + } + return a + }(p, n, t.useCaseSensitiveFileNames), + compileOnSave: !!_.compileOnSave + }; + + function f(e) { + return b.isArray(e) ? e : void 0 + } + + function g(e) { + return m(e, b.isString, "string") + } + + function m(e, t, r) { + var n; + return b.hasProperty(_, e) && !A(_[e]) ? b.isArray(_[e]) ? (n = _[e], c || b.every(n, t) || u.push(b.createCompilerDiagnostic(b.Diagnostics.Compiler_option_0_requires_a_value_of_type_1, e, r)), n) : (y(b.Diagnostics.Compiler_option_0_requires_a_value_of_type_1, e, "Array"), "not-array") : "no-prop" + } + + function y(e, t, r) { + c || u.push(b.createCompilerDiagnostic(e, t, r)) + } + } + + function re(e, t) { + var r = e.includeSpecs, + e = e.excludeSpecs; + return b.createCompilerDiagnostic(b.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2, t || "tsconfig.json", JSON.stringify(r || []), JSON.stringify(e || [])) + } + + function ne(e, t, r) { + return 0 === e.length && t && (!r || 0 === r.length) + } + + function ie(e) { + return !b.hasProperty(e, "files") && !b.hasProperty(e, "references") + } + + function ae(e, t, r, n, i, a, o, s) { + n = b.normalizeSlashes(n); + var c, l, u, _, d = b.getNormalizedAbsolutePath(i || "", n); + return 0 <= a.indexOf(d) ? (o.push(b.createCompilerDiagnostic(b.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0, __spreadArray(__spreadArray([], a, !0), [d], !1).join(" -> "))), { + raw: e || H(t, o) + }) : (null != (e = (c = e ? function(e, t, r, n, i) { + b.hasProperty(e, "excludes") && i.push(b.createCompilerDiagnostic(b.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)); + var a, o = ce(e.compilerOptions, r, i, n), + s = le(e.typeAcquisition || e.typingOptions, r, i, n), + c = function(e, t, r) { + return w(q(), e, t, void 0, T, r) + }(e.watchOptions, r, i); + e.compileOnSave = function(e, t, r) { + return !!b.hasProperty(e, b.compileOnSaveCommandLineOption.name) && "boolean" == typeof(e = I(b.compileOnSaveCommandLineOption, e.compileOnSave, t, r)) && e + }(e, r, i), e.extends && (b.isString(e.extends) ? (n = n ? F(n, r) : r, a = oe(e.extends, t, n, i, b.createCompilerDiagnostic)) : i.push(b.createCompilerDiagnostic(b.Diagnostics.Compiler_option_0_requires_a_value_of_type_1, "extends", "string"))); + return { + raw: e, + options: o, + watchOptions: c, + typeAcquisition: s, + extendedConfigPath: a + } + }(e, r, n, i, o) : function(i, a, o, s, c) { + var l, u, _, d, p, f = se(s), + e = W(i, c, !0, { + onSetValidOptionKeyValueInParent: function(e, t, r) { + var n; + switch (e) { + case "compilerOptions": + n = f; + break; + case "watchOptions": + n = _ = _ || {}; + break; + case "typeAcquisition": + n = l = l || P(s); + break; + case "typingOptions": + n = u = u || P(s); + break; + default: + b.Debug.fail("Unknown option") + } + n[t.name] = function t(e, r, n) { + if (A(n)) return; { + var i; + if ("list" === e.type) return (i = e).element.isFilePath || !b.isString(i.element.type) ? b.filter(b.map(n, function(e) { + return t(i.element, r, e) + }), function(e) { + return !!i.listPreserveFalsyValues || !!e + }) : n; + if (!b.isString(e.type)) return e.type.get(b.isString(n) ? n.toLowerCase() : n) + } + return ue(e, r, n) + }(t, o, r) + }, + onSetValidOptionKeyValueInRoot: function(e, t, r, n) { + "extends" === e && (e = s ? F(s, o) : o, d = oe(r, a, e, c, function(e, t) { + return b.createDiagnosticForNodeInSourceFile(i, n, e, t) + })) + }, + onSetUnknownOptionKeyValueInRoot: function(t, e, r, n) { + "excludes" === t && c.push(b.createDiagnosticForNodeInSourceFile(i, e, b.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)), b.find(g, function(e) { + return e.name === t + }) && (p = b.append(p, e)) + } + }); + l = l || (u ? void 0 !== u.enableAutoDiscovery ? { + enable: u.enableAutoDiscovery, + include: u.include, + exclude: u.exclude + } : u : P(s)); + p && e && void 0 === e.compilerOptions && c.push(b.createDiagnosticForNodeInSourceFile(i, p[0], b.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file, b.getTextOfPropertyName(p[0]))); + return { + raw: e, + options: f, + watchOptions: _, + typeAcquisition: l, + extendedConfigPath: d + } + }(t, r, n, i, o)).options) && e.paths && (c.options.pathsBasePath = n), c.extendedConfigPath && (a = a.concat([d]), i = function(e, t, r, n, i, a) { + var o, s, c, l = r.useCaseSensitiveFileNames ? t : b.toFileNameLowerCase(t); + a && (o = a.get(l)) ? (s = o.extendedResult, c = o.extendedConfig) : ((s = B(t, function(e) { + return r.readFile(e) + })).parseDiagnostics.length || (c = ae(void 0, s, r, b.getDirectoryPath(t), b.getBaseFileName(t), n, i, a)), a && a.set(l, { + extendedResult: s, + extendedConfig: c + })); + e && (e.extendedSourceFiles = [s.fileName], s.extendedSourceFiles) && (o = e.extendedSourceFiles).push.apply(o, s.extendedSourceFiles); + if (s.parseDiagnostics.length) return void i.push.apply(i, s.parseDiagnostics); + return c + }(t, c.extendedConfigPath, r, a, o, s)) && i.options && (l = i.raw, u = c.raw, (e = function(e) { + !u[e] && l[e] && (u[e] = b.map(l[e], function(e) { + return b.isRootedDiskPath(e) ? e : b.combinePaths(_ = _ || b.convertToRelativePath(b.getDirectoryPath(c.extendedConfigPath), n, b.createGetCanonicalFileName(r.useCaseSensitiveFileNames)), e) + })) + })("include"), e("exclude"), e("files"), void 0 === u.compileOnSave && (u.compileOnSave = l.compileOnSave), c.options = b.assign({}, i.options, c.options), c.watchOptions = c.watchOptions && i.watchOptions ? b.assign({}, i.watchOptions, c.watchOptions) : c.watchOptions || i.watchOptions), c) + } + + function oe(e, t, r, n, i) { + var a; + return e = b.normalizeSlashes(e), b.isRootedDiskPath(e) || b.startsWith(e, "./") || b.startsWith(e, "../") ? (a = b.getNormalizedAbsolutePath(e, r), t.fileExists(a) || b.endsWith(a, ".json") || (a = "".concat(a, ".json"), t.fileExists(a)) ? a : void n.push(i(b.Diagnostics.File_0_not_found, e))) : (a = b.nodeModuleNameResolver(e, b.combinePaths(r, "tsconfig.json"), { + moduleResolution: b.ModuleResolutionKind.NodeJs + }, t, void 0, void 0, !0)).resolvedModule ? a.resolvedModule.resolvedFileName : void n.push(i(b.Diagnostics.File_0_not_found, e)) + } + + function se(e) { + return e && "jsconfig.json" === b.getBaseFileName(e) ? { + allowJs: !0, + maxNodeModuleJsDepth: 2, + allowSyntheticDefaultImports: !0, + skipLibCheck: !0, + noEmit: !0 + } : {} + } + + function ce(e, t, r, n) { + var i = se(n); + return w(V(), e, t, i, b.compilerOptionsDidYouMeanDiagnostics, r), n && (i.configFilePath = b.normalizeSlashes(n)), i + } + + function P(e) { + return { + enable: !!e && "jsconfig.json" === b.getBaseFileName(e), + include: [], + exclude: [] + } + } + + function le(e, t, r, n) { + n = P(n), e = o(e); + return w(C(), e, t, n, D, r), n + } + + function w(e, t, r, n, i, a) { + if (t) { + for (var o in t) { + var s = e.get(o); + s ? (n = n || {})[s.name] = I(s, t[o], r, a) : a.push(y(o, i, b.createCompilerDiagnostic)) + } + return n + } + } + + function I(e, t, r, n) { + var i, a, o, s; + if (G(e, t)) return "list" === (i = e.type) && b.isArray(t) ? (a = e, o = r, s = n, b.filter(b.map(t, function(e) { + return I(a.element, e, o, s) + }), function(e) { + return !!a.listPreserveFalsyValues || !!e + })) : b.isString(i) ? A(i = O(e, t, n)) ? i : ue(e, r, i) : _e(e, t, n); + n.push(b.createCompilerDiagnostic(b.Diagnostics.Compiler_option_0_requires_a_value_of_type_1, e.name, k(e))) + } + + function ue(e, t, r) { + return r = e.isFilePath && "" === (r = b.getNormalizedAbsolutePath(r, t)) ? "." : r + } + + function O(e, t, r) { + var n; + if (!A(t)) return (n = null == (n = e.extraValidation) ? void 0 : n.call(e, t)) ? void r.push(b.createCompilerDiagnostic.apply(void 0, n)) : t + } + + function _e(e, t, r) { + if (!A(t)) return t = t.toLowerCase(), void 0 !== (t = e.type.get(t)) ? O(e, t, r) : void r.push(s(e)) + } + b.convertToObject = H, b.convertToObjectWorker = E, b.convertToTSConfig = function(e, t, r) { + var n = b.createGetCanonicalFileName(r.useCaseSensitiveFileNames), + i = b.map(b.filter(e.fileNames, null != (i = null == (i = e.options.configFile) ? void 0 : i.configFileSpecs) && i.validatedIncludeSpecs ? function(e, t, r, n) { + if (t) { + var e = b.getFileMatcherPatterns(e, r, t, n.useCaseSensitiveFileNames, n.getCurrentDirectory()), + i = e.excludePattern && b.getRegexFromPattern(e.excludePattern, n.useCaseSensitiveFileNames), + a = e.includeFilePattern && b.getRegexFromPattern(e.includeFilePattern, n.useCaseSensitiveFileNames); + if (a) return i ? function(e) { + return !(a.test(e) && !i.test(e)) + } : function(e) { + return !a.test(e) + }; + if (i) return function(e) { + return i.test(e) + } + } + return b.returnTrue + }(t, e.options.configFile.configFileSpecs.validatedIncludeSpecs, e.options.configFile.configFileSpecs.validatedExcludeSpecs, r) : b.returnTrue), function(e) { + return b.getRelativePathFromFile(b.getNormalizedAbsolutePath(t, r.getCurrentDirectory()), b.getNormalizedAbsolutePath(e, r.getCurrentDirectory()), n) + }), + a = X(e.options, { + configFilePath: b.getNormalizedAbsolutePath(t, r.getCurrentDirectory()), + useCaseSensitiveFileNames: r.useCaseSensitiveFileNames + }), + o = e.watchOptions && Y(e.watchOptions, J()); + return __assign(__assign({ + compilerOptions: __assign(__assign({}, Q(a)), { + showConfig: void 0, + configFile: void 0, + configFilePath: void 0, + help: void 0, + init: void 0, + listFiles: void 0, + listEmittedFiles: void 0, + project: void 0, + build: void 0, + version: void 0 + }), + watchOptions: o && Q(o), + references: b.map(e.projectReferences, function(e) { + return __assign(__assign({}, e), { + path: e.originalPath || "", + originalPath: void 0 + }) + }), + files: b.length(i) ? i : void 0 + }, null != (a = e.options.configFile) && a.configFileSpecs ? { + include: (o = e.options.configFile.configFileSpecs.validatedIncludeSpecs, !b.length(o) || 1 === b.length(o) && o[0] === b.defaultIncludeSpec ? void 0 : o), + exclude: e.options.configFile.configFileSpecs.validatedExcludeSpecs + } : {}), { + compileOnSave: !!e.compileOnSave || void 0 + }) + }, b.getNameOfCompilerOptionValue = N, b.getCompilerOptionsDiffValue = function(e, t) { + var n, i, a = Z(e); + return n = [], i = Array(3).join(" "), g.forEach(function(e) { + var t, r; + a.has(e.name) && ((t = a.get(e.name)) !== (r = he(e)) ? n.push("".concat(i).concat(e.name, ": ").concat(t)) : b.hasProperty(b.defaultInitCompilerOptions, e.name) && n.push("".concat(i).concat(e.name, ": ").concat(r))) + }), n.join(t) + t + }, b.generateTSConfig = function(e, t, r) { + var o = Z(e), + n = new b.Map; + n.set(b.Diagnostics.Projects, []), n.set(b.Diagnostics.Language_and_Environment, []), n.set(b.Diagnostics.Modules, []), n.set(b.Diagnostics.JavaScript_Support, []), n.set(b.Diagnostics.Emit, []), n.set(b.Diagnostics.Interop_Constraints, []), n.set(b.Diagnostics.Type_Checking, []), n.set(b.Diagnostics.Completeness, []); + for (var i = 0, a = b.optionDeclarations; i < a.length; i++) { + var s, c = a[i]; + ! function(e) { + var t = e.category, + r = e.name, + e = e.isCommandLineOnly, + n = [b.Diagnostics.Command_line_Options, b.Diagnostics.Editor_Support, b.Diagnostics.Compiler_Diagnostics, b.Diagnostics.Backwards_Compatibility, b.Diagnostics.Watch_and_Build_Modes, b.Diagnostics.Output_Formatting]; + return !e && void 0 !== t && (!n.includes(t) || o.has(r)) + }(c) || ((s = n.get(c.category)) || n.set(c.category, s = []), s.push(c)) + } + var l = 0, + u = 0, + _ = [], + d = (n.forEach(function(e, t) { + 0 !== _.length && _.push({ + value: "" + }), _.push({ + value: "/* ".concat(b.getLocaleSpecificMessage(t), " */") + }); + for (var r = 0, n = e; r < n.length; r++) { + var i = n[r], + a = void 0, + a = o.has(i.name) ? '"'.concat(i.name, '": ').concat(JSON.stringify(o.get(i.name))).concat((u += 1) === o.size ? "" : ",") : '// "'.concat(i.name, '": ').concat(JSON.stringify(he(i)), ","); + _.push({ + value: a, + description: "/* ".concat(i.description && b.getLocaleSpecificMessage(i.description) || i.name, " */") + }), l = Math.max(a.length, l) + } + }), v(2)), + p = []; + p.push("{"), p.push("".concat(d, '"compilerOptions": {')), p.push("".concat(d).concat(d, "/* ").concat(b.getLocaleSpecificMessage(b.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file), " */")), p.push(""); + for (var f = 0, g = _; f < g.length; f++) { + var m = g[f], + y = m.value, + m = m.description, + m = void 0 === m ? "" : m; + p.push(y && "".concat(d).concat(d).concat(y).concat(m && v(l - y.length + 2) + m)) + } + if (t.length) { + p.push("".concat(d, "},")), p.push("".concat(d, '"files": [')); + for (var h = 0; h < t.length; h++) p.push("".concat(d).concat(d).concat(JSON.stringify(t[h])).concat(h === t.length - 1 ? "" : ",")); + p.push("".concat(d, "]")) + } else p.push("".concat(d, "}")); + return p.push("}"), p.join(r) + r; + + function v(e) { + return Array(e + 1).join(" ") + } + }, b.convertToOptionsWithAbsolutePaths = function(e, t) { + var r, n = {}, + i = a().optionsNameMap; + for (r in e) b.hasProperty(e, r) && (n[r] = function(e, t, r) { + if (e && !A(t)) + if ("list" === e.type) { + var n = t; + if (e.element.isFilePath && n.length) return n.map(r) + } else if (e.isFilePath) return r(t); + return t + }(i.get(r.toLowerCase()), e[r], t)); + return n.configFilePath && (n.configFilePath = t(n.configFilePath)), n + }, b.parseJsonConfigFileContent = function(e, t, r, n, i, a, o, s, c) { + return te(e, void 0, t, r, n, c, i, a, o, s) + }, b.parseJsonSourceFileConfigFileContent = $, b.setConfigFileInOptions = ee, b.defaultIncludeSpec = "**/*", b.canJsonReportNoInputFiles = ie, b.updateErrorForNoInputFiles = function(e, t, r, n, i) { + var a = n.length; + return ne(e, i) ? n.push(re(r, t)) : b.filterMutate(n, function(e) { + return !(e.code === b.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code) + }), a !== n.length + }, b.convertCompilerOptionsFromJson = function(e, t, r) { + var n = []; + return { + options: ce(e, t, n, r), + errors: n + } + }, b.convertTypeAcquisitionFromJson = function(e, t, r) { + var n = []; + return { + options: le(e, t, n, r), + errors: n + } + }, b.convertJsonOption = I; + var de = /(^|\/)\*\*\/?$/, + pe = /^[^*?]*(?=\/[^/]*[*?])/; + + function fe(e, r, t, n, i) { + void 0 === i && (i = b.emptyArray), r = b.normalizePath(r); + var a, o = b.createGetCanonicalFileName(n.useCaseSensitiveFileNames), + s = new b.Map, + c = new b.Map, + l = new b.Map, + u = e.validatedFilesSpec, + _ = e.validatedIncludeSpecs, + e = e.validatedExcludeSpecs, + d = b.getSupportedExtensions(t, i), + i = b.getSupportedExtensionsWithJsonIfResolveJsonModule(t, d); + if (u) + for (var p = 0, f = u; p < f.length; p++) { + var g = f[p], + m = b.getNormalizedAbsolutePath(g, r); + s.set(o(m), m) + } + if (_ && 0 < _.length) + for (var y = function(t) { + if (b.fileExtensionIs(t, ".json")) return a || (e = _.filter(function(e) { + return b.endsWith(e, ".json") + }), e = b.map(b.getRegularExpressionsForWildcards(e, r, "files"), function(e) { + return "^".concat(e, "$") + }), a = e ? e.map(function(e) { + return b.getRegexFromPattern(e, n.useCaseSensitiveFileNames) + }) : b.emptyArray), -1 !== b.findIndex(a, function(e) { + return e.test(t) + }) && (e = o(t), s.has(e) || l.has(e) || l.set(e, t)), "continue"; + if (function(t, e, r, n, i) { + n = b.forEach(n, function(e) { + return b.fileExtensionIsOneOf(t, e) ? e : void 0 + }); + if (n) + for (var a = 0, o = n; a < o.length; a++) { + var s = o[a]; + if (b.fileExtensionIs(t, s)) return; + var c = i(b.changeExtension(t, s)); + if ((e.has(c) || r.has(c)) && (".d.ts" !== s || !b.fileExtensionIs(t, ".js") && !b.fileExtensionIs(t, ".jsx"))) return 1 + } + return + }(t, s, c, d, o)) return "continue"; + ! function(t, e, r, n) { + var i = b.forEach(r, function(e) { + return b.fileExtensionIsOneOf(t, e) ? e : void 0 + }); + if (i) + for (var a = i.length - 1; 0 <= a; a--) { + var o = i[a]; + if (b.fileExtensionIs(t, o)) return; + o = n(b.changeExtension(t, o)); + e.delete(o) + } + }(t, c, d, o); + var e = o(t); + s.has(e) || c.has(e) || c.set(e, t) + }, h = 0, v = n.readDirectory(r, b.flatten(i), e, _, void 0); h < v.length; h++) y(m = v[h]); + t = b.arrayFrom(s.values()), u = b.arrayFrom(c.values()); + return t.concat(u, b.arrayFrom(l.values())) + } + + function ge(e) { + var t = b.startsWith(e, "**/") ? 0 : e.indexOf("/**/"); + return -1 !== t && t < (b.endsWith(e, "/..") ? e.length : e.lastIndexOf("/../")) + } + + function me(e, t, r, n, i) { + t = b.getRegularExpressionForWildcard(t, b.combinePaths(b.normalizePath(n), i), "exclude"), n = t && b.getRegexFromPattern(t, r); + return !!n && (!!n.test(e) || !b.hasExtension(e) && n.test(b.ensureTrailingDirectorySeparator(e))) + } + + function ye(e, t, r, n, i) { + return e.filter(function(e) { + return !!b.isString(e) && (void 0 !== (e = M(e, r)) && t.push(function(e, t) { + var r = b.getTsConfigPropArrayElementValue(n, i, t); + return r ? b.createDiagnosticForNodeInSourceFile(n, r, e, t) : b.createCompilerDiagnostic(e, t) + }.apply(void 0, e)), void 0 === e) + }) + } + + function M(e, t) { + return t && de.test(e) ? [b.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, e] : ge(e) ? [b.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, e] : void 0 + } + + function he(e) { + switch (e.type) { + case "number": + return 1; + case "boolean": + return !0; + case "string": + var t = e.defaultValueDescription; + return e.isFilePath ? "./".concat(t && "string" == typeof t ? t : "") : ""; + case "list": + return []; + case "object": + return {}; + default: + t = e.type.keys().next(); + return t.done ? b.Debug.fail("Expected 'option.type' to have entries.") : t.value + } + } + b.getFileNamesFromConfigSpecs = fe, b.isExcludedFile = function(e, t, r, n, i) { + var a = t.validatedFilesSpec, + o = t.validatedIncludeSpecs, + t = t.validatedExcludeSpecs; + if (!b.length(o) || !b.length(t)) return !1; + r = b.normalizePath(r); + var s = b.createGetCanonicalFileName(n); + if (a) + for (var c = 0, l = a; c < l.length; c++) { + var u = l[c]; + if (s(b.getNormalizedAbsolutePath(u, r)) === e) return !1 + } + return me(e, t, n, i, r) + }, b.matchesExclude = function(e, t, r, n) { + return me(e, b.filter(t, function(e) { + return !ge(e) + }), r, n) + }, b.convertCompilerOptionsForTelemetry = function(e) { + var t, r, n = {}; + for (t in e) b.hasProperty(e, t) && void 0 !== (r = p(t)) && (n[t] = function t(r, e) { + switch (e.type) { + case "object": + case "string": + return ""; + case "number": + return "number" == typeof r ? r : ""; + case "boolean": + return "boolean" == typeof r ? r : ""; + case "list": + var n = e.element; + return b.isArray(r) ? r.map(function(e) { + return t(e, n) + }) : ""; + default: + return b.forEachEntry(e.type, function(e, t) { + if (e === r) return t + }) + } + }(e[t], r)); + return n + } + }(ts = ts || {}), ! function(O) { + function D(e) { + e.trace(O.formatMessage.apply(void 0, arguments)) + } + + function v(e, t) { + return !!e.traceResolution && void 0 !== t.trace + } + + function M(e, t) { + var r, n; + return t && e && "string" == typeof(n = e.contents.packageJsonContent).name && "string" == typeof n.version && (r = { + name: n.name, + subModuleName: t.path.slice(e.packageDirectory.length + O.directorySeparator.length), + version: n.version + }), t && { + path: t.path, + extension: t.ext, + packageId: r + } + } + + function _(e) { + return M(void 0, e) + } + + function d(e) { + if (e) return O.Debug.assert(void 0 === e.packageId), { + path: e.path, + ext: e.extension + } + } + var L, n; + + function b(e) { + if (e) return O.Debug.assert(O.extensionIsTS(e.extension)), { + fileName: e.path, + packageId: e.packageId + } + } + + function f(e, t, r, n, i, a) { + var o; + return a ? ((o = a.failedLookupLocations).push.apply(o, r), (o = a.affectingLocations).push.apply(o, n), a) : { + resolvedModule: e && { + resolvedFileName: e.path, + originalPath: !0 === e.originalPath ? void 0 : e.originalPath, + extension: e.extension, + isExternalLibraryImport: t, + packageId: e.packageId + }, + failedLookupLocations: r, + affectingLocations: n, + resolutionDiagnostics: i + } + } + + function w(e, t, r, n) { + if (O.hasProperty(e, t)) { + e = e[t]; + if (typeof e === r && null !== e) return e; + n.traceEnabled && D(n.host, O.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, t, r, null === e ? "null" : typeof e) + } else n.traceEnabled && D(n.host, O.Diagnostics.package_json_does_not_have_a_0_field, t) + } + + function p(e, t, r, n) { + e = w(e, t, "string", n); + if (void 0 !== e) { + if (e) return r = O.normalizePath(O.combinePaths(r, e)), n.traceEnabled && D(n.host, O.Diagnostics.package_json_has_0_field_1_that_references_2, t, e, r), r; + n.traceEnabled && D(n.host, O.Diagnostics.package_json_had_a_falsy_0_field, t) + } + } + + function I(e, t, r) { + return p(e, "typings", t, r) || p(e, "types", t, r) + } + + function z(e, t, r) { + return p(e, "main", t, r) + } + + function U(e, t) { + var r = function(e, t) { + if (void 0 !== (e = w(e, "typesVersions", "object", t))) return t.traceEnabled && D(t.host, O.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings), e + }(e, t); + if (void 0 !== r) { + if (t.traceEnabled) + for (var n in r) O.hasProperty(r, n) && !O.VersionRange.tryParse(n) && D(t.host, O.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range, n); + e = K(r); + if (e) { + var i = e.version, + a = e.paths; + if ("object" == typeof a) return e; + t.traceEnabled && D(t.host, O.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, "typesVersions['".concat(i, "']"), "object", typeof a) + } else t.traceEnabled && D(t.host, O.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0, O.versionMajorMinor) + } + } + + function K(e) { + for (var t in n = n || new O.Version(O.version), e) + if (O.hasProperty(e, t)) { + var r = O.VersionRange.tryParse(t); + if (void 0 !== r && r.test(n)) return { + version: t, + paths: e[t] + } + } + } + + function x(e, t) { + var r, n, i; + return e.typeRoots || (e.configFilePath ? r = O.getDirectoryPath(e.configFilePath) : t.getCurrentDirectory && (r = t.getCurrentDirectory()), void 0 !== r ? (e = r, (n = t).directoryExists ? (O.forEachAncestorDirectory(O.normalizePath(e), function(e) { + e = O.combinePaths(e, a); + n.directoryExists(e) && (i = i || []).push(e) + }), i) : [O.combinePaths(e, a)]) : void 0) + } + O.trace = D, O.isTraceEnabled = v, (e = L = L || {})[e.TypeScript = 0] = "TypeScript", e[e.JavaScript = 1] = "JavaScript", e[e.Json = 2] = "Json", e[e.TSConfig = 3] = "TSConfig", e[e.DtsOnly = 4] = "DtsOnly", e[e.TsOnly = 5] = "TsOnly", O.getPackageJsonTypesVersionsPaths = K, O.getEffectiveTypeRoots = x; + var S, e, a = O.combinePaths("node_modules", "@types"); + + function V(e, t, r) { + r = "function" == typeof r.useCaseSensitiveFileNames ? r.useCaseSensitiveFileNames() : r.useCaseSensitiveFileNames; + return 0 === O.comparePaths(e, t, !r) + } + + function q(e) { + return O.getEmitModuleResolutionKind(e) === O.ModuleResolutionKind.Node16 ? S.Node16Default : O.getEmitModuleResolutionKind(e) === O.ModuleResolutionKind.NodeNext ? S.NodeNextDefault : S.None + } + + function l(n) { + var i = new O.Map, + a = new O.Map; + return { + getOwnMap: function() { + return i + }, + redirectsMap: a, + getOrCreateMapOfCacheRedirects: function(e) { + if (!e) return i; + var t = e.sourceFile.path, + r = a.get(t); + r || (r = !n || O.optionsHaveModuleResolutionChanges(n, e.commandLine.options) ? new O.Map : i, a.set(t, r)); + return r + }, + clear: function() { + i.clear(), a.clear() + }, + setOwnOptions: function(e) { + n = e + }, + setOwnMap: function(e) { + i = e + } + } + } + + function W(r, n) { + var i; + return { + getPackageJsonInfo: function(e) { + return null == i ? void 0 : i.get(O.toPath(e, r, n)) + }, + setPackageJsonInfo: function(e, t) { + (i = i || new O.Map).set(O.toPath(e, r, n), t) + }, + clear: function() { + i = void 0 + }, + entries: function() { + var e = null == i ? void 0 : i.entries(); + return e ? O.arrayFrom(e) : [] + }, + getInternalMap: function() { + return i + } + } + } + + function H(e, t, r, n) { + e = e.getOrCreateMapOfCacheRedirects(t), t = e.get(r); + return t || (t = n(), e.set(r, t)), t + } + + function G(e, t, r) { + var n; + e.configFile && (0 === t.redirectsMap.size ? (O.Debug.assert(!r || 0 === r.redirectsMap.size), O.Debug.assert(0 === t.getOwnMap().size), O.Debug.assert(!r || 0 === r.getOwnMap().size), t.redirectsMap.set(e.configFile.path, t.getOwnMap()), null != r && r.redirectsMap.set(e.configFile.path, r.getOwnMap())) : (O.Debug.assert(!r || 0 < r.redirectsMap.size), n = { + sourceFile: e.configFile, + commandLine: { + options: e + } + }, t.setOwnMap(t.getOrCreateMapOfCacheRedirects(n)), null != r && r.setOwnMap(r.getOrCreateMapOfCacheRedirects(n))), t.setOwnOptions(e), null != r) && r.setOwnOptions(e) + } + + function Q(r, n, i) { + return { + getOrCreateCacheForDirectory: function(e, t) { + e = O.toPath(e, r, n); + return H(i, t, e, s) + }, + clear: function() { + i.clear() + }, + update: function(e) { + G(e, i) + } + } + } + + function s() { + var i = new O.Map, + a = new O.Map, + n = { + get: function(e, t) { + return i.get(o(e, t)) + }, + set: function(e, t, r) { + return i.set(o(e, t), r), n + }, + delete: function(e, t) { + return i.delete(o(e, t)), n + }, + has: function(e, t) { + return i.has(o(e, t)) + }, + forEach: function(n) { + return i.forEach(function(e, t) { + var t = a.get(t), + r = t[0], + t = t[1]; + return n(e, r, t) + }) + }, + size: function() { + return i.size + } + }; + return n; + + function o(e, t) { + var r = void 0 === t ? e : "".concat(t, "|").concat(e); + return a.set(r, [e, t]), r + } + } + + function X(e, t, r, n, i) { + var a = function(e, t, r, n) { + var i = n.compilerOptions, + a = i.baseUrl, + o = i.paths, + i = i.configFile; + if (o && !O.pathIsRelative(t)) return n.traceEnabled && (a && D(n.host, O.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1, a, t), D(n.host, O.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0, t)), a = O.getPathsBasePath(n.compilerOptions, n.host), i = null != i && i.configFileSpecs ? (i = i.configFileSpecs).pathPatterns || (i.pathPatterns = O.tryParsePatterns(o)) : void 0, P(e, t, a, o, i, r, !1, n) + }(e, t, n, i); + if (a) return a.value; + if (O.isExternalModuleNameRelative(t)) { + var o = e, + a = t, + s = n, + c = i; + if (c.compilerOptions.rootDirs) { + c.traceEnabled && D(c.host, O.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0, a); + for (var l, u, _ = O.normalizePath(O.combinePaths(r, a)), d = 0, p = c.compilerOptions.rootDirs; d < p.length; d++) { + var f = p[d], + g = O.normalizePath(f), + m = (O.endsWith(g, O.directorySeparator) || (g += O.directorySeparator), O.startsWith(_, g) && (void 0 === u || u.length < g.length)); + c.traceEnabled && D(c.host, O.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2, g, _, m), m && (u = g, l = f) + } + if (u) { + c.traceEnabled && D(c.host, O.Diagnostics.Longest_matching_prefix_for_0_is_1, _, u); + var y = _.substr(u.length), + a = (c.traceEnabled && D(c.host, O.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2, y, u, _), s(o, _, !O.directoryProbablyExists(r, c.host), c)); + if (a) return a; + c.traceEnabled && D(c.host, O.Diagnostics.Trying_other_entries_in_rootDirs); + for (var h = 0, v = c.compilerOptions.rootDirs; h < v.length; h++) { + f = v[h]; + if (f !== l) { + var b = O.combinePaths(O.normalizePath(f), y), + x = (c.traceEnabled && D(c.host, O.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2, y, f, b), O.getDirectoryPath(b)), + b = s(o, b, !O.directoryProbablyExists(x, c.host), c); + if (b) return b + } + } + c.traceEnabled && D(c.host, O.Diagnostics.Module_resolution_using_rootDirs_has_failed) + } + } + } else { + r = e, a = t, e = n, t = i, n = t.compilerOptions.baseUrl; + if (n) return t.traceEnabled && D(t.host, O.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1, n, a), i = O.normalizePath(O.combinePaths(n, a)), t.traceEnabled && D(t.host, O.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2, a, n, i), e(r, i, !O.directoryProbablyExists(O.getDirectoryPath(i), t.host), t) + } + } + O.resolveTypeReferenceDirective = function(n, r, e, i, t, a, o) { + O.Debug.assert("string" == typeof n, "Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself."); + var s, c, l, u, _, d, p, f = v(e, i), + g = (t && (e = t.commandLine.options), r ? O.getDirectoryPath(r) : void 0), + m = g ? a && a.getOrCreateCacheForDirectory(g, t) : void 0, + y = m && m.get(n, o); + return y ? f && (D(i, O.Diagnostics.Resolving_type_reference_directive_0_containing_file_1, n, r), t && D(i, O.Diagnostics.Using_compiler_options_of_project_reference_redirect_0, t.sourceFile.fileName), D(i, O.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1, n, g), h(y)) : (s = x(e, i), t = (f && (void 0 === r ? void 0 === s ? D(i, O.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set, n) : D(i, O.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1, n, s) : void 0 === s ? D(i, O.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set, n, r) : D(i, O.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2, n, r, s), t) && D(i, O.Diagnostics.Using_compiler_options_of_project_reference_redirect_0, t.sourceFile.fileName), []), c = [], d = q(e), _ = (o !== O.ModuleKind.ESNext || O.getEmitModuleResolutionKind(e) !== O.ModuleResolutionKind.Node16 && O.getEmitModuleResolutionKind(e) !== O.ModuleResolutionKind.NodeNext || (d |= S.EsmMode), d & S.Exports ? d & S.EsmMode ? ["node", "import", "types"] : ["node", "require", "types"] : []), l = [], u = { + compilerOptions: e, + host: i, + traceEnabled: f, + failedLookupLocations: t, + affectingLocations: c, + packageJsonInfoCache: a, + features: d, + conditions: _, + requestContainingDirectory: g, + reportDiagnostic: function(e) { + l.push(e) + } + }, a = !0, (d = function() { + { + if (s && s.length) return f && D(i, O.Diagnostics.Resolving_with_primary_search_path_0, s.join(", ")), O.firstDefined(s, function(e) { + var e = O.combinePaths(e, n), + t = O.getDirectoryPath(e), + r = O.directoryProbablyExists(t, i); + return !r && f && D(i, O.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, t), b(se(L.DtsOnly, e, !r, u)) + }); + f && D(i, O.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths) + } + }()) || (d = function() { + var e = r && O.getDirectoryPath(r); { + var t; + if (void 0 !== e) return f && D(i, O.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0, e), b(O.isExternalModuleNameRelative(n) ? (t = te(e, n).path, C(L.DtsOnly, t, !1, u, !0)) : (t = pe(L.DtsOnly, n, e, u, void 0, void 0)) && t.value); + f && D(i, O.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder) + } + }(), a = !1), d && (_ = d.fileName, g = d.packageId, p = { + primary: a, + resolvedFileName: (a = V(_, d = e.preserveSymlinks ? _ : re(_, i, f), i)) ? _ : d, + originalPath: a ? void 0 : _, + packageId: g, + isExternalLibraryImport: E(_) + }), y = { + resolvedTypeReferenceDirective: p, + failedLookupLocations: t, + affectingLocations: c, + resolutionDiagnostics: l + }, null != m && m.set(n, o, y), f && h(y)), y; + + function h(e) { + var t; + null != (t = e.resolvedTypeReferenceDirective) && t.resolvedFileName ? e.resolvedTypeReferenceDirective.packageId ? D(i, O.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3, n, e.resolvedTypeReferenceDirective.resolvedFileName, O.packageIdToString(e.resolvedTypeReferenceDirective.packageId), e.resolvedTypeReferenceDirective.primary) : D(i, O.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2, n, e.resolvedTypeReferenceDirective.resolvedFileName, e.resolvedTypeReferenceDirective.primary) : D(i, O.Diagnostics.Type_reference_directive_0_was_not_resolved, n) + } + }, O.resolvePackageNameToPackageJson = function(t, e, r, n, i) { + var a = h(null == i ? void 0 : i.getPackageJsonInfoCache(), n, r); + return O.forEachAncestorDirectory(e, function(e) { + if ("node_modules" !== O.getBaseFileName(e)) return e = O.combinePaths(e, "node_modules"), N(O.combinePaths(e, t), !1, a) + }) + }, O.getAutomaticTypeDirectiveNames = function(e, t) { + if (e.types) return e.types; + var r = []; + if (t.directoryExists && t.getDirectories) { + e = x(e, t); + if (e) + for (var n = 0, i = e; n < i.length; n++) { + var a = i[n]; + if (t.directoryExists(a)) + for (var o = 0, s = t.getDirectories(a); o < s.length; o++) { + var c = s[o], + c = O.normalizePath(c), + l = O.combinePaths(a, c, "package.json"); + t.fileExists(l) && null === O.readJson(l, t).typings || 46 !== (l = O.getBaseFileName(c)).charCodeAt(0) && r.push(l) + } + } + } + return r + }, O.createCacheWithRedirects = l, O.createModeAwareCache = s, O.zipToModeAwareCache = function(e, t, r) { + O.Debug.assert(t.length === r.length); + for (var n = s(), i = 0; i < t.length; ++i) { + var a = t[i], + o = O.isString(a) ? a : a.fileName.toLowerCase(), + a = O.isString(a) ? O.getModeForResolutionAtIndex(e, i) : a.resolutionMode || e.impliedNodeFormat; + n.set(o, a, r[i]) + } + return n + }, O.createModuleResolutionCache = function(s, c, e, t, n) { + var r = Q(s, c, t = t || l(e)), + i = (n = n || l(e), W(s, c)); + return __assign(__assign(__assign({}, i), r), { + getOrCreateCacheForModuleName: function(e, t, r) { + return O.Debug.assert(!O.isExternalModuleNameRelative(e)), H(n, r, void 0 === t ? e : "".concat(t, "|").concat(e), o) + }, + clear: function() { + a(), i.clear() + }, + update: function(e) { + G(e, t, n) + }, + getPackageJsonInfoCache: function() { + return i + }, + clearAllExceptPackageJsonInfoCache: a + }); + + function a() { + r.clear(), n.clear() + } + + function o() { + var o = new O.Map; + return { + get: function(e) { + return o.get(O.toPath(e, s, c)) + }, + set: function(e, t) { + e = O.toPath(e, s, c); + if (!o.has(e)) { + o.set(e, t); + for (var r = t.resolvedModule && (t.resolvedModule.originalPath || t.resolvedModule.resolvedFileName), n = r && function(e, t) { + var r = O.toPath(O.getDirectoryPath(t), s, c), + n = 0, + i = Math.min(e.length, r.length); + for (; n < i && e.charCodeAt(n) === r.charCodeAt(n);) n++; + if (n === e.length && (r.length === n || r[n] === O.directorySeparator)) return e; + t = O.getRootLength(e); + if (n < t) return; + var a = e.lastIndexOf(O.directorySeparator, n - 1); + if (-1 !== a) return e.substr(0, Math.max(a, t)) + }(e, r), i = e; i !== n;) { + var a = O.getDirectoryPath(i); + if (a === i || o.has(a)) break; + o.set(a, t), i = a + } + } + } + } + } + }, O.createTypeReferenceDirectiveResolutionCache = function(e, t, r, n, i) { + var a = Q(e, t, i = i || l(r)); + return n = n || W(e, t), __assign(__assign(__assign({}, n), a), { + clear: function() { + o(), n.clear() + }, + clearAllExceptPackageJsonInfoCache: o + }); + + function o() { + a.clear() + } + }, O.resolveModuleNameFromCache = function(e, t, r, n) { + if (t = O.getDirectoryPath(t), r = r && r.getOrCreateCacheForDirectory(t)) return r.get(e, n) + }, O.resolveModuleName = function(e, t, r, n, i, a, o) { + var s, c = v(r, n), + l = (a && (r = a.commandLine.options), c && (D(n, O.Diagnostics.Resolving_module_0_from_1, e, t), a) && D(n, O.Diagnostics.Using_compiler_options_of_project_reference_redirect_0, a.sourceFile.fileName), O.getDirectoryPath(t)), + u = i && i.getOrCreateCacheForDirectory(l, a), + _ = u && u.get(e, o); + if (_) c && D(n, O.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1, e, l); + else { + var d = r.moduleResolution; + if (void 0 === d) { + switch (O.getEmitModuleKind(r)) { + case O.ModuleKind.CommonJS: + d = O.ModuleResolutionKind.NodeJs; + break; + case O.ModuleKind.Node16: + d = O.ModuleResolutionKind.Node16; + break; + case O.ModuleKind.NodeNext: + d = O.ModuleResolutionKind.NodeNext; + break; + default: + d = O.ModuleResolutionKind.Classic + } + c && D(n, O.Diagnostics.Module_resolution_kind_is_not_specified_using_0, O.ModuleResolutionKind[d]) + } else c && D(n, O.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, O.ModuleResolutionKind[d]); + switch (O.perfLogger.logStartResolveModule(e), d) { + case O.ModuleResolutionKind.Node16: + s = r, _ = $(S.Node16Default, e, t, s, n, i, a, o); + break; + case O.ModuleResolutionKind.NodeNext: + s = r, _ = $(S.NodeNextDefault, e, t, s, n, i, a, o); + break; + case O.ModuleResolutionKind.NodeJs: + _ = ee(e, t, r, n, i, a); + break; + case O.ModuleResolutionKind.Classic: + _ = ve(e, t, r, n, i, a); + break; + default: + return O.Debug.fail("Unexpected moduleResolution: ".concat(d)) + } + _ && _.resolvedModule && O.perfLogger.logInfoEvent('Module "'.concat(e, '" resolved to "').concat(_.resolvedModule.resolvedFileName, '"')), O.perfLogger.logStopResolveModule(_ && _.resolvedModule ? "" + _.resolvedModule.resolvedFileName : "null"), u && (u.set(e, o, _), O.isExternalModuleNameRelative(e) || i.getOrCreateCacheForModuleName(e, o, a).set(l, _)) + } + return c && (_.resolvedModule ? _.resolvedModule.packageId ? D(n, O.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2, e, _.resolvedModule.resolvedFileName, O.packageIdToString(_.resolvedModule.packageId)) : D(n, O.Diagnostics.Module_name_0_was_successfully_resolved_to_1, e, _.resolvedModule.resolvedFileName) : D(n, O.Diagnostics.Module_name_0_was_not_resolved, e)), _ + }, O.resolveJSModule = function(e, t, r) { + var n = (r = T(S.None, e, t, { + moduleResolution: O.ModuleResolutionKind.NodeJs, + allowJs: !0 + }, r, void 0, i, void 0)).resolvedModule, + r = r.failedLookupLocations; + if (n) return n.resolvedFileName; + throw new Error("Could not resolve JS module '".concat(e, "' starting at '").concat(t, "'. Looked in: ").concat(r.join(", "))) + }, (e = S = S || {})[e.None = 0] = "None", e[e.Imports = 2] = "Imports", e[e.SelfName = 4] = "SelfName", e[e.Exports = 8] = "Exports", e[e.ExportsPatternTrailers = 16] = "ExportsPatternTrailers", e[e.AllFeatures = 30] = "AllFeatures", e[e.Node16Default = 30] = "Node16Default", e[e.NodeNextDefault = 30] = "NodeNextDefault", e[e.EsmMode = 32] = "EsmMode"; + var i = [L.JavaScript], + u = [L.TypeScript, L.JavaScript], + Y = __spreadArray(__spreadArray([], u, !0), [L.Json], !1), + Z = [L.TSConfig]; + + function $(e, t, r, n, i, a, o, s) { + var r = O.getDirectoryPath(r), + s = s === O.ModuleKind.ESNext ? S.EsmMode : 0, + c = n.noDtsResolution ? [L.TsOnly, L.JavaScript] : u; + return T(e | s, t, r, n, i, a, c = n.resolveJsonModule ? __spreadArray(__spreadArray([], c, !0), [L.Json], !1) : c, o) + } + + function ee(e, t, r, n, i, a, o) { + var s; + return o ? s = Z : r.noDtsResolution ? (s = [L.TsOnly], r.allowJs && s.push(L.JavaScript), r.resolveJsonModule && s.push(L.Json)) : s = r.resolveJsonModule ? Y : u, T(S.None, e, O.getDirectoryPath(t), r, n, i, s, a) + } + + function T(i, a, o, s, c, l, e, u) { + var _ = v(s, c), + t = [], + r = [], + n = i & S.EsmMode ? ["node", "import", "types"] : ["node", "require", "types"], + d = (s.noDtsResolution && n.pop(), []), + p = { + compilerOptions: s, + host: c, + traceEnabled: _, + failedLookupLocations: t, + affectingLocations: r, + packageJsonInfoCache: l, + features: i, + conditions: n, + requestContainingDirectory: o, + reportDiagnostic: function(e) { + d.push(e) + } + }, + n = (_ && O.getEmitModuleResolutionKind(s) >= O.ModuleResolutionKind.Node16 && O.getEmitModuleResolutionKind(s) <= O.ModuleResolutionKind.NodeNext && D(c, O.Diagnostics.Resolving_in_0_mode_with_conditions_1, i & S.EsmMode ? "ESM" : "CJS", n.map(function(e) { + return "'".concat(e, "'") + }).join(", ")), O.forEach(e, function(e) { + var t, r, n = X(e, a, o, function(e, t, r, n) { + return C(e, t, r, n, !0) + }, p); + return n ? j({ + resolved: n, + isExternalLibraryImport: E(n.path) + }) : O.isExternalModuleNameRelative(a) ? (n = te(o, a), t = n.path, n = n.parts, (t = C(e, t, !1, p, !0)) && j({ + resolved: t, + isExternalLibraryImport: O.contains(n, "node_modules") + })) : ((r = !(r = i & S.Imports && O.startsWith(a, "#") ? function(e, t, r, n, i, a) { + if ("#" === t || O.startsWith(t, "#/")) n.traceEnabled && D(n.host, O.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions, t); + else { + var o = O.getNormalizedAbsolutePath(O.combinePaths(r, "dummy"), null == (o = (r = n.host).getCurrentDirectory) ? void 0 : o.call(r)), + r = k(o, n); + if (r) + if (r.contents.packageJsonContent.imports) { + e = _e(e, n, i, a, t, r.contents.packageJsonContent.imports, r, !0); + if (e) return e; + n.traceEnabled && D(n.host, O.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1, t, r.packageDirectory) + } else n.traceEnabled && D(n.host, O.Diagnostics.package_json_scope_0_has_no_imports_defined, r.packageDirectory); + else n.traceEnabled && D(n.host, O.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve, o) + } + return j(void 0) + }(e, a, o, p, l, u) : r) && i & S.SelfName ? function(e, t, r, n, i, a) { + var o = k(O.getNormalizedAbsolutePath(O.combinePaths(r, "dummy"), null == (o = (r = n.host).getCurrentDirectory) ? void 0 : o.call(r)), n); + if (!o || !o.contents.packageJsonContent.exports) return; + if ("string" != typeof o.contents.packageJsonContent.name) return; + var s = O.getPathComponents(t), + r = O.getPathComponents(o.contents.packageJsonContent.name); + if (O.every(r, function(e, t) { + return s[t] === e + })) return t = s.slice(r.length), le(o, e, O.length(t) ? ".".concat(O.directorySeparator).concat(t.join(O.directorySeparator)) : ".", n, i, a) + }(e, a, o, p, l, u) : r) || (_ && D(c, O.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1, a, L[e]), r = pe(e, a, o, p, l, u)), r ? (t = r.value, s.preserveSymlinks || !t || t.originalPath || (n = re(t.path, c, _), e = V(n, t.path, c), r = e ? void 0 : t.path, t = __assign(__assign({}, t), { + path: e ? t.path : n, + originalPath: r + })), { + value: t && { + resolved: t, + isExternalLibraryImport: !0 + } + }) : void 0) + })); + return f(null == (e = null == n ? void 0 : n.value) ? void 0 : e.resolved, null == (e = null == n ? void 0 : n.value) ? void 0 : e.isExternalLibraryImport, t, r, d, p.resultFromCache) + } + + function te(e, t) { + var e = O.combinePaths(e, t), + t = O.getPathComponents(e), + r = O.lastOrUndefined(t); + return { + path: "." === r || ".." === r ? O.ensureTrailingDirectorySeparator(O.normalizePath(e)) : O.normalizePath(e), + parts: t + } + } + + function re(e, t, r) { + var n; + return t.realpath ? (n = O.normalizePath(t.realpath(e)), r && D(t, O.Diagnostics.Resolving_real_path_for_0_result_1, e, n), O.Debug.assert(t.fileExists(n), "".concat(e, " linked to nonexistent file ").concat(n)), n) : e + } + + function C(e, t, r, n, i) { + if (n.traceEnabled && D(n.host, O.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1, t, L[e]), !O.hasTrailingDirectorySeparator(t)) { + r || (o = O.getDirectoryPath(t), O.directoryProbablyExists(o, n.host)) || (n.traceEnabled && D(n.host, O.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, o), r = !0); + var a, o = m(e, t, r, n); + if (o) return M((a = i ? ne(o.path) : void 0) ? N(a, !1, n) : void 0, o) + } + if (r || O.directoryProbablyExists(t, n.host) || (n.traceEnabled && D(n.host, O.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, t), r = !0), !(n.features & S.EsmMode)) return se(e, t, r, n, i) + } + + function E(e) { + return O.stringContains(e, O.nodeModulesPathPart) + } + + function ne(e) { + var t, e = O.normalizePath(e), + r = e.lastIndexOf(O.nodeModulesPathPart); + if (-1 !== r) return t = ie(e, r = r + O.nodeModulesPathPart.length), 64 === e.charCodeAt(r) && (t = ie(e, t)), e.slice(0, t) + } + + function ie(e, t) { + e = e.indexOf(O.directorySeparator, t + 1); + return -1 === e ? t : e + } + + function g(e, t, r, n) { + return _(m(e, t, r, n)) + } + + function m(e, t, r, n) { + var i; + if (e === L.Json || e === L.TSConfig) return i = (a = O.tryRemoveExtension(t, ".json")) ? t.substring(a.length) : "", void 0 === a && e === L.Json ? void 0 : o(a || t, e, i, r, n); + if (!(n.features & S.EsmMode)) { + var a = o(t, e, "", r, n); + if (a) return a + } + return ae(e, t, r, n) + } + + function ae(e, t, r, n) { + var i, a; + if (O.hasJSFileExtension(t) || O.fileExtensionIs(t, ".json") && n.compilerOptions.resolveJsonModule) return i = O.removeFileExtension(t), a = t.substring(i.length), n.traceEnabled && D(n.host, O.Diagnostics.File_name_0_has_a_1_extension_stripping_it, t, a), o(i, e, a, r, n) + } + + function R(e, t, r, n) { + return e !== L.TypeScript && e !== L.DtsOnly || !O.fileExtensionIsOneOf(t, O.supportedTSExtensionsFlat) ? ae(e, t, r, n) : void 0 !== y(t, r, n) ? { + path: t, + ext: O.tryExtractTSExtension(t) + } : void 0 + } + + function o(r, e, t, n, i) { + var a; + switch (n || (a = O.getDirectoryPath(r)) && (n = !O.directoryProbablyExists(a, i.host)), e) { + case L.DtsOnly: + switch (t) { + case ".mjs": + case ".mts": + case ".d.mts": + return s(".d.mts"); + case ".cjs": + case ".cts": + case ".d.cts": + return s(".d.cts"); + case ".json": + return r += ".json", s(".d.ts"); + default: + return s(".d.ts") + } + case L.TypeScript: + case L.TsOnly: + var o = e === L.TypeScript; + switch (t) { + case ".mjs": + case ".mts": + case ".d.mts": + return s(".mts") || (o ? s(".d.mts") : void 0); + case ".cjs": + case ".cts": + case ".d.cts": + return s(".cts") || (o ? s(".d.cts") : void 0); + case ".json": + return r += ".json", o ? s(".d.ts") : void 0; + default: + return s(".ts") || s(".tsx") || (o ? s(".d.ts") : void 0) + } + case L.JavaScript: + switch (t) { + case ".mjs": + case ".mts": + case ".d.mts": + return s(".mjs"); + case ".cjs": + case ".cts": + case ".d.cts": + return s(".cjs"); + case ".json": + return s(".json"); + default: + return s(".js") || s(".jsx") + } + case L.TSConfig: + case L.Json: + return s(".json") + } + + function s(e) { + var t = y(r + e, n, i); + return void 0 === t ? void 0 : { + path: t, + ext: e + } + } + } + + function y(e, t, r) { + var n, i, a; + return null != (n = r.compilerOptions.moduleSuffixes) && n.length ? (i = null != (n = O.tryGetExtensionFromPath(e)) ? n : "", a = i ? O.removeExtension(e, i) : e, O.forEach(r.compilerOptions.moduleSuffixes, function(e) { + return oe(a + e + i, t, r) + })) : oe(e, t, r) + } + + function oe(e, t, r) { + if (!t) { + if (r.host.fileExists(e)) return r.traceEnabled && D(r.host, O.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result, e), e; + r.traceEnabled && D(r.host, O.Diagnostics.File_0_does_not_exist, e) + } + r.failedLookupLocations.push(e) + } + + function se(e, t, r, n, i) { + i = (i = void 0 === i ? !0 : i) ? N(t, r, n) : void 0; + return M(i, A(e, t, r, n, i && i.contents.packageJsonContent, i && i.contents.versionPaths)) + } + + function h(e, t, r) { + return { + host: t, + compilerOptions: r, + traceEnabled: v(r, t), + failedLookupLocations: O.noopPush, + affectingLocations: O.noopPush, + packageJsonInfoCache: e, + features: S.None, + conditions: O.emptyArray, + requestContainingDirectory: void 0, + reportDiagnostic: O.noop + } + } + + function k(e, t) { + var r = O.getPathComponents(e); + for (r.pop(); 0 < r.length;) { + var n = N(O.getPathFromPathComponents(r), !1, t); + if (n) return n; + r.pop() + } + } + + function N(e, t, r) { + var n, i = r.host, + a = r.traceEnabled, + o = O.combinePaths(e, "package.json"); + if (!t) return void 0 !== (t = null == (t = r.packageJsonInfoCache) ? void 0 : t.getPackageJsonInfo(o)) ? "boolean" != typeof t ? (a && D(i, O.Diagnostics.File_0_exists_according_to_earlier_cached_lookups, o), r.affectingLocations.push(o), t.packageDirectory === e ? t : { + packageDirectory: e, + contents: t.contents + }) : (t && a && D(i, O.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups, o), void r.failedLookupLocations.push(o)) : (t = O.directoryProbablyExists(e, i)) && i.fileExists(o) ? (n = O.readJson(o, i), a && D(i, O.Diagnostics.Found_package_json_at_0, o), e = { + packageDirectory: e, + contents: { + packageJsonContent: n, + versionPaths: U(n, r), + resolvedEntrypoints: void 0 + } + }, null != (n = r.packageJsonInfoCache) && n.setPackageJsonInfo(o, e), r.affectingLocations.push(o), e) : (t && a && D(i, O.Diagnostics.File_0_does_not_exist, o), null != (n = r.packageJsonInfoCache) && n.setPackageJsonInfo(o, t), void r.failedLookupLocations.push(o)); + r.failedLookupLocations.push(o) + } + + function A(e, t, r, n, c, i) { + var a; + if (c) switch (e) { + case L.JavaScript: + case L.Json: + case L.TsOnly: + a = z(c, t, n); + break; + case L.TypeScript: + a = I(c, t, n) || z(c, t, n); + break; + case L.DtsOnly: + a = I(c, t, n); + break; + case L.TSConfig: + a = p(c, "tsconfig", t, n); + break; + default: + return O.Debug.assertNever(e) + } + + function o(e, t, r, n) { + var i = y(t, r, n); + if (i) { + a = e, o = i; + var a = void 0 !== (s = O.tryGetExtensionFromPath(o)) && function(e, t) { + switch (e) { + case L.JavaScript: + return ".js" === t || ".jsx" === t || ".mjs" === t || ".cjs" === t; + case L.TSConfig: + case L.Json: + return ".json" === t; + case L.TypeScript: + return ".ts" === t || ".tsx" === t || ".mts" === t || ".cts" === t || ".d.ts" === t || ".d.mts" === t || ".d.cts" === t; + case L.TsOnly: + return ".ts" === t || ".tsx" === t || ".mts" === t || ".cts" === t; + case L.DtsOnly: + return ".d.ts" === t || ".d.mts" === t || ".d.cts" === t + } + }(a, s) ? { + path: o, + ext: s + } : void 0; + if (a) return _(a); + n.traceEnabled && D(n.host, O.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, i) + } + var o = e === L.DtsOnly ? L.TypeScript : e, + s = n.features, + a = ("module" !== (null == c ? void 0 : c.type) && (n.features &= ~S.EsmMode), C(o, t, r, n, !1)); + return n.features = s, a + } + var s = a ? !O.directoryProbablyExists(O.getDirectoryPath(a), n.host) : void 0, + r = r || !O.directoryProbablyExists(t, n.host), + l = O.combinePaths(t, e === L.TSConfig ? "tsconfig" : "index"); + if (i && (!a || O.containsPath(t, a))) { + var u = O.getRelativePathFromDirectory(t, a || l, !1), + u = (n.traceEnabled && D(n.host, O.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, i.version, O.version, u), P(e, u, t, i.paths, void 0, o, s || r, n)); + if (u) return d(u.value) + } + i = a && d(o(e, a, s, n)); + return i || (n.features & S.EsmMode ? void 0 : m(e, l, r, n)) + } + + function ce(e) { + var t = e.indexOf(O.directorySeparator); + return -1 === (t = "@" === e[0] ? e.indexOf(O.directorySeparator, t + 1) : t) ? { + packageName: e, + rest: "" + } : { + packageName: e.slice(0, t), + rest: e.slice(t + 1) + } + } + + function F(e) { + return O.every(O.getOwnKeys(e), function(e) { + return O.startsWith(e, ".") + }) + } + + function le(e, t, r, n, i, a) { + if (e.contents.packageJsonContent.exports) { + if ("." === r) { + var o = void 0; + if ("string" == typeof e.contents.packageJsonContent.exports || Array.isArray(e.contents.packageJsonContent.exports) || "object" == typeof e.contents.packageJsonContent.exports && (s = e.contents.packageJsonContent.exports, !O.some(O.getOwnKeys(s), function(e) { + return O.startsWith(e, ".") + })) ? o = e.contents.packageJsonContent.exports : O.hasProperty(e.contents.packageJsonContent.exports, ".") && (o = e.contents.packageJsonContent.exports["."]), o) return de(t, n, i, a, r, e, !1)(o, "", !1, ".") + } else if (F(e.contents.packageJsonContent.exports)) { + if ("object" != typeof e.contents.packageJsonContent.exports) return n.traceEnabled && D(n.host, O.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1, r, e.packageDirectory), j(void 0); + s = _e(t, n, i, a, r, e.contents.packageJsonContent.exports, e, !1); + if (s) return s + } + var s; + return n.traceEnabled && D(n.host, O.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1, r, e.packageDirectory), j(void 0) + } + } + + function ue(e, t) { + var r = e.indexOf("*"), + n = t.indexOf("*"), + i = -1 === r ? e.length : r + 1, + a = -1 === n ? t.length : n + 1; + return a < i ? -1 : i < a || -1 === r ? 1 : -1 === n || e.length > t.length ? -1 : t.length > e.length ? 1 : 0 + } + + function _e(e, t, r, n, i, a, o, s) { + var c = de(e, t, r, n, i, o, s); + if (!O.endsWith(i, O.directorySeparator) && -1 === i.indexOf("*") && O.hasProperty(a, i)) return c(f = a[i], "", !1, i); + for (var l, u, _ = 0, d = O.sort(O.filter(O.getOwnKeys(a), function(e) { + return -1 !== e.indexOf("*") || O.endsWith(e, "/") + }), ue); _ < d.length; _++) { + var p, f, g = d[_]; + if (t.features & S.ExportsPatternTrailers && (l = g, p = i, u = void 0, !O.endsWith(l, "*")) && -1 !== (u = l.indexOf("*")) && O.startsWith(p, l.substring(0, u)) && O.endsWith(p, l.substring(u + 1))) return f = a[g], p = g.indexOf("*"), c(f, i.substring(g.substring(0, p).length, i.length - (g.length - 1 - p)), !0, g); + if (O.endsWith(g, "*") && O.startsWith(i, g.substring(0, g.length - 1))) return c(f = a[g], i.substring(g.length - 1), !0, g); + if (O.startsWith(i, g)) return c(f = a[g], i.substring(g.length), !1, g) + } + } + + function de(P, w, m, y, h, I, v) { + return function e(t, r, n, i) { + { + if ("string" == typeof t) { + if (!n && 0 < r.length && !O.endsWith(t, "/")) return w.traceEnabled && D(w.host, O.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, I.packageDirectory, h), j(void 0); + if (!O.startsWith(t, "./")) return !v || O.startsWith(t, "../") || O.startsWith(t, "/") || O.isRootedDiskPath(t) ? (w.traceEnabled && D(w.host, O.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, I.packageDirectory, h), j(void 0)) : (a = n ? t.replace(/\*/g, r) : t + r, J(w, O.Diagnostics.Using_0_subpath_1_with_target_2, "imports", i, a), J(w, O.Diagnostics.Resolving_module_0_from_1, a, I.packageDirectory + "/"), j((p = T(w.features, a, I.packageDirectory + "/", w.compilerOptions, w.host, m, [P], y)).resolvedModule ? { + path: p.resolvedModule.resolvedFileName, + extension: p.resolvedModule.extension, + packageId: p.resolvedModule.packageId, + originalPath: p.resolvedModule.originalPath + } : void 0)); + var a = O.pathIsRelative(t) ? O.getPathComponents(t).slice(1) : O.getPathComponents(t), + a = a.slice(1); + if (0 <= a.indexOf("..") || 0 <= a.indexOf(".") || 0 <= a.indexOf("node_modules")) return w.traceEnabled && D(w.host, O.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, I.packageDirectory, h), j(void 0); + var a = O.combinePaths(I.packageDirectory, t), + o = O.getPathComponents(r); + if (0 <= o.indexOf("..") || 0 <= o.indexOf(".") || 0 <= o.indexOf("node_modules")) return w.traceEnabled && D(w.host, O.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, I.packageDirectory, h), j(void 0); + w.traceEnabled && D(w.host, O.Diagnostics.Using_0_subpath_1_with_target_2, v ? "imports" : "exports", i, n ? t.replace(/\*/g, r) : t + r); + o = N(n ? a.replace(/\*/g, r) : a + r), a = g(o, r, O.combinePaths(I.packageDirectory, "package.json"), v); + return a ? a : j(M(I, R(P, o, !1, w))) + } + if ("object" == typeof t && null !== t) { + if (!Array.isArray(t)) { + for (var s = 0, c = O.getOwnKeys(t); s < c.length; s++) { + var l = c[s]; + if ("default" === l || 0 <= w.conditions.indexOf(l) || B(w.conditions, l)) { + J(w, O.Diagnostics.Matched_0_condition_1, v ? "imports" : "exports", l); + var u = t[l]; + if (p = e(u, r, n, i)) return p + } else J(w, O.Diagnostics.Saw_non_matching_condition_0, l) + } + return + } + if (!O.length(t)) return w.traceEnabled && D(w.host, O.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, I.packageDirectory, h), j(void 0); + for (var _ = 0, d = t; _ < d.length; _++) { + var p, f = d[_]; + if (p = e(f, r, n, i)) return p + } + } else if (null === t) return w.traceEnabled && D(w.host, O.Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null, I.packageDirectory, h), j(void 0) + } + w.traceEnabled && D(w.host, O.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, I.packageDirectory, h); + return j(void 0); + + function N(e) { + var t; + return void 0 === e ? e : O.getNormalizedAbsolutePath(e, null == (t = (e = w.host).getCurrentDirectory) ? void 0 : t.call(e)) + } + + function A(e, t) { + return O.ensureTrailingDirectorySeparator(O.combinePaths(e, t)) + } + + function F() { + return !w.host.useCaseSensitiveFileNames || ("boolean" == typeof w.host.useCaseSensitiveFileNames ? w.host.useCaseSensitiveFileNames : w.host.useCaseSensitiveFileNames()) + } + + function g(e, t, r, n) { + var i, a; + if ((P === L.TypeScript || P === L.JavaScript || P === L.Json) && (w.compilerOptions.declarationDir || w.compilerOptions.outDir) && -1 === e.indexOf("/node_modules/") && (!w.compilerOptions.configFile || O.containsPath(I.packageDirectory, N(w.compilerOptions.configFile.fileName), !F()))) { + var o = O.hostGetCanonicalFileName({ + useCaseSensitiveFileNames: F + }), + s = []; + if (w.compilerOptions.rootDir || w.compilerOptions.composite && w.compilerOptions.configFilePath) { + var c = N(O.getCommonSourceDirectory(w.compilerOptions, function() { + return [] + }, (null == (c = (i = w.host).getCurrentDirectory) ? void 0 : c.call(i)) || "", o)); + s.push(c) + } else if (w.requestContainingDirectory) + for (var l = N(O.combinePaths(w.requestContainingDirectory, "index.ts")), c = N(O.getCommonSourceDirectory(w.compilerOptions, function() { + return [l, N(r)] + }, (null == (a = (i = w.host).getCurrentDirectory) ? void 0 : a.call(i)) || "", o)), u = (s.push(c), O.ensureTrailingDirectorySeparator(c)); u && 1 < u.length;) { + var _ = O.getPathComponents(u), + _ = (_.pop(), O.getPathFromPathComponents(_)); + s.unshift(_), u = O.ensureTrailingDirectorySeparator(_) + } + 1 < s.length && w.reportDiagnostic(O.createCompilerDiagnostic(n ? O.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate : O.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate, "" === t ? "." : t, r)); + for (var d = 0, p = s; d < p.length; d++) + for (var f = p[d], g = k(f), m = 0, y = g; m < y.length; m++) { + var h = y[m]; + if (O.containsPath(h, e, !F())) + for (var h = e.slice(h.length + 1), v = O.combinePaths(f, h), h = [".mjs", ".cjs", ".js", ".json", ".d.mts", ".d.cts", ".d.ts"], b = 0, x = h; b < x.length; b++) { + var D = x[b]; + if (O.fileExtensionIs(v, D)) + for (var S = O.getPossibleOriginalInputExtensionForExtension(v), T = 0, C = S; T < C.length; T++) { + var E = C[T], + E = O.changeAnyExtension(v, E, D, !F()); + if (!(P === L.TypeScript && O.hasJSFileExtension(E) || P === L.JavaScript && O.hasTSFileExtension(E)) && w.host.fileExists(E)) return j(M(I, R(P, E, !1, w))) + } + } + } + } + + function k(e) { + var t = w.compilerOptions.configFile ? (null == (t = (r = w.host).getCurrentDirectory) ? void 0 : t.call(r)) || "" : e, + r = []; + return w.compilerOptions.declarationDir && r.push(N(A(t, w.compilerOptions.declarationDir))), w.compilerOptions.outDir && w.compilerOptions.outDir !== w.compilerOptions.declarationDir && r.push(N(A(t, w.compilerOptions.outDir))), r + } + } + } + } + + function B(e, t) { + return -1 !== e.indexOf("types") && !!O.startsWith(t, "types@") && !!(e = O.VersionRange.tryParse(t.substring("types@".length))) && e.test(O.version) + } + + function pe(e, t, r, n, i, a) { + return fe(e, t, r, n, !1, i, a) + } + + function fe(t, r, e, n, i, a, o) { + var s = a && a.getOrCreateCacheForModuleName(r, 0 === n.features ? void 0 : n.features & S.EsmMode ? O.ModuleKind.ESNext : O.ModuleKind.CommonJS, o); + return O.forEachAncestorDirectory(O.normalizeSlashes(e), function(e) { + if ("node_modules" !== O.getBaseFileName(e)) return he(s, r, e, n) || j(ge(t, r, e, n, i, a, o)) + }) + } + + function ge(e, t, r, n, i, a, o) { + var r = O.combinePaths(r, "node_modules"), + s = O.directoryProbablyExists(r, n.host), + i = (!s && n.traceEnabled && D(n.host, O.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, r), i ? void 0 : me(e, t, r, s, n, a, o)); + return i || (e === L.TypeScript || e === L.DtsOnly ? (i = O.combinePaths(r, "@types"), (e = s) && !O.directoryProbablyExists(i, n.host) && (n.traceEnabled && D(n.host, O.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, i), e = !1), me(L.DtsOnly, function(e, t) { + var r = c(e); + t.traceEnabled && r !== e && D(t.host, O.Diagnostics.Scoped_package_detected_looking_in_0, r); + return r + }(t, n), i, e, n, a, o)) : void 0) + } + + function me(e, t, r, n, i, a, o) { + var s = O.normalizePath(O.combinePaths(r, t)), + c = N(s, !n, i); + if (!(i.features & S.Exports) && c) return (u = m(e, s, !n, i)) ? _(u) : (u = A(e, s, !n, i, c.contents.packageJsonContent, c.contents.versionPaths), M(c, u)); + + function l(e, t, r, n) { + var i = m(e, t, r, n) || A(e, t, r, n, c && c.contents.packageJsonContent, c && c.contents.versionPaths); + return !i && c && (void 0 === c.contents.packageJsonContent.exports || null === c.contents.packageJsonContent.exports) && n.features & S.EsmMode && (i = m(e, O.combinePaths(t, "index.js"), r, n)), M(c, i) + } + var u = ce(t), + t = u.packageName, + u = u.rest, + r = O.combinePaths(r, t); + if ((c = "" !== u ? N(r, !n, i) : c) && c.contents.packageJsonContent.exports && i.features & S.Exports) return null == (t = le(c, e, O.combinePaths(".", u), i, a, o)) ? void 0 : t.value; + if ("" !== u && c && c.contents.versionPaths) { + i.traceEnabled && D(i.host, O.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, c.contents.versionPaths.version, O.version, u); + a = n && O.directoryProbablyExists(r, i.host), o = P(e, u, r, c.contents.versionPaths.paths, void 0, l, !a, i); + if (o) return o.value + } + return l(e, s, !n, i) + } + + function P(n, e, i, t, r, a, o, s) { + r = r || O.tryParsePatterns(t); + var c, r = O.matchPatternOrExact(r, e); + if (r) return c = O.isString(r) ? void 0 : O.matchedText(r, e), r = O.isString(r) ? r : O.patternText(r), s.traceEnabled && D(s.host, O.Diagnostics.Module_name_0_matched_pattern_1, e, r), { + value: O.forEach(t[r], function(e) { + var t = c ? e.replace("*", c) : e, + r = O.normalizePath(O.combinePaths(i, t)), + t = (s.traceEnabled && D(s.host, O.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1, e, t), O.tryGetExtensionFromPath(e)); + if (void 0 !== t) { + e = y(r, o, s); + if (void 0 !== e) return _({ + path: e, + ext: t + }) + } + return a(n, r, o || !O.directoryProbablyExists(O.getDirectoryPath(r), s.host), s) + }) + } + } + O.nodeModuleNameResolver = ee, O.nodeModulesPathPart = "/node_modules/", O.pathContainsNodeModules = E, O.parseNodeModuleFromPath = ne, O.getEntrypointsFromPackageJsonInfo = function(e, t, r, n, i) { + if (!i && void 0 !== e.contents.resolvedEntrypoints) return e.contents.resolvedEntrypoints; + var a = i ? L.JavaScript : L.TypeScript, + i = q(t), + o = h(null == n ? void 0 : n.getPackageJsonInfoCache(), r, t), + n = (o.conditions = ["node", "require", "types"], o.requestContainingDirectory = e.packageDirectory, A(a, e.packageDirectory, !1, o, e.contents.packageJsonContent, e.contents.versionPaths)); + if (p = O.append(p, null == n ? void 0 : n.path), i & S.Exports && e.contents.packageJsonContent.exports) + for (var s = 0, c = [ + ["node", "import", "types"], + ["node", "require", "types"] + ]; s < c.length; s++) { + var l = c[s], + l = __assign(__assign({}, o), { + failedLookupLocations: [], + conditions: l + }), + l = function(a, e, o, s) { + var c; + if (O.isArray(e)) + for (var t = 0, r = e; t < r.length; t++) l(r[t]); + else if ("object" == typeof e && null !== e && F(e)) + for (var n in e) l(e[n]); + else l(e); + return c; + + function l(t) { + var e, r; + if ("string" == typeof t && O.startsWith(t, "./") && -1 === t.indexOf("*")) return !(0 <= (r = O.getPathComponents(t).slice(2)).indexOf("..") || 0 <= r.indexOf(".") || 0 <= r.indexOf("node_modules")) && (r = O.combinePaths(a.packageDirectory, t), e = O.getNormalizedAbsolutePath(r, null == (e = (r = o.host).getCurrentDirectory) ? void 0 : e.call(r)), (r = R(s, e, !1, o)) ? (c = O.appendIfUnique(c, r, function(e, t) { + return e.path === t.path + }), !0) : void 0); + if (Array.isArray(t)) { + for (var n = 0, i = t; n < i.length; n++) + if (l(i[n])) return !0 + } else if ("object" == typeof t && null !== t) return O.forEach(O.getOwnKeys(t), function(e) { + if ("default" === e || O.contains(o.conditions, e) || B(o.conditions, e)) return l(t[e]), !0 + }) + } + }(e, e.contents.packageJsonContent.exports, l, a); + if (l) + for (var u = 0, _ = l; u < _.length; u++) var d = _[u], + p = O.appendIfUnique(p, d.path) + } + return e.contents.resolvedEntrypoints = p || !1 + }, O.getTemporaryModuleResolutionState = h, O.getPackageScopeForPath = k, O.getPackageJsonInfo = N, O.parsePackageName = ce, O.allKeysStartWithDot = F, O.comparePatternKeys = ue, O.isApplicableVersionedTypesKey = B; + var r = "__"; + + function c(e) { + if (O.startsWith(e, "@")) { + var t = e.replace(O.directorySeparator, r); + if (t !== e) return t.slice(1) + } + return e + } + + function ye(e) { + return O.stringContains(e, r) ? "@" + e.replace(r, O.directorySeparator) : e + } + + function he(e, t, r, n) { + e = e && e.get(r); + if (e) return n.traceEnabled && D(n.host, O.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1, t, r), { + value: (n.resultFromCache = e).resolvedModule && { + path: e.resolvedModule.resolvedFileName, + originalPath: e.resolvedModule.originalPath || !0, + extension: e.resolvedModule.extension, + packageId: e.resolvedModule.packageId + } + } + } + + function ve(i, e, t, r, a, o) { + var n = v(t, r), + s = [], + c = [], + l = O.getDirectoryPath(e), + u = [], + _ = { + compilerOptions: t, + host: r, + traceEnabled: n, + failedLookupLocations: s, + affectingLocations: c, + packageJsonInfoCache: a, + features: S.None, + conditions: [], + requestContainingDirectory: l, + reportDiagnostic: function(e) { + u.push(e) + } + }, + e = d(L.TypeScript) || d(L.JavaScript); + return f(e && e.value, !1, s, c, u, _.resultFromCache); + + function d(r) { + var n, e = X(r, i, l, g, _); + return e ? { + value: e + } : O.isExternalModuleNameRelative(i) ? (e = O.normalizePath(O.combinePaths(l, i)), j(g(r, e, !1, _))) : (n = a && a.getOrCreateCacheForModuleName(i, void 0, o), O.forEachAncestorDirectory(l, function(e) { + var t = he(n, i, e, _); + return t || (t = O.normalizePath(O.combinePaths(e, i)), j(g(r, t, !1, _))) + }) || (r === L.TypeScript ? fe(L.DtsOnly, i, l, _, !0, void 0, void 0) : void 0)) + } + } + + function j(e) { + return void 0 !== e ? { + value: e + } : void 0 + } + + function J(e, t) { + for (var r = [], n = 2; n < arguments.length; n++) r[n - 2] = arguments[n]; + e.traceEnabled && D.apply(void 0, __spreadArray([e.host, t], r, !1)) + } + O.getTypesPackageName = function(e) { + return "@types/".concat(c(e)) + }, O.mangleScopedPackageName = c, O.getPackageNameFromTypesPackageName = function(e) { + var t = O.removePrefix(e, "@types/"); + return t !== e ? ye(t) : e + }, O.unmangleScopedPackageName = ye, O.classicNameResolver = ve, O.loadModuleFromGlobalCache = function(e, t, r, n, i, a) { + var o = v(r, n); + o && D(n, O.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2, t, e, i); + var s = [], + c = [], + r = { + compilerOptions: r, + host: n, + traceEnabled: o, + failedLookupLocations: t = [], + affectingLocations: s, + packageJsonInfoCache: a, + features: S.None, + conditions: [], + requestContainingDirectory: void 0, + reportDiagnostic: function(e) { + c.push(e) + } + }; + return f(ge(L.DtsOnly, e, i, r, !1, void 0, void 0), !0, t, s, c, r.resultFromCache) + } + }(ts = ts || {}), ! function(B) { + var e; + + function _e(e, t) { + return e.body && !e.body.parent && (B.setParent(e.body, e), B.setParentRecursive(e.body, !1)), e.body ? l(e.body, t) : 1 + } + + function l(e, t) { + void 0 === t && (t = new B.Map); + var r = B.getNodeId(e); + if (t.has(r)) return t.get(r) || 0; + t.set(r, void 0); + e = function(e, r) { + switch (e.kind) { + case 261: + case 262: + return 0; + case 263: + if (B.isEnumConst(e)) return 2; + break; + case 269: + case 268: + if (B.hasSyntacticModifier(e, 1)) break; + return 0; + case 275: + var t = e; + if (t.moduleSpecifier || !t.exportClause || 276 !== t.exportClause.kind) break; + for (var n = 0, i = 0, a = t.exportClause.elements; i < a.length; i++) { + var o = function(e, t) { + var r = e.propertyName || e.name, + n = e.parent; + for (; n;) { + if (B.isBlock(n) || B.isModuleBlock(n) || B.isSourceFile(n)) { + for (var i = n.statements, a = void 0, o = 0, s = i; o < s.length; o++) { + var c = s[o]; + if (B.nodeHasName(c, r)) { + c.parent || (B.setParent(c, n), B.setParentRecursive(c, !1)); + c = l(c, t); + if (1 === (a = void 0 === a || a < c ? c : a)) return a + } + } + if (void 0 !== a) return a + } + n = n.parent + } + return 1 + }(a[i], r); + if (1 === (n = n < o ? o : n)) return n + } + return n; + case 265: + var s = 0; + return B.forEachChild(e, function(e) { + var t = l(e, r); + switch (t) { + case 0: + return; + case 2: + return void(s = 2); + case 1: + return s = 1, !0; + default: + B.Debug.assertNever(t) + } + }), s; + case 264: + return _e(e, r); + case 79: + if (e.isInJSDocNamespace) return 0 + } + return 1 + }(e, t); + return t.set(r, e), e + } + + function m(e) { + return B.Debug.attachFlowNodeDebugInfo(e), e + }(e = B.ModuleInstanceState || (B.ModuleInstanceState = {}))[e.NonInstantiated = 0] = "NonInstantiated", e[e.Instantiated = 1] = "Instantiated", e[e.ConstEnumOnly = 2] = "ConstEnumOnly", B.getModuleInstanceState = _e; + G = !1, n = 0, Q = { + flags: 1 + }, ve = { + flags: 1 + }, be = function() { + return B.createBinaryExpressionTrampoline(function(e, t) { + t ? (t.stackIndex++, B.setParent(e, w), r = M, C(e), n = w, w = e, t.skip = !1, t.inStrictModeStack[t.stackIndex] = r, t.parentStack[t.stackIndex] = n) : t = { + stackIndex: 0, + skip: !1, + inStrictModeStack: [void 0], + parentStack: [void 0] + }; + var r = e.operatorToken.kind; { + var n; + 55 !== r && 56 !== r && 60 !== r && !B.isLogicalOrCoalescingAssignmentOperator(r) || (p(e) ? (n = te(), b(e, n, n), J = ne(n)) : b(e, V, q), t.skip = !0) + } + return t + }, function(e, t, r) { + if (!t.skip) return t = n(e), 27 === r.operatorToken.kind && Ie(e), t + }, function(e, t, r) { + t.skip || le(e) + }, function(e, t, r) { + if (!t.skip) return t = n(e), 27 === r.operatorToken.kind && Ie(e), t + }, function(e, t) { + t.skip || (r = e.operatorToken.kind, B.isAssignmentOperator(r) && !B.isAssignmentTarget(e) && (ae(e.left), 63 === r) && 209 === e.left.kind && ee(e.left.expression) && (J = Ne(256, J, e))); + var r = t.inStrictModeStack[t.stackIndex], + e = t.parentStack[t.stackIndex]; + void 0 !== r && (M = r); + void 0 !== e && (w = e); + t.skip = !1, t.stackIndex-- + }, void 0); + + function n(e) { + if (e && B.isBinaryExpression(e) && !B.isDestructuringAssignment(e)) return e; + le(e) + } + }(); + var P, j, de, w, I, y, O, u, pe, fe, J, z, U, K, V, q, W, ge, H, me, ye, M, r, he, G, n, Q, ve, be, i = function(e, t) { + P = e, j = t, de = B.getEmitScriptTarget(j), e = P, M = !(!B.getStrictOptionValue(t, "alwaysStrict") || e.isDeclarationFile) || !!e.externalModuleIndicator, he = new B.Set, n = 0, r = B.objectAllocator.getSymbolConstructor(), B.Debug.attachFlowNodeDebugInfo(Q), B.Debug.attachFlowNodeDebugInfo(ve), P.locals || (null !== B.tracing && void 0 !== B.tracing && B.tracing.push("bind", "bindSourceFile", { + path: P.path + }, !0), le(P), null !== B.tracing && void 0 !== B.tracing && B.tracing.pop(), P.symbolCount = n, P.classifiableNames = he, function() { + if (pe) { + for (var e = I, t = u, r = O, n = w, i = J, a = 0, o = pe; a < o.length; a++) { + var s = o[a], + c = s.parent.parent, + l = (I = B.findAncestor(c.parent, function(e) { + return !!(1 & S(e)) + }) || P, O = B.getEnclosingBlockScopeContainer(c) || P, J = m({ + flags: 2 + }), le((w = s).typeExpression), B.getNameOfDeclaration(s)); + if ((B.isJSDocEnumTag(s) || !s.fullName) && l && B.isPropertyAccessEntityNameExpression(l.parent)) { + c = rt(l.parent); + if (c) { + et(P.symbol, l.parent, c, !!B.findAncestor(l, function(e) { + return B.isPropertyAccessExpression(e) && "prototype" === e.name.escapedText + }), !1); + c = I; + switch (B.getAssignmentDeclarationPropertyAccessKind(l.parent)) { + case 1: + case 2: + I = B.isExternalOrCommonJsModule(P) ? P : void 0; + break; + case 4: + I = l.parent.expression; + break; + case 3: + I = l.parent.expression.name; + break; + case 5: + I = lt(P, l.parent.expression) ? P : B.isPropertyAccessExpression(l.parent.expression) ? l.parent.expression.name : l.parent.expression; + break; + case 0: + return B.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration") + } + I && _(s, 524288, 788968), I = c + } + } else B.isJSDocEnumTag(s) || !s.fullName || 79 === s.fullName.kind ? (w = s.parent, ce(s, 524288, 788968)) : le(s.fullName) + } + I = e, u = t, O = r, w = n, J = i + } + }()), H = W = q = V = K = U = z = J = pe = u = O = y = I = w = de = j = P = void 0, G = me = fe = !1, ye = 0 + }; + + function L(e, t, r, n, i) { + return B.createDiagnosticForNodeInSourceFile(B.getSourceFileOfNode(e) || P, e, t, r, n, i) + } + + function R(e, t) { + return n++, new r(e, t) + } + + function X(e, t, r) { + e.flags |= r, (t.symbol = e).declarations = B.appendIfUnique(e.declarations, t), 1955 & r && !e.exports && (e.exports = B.createSymbolTable()), 6240 & r && !e.members && (e.members = B.createSymbolTable()), e.constEnumOnlyModule && 304 & e.flags && (e.constEnumOnlyModule = !1), 111551 & r && B.setValueDeclaration(e, t) + } + + function xe(e) { + if (274 === e.kind) return e.isExportEquals ? "export=" : "default"; + var t = B.getNameOfDeclaration(e); + if (t) { + if (B.isAmbientModule(e)) return r = B.getTextOfIdentifierOrLiteral(t), B.isGlobalScopeAugmentation(e) ? "__global" : '"'.concat(r, '"'); + if (164 === t.kind) { + var r = t.expression; + if (B.isStringOrNumericLiteralLike(r)) return B.escapeLeadingUnderscores(r.text); + if (B.isSignedNumericLiteral(r)) return B.tokenToString(r.operator) + r.operand.text; + B.Debug.fail("Only computed properties with literal names have declaration names") + } + return B.isPrivateIdentifier(t) ? (r = B.getContainingClass(e)) ? (r = r.symbol, B.getSymbolNameForPrivateIdentifier(r, t.escapedText)) : void 0 : B.isPropertyNameLiteral(t) ? B.getEscapedTextOfIdentifierOrLiteral(t) : void 0 + } + switch (e.kind) { + case 173: + return "__constructor"; + case 181: + case 176: + case 326: + return "__call"; + case 182: + case 177: + return "__new"; + case 178: + return "__index"; + case 275: + return "__export"; + case 308: + return "export="; + case 223: + if (2 === B.getAssignmentDeclarationKind(e)) return "export="; + B.Debug.fail("Unknown binary declaration kind"); + break; + case 320: + return B.isJSDocConstructSignature(e) ? "__new" : "__call"; + case 166: + return B.Debug.assert(320 === e.parent.kind, "Impossible parameter parent kind", function() { + return "parent is: ".concat(B.Debug.formatSyntaxKind(e.parent.kind), ", expected JSDocFunctionType") + }), "arg" + e.parent.parameters.indexOf(e) + } + } + + function f(e) { + return B.isNamedDeclaration(e) ? B.declarationNameToString(e.name) : B.unescapeLeadingUnderscores(B.Debug.checkDefined(xe(e))) + } + + function Y(e, t, r, n, i, a, o) { + B.Debug.assert(o || !B.hasDynamicName(r)); + var s, c, l, u, _, d, p = B.hasSyntacticModifier(r, 1024) || B.isExportSpecifier(r) && "default" === r.name.escapedText, + o = o ? "__computed" : p && t ? "default" : xe(r); + if (void 0 === o) s = R(0, "__missing"); + else if (s = e.get(o), 2885600 & n && he.add(o), s) { + if (a && !s.isReplaceableByMethod) return s; + s.flags & i && (s.isReplaceableByMethod ? e.set(o, s = R(0, o)) : 3 & n && 67108864 & s.flags || (B.isNamedDeclaration(r) && B.setParent(r.name, r), c = 2 & s.flags ? B.Diagnostics.Cannot_redeclare_block_scoped_variable_0 : B.Diagnostics.Duplicate_identifier_0, l = !0, (384 & s.flags || 384 & n) && (c = B.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations, l = !1), u = !1, B.length(s.declarations) && (p || s.declarations && s.declarations.length && 274 === r.kind && !r.isExportEquals) && (c = B.Diagnostics.A_module_cannot_have_multiple_default_exports, u = !(l = !1)), _ = [], B.isTypeAliasDeclaration(r) && B.nodeIsMissing(r.type) && B.hasSyntacticModifier(r, 1) && 2887656 & s.flags && _.push(L(r, B.Diagnostics.Did_you_mean_0, "export type { ".concat(B.unescapeLeadingUnderscores(r.name.escapedText), " }"))), d = B.getNameOfDeclaration(r) || r, B.forEach(s.declarations, function(e, t) { + var r = B.getNameOfDeclaration(e) || e, + e = L(r, c, l ? f(e) : void 0); + P.bindDiagnostics.push(u ? B.addRelatedInfo(e, L(d, 0 === t ? B.Diagnostics.Another_export_default_is_here : B.Diagnostics.and_here)) : e), u && _.push(L(r, B.Diagnostics.The_first_export_default_is_here)) + }), i = L(d, c, l ? f(r) : void 0), P.bindDiagnostics.push(B.addRelatedInfo.apply(void 0, __spreadArray([i], _, !1))), s = R(0, o))) + } else e.set(o, s = R(0, o)), a && (s.isReplaceableByMethod = !0); + return X(s, r, n), s.parent ? B.Debug.assert(s.parent === t, "Existing symbol parent should match new one") : s.parent = t, s + } + + function _(e, t, r) { + var n = !!(1 & B.getCombinedModifierFlags(e)) || function(e) { + e.parent && B.isModuleDeclaration(e) && (e = e.parent); + return !(!B.isJSDocTypeAlias(e) || (B.isJSDocEnumTag(e) || !e.fullName) && !((e = B.getNameOfDeclaration(e)) && (B.isPropertyAccessEntityNameExpression(e.parent) && rt(e.parent) || B.isDeclaration(e.parent) && 1 & B.getCombinedModifierFlags(e.parent)))) + }(e); + return 2097152 & t ? 278 === e.kind || 268 === e.kind && n ? Y(I.symbol.exports, I.symbol, e, t, r) : Y(I.locals, void 0, e, t, r) : (B.isJSDocTypeAlias(e) && B.Debug.assert(B.isInJSFile(e)), !B.isAmbientModule(e) && (n || 64 & I.flags) ? !I.locals || B.hasSyntacticModifier(e, 1024) && !xe(e) ? Y(I.symbol.exports, I.symbol, e, t, r) : ((n = Y(I.locals, void 0, e, 111551 & t ? 1048576 : 0, r)).exportSymbol = Y(I.symbol.exports, I.symbol, e, t, r), e.localSymbol = n) : Y(I.locals, void 0, e, t, r)) + } + + function De(e) { + Z(e, function(e) { + return 259 === e.kind ? le(e) : void 0 + }), Z(e, function(e) { + return 259 !== e.kind ? le(e) : void 0 + }) + } + + function Z(e, t) { + void 0 === t && (t = le), void 0 !== e && B.forEach(e, t) + } + + function $(e) { + B.forEachChild(e, le, Z) + } + + function h(e) { + var t, r, n, i, a, o, s, c, l, u, _ = G; + if (G = !1, function(e) { + if (!(1 & J.flags)) return; { + var r; + J === Q && (B.isStatementButNotDeclaration(e) && 239 !== e.kind || 260 === e.kind || 264 === e.kind && function(e) { + e = _e(e); + return 1 === e || 2 === e && B.shouldPreserveConstEnums(j) + }(e)) && (J = ve, j.allowUnreachableCode || (r = B.unreachableCodeIsError(j) && !(16777216 & e.flags) && (!B.isVariableStatement(e) || !!(3 & B.getCombinedNodeFlags(e.declarationList)) || e.declarationList.declarations.some(function(e) { + return !!e.initializer + })), function(e, r) { + { + var t, n; + B.isStatement(e) && ct(e) && B.isBlock(e.parent) ? (t = e.parent.statements, n = B.sliceAfter(t, e), B.getRangesWhere(n, ct, function(e, t) { + return r(n[e], n[t - 1]) + })) : r(e, e) + } + }(e, function(e, t) { + return Ke(r, e, t, B.Diagnostics.Unreachable_code_detected) + }))) + } + return 1 + }(e)) $(e); + else switch (240 <= e.kind && e.kind <= 256 && !j.allowUnreachableCode && (e.flowNode = J), e.kind) { + case 244: + c = Pe(s = e, Ce()), l = te(), u = te(), re(c, J), J = c, ie(s.expression, l, u), J = ne(l), Fe(s.statement, u, c), re(c, J), J = ne(u); + break; + case 243: + l = e, s = Ce(), c = Pe(l, te()), u = te(), re(s, J), J = s, Fe(l.statement, u, c), re(c, J), J = ne(c), ie(l.expression, s, u), J = ne(u); + break; + case 245: + f = Pe(p = e, Ce()), d = te(), o = te(), le(p.initializer), re(f, J), J = f, ie(p.condition, d, o), J = ne(d), Fe(p.statement, o, f), le(p.incrementor), re(f, J), J = ne(o); + break; + case 246: + case 247: + var d = e, + p = Pe(d, Ce()), + f = te(); + le(d.expression), re(p, J), J = p, 247 === d.kind && le(d.awaitModifier), re(f, J), le(d.initializer), 258 !== d.initializer.kind && ae(d.initializer), Fe(d.statement, f, p), re(p, J), J = ne(f); + break; + case 242: + o = e, g = te(), y = te(), m = te(), ie(o.expression, g, y), J = ne(g), le(o.thenStatement), re(m, J), J = ne(y), le(o.elseStatement), re(m, J), J = ne(m); + break; + case 250: + case 254: + var g = e; + le(g.expression), 250 === g.kind && (me = !0, K) && re(K, J), J = Q; + break; + case 249: + case 248: + var m, y = e; + le(y.label), y.label ? (m = function(e) { + for (var t = H; t; t = t.next) + if (t.name === e) return t; + return + }(y.label.escapedText)) && (m.referenced = !0, we(y, m.breakTarget, m.continueTarget)) : we(y, z, U); + break; + case 255: + var h = e, + v = K, + b = W, + x = te(), + D = te(), + S = te(); + h.finallyBlock && (K = D), re(S, J), W = S, le(h.tryBlock), re(x, J), h.catchClause && (J = ne(S), re(S = te(), J), W = S, le(h.catchClause), re(x, J)), K = v, W = b, J = h.finallyBlock ? ((v = te()).antecedents = B.concatenate(B.concatenate(x.antecedents, S.antecedents), D.antecedents), J = v, le(h.finallyBlock), !(1 & J.flags) && (K && D.antecedents && re(K, Ee(v, D.antecedents, J)), W && S.antecedents && re(W, Ee(v, S.antecedents, J)), x.antecedents) ? Ee(v, x.antecedents, J) : Q) : ne(x); + break; + case 252: + b = e, h = te(), D = (le(b.expression), z), S = ge, v = (z = h, ge = J, le(b.caseBlock), re(h, J), B.forEach(b.caseBlock.clauses, function(e) { + return 293 === e.kind + })); + b.possiblyExhaustive = !v && !h.antecedents, v || re(h, ke(ge, b, 0, 0)), z = D, ge = S, J = ne(h); + break; + case 266: + for (var T = e, C = T.clauses, L = Se(T.parent.expression), R = Q, E = 0; E < C.length; E++) { + for (var k = E; !C[E].statements.length && E + 1 < C.length;) le(C[E]), E++; + var N = te(), + k = (re(N, L ? ke(ge, T.parent, k, E + 1) : ge), re(N, R), J = ne(N), C[E]); + le(k), 1 & (R = J).flags || E === C.length - 1 || !j.noFallthroughCasesInSwitch || (k.fallthroughFlowNode = J) + } + break; + case 292: + x = J, J = ge, le((a = e).expression), J = x, Z(a.statements); + break; + case 241: + le((a = e).expression), Ie(a.expression); + break; + case 253: + var A = e, + F = te(); + if (H = { + next: H, + name: A.label.escapedText, + breakTarget: F, + continueTarget: void 0, + referenced: !1 + }, le(A.label), le(A.statement), !H.referenced && !j.allowUnusedLabels) { + var P = B.unusedLabelIsError(j); + A = A.label; + var w = B.Diagnostics.Unused_label; + Ke(P, A, A, w) + } + H = H.next, re(F, J), J = ne(F); + break; + case 221: + P = e; + 53 === P.operator ? (A = V, V = q, q = A, $(P), q = V, V = A) : ($(P), 45 !== P.operator && 46 !== P.operator || ae(P.operand)); + break; + case 222: + $(w = e), 45 !== w.operator && 46 !== w.operator || ae(w.operand); + break; + case 223: + if (B.isDestructuringAssignment(e)) return F = e, (G = _) ? (G = !1, le(F.operatorToken), le(F.right), G = !0, le(F.left)) : (G = !0, le(F.left), G = !1, le(F.operatorToken), le(F.right)), void ae(F.left); + be(e); + break; + case 217: + $(i = e), 208 === i.expression.kind && ae(i.expression); + break; + case 224: + i = e, r = te(), n = te(), O = te(), ie(i.condition, r, n), J = ne(r), le(i.questionToken), le(i.whenTrue), re(O, J), J = ne(n), le(i.colonToken), le(i.whenFalse), re(O, J), J = ne(O); + break; + case 257: + $(r = e), (r.initializer || B.isForInOrOfStatement(r.parent.parent)) && function e(t) { + var r = B.isOmittedExpression(t) ? void 0 : t.name; + if (B.isBindingPattern(r)) + for (var n = 0, i = r.elements; n < i.length; n++) { + var a = i[n]; + e(a) + } else J = Ne(16, J, t) + }(r); + break; + case 208: + case 209: + n = e, (B.isOptionalChain(n) ? Me : $)(n); + break; + case 210: + var I, O = e; + B.isOptionalChain(O) ? Me(O) : 215 === (I = B.skipParentheses(O.expression)).kind || 216 === I.kind ? (Z(O.typeArguments), Z(O.arguments), le(O.expression)) : ($(O), 106 === O.expression.kind && (J = Ae(J, O))), 208 === O.expression.kind && (I = O.expression, B.isIdentifier(I.name)) && ee(I.expression) && B.isPushOrUnshiftIdentifier(I.name) && (J = Ne(256, J, O)); + break; + case 232: + I = e, (B.isOptionalChain(I) ? Me : $)(I); + break; + case 348: + case 341: + case 342: + var M = e; + le(M.tagName), 342 !== M.kind && M.fullName && (B.setParent(M.fullName, M), B.setParentRecursive(M.fullName, !1)), "string" != typeof M.comment && Z(M.comment); + break; + case 308: + De(e.statements), le(e.endOfFileToken); + break; + case 238: + case 265: + De(e.statements); + break; + case 205: + le((M = e).dotDotDotToken), le(M.propertyName), Oe(M.initializer), le(M.name); + break; + case 166: + Z((t = e).modifiers), le(t.dotDotDotToken), le(t.questionToken), le(t.type), Oe(t.initializer), le(t.name); + break; + case 207: + case 206: + case 299: + case 227: + G = _; + default: + $(e) + } + Ve(e), G = _ + } + + function Se(e) { + switch (e.kind) { + case 79: + case 80: + case 108: + case 208: + case 209: + return a(e); + case 210: + var t = e; + if (t.arguments) + for (var r = 0, n = t.arguments; r < n.length; r++) + if (a(n[r])) return !0; + return 208 === t.expression.kind && a(t.expression.expression) ? !0 : !1; + case 214: + case 232: + return Se(e.expression); + case 223: + var i = e; + switch (i.operatorToken.kind) { + case 63: + case 75: + case 76: + case 77: + return a(i.left); + case 34: + case 35: + case 36: + case 37: + return ee(i.left) || ee(i.right) || o(i.right, i.left) || o(i.left, i.right); + case 102: + return ee(i.left); + case 101: + case 27: + return Se(i.right) + } + return !1; + case 221: + return 53 === e.operator && Se(e.operand); + case 218: + return Se(e.expression) + } + return !1 + } + + function Te(e) { + return B.isDottedName(e) || (B.isPropertyAccessExpression(e) || B.isNonNullExpression(e) || B.isParenthesizedExpression(e)) && Te(e.expression) || B.isBinaryExpression(e) && 27 === e.operatorToken.kind && Te(e.right) || B.isElementAccessExpression(e) && (B.isStringOrNumericLiteralLike(e.argumentExpression) || B.isEntityNameExpression(e.argumentExpression)) && Te(e.expression) || B.isAssignmentExpression(e) && Te(e.left) + } + + function a(e) { + return Te(e) || B.isOptionalChain(e) && a(e.expression) + } + + function o(e, t) { + return B.isTypeOfExpression(e) && ee(e.expression) && B.isStringLiteralLike(t) + } + + function ee(e) { + switch (e.kind) { + case 214: + return ee(e.expression); + case 223: + switch (e.operatorToken.kind) { + case 63: + return ee(e.left); + case 27: + return ee(e.right) + } + } + return a(e) + } + + function te() { + return m({ + flags: 4, + antecedents: void 0 + }) + } + + function Ce() { + return m({ + flags: 8, + antecedents: void 0 + }) + } + + function Ee(e, t, r) { + return m({ + flags: 1024, + target: e, + antecedents: t, + antecedent: r + }) + } + + function c(e) { + e.flags |= 2048 & e.flags ? 4096 : 2048 + } + + function re(e, t) { + 1 & t.flags || B.contains(e.antecedents, t) || ((e.antecedents || (e.antecedents = [])).push(t), c(t)) + } + + function s(e, t, r) { + return 1 & t.flags ? t : r ? !(110 === r.kind && 64 & e || 95 === r.kind && 32 & e) || B.isExpressionOfOptionalChainRoot(r) || B.isNullishCoalesce(r.parent) ? Se(r) ? (c(t), m({ + flags: e, + antecedent: t, + node: r + })) : t : Q : 32 & e ? t : Q + } + + function ke(e, t, r, n) { + return c(e), m({ + flags: 128, + antecedent: e, + switchStatement: t, + clauseStart: r, + clauseEnd: n + }) + } + + function Ne(e, t, r) { + c(t); + e = m({ + flags: e, + antecedent: t, + node: r + }); + return W && re(W, e), e + } + + function Ae(e, t) { + return c(e), m({ + flags: 512, + antecedent: e, + node: t + }) + } + + function ne(e) { + var t = e.antecedents; + return t ? 1 === t.length ? t[0] : e : Q + } + + function d(e) { + for (;;) + if (214 === e.kind) e = e.expression; + else { + if (221 !== e.kind || 53 !== e.operator) return 223 === e.kind && (55 === e.operatorToken.kind || 56 === e.operatorToken.kind || 60 === e.operatorToken.kind); + e = e.operand + } + } + + function p(e) { + for (; B.isParenthesizedExpression(e.parent) || B.isPrefixUnaryExpression(e.parent) && 53 === e.parent.operator;) e = e.parent; + return !(function(e) { + var t = e.parent; + switch (t.kind) { + case 242: + case 244: + case 243: + return t.expression === e; + case 245: + case 224: + return t.condition === e + } + }(e) || d(e.parent) || B.isOptionalChain(e.parent) && e.parent.expression === e) + } + + function g(e, t, r, n) { + var i = V, + a = q; + V = r, q = n, e(t), V = i, q = a + } + + function ie(e, t, r) { + var n; + g(le, e, t, r), e && (n = e, n = B.skipParentheses(n), B.isBinaryExpression(n) && B.isLogicalOrCoalescingAssignmentOperator(n.operatorToken.kind) || d(e) || B.isOptionalChain(e) && B.isOutermostOptionalChain(e)) || (re(t, s(32, J, e)), re(r, s(64, J, e))) + } + + function Fe(e, t, r) { + var n = z, + i = U; + z = t, U = r, le(e), z = n, U = i + } + + function Pe(e, t) { + for (var r = H; r && 253 === e.parent.kind;) r.continueTarget = t, r = r.next, e = e.parent; + return t + } + + function we(e, t, r) { + e = 249 === e.kind ? t : r; + e && (re(e, J), J = Q) + } + + function Ie(e) { + 210 === e.kind && 106 !== (e = e).expression.kind && B.isDottedName(e.expression) && (J = Ae(J, e)) + } + + function v(e) { + 223 === e.kind && 63 === e.operatorToken.kind ? ae(e.left) : ae(e) + } + + function ae(e) { + if (Te(e)) J = Ne(16, J, e); + else if (206 === e.kind) + for (var t = 0, r = e.elements; t < r.length; t++) { + var n = r[t]; + 227 === n.kind ? ae(n.expression) : v(n) + } else if (207 === e.kind) + for (var i = 0, a = e.properties; i < a.length; i++) { + var o = a[i]; + 299 === o.kind ? v(o.initializer) : 300 === o.kind ? ae(o.name) : 301 === o.kind && ae(o.expression) + } + } + + function b(e, t, r) { + var n = te(); + 55 === e.operatorToken.kind || 76 === e.operatorToken.kind ? ie(e.left, n, r) : ie(e.left, t, n), J = ne(n), le(e.operatorToken), B.isLogicalOrCoalescingAssignmentOperator(e.operatorToken.kind) ? (g(le, e.right, t, r), ae(e.left), re(t, s(32, J, e)), re(r, s(64, J, e))) : ie(e.right, t, r) + } + + function Oe(e) { + var t; + e && (t = J, le(e), t !== Q) && t !== J && (re(e = te(), t), re(e, J), J = ne(e)) + } + + function x(e) { + switch (e.kind) { + case 208: + le(e.questionDotToken), le(e.name); + break; + case 209: + le(e.questionDotToken), le(e.argumentExpression); + break; + case 210: + le(e.questionDotToken), Z(e.typeArguments), Z(e.arguments) + } + } + + function D(e, t, r) { + var n, i, a, o = B.isOptionalChainRoot(e) ? te() : void 0; + g(le, n = e.expression, i = o || t, a = r), B.isOptionalChain(n) && !B.isOutermostOptionalChain(n) || (re(i, s(32, J, n)), re(a, s(64, J, n))), o && (J = ne(o)), g(x, e, t, r), B.isOutermostOptionalChain(e) && (re(t, s(32, J, e)), re(r, s(64, J, e))) + } + + function Me(e) { + var t; + p(e) ? (D(e, t = te(), t), J = ne(t)) : D(e, V, q) + } + + function S(e) { + switch (e.kind) { + case 228: + case 260: + case 263: + case 207: + case 184: + case 325: + case 289: + return 1; + case 261: + return 65; + case 264: + case 262: + case 197: + case 178: + return 33; + case 308: + return 37; + case 174: + case 175: + case 171: + if (B.isObjectLiteralOrClassExpressionMethodOrAccessor(e)) return 173; + case 173: + case 259: + case 170: + case 176: + case 326: + case 320: + case 181: + case 177: + case 182: + case 172: + return 45; + case 215: + case 216: + return 61; + case 265: + return 4; + case 169: + return e.initializer ? 4 : 0; + case 295: + case 245: + case 246: + case 247: + case 266: + return 2; + case 238: + return B.isFunctionLike(e.parent) || B.isClassStaticBlockDeclaration(e.parent) ? 0 : 2 + } + return 0 + } + + function T(e) { + u && (u.nextContainer = e), u = e + } + + function oe(e, t, r) { + switch (I.kind) { + case 264: + return _(e, t, r); + case 308: + return n = e, i = t, a = r, B.isExternalModule(P) ? _(n, i, a) : Y(P.locals, void 0, n, i, a); + case 228: + case 260: + return n = e, i = t, a = r, B.isStatic(n) ? Y(I.symbol.exports, I.symbol, n, i, a) : Y(I.symbol.members, I.symbol, n, i, a); + case 263: + return Y(I.symbol.exports, I.symbol, e, t, r); + case 184: + case 325: + case 207: + case 261: + case 289: + return Y(I.symbol.members, I.symbol, e, t, r); + case 181: + case 182: + case 176: + case 177: + case 326: + case 178: + case 171: + case 170: + case 173: + case 174: + case 175: + case 259: + case 215: + case 216: + case 320: + case 348: + case 341: + case 172: + case 262: + case 197: + return Y(I.locals, void 0, e, t, r) + } + var n, i, a + } + + function Le(e) { + var t; + 16777216 & e.flags && (t = e, !(t = B.isSourceFile(t) ? t : B.tryCast(t.body, B.isModuleBlock)) || !t.statements.some(function(e) { + return B.isExportDeclaration(e) || B.isExportAssignment(e) + })) ? e.flags |= 64 : e.flags &= -65 + } + + function Re(e) { + var t = _e(e), + r = 0 !== t; + return oe(e, r ? 512 : 1024, r ? 110735 : 0), t + } + + function se(e, t, r) { + r = R(t, r); + return 106508 & t && (r.parent = I.symbol), X(r, e, t), r + } + + function ce(e, t, r) { + switch (O.kind) { + case 264: + _(e, t, r); + break; + case 308: + if (B.isExternalOrCommonJsModule(I)) { + _(e, t, r); + break + } + default: + O.locals || (O.locals = B.createSymbolTable(), T(O)), Y(O.locals, void 0, e, t, r) + } + } + + function Be(e) { + P.parseDiagnostics.length || 16777216 & e.flags || 8388608 & e.flags || B.isIdentifierName(e) || (M && 117 <= e.originalKeywordKind && e.originalKeywordKind <= 125 ? P.bindDiagnostics.push(L(e, function(e) { + if (B.getContainingClass(e)) return B.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode; + if (P.externalModuleIndicator) return B.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode; + return B.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode + }(e), B.declarationNameToString(e))) : 133 === e.originalKeywordKind ? B.isExternalModule(P) && B.isInTopLevelContext(e) ? P.bindDiagnostics.push(L(e, B.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module, B.declarationNameToString(e))) : 32768 & e.flags && P.bindDiagnostics.push(L(e, B.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, B.declarationNameToString(e))) : 125 === e.originalKeywordKind && 8192 & e.flags && P.bindDiagnostics.push(L(e, B.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, B.declarationNameToString(e)))) + } + + function je(e, t) { + var r, n; + t && 79 === t.kind && (n = r = t, !B.isIdentifier(n) || "eval" !== n.escapedText && "arguments" !== n.escapedText || (n = B.getErrorSpanForNode(P, t), P.bindDiagnostics.push(B.createFileDiagnostic(P, n.start, n.length, function(e) { + if (B.getContainingClass(e)) return B.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode; + if (P.externalModuleIndicator) return B.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode; + return B.Diagnostics.Invalid_use_of_0_in_strict_mode + }(e), B.idText(r))))) + } + + function Je(e) { + M && je(e, e.name) + } + + function ze(e) { + var t; + de < 2 && (308 === O.kind || 264 === O.kind || B.isFunctionLikeOrClassStaticBlockDeclaration(O) || (t = B.getErrorSpanForNode(P, e), P.bindDiagnostics.push(B.createFileDiagnostic(P, t.start, t.length, B.getContainingClass(e) ? B.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode : P.externalModuleIndicator ? B.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode : B.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5)))) + } + + function Ue(e, t, r, n, i) { + e = B.getSpanOfTokenAtPosition(P, e.pos); + P.bindDiagnostics.push(B.createFileDiagnostic(P, e.start, e.length, t, r, n, i)) + } + + function Ke(e, t, r, n) { + t = { + pos: B.getTokenPosOfNode(t, P), + end: r.end + }, r = n; + t = B.createFileDiagnostic(P, t.pos, t.end - t.pos, r), e ? P.bindDiagnostics.push(t) : P.bindSuggestionDiagnostics = B.append(P.bindSuggestionDiagnostics, __assign(__assign({}, t), { + category: B.DiagnosticCategory.Suggestion + })) + } + + function le(e) { + var t, r, n, i, a, o, s, c, l, u, _, d, p, f, g; + e && (B.setParent(e, w), B.tracing && (e.tracingPath = P.path), t = M, C(e), w = (162 < e.kind ? (r = w, 0 === (i = S(w = e)) ? h(e) : (n = e, p = I, f = y, g = O, 1 & (i = i) ? (216 !== n.kind && (y = I), I = O = n, 32 & i && (I.locals = B.createSymbolTable()), T(I)) : 2 & i && ((O = n).locals = void 0), 4 & i ? (a = J, o = z, s = U, c = K, l = W, u = H, _ = me, (d = 16 & i && !B.hasSyntacticModifier(n, 512) && !n.asteriskToken && !!B.getImmediatelyInvokedFunctionExpression(n) || 172 === n.kind) || (J = m({ + flags: 2 + }), 144 & i && (J.node = n)), K = d || 173 === n.kind || B.isInJSFile(n) && (259 === n.kind || 215 === n.kind) ? te() : void 0, H = U = z = W = void 0, me = !1, h(n), n.flags &= -2817, !(1 & J.flags) && 8 & i && B.nodeIsPresent(n.body) && (n.flags |= 256, me && (n.flags |= 512), n.endFlowNode = J), 308 === n.kind && (n.flags |= ye, n.endFlowNode = J), K && (re(K, J), J = ne(K), 173 !== n.kind && 172 !== n.kind && (!B.isInJSFile(n) || 259 !== n.kind && 215 !== n.kind) || (n.returnFlowNode = J)), d || (J = a), z = o, U = s, K = c, W = l, H = u, me = _) : 64 & i ? (fe = !1, h(n), n.flags = fe ? 128 | n.flags : -129 & n.flags) : h(n), I = p, y = f, O = g)) : (r = w, 1 === e.kind && (w = e), Ve(e)), r), M = t) + } + + function Ve(e) { + if (B.hasJSDocNodes(e)) + if (B.isInJSFile(e)) + for (var t = 0, r = e.jsDoc; t < r.length; t++) le(a = r[t]); + else + for (var n = 0, i = e.jsDoc; n < i.length; n++) { + var a = i[n]; + B.setParent(a, e), B.setParentRecursive(a, !1) + } + } + + function qe(e) { + if (!M) + for (var t = 0, r = e; t < r.length; t++) { + var n = r[t]; + if (!B.isPrologueDirective(n)) return; + if (function(e) { + e = B.getSourceTextOfNodeFromSourceFile(P, e.expression); + return '"use strict"' === e || "'use strict'" === e + }(n)) return void(M = !0) + } + } + + function C(e) { + switch (e.kind) { + case 79: + if (e.isInJSDocNamespace) { + for (var t = e.parent; t && !B.isJSDocTypeAlias(t);) t = t.parent; + ce(t, 524288, 788968); + break + } + case 108: + return J && (B.isExpression(e) || 300 === w.kind) && (e.flowNode = J), Be(e); + case 163: + J && B.isPartOfTypeQuery(e) && (e.flowNode = J); + break; + case 233: + case 106: + e.flowNode = J; + break; + case 80: + return "#constructor" !== (F = e).escapedText || P.parseDiagnostics.length || P.bindDiagnostics.push(L(F, B.Diagnostics.constructor_is_a_reserved_word, B.declarationNameToString(F))); + case 208: + case 209: + F = e; + J && Te(F) && (F.flowNode = J), B.isSpecialPropertyDeclaration(F) && (108 === (A = F).expression.kind ? Xe(A) : B.isBindableStaticAccessExpression(A) && 308 === A.parent.parent.kind && (B.isPrototypeAccess(A.expression) ? Ze(A, A.parent) : $e(A))), B.isInJSFile(F) && P.commonJsModuleIndicator && B.isModuleExportsAccessExpression(F) && !ut(O, "module") && Y(P.locals, void 0, F.expression, 134217729, 111550); + break; + case 223: + switch (B.getAssignmentDeclarationKind(e)) { + case 1: + Ge(e); + break; + case 2: + He(k = e) && (N = B.getRightMostAssignedExpression(k.right), B.isEmptyObjectLiteral(N) || I === P && lt(P, N) || (B.isObjectLiteralExpression(N) && B.every(N.properties, B.isShorthandPropertyAssignment) ? B.forEach(N.properties, Qe) : (N = B.exportAssignmentIsAlias(k) ? 2097152 : 1049092, N = Y(P.symbol.exports, P.symbol, k, 67108864 | N, 0), B.setValueDeclaration(N, k)))); + break; + case 3: + Ze(e.left, e); + break; + case 6: + N = e, B.setParent(N.left, N), B.setParent(N.right, N), nt(N.left.expression, N.left, !1, !0); + break; + case 4: + Xe(e); + break; + case 5: + k = e.left.expression; + if (B.isInJSFile(e) && B.isIdentifier(k)) { + var r = ut(O, k.escapedText); + if (B.isThisInitializedDeclaration(null == r ? void 0 : r.valueDeclaration)) { + Xe(e); + break + } + } + E = ue((r = e).left.expression, I) || ue(r.left.expression, O), (B.isInJSFile(r) || B.isFunctionSymbol(E)) && (C = B.getLeftmostAccessExpression(r.left), B.isIdentifier(C) && 2097152 & (null == (C = ut(I, C.escapedText)) ? void 0 : C.flags) || (B.setParent(r.left, r), B.setParent(r.right, r), B.isIdentifier(r.left.expression) && I === P && lt(P, r.left.expression) ? Ge(r) : B.hasDynamicName(r) ? (se(r, 67108868, "__computed"), C = et(E, r.left.expression, rt(r.left), !1, !1), Ye(r, C)) : $e(B.cast(r.left, B.isBindableStaticNameExpression)))); + break; + case 0: + break; + default: + B.Debug.fail("Unknown binary expression special property assignment kind") + } + return A = e, M && B.isLeftHandSideExpression(A.left) && B.isAssignmentOperator(A.operatorToken.kind) && je(A, A.left); + case 295: + return T = e, M && T.variableDeclaration && je(T, T.variableDeclaration.name); + case 217: + return T = e, M && 79 === T.expression.kind && (T = B.getErrorSpanForNode(P, T.expression), P.bindDiagnostics.push(B.createFileDiagnostic(P, T.start, T.length, B.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))); + case 8: + return S = e, de < 1 && M && 32 & S.numericLiteralFlags && P.bindDiagnostics.push(L(S, B.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode)); + case 222: + return S = e, M && je(S, S.operand); + case 221: + return D = e, !M || 45 !== D.operator && 46 !== D.operator || je(D, D.operand); + case 251: + return D = e, M && Ue(D, B.Diagnostics.with_statements_are_not_allowed_in_strict_mode); + case 253: + return x = e, M && 2 <= B.getEmitScriptTarget(j) && (B.isDeclarationStatement(x.statement) || B.isVariableStatement(x.statement)) && Ue(x.label, B.Diagnostics.A_label_is_not_allowed_here); + case 194: + return void(fe = !0); + case 179: + break; + case 165: + x = e; + return void(B.isJSDocTemplateTag(x.parent) ? (h = B.getEffectiveContainerForJSDocTemplateTag(x.parent)) ? (h.locals || (h.locals = B.createSymbolTable()), Y(h.locals, void 0, x, 262144, 526824)) : oe(x, 262144, 526824) : 192 === x.parent.kind ? (h = function(e) { + e = B.findAncestor(e, function(e) { + return e.parent && B.isConditionalTypeNode(e.parent) && e.parent.extendsType === e + }); + return e && e.parent + }(x.parent)) ? (h.locals || (h.locals = B.createSymbolTable()), Y(h.locals, void 0, x, 262144, 526824)) : se(x, 262144, xe(x)) : oe(x, 262144, 526824)); + case 166: + return ot(e); + case 257: + return at(e); + case 205: + return e.flowNode = J, at(e); + case 169: + case 168: + return h = e, v = B.isAutoAccessorPropertyDeclaration(h), b = v ? 13247 : 0, st(h, (v ? 98304 : 4) | (h.questionToken ? 16777216 : 0), b); + case 299: + case 300: + return st(e, 4, 0); + case 302: + return st(e, 8, 900095); + case 176: + case 177: + case 178: + return oe(e, 131072, 0); + case 171: + case 170: + return st(e, 8192 | (e.questionToken ? 16777216 : 0), B.isObjectLiteralMethod(e) ? 0 : 103359); + case 259: + v = e; + return P.isDeclarationFile || 16777216 & v.flags || B.isAsyncFunction(v) && (ye |= 2048), Je(v), void(M ? (ze(v), ce) : oe)(v, 16, 110991); + case 173: + return oe(e, 16384, 0); + case 174: + return st(e, 32768, 46015); + case 175: + return st(e, 65536, 78783); + case 181: + case 320: + case 326: + case 182: + return X(n = R(131072, xe(b = e)), b, 131072), X(y = R(2048, "__type"), b, 2048), y.members = B.createSymbolTable(), y.members.set(n.escapedName, n); + case 184: + case 325: + case 197: + return se(e, 2048, "__type"); + case 335: + return $(y = e), (y = B.getHostSignatureFromJSDoc(y)) && 171 !== y.kind && X(y.symbol, y, 32); + case 207: + return se(e, 4096, "__object"); + case 215: + case 216: + var n = e, + i = (P.isDeclarationFile || 16777216 & n.flags || B.isAsyncFunction(n) && (ye |= 2048), J && (n.flowNode = J), Je(n), n.name ? n.name.escapedText : "__function"); + return se(n, 16, i); + case 210: + switch (B.getAssignmentDeclarationKind(e)) { + case 7: + return a = ue((g = e).arguments[0]), m = 308 === g.parent.parent.kind, a = et(a, g.arguments[0], m, !1, !1), tt(g, a, !1); + case 8: + return He(m = e) && (g = it(m.arguments[0], void 0, function(e, t) { + return t && X(t, e, 67110400), t + })) && Y(g.exports, g, m, 1048580, 0); + case 9: + var a = e, + o = ue(a.arguments[0].expression); + return o && o.valueDeclaration && X(o, o.valueDeclaration, 32), void tt(a, o, !0); + case 0: + break; + default: + return B.Debug.fail("Unknown call expression assignment declaration kind") + } + B.isInJSFile(e) && (i = e, !P.commonJsModuleIndicator) && B.isRequireCall(i, !1) && He(i); + break; + case 228: + case 260: + M = !0; + var s = e, + c = (260 === s.kind ? ce(s, 32, 899503) : (c = s.name ? s.name.escapedText : "__class", se(s, 32, c), s.name && he.add(s.name.escapedText)), s.symbol), + l = R(4194308, "prototype"), + u = c.exports.get(l.escapedName); + return u && (s.name && B.setParent(s.name, s), P.bindDiagnostics.push(L(u.declarations[0], B.Diagnostics.Duplicate_identifier_0, B.symbolName(l)))), c.exports.set(l.escapedName, l), void(l.parent = c); + case 261: + return ce(e, 64, 788872); + case 262: + return ce(e, 524288, 788968); + case 263: + return s = e, B.isEnumConst(s) ? ce(s, 128, 899967) : ce(s, 256, 899327); + case 264: + return Le(u = e), B.isAmbientModule(u) ? (B.hasSyntacticModifier(u, 1) && Ue(u, B.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible), B.isModuleAugmentationExternal(u) ? Re(u) : (p = void 0, 10 === u.name.kind && (f = u.name.text, void 0 === (p = B.tryParsePattern(f))) && Ue(u.name, B.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character, f), f = oe(u, 512, 110735), P.patternAmbientModules = B.append(P.patternAmbientModules, p && !B.isString(p) ? { + pattern: p, + symbol: f + } : void 0))) : 0 !== (p = Re(u)) && ((f = u.symbol).constEnumOnlyModule = !(304 & f.flags) && 2 === p && !1 !== f.constEnumOnlyModule); + case 289: + return se(e, 4096, "__jsxAttributes"); + case 288: + return oe(e, 4, 0); + case 268: + case 271: + case 273: + case 278: + return oe(e, 2097152, 2097152); + case 267: + return l = e, B.some(l.modifiers) && P.bindDiagnostics.push(L(l, B.Diagnostics.Modifiers_cannot_appear_here)), (c = B.isSourceFile(l.parent) ? B.isExternalModule(l.parent) ? l.parent.isDeclarationFile ? void 0 : B.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files : B.Diagnostics.Global_module_exports_may_only_appear_in_module_files : B.Diagnostics.Global_module_exports_may_only_appear_at_top_level) ? P.bindDiagnostics.push(L(l, c)) : (P.symbol.globalExports = P.symbol.globalExports || B.createSymbolTable(), Y(P.symbol.globalExports, P.symbol, l, 2097152, 2097152)); + case 270: + return (p = e).name && oe(p, 2097152, 2097152); + case 275: + return f = e, I.symbol && I.symbol.exports ? f.exportClause ? B.isNamespaceExport(f.exportClause) && (B.setParent(f.exportClause, f), Y(I.symbol.exports, I.symbol, f.exportClause, 2097152, 2097152)) : Y(I.symbol.exports, I.symbol, f, 8388608, 0) : se(f, 8388608, xe(f)); + case 274: + var _ = e; + return void(I.symbol && I.symbol.exports ? (d = B.exportAssignmentIsAlias(_) ? 2097152 : 4, d = Y(I.symbol.exports, I.symbol, _, d, 67108863), _.isExportEquals && B.setValueDeclaration(d, _)) : se(_, 111551, xe(_))); + case 308: + var d; + return qe(e.statements), Le(P), void(B.isExternalModule(P) ? We() : B.isJsonSourceFile(P) && (We(), d = P.symbol, Y(P.symbol.exports, P.symbol, P, 4, 67108863), P.symbol = d)); + case 238: + if (!B.isFunctionLikeOrClassStaticBlockDeclaration(e.parent)) return; + case 265: + return qe(e.statements); + case 343: + if (326 === e.parent.kind) return ot(e); + if (325 !== e.parent.kind) break; + case 350: + return oe(e, e.isBracketed || e.typeExpression && 319 === e.typeExpression.type.kind ? 16777220 : 4, 0); + case 348: + case 341: + case 342: + (pe = pe || []).push(e) + } + var p, f, g, a, m, n, y, h, v, b, x, D, S, T, C, E, k, N, A, F + } + + function We() { + se(P, 512, '"'.concat(B.removeFileExtension(P.fileName), '"')) + } + + function He(e) { + return (!P.externalModuleIndicator || !0 === P.externalModuleIndicator) && (P.commonJsModuleIndicator || (P.commonJsModuleIndicator = e, P.externalModuleIndicator) || We(), 1) + } + + function Ge(e) { + var t, r; + He(e) && (t = it(e.left.expression, void 0, function(e, t) { + return t && X(t, e, 67110400), t + })) && (r = B.isAliasableExpression(e.right) && (B.isExportsIdentifier(e.left.expression) || B.isModuleExportsAccessExpression(e.left.expression)) ? 2097152 : 1048580, B.setParent(e.left, e), Y(t.exports, t, e.left, r, 0)) + } + + function Qe(e) { + Y(P.symbol.exports, P.symbol, e, 69206016, 0) + } + + function Xe(e) { + B.Debug.assert(B.isInJSFile(e)); + var t = B.isBinaryExpression(e) && B.isPropertyAccessExpression(e.left) && B.isPrivateIdentifier(e.left.name) || B.isPropertyAccessExpression(e) && B.isPrivateIdentifier(e.name); + if (!t) { + var r = B.getThisContainer(e, !1); + switch (r.kind) { + case 259: + case 215: + var n = r.symbol; + (n = B.isBinaryExpression(r.parent) && 63 === r.parent.operatorToken.kind && (i = r.parent.left, B.isBindableStaticAccessExpression(i)) && B.isPrototypeAccess(i.expression) ? ue(i.expression.expression, y) : n) && n.valueDeclaration && (n.members = n.members || B.createSymbolTable(), B.hasDynamicName(e) ? E(e, n, n.members) : Y(n.members, n, e, 67108868, 0), X(n, n.valueDeclaration, 32)); + break; + case 173: + case 169: + case 171: + case 174: + case 175: + case 172: + var i = r.parent, + n = B.isStatic(r) ? i.symbol.exports : i.symbol.members; + B.hasDynamicName(e) ? E(e, i.symbol, n) : Y(n, i.symbol, e, 67108868, 0, !0); + break; + case 308: + B.hasDynamicName(e) || (r.commonJsModuleIndicator ? Y(r.symbol.exports, r.symbol, e, 1048580, 0) : oe(e, 1, 111550)); + break; + default: + B.Debug.failBadSyntaxKind(r) + } + } + } + + function E(e, t, r) { + Y(r, t, e, 4, 0, !0, !0), Ye(e, t) + } + + function Ye(e, t) { + t && (t.assignmentDeclarationMembers || (t.assignmentDeclarationMembers = new B.Map)).set(B.getNodeId(e), e) + } + + function Ze(e, t) { + var r = e.expression, + n = r.expression; + B.setParent(n, r), B.setParent(r, e), B.setParent(e, t), nt(n, e, !0, !0) + } + + function $e(e) { + B.Debug.assert(!B.isIdentifier(e)), B.setParent(e.expression, e), nt(e.expression, e, !1, !1) + } + + function et(e, t, r, n, i) { + return 2097152 & (null == e ? void 0 : e.flags) || (r && !n && (e = it(t, e, function(e, t, r) { + return t ? (X(t, e, 67110400), t) : Y(r ? r.exports : P.jsGlobalAugmentations || (P.jsGlobalAugmentations = B.createSymbolTable()), r, e, 67110400, 110735) + })), i && e && e.valueDeclaration && X(e, e.valueDeclaration, 32)), e + } + + function tt(e, t, r) { + var n, i; + t && function(e) { + if (1072 & e.flags) return 1; + e = e.valueDeclaration; + if (e && B.isCallExpression(e)) return B.getAssignedExpandoInitializer(e); + var t = e ? B.isVariableDeclaration(e) ? e.initializer : B.isBinaryExpression(e) ? e.right : B.isPropertyAccessExpression(e) && B.isBinaryExpression(e.parent) ? e.parent.right : void 0 : void 0; + if (t = t && B.getRightMostAssignedExpression(t)) return e = B.isPrototypeAccess(B.isVariableDeclaration(e) ? e.name : B.isBinaryExpression(e) ? e.left : e), B.getExpandoInitializer(!B.isBinaryExpression(t) || 56 !== t.operatorToken.kind && 60 !== t.operatorToken.kind ? t : t.right, e); + return + }(t) && (r = r ? t.members || (t.members = B.createSymbolTable()) : t.exports || (t.exports = B.createSymbolTable()), i = n = 0, B.isFunctionLikeDeclaration(B.getAssignedExpandoInitializer(e)) ? (n = 8192, i = 103359) : B.isCallExpression(e) && B.isBindableObjectDefinePropertyCall(e) && (B.some(e.arguments[2].properties, function(e) { + e = B.getNameOfDeclaration(e); + return !!e && B.isIdentifier(e) && "set" === B.idText(e) + }) && (n |= 65540, i |= 78783), B.some(e.arguments[2].properties, function(e) { + e = B.getNameOfDeclaration(e); + return !!e && B.isIdentifier(e) && "get" === B.idText(e) + })) && (n |= 32772, i |= 46015), 0 === n && (n = 4, i = 0), Y(r, t, e, 67108864 | n, -67108865 & i)) + } + + function rt(e) { + return B.isBinaryExpression(e.parent) ? 308 === function(e) { + for (; B.isBinaryExpression(e.parent);) e = e.parent; + return e.parent + }(e.parent).parent.kind : 308 === e.parent.parent.kind + } + + function nt(e, t, r, n) { + var e = ue(e, I) || ue(e, O), + i = rt(t); + tt(t, et(e, t.expression, i, r, n), r) + } + + function ue(e, t) { + return void 0 === t && (t = I), B.isIdentifier(e) ? ut(t, e.escapedText) : (t = ue(e.expression)) && t.exports && t.exports.get(B.getElementOrPropertyAccessName(e)) + } + + function it(e, t, r) { + var n; + return lt(P, e) ? P.symbol : B.isIdentifier(e) ? r(e, ue(e), t) : (t = it(e.expression, t, r), n = B.getNameOrArgument(e), B.isPrivateIdentifier(n) && B.Debug.fail("unexpected PrivateIdentifier"), r(n, t && t.exports && t.exports.get(B.getElementOrPropertyAccessName(e)), t)) + } + + function at(e) { + var t; + M && je(e, e.name), B.isBindingPattern(e.name) || (t = 257 === e.kind ? e : e.parent.parent, !B.isInJSFile(e) || !B.isVariableDeclarationInitializedToBareOrAccessedRequire(t) || B.getJSDocTypeTag(e) || 1 & B.getCombinedModifierFlags(e) ? B.isBlockOrCatchScoped(e) ? ce(e, 2, 111551) : B.isParameterDeclaration(e) ? oe(e, 1, 111551) : oe(e, 1, 111550) : oe(e, 2097152, 2097152)) + } + + function ot(e) { + var t; + 343 === e.kind && 326 !== I.kind || (!M || 16777216 & e.flags || je(e, e.name), B.isBindingPattern(e.name) ? se(e, 1, "__" + e.parent.parameters.indexOf(e)) : oe(e, 1, 111551), B.isParameterPropertyDeclaration(e, e.parent) && Y((t = e.parent.parent).symbol.members, t.symbol, e, 4 | (e.questionToken ? 16777216 : 0), 0)) + } + + function st(e, t, r) { + return P.isDeclarationFile || 16777216 & e.flags || !B.isAsyncFunction(e) || (ye |= 2048), J && B.isObjectLiteralOrClassExpressionMethodOrAccessor(e) && (e.flowNode = J), B.hasDynamicName(e) ? se(e, t, "__computed") : oe(e, t, r) + } + + function ct(e) { + return !(B.isFunctionDeclaration(e) || function(e) { + switch (e.kind) { + case 261: + case 262: + return 1; + case 264: + return 1 !== _e(e); + case 263: + return B.hasSyntacticModifier(e, 2048); + default: + return + } + }(e) || B.isEnumDeclaration(e) || B.isVariableStatement(e) && !(3 & B.getCombinedNodeFlags(e)) && e.declarationList.declarations.some(function(e) { + return !e.initializer + })) + } + + function lt(e, t) { + var r, n = 0, + i = B.createQueue(); + for (i.enqueue(t); !i.isEmpty() && n < 100;) { + if (n++, t = i.dequeue(), B.isExportsIdentifier(t) || B.isModuleExportsAccessExpression(t)) return !0; + B.isIdentifier(t) && (r = ut(e, t.escapedText)) && r.valueDeclaration && B.isVariableDeclaration(r.valueDeclaration) && r.valueDeclaration.initializer && (r = r.valueDeclaration.initializer, i.enqueue(r), B.isAssignmentExpression(r, !0)) && (i.enqueue(r.left), i.enqueue(r.right)) + } + return !1 + } + + function ut(e, t) { + var r = e.locals && e.locals.get(t); + return r ? r.exportSymbol || r : B.isSourceFile(e) && e.jsGlobalAugmentations && e.jsGlobalAugmentations.has(t) ? e.jsGlobalAugmentations.get(t) : e.symbol && e.symbol.exports && e.symbol.exports.get(t) + } + B.bindSourceFile = function(e, t) { + B.performance.mark("beforeBind"), B.perfLogger.logStartBindFile("" + e.fileName), i(e, t), B.perfLogger.logStopBindFile(), B.performance.mark("afterBind"), B.performance.measure("Bind", "beforeBind", "afterBind") + }, B.isExportsOrModuleExportsOrAlias = lt + }(ts = ts || {}), ! function(v) { + v.createGetSymbolWalker = function(i, s, c, l, p, f, g, m, y, h) { + return function(r) { + void 0 === r && (r = function() { + return !0 + }); + var a = [], + n = []; + return { + walkType: function(e) { + try { + return u(e), { + visitedTypes: v.getOwnValues(a), + visitedSymbols: v.getOwnValues(n) + } + } finally { + v.clear(a), v.clear(n) + } + }, + walkSymbol: function(e) { + try { + return d(e), { + visitedTypes: v.getOwnValues(a), + visitedSymbols: v.getOwnValues(n) + } + } finally { + v.clear(a), v.clear(n) + } + } + }; + + function u(e) { + var t, r, n, i; + !e || a[e.id] || d((a[e.id] = e).symbol) || (524288 & e.flags && (4 & (r = (t = e).objectFlags) && (u((n = e).target), v.forEach(h(n), u)), 32 & r && (u((n = e).typeParameter), u(n.constraintType), u(n.templateType), u(n.modifiersType)), 3 & r && (o(i = e), v.forEach(i.typeParameters, u), v.forEach(l(i), u), u(i.thisType)), 24 & r) && o(t), 262144 & e.flags && u(m(e)), 3145728 & e.flags && v.forEach(e.types, u), 4194304 & e.flags && u(e.type), 8388608 & e.flags && (u((i = e).objectType), u(i.indexType), u(i.constraint))) + } + + function _(e) { + var t = s(e); + t && u(t.type), v.forEach(e.typeParameters, u); + for (var r = 0, n = e.parameters; r < n.length; r++) d(n[r]); + u(i(e)), u(c(e)) + } + + function o(e) { + for (var e = p(e), t = 0, r = e.indexInfos; t < r.length; t++) { + var n = r[t]; + u(n.keyType), u(n.type) + } + for (var i = 0, a = e.callSignatures; i < a.length; i++) _(a[i]); + for (var o = 0, s = e.constructSignatures; o < s.length; o++) _(s[o]); + for (var c = 0, l = e.properties; c < l.length; c++) d(l[c]) + } + + function d(e) { + if (e) { + var t = v.getSymbolId(e); + if (!n[t]) { + if (n[t] = e, !r(e)) return !0; + u(f(e)), e.exports && e.exports.forEach(d), v.forEach(e.declarations, function(e) { + e.type && 183 === e.type.kind && (e = e.type, d(g(y(e.exprName)))) + }) + } + } + return !1 + } + } + } + }(ts = ts || {}), ! function(OS) { + var MS, e, LS = /^".+"$/, + RS = "(anonymous)", + t = 1, + r = 1, + BS = 1, + jS = 1, + JS = ((e = { + AllowsSyncIterablesFlag: 1, + 1: "AllowsSyncIterablesFlag", + AllowsAsyncIterablesFlag: 2, + 2: "AllowsAsyncIterablesFlag", + AllowsStringInputFlag: 4, + 4: "AllowsStringInputFlag", + ForOfFlag: 8, + 8: "ForOfFlag", + YieldStarFlag: 16, + 16: "YieldStarFlag", + SpreadFlag: 32, + 32: "SpreadFlag", + DestructuringFlag: 64, + 64: "DestructuringFlag", + PossiblyOutOfBounds: 128, + 128: "PossiblyOutOfBounds", + Element: 1 + })[1] = "Element", e[e.Spread = 33] = "Spread", e[e.Destructuring = 65] = "Destructuring", e[e.ForOf = 13] = "ForOf", e[e.ForAwaitOf = 15] = "ForAwaitOf", e[e.YieldStar = 17] = "YieldStar", e[e.AsyncYieldStar = 19] = "AsyncYieldStar", e[e.GeneratorReturnType = 1] = "GeneratorReturnType", e[e.AsyncGeneratorReturnType = 2] = "AsyncGeneratorReturnType", 0, 0, (e = OS.TypeFacts || (OS.TypeFacts = {}))[e.None = 0] = "None", e[e.TypeofEQString = 1] = "TypeofEQString", e[e.TypeofEQNumber = 2] = "TypeofEQNumber", e[e.TypeofEQBigInt = 4] = "TypeofEQBigInt", e[e.TypeofEQBoolean = 8] = "TypeofEQBoolean", e[e.TypeofEQSymbol = 16] = "TypeofEQSymbol", e[e.TypeofEQObject = 32] = "TypeofEQObject", e[e.TypeofEQFunction = 64] = "TypeofEQFunction", e[e.TypeofEQHostObject = 128] = "TypeofEQHostObject", e[e.TypeofNEString = 256] = "TypeofNEString", e[e.TypeofNENumber = 512] = "TypeofNENumber", e[e.TypeofNEBigInt = 1024] = "TypeofNEBigInt", e[e.TypeofNEBoolean = 2048] = "TypeofNEBoolean", e[e.TypeofNESymbol = 4096] = "TypeofNESymbol", e[e.TypeofNEObject = 8192] = "TypeofNEObject", e[e.TypeofNEFunction = 16384] = "TypeofNEFunction", e[e.TypeofNEHostObject = 32768] = "TypeofNEHostObject", e[e.EQUndefined = 65536] = "EQUndefined", e[e.EQNull = 131072] = "EQNull", e[e.EQUndefinedOrNull = 262144] = "EQUndefinedOrNull", e[e.NEUndefined = 524288] = "NEUndefined", e[e.NENull = 1048576] = "NENull", e[e.NEUndefinedOrNull = 2097152] = "NEUndefinedOrNull", e[e.Truthy = 4194304] = "Truthy", e[e.Falsy = 8388608] = "Falsy", e[e.IsUndefined = 16777216] = "IsUndefined", e[e.IsNull = 33554432] = "IsNull", e[e.IsUndefinedOrNull = 50331648] = "IsUndefinedOrNull", e[e.All = 134217727] = "All", e[e.BaseStringStrictFacts = 3735041] = "BaseStringStrictFacts", e[e.BaseStringFacts = 12582401] = "BaseStringFacts", e[e.StringStrictFacts = 16317953] = "StringStrictFacts", e[e.StringFacts = 16776705] = "StringFacts", e[e.EmptyStringStrictFacts = 12123649] = "EmptyStringStrictFacts", e[e.EmptyStringFacts = 12582401] = "EmptyStringFacts", e[e.NonEmptyStringStrictFacts = 7929345] = "NonEmptyStringStrictFacts", e[e.NonEmptyStringFacts = 16776705] = "NonEmptyStringFacts", e[e.BaseNumberStrictFacts = 3734786] = "BaseNumberStrictFacts", e[e.BaseNumberFacts = 12582146] = "BaseNumberFacts", e[e.NumberStrictFacts = 16317698] = "NumberStrictFacts", e[e.NumberFacts = 16776450] = "NumberFacts", e[e.ZeroNumberStrictFacts = 12123394] = "ZeroNumberStrictFacts", e[e.ZeroNumberFacts = 12582146] = "ZeroNumberFacts", e[e.NonZeroNumberStrictFacts = 7929090] = "NonZeroNumberStrictFacts", e[e.NonZeroNumberFacts = 16776450] = "NonZeroNumberFacts", e[e.BaseBigIntStrictFacts = 3734276] = "BaseBigIntStrictFacts", e[e.BaseBigIntFacts = 12581636] = "BaseBigIntFacts", e[e.BigIntStrictFacts = 16317188] = "BigIntStrictFacts", e[e.BigIntFacts = 16775940] = "BigIntFacts", e[e.ZeroBigIntStrictFacts = 12122884] = "ZeroBigIntStrictFacts", e[e.ZeroBigIntFacts = 12581636] = "ZeroBigIntFacts", e[e.NonZeroBigIntStrictFacts = 7928580] = "NonZeroBigIntStrictFacts", e[e.NonZeroBigIntFacts = 16775940] = "NonZeroBigIntFacts", e[e.BaseBooleanStrictFacts = 3733256] = "BaseBooleanStrictFacts", e[e.BaseBooleanFacts = 12580616] = "BaseBooleanFacts", e[e.BooleanStrictFacts = 16316168] = "BooleanStrictFacts", e[e.BooleanFacts = 16774920] = "BooleanFacts", e[e.FalseStrictFacts = 12121864] = "FalseStrictFacts", e[e.FalseFacts = 12580616] = "FalseFacts", e[e.TrueStrictFacts = 7927560] = "TrueStrictFacts", e[e.TrueFacts = 16774920] = "TrueFacts", e[e.SymbolStrictFacts = 7925520] = "SymbolStrictFacts", e[e.SymbolFacts = 16772880] = "SymbolFacts", e[e.ObjectStrictFacts = 7888800] = "ObjectStrictFacts", e[e.ObjectFacts = 16736160] = "ObjectFacts", e[e.FunctionStrictFacts = 7880640] = "FunctionStrictFacts", e[e.FunctionFacts = 16728e3] = "FunctionFacts", e[e.VoidFacts = 9830144] = "VoidFacts", e[e.UndefinedFacts = 26607360] = "UndefinedFacts", e[e.NullFacts = 42917664] = "NullFacts", e[e.EmptyObjectStrictFacts = 83427327] = "EmptyObjectStrictFacts", e[e.EmptyObjectFacts = 83886079] = "EmptyObjectFacts", e[e.UnknownFacts = 83886079] = "UnknownFacts", e[e.AllTypeofNE = 556800] = "AllTypeofNE", e[e.OrFactsMask = 8256] = "OrFactsMask", e[e.AndFactsMask = 134209471] = "AndFactsMask", new OS.Map(OS.getEntries({ + string: 256, + number: 512, + bigint: 1024, + boolean: 2048, + symbol: 4096, + undefined: 524288, + object: 8192, + function: 16384 + }))), + zS = (0, (e = OS.CheckMode || (OS.CheckMode = {}))[e.Normal = 0] = "Normal", e[e.Contextual = 1] = "Contextual", e[e.Inferential = 2] = "Inferential", e[e.SkipContextSensitive = 4] = "SkipContextSensitive", e[e.SkipGenericFunctions = 8] = "SkipGenericFunctions", e[e.IsForSignatureHelp = 16] = "IsForSignatureHelp", e[e.IsForStringLiteralArgumentCompletions = 32] = "IsForStringLiteralArgumentCompletions", e[e.RestBindingElement = 64] = "RestBindingElement", (e = OS.SignatureCheckMode || (OS.SignatureCheckMode = {}))[e.BivariantCallback = 1] = "BivariantCallback", e[e.StrictCallback = 2] = "StrictCallback", e[e.IgnoreReturnTypes = 4] = "IgnoreReturnTypes", e[e.StrictArity = 8] = "StrictArity", e[e.Callback = 3] = "Callback", 0, 0, 0, 0, 0, 0, OS.and(GS, function(e) { + return !OS.isAccessor(e) + })), + US = (0, 0, 0, 0, new OS.Map(OS.getEntries({ + Uppercase: 0, + Lowercase: 1, + Capitalize: 2, + Uncapitalize: 3 + }))); + + function KS() {} + + function VS() { + this.flags = 0 + } + + function qS(e) { + return e.id || (e.id = r, r++), e.id + } + + function WS(e) { + return e.id || (e.id = t, t++), e.id + } + + function HS(e, t) { + e = OS.getModuleInstanceState(e); + return 1 === e || t && 2 === e + } + + function GS(e) { + return 259 !== e.kind && 171 !== e.kind || !!e.body + } + + function QS(e) { + switch (e.parent.kind) { + case 273: + case 278: + return OS.isIdentifier(e); + default: + return OS.isDeclarationName(e) + } + } + + function XS(e) { + switch (e) { + case 0: + return "yieldType"; + case 1: + return "returnType"; + case 2: + return "nextType" + } + } + + function YS(e) { + return !!(1 & e.flags) + } + + function ZS(e) { + return !!(2 & e.flags) + } + OS.getNodeId = qS, OS.getSymbolId = WS, OS.isInstantiatedModule = HS, OS.createTypeChecker = function(g) { + var f, c, l, Se, h, r, o = OS.memoize(function() { + var t = new OS.Map; + return g.getSourceFiles().forEach(function(e) { + e.resolvedModules && e.resolvedModules.forEach(function(e) { + e && e.packageId && t.set(e.packageId.name, ".d.ts" === e.extension || !!t.get(e.packageId.name)) + }) + }), t + }), + n = [], + q = function(e) { + n.push(e) + }, + i = OS.objectAllocator.getSymbolConstructor(), + t = OS.objectAllocator.getTypeConstructor(), + u = OS.objectAllocator.getSignatureConstructor(), + a = 0, + s = 0, + m = 0, + _ = 0, + d = 0, + p = 0, + z = 0, + E = OS.createSymbolTable(), + y = [1], + Z = g.getCompilerOptions(), + U = OS.getEmitScriptTarget(Z), + v = OS.getEmitModuleKind(Z), + W = OS.getUseDefineForClassFields(Z), + b = OS.getAllowSyntheticDefaultImports(Z), + $ = OS.getStrictOptionValue(Z, "strictNullChecks"), + X = OS.getStrictOptionValue(Z, "strictFunctionTypes"), + e = OS.getStrictOptionValue(Z, "strictBindCallApply"), + Y = OS.getStrictOptionValue(Z, "strictPropertyInitialization"), + Te = OS.getStrictOptionValue(Z, "noImplicitAny"), + x = OS.getStrictOptionValue(Z, "noImplicitThis"), + D = OS.getStrictOptionValue(Z, "useUnknownInCatchVariables"), + S = !!Z.keyofStringsOnly, + Ce = Z.suppressExcessPropertyErrors ? 0 : 8192, + Ee = Z.exactOptionalPropertyTypes, + T = (r = OS.createBinaryExpressionTrampoline(function(e, t, r) { + t ? (t.stackIndex++, t.skip = !1, k(t, void 0), A(t, void 0)) : t = { + checkMode: r, + skip: !1, + stackIndex: 0, + typeStack: [void 0, void 0] + }; { + var n, i, a; + OS.isInJSFile(e) && OS.getAssignedExpandoInitializer(e) ? (t.skip = !0, A(t, V(e.right, r))) : (n = (a = e).left, i = a.operatorToken, a = a.right, 60 === i.kind && (!OS.isBinaryExpression(n) || 56 !== n.operatorToken.kind && 55 !== n.operatorToken.kind || J(n, OS.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, OS.tokenToString(n.operatorToken.kind), OS.tokenToString(i.kind)), !OS.isBinaryExpression(a) || 56 !== a.operatorToken.kind && 55 !== a.operatorToken.kind || J(a, OS.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, OS.tokenToString(a.operatorToken.kind), OS.tokenToString(i.kind))), 63 !== e.operatorToken.kind || 207 !== e.left.kind && 206 !== e.left.kind || (t.skip = !0, A(t, i2(e.left, V(e.right, r), r, 108 === e.right.kind)))) + } + return t + }, function(e, t, r) { + if (!t.skip) return C(t, e) + }, function(e, t, r) { + if (!t.skip) { + var n = N(t), + t = (OS.Debug.assertIsDefined(n), k(t, n), A(t, void 0), e.kind); + if (55 === t || 56 === t || 60 === t) { + if (55 === t) { + for (var i = r.parent; 214 === i.kind || OS.isBinaryExpression(i) && (55 === i.operatorToken.kind || 56 === i.operatorToken.kind);) i = i.parent; + Jb(r.left, n, OS.isIfStatement(i) ? i.thenStatement : void 0) + } + zb(n, r.left) + } + } + }, function(e, t, r) { + if (!t.skip) return C(t, e) + }, function(e, t) { + { + var r, n; + r = t.skip ? N(t) : (r = function(e) { + return e.typeStack[e.stackIndex] + }(t), OS.Debug.assertIsDefined(r), n = N(t), OS.Debug.assertIsDefined(n), o2(e.left, e.operatorToken, e.right, r, n, e)) + } + return t.skip = !1, k(t, void 0), A(t, void 0), t.stackIndex--, r + }, function(e, t, r) { + return A(e, t), e + }), function(e, t) { + e = r(e, t); + return OS.Debug.assertIsDefined(e), e + }); + + function C(e, t) { + if (OS.isBinaryExpression(t)) return t; + A(e, V(t, e.checkMode)) + } + + function k(e, t) { + e.typeStack[e.stackIndex] = t + } + + function N(e) { + return e.typeStack[e.stackIndex + 1] + } + + function A(e, t) { + e.typeStack[e.stackIndex + 1] = t + } + var F = function() { + var c, e = g.getResolvedTypeReferenceDirectives(); + e && (c = new OS.Map, e.forEach(function(e, t, r) { + e && e.resolvedFileName && (e = g.getSourceFile(e.resolvedFileName)) && ! function e(t, r, n) { + if (c.has(t.path)) return; + c.set(t.path, [r, n]); + for (var i = 0, a = t.referencedFiles; i < a.length; i++) { + var o = a[i], + s = o.fileName, + o = o.resolutionMode, + s = OS.resolveTripleslashReference(s, t.fileName), + s = g.getSourceFile(s); + s && e(s, r, o || t.impliedNodeFormat) + } + }(e, t, r) + })); + return { + getReferencedExportContainer: ED, + getReferencedImportDeclaration: kD, + getReferencedDeclarationWithCollidingName: AD, + isDeclarationWithCollidingName: FD, + isValueAliasDeclaration: function(e) { + e = OS.getParseTreeNode(e); + return !e || PD(e) + }, + hasGlobalName: XD, + isReferencedAliasDeclaration: function(e, t) { + e = OS.getParseTreeNode(e); + return !e || MD(e, t) + }, + getNodeCheckFlags: function(e) { + e = OS.getParseTreeNode(e); + return e ? zD(e) : 0 + }, + isTopLevelValueImportEqualsWithEntityName: wD, + isDeclarationVisible: _s, + isImplementationOfOverload: LD, + isRequiredInitializedParameter: RD, + isOptionalUninitializedParameterProperty: BD, + isExpandoFunctionDeclaration: jD, + getPropertiesOfContainerFunction: JD, + createTypeOfDeclaration: HD, + createReturnTypeOfSignatureDeclaration: GD, + createTypeOfExpression: QD, + createLiteralConstValue: eS, + isSymbolAccessible: Wo, + isEntityNameVisible: Zo, + getConstantValue: function(e) { + e = OS.getParseTreeNode(e, KD); + return e ? VD(e) : void 0 + }, + collectLinkedAliases: ds, + getReferencedValueDeclaration: ZD, + getTypeReferenceSerializationKind: WD, + isOptionalParameter: bu, + moduleExportsSomeValue: CD, + isArgumentsLocalBinding: TD, + getExternalModuleFileFromDeclaration: function(e) { + e = OS.getParseTreeNode(e, OS.hasPossibleExternalModuleReference); + return e && nS(e) + }, + getTypeReferenceDirectivesForEntityName: function(e) { + if (!c) return; + var t; + (164 === e.parent.kind || (t = 790504, 79 === e.kind && jm(e)) || 208 === e.kind && ! function(e) { + return e.parent && 230 === e.parent.kind && e.parent.parent && 294 === e.parent.parent.kind + }(e)) && (t = 1160127); + e = ro(e, t, !0); + return e && e !== L ? r(e, t) : void 0 + }, + getTypeReferenceDirectivesForSymbol: r, + isLiteralConstDeclaration: $D, + isLateBound: function(e) { + e = OS.getParseTreeNode(e, OS.isDeclaration), e = e && G(e); + return !!(e && 4096 & OS.getCheckFlags(e)) + }, + getJsxFactoryEntity: tS, + getJsxFragmentFactoryEntity: rS, + getAllAccessorDeclarations: function(e) { + var t = 175 === (e = OS.getParseTreeNode(e, OS.isGetOrSetAccessorDeclaration)).kind ? 174 : 175, + t = OS.getDeclarationOfKind(G(e), t); + return { + firstAccessor: t && t.pos < e.pos ? t : e, + secondAccessor: t && t.pos < e.pos ? e : t, + setAccessor: 175 === e.kind ? e : t, + getAccessor: 174 === e.kind ? e : t + } + }, + getSymbolOfExternalModuleSpecifier: function(e) { + return ao(e, e, void 0) + }, + isBindingCapturedByNode: function(e, t) { + e = OS.getParseTreeNode(e), t = OS.getParseTreeNode(t); + return !!e && !!t && (OS.isVariableDeclaration(t) || OS.isBindingElement(t)) && function(e, t) { + e = H(e); + return !!e && OS.contains(e.capturedBlockScopeBindings, G(t)) + }(e, t) + }, + getDeclarationStatementsForSourceFile: function(e, t, r, n) { + var i = OS.getParseTreeNode(e), + i = (OS.Debug.assert(i && 308 === i.kind, "Non-sourcefile node passed into getDeclarationsForSourceFile"), G(e)); + return i ? i.exports ? P.symbolTableToDeclarationStatements(i.exports, e, t, r, n) : [] : e.locals ? P.symbolTableToDeclarationStatements(e.locals, e, t, r, n) : [] + }, + isImportRequiredByAugmentation: function(e) { + var t = OS.getSourceFileOfNode(e); + if (t.symbol) { + var r = nS(e); + if (r && r !== t) + for (var e = yo(t.symbol), n = 0, i = OS.arrayFrom(e.values()); n < i.length; n++) { + var a = i[n]; + if (a.mergeId) { + a = bo(a); + if (a.declarations) + for (var o = 0, s = a.declarations; o < s.length; o++) { + var c = s[o]; + if (OS.getSourceFileOfNode(c) === r) return !0 + } + } + } + } + return !1 + } + }; + + function r(e, t) { + if (c && function(e) { + if (e.declarations) { + for (var t = e;;) { + var r = xo(t); + if (!r) break; + t = r + } + if (!(t.valueDeclaration && 308 === t.valueDeclaration.kind && 512 & t.flags)) + for (var n = 0, i = e.declarations; n < i.length; n++) { + var a = i[n], + a = OS.getSourceFileOfNode(a); + if (c.has(a.path)) return 1 + } + } + return + }(e)) { + for (var r, n = 0, i = e.declarations; n < i.length; n++) { + var a = i[n]; + if (a.symbol && a.symbol.flags & t) { + a = OS.getSourceFileOfNode(a), a = c.get(a.path); + if (!a) return; + (r = r || []).push(a) + } + } + return r + } + } + }(), + P = { + typeToTypeNode: function(t, e, r, n) { + return w(e, r, n, function(e) { + return Ne(t, e) + }) + }, + indexInfoToIndexSignatureDeclaration: function(t, e, r, n) { + return w(e, r, n, function(e) { + return Pe(t, e, void 0) + }) + }, + signatureToSignatureDeclaration: function(t, r, e, n, i) { + return w(e, n, i, function(e) { + return we(t, r, e) + }) + }, + symbolToEntityName: function(t, r, e, n, i) { + return w(e, n, i, function(e) { + return Ve(t, e, r, !1) + }) + }, + symbolToExpression: function(t, r, e, n, i) { + return w(e, n, i, function(e) { + return qe(t, e, r) + }) + }, + symbolToTypeParameterDeclarations: function(t, e, r, n) { + return w(e, r, n, function(e) { + return je(t, e) + }) + }, + symbolToParameterDeclaration: function(t, e, r, n) { + return w(e, r, n, function(e) { + return Me(t, e) + }) + }, + typeParameterToDeclaration: function(t, e, r, n) { + return w(e, r, n, function(e) { + return Oe(t, e) + }) + }, + symbolTableToDeclarationStatements: function(a, e, t, r, s) { + return w(e, t, r, function(e) { + var t = a, + v = e, + b = s, + x = r(OS.factory.createPropertyDeclaration, 171, !0), + D = r(function(e, t, r, n) { + return OS.factory.createPropertySignature(e, t, r, n) + }, 170, !1), + S = v.enclosingDeclaration, + l = [], + T = new OS.Set, + n = [], + C = v, + c = ((v = __assign(__assign({}, C), { + usedSymbolNames: new OS.Set(C.usedSymbolNames), + remappedSymbolNames: new OS.Map, + tracker: __assign(__assign({}, C.tracker), { + trackSymbol: function(e, t, r) { + if (0 === Wo(e, t, r, !1).accessibility) { + var n = Be(e, v, r); + 4 & e.flags || E(n[0]) + } else if (C.tracker && C.tracker.trackSymbol) return C.tracker.trackSymbol(e, t, r); + return !1 + } + }) + })).tracker = ke(v, v.tracker), OS.forEachEntry(t, function(e, t) { + J(e, OS.unescapeLeadingUnderscores(t)) + }), !b), + e = t.get("export="), + e = (e && 1 < t.size && 2097152 & e.flags && (t = OS.createSymbolTable()).set("export=", e), d(t), l); + return e = function(o) { + var e = OS.findIndex(o, function(e) { + return OS.isExportDeclaration(e) && !e.moduleSpecifier && !e.assertClause && !!e.exportClause && OS.isNamedExports(e.exportClause) + }); { + var t, r; + 0 <= e && (t = o[e], r = OS.mapDefined(t.exportClause.elements, function(t) { + if (!t.propertyName) { + var e = OS.indicesOf(o), + e = OS.filter(e, function(e) { + return OS.nodeHasName(o[e], t.name) + }); + if (OS.length(e) && OS.every(e, function(e) { + return OS.canHaveExportModifier(o[e]) + })) { + for (var r = 0, n = e; r < n.length; r++) { + var i = n[r]; + o[i] = (i = o[i], a = void 0, a = -3 & (1 | OS.getEffectiveModifierFlags(i)), OS.factory.updateModifiers(i, a)) + } + return + } + } + var a; + return t + }), OS.length(r) ? o[e] = OS.factory.updateExportDeclaration(t, t.modifiers, t.isTypeOnly, OS.factory.updateNamedExports(t.exportClause, r), t.moduleSpecifier, t.assertClause) : OS.orderedRemoveItemAt(o, e)) + } + return o + }(e = function(e) { + var t = OS.filter(e, function(e) { + return OS.isExportDeclaration(e) && !e.moduleSpecifier && !!e.exportClause && OS.isNamedExports(e.exportClause) + }); + 1 < OS.length(t) && (r = OS.filter(e, function(e) { + return !OS.isExportDeclaration(e) || !!e.moduleSpecifier || !e.exportClause + }), e = __spreadArray(__spreadArray([], r, !0), [OS.factory.createExportDeclaration(void 0, !1, OS.factory.createNamedExports(OS.flatMap(t, function(e) { + return OS.cast(e.exportClause, OS.isNamedExports).elements + })), void 0)], !1)); + var r = OS.filter(e, function(e) { + return OS.isExportDeclaration(e) && !!e.moduleSpecifier && !!e.exportClause && OS.isNamedExports(e.exportClause) + }); + if (1 < OS.length(r)) { + t = OS.group(r, function(e) { + return OS.isStringLiteral(e.moduleSpecifier) ? ">" + e.moduleSpecifier.text : ">" + }); + if (t.length !== r.length) + for (var n = 0, i = t; n < i.length; n++) ! function(t) { + 1 < t.length && (e = __spreadArray(__spreadArray([], OS.filter(e, function(e) { + return -1 === t.indexOf(e) + }), !0), [OS.factory.createExportDeclaration(void 0, !1, OS.factory.createNamedExports(OS.flatMap(t, function(e) { + return OS.cast(e.exportClause, OS.isNamedExports).elements + })), t[0].moduleSpecifier)], !1)) + }(i[n]) + } + return e + }(e = function(e) { + var t = OS.find(e, OS.isExportAssignment), + r = OS.findIndex(e, OS.isModuleDeclaration), + n = -1 !== r ? e[r] : void 0; { + var i, a, o, s; + n && t && t.isExportEquals && OS.isIdentifier(t.expression) && OS.isIdentifier(n.name) && OS.idText(n.name) === OS.idText(t.expression) && n.body && OS.isModuleBlock(n.body) && (i = OS.filter(e, function(e) { + return !!(1 & OS.getEffectiveModifierFlags(e)) + }), a = n.name, o = n.body, OS.length(i) && (n = OS.factory.updateModuleDeclaration(n, n.modifiers, n.name, o = OS.factory.updateModuleBlock(o, OS.factory.createNodeArray(__spreadArray(__spreadArray([], n.body.statements, !0), [OS.factory.createExportDeclaration(void 0, !1, OS.factory.createNamedExports(OS.map(OS.flatMap(i, function(e) { + return OS.isVariableStatement(e) ? OS.filter(OS.map(e.declarationList.declarations, OS.getNameOfDeclaration), u) : OS.filter([OS.getNameOfDeclaration(e)], u) + }), function(e) { + return OS.factory.createExportSpecifier(!1, void 0, e) + })), void 0)], !1)))), e = __spreadArray(__spreadArray(__spreadArray([], e.slice(0, r), !0), [n], !1), e.slice(r + 1), !0)), OS.find(e, function(e) { + return e !== n && OS.nodeHasName(e, a) + }) || (l = [], s = !OS.some(o.statements, function(e) { + return OS.hasSyntacticModifier(e, 1) || OS.isExportAssignment(e) || OS.isExportDeclaration(e) + }), OS.forEach(o.statements, function(e) { + k(e, s ? 1 : 0) + }), e = __spreadArray(__spreadArray([], OS.filter(e, function(e) { + return e !== n && e !== t + }), !0), l, !0))) + } + return e + }(e))), S && (OS.isSourceFile(S) && OS.isExternalOrCommonJsModule(S) || OS.isModuleDeclaration(S)) && (!OS.some(e, OS.isExternalModuleIndicator) || !OS.hasScopeMarker(e) && OS.some(e, OS.needsScopeMarker)) && e.push(OS.createEmptyExports(OS.factory)), e; + + function u(e) { + return !!e && 79 === e.kind + } + + function _(e) { + var t = -2 & OS.getEffectiveModifierFlags(e); + return OS.factory.updateModifiers(e, t) + } + + function d(e, t, r) { + t || n.push(new OS.Map), e.forEach(function(e) { + i(e, !1, !!r) + }), t || (n[n.length - 1].forEach(function(e) { + i(e, !0, !!r) + }), n.pop()) + } + + function i(e, t, r) { + var n = bo(e); + if (!T.has(WS(n)) && (T.add(WS(n)), !t || OS.length(e.declarations) && OS.some(e.declarations, function(e) { + return !!OS.findAncestor(e, function(e) { + return e === S + }) + }))) { + var n = v, + i = (v = function(e) { + e = __assign({}, e); + e.typeParameterNames && (e.typeParameterNames = new OS.Map(e.typeParameterNames)); + e.typeParameterNamesByText && (e.typeParameterNamesByText = new OS.Set(e.typeParameterNamesByText)); + e.typeParameterSymbolList && (e.typeParameterSymbolList = new OS.Set(e.typeParameterSymbolList)); + return e.tracker = ke(e, e.tracker), e + }(v), OS.unescapeLeadingUnderscores(e.escapedName)), + a = "default" === e.escapedName; + if (!t || 131072 & v.flags || !OS.isStringANonContextualKeyword(i) || a) { + var o, s, c, l, u, _, d = a && !!(-113 & e.flags || 16 & e.flags && OS.length(pe(de(e)))) && !(2097152 & e.flags), + p = !d && !t && OS.isStringANonContextualKeyword(i) && !a, + a = ((t = d || p ? !0 : t) ? 0 : 1) | (a && !d ? 1024 : 0), + f = 1536 & e.flags && 7 & e.flags && "export=" !== e.escapedName, + g = f && O(de(e), e); + if ((8208 & e.flags || g) && A(de(e), e, J(e, i), a), 524288 & e.flags && ! function(e, t, r) { + var n = Tc(e), + i = ce(e).typeParameters, + i = OS.map(i, function(e) { + return Oe(e, v) + }), + a = null == (a = e.declarations) ? void 0 : a.find(OS.isJSDocTypeAlias), + o = OS.getTextOfJSDocComment(a ? a.comment || a.parent.comment : void 0), + s = v.flags, + c = (v.flags |= 8388608, v.enclosingDeclaration), + a = (v.enclosingDeclaration = a) && a.typeExpression && OS.isJSDocTypeExpression(a.typeExpression) && $e(v, a.typeExpression.type, E, b) || Ne(n, v); + k(OS.setSyntheticLeadingComments(OS.factory.createTypeAliasDeclaration(void 0, J(e, t), i, a), o ? [{ + kind: 3, + text: "*\n * " + o.replace(/\n/g, "\n * ") + "\n ", + pos: -1, + end: -1, + hasTrailingNewLine: !0 + }] : []), r), v.flags = s, v.enclosingDeclaration = c + }(e, i, a), !(7 & e.flags && "export=" !== e.escapedName) || 4194304 & e.flags || 32 & e.flags || 8192 & e.flags || g || (r ? I(e) && (d = p = !1) : (r = de(e), o = J(e, i), 16 & e.flags || !O(r, e) ? (s = 2 & e.flags ? Gy(e) ? 2 : 1 : null != (s = e.parent) && s.valueDeclaration && OS.isSourceFile(null == (s = e.parent) ? void 0 : s.valueDeclaration) ? 2 : void 0, c = !d && 4 & e.flags ? j(o, e) : o, (l = e.declarations && OS.find(e.declarations, function(e) { + return OS.isVariableDeclaration(e) + })) && OS.isVariableDeclarationList(l.parent) && 1 === l.parent.declarations.length && (l = l.parent.parent), (u = null == (u = e.declarations) ? void 0 : u.find(OS.isPropertyAccessExpression)) && OS.isBinaryExpression(u.parent) && OS.isIdentifier(u.parent.right) && null != (_ = r.symbol) && _.valueDeclaration && OS.isSourceFile(r.symbol.valueDeclaration) ? (_ = o === u.parent.right.escapedText ? void 0 : u.parent.right, k(OS.factory.createExportDeclaration(void 0, !1, OS.factory.createNamedExports([OS.factory.createExportSpecifier(!1, _, o)])), 0), v.tracker.trackSymbol(r.symbol, v.enclosingDeclaration, 111551)) : (k(OS.setTextRange(OS.factory.createVariableStatement(void 0, OS.factory.createVariableDeclarationList([OS.factory.createVariableDeclaration(c, void 0, Ye(v, r, e, S, E, b))], s)), l), c !== o ? -2 & a : a), c === o || t || (k(OS.factory.createExportDeclaration(void 0, !1, OS.factory.createNamedExports([OS.factory.createExportSpecifier(!1, c, o)])), 0), d = p = !1))) : A(r, e, o, a))), 384 & e.flags && ! function(e, t, r) { + k(OS.factory.createEnumDeclaration(OS.factory.createModifiersFromModifierFlags(e2(e) ? 2048 : 0), J(e, t), OS.map(OS.filter(pe(de(e)), function(e) { + return !!(8 & e.flags) + }), function(e) { + var t = e.declarations && e.declarations[0] && OS.isEnumMember(e.declarations[0]) ? VD(e.declarations[0]) : void 0; + return OS.factory.createEnumMember(OS.unescapeLeadingUnderscores(e.escapedName), void 0 === t ? void 0 : "string" == typeof t ? OS.factory.createStringLiteral(t) : OS.factory.createNumericLiteral(t)) + })), r) + }(e, i, a), 32 & e.flags && (4 & e.flags && e.valueDeclaration && OS.isBinaryExpression(e.valueDeclaration.parent) && OS.isClassExpression(e.valueDeclaration.parent.right) ? w : function(e, n, t) { + var r = null == (r = e.declarations) ? void 0 : r.find(OS.isClassLike), + i = v.enclosingDeclaration, + a = (v.enclosingDeclaration = r || i, pc(e)), + a = OS.map(a, function(e) { + return Oe(e, v) + }), + o = Sc(e), + s = xc(o), + r = r && OS.getEffectiveImplementsTypeNodes(r), + r = r && function(e) { + var t = OS.mapDefined(e, function(e) { + var t = v.enclosingDeclaration, + r = (v.enclosingDeclaration = e).expression; + if (OS.isEntityNameExpression(r)) { + if (OS.isIdentifier(r) && "" === OS.idText(r)) return a(void 0); + var n, i = (n = Ze(r, v, E)).introducesError, + r = n.node; + if (i) return a(void 0) + } + return a(OS.factory.createExpressionWithTypeArguments(r, OS.map(e.typeArguments, function(e) { + return $e(v, e, E, b) || Ne(K(e), v) + }))); + + function a(e) { + return v.enclosingDeclaration = t, e + } + }); + if (t.length === e.length) return t + }(r) || OS.mapDefined(function(e) { + var t = OS.emptyArray; + if (e.symbol.declarations) + for (var r = 0, n = e.symbol.declarations; r < n.length; r++) { + var i = n[r], + i = OS.getEffectiveImplementsTypeNodes(i); + if (i) + for (var a = 0, o = i; a < o.length; a++) { + var s = K(o[a]); + _e(s) || (t === OS.emptyArray ? t = [s] : t.push(s)) + } + } + return t + }(o), B), + c = de(e), + l = !(null == (l = c.symbol) || !l.valueDeclaration) && OS.isClassLike(c.symbol.valueDeclaration), + u = l ? vc(c) : ee, + r = __spreadArray(__spreadArray([], OS.length(s) ? [OS.factory.createHeritageClause(94, OS.map(s, function(e) { + var t = u, + r = n; + return (e = R(e, 111551)) || (e = j("".concat(r, "_base")), k(OS.factory.createVariableStatement(void 0, OS.factory.createVariableDeclarationList([OS.factory.createVariableDeclaration(e, void 0, Ne(t, v))], 2)), 0), OS.factory.createExpressionWithTypeArguments(OS.factory.createIdentifier(e), void 0)) + }))] : [], !0), OS.length(r) ? [OS.factory.createHeritageClause(117, r)] : [], !0), + _ = function(e, t, r) { + if (!OS.length(t)) return r; + var n = new OS.Map; + OS.forEach(r, function(e) { + n.set(e.escapedName, e) + }); + for (var i = 0, a = t; i < a.length; i++) + for (var o = pe(Yc(a[i], e.thisType)), s = 0, c = o; s < c.length; s++) { + var l = c[s], + u = n.get(l.escapedName); + u && l.parent === u.parent && n.delete(l.escapedName) + } + return OS.arrayFrom(n.values()) + }(o, s, pe(o)), + d = OS.filter(_, function(e) { + e = e.valueDeclaration; + return !(!e || OS.isNamedDeclaration(e) && OS.isPrivateIdentifier(e.name)) + }), + _ = OS.some(_, function(e) { + e = e.valueDeclaration; + return !!e && OS.isNamedDeclaration(e) && OS.isPrivateIdentifier(e.name) + }) ? [OS.factory.createPropertyDeclaration(void 0, OS.factory.createPrivateIdentifier("#private"), void 0, void 0, void 0)] : OS.emptyArray, + d = OS.flatMap(d, function(e) { + return x(e, !1, s[0]) + }), + p = OS.flatMap(OS.filter(pe(c), function(e) { + return !(4194304 & e.flags || "prototype" === e.escapedName || P(e)) + }), function(e) { + return x(e, !0, u) + }), + l = !l && e.valueDeclaration && OS.isInJSFile(e.valueDeclaration) && !OS.some(ge(c, 1)) ? [OS.factory.createConstructorDeclaration(OS.factory.createModifiersFromModifierFlags(8), [], void 0)] : M(1, c, u, 173), + c = L(o, s[0]); + v.enclosingDeclaration = i, k(OS.setTextRange(OS.factory.createClassDeclaration(void 0, n, a, r, __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], c, !0), p, !0), l, !0), d, !0), _, !0)), e.declarations && OS.filter(e.declarations, function(e) { + return OS.isClassDeclaration(e) || OS.isClassExpression(e) + })[0]), t) + })(e, J(e, i), a), (1536 & e.flags && (!f || function(e) { + return OS.every(N(e), function(e) { + return !(111551 & Ga(Wa(e))) + }) + }(e)) || g) && ! function(i, e, t) { + var r = N(i), + r = OS.arrayToMultiMap(r, function(e) { + return e.parent && e.parent === i ? "real" : "merged" + }), + n = r.get("real") || OS.emptyArray, + r = r.get("merged") || OS.emptyArray; + OS.length(n) && (o = J(i, e), F(n, o, t, !!(67108880 & i.flags))); { + var a, o; + OS.length(r) && (a = OS.getSourceFileOfNode(v.enclosingDeclaration), o = J(i, e), n = OS.factory.createModuleBlock([OS.factory.createExportDeclaration(void 0, !1, OS.factory.createNamedExports(OS.mapDefined(OS.filter(r, function(e) { + return "export=" !== e.escapedName + }), function(e) { + var t = OS.unescapeLeadingUnderscores(e.escapedName), + r = J(e, t), + n = e.declarations && ka(e); + if (!a || (n ? a === OS.getSourceFileOfNode(n) : OS.some(e.declarations, function(e) { + return OS.getSourceFileOfNode(e) === a + }))) return E((n = n && Va(n, !0)) || e), n = n ? J(n, OS.unescapeLeadingUnderscores(n.escapedName)) : r, OS.factory.createExportSpecifier(!1, t === n ? void 0 : n, t); + null != (n = null == (r = v.tracker) ? void 0 : r.reportNonlocalAugmentation) && n.call(r, a, i, e) + })))]), k(OS.factory.createModuleDeclaration(void 0, OS.factory.createIdentifier(o), n, 16), 0)) + } + }(e, i, a), 64 & e.flags && !(32 & e.flags) && ! function(e, t, r) { + var n = Sc(e), + i = pc(e), + i = OS.map(i, function(e) { + return Oe(e, v) + }), + a = xc(n), + o = OS.length(a) ? ve(a) : void 0, + s = OS.flatMap(pe(n), function(e) { + return D(e, !1, o) + }), + c = M(0, n, o, 176), + l = M(1, n, o, 177), + n = L(n, o), + a = OS.length(a) ? [OS.factory.createHeritageClause(94, OS.mapDefined(a, function(e) { + return R(e, 111551) + }))] : void 0; + k(OS.factory.createInterfaceDeclaration(void 0, J(e, t), i, a, __spreadArray(__spreadArray(__spreadArray(__spreadArray([], n, !0), l, !0), c, !0), s, !0)), r) + }(e, i, a), 2097152 & e.flags && w(e, J(e, i), a), 4 & e.flags && "export=" === e.escapedName && I(e), 8388608 & e.flags && e.declarations) + for (var m = 0, y = e.declarations; m < y.length; m++) { + var h = y[m], + h = io(h, h.moduleSpecifier); + h && k(OS.factory.createExportDeclaration(void 0, !1, void 0, OS.factory.createStringLiteral(ze(h, v))), 0) + } + d ? k(OS.factory.createExportAssignment(void 0, !1, OS.factory.createIdentifier(J(e, i))), 0) : p && k(OS.factory.createExportDeclaration(void 0, !1, OS.factory.createNamedExports([OS.factory.createExportSpecifier(!1, J(e, i), i)])), 0) + } else v.encounteredError = !0; + v.reportedDiagnostic && (C.reportedDiagnostic = v.reportedDiagnostic), v = n + } + } + + function E(e) { + var t; + OS.some(e.declarations, OS.isParameterDeclaration) || (OS.Debug.assertIsDefined(n[n.length - 1]), j(OS.unescapeLeadingUnderscores(e.escapedName), e), t = !!(2097152 & e.flags) && !OS.some(e.declarations, function(e) { + return !!OS.findAncestor(e, OS.isExportDeclaration) || OS.isNamespaceExport(e) || OS.isImportEqualsDeclaration(e) && !OS.isExternalModuleReference(e.moduleReference) + }), n[t ? 0 : n.length - 1].set(WS(e), e)) + } + + function k(e, t) { + var r, n, i; + OS.canHaveModifiers(e) && (r = 0, n = v.enclosingDeclaration && (OS.isJSDocTypeAlias(v.enclosingDeclaration) ? OS.getSourceFileOfNode(v.enclosingDeclaration) : v.enclosingDeclaration), 1 & t && n && (i = n, OS.isSourceFile(i) && (OS.isExternalOrCommonJsModule(i) || OS.isJsonSourceFile(i)) || OS.isAmbientModule(i) && !OS.isGlobalScopeAugmentation(i) || OS.isModuleDeclaration(n)) && OS.canHaveExportModifier(e) && (r |= 1), !c || 1 & r || n && 16777216 & n.flags || !(OS.isEnumDeclaration(e) || OS.isVariableStatement(e) || OS.isFunctionDeclaration(e) || OS.isClassDeclaration(e) || OS.isModuleDeclaration(e)) || (r |= 2), 1024 & t && (OS.isClassDeclaration(e) || OS.isInterfaceDeclaration(e) || OS.isFunctionDeclaration(e)) && (r |= 1024), r) && (e = OS.factory.updateModifiers(e, r | OS.getEffectiveModifierFlags(e))), l.push(e) + } + + function N(e) { + return e.exports ? OS.filter(OS.arrayFrom(e.exports.values()), P) : [] + } + + function A(e, t, r, n) { + for (var i = 0, a = ge(e, 0); i < a.length; i++) { + var o = a[i], + s = we(o, 259, v, { + name: OS.factory.createIdentifier(r), + privateSymbolVisitor: E, + bundledImports: b + }); + k(OS.setTextRange(s, function(e) { + if (e.declaration && e.declaration.parent) { + if (OS.isBinaryExpression(e.declaration.parent) && 5 === OS.getAssignmentDeclarationKind(e.declaration.parent)) return e.declaration.parent; + if (OS.isVariableDeclaration(e.declaration.parent) && e.declaration.parent.parent) return e.declaration.parent.parent + } + return e.declaration + }(o)), n) + } + 1536 & t.flags && t.exports && t.exports.size || F(OS.filter(pe(e), P), r, n, !0) + } + + function F(e, t, r, n) { + var i, a, o, s; + OS.length(e) && (s = OS.arrayToMultiMap(e, function(e) { + return !OS.length(e.declarations) || OS.some(e.declarations, function(e) { + return OS.getSourceFileOfNode(e) === OS.getSourceFileOfNode(v.enclosingDeclaration) + }) ? "local" : "remote" + }).get("local") || OS.emptyArray, t = OS.parseNodeFactory.createModuleDeclaration(void 0, OS.factory.createIdentifier(t), OS.factory.createModuleBlock([]), 16), OS.setParent(t, S), t.locals = OS.createSymbolTable(e), t.symbol = e[0].parent, e = l, i = c, c = !(l = []), o = __assign(__assign({}, v), { + enclosingDeclaration: t + }), a = v, v = o, d(OS.createSymbolTable(s), n, !0), v = a, c = i, o = l, l = e, s = OS.map(o, function(e) { + return OS.isExportAssignment(e) && !e.isExportEquals && OS.isIdentifier(e.expression) ? OS.factory.createExportDeclaration(void 0, !1, OS.factory.createNamedExports([OS.factory.createExportSpecifier(!1, e.expression, OS.factory.createIdentifier("default"))])) : e + }), n = OS.every(s, function(e) { + return OS.hasSyntacticModifier(e, 1) + }) ? OS.map(s, _) : s, k(t = OS.factory.updateModuleDeclaration(t, t.modifiers, t.name, OS.factory.createModuleBlock(n)), r)) + } + + function P(e) { + return !!(2887656 & e.flags) || !(4194304 & e.flags || "prototype" === e.escapedName || e.valueDeclaration && OS.isStatic(e.valueDeclaration) && OS.isClassLike(e.valueDeclaration.parent)) + } + + function w(e, t, r) { + var n = ka(e); + if (!n) return OS.Debug.fail(); + var i = bo(Va(n, !0)); + if (i) { + var a, o = OS.isShorthandAmbientModuleSymbol(i) && (a = e.declarations, OS.firstDefined(a, function(e) { + if (OS.isImportSpecifier(e) || OS.isExportSpecifier(e)) return OS.idText(e.propertyName || e.name); + if (OS.isBinaryExpression(e) || OS.isExportAssignment(e)) { + var t = OS.isExportAssignment(e) ? e.expression : e.right; + if (OS.isPropertyAccessExpression(t)) return OS.idText(t.name) + } + if (Na(e)) { + t = OS.getNameOfDeclaration(e); + if (t && OS.isIdentifier(t)) return OS.idText(t) + } + })) || OS.unescapeLeadingUnderscores(i.escapedName), + s = J(i, o = "export=" === o && (OS.getESModuleInterop(Z) || Z.allowSyntheticDefaultImports) ? "default" : o); + switch (E(i), n.kind) { + case 205: + 257 === (null == (c = null == (c = n.parent) ? void 0 : c.parent) ? void 0 : c.kind) ? (c = ze(i.parent || i, v), l = n.propertyName, k(OS.factory.createImportDeclaration(void 0, OS.factory.createImportClause(!1, void 0, OS.factory.createNamedImports([OS.factory.createImportSpecifier(!1, l && OS.isIdentifier(l) ? OS.factory.createIdentifier(OS.idText(l)) : void 0, OS.factory.createIdentifier(t))])), OS.factory.createStringLiteral(c), void 0), 0)) : OS.Debug.failBadSyntaxKind((null == (l = n.parent) ? void 0 : l.parent) || n, "Unhandled binding element grandparent kind in declaration serialization"); + break; + case 300: + 223 === (null == (l = null == (c = n.parent) ? void 0 : c.parent) ? void 0 : l.kind) && p(OS.unescapeLeadingUnderscores(e.escapedName), s); + break; + case 257: + if (OS.isPropertyAccessExpression(n.initializer)) { + var c = n.initializer, + l = OS.factory.createUniqueName(t), + u = ze(i.parent || i, v); + k(OS.factory.createImportEqualsDeclaration(void 0, !1, l, OS.factory.createExternalModuleReference(OS.factory.createStringLiteral(u))), 0), k(OS.factory.createImportEqualsDeclaration(void 0, !1, OS.factory.createIdentifier(t), OS.factory.createQualifiedName(l, c.name)), r); + break + } + case 268: + "export=" === i.escapedName && OS.some(i.declarations, OS.isJsonSourceFile) ? I(e) : (u = !(512 & i.flags || OS.isVariableDeclaration(n)), k(OS.factory.createImportEqualsDeclaration(void 0, !1, OS.factory.createIdentifier(t), u ? Ve(i, v, 67108863, !1) : OS.factory.createExternalModuleReference(OS.factory.createStringLiteral(ze(i, v)))), u ? r : 0)); + break; + case 267: + k(OS.factory.createNamespaceExportDeclaration(OS.idText(n.name)), 0); + break; + case 270: + k(OS.factory.createImportDeclaration(void 0, OS.factory.createImportClause(!1, OS.factory.createIdentifier(t), void 0), OS.factory.createStringLiteral(ze(i.parent || i, v)), void 0), 0); + break; + case 271: + k(OS.factory.createImportDeclaration(void 0, OS.factory.createImportClause(!1, void 0, OS.factory.createNamespaceImport(OS.factory.createIdentifier(t))), OS.factory.createStringLiteral(ze(i, v)), void 0), 0); + break; + case 277: + k(OS.factory.createExportDeclaration(void 0, !1, OS.factory.createNamespaceExport(OS.factory.createIdentifier(t)), OS.factory.createStringLiteral(ze(i, v))), 0); + break; + case 273: + k(OS.factory.createImportDeclaration(void 0, OS.factory.createImportClause(!1, void 0, OS.factory.createNamedImports([OS.factory.createImportSpecifier(!1, t !== o ? OS.factory.createIdentifier(o) : void 0, OS.factory.createIdentifier(t))])), OS.factory.createStringLiteral(ze(i.parent || i, v)), void 0), 0); + break; + case 278: + l = n.parent.parent.moduleSpecifier; + p(OS.unescapeLeadingUnderscores(e.escapedName), l ? o : s, l && OS.isStringLiteralLike(l) ? OS.factory.createStringLiteral(l.text) : void 0); + break; + case 274: + I(e); + break; + case 223: + case 208: + case 209: + "default" === e.escapedName || "export=" === e.escapedName ? I(e) : p(t, s); + break; + default: + OS.Debug.failBadSyntaxKind(n, "Unhandled alias declaration kind in symbol serializer!") + } + } + } + + function p(e, t, r) { + k(OS.factory.createExportDeclaration(void 0, !1, OS.factory.createNamedExports([OS.factory.createExportSpecifier(!1, e !== t ? t : void 0, e)]), r), 0) + } + + function I(e) { + var t, r, n, i, a, o, s, c; + return !(4194304 & e.flags || (n = (r = "export=" === (t = OS.unescapeLeadingUnderscores(e.escapedName))) || "default" === t, (i = (a = e.declarations && ka(e)) && Va(a, !0)) && OS.length(i.declarations) && OS.some(i.declarations, function(e) { + return OS.getSourceFileOfNode(e) === OS.getSourceFileOfNode(S) + }) ? (((o = (c = (a = a && (OS.isExportAssignment(a) || OS.isBinaryExpression(a) ? OS.getExportAssignmentExpression(a) : OS.getPropertyAssignmentAliasLikeExpression(a))) && OS.isEntityNameExpression(a) ? function(e) { + switch (e.kind) { + case 79: + return e; + case 163: + for (; 79 !== (e = e.left).kind;); + return e; + case 208: + do { + if (OS.isModuleExportsAccessExpression(e.expression) && !OS.isPrivateIdentifier(e.name)) return e.name + } while (79 !== (e = e.expression).kind); + return e + } + }(a) : void 0) && ro(c, 67108863, !0, !0, S)) || i) && E(o || i), o = v.tracker.trackSymbol, v.tracker.trackSymbol = function() { + return !1 + }, n ? l.push(OS.factory.createExportAssignment(void 0, r, qe(i, v, 67108863))) : c === a && c ? p(t, OS.idText(c)) : a && OS.isClassExpression(a) ? p(t, J(i, OS.symbolName(i))) : (s = j(t, e), k(OS.factory.createImportEqualsDeclaration(void 0, !1, OS.factory.createIdentifier(s), Ve(i, v, 67108863, !1)), 0), p(t, s)), v.tracker.trackSymbol = o, 0) : (s = j(t, e), O(c = Xg(de(bo(e))), e) ? A(c, e, s, n ? 0 : 1) : k(OS.factory.createVariableStatement(void 0, OS.factory.createVariableDeclarationList([OS.factory.createVariableDeclaration(s, void 0, Ye(v, c, e, S, E, b))], 2)), i && 4 & i.flags && "export=" === i.escapedName ? 2 : t === s ? 1 : 0), n ? (l.push(OS.factory.createExportAssignment(void 0, r, OS.factory.createIdentifier(s))), 0) : t === s || (p(t, s), 0)))) + } + + function O(e, t) { + var r = OS.getSourceFileOfNode(v.enclosingDeclaration); + return 48 & OS.getObjectFlags(e) && !OS.length(uu(e)) && !is(e) && !(!OS.length(OS.filter(pe(e), P)) && !OS.length(ge(e, 0))) && !OS.length(ge(e, 1)) && !Qe(t, S) && !(e.symbol && OS.some(e.symbol.declarations, function(e) { + return OS.getSourceFileOfNode(e) !== r + })) && !OS.some(pe(e), function(e) { + return Kc(e.escapedName) + }) && !OS.some(pe(e), function(e) { + return OS.some(e.declarations, function(e) { + return OS.getSourceFileOfNode(e) !== r + }) + }) && OS.every(pe(e), function(e) { + return OS.isIdentifierText(OS.symbolName(e), U) + }) + } + + function r(p, f, g) { + return function(e, t, r) { + var n = OS.getDeclarationModifierFlagsFromSymbol(e), + i = !!(8 & n); + if (t && 2887656 & e.flags) return []; + if (4194304 & e.flags || r && fe(r, e.escapedName) && K1(fe(r, e.escapedName)) === K1(e) && (16777216 & e.flags) == (16777216 & fe(r, e.escapedName).flags) && sf(de(e), ys(r, e.escapedName))) return []; + var a, o = -513 & n | (t ? 32 : 0), + s = Ge(e, v), + t = null == (r = e.declarations) ? void 0 : r.find(OS.or(OS.isPropertyDeclaration, OS.isAccessor, OS.isVariableDeclaration, OS.isPropertySignature, OS.isBinaryExpression, OS.isPropertyAccessExpression)); + if (98304 & e.flags && g) return r = [], 65536 & e.flags && r.push(OS.setTextRange(OS.factory.createSetAccessorDeclaration(OS.factory.createModifiersFromModifierFlags(o), s, [OS.factory.createParameterDeclaration(void 0, void 0, "arg", void 0, i ? void 0 : Ye(v, de(e), e, S, E, b))], void 0), (null == (a = e.declarations) ? void 0 : a.find(OS.isSetAccessor)) || t)), 32768 & e.flags && (a = 8 & n, r.push(OS.setTextRange(OS.factory.createGetAccessorDeclaration(OS.factory.createModifiersFromModifierFlags(o), s, [], a ? void 0 : Ye(v, de(e), e, S, E, b), void 0), (null == (n = e.declarations) ? void 0 : n.find(OS.isGetAccessor)) || t))), r; + if (98311 & e.flags) return OS.setTextRange(p(OS.factory.createModifiersFromModifierFlags((K1(e) ? 64 : 0) | o), s, 16777216 & e.flags ? OS.factory.createToken(57) : void 0, i ? void 0 : Ye(v, ac(e), e, S, E, b), void 0), (null == (a = e.declarations) ? void 0 : a.find(OS.or(OS.isPropertyDeclaration, OS.isVariableDeclaration))) || t); + if (8208 & e.flags) { + n = ge(de(e), 0); + if (8 & o) return OS.setTextRange(p(OS.factory.createModifiersFromModifierFlags((K1(e) ? 64 : 0) | o), s, 16777216 & e.flags ? OS.factory.createToken(57) : void 0, void 0, void 0), (null == (r = e.declarations) ? void 0 : r.find(OS.isFunctionLikeDeclaration)) || n[0] && n[0].declaration || e.declarations && e.declarations[0]); + for (var c = [], l = 0, u = n; l < u.length; l++) { + var _ = u[l], + d = we(_, f, v, { + name: s, + questionToken: 16777216 & e.flags ? OS.factory.createToken(57) : void 0, + modifiers: o ? OS.factory.createModifiersFromModifierFlags(o) : void 0 + }), + _ = _.declaration && OS.isPrototypePropertyAssignment(_.declaration.parent) ? _.declaration.parent : _.declaration; + c.push(OS.setTextRange(d, _)) + } + return c + } + return OS.Debug.fail("Unhandled class member kind! ".concat(e.__debugFlags || e.flags)) + } + } + + function M(e, t, r, n) { + var i = ge(t, e); + if (1 === e) { + if (!r && OS.every(i, function(e) { + return 0 === OS.length(e.parameters) + })) return []; + if (r) { + var a = ge(r, 1); + if (!OS.length(a) && OS.every(i, function(e) { + return 0 === OS.length(e.parameters) + })) return []; + if (a.length === i.length) { + for (var o = !1, s = 0; s < a.length; s++) + if (!ag(i[s], a[s], !1, !1, !0, cf)) { + o = !0; + break + } + if (!o) return [] + } + } + for (var c = 0, l = 0, u = i; l < u.length; l++) { + var _ = u[l]; + _.declaration && (c |= OS.getSelectedEffectiveModifierFlags(_.declaration, 24)) + } + if (c) return [OS.setTextRange(OS.factory.createConstructorDeclaration(OS.factory.createModifiersFromModifierFlags(c), [], void 0), i[0].declaration)] + } + for (var d = [], p = 0, f = i; p < f.length; p++) { + var g = f[p], + m = we(g, n, v); + d.push(OS.setTextRange(m, g.declaration)) + } + return d + } + + function L(e, t) { + for (var r = [], n = 0, i = uu(e); n < i.length; n++) { + var a = i[n]; + if (t) { + var o = _u(t, a.keyType); + if (o && sf(a.type, o.type)) continue + } + r.push(Pe(a, v, void 0)) + } + return r + } + + function R(e, t) { + var r, n; + if (e.target && qo(e.target.symbol, S, t) ? (r = OS.map(ye(e), function(e) { + return Ne(e, v) + }), n = qe(e.target.symbol, v, 788968)) : e.symbol && qo(e.symbol, S, t) && (n = qe(e.symbol, v, 788968)), n) return OS.factory.createExpressionWithTypeArguments(n, r) + } + + function B(e) { + var t = R(e, 788968); + return t || (e.symbol ? OS.factory.createExpressionWithTypeArguments(qe(e.symbol, v, 788968), void 0) : void 0) + } + + function j(e, t) { + var r, n = t ? WS(t) : void 0; + if (n && v.remappedSymbolNames.has(n)) return v.remappedSymbolNames.get(n); + for (var i = 0, a = e = t ? o(t, e) : e; null != (r = v.usedSymbolNames) && r.has(e);) i++, e = "".concat(a, "_").concat(i); + return null != (t = v.usedSymbolNames) && t.add(e), n && v.remappedSymbolNames.set(n, e), e + } + + function o(e, t) { + var r; + return "default" !== t && "__class" !== t && "__function" !== t || (r = v.flags, v.flags |= 16777216, e = us(e, v), v.flags = r, t = 0 < e.length && OS.isSingleOrDoubleQuote(e.charCodeAt(0)) ? OS.stripQuotes(e) : e), "default" === t ? t = "_default" : "export=" === t && (t = "_exports"), t = OS.isIdentifierText(t, U) && !OS.isStringANonContextualKeyword(t) ? t : "_" + t.replace(/[^a-zA-Z0-9]/g, "_") + } + + function J(e, t) { + var r = WS(e); + return v.remappedSymbolNames.has(r) ? v.remappedSymbolNames.get(r) : (t = o(e, t), v.remappedSymbolNames.set(r, t), t) + } + }) + }, + symbolToNode: function(i, a, e, t, r) { + return w(e, t, r, function(e) { + var t = i, + r = a; + if (1073741824 & e.flags) { + if (t.valueDeclaration) { + var n = OS.getNameOfDeclaration(t.valueDeclaration); + if (n && OS.isComputedPropertyName(n)) return n + } + n = ce(t).nameType; + if (n && 9216 & n.flags) return e.enclosingDeclaration = n.symbol.valueDeclaration, OS.factory.createComputedPropertyName(qe(n.symbol, e, r)) + } + return qe(t, e, r) + }) + } + }; + + function w(e, t, r, n) { + OS.Debug.assert(void 0 === e || 0 == (8 & e.flags)); + e = { + enclosingDeclaration: e, + flags: t || 0, + tracker: r && r.trackSymbol ? r : { + trackSymbol: function() { + return !1 + }, + moduleResolverHost: 134217728 & t ? { + getCommonSourceDirectory: g.getCommonSourceDirectory ? function() { + return g.getCommonSourceDirectory() + } : function() { + return "" + }, + getCurrentDirectory: function() { + return g.getCurrentDirectory() + }, + getSymlinkCache: OS.maybeBind(g, g.getSymlinkCache), + getPackageJsonInfoCache: function() { + var e; + return null == (e = g.getPackageJsonInfoCache) ? void 0 : e.call(g) + }, + useCaseSensitiveFileNames: OS.maybeBind(g, g.useCaseSensitiveFileNames), + redirectTargetsMap: g.redirectTargetsMap, + getProjectReferenceRedirect: function(e) { + return g.getProjectReferenceRedirect(e) + }, + isSourceOfProjectReferenceRedirect: function(e) { + return g.isSourceOfProjectReferenceRedirect(e) + }, + fileExists: function(e) { + return g.fileExists(e) + }, + getFileIncludeReasons: function() { + return g.getFileIncludeReasons() + }, + readFile: g.readFile ? function(e) { + return g.readFile(e) + } : void 0 + } : void 0 + }, + encounteredError: !1, + reportedDiagnostic: !1, + visitedTypes: void 0, + symbolDepth: void 0, + inferTypeParameters: void 0, + approximateLength: 0 + }, e.tracker = ke(e, e.tracker), r = n(e); + return e.truncating && 1 & e.flags && null != (n = null == (t = e.tracker) ? void 0 : t.reportTruncationError) && n.call(t), e.encounteredError ? void 0 : r + } + + function ke(n, e) { + var i = e.trackSymbol; + return __assign(__assign({}, e), { + reportCyclicStructureError: t(e.reportCyclicStructureError), + reportInaccessibleThisError: t(e.reportInaccessibleThisError), + reportInaccessibleUniqueSymbolError: t(e.reportInaccessibleUniqueSymbolError), + reportLikelyUnsafeImportRequiredError: t(e.reportLikelyUnsafeImportRequiredError), + reportNonlocalAugmentation: t(e.reportNonlocalAugmentation), + reportPrivateInBaseOfClassExpression: t(e.reportPrivateInBaseOfClassExpression), + reportNonSerializableProperty: t(e.reportNonSerializableProperty), + trackSymbol: i && function() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + var r = i.apply(void 0, e); + return r && (n.reportedDiagnostic = !0), r + } + }); + + function t(r) { + return r && function() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + return n.reportedDiagnostic = !0, r.apply(void 0, e) + } + } + } + + function I(e) { + return e.truncating || (e.truncating = e.approximateLength > (1 & e.flags ? OS.noTruncationMaximumTruncationLength : OS.defaultMaximumTruncationLength)) + } + + function Ne(e, t) { + var r = t.flags, + e = function(e, g) { + f && f.throwIfCancellationRequested && f.throwIfCancellationRequested(); + var t = 8388608 & g.flags; + if (g.flags &= -8388609, !e) return 262144 & g.flags ? (g.approximateLength += 3, OS.factory.createKeywordTypeNode(131)) : void(g.encounteredError = !0); + 536870912 & g.flags || (e = eu(e)); + if (1 & e.flags) return e.aliasSymbol ? OS.factory.createTypeReferenceNode(function e(t) { + var r = OS.factory.createIdentifier(OS.unescapeLeadingUnderscores(t.escapedName)); + return t.parent ? OS.factory.createQualifiedName(e(t.parent), r) : r + }(e.aliasSymbol), Fe(e.aliasTypeArguments, g)) : e === Fr ? OS.addSyntheticLeadingComment(OS.factory.createKeywordTypeNode(131), 3, "unresolved") : (g.approximateLength += 3, OS.factory.createKeywordTypeNode(e === wr ? 139 : 131)); + if (2 & e.flags) return OS.factory.createKeywordTypeNode(157); + if (4 & e.flags) return g.approximateLength += 6, OS.factory.createKeywordTypeNode(152); + if (8 & e.flags) return g.approximateLength += 6, OS.factory.createKeywordTypeNode(148); + if (64 & e.flags) return g.approximateLength += 6, OS.factory.createKeywordTypeNode(160); + if (16 & e.flags && !e.aliasSymbol) return g.approximateLength += 7, OS.factory.createKeywordTypeNode(134); + if (1024 & e.flags && !(1048576 & e.flags)) return o = xo(e.symbol), r = Ue(o, g, 788968), Pc(o) === e ? r : (o = OS.symbolName(e.symbol), OS.isIdentifierText(o, 0) ? y(r, OS.factory.createTypeReferenceNode(o, void 0)) : OS.isImportTypeNode(r) ? (r.isTypeOf = !0, OS.factory.createIndexedAccessTypeNode(r, OS.factory.createLiteralTypeNode(OS.factory.createStringLiteral(o)))) : OS.isTypeReferenceNode(r) ? OS.factory.createIndexedAccessTypeNode(OS.factory.createTypeQueryNode(r.typeName), OS.factory.createLiteralTypeNode(OS.factory.createStringLiteral(o))) : OS.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")); + if (1056 & e.flags) return Ue(e.symbol, g, 788968); + if (128 & e.flags) return g.approximateLength += e.value.length + 2, OS.factory.createLiteralTypeNode(OS.setEmitFlags(OS.factory.createStringLiteral(e.value, !!(268435456 & g.flags)), 16777216)); + if (256 & e.flags) return r = e.value, g.approximateLength += ("" + r).length, OS.factory.createLiteralTypeNode(r < 0 ? OS.factory.createPrefixUnaryExpression(40, OS.factory.createNumericLiteral(-r)) : OS.factory.createNumericLiteral(r)); + if (2048 & e.flags) return g.approximateLength += OS.pseudoBigIntToString(e.value).length + 1, OS.factory.createLiteralTypeNode(OS.factory.createBigIntLiteral(e.value)); + if (512 & e.flags) return g.approximateLength += e.intrinsicName.length, OS.factory.createLiteralTypeNode("true" === e.intrinsicName ? OS.factory.createTrue() : OS.factory.createFalse()); + if (8192 & e.flags) { + if (!(1048576 & g.flags)) { + if (Vo(e.symbol, g.enclosingDeclaration)) return g.approximateLength += 6, Ue(e.symbol, g, 111551); + g.tracker.reportInaccessibleUniqueSymbolError && g.tracker.reportInaccessibleUniqueSymbolError() + } + return g.approximateLength += 13, OS.factory.createTypeOperatorNode(156, OS.factory.createKeywordTypeNode(153)) + } + if (16384 & e.flags) return g.approximateLength += 4, OS.factory.createKeywordTypeNode(114); + if (32768 & e.flags) return g.approximateLength += 9, OS.factory.createKeywordTypeNode(155); + if (65536 & e.flags) return g.approximateLength += 4, OS.factory.createLiteralTypeNode(OS.factory.createNull()); + if (131072 & e.flags) return g.approximateLength += 5, OS.factory.createKeywordTypeNode(144); + if (4096 & e.flags) return g.approximateLength += 6, OS.factory.createKeywordTypeNode(153); + if (67108864 & e.flags) return g.approximateLength += 6, OS.factory.createKeywordTypeNode(149); + if (OS.isThisTypeParameter(e)) return 4194304 & g.flags && (g.encounteredError || 32768 & g.flags || (g.encounteredError = !0), g.tracker.reportInaccessibleThisError) && g.tracker.reportInaccessibleThisError(), g.approximateLength += 4, OS.factory.createThisTypeNode(); + if (!t && e.aliasSymbol && (16384 & g.flags || Ko(e.aliasSymbol, g.enclosingDeclaration))) return o = Fe(e.aliasTypeArguments, g), !Oo(e.aliasSymbol.escapedName) || 32 & e.aliasSymbol.flags ? 1 === OS.length(o) && e.aliasSymbol === ht.symbol ? OS.factory.createArrayTypeNode(o[0]) : Ue(e.aliasSymbol, g, 788968, o) : OS.factory.createTypeReferenceNode(OS.factory.createIdentifier(""), o); + var r = OS.getObjectFlags(e); + if (4 & r) return OS.Debug.assert(!!(524288 & e.flags)), e.node ? u(e, d) : d(e); + if (262144 & e.flags || 3 & r) return 262144 & e.flags && OS.contains(g.inferTypeParameters, e) ? (g.approximateLength += OS.symbolName(e.symbol).length + 6, t = void 0, !(o = Ml(e)) || (a = Qu(e, !0)) && sf(o, a) || (g.approximateLength += 9, t = o && Ne(o, g)), OS.factory.createInferTypeNode(Ie(e, g, t))) : 4 & g.flags && 262144 & e.flags && !Ko(e.symbol, g.enclosingDeclaration) ? (a = Ke(e, g), g.approximateLength += OS.idText(a).length, OS.factory.createTypeReferenceNode(OS.factory.createIdentifier(OS.idText(a)), void 0)) : e.symbol ? Ue(e.symbol, g, 788968) : (o = (e === Tn || e === Cn) && h && h.symbol ? (e === Cn ? "sub-" : "super-") + OS.symbolName(h.symbol) : "?", OS.factory.createTypeReferenceNode(OS.factory.createIdentifier(o), void 0)); + 1048576 & e.flags && e.origin && (e = e.origin); + if (3145728 & e.flags) return t = 1048576 & e.flags ? function(e) { + for (var t = [], r = 0, n = 0; n < e.length; n++) { + var i = e[n]; + if (r |= i.flags, !(98304 & i.flags)) { + if (1536 & i.flags) { + var a = 512 & i.flags ? Vr : kc(i); + if (1048576 & a.flags) { + var o = a.types.length; + if (n + o <= e.length && hp(e[n + o - 1]) === hp(a.types[o - 1])) { + t.push(a), n += o - 1; + continue + } + } + } + t.push(i) + } + } + 65536 & r && t.push(Rr); + 32768 & r && t.push(re); + return t || e + }(e.types) : e.types, 1 === OS.length(t) ? Ne(t[0], g) : (a = Fe(t, g, !0)) && 0 < a.length ? 1048576 & e.flags ? OS.factory.createUnionTypeNode(a) : OS.factory.createIntersectionTypeNode(a) : void(g.encounteredError || 262144 & g.flags || (g.encounteredError = !0)); + if (48 & r) return OS.Debug.assert(!!(524288 & e.flags)), m(e); + if (4194304 & e.flags) return o = e.type, g.approximateLength += 6, s = Ne(o, g), OS.factory.createTypeOperatorNode(141, s); { + var n, i, a; + if (134217728 & e.flags) return n = e.texts, i = e.types, t = OS.factory.createTemplateHead(n[0]), a = OS.factory.createNodeArray(OS.map(i, function(e, t) { + return OS.factory.createTemplateLiteralTypeSpan(Ne(e, g), (t < i.length - 1 ? OS.factory.createTemplateMiddle : OS.factory.createTemplateTail)(n[t + 1])) + })), g.approximateLength += 2, OS.factory.createTemplateLiteralType(t, a) + } + if (268435456 & e.flags) return r = Ne(e.type, g), Ue(e.symbol, g, 788968, [r]); { + var o, s; + if (8388608 & e.flags) return o = Ne(e.objectType, g), s = Ne(e.indexType, g), g.approximateLength += 2, OS.factory.createIndexedAccessTypeNode(o, s) + } + if (16777216 & e.flags) return u(e, function(e) { + var t, r, n, i, a, o = Ne(e.checkType, g); + return g.approximateLength += 15, 4 & g.flags && e.root.isDistributive && !(262144 & e.checkType.flags) ? (t = Io(B(262144, "T")), r = Ke(t, g), n = OS.factory.createTypeReferenceNode(r), g.approximateLength += 37, t = Jp(e.root.checkType, t, e.mapper), a = g.inferTypeParameters, g.inferTypeParameters = e.root.inferTypeParameters, i = Ne(be(e.root.extendsType, t), g), g.inferTypeParameters = a, a = c(be(K(e.root.node.trueType), t)), t = c(be(K(e.root.node.falseType), t)), OS.factory.createConditionalTypeNode(o, OS.factory.createInferTypeNode(OS.factory.createTypeParameterDeclaration(void 0, OS.factory.cloneNode(n.typeName))), OS.factory.createConditionalTypeNode(OS.factory.createTypeReferenceNode(OS.factory.cloneNode(r)), Ne(e.checkType, g), OS.factory.createConditionalTypeNode(n, i, a, t), OS.factory.createKeywordTypeNode(144)), OS.factory.createKeywordTypeNode(144))) : (r = g.inferTypeParameters, g.inferTypeParameters = e.root.inferTypeParameters, n = Ne(e.extendsType, g), g.inferTypeParameters = r, i = c(rp(e)), a = c(np(e)), OS.factory.createConditionalTypeNode(o, n, i, a)) + }); + if (33554432 & e.flags) return Ne(e.baseType, g); + return OS.Debug.fail("Should be unreachable."); + + function c(e) { + var t, r; + return 1048576 & e.flags ? null != (t = g.visitedTypes) && t.has(e.id) ? (131072 & g.flags || (g.encounteredError = !0, null != (r = null == (t = g.tracker) ? void 0 : t.reportCyclicStructureError) && r.call(t)), O(g)) : u(e, function(e) { + return Ne(e, g) + }) : Ne(e, g) + } + + function l(e) { + return Tl(e) && !(262144 & Cl(e).flags) + } + + function m(e) { + var t, r = e.id, + n = e.symbol; + return n ? (t = is(e) ? 788968 : 111551, Qv(n.valueDeclaration) || 32 & n.flags && !$s(n) && (!(n.valueDeclaration && OS.isClassLike(n.valueDeclaration) && 2048 & g.flags) || OS.isClassDeclaration(n.valueDeclaration) && 0 === Wo(n, g.enclosingDeclaration, t, !1).accessibility) || 896 & n.flags || function() { + var e = !!(8192 & n.flags) && OS.some(n.declarations, function(e) { + return OS.isStatic(e) + }), + t = !!(16 & n.flags) && (n.parent || OS.forEach(n.declarations, function(e) { + return 308 === e.parent.kind || 265 === e.parent.kind + })); + if (e || t) return (4096 & g.flags || null != (e = g.visitedTypes) && e.has(r)) && (!(8 & g.flags) || Vo(n, g.enclosingDeclaration)) + }() ? Ue(n, g, t) : null != (t = g.visitedTypes) && t.has(r) ? (t = function(e) { + if (e.symbol && 2048 & e.symbol.flags && e.symbol.declarations) { + e = OS.walkUpParenthesizedTypes(e.symbol.declarations[0].parent); + if (262 === e.kind) return G(e) + } + return + }(e)) ? Ue(t, g, 788968) : O(g) : u(e, _)) : _(e) + } + + function u(e, t) { + var r, n = e.id, + i = 16 & OS.getObjectFlags(e) && e.symbol && 32 & e.symbol.flags, + i = 4 & OS.getObjectFlags(e) && e.node ? "N" + qS(e.node) : 16777216 & e.flags ? "N" + qS(e.root.node) : e.symbol ? (i ? "+" : "") + WS(e.symbol) : void 0, + a = (g.visitedTypes || (g.visitedTypes = new OS.Set), i && !g.symbolDepth && (g.symbolDepth = new OS.Map), g.enclosingDeclaration && H(g.enclosingDeclaration)), + o = "".concat(e.id, "|").concat(g.flags), + s = (!a || a.serializedTypes || (a.serializedTypes = new OS.Map), null == (s = null == a ? void 0 : a.serializedTypes) ? void 0 : s.get(o)); + if (s) return s.truncating && (g.truncating = !0), g.approximateLength += s.addedLength, + function e(t) { + if (!OS.nodeIsSynthesized(t) && OS.getParseTreeNode(t) === t) return t; + return OS.setTextRange(OS.factory.cloneNode(OS.visitEachChild(t, e, OS.nullTransformationContext, c)), t) + }(s); + if (i) { + if (10 < (r = g.symbolDepth.get(i) || 0)) return O(g); + g.symbolDepth.set(i, r + 1) + } + g.visitedTypes.add(n); + var s = g.approximateLength, + t = t(e), + e = g.approximateLength - s; + return g.reportedDiagnostic || g.encounteredError || (g.truncating && (t.truncating = !0), t.addedLength = e, null != (s = null == a ? void 0 : a.serializedTypes) && s.set(o, t)), g.visitedTypes.delete(n), i && g.symbolDepth.set(i, r), t; + + function c(e, t, r, n, i) { + return e && 0 === e.length ? OS.setTextRange(OS.factory.createNodeArray(void 0, e.hasTrailingComma), e) : OS.visitNodes(e, t, r, n, i) + } + } + + function _(e) { + if (Al(e) || e.containsError) return n = e, OS.Debug.assert(!!(524288 & n.flags)), r = n.declaration.readonlyToken ? OS.factory.createToken(n.declaration.readonlyToken.kind) : void 0, t = n.declaration.questionToken ? OS.factory.createToken(n.declaration.questionToken.kind) : void 0, o = Tl(n) ? (l(n) && 4 & g.flags && (i = Ke(Io(B(262144, "T")), g), i = OS.factory.createTypeReferenceNode(i)), OS.factory.createTypeOperatorNode(141, i || Ne(Cl(n), g))) : Ne(bl(n), g), o = Ie(vl(n), g, o), a = n.declaration.nameType ? Ne(xl(n), g) : void 0, s = Ne(zg(Dl(n), !!(4 & El(n))), g), r = OS.factory.createMappedTypeNode(r, o, a, t, s, void 0), g.approximateLength += 10, o = OS.setEmitFlags(r, 1), l(n) && 4 & g.flags ? (a = be(Ml(K(n.declaration.typeParameter.constraint.type)) || te, n.mapper), OS.factory.createConditionalTypeNode(Ne(Cl(n), g), OS.factory.createInferTypeNode(OS.factory.createTypeParameterDeclaration(void 0, OS.factory.cloneNode(i.typeName), 2 & a.flags ? void 0 : Ne(a, g))), o, OS.factory.createKeywordTypeNode(144))) : o; + var t = Fl(e); + if (!t.properties.length && !t.indexInfos.length) { + if (!t.callSignatures.length && !t.constructSignatures.length) return g.approximateLength += 2, OS.setEmitFlags(OS.factory.createTypeLiteralNode(void 0), 1); + if (1 === t.callSignatures.length && !t.constructSignatures.length) return we(t.callSignatures[0], 181, g); + if (1 === t.constructSignatures.length && !t.callSignatures.length) return we(t.constructSignatures[0], 182, g) + } + var r, n, i, a, o, s = OS.filter(t.constructSignatures, function(e) { + return !!(4 & e.flags) + }); + return OS.some(s) ? (r = OS.map(s, zu), t.callSignatures.length + (t.constructSignatures.length - s.length) + t.indexInfos.length + (2048 & g.flags ? OS.countWhere(t.properties, function(e) { + return !(4194304 & e.flags) + }) : OS.length(t.properties)) && r.push(0 === (n = t).constructSignatures.length ? n : n.objectTypeWithoutAbstractConstructSignatures || (i = OS.filter(n.constructSignatures, function(e) { + return !(4 & e.flags) + }), n.constructSignatures === i ? n : (i = Bo(n.symbol, n.members, n.callSignatures, OS.some(i) ? i : OS.emptyArray, n.indexInfos), (n.objectTypeWithoutAbstractConstructSignatures = i).objectTypeWithoutAbstractConstructSignatures = i))), Ne(ve(r), g)) : (a = g.flags, g.flags |= 4194304, o = function(e) { + if (I(g)) return [OS.factory.createPropertySignature(void 0, "...", void 0, void 0)]; + for (var t = [], r = 0, n = e.callSignatures; r < n.length; r++) { + var i = n[r]; + t.push(we(i, 176, g)) + } + for (var a = 0, o = e.constructSignatures; a < o.length; a++) 4 & (i = o[a]).flags || t.push(we(i, 177, g)); + for (var s = 0, c = e.indexInfos; s < c.length; s++) { + var l = c[s]; + t.push(Pe(l, g, 1024 & e.objectFlags ? O(g) : void 0)) + } + var u = e.properties; + if (!u) return t; + for (var _ = 0, d = 0, p = u; d < p.length; d++) { + var f = p[d]; + if (_++, 2048 & g.flags) { + if (4194304 & f.flags) continue; + 24 & OS.getDeclarationModifierFlagsFromSymbol(f) && g.tracker.reportPrivateInBaseOfClassExpression && g.tracker.reportPrivateInBaseOfClassExpression(OS.unescapeLeadingUnderscores(f.escapedName)) + } + if (I(g) && _ + 2 < u.length - 1) { + t.push(OS.factory.createPropertySignature(void 0, "... ".concat(u.length - _, " more ..."), void 0, void 0)), Ae(u[u.length - 1], g, t); + break + } + Ae(f, g, t) + } + return t.length ? t : void 0 + }(t), g.flags = a, e = OS.factory.createTypeLiteralNode(o), g.approximateLength += 2, OS.setEmitFlags(e, 1024 & g.flags ? 0 : 1), e) + } + + function d(r) { + var e = ye(r); + if (r.target === ht || r.target === vt) return 2 & g.flags ? (l = Ne(e[0], g), OS.factory.createTypeReferenceNode(r.target === ht ? "Array" : "ReadonlyArray", [l])) : (l = Ne(e[0], g), l = OS.factory.createArrayTypeNode(l), r.target === ht ? l : OS.factory.createTypeOperatorNode(146, l)); + if (!(8 & r.target.objectFlags)) { + if (2048 & g.flags && r.symbol.valueDeclaration && OS.isClassLike(r.symbol.valueDeclaration) && !Vo(r.symbol, g.enclosingDeclaration)) return m(r); + var t = r.target.outerTypeParameters, + n = 0, + i = void 0; + if (t) + for (var a = t.length; n < a;) { + for (var o, s = n, c = Yu(t[n]); ++n < a && Yu(t[n]) === c;); + OS.rangeEquals(t, e, s, n) || (s = Fe(e.slice(s, n), g), o = g.flags, g.flags |= 16, s = Ue(c, g, 788968, s), g.flags = o, i = i ? y(i, s) : s) + } + var l = void 0, + u = (0 < e.length && (_ = (r.target.typeParameters || OS.emptyArray).length, l = Fe(e.slice(n, _), g)), g.flags), + _ = (g.flags |= 16, Ue(r.symbol, g, 788968, l)); + return g.flags = u, i ? y(i, _) : _ + } + if (0 < (e = OS.sameMap(e, function(e, t) { + return zg(e, !!(2 & r.target.elementFlags[t])) + })).length) { + var d = i_(r), + p = Fe(e.slice(0, d), g); + if (p) { + if (r.target.labeledElementDeclarations) + for (var n = 0; n < p.length; n++) { + var u = r.target.elementFlags[n]; + p[n] = OS.factory.createNamedTupleMember(12 & u ? OS.factory.createToken(25) : void 0, OS.factory.createIdentifier(OS.unescapeLeadingUnderscores(f1(r.target.labeledElementDeclarations[n]))), 2 & u ? OS.factory.createToken(57) : void 0, 4 & u ? OS.factory.createArrayTypeNode(p[n]) : p[n]) + } else + for (n = 0; n < Math.min(d, p.length); n++) { + u = r.target.elementFlags[n]; + p[n] = 12 & u ? OS.factory.createRestTypeNode(4 & u ? OS.factory.createArrayTypeNode(p[n]) : p[n]) : 2 & u ? OS.factory.createOptionalTypeNode(p[n]) : p[n] + } + var f = OS.setEmitFlags(OS.factory.createTupleTypeNode(p), 1); + return r.target.readonly ? OS.factory.createTypeOperatorNode(146, f) : f + } + } + if (g.encounteredError || 524288 & g.flags) return f = OS.setEmitFlags(OS.factory.createTupleTypeNode([]), 1), r.target.readonly ? OS.factory.createTypeOperatorNode(146, f) : f; + g.encounteredError = !0 + } + + function y(e, t) { + if (OS.isImportTypeNode(e)) { + var r = e.typeArguments; + o = (o = e.qualifier) && (OS.isIdentifier(o) ? OS.factory.updateIdentifier(o, r) : OS.factory.updateQualifiedName(o, o.left, OS.factory.updateIdentifier(o.right, r))), r = t.typeArguments; + for (var n = 0, i = p(t); n < i.length; n++) var a = i[n], + o = o ? OS.factory.createQualifiedName(o, a) : a; + return OS.factory.updateImportTypeNode(e, e.argument, e.assertions, o, r, e.isTypeOf) + } + var r = e.typeArguments, + s = e.typeName; + s = OS.isIdentifier(s) ? OS.factory.updateIdentifier(s, r) : OS.factory.updateQualifiedName(s, s.left, OS.factory.updateIdentifier(s.right, r)), r = t.typeArguments; + for (var c = 0, l = p(t); c < l.length; c++) a = l[c], s = OS.factory.createQualifiedName(s, a); + return OS.factory.updateTypeReferenceNode(e, s, r) + } + + function p(e) { + for (var t = e.typeName, r = []; !OS.isIdentifier(t);) r.unshift(t.right), t = t.left; + return r.unshift(t), r + } + }(e, t); + return t.flags = r, e + } + + function O(e) { + return e.approximateLength += 3, 1 & e.flags ? OS.factory.createKeywordTypeNode(131) : OS.factory.createTypeReferenceNode(OS.factory.createIdentifier("..."), void 0) + } + + function M(e, t) { + return 8192 & OS.getCheckFlags(e) && (OS.contains(t.reverseMappedStack, e) || null != (e = t.reverseMappedStack) && e[0] && !(16 & OS.getObjectFlags(OS.last(t.reverseMappedStack).propertyType))) + } + + function Ae(r, e, t) { + var n = !!(8192 & OS.getCheckFlags(r)), + i = M(r, e) ? ee : oc(r), + a = e.enclosingDeclaration, + o = (e.enclosingDeclaration = void 0, e.tracker.trackSymbol && Kc(r.escapedName) && (r.declarations ? Vc(d = OS.first(r.declarations)) && (OS.isBinaryExpression(d) ? (_ = OS.getNameOfDeclaration(d)) && OS.isElementAccessExpression(_) && OS.isPropertyAccessEntityNameExpression(_.argumentExpression) && Le(_.argumentExpression, a, e) : Le(d.name.expression, a, e)) : null != (_ = e.tracker) && _.reportNonSerializableProperty && e.tracker.reportNonSerializableProperty(le(r))), e.enclosingDeclaration = r.valueDeclaration || (null == (d = r.declarations) ? void 0 : d[0]) || a, Ge(r, e)), + s = (e.enclosingDeclaration = a, e.approximateLength += OS.symbolName(r).length + 1, 16777216 & r.flags ? OS.factory.createToken(57) : void 0); + if (8208 & r.flags && !Pl(i).length && !K1(r)) + for (var c = 0, l = ge(Sy(i, function(e) { + return !(32768 & e.flags) + }), 0); c < l.length; c++) { + var u = we(l[c], 170, e, { + name: o, + questionToken: s + }); + t.push(p(u)) + } else { + var _ = void 0, + d = (M(r, e) ? _ = O(e) : (n && (e.reverseMappedStack || (e.reverseMappedStack = []), e.reverseMappedStack.push(r)), _ = i ? Ye(e, i, r, a) : OS.factory.createKeywordTypeNode(131), n && e.reverseMappedStack.pop()), K1(r) ? [OS.factory.createToken(146)] : void 0), + i = (d && (e.approximateLength += 9), OS.factory.createPropertySignature(d, o, s, _)); + t.push(p(i)) + } + + function p(e) { + var t; + return OS.some(r.declarations, function(e) { + return 350 === e.kind + }) ? (t = null == (t = r.declarations) ? void 0 : t.find(function(e) { + return 350 === e.kind + }), (t = OS.getTextOfJSDocComment(t.comment)) && OS.setSyntheticLeadingComments(e, [{ + kind: 3, + text: "*\n * " + t.replace(/\n/g, "\n * ") + "\n ", + pos: -1, + end: -1, + hasTrailingNewLine: !0 + }])) : r.valueDeclaration && OS.setCommentRange(e, r.valueDeclaration), e + } + } + + function Fe(e, a, t) { + if (OS.some(e)) { + if (I(a)) { + if (!t) return [OS.factory.createTypeReferenceNode("...", void 0)]; + if (2 < e.length) return [Ne(e[0], a), OS.factory.createTypeReferenceNode("... ".concat(e.length - 2, " more ..."), void 0), Ne(e[e.length - 1], a)] + } + for (var r = !(64 & a.flags) ? OS.createUnderscoreEscapedMultiMap() : void 0, o = [], n = 0, i = 0, s = e; i < s.length; i++) { + var c = s[i]; + if (n++, I(a) && n + 2 < e.length - 1) { + o.push(OS.factory.createTypeReferenceNode("... ".concat(e.length - n, " more ..."), void 0)); + var l = Ne(e[e.length - 1], a); + l && o.push(l); + break + } + a.approximateLength += 2; + l = Ne(c, a); + l && (o.push(l), r) && OS.isIdentifierTypeReference(l) && r.add(l.typeName.escapedText, [c, o.length - 1]) + } + return r && (t = a.flags, a.flags |= 64, r.forEach(function(e) { + if (!OS.arrayIsHomogeneous(e, function(e, t) { + var e = e[0], + t = t[0]; + return (e = e) === (t = t) || !!e.symbol && e.symbol === t.symbol || !!e.aliasSymbol && e.aliasSymbol === t.aliasSymbol + })) + for (var t = 0, r = e; t < r.length; t++) { + var n = r[t], + i = n[0], + n = n[1]; + o[n] = Ne(i, a) + } + }), a.flags = t), o + } + } + + function Pe(e, t, r) { + var n = OS.getNameFromIndexInfo(e) || "x", + i = Ne(e.keyType, t), + i = OS.factory.createParameterDeclaration(void 0, void 0, n, void 0, i, void 0); + return r = r || Ne(e.type || ee, t), e.type || 2097152 & t.flags || (t.encounteredError = !0), t.approximateLength += n.length + 4, OS.factory.createIndexSignature(e.isReadonly ? [OS.factory.createToken(146)] : void 0, [i], r) + } + + function we(t, r, n, i) { + var e, a, o, s = 256 & n.flags, + c = (s && (n.flags &= -257), n.approximateLength += 3, 32 & n.flags && t.target && t.mapper && t.target.typeParameters ? a = t.target.typeParameters.map(function(e) { + return Ne(be(e, t.mapper), n) + }) : e = t.typeParameters && t.typeParameters.map(function(e) { + return Oe(e, n) + }), nl(t, !0)[0]), + l = (OS.some(c, function(e) { + return e !== c[c.length - 1] && !!(32768 & OS.getCheckFlags(e)) + }) ? t.parameters : c).map(function(e) { + return Me(e, n, 173 === r, null == i ? void 0 : i.privateSymbolVisitor, null == i ? void 0 : i.bundledImports) + }), + u = 33554432 & n.flags ? void 0 : function(e, t) { + if (e.thisParameter) return Me(e.thisParameter, t); + if (e.declaration) { + e = OS.getJSDocThisTag(e.declaration); + if (e && e.typeExpression) return OS.factory.createParameterDeclaration(void 0, void 0, "this", void 0, Ne(K(e.typeExpression), t)) + } + }(t, n), + u = (u && l.unshift(u), Pu(t)), + u = (u ? (o = 2 === u.kind || 3 === u.kind ? OS.factory.createToken(129) : void 0, _ = 1 === u.kind || 3 === u.kind ? OS.setEmitFlags(OS.factory.createIdentifier(u.parameterName), 16777216) : OS.factory.createThisTypeNode(), u = u.type && Ne(u.type, n), o = OS.factory.createTypePredicateNode(o, _, u)) : !(_ = me(t)) || s && j(_) ? s || (o = OS.factory.createKeywordTypeNode(131)) : o = function(t, e, r, n, i) { + if (!_e(e) && t.enclosingDeclaration) { + var a = r.declaration && OS.getEffectiveReturnTypeNode(r.declaration); + if (OS.findAncestor(a, function(e) { + return e === t.enclosingDeclaration + }) && a) { + var o = K(a); + if ((262144 & o.flags && o.isThisType ? be(o, r.mapper) : o) === e && Xe(a, e)) { + r = $e(t, a, n, i); + if (r) return r + } + } + } + return Ne(e, t) + }(n, _, t, null == i ? void 0 : i.privateSymbolVisitor, null == i ? void 0 : i.bundledImports), null == i ? void 0 : i.modifiers), + _ = (182 === r && 4 & t.flags && (s = OS.modifiersToFlags(u), u = OS.factory.createModifiersFromModifierFlags(256 | s)), 176 === r ? OS.factory.createCallSignature(e, l, o) : 177 === r ? OS.factory.createConstructSignature(e, l, o) : 170 === r ? OS.factory.createMethodSignature(u, null != (_ = null == i ? void 0 : i.name) ? _ : OS.factory.createIdentifier(""), null == i ? void 0 : i.questionToken, e, l, o) : 171 === r ? OS.factory.createMethodDeclaration(u, void 0, null != (s = null == i ? void 0 : i.name) ? s : OS.factory.createIdentifier(""), void 0, e, l, o, void 0) : 173 === r ? OS.factory.createConstructorDeclaration(u, l, void 0) : 174 === r ? OS.factory.createGetAccessorDeclaration(u, null != (_ = null == i ? void 0 : i.name) ? _ : OS.factory.createIdentifier(""), l, o, void 0) : 175 === r ? OS.factory.createSetAccessorDeclaration(u, null != (s = null == i ? void 0 : i.name) ? s : OS.factory.createIdentifier(""), l, void 0) : 178 === r ? OS.factory.createIndexSignature(u, l, o) : 320 === r ? OS.factory.createJSDocFunctionType(l, o) : 181 === r ? OS.factory.createFunctionTypeNode(e, l, null != o ? o : OS.factory.createTypeReferenceNode(OS.factory.createIdentifier(""))) : 182 === r ? OS.factory.createConstructorTypeNode(u, e, l, null != o ? o : OS.factory.createTypeReferenceNode(OS.factory.createIdentifier(""))) : 259 === r ? OS.factory.createFunctionDeclaration(u, void 0, null != i && i.name ? OS.cast(i.name, OS.isIdentifier) : OS.factory.createIdentifier(""), e, l, o, void 0) : 215 === r ? OS.factory.createFunctionExpression(u, void 0, null != i && i.name ? OS.cast(i.name, OS.isIdentifier) : OS.factory.createIdentifier(""), e, l, o, OS.factory.createBlock([])) : 216 === r ? OS.factory.createArrowFunction(u, e, l, o, void 0, OS.factory.createBlock([])) : OS.Debug.assertNever(r)); + return a && (_.typeArguments = OS.factory.createNodeArray(a)), _ + } + + function Ie(e, t, r) { + var n = t.flags, + i = (t.flags &= -513, OS.factory.createModifiersFromModifierFlags(Gf(e))), + a = Ke(e, t), + e = ql(e), + e = e && Ne(e, t); + return t.flags = n, OS.factory.createTypeParameterDeclaration(i, a, r, e) + } + + function Oe(e, t, r) { + return Ie(e, t, (r = void 0 === r ? Ml(e) : r) && Ne(r, t)) + } + + function Me(e, r, t, n, i) { + var a = OS.getDeclarationOfKind(e, 166), + o = (a || OS.isTransientSymbol(e) || (a = OS.getDeclarationOfKind(e, 343)), de(e)), + o = (a && RD(a) && (o = Mg(o)), Ye(r, o, e, r.enclosingDeclaration, n, i)), + n = !(8192 & r.flags) && t && a && OS.canHaveModifiers(a) ? OS.map(OS.getModifiers(a), OS.factory.cloneNode) : void 0, + i = a && OS.isRestParameter(a) || 32768 & OS.getCheckFlags(e) ? OS.factory.createToken(25) : void 0, + t = a && a.name ? 79 === a.name.kind ? OS.setEmitFlags(OS.factory.cloneNode(a.name), 16777216) : 163 === a.name.kind ? OS.setEmitFlags(OS.factory.cloneNode(a.name.right), 16777216) : function e(t) { + r.tracker.trackSymbol && OS.isComputedPropertyName(t) && Uc(t) && Le(t.expression, r.enclosingDeclaration, r); + t = OS.visitEachChild(t, e, OS.nullTransformationContext, void 0, e); + OS.isBindingElement(t) && (t = OS.factory.updateBindingElement(t, t.dotDotDotToken, t.propertyName, t.name, void 0)); + OS.nodeIsSynthesized(t) || (t = OS.factory.cloneNode(t)); + return OS.setEmitFlags(t, 16777217) + }(a.name) : OS.symbolName(e), + a = a && bu(a) || 16384 & OS.getCheckFlags(e) ? OS.factory.createToken(57) : void 0, + n = OS.factory.createParameterDeclaration(n, i, t, a, o, void 0); + return r.approximateLength += OS.symbolName(e).length + 3, n + } + + function Le(e, t, r) { + r.tracker.trackSymbol && (e = va(e = OS.getFirstIdentifier(e), e.escapedText, 1160127, void 0, void 0, !0)) && r.tracker.trackSymbol(e, t, 111551) + } + + function Re(e, t, r, n) { + return t.tracker.trackSymbol(e, t.enclosingDeclaration, r), Be(e, t, r, n) + } + + function Be(e, p, t, f) { + var r; + return 262144 & e.flags || !(p.enclosingDeclaration || 64 & p.flags) || 134217728 & p.flags ? r = [e] : (r = OS.Debug.checkDefined(function e(t, r, n) { + var i = zo(t, p.enclosingDeclaration, r, !!(128 & p.flags)); + var a; + if (!i || Uo(i[0], p.enclosingDeclaration, 1 === i.length ? r : Jo(r))) { + var o = Do(i ? i[0] : t, p.enclosingDeclaration, r); + if (OS.length(o)) { + a = o.map(function(e) { + return OS.some(e.declarations, Xo) ? ze(e, p) : void 0 + }); + for (var s = o.map(function(e, t) { + return t + }), s = (s.sort(d), s.map(function(e) { + return o[e] + })), c = 0, l = s; c < l.length; c++) { + var u = l[c], + _ = e(u, Jo(r), !1); + if (_) { + if (u.exports && u.exports.get("export=") && Co(u.exports.get("export="), t)) { + i = _; + break + } + i = _.concat(i || [To(u, t) || t]); + break + } + } + } + } + if (i) return i; + if ((n || !(6144 & t.flags)) && (n || f || !OS.forEach(t.declarations, Xo))) return [t]; + + function d(e, t) { + var r, e = a[e], + t = a[t]; + return e && t ? (r = OS.pathIsRelative(t), OS.pathIsRelative(e) === r ? OS.moduleSpecifiers.countPathComponents(e) - OS.moduleSpecifiers.countPathComponents(t) : r ? -1 : 1) : 0 + } + }(e, t, !0)), OS.Debug.assert(r && 0 < r.length)), r + } + + function je(e, t) { + var r; + return r = 524384 & Fx(e).flags ? OS.factory.createNodeArray(OS.map(pc(e), function(e) { + return Oe(e, t) + })) : r + } + + function Je(e, t, r) { + OS.Debug.assert(e && 0 <= t && t < e.length); + var n, i, a, o = e[t], + s = WS(o); + if (null == (n = r.typeParameterSymbolList) || !n.has(s)) return (r.typeParameterSymbolList || (r.typeParameterSymbolList = new OS.Set)).add(s), 512 & r.flags && t < e.length - 1 && (n = o, i = e[t + 1], a = 1 & OS.getCheckFlags(i) ? (s = 2097152 & n.flags ? Ha(n) : n, e = OS.concatenate(dc(s), pc(s)), Fe(OS.map(e, function(e) { + return Ip(e, i.mapper) + }), r)) : je(o, r)), a + } + + function ze(t, e, r) { + var n, i, a, o, s, c, l = OS.getDeclarationOfKind(t, 308); + if (l || (u = OS.firstDefined(t.declarations, function(e) { + return So(e, t) + })) && (l = OS.getDeclarationOfKind(u, 308)), l && void 0 !== l.moduleName) return l.moduleName; + if (!l) { + if (e.tracker.trackReferencedAmbientModule) { + var u = OS.filter(t.declarations, OS.isAmbientModule); + if (OS.length(u)) + for (var _ = 0, d = u; _ < d.length; _++) { + var p = d[_]; + e.tracker.trackReferencedAmbientModule(p, t) + } + } + if (LS.test(t.escapedName)) return t.escapedName.substring(1, t.escapedName.length - 1) + } + return e.enclosingDeclaration && e.tracker.moduleResolverHost ? (l = OS.getSourceFileOfNode(OS.getOriginalNode(e.enclosingDeclaration)), u = r || (null == l ? void 0 : l.impliedNodeFormat), i = l.path, n = void 0 === (n = u) ? i : "".concat(n, "|").concat(i), (c = (i = ce(t)).specifierCache && i.specifierCache.get(n)) || (a = !!OS.outFile(Z), o = e.tracker.moduleResolverHost, s = a ? __assign(__assign({}, Z), { + baseUrl: o.getCommonSourceDirectory() + }) : Z, c = OS.first(OS.moduleSpecifiers.getModuleSpecifiers(t, ot, s, l, o, { + importModuleSpecifierPreference: a ? "non-relative" : "project-relative", + importModuleSpecifierEnding: a ? "minimal" : u === OS.ModuleKind.ESNext ? "js" : void 0 + }, { + overrideImportMode: r + })), null == i.specifierCache && (i.specifierCache = new OS.Map), i.specifierCache.set(n, c)), c) : LS.test(t.escapedName) ? t.escapedName.substring(1, t.escapedName.length - 1) : OS.getSourceFileOfNode(OS.getNonAugmentationDeclaration(t)).fileName + } + + function Ue(e, l, t, u) { + var r, n, i, a, o, s, c, _, e = Re(e, l, t, !(16384 & l.flags)), + t = 111551 === t; + return OS.some(e[0].declarations, Xo) ? (_ = 1 < e.length ? d(e, e.length - 1, 1) : void 0, r = u || Je(e, 0, l), a = OS.getSourceFileOfNode(OS.getOriginalNode(l.enclosingDeclaration)), i = OS.getSourceFileOfModule(e[0]), n = s = void 0, OS.getEmitModuleResolutionKind(Z) !== OS.ModuleResolutionKind.Node16 && OS.getEmitModuleResolutionKind(Z) !== OS.ModuleResolutionKind.NodeNext || (null == i ? void 0 : i.impliedNodeFormat) === OS.ModuleKind.ESNext && i.impliedNodeFormat !== (null == a ? void 0 : a.impliedNodeFormat) && (s = ze(e[0], l, OS.ModuleKind.ESNext), n = OS.factory.createImportTypeAssertionContainer(OS.factory.createAssertClause(OS.factory.createNodeArray([OS.factory.createAssertEntry(OS.factory.createStringLiteral("resolution-mode"), OS.factory.createStringLiteral("import"))]))), null != (o = (i = l.tracker).reportImportTypeNodeResolutionModeOverride)) && o.call(i), s = s || ze(e[0], l), !(67108864 & l.flags) && OS.getEmitModuleResolutionKind(Z) !== OS.ModuleResolutionKind.Classic && 0 <= s.indexOf("/node_modules/") && (o = s, OS.getEmitModuleResolutionKind(Z) !== OS.ModuleResolutionKind.Node16 && OS.getEmitModuleResolutionKind(Z) !== OS.ModuleResolutionKind.NodeNext || (i = (null == a ? void 0 : a.impliedNodeFormat) === OS.ModuleKind.ESNext ? OS.ModuleKind.CommonJS : OS.ModuleKind.ESNext, 0 <= (s = ze(e[0], l, i)).indexOf("/node_modules/") ? s = o : (n = OS.factory.createImportTypeAssertionContainer(OS.factory.createAssertClause(OS.factory.createNodeArray([OS.factory.createAssertEntry(OS.factory.createStringLiteral("resolution-mode"), OS.factory.createStringLiteral(i === OS.ModuleKind.ESNext ? "import" : "require"))]))), null != (i = (a = l.tracker).reportImportTypeNodeResolutionModeOverride) && i.call(a))), n || (l.encounteredError = !0, l.tracker.reportLikelyUnsafeImportRequiredError && l.tracker.reportLikelyUnsafeImportRequiredError(o))), i = OS.factory.createLiteralTypeNode(OS.factory.createStringLiteral(s)), l.tracker.trackExternalModuleSymbolOfImportTypeNode && l.tracker.trackExternalModuleSymbolOfImportTypeNode(e[0]), l.approximateLength += s.length + 10, !_ || OS.isEntityName(_) ? (_ && ((c = OS.isIdentifier(_) ? _ : _.right).typeArguments = void 0), OS.factory.createImportTypeNode(i, n, _, r, t)) : (o = (a = function e(t) { + return OS.isIndexedAccessTypeNode(t.objectType) ? e(t.objectType) : t + }(_)).objectType.typeName, OS.factory.createIndexedAccessTypeNode(OS.factory.createImportTypeNode(i, n, o, r, t), a.indexType))) : (s = d(e, e.length - 1, 0), OS.isIndexedAccessTypeNode(s) ? s : t ? OS.factory.createTypeQueryNode(s) : (_ = (c = OS.isIdentifier(s) ? s : s.right).typeArguments, c.typeArguments = void 0, OS.factory.createTypeReferenceNode(s, _))); + + function d(e, t, r) { + var n, i = t === e.length - 1 ? u : Je(e, t, l), + a = e[t], + o = e[t - 1]; + if (0 === t ? (l.flags |= 16777216, n = us(a, l), l.approximateLength += (n ? n.length : 0) + 1, l.flags ^= 16777216) : o && mo(o) && (c = mo(o), OS.forEachEntry(c, function(e, t) { + if (Co(e, a) && !Kc(t) && "export=" !== t) return n = OS.unescapeLeadingUnderscores(t), !0 + })), void 0 === n) { + var s, c = OS.firstDefined(a.declarations, OS.getNameOfDeclaration); + if (c && OS.isComputedPropertyName(c) && OS.isEntityName(c.expression)) return s = d(e, t - 1, r), OS.isEntityName(s) ? OS.factory.createIndexedAccessTypeNode(OS.factory.createParenthesizedType(OS.factory.createTypeQueryNode(s)), OS.factory.createTypeQueryNode(c.expression)) : s; + n = us(a, l) + } + return l.approximateLength += n.length + 1, !(16 & l.flags) && o && Qc(o) && Qc(o).get(a.escapedName) && Co(Qc(o).get(a.escapedName), a) ? (s = d(e, t - 1, r), OS.isIndexedAccessTypeNode(s) ? OS.factory.createIndexedAccessTypeNode(s, OS.factory.createLiteralTypeNode(OS.factory.createStringLiteral(n))) : OS.factory.createIndexedAccessTypeNode(OS.factory.createTypeReferenceNode(s, i), OS.factory.createLiteralTypeNode(OS.factory.createStringLiteral(n)))) : ((c = OS.setEmitFlags(OS.factory.createIdentifier(n, i), 16777216)).symbol = a, r < t ? (s = d(e, t - 1, r), OS.isEntityName(s) ? OS.factory.createQualifiedName(s, c) : OS.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")) : c) + } + } + + function Ke(e, t) { + var r; + if (4 & t.flags && t.typeParameterNames) { + var n = t.typeParameterNames.get(e.id); + if (n) return n + } + var i, a, o, n = Ve(e.symbol, t, 788968, !0); + if (!(79 & n.kind)) return OS.factory.createIdentifier("(Missing type parameter)"); + if (4 & t.flags) { + for (var s = n.escapedText, c = (null == (r = t.typeParameterNamesByTextNextNameCount) ? void 0 : r.get(s)) || 0, l = s; null != (i = t.typeParameterNamesByText) && i.has(l) || (i = l, o = e, !(!(a = va((a = t).enclosingDeclaration, i, 788968, void 0, i, !1)) || 262144 & a.flags && a === o.symbol));) c++, l = "".concat(s, "_").concat(c); + l !== s && (n = OS.factory.createIdentifier(l, n.typeArguments)), (t.typeParameterNamesByTextNextNameCount || (t.typeParameterNamesByTextNextNameCount = new OS.Map)).set(s, c), (t.typeParameterNames || (t.typeParameterNames = new OS.Map)).set(e.id, n), (t.typeParameterNamesByText || (t.typeParameterNamesByText = new OS.Set)).add(s) + } + return n + } + + function Ve(e, o, t, r) { + e = Re(e, o, t); + return !r || 1 === e.length || o.encounteredError || 65536 & o.flags || (o.encounteredError = !0), + function e(t, r) { + var n = Je(t, r, o); + var i = t[r]; + 0 === r && (o.flags |= 16777216); + var a = us(i, o); + 0 === r && (o.flags ^= 16777216); + a = OS.setEmitFlags(OS.factory.createIdentifier(a, n), 16777216); + a.symbol = i; + return 0 < r ? OS.factory.createQualifiedName(e(t, r - 1), a) : a + }(e, e.length - 1) + } + + function qe(e, c, t) { + e = Re(e, c, t); + return function e(t, r) { + var n = Je(t, r, c); + var i = t[r]; + 0 === r && (c.flags |= 16777216); + var a = us(i, c); + 0 === r && (c.flags ^= 16777216); + var o = a.charCodeAt(0); + if (OS.isSingleOrDoubleQuote(o) && OS.some(i.declarations, Xo)) return OS.factory.createStringLiteral(ze(i, c)); + var s = 35 === o ? 1 < a.length && OS.isIdentifierStart(a.charCodeAt(1), U) : OS.isIdentifierStart(o, U); + return 0 === r || s ? ((s = OS.setEmitFlags(OS.factory.createIdentifier(a, n), 16777216)).symbol = i, 0 < r ? OS.factory.createPropertyAccessExpression(e(t, r - 1), s) : s) : (91 === o && (a = a.substring(1, a.length - 1), o = a.charCodeAt(0)), s = void 0, !OS.isSingleOrDoubleQuote(o) || 8 & i.flags ? "" + +a === a && (s = OS.factory.createNumericLiteral(+a)) : s = OS.factory.createStringLiteral(OS.stripQuotes(a).replace(/\\./g, function(e) { + return e.substring(1) + }), 39 === o), s || ((s = OS.setEmitFlags(OS.factory.createIdentifier(a, n), 16777216)).symbol = i), OS.factory.createElementAccessExpression(e(t, r - 1), s)) + }(e, e.length - 1) + } + + function We(e) { + e = OS.getNameOfDeclaration(e); + return !!e && OS.isStringLiteral(e) + } + + function He(e) { + e = OS.getNameOfDeclaration(e); + return !!(e && OS.isStringLiteral(e) && (e.singleQuote || !OS.nodeIsSynthesized(e) && OS.startsWith(OS.getTextOfNode(e, !1), "'"))) + } + + function Ge(e, t) { + var r = !!OS.length(e.declarations) && OS.every(e.declarations, He), + t = function(e, t, r) { + e = ce(e).nameType; { + var n; + if (e) return 384 & e.flags ? (n = "" + e.value, OS.isIdentifierText(n, OS.getEmitScriptTarget(Z)) || OS.isNumericLiteralName(n) ? OS.isNumericLiteralName(n) && OS.startsWith(n, "-") ? OS.factory.createComputedPropertyName(OS.factory.createNumericLiteral(+n)) : OS.createPropertyNameNodeForIdentifierOrLiteral(n, OS.getEmitScriptTarget(Z)) : OS.factory.createStringLiteral(n, !!r)) : 8192 & e.flags ? OS.factory.createComputedPropertyName(qe(e.symbol, t, 111551)) : void 0 + } + }(e, t, r); + return t || (t = OS.unescapeLeadingUnderscores(e.escapedName), e = !!OS.length(e.declarations) && OS.every(e.declarations, We), OS.createPropertyNameNodeForIdentifierOrLiteral(t, OS.getEmitScriptTarget(Z), r, e)) + } + + function Qe(e, t) { + return e.declarations && OS.find(e.declarations, function(e) { + return !(!OS.getEffectiveTypeAnnotationNode(e) || t && !OS.findAncestor(e, function(e) { + return e === t + })) + }) + } + + function Xe(e, t) { + return !(4 & OS.getObjectFlags(t)) || !OS.isTypeReferenceNode(e) || OS.length(e.typeArguments) >= Su(t.target.typeParameters) + } + + function Ye(t, e, r, n, i, a) { + if (!_e(e) && n) { + n = Qe(r, n); + if (n && !OS.isFunctionLikeDeclaration(n) && !OS.isGetAccessorDeclaration(n)) { + var o = OS.getEffectiveTypeAnnotationNode(n); + if (function(e, t, r) { + e = K(e); + if (e === r) return 1; + if (OS.isParameter(t) && t.questionToken) return ny(r, 524288) === e; + return + }(o, n, e) && Xe(o, e)) { + n = $e(t, o, i, a); + if (n) return n + } + } + } + o = t.flags, 8192 & e.flags && e.symbol === r && (!t.enclosingDeclaration || OS.some(r.declarations, function(e) { + return OS.getSourceFileOfNode(e) === OS.getSourceFileOfNode(t.enclosingDeclaration) + })) && (t.flags |= 1048576), i = Ne(e, t); + return t.flags = o, i + } + + function Ze(e, t, r) { + var n = !1, + i = OS.getFirstIdentifier(e); + if (OS.isInJSFile(e) && (OS.isExportsIdentifier(i) || OS.isModuleExportsAccessExpression(i.parent) || OS.isQualifiedName(i.parent) && OS.isModuleIdentifier(i.parent.left) && OS.isExportsIdentifier(i.parent.right))) return { + introducesError: n = !0, + node: e + }; + var a, o, i = ro(i, 67108863, !0, !0); + if (i && (0 !== Wo(i, t.enclosingDeclaration, 67108863, !1).accessibility ? n = !0 : (null != (a = null == (o = t.tracker) ? void 0 : o.trackSymbol) && a.call(o, i, t.enclosingDeclaration, 67108863), null != r && r(i)), OS.isIdentifier(e))) return a = Pc(i), (o = 262144 & i.flags && !Ko(a.symbol, t.enclosingDeclaration) ? Ke(a, t) : OS.factory.cloneNode(e)).symbol = i, { + introducesError: n, + node: OS.setEmitFlags(OS.setOriginalNode(o, e), 16777216) + }; + return { + introducesError: n, + node: e + } + } + + function $e(c, e, l, u) { + f && f.throwIfCancellationRequested && f.throwIfCancellationRequested(); + var _ = !1, + d = OS.getSourceFileOfNode(e), + t = OS.visitNode(e, function n(i) { + if (OS.isJSDocAllType(i) || 322 === i.kind) return OS.factory.createKeywordTypeNode(131); + if (OS.isJSDocUnknownType(i)) return OS.factory.createKeywordTypeNode(157); + if (OS.isJSDocNullableType(i)) return OS.factory.createUnionTypeNode([OS.visitNode(i.type, n), OS.factory.createLiteralTypeNode(OS.factory.createNull())]); + if (OS.isJSDocOptionalType(i)) return OS.factory.createUnionTypeNode([OS.visitNode(i.type, n), OS.factory.createKeywordTypeNode(155)]); + if (OS.isJSDocNonNullableType(i)) return OS.visitNode(i.type, n); + if (OS.isJSDocVariadicType(i)) return OS.factory.createArrayTypeNode(OS.visitNode(i.type, n)); + if (OS.isJSDocTypeLiteral(i)) return OS.factory.createTypeLiteralNode(OS.map(i.jsDocPropertyTags, function(e) { + var t = OS.isIdentifier(e.name) ? e.name : e.name.right, + r = ys(K(i), t.escapedText), + r = r && e.typeExpression && K(e.typeExpression.type) !== r ? Ne(r, c) : void 0; + return OS.factory.createPropertySignature(void 0, t, e.isBracketed || e.typeExpression && OS.isJSDocOptionalType(e.typeExpression.type) ? OS.factory.createToken(57) : void 0, r || e.typeExpression && OS.visitNode(e.typeExpression.type, n) || OS.factory.createKeywordTypeNode(131)) + })); + if (OS.isTypeReferenceNode(i) && OS.isIdentifier(i.typeName) && "" === i.typeName.escapedText) return OS.setOriginalNode(OS.factory.createKeywordTypeNode(131), i); + if ((OS.isExpressionWithTypeArguments(i) || OS.isTypeReferenceNode(i)) && OS.isJSDocIndexSignature(i)) return OS.factory.createTypeLiteralNode([OS.factory.createIndexSignature(void 0, [OS.factory.createParameterDeclaration(void 0, void 0, "x", void 0, OS.visitNode(i.typeArguments[0], n))], OS.visitNode(i.typeArguments[1], n))]); { + var r; + if (OS.isJSDocFunctionType(i)) return OS.isJSDocConstructSignature(i) ? OS.factory.createConstructorTypeNode(void 0, OS.visitNodes(i.typeParameters, n), OS.mapDefined(i.parameters, function(e, t) { + return e.name && OS.isIdentifier(e.name) && "new" === e.name.escapedText ? void(r = e.type) : OS.factory.createParameterDeclaration(void 0, a(e), o(e, t), e.questionToken, OS.visitNode(e.type, n), void 0) + }), OS.visitNode(r || i.type, n) || OS.factory.createKeywordTypeNode(131)) : OS.factory.createFunctionTypeNode(OS.visitNodes(i.typeParameters, n), OS.map(i.parameters, function(e, t) { + return OS.factory.createParameterDeclaration(void 0, a(e), o(e, t), e.questionToken, OS.visitNode(e.type, n), void 0) + }), OS.visitNode(i.type, n) || OS.factory.createKeywordTypeNode(131)) + } + if (OS.isTypeReferenceNode(i) && OS.isInJSDoc(i) && (!Xe(i, K(i)) || y_(i) || L === l_(i, 788968, !0))) return OS.setOriginalNode(Ne(K(i), c), i); + if (OS.isLiteralImportTypeNode(i)) return e = H(i).resolvedSymbol, !OS.isInJSDoc(i) || !e || (i.isTypeOf || 788968 & e.flags) && OS.length(i.typeArguments) >= Su(pc(e)) ? OS.factory.updateImportTypeNode(i, OS.factory.updateLiteralTypeNode(i.argument, s(i, i.argument.literal)), i.assertions, i.qualifier, OS.visitNodes(i.typeArguments, n, OS.isTypeNode), i.isTypeOf) : OS.setOriginalNode(Ne(K(i), c), i); + if (OS.isEntityName(i) || OS.isEntityNameExpression(i)) { + var e = Ze(i, c, l), + t = e.introducesError, + e = e.node; + if (_ = _ || t, e !== i) return e + } + d && OS.isTupleTypeNode(i) && OS.getLineAndCharacterOfPosition(d, i.pos).line === OS.getLineAndCharacterOfPosition(d, i.end).line && OS.setEmitFlags(i, 1); + return OS.visitEachChild(i, n, OS.nullTransformationContext); + + function a(e) { + return e.dotDotDotToken || (e.type && OS.isJSDocVariadicType(e.type) ? OS.factory.createToken(25) : void 0) + } + + function o(e, t) { + return e.name && OS.isIdentifier(e.name) && "this" === e.name.escapedText ? "this" : a(e) ? "args" : "arg".concat(t) + } + + function s(e, t) { + if (u) { + if (c.tracker && c.tracker.moduleResolverHost) { + var r, e = nS(e); + if (e) return r = OS.createGetCanonicalFileName(!!g.useCaseSensitiveFileNames), r = { + getCanonicalFileName: r, + getCurrentDirectory: function() { + return c.tracker.moduleResolverHost.getCurrentDirectory() + }, + getCommonSourceDirectory: function() { + return c.tracker.moduleResolverHost.getCommonSourceDirectory() + } + }, r = OS.getResolvedExternalModuleName(r, e), OS.factory.createStringLiteral(r) + } + } else c.tracker && c.tracker.trackExternalModuleSymbolOfImportTypeNode && (e = ao(t, t, void 0)) && c.tracker.trackExternalModuleSymbolOfImportTypeNode(e); + return t + } + }); + if (!_) return t === e ? OS.setTextRange(OS.factory.cloneNode(e), e) : t + } + var et, tt = OS.createSymbolTable(), + rt = B(4, "undefined"), + nt = (rt.declarations = [], B(1536, "globalThis", 8)), + it = (nt.exports = tt, nt.declarations = [], tt.set(nt.escapedName, nt), B(4, "arguments")), + at = B(4, "require"), + ot = { + getNodeCount: function() { + return OS.sum(g.getSourceFiles(), "nodeCount") + }, + getIdentifierCount: function() { + return OS.sum(g.getSourceFiles(), "identifierCount") + }, + getSymbolCount: function() { + return OS.sum(g.getSourceFiles(), "symbolCount") + s + }, + getTypeCount: function() { + return a + }, + getInstantiationCount: function() { + return _ + }, + getRelationCacheSizes: function() { + return { + assignable: Di.size, + identity: Ti.size, + subtype: bi.size, + strictSubtype: xi.size + } + }, + isUndefinedSymbol: function(e) { + return e === rt + }, + isArgumentsSymbol: function(e) { + return e === it + }, + isUnknownSymbol: function(e) { + return e === L + }, + getMergedSymbol: bo, + getDiagnostics: cD, + getGlobalDiagnostics: function() { + return lD(), oe.getGlobalDiagnostics() + }, + getRecursionIdentity: ng, + getUnmatchedProperties: gm, + getTypeOfSymbolAtLocation: function(e, t) { + t = OS.getParseTreeNode(t); + if (t) { + if (e = e.exportSymbol || e, (79 === t.kind || 80 === t.kind) && (OS.isRightSideOfQualifiedNameOrPropertyAccess(t) && (t = t.parent), OS.isExpressionNode(t)) && (!OS.isAssignmentTarget(t) || OS.isWriteAccess(t))) { + var r = C2(t); + if (Eo(H(t).resolvedSymbol) === e) return r + } + return OS.isDeclarationName(t) && OS.isSetAccessor(t.parent) && Qs(t.parent) ? Zs(t.parent.symbol) : oc(e) + } + return R + }, + getTypeOfSymbol: de, + getSymbolsOfParameterPropertyDeclaration: function(e, t) { + var r, e = OS.getParseTreeNode(e, OS.isParameter); + return void 0 === e ? OS.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node.") : (e = e, t = OS.escapeLeadingUnderscores(t), r = e.parent, e = e.parent.parent, r = ma(r.locals, t, 111551), e = ma(Qc(e.symbol), t, 111551), r && e ? [r, e] : OS.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")) + }, + getDeclaredTypeOfSymbol: Pc, + getPropertiesOfType: pe, + getPropertyOfType: function(e, t) { + return fe(e, OS.escapeLeadingUnderscores(t)) + }, + getPrivateIdentifierPropertyOfType: function(e, t, r) { + r = OS.getParseTreeNode(r); + return r && (t = Oh(OS.escapeLeadingUnderscores(t), r)) ? Rh(e, t) : void 0 + }, + getTypeOfPropertyOfType: function(e, t) { + return ys(e, OS.escapeLeadingUnderscores(t)) + }, + getIndexInfoOfType: function(e, t) { + return _u(e, 0 === t ? ne : ie) + }, + getIndexInfosOfType: uu, + getIndexInfosOfIndexSymbol: Wu, + getSignaturesOfType: ge, + getIndexTypeOfType: function(e, t) { + return du(e, 0 === t ? ne : ie) + }, + getIndexType: function(e) { + return Sd(e) + }, + getBaseTypes: xc, + getBaseTypeOfLiteralType: Dg, + getWidenedType: Xg, + getTypeFromTypeNode: function(e) { + e = OS.getParseTreeNode(e, OS.isTypeNode); + return e ? K(e) : R + }, + getParameterType: h1, + getParameterIdentifierNameAtPosition: function(e, t) { + if (320 === (null == (r = e.declaration) ? void 0 : r.kind)) return; + var r = e.parameters.length - (YS(e) ? 1 : 0); + if (t < r) return m1(n = e.parameters[t]) ? [n.escapedName, !1] : void 0; + var n = e.parameters[r] || L; + if (!m1(n)) return; + e = de(n); { + var i; + if (De(e)) return e = e.target.labeledElementDeclarations, i = t - r, e = null == e ? void 0 : e[i], i = !(null == e || !e.dotDotDotToken), e ? [f1(e), i] : void 0 + } + if (t === r) return [n.escapedName, !0] + }, + getPromisedTypeOfPromise: Z2, + getAwaitedType: function(e) { + return ab(e) + }, + getReturnTypeOfSignature: me, + isNullableType: Th, + getNullableType: Og, + getNonNullableType: Lg, + getNonOptionalType: Bg, + getTypeArguments: ye, + typeToTypeNode: P.typeToTypeNode, + indexInfoToIndexSignatureDeclaration: P.indexInfoToIndexSignatureDeclaration, + signatureToSignatureDeclaration: P.signatureToSignatureDeclaration, + symbolToEntityName: P.symbolToEntityName, + symbolToExpression: P.symbolToExpression, + symbolToNode: P.symbolToNode, + symbolToTypeParameterDeclarations: P.symbolToTypeParameterDeclarations, + symbolToParameterDeclaration: P.symbolToParameterDeclaration, + typeParameterToDeclaration: P.typeParameterToDeclaration, + getSymbolsInScope: function(e, t) { + e = OS.getParseTreeNode(e); + if (!e) return []; + var r, n, i = e, + a = t; { + if (33554432 & i.flags) return []; + for (r = OS.createSymbolTable(), n = !1; i;) { + switch (i.locals && !ga(i) && s(i.locals, a), i.kind) { + case 308: + if (!OS.isExternalModule(i)) break; + case 264: + ! function(e, t) { + t && e.forEach(function(e) { + OS.getDeclarationOfKind(e, 278) || OS.getDeclarationOfKind(e, 277) || o(e, t) + }) + }(G(i).exports, 2623475 & a); + break; + case 263: + s(G(i).exports, 8 & a); + break; + case 228: + i.name && o(i.symbol, a); + case 260: + case 261: + n || s(Qc(G(i)), 788968 & a); + break; + case 215: + i.name && o(i.symbol, a) + } + OS.introducesArgumentsExoticObject(i) && o(it, a), n = OS.isStatic(i), i = i.parent + } + return s(tt, a), r.delete("this"), yu(r) + } + + function o(e, t) { + OS.getCombinedLocalAndExportSymbolFlags(e) & t && (t = e.escapedName, r.has(t) || r.set(t, e)) + } + + function s(e, t) { + t && e.forEach(function(e) { + o(e, t) + }) + } + }, + getSymbolAtLocation: function(e) { + e = OS.getParseTreeNode(e); + return e ? yD(e, !0) : void 0 + }, + getIndexInfosAtLocation: function(e) { + var t, e = OS.getParseTreeNode(e); + if (e) + if (OS.isIdentifier(e) && OS.isPropertyAccessExpression(e.parent) && e.parent.name === e) return t = hd(e), e = 1048576 & (e = C2(e.parent.expression)).flags ? e.types : [e], OS.flatMap(e, function(e) { + return OS.filter(uu(e), function(e) { + return cu(t, e.keyType) + }) + }) + }, + getShorthandAssignmentValueSymbol: function(e) { + e = OS.getParseTreeNode(e); + if (e) + if (e && 300 === e.kind) return ro(e.name, 2208703) + }, + getExportSpecifierLocalTargetSymbol: function(e) { + var e = OS.getParseTreeNode(e, OS.isExportSpecifier); + return e ? (e = e, OS.isExportSpecifier(e) ? e.parent.parent.moduleSpecifier ? ja(e.parent.parent, e) : ro(e.propertyName || e.name, 2998271) : ro(e, 2998271)) : void 0 + }, + getExportSymbolOfSymbol: function(e) { + return bo(e.exportSymbol || e) + }, + getTypeAtLocation: function(e) { + e = OS.getParseTreeNode(e); + return e ? hD(e) : R + }, + getTypeOfAssignmentPattern: function(e) { + e = OS.getParseTreeNode(e, OS.isAssignmentPattern); + return e && vD(e) || R + }, + getPropertySymbolOfDestructuringAssignment: function(e) { + var t, e = OS.getParseTreeNode(e, OS.isIdentifier); + return e ? (e = e, (t = vD(OS.cast(e.parent.parent, OS.isAssignmentPattern))) && fe(t, e.escapedText)) : void 0 + }, + signatureToString: function(e, t, r, n) { + return $o(e, OS.getParseTreeNode(t), r, n) + }, + typeToString: function(e, t, r) { + return ue(e, OS.getParseTreeNode(t), r) + }, + symbolToString: function(e, t, r, n) { + return le(e, OS.getParseTreeNode(t), r, n) + }, + typePredicateToString: function(e, t, r) { + return as(e, OS.getParseTreeNode(t), r) + }, + writeSignature: function(e, t, r, n, i) { + return $o(e, OS.getParseTreeNode(t), r, n, i) + }, + writeType: function(e, t, r, n) { + return ue(e, OS.getParseTreeNode(t), r, n) + }, + writeSymbol: function(e, t, r, n, i) { + return le(e, OS.getParseTreeNode(t), r, n, i) + }, + writeTypePredicate: function(e, t, r, n) { + return as(e, OS.getParseTreeNode(t), r, n) + }, + getAugmentedPropertiesOfType: xD, + getRootSymbols: function e(t) { + var r = SD(t); + return r ? OS.flatMap(r, e) : [t] + }, + getSymbolOfExpando: Yv, + getContextualType: function(e, t) { + var r = OS.getParseTreeNode(e, OS.isExpression); + if (r) return 4 & t ? st(r, function() { + return I0(r, t) + }) : I0(r, t) + }, + getContextualTypeForObjectLiteralElement: function(e) { + e = OS.getParseTreeNode(e, OS.isObjectLiteralElementLike); + return e ? T0(e, void 0) : void 0 + }, + getContextualTypeForArgumentAtIndex: function(e, t) { + e = OS.getParseTreeNode(e, OS.isCallLikeExpression); + return e && h0(e, t) + }, + getContextualTypeForJsxAttribute: function(e) { + e = OS.getParseTreeNode(e, OS.isJsxAttributeLike); + return e && k0(e, void 0) + }, + isContextSensitive: rf, + getTypeOfPropertyOfContextualType: D0, + getFullyQualifiedName: to, + getResolvedSignature: function(e, t, r) { + return ct(e, t, r, 0) + }, + getResolvedSignatureForStringLiteralCompletions: function(e, t, r) { + return ct(e, r, void 0, 32, t) + }, + getResolvedSignatureForSignatureHelp: function(e, t, r) { + return ct(e, t, r, 16) + }, + getExpandedParameters: nl, + hasEffectiveRestParameter: S1, + containsArgumentsReference: ku, + getConstantValue: function(e) { + e = OS.getParseTreeNode(e, KD); + return e ? VD(e) : void 0 + }, + isValidPropertyAccess: function(e, t) { + e = OS.getParseTreeNode(e, OS.isPropertyAccessOrQualifiedNameOrImportTypeNode); + return !!e && function(e, t) { + switch (e.kind) { + case 208: + return tv(e, 106 === e.expression.kind, t, Xg(V(e.expression))); + case 163: + return tv(e, !1, t, Xg(V(e.left))); + case 202: + return tv(e, !1, t, K(e)) + } + }(e, OS.escapeLeadingUnderscores(t)) + }, + isValidPropertyAccessForCompletions: function(e, t, r) { + e = OS.getParseTreeNode(e, OS.isPropertyAccessExpression); + return !!e && ev(e, t, r) + }, + getSignatureFromDeclaration: function(e) { + e = OS.getParseTreeNode(e, OS.isFunctionLike); + return e ? Cu(e) : void 0 + }, + isImplementationOfOverload: function(e) { + e = OS.getParseTreeNode(e, OS.isFunctionLike); + return e ? LD(e) : void 0 + }, + getImmediateAliasedSymbol: G0, + getAliasedSymbol: Ha, + getEmitResolver: function(e, t) { + return cD(e, t), F + }, + getExportsOfModule: po, + getExportsAndPropertiesOfModule: function(e) { + var t = po(e), + r = co(e); + r !== e && go(e = de(r)) && OS.addRange(t, pe(e)); + return t + }, + forEachExportAndPropertyOfModule: function(e, r) { + yo(e).forEach(function(e, t) { + Oo(t) || r(e, t) + }); + var t = co(e); + t !== e && go(e = de(t)) && ! function(e, r) { + 3670016 & (e = Xl(e)).flags && Fl(e).members.forEach(function(e, t) { + Lo(e, t) && r(e, t) + }) + }(e, function(e, t) { + r(e, t) + }) + }, + getSymbolWalker: OS.createGetSymbolWalker(function(e) { + return Mu(e) || ee + }, Pu, me, xc, Fl, de, Bm, Ml, OS.getFirstIdentifier, ye), + getAmbientModules: function() { + _t || (_t = [], tt.forEach(function(e, t) { + LS.test(t) && _t.push(e) + })); + return _t + }, + getJsxIntrinsicTagNamesAt: function(e) { + e = nh(MS.IntrinsicElements, e); + return e ? pe(e) : OS.emptyArray + }, + isOptionalParameter: function(e) { + e = OS.getParseTreeNode(e, OS.isParameter); + return !!e && bu(e) + }, + tryGetMemberInModuleExports: function(e, t) { + return fo(OS.escapeLeadingUnderscores(e), t) + }, + tryGetMemberInModuleExportsAndProperties: function(e, t) { + var e = OS.escapeLeadingUnderscores(e), + r = fo(e, t); + return r || ((r = co(t)) !== t && go(t = de(r)) ? fe(t, e) : void 0) + }, + tryFindAmbientModule: function(e) { + return vu(e, !0) + }, + tryFindAmbientModuleWithoutAugmentations: function(e) { + return vu(e, !1) + }, + getApparentType: Ql, + getUnionType: he, + isTypeAssignableTo: xe, + createAnonymousType: Bo, + createSignature: $c, + createSymbol: B, + createIndexInfo: Vu, + getAnyType: function() { + return ee + }, + getStringType: function() { + return ne + }, + getNumberType: function() { + return ie + }, + createPromiseType: A1, + createArrayType: z_, + getElementTypeOfArrayType: _g, + getBooleanType: function() { + return Vr + }, + getFalseType: function(e) { + return e ? Jr : zr + }, + getTrueType: function(e) { + return e ? Ur : Kr + }, + getVoidType: function() { + return Wr + }, + getUndefinedType: function() { + return re + }, + getNullType: function() { + return Rr + }, + getESSymbolType: function() { + return qr + }, + getNeverType: function() { + return ae + }, + getOptionalType: function() { + return Mr + }, + getPromiseType: function() { + return w_(!1) + }, + getPromiseLikeType: function() { + return I_(!1) + }, + getAsyncIterableType: function() { + var e = M_(!1); + if (e !== mn) return e + }, + isSymbolAccessible: Wo, + isArrayType: sg, + isTupleType: De, + isArrayLikeType: dg, + isTypeInvalidDueToUnionDiscriminant: function(r, e) { + return e.properties.some(function(e) { + var t = e.name && hd(e.name), + t = t && zc(t) ? Wc(t) : void 0, + t = void 0 === t ? void 0 : ys(r, t); + return !!t && xg(t) && !xe(hD(e), t) + }) + }, + getExactOptionalProperties: function(e) { + return pe(e).filter(function(e) { + return Ug(de(e)) + }) + }, + getAllPossiblePropertiesOfTypes: function(e) { + var t = he(e); + if (!(1048576 & t.flags)) return xD(t); + for (var r = OS.createSymbolTable(), n = 0, i = e; n < i.length; n++) + for (var a = i[n], o = 0, s = xD(a); o < s.length; o++) { + var c, l = s[o].escapedName; + r.has(l) || (c = Yl(t, l)) && r.set(l, c) + } + return OS.arrayFrom(r.values()) + }, + getSuggestedSymbolForNonexistentProperty: Wh, + getSuggestionForNonexistentProperty: Gh, + getSuggestedSymbolForNonexistentJSXAttribute: Hh, + getSuggestedSymbolForNonexistentSymbol: function(e, t, r) { + return Qh(e, OS.escapeLeadingUnderscores(t), r) + }, + getSuggestionForNonexistentSymbol: function(e, t, r) { + t = OS.escapeLeadingUnderscores(t); + return (e = Qh(e, t, r)) && OS.symbolName(e) + }, + getSuggestedSymbolForNonexistentModule: Xh, + getSuggestionForNonexistentExport: function(e, t) { + e = Xh(e, t); + return e && OS.symbolName(e) + }, + getSuggestedSymbolForNonexistentClassMember: qh, + getBaseConstraintOfType: Jl, + getDefaultFromTypeParameter: function(e) { + return e && 262144 & e.flags ? ql(e) : void 0 + }, + resolveName: function(e, t, r, n) { + return va(t, OS.escapeLeadingUnderscores(e), r, void 0, void 0, !1, n) + }, + getJsxNamespace: function(e) { + return OS.unescapeLeadingUnderscores(Xi(e)) + }, + getJsxFragmentFactory: function(e) { + e = rS(e); + return e && OS.unescapeLeadingUnderscores(OS.getFirstIdentifier(e).escapedText) + }, + getAccessibleSymbolChain: zo, + getTypePredicateOfSignature: Pu, + resolveExternalModuleName: function(e) { + e = OS.getParseTreeNode(e, OS.isExpression); + return e && io(e, e, !0) + }, + resolveExternalModuleSymbol: co, + tryGetThisTypeAt: function(e, t, r) { + e = OS.getParseTreeNode(e); + return e && s0(e, t, r) + }, + getTypeArgumentConstraint: function(e) { + var t, r, e = OS.getParseTreeNode(e, OS.isTypeNode); + return e && (e = e, (r = OS.tryCast(e.parent, OS.isTypeReferenceType)) && (t = z2(r)) ? (e = Ml(t[r.typeArguments.indexOf(e)])) && be(e, wp(t, j2(r, t))) : void 0) + }, + getSuggestionDiagnostics: function(e, t) { + var n, e = OS.getParseTreeNode(e, OS.isSourceFile) || OS.Debug.fail("Could not determine parsed source file."); + if (OS.skipTypeChecking(e, Z, g)) return OS.emptyArray; + try { + return f = t, uD(e), OS.Debug.assert(!!(1 & H(e).flags)), n = OS.addRange(n, hi.getDiagnostics(e.fileName)), mb(sD(e), function(e, t, r) { + OS.containsParseError(e) || oD(t, !!(16777216 & e.flags)) || (n = n || []).push(__assign(__assign({}, r), { + category: OS.DiagnosticCategory.Suggestion + })) + }), n || OS.emptyArray + } finally { + f = void 0 + } + }, + runWithCancellationToken: function(e, t) { + try { + return f = e, t(ot) + } finally { + f = void 0 + } + }, + getLocalTypeParametersOfClassOrInterfaceOrTypeAlias: pc, + isDeclarationVisible: _s, + isPropertyAccessible: rv, + getTypeOnlyAliasDeclaration: Ya, + getMemberOverrideModifierStatus: function(e, t) { + var r, n, i, a, o, s, c; + return t.name ? (i = G(e), r = Pc(i), n = Yc(r), i = de(i), a = OS.getEffectiveBaseTypeNode(e) && xc(r), a = null != a && a.length ? Yc(OS.first(a), r.thisType) : void 0, o = vc(r), s = t.parent ? OS.hasOverrideModifier(t) : OS.hasSyntacticModifier(t, 16384), c = OS.unescapeLeadingUnderscores(OS.getTextOfPropertyName(t.name)), Nx(e, i, o, a, r, n, s, OS.hasAbstractModifier(t), OS.isStatic(t), !1, c)) : 0 + }, + isTypeParameterPossiblyReferenced: qp + }; + + function st(e, t) { + var r = OS.findAncestor(e, OS.isCallLikeExpression), + n = r && H(r).resolvedSignature; + if (r) { + for (var i = e; H(i).skipDirectInference = !0, (i = i.parent) && i !== r;); + H(r).resolvedSignature = void 0 + } + t = t(); + if (r) { + for (i = e; H(i).skipDirectInference = void 0, (i = i.parent) && i !== r;); + H(r).resolvedSignature = n + } + return t + } + + function ct(e, t, r, n, i) { + var a = OS.getParseTreeNode(e, OS.isCallLikeExpression), + e = (et = r, a ? i ? st(i, function() { + return Gv(a, t, n) + }) : Gv(a, t, n) : void 0); + return et = void 0, e + } + for (var lt, ut, _t, dt, pt, ft, gt, mt, yt, ht, vt, bt, xt, Dt, St, Tt, Ct, Et, kt, Nt, At, Ft, Pt, wt, It, Ot, Mt, Lt, Rt, Bt, jt, Jt, zt, Ut, Kt, Vt, qt, Wt, Ht, Gt, Qt, Xt, Yt, Zt, $t, er, tr, rr, nr, ir, ar, or, sr, cr, lr = new OS.Map, ur = new OS.Map, _r = new OS.Map, dr = new OS.Map, pr = new OS.Map, fr = new OS.Map, gr = new OS.Map, mr = new OS.Map, yr = new OS.Map, hr = new OS.Map, vr = new OS.Map, br = new OS.Map, xr = new OS.Map, Dr = [], Sr = new OS.Map, Tr = new OS.Set, L = B(4, "unknown"), Cr = B(0, "__resolving__"), Er = new OS.Map, kr = new OS.Map, ee = Po(1, "any"), Nr = Po(1, "any", 262144), Ar = Po(1, "any"), R = Po(1, "error"), Fr = Po(1, "unresolved"), Pr = Po(1, "any", 65536), wr = Po(1, "intrinsic"), te = Po(2, "unknown"), Ir = Po(2, "unknown"), re = Po(32768, "undefined"), Or = $ ? re : Po(32768, "undefined", 65536), Mr = Po(32768, "undefined"), Lr = Ee ? Po(32768, "undefined") : re, Rr = Po(65536, "null"), Br = $ ? Rr : Po(65536, "null", 65536), ne = Po(4, "string"), ie = Po(8, "number"), jr = Po(64, "bigint"), Jr = Po(512, "false"), zr = Po(512, "false"), Ur = Po(512, "true"), Kr = Po(512, "true"), Vr = (Ur.regularType = Kr, Ur.freshType = Ur, (Kr.regularType = Kr).freshType = Ur, Jr.regularType = zr, Jr.freshType = Jr, (zr.regularType = zr).freshType = Jr, he([zr, Kr])), qr = Po(4096, "symbol"), Wr = Po(16384, "void"), ae = Po(131072, "never"), Hr = Po(131072, "never", 262144), Gr = Po(131072, "never"), Qr = Po(131072, "never"), Xr = Po(67108864, "object"), Yr = he([ne, ie]), Zr = he([ne, ie, qr]), $r = S ? ne : Zr, en = he([ie, jr]), tn = he([ne, ie, Vr, jr, Rr, re]), rn = Cd(["", ""], [ie]), nn = Mp(function(e) { + return 262144 & e.flags ? !(t = e).constraint && !Gu(t) || t.constraint === hn ? t : t.restrictiveInstantiation || (t.restrictiveInstantiation = Io(t.symbol), t.restrictiveInstantiation.constraint = hn, t.restrictiveInstantiation) : e; + var t + }, function() { + return "(restrictive mapper)" + }), an = Mp(function(e) { + return 262144 & e.flags ? Ar : e + }, function() { + return "(permissive mapper)" + }), on = Po(131072, "never"), sn = Mp(function(e) { + return 262144 & e.flags ? on : e + }, function() { + return "(unique literal mapper)" + }), cn = Mp(function(e) { + return !lt || e !== xn && e !== Dn && e !== Sn || lt(!0), e + }, function() { + return "(unmeasurable reporter)" + }), ln = Mp(function(e) { + return !lt || e !== xn && e !== Dn && e !== Sn || lt(!1), e + }, function() { + return "(unreliable reporter)" + }), un = Bo(void 0, E, OS.emptyArray, OS.emptyArray, OS.emptyArray), _n = Bo(void 0, E, OS.emptyArray, OS.emptyArray, OS.emptyArray), dn = (_n.objectFlags |= 2048, B(2048, "__type")), pn = (dn.members = OS.createSymbolTable(), Bo(dn, E, OS.emptyArray, OS.emptyArray, OS.emptyArray)), fn = Bo(void 0, E, OS.emptyArray, OS.emptyArray, OS.emptyArray), gn = $ ? he([re, Rr, fn]) : te, mn = Bo(void 0, E, OS.emptyArray, OS.emptyArray, OS.emptyArray), yn = (mn.instantiations = new OS.Map, Bo(void 0, E, OS.emptyArray, OS.emptyArray, OS.emptyArray)), hn = (yn.objectFlags |= 262144, Bo(void 0, E, OS.emptyArray, OS.emptyArray, OS.emptyArray)), vn = Bo(void 0, E, OS.emptyArray, OS.emptyArray, OS.emptyArray), bn = Bo(void 0, E, OS.emptyArray, OS.emptyArray, OS.emptyArray), xn = Io(), Dn = Io(), Sn = (Dn.constraint = xn, Io()), Tn = Io(), Cn = Io(), En = (Cn.constraint = Tn, Du(1, "<>", 0, ee)), kn = $c(void 0, void 0, void 0, OS.emptyArray, ee, void 0, 0, 0), Nn = $c(void 0, void 0, void 0, OS.emptyArray, R, void 0, 0, 0), An = $c(void 0, void 0, void 0, OS.emptyArray, ee, void 0, 0, 0), Fn = $c(void 0, void 0, void 0, OS.emptyArray, Hr, void 0, 0, 0), Pn = Vu(ie, ne, !0), wn = new OS.Map, In = {get yieldType() { + return OS.Debug.fail("Not supported") + }, + get returnType() { + return OS.Debug.fail("Not supported") + }, + get nextType() { + return OS.Debug.fail("Not supported") + } + }, On = Qb(ee, ee, ee), Mn = Qb(ee, ee, te), Ln = Qb(ae, ee, re), Rn = { + iterableCacheKey: "iterationTypesOfAsyncIterable", + iteratorCacheKey: "iterationTypesOfAsyncIterator", + iteratorSymbolName: "asyncIterator", + getGlobalIteratorType: function(e) { + return (Vt = Vt || E_("AsyncIterator", 3, e)) || mn + }, + getGlobalIterableType: M_, + getGlobalIterableIteratorType: function(e) { + return (qt = qt || E_("AsyncIterableIterator", 1, e)) || mn + }, + getGlobalGeneratorType: function(e) { + return (Wt = Wt || E_("AsyncGenerator", 3, e)) || mn + }, + resolveIterationType: ab, + mustHaveANextMethodDiagnostic: OS.Diagnostics.An_async_iterator_must_have_a_next_method, + mustBeAMethodDiagnostic: OS.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method, + mustHaveAValueDiagnostic: OS.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property + }, Bn = { + iterableCacheKey: "iterationTypesOfIterable", + iteratorCacheKey: "iterationTypesOfIterator", + iteratorSymbolName: "iterator", + getGlobalIteratorType: function(e) { + return (Bt = Bt || E_("Iterator", 3, e)) || mn + }, + getGlobalIterableType: L_, + getGlobalIterableIteratorType: function(e) { + return (jt = jt || E_("IterableIterator", 1, e)) || mn + }, + getGlobalGeneratorType: function(e) { + return (Jt = Jt || E_("Generator", 3, e)) || mn + }, + resolveIterationType: function(e, t) { + return e + }, + mustHaveANextMethodDiagnostic: OS.Diagnostics.An_iterator_must_have_a_next_method, + mustBeAMethodDiagnostic: OS.Diagnostics.The_0_property_of_an_iterator_must_be_a_method, + mustHaveAValueDiagnostic: OS.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property + }, jn = new OS.Map, Jn = !1, zn = new OS.Map, Un = 0, Kn = 0, Vn = 0, qn = !1, Wn = 0, Hn = bp(""), Gn = xp(0), Qn = Dp({ + negative: !1, + base10Value: "0" + }), Xn = [], Yn = [], Zn = [], $n = 0, ei = 10, ti = [], ri = [], ni = [], ii = [], ai = [], oi = [], si = [], ci = [], li = [], ui = [], _i = [], di = [], pi = [], fi = [], gi = [], mi = [], yi = [], oe = OS.createDiagnosticCollection(), hi = OS.createDiagnosticCollection(), vi = he(OS.arrayFrom(JS.keys(), bp)), bi = new OS.Map, xi = new OS.Map, Di = new OS.Map, Si = new OS.Map, Ti = new OS.Map, Ci = new OS.Map, Ei = ((dn = OS.createSymbolTable()).set(rt.escapedName, rt), [ + [".mts", ".mjs"], + [".ts", ".js"], + [".cts", ".cjs"], + [".mjs", ".mjs"], + [".js", ".js"], + [".cjs", ".cjs"], + [".tsx", 1 === Z.jsx ? ".jsx" : ".js"], + [".jsx", ".jsx"], + [".json", ".json"] + ]), ki = 0, Ni = g.getSourceFiles(); ki < Ni.length; ki++) { + var Ai = Ni[ki]; + OS.bindSourceFile(Ai, Z) + } + ut = new OS.Map; + for (var Fi = 0, Pi = g.getSourceFiles(); Fi < Pi.length; Fi++) { + Ai = Pi[Fi]; + if (!Ai.redirectInfo) { + if (!OS.isExternalOrCommonJsModule(Ai)) { + var wi = Ai.locals.get("globalThis"); + if (null != wi && wi.declarations) + for (var Ii = 0, Oi = wi.declarations; Ii < Oi.length; Ii++) { + var Mi = Oi[Ii]; + oe.add(OS.createDiagnosticForNode(Mi, OS.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0, "globalThis")) + } + pa(tt, Ai.locals) + } + Ai.jsGlobalAugmentations && pa(tt, Ai.jsGlobalAugmentations), Ai.patternAmbientModules && Ai.patternAmbientModules.length && (dt = OS.concatenate(dt, Ai.patternAmbientModules)), Ai.moduleAugmentations.length && (cr = cr || []).push(Ai.moduleAugmentations), Ai.symbol && Ai.symbol.globalExports && Ai.symbol.globalExports.forEach(function(e, t) { + tt.has(t) || tt.set(t, e) + }) + } + } + if (cr) + for (var Li = 0, Ri = cr; Li < Ri.length; Li++) + for (var Bi = Ri[Li], ji = 0, Ji = Bi; ji < Ji.length; ji++) { + var zi = Ji[ji]; + OS.isGlobalScopeAugmentation(zi.parent) && fa(zi) + } + var Ui = tt, + Ki = OS.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0; + if (dn.forEach(function(e, t) { + var r, n, i = Ui.get(t); + i ? OS.forEach(i.declarations, (r = OS.unescapeLeadingUnderscores(t), n = Ki, function(e) { + return oe.add(OS.createDiagnosticForNode(e, n, r)) + })) : Ui.set(t, e) + }), ce(rt).type = Or, ce(it).type = E_("IArguments", 0, !0), ce(L).type = R, ce(nt).type = wo(16, nt), ht = E_("Array", 1, !0), ft = E_("Object", 0, !0), gt = E_("Function", 0, !0), mt = e && E_("CallableFunction", 0, !0) || gt, yt = e && E_("NewableFunction", 0, !0) || gt, bt = E_("String", 0, !0), xt = E_("Number", 0, !0), Dt = E_("Boolean", 0, !0), St = E_("RegExp", 0, !0), Ct = z_(ee), (Et = z_(Nr)) === un && (Et = Bo(void 0, E, OS.emptyArray, OS.emptyArray, OS.emptyArray)), vt = R_("ReadonlyArray", 1) || ht, kt = vt ? j_(vt, [ee]) : Ct, Tt = R_("ThisType", 1), cr) + for (var Vi = 0, qi = cr; Vi < qi.length; Vi++) + for (var Bi = qi[Vi], Wi = 0, Hi = Bi; Wi < Hi.length; Wi++) { + zi = Hi[Wi]; + OS.isGlobalScopeAugmentation(zi.parent) || fa(zi) + } + return ut.forEach(function(e) { + var t = e.firstFile, + r = e.secondFile, + e = e.conflictingSymbols; + e.size < 8 ? e.forEach(function(e, t) { + for (var r = e.isBlockScoped, n = e.firstFileLocations, i = e.secondFileLocations, a = r ? OS.Diagnostics.Cannot_redeclare_block_scoped_variable_0 : OS.Diagnostics.Duplicate_identifier_0, o = 0, s = n; o < s.length; o++) da(s[o], a, t, i); + for (var c = 0, l = i; c < l.length; c++) da(l[c], a, t, n) + }) : (e = OS.arrayFrom(e.keys()).join(", "), oe.add(OS.addRelatedInfo(OS.createDiagnosticForNode(t, OS.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, e), OS.createDiagnosticForNode(r, OS.Diagnostics.Conflicts_are_in_this_file))), oe.add(OS.addRelatedInfo(OS.createDiagnosticForNode(r, OS.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, e), OS.createDiagnosticForNode(t, OS.Diagnostics.Conflicts_are_in_this_file)))) + }), ut = void 0, ot; + + function Gi(e) { + return e ? xr.get(e) : void 0 + } + + function Qi(e, t) { + return e && xr.set(e, t), t + } + + function Xi(e) { + if (e) { + var t = OS.getSourceFileOfNode(e); + if (t) + if (OS.isJsxOpeningFragment(e)) { + if (t.localJsxFragmentNamespace) return t.localJsxFragmentNamespace; + var r = t.pragmas.get("jsxfrag"); + if (r) { + r = OS.isArray(r) ? r[0] : r; + if (t.localJsxFragmentFactory = OS.parseIsolatedEntityName(r.arguments.factory, U), OS.visitNode(t.localJsxFragmentFactory, Zi), t.localJsxFragmentFactory) return t.localJsxFragmentNamespace = OS.getFirstIdentifier(t.localJsxFragmentFactory).escapedText + } + r = rS(e); + if (r) return t.localJsxFragmentFactory = r, t.localJsxFragmentNamespace = OS.getFirstIdentifier(r).escapedText + } else { + e = Yi(t); + if (e) return t.localJsxNamespace = e + } + } + return or || (or = "React", Z.jsxFactory ? (sr = OS.parseIsolatedEntityName(Z.jsxFactory, U), OS.visitNode(sr, Zi), sr && (or = OS.getFirstIdentifier(sr).escapedText)) : Z.reactNamespace && (or = OS.escapeLeadingUnderscores(Z.reactNamespace))), sr = sr || OS.factory.createQualifiedName(OS.factory.createIdentifier(OS.unescapeLeadingUnderscores(or)), "createElement"), or + } + + function Yi(e) { + if (e.localJsxNamespace) return e.localJsxNamespace; + var t = e.pragmas.get("jsx"); + if (t) { + t = OS.isArray(t) ? t[0] : t; + if (e.localJsxFactory = OS.parseIsolatedEntityName(t.arguments.factory, U), OS.visitNode(e.localJsxFactory, Zi), e.localJsxFactory) return e.localJsxNamespace = OS.getFirstIdentifier(e.localJsxFactory).escapedText + } + } + + function Zi(e) { + return OS.setTextRangePosEnd(e, -1, -1), OS.visitEachChild(e, Zi, OS.nullTransformationContext) + } + + function $i(e, t, r, n, i, a, o) { + t = se(t, r, n, i, a, o); + t.skippedOn = e + } + + function ea(e, t, r, n, i, a) { + return e ? OS.createDiagnosticForNode(e, t, r, n, i, a) : OS.createCompilerDiagnostic(t, r, n, i, a) + } + + function se(e, t, r, n, i, a) { + e = ea(e, t, r, n, i, a); + return oe.add(e), e + } + + function ta(e, t) { + e ? oe.add(t) : hi.add(__assign(__assign({}, t), { + category: OS.DiagnosticCategory.Suggestion + })) + } + + function ra(e, t, r, n, i, a, o) { + var s; + if (t.pos < 0 || t.end < 0) return e ? (s = OS.getSourceFileOfNode(t), void ta(e, "message" in r ? OS.createFileDiagnostic(s, 0, 0, r, n, i, a, o) : OS.createDiagnosticForFileFromMessageChain(s, r))) : void 0; + ta(e, "message" in r ? OS.createDiagnosticForNode(t, r, n, i, a, o) : OS.createDiagnosticForNodeFromMessageChain(t, r)) + } + + function na(e, t, r, n, i, a, o) { + r = se(e, r, n, i, a, o); + return t && (n = OS.createDiagnosticForNode(e, OS.Diagnostics.Did_you_forget_to_use_await), OS.addRelatedInfo(r, n)), r + } + + function ia(e, t) { + e = Array.isArray(e) ? OS.forEach(e, OS.getJSDocDeprecatedTag) : OS.getJSDocDeprecatedTag(e); + return e && OS.addRelatedInfo(t, OS.createDiagnosticForNode(e, OS.Diagnostics.The_declaration_was_marked_as_deprecated_here)), hi.add(t), t + } + + function aa(e) { + return 268435456 & hh(e) + } + + function oa(e, t, r) { + ia(t, OS.createDiagnosticForNode(e, OS.Diagnostics._0_is_deprecated, r)) + } + + function B(e, t, r) { + s++; + e = new i(33554432 | e, t); + return e.checkFlags = r || 0, e + } + + function sa(e) { + var t = 0; + return 2 & e && (t |= 111551), 1 & e && (t |= 111550), 4 & e && (t |= 0), 8 & e && (t |= 900095), 16 & e && (t |= 110991), 32 & e && (t |= 899503), 64 & e && (t |= 788872), 256 & e && (t |= 899327), 128 & e && (t |= 899967), 512 & e && (t |= 110735), 8192 & e && (t |= 103359), 32768 & e && (t |= 46015), 65536 & e && (t |= 78783), 262144 & e && (t |= 526824), 524288 & e && (t |= 788968), 2097152 & e && (t |= 2097152), t + } + + function ca(e, t) { + t.mergeId || (t.mergeId = BS, BS++), ti[t.mergeId] = e + } + + function la(e) { + var t = B(e.flags, e.escapedName); + return t.declarations = e.declarations ? e.declarations.slice() : [], t.parent = e.parent, e.valueDeclaration && (t.valueDeclaration = e.valueDeclaration), e.constEnumOnlyModule && (t.constEnumOnlyModule = !0), e.members && (t.members = new OS.Map(e.members)), e.exports && (t.exports = new OS.Map(e.exports)), ca(t, e), t + } + + function ua(e, t, r) { + if (void 0 === r && (r = !1), !(e.flags & sa(t.flags)) || 67108864 & (t.flags | e.flags)) { + if (t === e) return e; + if (!(33554432 & e.flags)) { + var n = Wa(e); + if (n === L) return t; + e = la(n) + } + 512 & t.flags && 512 & e.flags && e.constEnumOnlyModule && !t.constEnumOnlyModule && (e.constEnumOnlyModule = !1), e.flags |= t.flags, t.valueDeclaration && OS.setValueDeclaration(e, t.valueDeclaration), OS.addRange(e.declarations, t.declarations), t.members && (e.members || (e.members = OS.createSymbolTable()), pa(e.members, t.members, r)), t.exports && (e.exports || (e.exports = OS.createSymbolTable()), pa(e.exports, t.exports, r)), r || ca(e, t) + } else { + var i, a, o, s, c, l, u, _; + 1024 & e.flags ? e !== nt && se(t.declarations && OS.getNameOfDeclaration(t.declarations[0]), OS.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity, le(e)) : (n = !!(384 & e.flags || 384 & t.flags), i = !!(2 & e.flags || 2 & t.flags), r = n ? OS.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations : i ? OS.Diagnostics.Cannot_redeclare_block_scoped_variable_0 : OS.Diagnostics.Duplicate_identifier_0, a = t.declarations && OS.getSourceFileOfNode(t.declarations[0]), _ = e.declarations && OS.getSourceFileOfNode(e.declarations[0]), o = OS.isPlainJsFile(a, Z.checkJs), s = OS.isPlainJsFile(_, Z.checkJs), c = le(t), a && _ && ut && !n && a !== _ ? (l = -1 === OS.comparePaths(a.path, _.path) ? a : _, u = l === a ? _ : a, n = OS.getOrUpdate(ut, "".concat(l.path, "|").concat(u.path), function() { + return { + firstFile: l, + secondFile: u, + conflictingSymbols: new OS.Map + } + }), _ = OS.getOrUpdate(n.conflictingSymbols, c, function() { + return { + isBlockScoped: i, + firstFileLocations: [], + secondFileLocations: [] + } + }), o || d(_.firstFileLocations, t), s || d(_.secondFileLocations, e)) : (o || _a(t, r, c, e), s || _a(e, r, c, t))) + } + return e; + + function d(e, t) { + if (t.declarations) + for (var r = 0, n = t.declarations; r < n.length; r++) { + var i = n[r]; + OS.pushIfUnique(e, i) + } + } + } + + function _a(e, t, r, n) { + OS.forEach(e.declarations, function(e) { + da(e, t, r, n.declarations) + }) + } + + function da(e, t, n, r) { + for (var i, a, o, s, c = (OS.getExpandoInitializer(e, !1) ? OS.getNameOfExpando(e) : OS.getNameOfDeclaration(e)) || e, l = (e = t, t = n, i = (i = c) ? OS.createDiagnosticForNode(i, e, t, a, o, s) : OS.createCompilerDiagnostic(e, t, a, o, s), (e = oe.lookup(i)) || (oe.add(i), i)), u = 0, _ = r || OS.emptyArray; u < _.length; u++) ! function(e) { + e = (OS.getExpandoInitializer(e, !1) ? OS.getNameOfExpando(e) : OS.getNameOfDeclaration(e)) || e; + if (e === c) return; + l.relatedInformation = l.relatedInformation || []; + var t = OS.createDiagnosticForNode(e, OS.Diagnostics._0_was_also_declared_here, n), + r = OS.createDiagnosticForNode(e, OS.Diagnostics.and_here); + if (5 <= OS.length(l.relatedInformation) || OS.some(l.relatedInformation, function(e) { + return 0 === OS.compareDiagnostics(e, r) || 0 === OS.compareDiagnostics(e, t) + })) return; + OS.addRelatedInfo(l, OS.length(l.relatedInformation) ? r : t) + }(_[u]) + } + + function pa(n, e, i) { + void 0 === i && (i = !1), e.forEach(function(e, t) { + var r = n.get(t); + n.set(t, r ? ua(r, e, i) : bo(e)) + }) + } + + function fa(e) { + var t = e.parent; + if ((null == (n = t.symbol.declarations) ? void 0 : n[0]) !== t) OS.Debug.assert(1 < t.symbol.declarations.length); + else if (OS.isGlobalScopeAugmentation(t)) pa(tt, t.symbol.exports); + else { + var r = ao(e, e, 16777216 & e.parent.parent.flags ? void 0 : OS.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found, !0); + if (r) + if (1920 & (r = co(r)).flags) + if (OS.some(dt, function(e) { + return r === e.symbol + })) { + var n = ua(t.symbol, r, !0); + (pt = pt || new OS.Map).set(e.text, n) + } else { + if (null != (n = r.exports) && n.get("__export") && null != (n = t.symbol.exports) && n.size) + for (var i = Gc(r, "resolvedExports"), a = 0, o = OS.arrayFrom(t.symbol.exports.entries()); a < o.length; a++) { + var s = o[a], + c = s[0], + s = s[1]; + i.has(c) && !r.exports.has(c) && ua(i.get(c), s) + } + ua(r, t.symbol) + } + else se(e, OS.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity, e.text) + } + } + + function ce(e) { + return 33554432 & e.flags ? e : (e = WS(e), ri[e] || (ri[e] = new KS)) + } + + function H(e) { + e = qS(e); + return ni[e] || (ni[e] = new VS) + } + + function ga(e) { + return 308 === e.kind && !OS.isExternalOrCommonJsModule(e) + } + + function ma(e, t, r) { + if (r) { + e = bo(e.get(t)); + if (e) { + if (OS.Debug.assert(0 == (1 & OS.getCheckFlags(e)), "Should never get an instantiated symbol here."), e.flags & r) return e; + if (2097152 & e.flags) + if (Ga(e) & r) return e + } + } + } + + function ya(t, e) { + var r = OS.getSourceFileOfNode(t), + n = OS.getSourceFileOfNode(e), + i = OS.getEnclosingBlockScopeContainer(t); + if (r !== n) return !!(v && (r.externalModuleIndicator || n.externalModuleIndicator) || !OS.outFile(Z) || jm(e) || 16777216 & t.flags) || !!c(e, t) || (s = g.getSourceFiles()).indexOf(r) <= s.indexOf(n); + if (t.pos <= e.pos && (!OS.isPropertyDeclaration(t) || !OS.isThisProperty(e.parent) || t.initializer || t.exclamationToken)) { + if (205 === t.kind) return (r = OS.getAncestor(e, 205)) ? OS.findAncestor(r, OS.isBindingElement) !== OS.findAncestor(t, OS.isBindingElement) || t.pos < r.pos : ya(OS.getAncestor(t, 257), e); + if (257 !== t.kind) return OS.isClassDeclaration(t) ? !OS.findAncestor(e, function(e) { + return OS.isComputedPropertyName(e) && e.parent.parent === t + }) : OS.isPropertyDeclaration(t) ? !l(t, e, !1) : !OS.isParameterPropertyDeclaration(t, t.parent) || !(99 === OS.getEmitScriptTarget(Z) && W && OS.getContainingClass(t) === OS.getContainingClass(e) && c(e, t)); + var a = t, + o = e; + switch (a.parent.parent.kind) { + case 240: + case 245: + case 247: + if (Ca(o, a, i)) return !1 + } + var s = a.parent.parent; + return !(OS.isForInOrOfStatement(s) && Ca(o, s.expression, i)) + } + return !(!(278 === e.parent.kind || 274 === e.parent.kind && e.parent.isExportEquals) && (274 !== e.kind || !e.isExportEquals) && !(8388608 & e.flags || jm(e) || OS.findAncestor(e, function(e) { + return OS.isInterfaceDeclaration(e) || OS.isTypeAliasDeclaration(e) + })) && (!c(e, t) || 99 === OS.getEmitScriptTarget(Z) && W && OS.getContainingClass(t) && (OS.isPropertyDeclaration(t) || OS.isParameterPropertyDeclaration(t, t.parent)) && l(t, e, !0))); + + function c(r, n) { + return OS.findAncestor(r, function(e) { + if (e === i) return "quit"; + if (OS.isFunctionLike(e)) return !0; + if (OS.isClassStaticBlockDeclaration(e)) return n.pos < r.pos; + var t = OS.tryCast(e.parent, OS.isPropertyDeclaration); + if (t && t.initializer === e) + if (OS.isStatic(e.parent)) { + if (171 === n.kind) return !0; + if (OS.isPropertyDeclaration(n) && OS.getContainingClass(r) === OS.getContainingClass(n)) { + t = n.name; + if (OS.isIdentifier(t) || OS.isPrivateIdentifier(t)) + if (function(e, t, r, n, i) { + for (var a = 0, o = r; a < o.length; a++) { + var s = o[a]; + if (s.pos >= n && s.pos <= i) { + var c = OS.factory.createPropertyAccessExpression(OS.factory.createThis(), e); + if (OS.setParent(c.expression, c), OS.setParent(c, s), c.flowNode = s.returnFlowNode, !Af(Vy(c, t, Mg(t)))) return 1 + } + } + return + }(t, de(G(n)), OS.filter(n.parent.members, OS.isClassStaticBlockDeclaration), n.parent.pos, e.pos)) return !0 + } + } else if (!(169 === n.kind && !OS.isStatic(n)) || OS.getContainingClass(r) !== OS.getContainingClass(n)) return !0; + return !1 + }) + } + + function l(t, e, r) { + return !(e.end > t.end) && void 0 === OS.findAncestor(e, function(e) { + if (e === t) return "quit"; + switch (e.kind) { + case 216: + return !0; + case 169: + return !r || !(OS.isPropertyDeclaration(t) && e.parent === t.parent || OS.isParameterPropertyDeclaration(t, t.parent) && e.parent === t.parent.parent) || "quit"; + case 238: + switch (e.parent.kind) { + case 174: + case 171: + case 175: + return !0; + default: + return !1 + } + default: + return !1 + } + }) + } + } + + function ha(e, t, r) { + var n = OS.getEmitScriptTarget(Z); + if (OS.isParameter(r) && t.body && e.valueDeclaration && e.valueDeclaration.pos >= t.body.pos && e.valueDeclaration.end <= t.body.end && 2 <= n) return void 0 === (r = H(t)).declarationRequiresScopeChange && (r.declarationRequiresScopeChange = OS.forEach(t.parameters, function(e) { + return i(e.name) || !!e.initializer && i(e.initializer) + }) || !1), !r.declarationRequiresScopeChange; + + function i(e) { + switch (e.kind) { + case 216: + case 215: + case 259: + case 173: + return !1; + case 171: + case 174: + case 175: + case 299: + return i(e.name); + case 169: + return OS.hasStaticModifier(e) ? n < 99 || !W : i(e.name); + default: + return OS.isNullishCoalesce(e) || OS.isOptionalChain(e) ? n < 7 : OS.isBindingElement(e) && e.dotDotDotToken && OS.isObjectBindingPattern(e.parent) ? n < 4 : !OS.isTypeNode(e) && OS.forEachChild(e, i) || !1 + } + } + } + + function va(e, t, r, n, i, a, o, s) { + return ba(e, t, r, n, i, a, o = void 0 === o ? !1 : o, s = void 0 === s ? !0 : s, ma) + } + + function ba(e, a, o, s, c, t, r, l, n) { + var i, u, _, d, p, f = e, + g = !1, + m = e, + y = !1; + e: for (; e;) { + if ("const" === a && (h = e, OS.isAssertionExpression(h) && OS.isConstTypeReference(h.type) || OS.isJSDocTypeTag(h) && OS.isConstTypeReference(h.typeExpression))) return; + if (e.locals && !ga(e) && (i = n(e.locals, a, o))) { + var h = !0; + if (OS.isFunctionLike(e) && u && u !== e.body ? (o & i.flags & 788968 && 323 !== u.kind && (h = !!(262144 & i.flags) && (u === e.type || 166 === u.kind || 343 === u.kind || 344 === u.kind || 165 === u.kind)), o & i.flags & 3 && (ha(i, e, u) ? h = !1 : 1 & i.flags && (h = 166 === u.kind || u === e.type && !!OS.findAncestor(i.valueDeclaration, OS.isParameter)))) : 191 === e.kind && (h = u === e.trueType), h) break; + i = void 0 + } + switch (g = g || function(e, t) { + if (216 !== e.kind && 215 !== e.kind) return OS.isTypeQueryNode(e) || (OS.isFunctionLikeDeclaration(e) || 169 === e.kind && !OS.isStatic(e)) && (!t || t !== e.name); + if (t && t === e.name) return !1; + if (e.asteriskToken || OS.hasSyntacticModifier(e, 512)) return !0; + return !OS.getImmediatelyInvokedFunctionExpression(e) + }(e, u), e.kind) { + case 308: + if (!OS.isExternalOrCommonJsModule(e)) break; + y = !0; + case 264: + var v = (null == (v = G(e)) ? void 0 : v.exports) || E; + if (308 === e.kind || OS.isModuleDeclaration(e) && 16777216 & e.flags && !OS.isGlobalScopeAugmentation(e)) { + if (i = v.get("default")) { + var b = OS.getLocalSymbolForExportDefault(i); + if (b && i.flags & o && b.escapedName === a) break e; + i = void 0 + } + b = v.get(a); + if (b && 2097152 === b.flags && (OS.getDeclarationOfKind(b, 278) || OS.getDeclarationOfKind(b, 277))) break + } + if ("default" !== a && (i = n(v, a, 2623475 & o))) { + if (!OS.isSourceFile(e) || !e.commonJsModuleIndicator || null != (v = i.declarations) && v.some(OS.isJSDocTypeAlias)) break e; + i = void 0 + } + break; + case 263: + if (i = n((null == (v = G(e)) ? void 0 : v.exports) || E, a, 8 & o)) break e; + break; + case 169: + OS.isStatic(e) || (x = No(e.parent)) && x.locals && n(x.locals, a, 111551 & o) && (OS.Debug.assertNode(e, OS.isPropertyDeclaration), d = e); + break; + case 260: + case 228: + case 261: + if (i = n(G(e).members || E, a, 788968 & o)) { + if (! function(e, t) { + if (e.declarations) + for (var r = 0, n = e.declarations; r < n.length; r++) { + var i = n[r]; + if (165 === i.kind) + if ((OS.isJSDocTemplateTag(i.parent) ? OS.getJSDocHost(i.parent) : i.parent) === t) return !OS.isJSDocTemplateTag(i.parent) || !OS.find(i.parent.parent.tags, OS.isJSDocTypeAlias) + } + return + }(i, e)) { + i = void 0; + break + } + if (u && OS.isStatic(u)) return void(s && se(m, OS.Diagnostics.Static_members_cannot_reference_class_type_parameters)); + break e + } + if (228 === e.kind && 32 & o) { + var x = e.name; + if (x && a === x.escapedText) { + i = e.symbol; + break e + } + } + break; + case 230: + if (u === e.expression && 94 === e.parent.token) { + var D = e.parent.parent; + if (OS.isClassLike(D) && (i = n(G(D).members, a, 788968 & o))) return void(s && se(m, OS.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters)) + } + break; + case 164: + if (D = e.parent.parent, (OS.isClassLike(D) || 261 === D.kind) && (i = n(G(D).members, a, 788968 & o))) return void(s && se(m, OS.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type)); + break; + case 216: + if (2 <= OS.getEmitScriptTarget(Z)) break; + case 171: + case 173: + case 174: + case 175: + case 259: + if (3 & o && "arguments" === a) { + i = it; + break e + } + break; + case 215: + if (3 & o && "arguments" === a) { + i = it; + break e + } + if (16 & o) { + var S = e.name; + if (S && a === S.escapedText) { + i = e.symbol; + break e + } + } + break; + case 167: + (e = e.parent && 166 === e.parent.kind ? e.parent : e).parent && (OS.isClassElement(e.parent) || 260 === e.parent.kind) && (e = e.parent); + break; + case 348: + case 341: + case 342: + S = OS.getJSDocRoot(e); + S && (e = S.parent); + break; + case 166: + u && (u === e.initializer || u === e.name && OS.isBindingPattern(u)) && (p = p || e); + break; + case 205: + u && (u === e.initializer || u === e.name && OS.isBindingPattern(u)) && OS.isParameterDeclaration(e) && !p && (p = e); + break; + case 192: + if (262144 & o) { + var T = e.typeParameter.name; + if (T && a === T.escapedText) { + i = e.typeParameter.symbol; + break e + } + } + }! function(e) { + switch (e.kind) { + case 259: + case 260: + case 261: + case 263: + case 262: + case 264: + return 1; + default: + return + } + }(e) || (_ = e), u = e, e = OS.isJSDocTemplateTag(e) ? OS.getEffectiveContainerForJSDocTemplateTag(e) || e.parent : (OS.isJSDocParameterTag(e) || OS.isJSDocReturnTag(e)) && OS.getHostSignatureFromJSDoc(e) || e.parent + } + if (!t || !i || _ && i === _.symbol || (i.isReferenced |= o), !i) { + if (u && (OS.Debug.assert(308 === u.kind), u.commonJsModuleIndicator) && "exports" === a && o & u.symbol.flags) return u.symbol; + r || (i = n(tt, a, o)) + } + if (!i && f && OS.isInJSFile(f) && f.parent && OS.isRequireCall(f.parent, !1)) return at; + + function C() { + return d && !(W && 9 <= OS.getEmitScriptTarget(Z)) && (se(m, m && d.type && OS.textRangeContainsPositionInclusive(d.type, m.pos) ? OS.Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor : OS.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, OS.declarationNameToString(d.name), Da(c)), 1) + } + if (i) { + if (!s || !C()) return s && q(function() { + var e, t, r; + m && (2 & o || (32 & o || 384 & o) && 111551 == (111551 & o)) && (2 & (t = Eo(i)).flags || 32 & t.flags || 384 & t.flags) && ! function(e, t) { + if (OS.Debug.assert(!!(2 & e.flags || 32 & e.flags || 384 & e.flags)), !(67108881 & e.flags && 32 & e.flags)) { + var r, n, i = null == (i = e.declarations) ? void 0 : i.find(function(e) { + return OS.isBlockOrCatchScoped(e) || OS.isClassLike(e) || 263 === e.kind + }); + if (void 0 === i) return OS.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration"); + 16777216 & i.flags || ya(i, t) || (r = void 0, n = OS.declarationNameToString(OS.getNameOfDeclaration(i)), 2 & e.flags ? r = se(t, OS.Diagnostics.Block_scoped_variable_0_used_before_its_declaration, n) : 32 & e.flags ? r = se(t, OS.Diagnostics.Class_0_used_before_its_declaration, n) : (256 & e.flags || (OS.Debug.assert(!!(128 & e.flags)), OS.shouldPreserveConstEnums(Z))) && (r = se(t, OS.Diagnostics.Enum_0_used_before_its_declaration, n)), r && OS.addRelatedInfo(r, OS.createDiagnosticForNode(i, OS.Diagnostics._0_is_declared_here, n))) + } + }(t, m), !i || !y || 111551 != (111551 & o) || 8388608 & f.flags || (t = bo(i), OS.length(t.declarations) && OS.every(t.declarations, function(e) { + return OS.isNamespaceExportDeclaration(e) || OS.isSourceFile(e) && !!e.symbol.globalExports + }) && ra(!Z.allowUmdGlobalAccess, m, OS.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead, OS.unescapeLeadingUnderscores(a))), i && p && !g && 111551 == (111551 & o) && (t = bo(Xc(i)), e = OS.getRootDeclaration(p), t === G(p) ? se(m, OS.Diagnostics.Parameter_0_cannot_reference_itself, OS.declarationNameToString(p.name)) : t.valueDeclaration && t.valueDeclaration.pos > p.pos && e.parent.locals && n(e.parent.locals, t.escapedName, o) === t && se(m, OS.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it, OS.declarationNameToString(p.name), OS.declarationNameToString(m))), !(i && m && 111551 & o && 2097152 & i.flags) || 111551 & i.flags || OS.isValidTypeOnlyAliasUseSite(m) || (e = Ya(i, 111551)) && (t = 278 === e.kind ? OS.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type : OS.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type, r = OS.unescapeLeadingUnderscores(a), xa(se(m, t, r), e, r)) + }), i + } else s && q(function() { + var e, t, r, n, i; + m && (function(e, t, r) { + if (OS.isIdentifier(e) && e.escapedText === t && !_D(e) && !jm(e)) + for (var n = OS.getThisContainer(e, !1), i = n; i;) { + if (OS.isClassLike(i.parent)) { + var a = G(i.parent); + if (!a) break; + if (fe(de(a), t)) return se(e, OS.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0, Da(r), le(a)), 1; + if (i === n && !OS.isStatic(i)) + if (fe(Pc(a).thisType, t)) return se(e, OS.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0, Da(r)), 1 + } + i = i.parent + } + return + }(m, a, c) || C() || Sa(m) || function(e, t, r) { + var n = 1920 | (OS.isInJSFile(e) ? 111551 : 0); + if (r === n) { + r = Wa(va(e, t, 788968 & ~n, void 0, void 0, !1)), n = e.parent; + if (r) { + if (OS.isQualifiedName(n)) { + OS.Debug.assert(n.left === e, "Should only be resolving left side of qualified name as a namespace"); + var i = n.right.escapedText; + if (fe(Pc(r), i)) return se(n, OS.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1, OS.unescapeLeadingUnderscores(t), OS.unescapeLeadingUnderscores(i)), 1 + } + return se(e, OS.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here, OS.unescapeLeadingUnderscores(t)), 1 + } + } + return + }(m, a, o) || function(e, t) { + if (Ta(t) && 278 === e.parent.kind) return se(e, OS.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, t), 1; + return + }(m, a) || function(e, t, r) { + if (111127 & r) { + if (Wa(va(e, t, 1024, void 0, void 0, !1))) return se(e, OS.Diagnostics.Cannot_use_namespace_0_as_a_value, OS.unescapeLeadingUnderscores(t)), 1 + } else if (788544 & r) + if (Wa(va(e, t, 1536, void 0, void 0, !1))) return se(e, OS.Diagnostics.Cannot_use_namespace_0_as_a_type, OS.unescapeLeadingUnderscores(t)), 1; + return + }(m, a, o) || function(e, t, r) { + if (111551 & r) { + if (Ta(t)) return ! function(e) { + var e = e.parent.parent, + t = e.parent; + if (e && t) return e = OS.isHeritageClause(e) && 94 === e.token, t = OS.isInterfaceDeclaration(t), e && t; + return + }(e) ? se(e, OS.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, OS.unescapeLeadingUnderscores(t)) : se(e, OS.Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes, OS.unescapeLeadingUnderscores(t)), 1; + var r = Wa(va(e, t, 788544, void 0, void 0, !1)), + n = r && Ga(r); + if (r && void 0 !== n && !(111551 & n)) return n = OS.unescapeLeadingUnderscores(t), ! function(e) { + switch (e) { + case "Promise": + case "Symbol": + case "Map": + case "WeakMap": + case "Set": + case "WeakSet": + return 1 + } + return + }(t) ? ! function(e, t) { + e = OS.findAncestor(e.parent, function(e) { + return !OS.isComputedPropertyName(e) && !OS.isPropertySignature(e) && (OS.isTypeLiteralNode(e) || "quit") + }); + if (e && 1 === e.members.length) return 1048576 & (e = Pc(t)).flags && Z1(e, 384, !0); + return + }(e, r) ? se(e, OS.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, n) : se(e, OS.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0, n, "K" === n ? "P" : "K") : se(e, OS.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later, n), 1 + } + return + }(m, a, o) || function(e, t, r) { + if (788584 & r) { + r = Wa(va(e, t, 111127, void 0, void 0, !1)); + if (r && !(1920 & r.flags)) return se(e, OS.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, OS.unescapeLeadingUnderscores(t)), 1 + } + return + }(m, a, o)) || (e = t = void 0, c && (e = function(e) { + for (var t = Da(e), r = OS.getScriptTargetFeatures(), e = OS.getOwnKeys(r), n = 0, i = e; n < i.length; n++) { + var a = i[n], + o = OS.getOwnKeys(r[a]); + if (void 0 !== o && OS.contains(o, t)) return a + } + }(c)) && se(m, s, Da(c), e), !e && l && $n < ei && (t = (null == (t = Qh(f, a, o)) ? void 0 : t.valueDeclaration) && OS.isAmbientModule(t.valueDeclaration) && OS.isGlobalScopeAugmentation(t.valueDeclaration) ? void 0 : t) && (r = le(t), i = Jh(f, t, !1), n = 1920 === o || c && "string" != typeof c && OS.nodeIsSynthesized(c) ? OS.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1 : i ? OS.Diagnostics.Could_not_find_name_0_Did_you_mean_1 : OS.Diagnostics.Cannot_find_name_0_Did_you_mean_1, ta(!i, i = ea(m, n, Da(c), r)), t.valueDeclaration) && OS.addRelatedInfo(i, OS.createDiagnosticForNode(t.valueDeclaration, OS.Diagnostics._0_is_declared_here, r)), t || e || !c || se(m, s, Da(c)), $n++) + }) + } + + function xa(e, t, r) { + t && OS.addRelatedInfo(e, OS.createDiagnosticForNode(t, 278 === t.kind ? OS.Diagnostics._0_was_exported_here : OS.Diagnostics._0_was_imported_here, r)) + } + + function Da(e) { + return OS.isString(e) ? OS.unescapeLeadingUnderscores(e) : OS.declarationNameToString(e) + } + + function Sa(e) { + var t = function e(t) { + switch (t.kind) { + case 79: + case 208: + return t.parent ? e(t.parent) : void 0; + case 230: + if (OS.isEntityNameExpression(t.expression)) return t.expression; + default: + return + } + }(e); + return t && ro(t, 64, !0) && (se(e, OS.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements, OS.getTextOfNode(t)), 1) + } + + function Ta(e) { + return "any" === e || "string" === e || "number" === e || "boolean" === e || "never" === e || "unknown" === e + } + + function Ca(e, t, r) { + return !!t && !!OS.findAncestor(e, function(e) { + return e === t || !(e !== r && (!OS.isFunctionLike(e) || OS.getImmediatelyInvokedFunctionExpression(e))) && "quit" + }) + } + + function Ea(e) { + switch (e.kind) { + case 268: + return e; + case 270: + return e.parent; + case 271: + return e.parent.parent; + case 273: + return e.parent.parent.parent; + default: + return + } + } + + function ka(e) { + return e.declarations && OS.findLast(e.declarations, Na) + } + + function Na(e) { + return 268 === e.kind || 267 === e.kind || 270 === e.kind && !!e.name || 271 === e.kind || 277 === e.kind || 273 === e.kind || 278 === e.kind || 274 === e.kind && OS.exportAssignmentIsAlias(e) || OS.isBinaryExpression(e) && 2 === OS.getAssignmentDeclarationKind(e) && OS.exportAssignmentIsAlias(e) || OS.isAccessExpression(e) && OS.isBinaryExpression(e.parent) && e.parent.left === e && 63 === e.parent.operatorToken.kind && Aa(e.parent.right) || 300 === e.kind || 299 === e.kind && Aa(e.initializer) || 257 === e.kind && OS.isVariableDeclarationInitializedToBareOrAccessedRequire(e) || 205 === e.kind && OS.isVariableDeclarationInitializedToBareOrAccessedRequire(e.parent.parent) + } + + function Aa(e) { + return OS.isAliasableExpression(e) || OS.isFunctionExpression(e) && Qv(e) + } + + function Fa(e, t) { + var r, n, i, a = za(e); + return a ? (r = OS.getLeftmostAccessExpression(a.expression).arguments[0], OS.isIdentifier(a.name) ? Wa(fe(Au(r), a.name.escapedText)) : void 0) : OS.isVariableDeclaration(e) || 280 === e.moduleReference.kind ? (Qa(e, r = io(e, OS.getExternalModuleRequireArgument(e) || OS.getExternalModuleImportEqualsDeclarationExpression(e)), a = co(r), !1), a) : (r = eo(e.moduleReference, t), Qa(a = e, void 0, t = r, !1) && !a.isTypeOnly && (t = Ya(G(a)), e = 278 === t.kind, n = e ? OS.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type : OS.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type, e = e ? OS.Diagnostics._0_was_exported_here : OS.Diagnostics._0_was_imported_here, i = OS.unescapeLeadingUnderscores(t.name.escapedText), OS.addRelatedInfo(se(a.moduleReference, n), OS.createDiagnosticForNode(t, e, i))), r) + } + + function Pa(e, t, r, n) { + var i = e.exports.get("export="), + i = i ? fe(de(i), t) : e.exports.get(t), + e = Wa(i, n); + return Qa(r, i, e, !1), e + } + + function wa(e) { + return OS.isExportAssignment(e) && !e.isExportEquals || OS.hasSyntacticModifier(e, 1024) || OS.isExportSpecifier(e) + } + + function Ia(e) { + return OS.isStringLiteralLike(e) ? OS.getModeForUsageLocation(OS.getSourceFileOfNode(e), e) : void 0 + } + + function Oa(e, t) { + return e === OS.ModuleKind.ESNext && t === OS.ModuleKind.CommonJS + } + + function Ma(e) { + return Ia(e) === OS.ModuleKind.ESNext && OS.endsWith(e.text, ".json") + } + + function La(e, t, r, n) { + var n = e && Ia(n); + if (e && void 0 !== n) { + var i = Oa(n, e.impliedNodeFormat); + if (n === OS.ModuleKind.ESNext || i) return i + } + return !!b && (!e || e.isDeclarationFile ? !((n = Pa(t, "default", void 0, !0)) && OS.some(n.declarations, wa) || Pa(t, OS.escapeLeadingUnderscores("__esModule"), void 0, r)) : OS.isSourceFileJS(e) ? "object" != typeof e.externalModuleIndicator && !Pa(t, OS.escapeLeadingUnderscores("__esModule"), void 0, r) : _o(t)) + } + + function Ra(e, t, r) { + var n = OS.isShorthandAmbientModuleSymbol(e) ? e : Pa(e, "default", t, r), + i = null == (i = e.declarations) ? void 0 : i.find(OS.isSourceFile), + a = Ba(t); + if (a) { + var o = Ma(a), + i = La(i, e, r, a); + if (n || i || o) { + if (i || o) return a = co(e, r) || Wa(e, r), Qa(t, e, a, !1), a + } else _o(e) ? (i = v >= OS.ModuleKind.ES2015 ? "allowSyntheticDefaultImports" : "esModuleInterop", o = e.exports.get("export=").valueDeclaration, r = se(t.name, OS.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag, le(e), i), o && OS.addRelatedInfo(r, OS.createDiagnosticForNode(o, OS.Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag, i))) : OS.isImportClause(t) ? (a = t, null != (o = (r = e).exports) && o.has(a.symbol.escapedName) ? se(a.name, OS.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead, le(r), le(a.symbol)) : (o = se(a.name, OS.Diagnostics.Module_0_has_no_default_export, le(r)), (r = null == (a = r.exports) ? void 0 : a.get("__export")) && (r = null == (a = r.declarations) ? void 0 : a.find(function(e) { + return !!(OS.isExportDeclaration(e) && e.moduleSpecifier && null != (e = null == (e = io(e, e.moduleSpecifier)) ? void 0 : e.exports) && e.has("default")) + })) && OS.addRelatedInfo(o, OS.createDiagnosticForNode(r, OS.Diagnostics.export_Asterisk_does_not_re_export_a_default)))) : Ja(e, e, t, OS.isImportOrExportSpecifier(t) && t.propertyName || t.name); + Qa(t, n, void 0, !1) + } + return n + } + + function Ba(e) { + switch (e.kind) { + case 270: + return e.parent.moduleSpecifier; + case 268: + return OS.isExternalModuleReference(e.moduleReference) ? e.moduleReference.expression : void 0; + case 271: + return e.parent.parent.moduleSpecifier; + case 273: + return e.parent.parent.parent.moduleSpecifier; + case 278: + return e.parent.parent.moduleSpecifier; + default: + return OS.Debug.assertNever(e) + } + } + + function ja(e, t, r) { + void 0 === r && (r = !1); + var n = OS.getExternalModuleRequireArgument(e) || e.moduleSpecifier, + i = io(e, n), + a = !OS.isPropertyAccessExpression(t) && t.propertyName || t.name; + if (OS.isIdentifier(a)) { + var o, s, c = lo(i, n, !1, "default" === a.escapedText && !(!Z.allowSyntheticDefaultImports && !OS.getESModuleInterop(Z))); + if (c) + if (a.escapedText) return OS.isShorthandAmbientModuleSymbol(i) ? i : (o = void 0, o = i && i.exports && i.exports.get("export=") ? fe(de(c), a.escapedText, !0) : function(e, t) { + if (3 & e.flags) { + e = e.valueDeclaration.type; + if (e) return Wa(fe(K(e), t)) + } + }(c, a.escapedText), o = Wa(o, r), (s = (t = void 0 === (t = function(e, t, r, n) { + if (1536 & e.flags) return Qa(r, r = mo(e).get(t.escapedText), e = Wa(r, n), !1), e + }(c, a, t, r)) && "default" === a.escapedText && (s = null == (s = i.declarations) ? void 0 : s.find(OS.isSourceFile), Ma(n) || La(s, i, r, n)) ? co(i, r) || Wa(i, r) : t) && o && t !== o ? (s = t, (n = o) === L && s === L ? L : 790504 & n.flags ? n : ((r = B(n.flags | s.flags, n.escapedName)).declarations = OS.deduplicate(OS.concatenate(n.declarations, s.declarations), OS.equateValues), r.parent = n.parent || s.parent, n.valueDeclaration && (r.valueDeclaration = n.valueDeclaration), s.members && (r.members = new OS.Map(s.members)), n.exports && (r.exports = new OS.Map(n.exports)), r)) : t || o) || Ja(i, c, e, a), s) + } + } + + function Ja(e, t, r, n) { + var i, a, o, s, c, l, u = to(e, r), + _ = OS.declarationNameToString(n), + t = Xh(n, t); + void 0 !== t ? (o = le(t), c = se(n, OS.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, u, _, o), t.valueDeclaration && OS.addRelatedInfo(c, OS.createDiagnosticForNode(t.valueDeclaration, OS.Diagnostics._0_is_declared_here, o))) : null != (c = e.exports) && c.has("default") ? se(n, OS.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead, u, _) : (t = r, o = n, s = _, c = u, l = null == (n = null == (n = (r = e).valueDeclaration) ? void 0 : n.locals) ? void 0 : n.get(o.escapedText), n = r.exports, l ? (r = null == n ? void 0 : n.get("export=")) ? Co(r, l) ? (_ = t, u = o, e = s, i = c, v >= OS.ModuleKind.ES2015 ? (a = OS.getESModuleInterop(Z) ? OS.Diagnostics._0_can_only_be_imported_by_using_a_default_import : OS.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import, se(u, a, e)) : OS.isInJSFile(_) ? (a = OS.getESModuleInterop(Z) ? OS.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import : OS.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import, se(u, a, e)) : (a = OS.getESModuleInterop(Z) ? OS.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import : OS.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import, se(u, a, e, e, i))) : se(o, OS.Diagnostics.Module_0_has_no_exported_member_1, c, s) : (r = n ? OS.find(yu(n), function(e) { + return !!Co(e, l) + }) : void 0, t = r ? se(o, OS.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2, c, s, le(r)) : se(o, OS.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported, c, s), l.declarations && OS.addRelatedInfo.apply(void 0, __spreadArray([t], OS.map(l.declarations, function(e, t) { + return OS.createDiagnosticForNode(e, 0 === t ? OS.Diagnostics._0_is_declared_here : OS.Diagnostics.and_here, s) + }), !1))) : se(o, OS.Diagnostics.Module_0_has_no_exported_member_1, c, s)) + } + + function za(e) { + if (OS.isVariableDeclaration(e) && e.initializer && OS.isPropertyAccessExpression(e.initializer)) return e.initializer + } + + function Ua(e, t, r) { + if ("default" === OS.idText(e.propertyName || e.name)) { + var n = Ba(e), + n = n && io(e, n); + if (n) return Ra(n, e, !!r) + } + n = e.parent.parent.moduleSpecifier ? ja(e.parent.parent, e, r) : ro(e.propertyName || e.name, t, !1, r); + return Qa(e, void 0, n, !1), n + } + + function Ka(e, t) { + return OS.isClassExpression(e) ? u2(e).symbol : OS.isEntityName(e) || OS.isEntityNameExpression(e) ? ro(e, 901119, !0, t) || (u2(e), H(e).resolvedSymbol) : void 0 + } + + function Va(e, t) { + switch (void 0 === t && (t = !1), e.kind) { + case 268: + case 257: + return Fa(e, t); + case 270: + var r = e, + n = t, + i = io(r, r.parent.moduleSpecifier); + return i ? Ra(i, r, n) : void 0; + case 271: + return i = t, n = (r = e).parent.parent.moduleSpecifier, d = io(r, n), n = lo(d, n, i, !1), Qa(r, d, n, !1), n; + case 277: + return d = t, _ = (o = (u = e).parent.moduleSpecifier) && io(u, o), o = o && lo(_, o, d, !1), Qa(u, _, o, !1), o; + case 273: + case 205: + u = e, _ = t; + if (OS.isImportSpecifier(u) && "default" === OS.idText(u.propertyName || u.name)) { + var a = Ba(u), + a = a && io(u, a); + if (a) return Ra(a, u, _) + } + var o = za(a = OS.isBindingElement(u) ? OS.getRootDeclaration(u) : u.parent.parent.parent), + a = ja(a, o || u, _), + s = u.propertyName || u.name; + return o && a && OS.isIdentifier(s) ? Wa(fe(de(a), s.escapedText), _) : (Qa(u, void 0, a, !1), a); + case 278: + return Ua(e, 901119, t); + case 274: + case 223: + return s = e, a = t, a = Ka(OS.isExportAssignment(s) ? s.expression : s.right, a), Qa(s, void 0, a, !1), a; + case 267: + return l = t, l = co((c = e).parent.symbol, l), Qa(c, void 0, l, !1), l; + case 300: + return ro(e.name, 901119, !0, t); + case 299: + return Ka(e.initializer, t); + case 209: + case 208: + c = e, l = t; + return OS.isBinaryExpression(c.parent) && c.parent.left === c && 63 === c.parent.operatorToken.kind ? Ka(c.parent.right, l) : void 0; + default: + return OS.Debug.fail() + } + var c, l, u, _, o, d + } + + function qa(e, t) { + return void 0 === t && (t = 901119), e && (2097152 == (e.flags & (2097152 | t)) || 2097152 & e.flags && 67108864 & e.flags) + } + + function Wa(e, t) { + return !t && qa(e) ? Ha(e) : e + } + + function Ha(e) { + OS.Debug.assert(0 != (2097152 & e.flags), "Should only get Alias here."); + var t = ce(e); + if (t.aliasTarget) t.aliasTarget === Cr && (t.aliasTarget = L); + else { + t.aliasTarget = Cr; + var r = ka(e); + if (!r) return OS.Debug.fail(); + var n = Va(r); + t.aliasTarget === Cr ? t.aliasTarget = n || L : se(r, OS.Diagnostics.Circular_definition_of_import_alias_0, le(e)) + } + return t.aliasTarget + } + + function Ga(e) { + for (var t, r = e.flags; 2097152 & e.flags;) { + var n = Ha(e); + if (n === L) return 67108863; + if (n === e || null != t && t.has(n)) break; + 2097152 & n.flags && (t ? t.add(n) : t = new OS.Set([e, n])), r |= n.flags, e = n + } + return r + } + + function Qa(e, t, r, n) { + var i; + if (e && !OS.isPropertyAccessExpression(e)) return i = G(e), OS.isTypeOnlyImportOrExportDeclaration(e) ? (ce(i).typeOnlyDeclaration = e, 1) : Xa(e = ce(i), t, n) || Xa(e, r, n) + } + + function Xa(e, t, r) { + return t && (void 0 === e.typeOnlyDeclaration || r && !1 === e.typeOnlyDeclaration) && (t = (r = null != (r = null == (r = t.exports) ? void 0 : r.get("export=")) ? r : t).declarations && OS.find(r.declarations, OS.isTypeOnlyImportOrExportDeclaration), e.typeOnlyDeclaration = null != (t = null != t ? t : ce(r).typeOnlyDeclaration) && t), !!e.typeOnlyDeclaration + } + + function Ya(e, t) { + if (2097152 & e.flags) return e = ce(e), void 0 === t ? e.typeOnlyDeclaration || void 0 : e.typeOnlyDeclaration && Ga(Ha(e.typeOnlyDeclaration.symbol)) & t ? e.typeOnlyDeclaration : void 0 + } + + function Za(e) { + var e = G(e), + t = Ha(e); + t && (t === L || 111551 & Ga(t) && !OD(t) && !Ya(e, 111551)) && $a(e) + } + + function $a(e) { + var t = ce(e); + if (!t.referenced) { + t.referenced = !0; + t = ka(e); + if (!t) return OS.Debug.fail(); + OS.isInternalModuleImportEqualsDeclaration(t) && 111551 & Ga(Wa(e)) && u2(t.moduleReference) + } + } + + function eo(e, t) { + return 79 === (e = 79 === e.kind && OS.isRightSideOfQualifiedNameOrPropertyAccess(e) ? e.parent : e).kind || 163 === e.parent.kind ? ro(e, 1920, !1, t) : (OS.Debug.assert(268 === e.parent.kind), ro(e, 901119, !1, t)) + } + + function to(e, t) { + return e.parent ? to(e.parent, t) + "." + le(e) : le(e, t, void 0, 36) + } + + function ro(e, t, r, n, i) { + if (!OS.nodeIsMissing(e)) { + var a = 1920 | (OS.isInJSFile(e) ? 111551 & t : 0); + if (79 === e.kind) { + var o = t === a || OS.nodeIsSynthesized(e) ? OS.Diagnostics.Cannot_find_namespace_0 : Rm(OS.getFirstIdentifier(e)), + s = OS.isInJSFile(e) && !OS.nodeIsSynthesized(e) ? function(e, t) { + if (g_(e.parent)) { + var r = function(e) { + var t = OS.findAncestor(e, function(e) { + return OS.isJSDocNode(e) || 8388608 & e.flags ? OS.isJSDocTypeAlias(e) : "quit" + }); + if (!t) { + t = OS.getJSDocHost(e); + if (t && OS.isExpressionStatement(t) && OS.isPrototypePropertyAssignment(t.expression)) + if (r = G(t.expression.left)) return no(r); + if (t && OS.isFunctionExpression(t) && OS.isPrototypePropertyAssignment(t.parent) && OS.isExpressionStatement(t.parent.parent)) + if (r = G(t.parent.left)) return no(r); + if (t && (OS.isObjectLiteralMethod(t) || OS.isPropertyAssignment(t)) && OS.isBinaryExpression(t.parent.parent) && 6 === OS.getAssignmentDeclarationKind(t.parent.parent)) + if (r = G(t.parent.parent.left)) return no(r); + var r, t = OS.getEffectiveJSDocHost(e); + if (t && OS.isFunctionLike(t)) return (r = G(t)) && r.valueDeclaration + } + }(e.parent); + if (r) return va(r, e.escapedText, t, void 0, e, !0) + } + }(e, t) : void 0; + if (!(o = bo(va(i || e, e.escapedText, t, r || s ? void 0 : o, e, !0, !1)))) return bo(s) + } else { + if (163 !== e.kind && 208 !== e.kind) throw OS.Debug.assertNever(e, "Unknown entity name kind."); + var s = 163 === e.kind ? e.left : e.expression, + c = 163 === e.kind ? e.right : e.name, + s = ro(s, a, r, !1, i); + if (!s || OS.nodeIsMissing(c)) return; + if (s === L) return s; + if (!(o = bo(ma(mo(s = s.valueDeclaration && OS.isInJSFile(s.valueDeclaration) && OS.isVariableDeclaration(s.valueDeclaration) && s.valueDeclaration.initializer && a1(s.valueDeclaration.initializer) && (i = io(a = s.valueDeclaration.initializer.arguments[0], a)) && (a = co(i)) ? a : s), c.escapedText, t)))) { + if (!r) { + i = to(s), a = OS.declarationNameToString(c), r = Xh(c, s); + if (r) return void se(c, OS.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, i, a, le(r)); + r = OS.isQualifiedName(e) && function(e) { + for (; OS.isQualifiedName(e.parent);) e = e.parent; + return e + }(e); + if (ft && 788968 & t && r && !OS.isTypeOfExpression(r.parent) && function(e) { + var t = OS.getFirstIdentifier(e), + r = va(t, t.escapedText, 111551, void 0, t, !0); + if (r) { + for (; OS.isQualifiedName(t.parent);) { + if (!(r = fe(de(r), t.parent.right.escapedText))) return; + t = t.parent + } + return r + } + }(r)) return void se(r, OS.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, OS.entityNameToString(r)); + if (1920 & t && OS.isQualifiedName(e.parent)) { + r = bo(ma(mo(s), c.escapedText, 788968)); + if (r) return void se(e.parent.right, OS.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1, le(r), OS.unescapeLeadingUnderscores(e.parent.right.escapedText)) + } + se(c, OS.Diagnostics.Namespace_0_has_no_exported_member_1, i, a) + } + return + } + } + return OS.Debug.assert(0 == (1 & OS.getCheckFlags(o)), "Should never get an instantiated symbol here."), !OS.nodeIsSynthesized(e) && OS.isEntityName(e) && (2097152 & o.flags || 274 === e.parent.kind) && Qa(OS.getAliasDeclarationFromName(e), o, void 0, !0), o.flags & t || n ? o : Ha(o) + } + } + + function no(e) { + e = e.parent.valueDeclaration; + if (e) return (OS.isAssignmentDeclaration(e) ? OS.getAssignedExpandoInitializer(e) : OS.hasOnlyExpressionInitializer(e) ? OS.getDeclaredExpandoInitializer(e) : void 0) || e + } + + function io(e, t, r) { + var n = OS.getEmitModuleResolutionKind(Z) === OS.ModuleResolutionKind.Classic ? OS.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option : OS.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations; + return ao(e, t, r ? void 0 : n) + } + + function ao(e, t, r, n) { + return void 0 === n && (n = !1), OS.isStringLiteralLike(t) ? oo(e, t.text, r, t, n) : void 0 + } + + function oo(e, t, r, n, i) { + void 0 === i && (i = !1), OS.startsWith(t, "@types/") && se(n, c = OS.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1, OS.removePrefix(t, "@types/"), t); + var a = vu(t, !0); + if (a) return a; + var o, s, c, l, a = OS.getSourceFileOfNode(e), + u = OS.isStringLiteralLike(e) ? e : (null == (u = OS.findAncestor(e, OS.isImportCall)) ? void 0 : u.arguments[0]) || (null == (u = OS.findAncestor(e, OS.isImportDeclaration)) ? void 0 : u.moduleSpecifier) || (null == (u = OS.findAncestor(e, OS.isExternalModuleImportEqualsDeclaration)) ? void 0 : u.moduleReference.expression) || (null == (u = OS.findAncestor(e, OS.isExportDeclaration)) ? void 0 : u.moduleSpecifier) || (null == (u = OS.isModuleDeclaration(e) ? e : e.parent && OS.isModuleDeclaration(e.parent) && e.parent.name === e ? e.parent : void 0) ? void 0 : u.name) || (null == (u = OS.isLiteralImportTypeNode(e) ? e : void 0) ? void 0 : u.argument.literal), + u = u && OS.isStringLiteralLike(u) ? OS.getModeForUsageLocation(a, u) : a.impliedNodeFormat, + _ = OS.getResolvedModule(a, t, u), + d = _ && OS.getResolutionDiagnostic(Z, _), + p = _ && (!d || d === OS.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set) && g.getSourceFile(_.resolvedFileName); + if (p) return d && se(n, d, t, _.resolvedFileName), p.symbol ? (_.isExternalLibraryImport && !OS.resolutionExtensionIsTSOrJson(_.extension) && so(!1, n, _, t), OS.getEmitModuleResolutionKind(Z) !== OS.ModuleResolutionKind.Node16 && OS.getEmitModuleResolutionKind(Z) !== OS.ModuleResolutionKind.NodeNext || (f = a.impliedNodeFormat === OS.ModuleKind.CommonJS && !OS.findAncestor(e, OS.isImportCall) || !!OS.findAncestor(e, OS.isImportEqualsDeclaration), o = (s = OS.findAncestor(e, function(e) { + return OS.isImportTypeNode(e) || OS.isExportDeclaration(e) || OS.isImportDeclaration(e) + })) && OS.isImportTypeNode(s) ? null == (o = s.assertions) ? void 0 : o.assertClause : null == s ? void 0 : s.assertClause, f && p.impliedNodeFormat === OS.ModuleKind.ESNext && !OS.getResolutionModeOverrideForClause(o) && (OS.findAncestor(e, OS.isImportEqualsDeclaration) ? se(n, OS.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead, t) : (s = void 0, ".ts" !== (f = OS.tryGetExtensionFromPath(a.fileName)) && ".js" !== f && ".tsx" !== f && ".jsx" !== f || (o = ".ts" === f ? ".mts" : ".js" === f ? ".mjs" : void 0, s = (e = a.packageJsonScope) && !e.contents.packageJsonContent.type ? o ? OS.chainDiagnosticMessages(void 0, OS.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1, o, OS.combinePaths(e.packageDirectory, "package.json")) : OS.chainDiagnosticMessages(void 0, OS.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0, OS.combinePaths(e.packageDirectory, "package.json")) : o ? OS.chainDiagnosticMessages(void 0, OS.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module, o) : OS.chainDiagnosticMessages(void 0, OS.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)), oe.add(OS.createDiagnosticForNodeFromMessageChain(n, OS.chainDiagnosticMessages(s, OS.Diagnostics.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead, t)))))), bo(p.symbol)) : void(r && se(n, OS.Diagnostics.File_0_is_not_a_module, p.fileName)); + if (dt) { + var f = OS.findBestPatternMatch(dt, function(e) { + return e.pattern + }, t); + if (f) return bo(pt && pt.get(t) || f.symbol) + } + if (_ && !OS.resolutionExtensionIsTSOrJson(_.extension) && void 0 === d || d === OS.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type) i ? se(n, c = OS.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented, t, _.resolvedFileName) : so(Te && !!r, n, _, t); + else if (r) { + if (_) { + var e = g.getProjectReferenceRedirect(_.resolvedFileName); + if (e) return void se(n, OS.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, e, _.resolvedFileName) + } + d ? se(n, d, t, _.resolvedFileName) : (o = OS.tryExtractTSExtension(t), s = OS.pathIsRelative(t) && !OS.hasExtension(t), f = (p = OS.getEmitModuleResolutionKind(Z)) === OS.ModuleResolutionKind.Node16 || p === OS.ModuleResolutionKind.NodeNext, o ? (c = OS.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead, i = OS.removeExtension(t, o), v >= OS.ModuleKind.ES2015 && (i += ".mts" === o ? ".mjs" : ".cts" === o ? ".cjs" : ".js"), se(n, c, o, i)) : !Z.resolveJsonModule && OS.fileExtensionIs(t, ".json") && OS.getEmitModuleResolutionKind(Z) !== OS.ModuleResolutionKind.Classic && OS.hasJsonModuleEmitEnabled(Z) ? se(n, OS.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension, t) : u === OS.ModuleKind.ESNext && f && s ? (l = OS.getNormalizedAbsolutePath(t, OS.getDirectoryPath(a.path)), (d = null == (e = Ei.find(function(e) { + var t = e[0]; + e[1]; + return g.fileExists(l + t) + })) ? void 0 : e[1]) ? se(n, OS.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0, t + d) : se(n, OS.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)) : se(n, r, t)) + } + } + + function so(e, t, r, n) { + var i = r.packageId, + r = r.resolvedFileName, + a = !OS.isExternalModuleNameRelative(n) && i ? (a = i.name, o().has(OS.getTypesPackageName(a)) ? OS.chainDiagnosticMessages(void 0, OS.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1, i.name, OS.mangleScopedPackageName(i.name)) : (a = i.name, o().get(a) ? OS.chainDiagnosticMessages(void 0, OS.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1, i.name, n) : OS.chainDiagnosticMessages(void 0, OS.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0, n, OS.mangleScopedPackageName(i.name)))) : void 0; + ra(e, t, OS.chainDiagnosticMessages(a, OS.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type, n, r)) + } + + function co(e, t) { + if (null != e && e.exports) return t = function(e, t) { + if (!e || e === L || e === t || 1 === t.exports.size || 2097152 & e.flags) return e; + var r = ce(e); + if (r.cjsExportMerged) return r.cjsExportMerged; + var n = 33554432 & e.flags ? e : la(e); + n.flags = 512 | n.flags, void 0 === n.exports && (n.exports = OS.createSymbolTable()); + return t.exports.forEach(function(e, t) { + "export=" !== t && n.exports.set(t, n.exports.has(t) ? ua(n.exports.get(t), e) : e) + }), ce(n).cjsExportMerged = n, r.cjsExportMerged = n + }(bo(Wa(e.exports.get("export="), t)), bo(e)), bo(t) || e + } + + function lo(e, t, r, n) { + var i = co(e, r); + if (!r && i) { + if (!(n || 1539 & i.flags || OS.getDeclarationOfKind(i, 308))) return r = v >= OS.ModuleKind.ES2015 ? "allowSyntheticDefaultImports" : "esModuleInterop", se(t, OS.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export, r), i; + n = t.parent; + if (OS.isImportDeclaration(n) && OS.getNamespaceDeclarationNode(n) || OS.isImportCall(n)) { + var r = OS.isImportCall(n) ? n.arguments[0] : n.moduleSpecifier, + t = de(i), + a = n1(t, i, e, r); + if (a) return uo(i, a, n); + a = null == (a = null == e ? void 0 : e.declarations) ? void 0 : a.find(OS.isSourceFile), a = a && Oa(Ia(r), a.impliedNodeFormat); + if (OS.getESModuleInterop(Z) || a) { + var o = au(t, 0); + if ((o = o && o.length ? o : au(t, 1)) && o.length || fe(t, "default", !0) || a) return uo(i, i1(t, i, e, r), n) + } + } + } + return i + } + + function uo(e, t, r) { + var n = B(e.flags, e.escapedName), + r = (n.declarations = e.declarations ? e.declarations.slice() : [], n.parent = e.parent, n.target = e, n.originatingImport = r, e.valueDeclaration && (n.valueDeclaration = e.valueDeclaration), e.constEnumOnlyModule && (n.constEnumOnlyModule = !0), e.members && (n.members = new OS.Map(e.members)), e.exports && (n.exports = new OS.Map(e.exports)), Fl(t)); + return n.type = Bo(n, r.members, OS.emptyArray, OS.emptyArray, r.indexInfos), n + } + + function _o(e) { + return void 0 !== e.exports.get("export=") + } + + function po(e) { + return yu(yo(e)) + } + + function fo(e, t) { + t = yo(t); + if (t) return t.get(e) + } + + function go(e) { + return !(131068 & e.flags || 1 & OS.getObjectFlags(e) || sg(e) || De(e)) + } + + function mo(e) { + return 6256 & e.flags ? Gc(e, "resolvedExports") : 1536 & e.flags ? yo(e) : e.exports || E + } + + function yo(e) { + var t = ce(e); + return t.resolvedExports || (t.resolvedExports = vo(e)) + } + + function ho(n, e, i, a) { + e && e.forEach(function(e, t) { + var r; + "default" !== t && ((r = n.get(t)) ? i && a && r && Wa(r) !== Wa(e) && ((r = i.get(t)).exportsWithDuplicate ? r.exportsWithDuplicate.push(a) : r.exportsWithDuplicate = [a]) : (n.set(t, e), i && a && i.set(t, { + specifierText: OS.getTextOfNode(a.moduleSpecifier) + }))) + }) + } + + function vo(e) { + var l = []; + return function e(t) { + if (!(t && t.exports && OS.pushIfUnique(l, t))) return; + var a = new OS.Map(t.exports); + t = t.exports.get("__export"); + if (t) { + var r = OS.createSymbolTable(), + o = new OS.Map; + if (t.declarations) + for (var n = 0, i = t.declarations; n < i.length; n++) { + var s = i[n], + c = io(s, s.moduleSpecifier), + c = e(c); + ho(r, c, o, s) + } + o.forEach(function(e, t) { + e = e.exportsWithDuplicate; + if ("export=" !== t && e && e.length && !a.has(t)) + for (var r = 0, n = e; r < n.length; r++) { + var i = n[r]; + oe.add(OS.createDiagnosticForNode(i, OS.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity, o.get(t).specifierText, OS.unescapeLeadingUnderscores(t))) + } + }), ho(a, r) + } + return a + }(e = co(e)) || E + } + + function bo(e) { + var t; + return e && e.mergeId && (t = ti[e.mergeId]) ? t : e + } + + function G(e) { + return bo(e.symbol && Xc(e.symbol)) + } + + function xo(e) { + return bo(e.parent && Xc(e.parent)) + } + + function Do(t, e, r) { + var n, i, a, o = xo(t); + return !o || 262144 & t.flags ? (a = OS.mapDefined(t.declarations, function(e) { + if (!OS.isAmbientModule(e) && e.parent) { + if (Xo(e.parent)) return G(e.parent); + if (OS.isModuleBlock(e.parent) && e.parent.parent && co(G(e.parent.parent)) === t) return G(e.parent.parent) + } + if (OS.isClassExpression(e) && OS.isBinaryExpression(e.parent) && 63 === e.parent.operatorToken.kind && OS.isAccessExpression(e.parent.left) && OS.isEntityNameExpression(e.parent.left.expression)) return OS.isModuleExportsAccessExpression(e.parent.left) || OS.isExportsIdentifier(e.parent.left.expression) ? G(OS.getSourceFileOfNode(e)) : (u2(e.parent.left.expression), H(e.parent.left.expression).resolvedSymbol) + }), OS.length(a) ? OS.mapDefined(a, function(e) { + return To(e, t) ? e : void 0 + }) : void 0) : (a = OS.mapDefined(o.declarations, function(e) { + return o && So(e, o) + }), n = e && function(e, t) { + var r, n = OS.getSourceFileOfNode(t), + i = qS(n), + a = ce(e); + if (a.extendedContainersByFile && (r = a.extendedContainersByFile.get(i))) return r; + if (n && n.imports) { + for (var o = 0, s = n.imports; o < s.length; o++) { + var c = s[o]; + OS.nodeIsSynthesized(c) || (c = io(t, c, !0)) && To(c, e) && (r = OS.append(r, c)) + } + if (OS.length(r)) return (a.extendedContainersByFile || (a.extendedContainersByFile = new OS.Map)).set(i, r), r + } + if (a.extendedContainers) return a.extendedContainers; + for (var l = 0, u = g.getSourceFiles(); l < u.length; l++) { + var _ = u[l]; + OS.isExternalModule(_) && To(_ = G(_), e) && (r = OS.append(r, _)) + } + return a.extendedContainers = r || OS.emptyArray + }(t, e), i = function(e, t) { + e = !!OS.length(e.declarations) && OS.first(e.declarations); + if (111551 & t && e && e.parent && OS.isVariableDeclaration(e.parent) && (OS.isObjectLiteralExpression(e) && e === e.parent.initializer || OS.isTypeLiteralNode(e) && e === e.parent.type)) return G(e.parent) + }(o, r), e && o.flags & Jo(r) && zo(o, e, 1920, !1) ? OS.append(OS.concatenate(OS.concatenate([o], a), n), i) : (e = !(o.flags & Jo(r)) && 788968 & o.flags && 524288 & Pc(o).flags && 111551 === r ? jo(e, function(e) { + return OS.forEachEntry(e, function(e) { + if (e.flags & Jo(r) && de(e) === Pc(o)) return e + }) + }) : void 0, e = __spreadArray(__spreadArray(e ? [e] : [], a, !0), [o], !1), e = OS.append(e, i), OS.addRange(e, n))) + } + + function So(e, t) { + var e = Go(e), + r = e && e.exports && e.exports.get("export="); + return r && Co(r, t) ? e : void 0 + } + + function To(e, t) { + var r; + return e === xo(t) ? t : (r = e.exports && e.exports.get("export=")) && Co(r, t) ? e : (e = (r = mo(e)).get(t.escapedName)) && Co(e, t) ? e : OS.forEachEntry(r, function(e) { + if (Co(e, t)) return e + }) + } + + function Co(e, t) { + if (bo(Wa(bo(e))) === bo(Wa(bo(t)))) return e + } + + function Eo(e) { + return bo(e && 0 != (1048576 & e.flags) && e.exportSymbol || e) + } + + function ko(e, t) { + return !!(111551 & e.flags || 2097152 & e.flags && 111551 & Ga(e) && (t || !Ya(e))) + } + + function No(e) { + for (var t = 0, r = e.members; t < r.length; t++) { + var n = r[t]; + if (173 === n.kind && OS.nodeIsPresent(n.body)) return n + } + } + + function Ao(e) { + e = new t(ot, e); + return a++, e.id = a, null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.recordType(e), e + } + + function Fo(e) { + return new t(ot, e) + } + + function Po(e, t, r) { + void 0 === r && (r = 0); + e = Ao(e); + return e.intrinsicName = t, e.objectFlags = r, e + } + + function wo(e, t) { + var r = Ao(524288); + return r.objectFlags = e, r.symbol = t, r.members = void 0, r.properties = void 0, r.callSignatures = void 0, r.constructSignatures = void 0, r.indexInfos = void 0, r + } + + function Io(e) { + var t = Ao(262144); + return e && (t.symbol = e), t + } + + function Oo(e) { + return 95 === e.charCodeAt(0) && 95 === e.charCodeAt(1) && 95 !== e.charCodeAt(2) && 64 !== e.charCodeAt(2) && 35 !== e.charCodeAt(2) + } + + function Mo(e) { + var r; + return e.forEach(function(e, t) { + Lo(e, t) && (r = r || []).push(e) + }), r || OS.emptyArray + } + + function Lo(e, t) { + return !Oo(t) && ko(e) + } + + function Ro(e, t, r, n, i) { + return e.members = t, e.properties = OS.emptyArray, e.callSignatures = r, e.constructSignatures = n, e.indexInfos = i, t !== E && (e.properties = Mo(t)), e + } + + function Bo(e, t, r, n, i) { + return Ro(wo(16, e), t, r, n, i) + } + + function jo(e, n) { + for (var i, t = e; t; t = t.parent) { + var r = function(e) { + if (e.locals && !ga(e) && (i = n(e.locals, void 0, !0, e))) return { + value: i + }; + switch (e.kind) { + case 308: + if (!OS.isExternalOrCommonJsModule(e)) break; + case 264: + var t = G(e); + if (i = n((null == t ? void 0 : t.exports) || E, void 0, !0, e)) return { + value: i + }; + break; + case 260: + case 228: + case 261: + var r; + if ((G(e).members || E).forEach(function(e, t) { + 788968 & e.flags && (r = r || OS.createSymbolTable()).set(t, e) + }), r && (i = n(r, void 0, !1, e))) return { + value: i + } + } + }(t); + if ("object" == typeof r) return r.value + } + return n(tt, void 0, !0) + } + + function Jo(e) { + return 111551 === e ? 111551 : 1920 + } + + function zo(i, a, n, o, r) { + var e, t, s, c; + if (void 0 === r && (r = new OS.Map), i && ! function(e) { + if (e.declarations && e.declarations.length) { + for (var t = 0, r = e.declarations; t < r.length; t++) switch (r[t].kind) { + case 169: + case 171: + case 174: + case 175: + continue; + default: + return + } + return 1 + } + return + }(i)) return e = (e = ce(i)).accessibleChainCache || (e.accessibleChainCache = new OS.Map), t = jo(a, function(e, t, r, n) { + return n + }), t = "".concat(o ? 0 : 1, "|").concat(t && qS(t), "|").concat(n), e.has(t) ? e.get(t) : (c = WS(i), (s = r.get(c)) || r.set(c, s = []), c = jo(a, l), e.set(t, c), c); + + function l(e, t, r) { + if (OS.pushIfUnique(s, e)) return e = function(e, r, n) { + if (_(e.get(i.escapedName), void 0, r)) return [i]; + return OS.forEachEntry(e, function(e) { + if (2097152 & e.flags && "export=" !== e.escapedName && "default" !== e.escapedName && !(OS.isUMDExportSymbol(e) && a && OS.isExternalModule(OS.getSourceFileOfNode(a))) && (!o || OS.some(e.declarations, OS.isExternalModuleImportEqualsDeclaration)) && (!n || !OS.some(e.declarations, OS.isNamespaceReexportDeclaration)) && (r || !OS.getDeclarationOfKind(e, 278))) { + var t = d(e, Ha(e), r); + if (t) return t + } + if (e.escapedName === i.escapedName && e.exportSymbol && _(bo(e.exportSymbol), void 0, r)) return [i] + }) || (e === tt ? d(nt, nt, r) : void 0) + }(e, t, r), s.pop(), e + } + + function u(e, t) { + return !Uo(e, a, t) || !!zo(e.parent, a, Jo(t), o, r) + } + + function _(e, t, r) { + return (i === (t || e) || bo(i) === bo(t || e)) && !OS.some(e.declarations, Xo) && (r || u(bo(e), n)) + } + + function d(e, t, r) { + return _(e, t, r) ? [e] : (t = (r = mo(t)) && l(r, !0)) && u(e, Jo(n)) ? [e].concat(t) : void 0 + } + } + + function Uo(r, e, n) { + var i = !1; + return jo(e, function(e) { + var t; + return !!(e = bo(e.get(r.escapedName))) && (e === r || (e = (t = 2097152 & e.flags && !OS.getDeclarationOfKind(e, 278)) ? Ha(e) : e, !!((t ? Ga(e) : e.flags) & n) && (i = !0))) + }), i + } + + function Ko(e, t) { + return 0 === Ho(e, t, 788968, !1, !0).accessibility + } + + function Vo(e, t) { + return 0 === Ho(e, t, 111551, !1, !0).accessibility + } + + function qo(e, t, r) { + return 0 === Ho(e, t, r, !1, !1).accessibility + } + + function Wo(e, t, r, n) { + return Ho(e, t, r, n, !0) + } + + function Ho(e, t, r, n, i) { + if (e && t) { + n = function e(t, r, n, i, a, o) { + if (OS.length(t)) { + for (var s = !1, c = 0, l = t; c < l.length; c++) { + var u = l[c]; + if (_ = zo(u, r, i, !1)) { + var _, d = u; + if (_ = Yo(_[0], a)) return _ + } + if (o && OS.some(u.declarations, Xo)) { + if (a) { + s = !0; + continue + } + return { + accessibility: 0 + } + } + if (_ = e(Do(u, r, i), r, n, n === u ? Jo(i) : i, a, o)) return _ + } + return s ? { + accessibility: 0 + } : d ? { + accessibility: 1, + errorSymbolName: le(n, r, i), + errorModuleName: d !== n ? le(d, r, 1920) : void 0 + } : void 0 + } + }([e], t, e, r, n, i); + if (n) return n; + i = OS.forEach(e.declarations, Go); + if (i) + if (i !== Go(t)) return { + accessibility: 2, + errorSymbolName: le(e, t, r), + errorModuleName: le(i), + errorNode: OS.isInJSFile(t) ? t : void 0 + }; + return { + accessibility: 1, + errorSymbolName: le(e, t, r) + } + } + return { + accessibility: 0 + } + } + + function Go(e) { + e = OS.findAncestor(e, Qo); + return e && G(e) + } + + function Qo(e) { + return OS.isAmbientModule(e) || 308 === e.kind && OS.isExternalOrCommonJsModule(e) + } + + function Xo(e) { + return OS.isModuleWithStringLiteralName(e) || 308 === e.kind && OS.isExternalOrCommonJsModule(e) + } + + function Yo(r, n) { + var i; + if (OS.every(OS.filter(r.declarations, function(e) { + return 79 !== e.kind + }), function(e) { + if (_s(e)) return !0; + var t = Ea(e); { + if (t && !OS.hasSyntacticModifier(t, 1) && _s(t.parent)) return a(e, t); + if (OS.isVariableDeclaration(e) && OS.isVariableStatement(e.parent.parent) && !OS.hasSyntacticModifier(e.parent.parent, 1) && _s(e.parent.parent.parent)) return a(e, e.parent.parent); + if (OS.isLateVisibilityPaintedStatement(e) && !OS.hasSyntacticModifier(e, 1) && _s(e.parent)) return a(e, e); + if (OS.isBindingElement(e)) { + if (2097152 & r.flags && OS.isInJSFile(e) && null != (t = e.parent) && t.parent && OS.isVariableDeclaration(e.parent.parent) && null != (t = e.parent.parent.parent) && t.parent && OS.isVariableStatement(e.parent.parent.parent.parent) && !OS.hasSyntacticModifier(e.parent.parent.parent.parent, 1) && e.parent.parent.parent.parent.parent && _s(e.parent.parent.parent.parent.parent)) return a(e, e.parent.parent.parent.parent); + if (2 & r.flags) return t = OS.findAncestor(e, OS.isVariableStatement), !!OS.hasSyntacticModifier(t, 1) || !!_s(t.parent) && a(e, t) + } + } + return !1 + })) return { + accessibility: 0, + aliasesToMakeVisible: i + }; + + function a(e, t) { + return n && (H(e).isVisible = !0, i = OS.appendIfUnique(i, t)), !0 + } + } + + function Zo(e, t) { + var r = 183 === e.parent.kind || 230 === e.parent.kind && !OS.isPartOfTypeNode(e.parent) || 164 === e.parent.kind ? 1160127 : 163 === e.kind || 208 === e.kind || 268 === e.parent.kind ? 1920 : 788968, + e = OS.getFirstIdentifier(e), + t = va(t, e.escapedText, r, void 0, void 0, !1); + return t && 262144 & t.flags && 788968 & r || !t && OS.isThisIdentifier(e) && 0 === Wo(G(OS.getThisContainer(e, !1)), e, r, !1).accessibility ? { + accessibility: 0 + } : t && Yo(t, !0) || { + accessibility: 1, + errorSymbolName: OS.getTextOfNode(e), + errorNode: e + } + } + + function le(i, a, o, e, t) { + var s = 70221824, + c = (2 & (e = void 0 === e ? 4 : e) && (s |= 128), 1 & e && (s |= 512), 8 & e && (s |= 16384), 32 & e && (s |= 134217728), 16 & e && (s |= 1073741824), 4 & e ? P.symbolToNode : P.symbolToEntityName); + return t ? r(t).getText() : OS.usingSingleLineStringWriter(r); + + function r(e) { + var t = c(i, o, a, s), + r = 308 === (null == a ? void 0 : a.kind) ? OS.createPrinter({ + removeComments: !0, + neverAsciiEscape: !0 + }) : OS.createPrinter({ + removeComments: !0 + }), + n = a && OS.getSourceFileOfNode(a); + return r.writeNode(4, t, n, e), e + } + } + + function $o(i, a, o, s, e) { + return void 0 === o && (o = 0), e ? t(e).getText() : OS.usingSingleLineStringWriter(t); + + function t(e) { + var t = 262144 & o ? 1 === s ? 182 : 181 : 1 === s ? 177 : 176, + t = P.signatureToSignatureDeclaration(i, t, a, 70222336 | ns(o)), + r = OS.createPrinter({ + removeComments: !0, + omitTrailingSemicolon: !0 + }), + n = a && OS.getSourceFileOfNode(a); + return r.writeNode(4, t, n, OS.getTrailingSemicolonDeferringWriter(e)), e + } + } + + function ue(e, t, r, n) { + void 0 === r && (r = 1064960), void 0 === n && (n = OS.createTextWriter("")); + var i = Z.noErrorTruncation || 1 & r, + r = P.typeToTypeNode(e, t, 70221824 | ns(r) | (i ? 1 : 0), n); + return void 0 === r ? OS.Debug.fail("should always get typenode") : (e = OS.createPrinter({ + removeComments: e !== Fr + }), t = t && OS.getSourceFileOfNode(t), e.writeNode(4, r, t, n), e = n.getText(), (r = i ? 2 * OS.noTruncationMaximumTruncationLength : 2 * OS.defaultMaximumTruncationLength) && e && e.length >= r ? e.substr(0, r - "...".length) + "..." : e) + } + + function es(e, t) { + var r = rs(e.symbol) ? ue(e, e.symbol.valueDeclaration) : ue(e), + n = rs(t.symbol) ? ue(t, t.symbol.valueDeclaration) : ue(t); + return r === n && (r = ts(e), n = ts(t)), [r, n] + } + + function ts(e) { + return ue(e, void 0, 64) + } + + function rs(e) { + return e && e.valueDeclaration && OS.isExpression(e.valueDeclaration) && !rf(e.valueDeclaration) + } + + function ns(e) { + return 848330091 & (e = void 0 === e ? 0 : e) + } + + function is(e) { + return e.symbol && 32 & e.symbol.flags && (e === Sc(e.symbol) || 524288 & e.flags && 16777216 & OS.getObjectFlags(e)) + } + + function as(i, a, o, e) { + return void 0 === o && (o = 16384), e ? t(e).getText() : OS.usingSingleLineStringWriter(t); + + function t(e) { + var t = OS.factory.createTypePredicateNode(2 === i.kind || 3 === i.kind ? OS.factory.createToken(129) : void 0, 1 === i.kind || 3 === i.kind ? OS.factory.createIdentifier(i.parameterName) : OS.factory.createThisTypeNode(), i.type && P.typeToTypeNode(i.type, a, 70222336 | ns(o))), + r = OS.createPrinter({ + removeComments: !0 + }), + n = a && OS.getSourceFileOfNode(a); + return r.writeNode(4, t, n, e), e + } + } + + function os(e) { + return 8 === e ? "private" : 16 === e ? "protected" : "public" + } + + function ss(e) { + return e && e.parent && 265 === e.parent.kind && OS.isExternalModuleAugmentation(e.parent.parent) + } + + function cs(e) { + return 308 === e.kind || OS.isAmbientModule(e) + } + + function ls(e, t) { + var r, e = ce(e).nameType; + if (e) return 384 & e.flags ? (r = "" + e.value, OS.isIdentifierText(r, OS.getEmitScriptTarget(Z)) || OS.isNumericLiteralName(r) ? OS.isNumericLiteralName(r) && OS.startsWith(r, "-") ? "[".concat(r, "]") : r : '"'.concat(OS.escapeString(r, 34), '"')) : 8192 & e.flags ? "[".concat(us(e.symbol, t), "]") : void 0 + } + + function us(e, t) { + if (t && "default" === e.escapedName && !(16384 & t.flags) && (!(16777216 & t.flags) || !e.declarations || t.enclosingDeclaration && OS.findAncestor(e.declarations[0], cs) !== OS.findAncestor(t.enclosingDeclaration, cs))) return "default"; + if (e.declarations && e.declarations.length) { + var r = OS.firstDefined(e.declarations, function(e) { + return OS.getNameOfDeclaration(e) ? e : void 0 + }), + n = r && OS.getNameOfDeclaration(r); + if (r && n) { + if (OS.isCallExpression(r) && OS.isBindableObjectDefinePropertyCall(r)) return OS.symbolName(e); + if (OS.isComputedPropertyName(n) && !(4096 & OS.getCheckFlags(e))) { + var i = ce(e).nameType; + if (i && 384 & i.flags) { + i = ls(e, t); + if (void 0 !== i) return i + } + } + return OS.declarationNameToString(n) + } + if ((r = r || e.declarations[0]).parent && 257 === r.parent.kind) return OS.declarationNameToString(r.parent.name); + switch (r.kind) { + case 228: + case 215: + case 216: + return !t || t.encounteredError || 131072 & t.flags || (t.encounteredError = !0), 228 === r.kind ? "(Anonymous class)" : "(Anonymous function)" + } + } + i = ls(e, t); + return void 0 !== i ? i : OS.symbolName(e) + } + + function _s(t) { + var e; + return !!t && (void 0 === (e = H(t)).isVisible && (e.isVisible = !! function() { + switch (t.kind) { + case 341: + case 348: + case 342: + return t.parent && t.parent.parent && t.parent.parent.parent && OS.isSourceFile(t.parent.parent.parent); + case 205: + return _s(t.parent.parent); + case 257: + if (OS.isBindingPattern(t.name) && !t.name.elements.length) return; + case 264: + case 260: + case 261: + case 262: + case 259: + case 263: + case 268: + var e; + return OS.isExternalModuleAugmentation(t) ? 1 : (e = ms(t), (1 & OS.getCombinedModifierFlags(t) || 268 !== t.kind && 308 !== e.kind && 16777216 & e.flags ? _s : ga)(e)); + case 169: + case 168: + case 174: + case 175: + case 171: + case 170: + if (OS.hasEffectiveModifier(t, 24)) return; + case 173: + case 177: + case 176: + case 178: + case 166: + case 265: + case 181: + case 182: + case 184: + case 180: + case 185: + case 186: + case 189: + case 190: + case 193: + case 199: + return _s(t.parent); + case 270: + case 271: + case 273: + return; + case 165: + case 308: + case 267: + return 1; + default: + return + } + }()), e.isVisible) + } + + function ds(e, n) { + var t, i, a; + return e.parent && 274 === e.parent.kind ? t = va(e, e.escapedText, 2998271, void 0, e, !1) : 278 === e.parent.kind && (t = Ua(e.parent, 2998271)), t && ((a = new OS.Set).add(WS(t)), function r(e) { + OS.forEach(e, function(e) { + var t = Ea(e) || e; + n ? H(e).isVisible = !0 : (i = i || [], OS.pushIfUnique(i, t)), OS.isInternalModuleImportEqualsDeclaration(e) && (t = e.moduleReference, t = OS.getFirstIdentifier(t), e = va(e, t.escapedText, 901119, void 0, void 0, !1)) && a && OS.tryAddToSet(a, WS(e)) && r(e.declarations) + }) + }(t.declarations)), i + } + + function ps(e, t) { + var r = fs(e, t); + if (!(0 <= r)) return Xn.push(e), Yn.push(!0), Zn.push(t), 1; + for (var n = Xn.length, i = r; i < n; i++) Yn[i] = !1 + } + + function fs(e, t) { + for (var r = Xn.length - 1; 0 <= r; r--) { + if (function(e, t) { + switch (t) { + case 0: + return ce(e).type; + case 5: + return H(e).resolvedEnumType; + case 2: + return ce(e).declaredType; + case 1: + return e.resolvedBaseConstructorType; + case 3: + return e.resolvedReturnType; + case 4: + return e.immediateBaseConstraint; + case 6: + return e.resolvedTypeArguments; + case 7: + return e.baseTypesResolved; + case 8: + return ce(e).writeType + } + return OS.Debug.assertNever(t) + }(Xn[r], Zn[r])) return -1; + if (Xn[r] === e && Zn[r] === t) return r + } + return -1 + } + + function gs() { + return Xn.pop(), Zn.pop(), Yn.pop() + } + + function ms(e) { + return OS.findAncestor(OS.getRootDeclaration(e), function(e) { + switch (e.kind) { + case 257: + case 258: + case 273: + case 272: + case 271: + case 270: + return !1; + default: + return !0 + } + }).parent + } + + function ys(e, t) { + e = fe(e, t); + return e ? de(e) : void 0 + } + + function j(e) { + return e && 0 != (1 & e.flags) + } + + function _e(e) { + return e === R || 1 & e.flags && e.aliasSymbol + } + + function hs(e, t) { + var r; + return 0 === t && (r = G(e)) && ce(r).type || Fs(e, !1, t) + } + + function vs(e, t, r) { + if (131072 & (e = Sy(e, function(e) { + return !(98304 & e.flags) + })).flags) return un; + if (1048576 & e.flags) return Cy(e, function(e) { + return vs(e, t, r) + }); + for (var n = he(OS.map(t, hd)), i = [], a = [], o = 0, s = pe(e); o < s.length; o++) { + var c = vd(d = s[o], 8576); + xe(c, n) || 24 & OS.getDeclarationModifierFlagsFromSymbol(d) || !fp(d) ? a.push(c) : i.push(d) + } + if (Bd(e) || jd(n)) return 131072 & (n = a.length ? he(__spreadArray([n], a, !0)) : n).flags ? e : (p = (Zt = Zt || T_("Omit", 2, !0) || L) === L ? void 0 : Zt) ? o_(p, [e, n]) : R; + for (var l = OS.createSymbolTable(), u = 0, _ = i; u < _.length; u++) { + var d = _[u]; + l.set(d.escapedName, gp(d, !1)) + } + var p = Bo(r, l, OS.emptyArray, OS.emptyArray, uu(e)); + return p.objectFlags |= 4194304, p + } + + function bs(e) { + return !!(465829888 & e.flags) && X1(Jl(e) || te, 32768) + } + + function xs(e) { + return ny(xy(e, bs) ? Cy(e, function(e) { + return 465829888 & e.flags ? zl(e) : e + }) : e, 524288) + } + + function Ds(e, t) { + e = Ss(e); + return e ? Vy(e, t) : t + } + + function Ss(e) { + var t = function(e) { + var t = e.parent.parent; + switch (t.kind) { + case 205: + case 299: + return Ss(t); + case 206: + return Ss(e.parent); + case 257: + return t.initializer; + case 223: + return t.right + } + }(e); + if (t && t.flowNode) { + var r, n, i = Ts(e); + if (i) return i = OS.setTextRange(OS.parseNodeFactory.createStringLiteral(i), e), r = OS.isLeftHandSideExpression(t) ? t : OS.parseNodeFactory.createParenthesizedExpression(t), n = OS.setTextRange(OS.parseNodeFactory.createElementAccessExpression(r, i), e), OS.setParent(i, n), OS.setParent(n, e), r !== t && OS.setParent(r, n), n.flowNode = t.flowNode, n + } + } + + function Ts(e) { + var t = e.parent; + return 205 === e.kind && 203 === t.kind ? Cs(e.propertyName || e.name) : 299 === e.kind || 300 === e.kind ? Cs(e.name) : "" + t.elements.indexOf(e) + } + + function Cs(e) { + e = hd(e); + return 384 & e.flags ? "" + e.value : void 0 + } + + function Es(e, t) { + if (j(t)) return t; + var r = e.parent; + if ($ && 16777216 & e.flags && OS.isParameterDeclaration(e) ? t = Lg(t) : !$ || !r.parent.initializer || 65536 & ry(fy(r.parent.initializer)) || (t = ny(t, 524288)), 203 === r.kind) + if (e.dotDotDotToken) { + if (2 & (t = eu(t)).flags || !X0(t)) return se(e, OS.Diagnostics.Rest_types_may_only_be_created_from_object_types), R; + for (var n = [], i = 0, a = r.elements; i < a.length; i++) { + var o = a[i]; + o.dotDotDotToken || n.push(o.propertyName || o.name) + } + c = vs(t, n, e.symbol) + } else var s = e.propertyName || e.name, + c = Ds(e, qd(t, hd(s), 32, s)); + else { + var s = Wb(65 | (e.dotDotDotToken ? 0 : 128), t, re, r), + l = r.elements.indexOf(e); + c = e.dotDotDotToken ? Dy(t, De) ? Cy(t, function(e) { + return X_(e, l) + }) : z_(s) : dg(t) ? Ds(e, Hd(t, xp(l), 32 | (z0(e) ? 16 : 0), e.name) || R) : s + } + return e.initializer ? OS.getEffectiveTypeAnnotationNode(OS.walkUpBindingElementsAndPatterns(e)) ? !$ || 16777216 & ry(d2(e, 0)) ? c : xs(c) : p2(e, he([xs(c), d2(e, 0)], 2)) : c + } + + function ks(e) { + e = OS.getJSDocType(e); + if (e) return K(e) + } + + function Ns(e) { + e = OS.skipParentheses(e, !0); + return 206 === e.kind && 0 === e.elements.length + } + + function As(e, t, r) { + return void 0 === t && (t = !1), void 0 === r && (r = !0), $ && r ? Mg(e, t) : e + } + + function Fs(e, t, r) { + var n; + if (OS.isVariableDeclaration(e) && 246 === e.parent.parent.kind) return 4456448 & (n = Sd(Ch(V(e.parent.parent.expression, r)))).flags ? Td(n) : ne; + if (OS.isVariableDeclaration(e) && 247 === e.parent.parent.kind) return qb(e.parent.parent) || ee; + if (OS.isBindingPattern(e.parent)) return i = (n = e).dotDotDotToken ? 64 : 0, (i = hs(n.parent.parent, i)) && Es(n, i); + var i = OS.isPropertyDeclaration(e) && !OS.hasAccessorModifier(e) || OS.isPropertySignature(e), + t = t && (i && !!e.questionToken || OS.isParameter(e) && (!!e.questionToken || hu(e)) || xu(e)), + a = Hs(e); + if (a) return As(a, i, t); + if ((Te || OS.isInJSFile(e)) && OS.isVariableDeclaration(e) && !OS.isBindingPattern(e.name) && !(1 & OS.getCombinedModifierFlags(e)) && !(16777216 & e.flags)) { + if (!(2 & OS.getCombinedNodeFlags(e) || e.initializer && (a = e.initializer, 104 !== (a = OS.skipParentheses(a, !0)).kind) && (79 !== a.kind || Bm(a) !== rt))) return Nr; + if (e.initializer && Ns(e.initializer)) return Et + } + if (OS.isParameter(e)) { + var a = e.parent; + if (175 === a.kind && qc(a)) { + var o = OS.getDeclarationOfKind(G(e.parent), 174); + if (o) return o = Cu(o), (s = bS(a)) && e === s ? (OS.Debug.assert(!s.type), de(o.thisParameter)) : me(o) + } + var s = function(e, t) { + var r = Eu(e); + if (r) return e = e.parameters.indexOf(t), (t.dotDotDotToken ? b1 : h1)(r, e) + }(a, e); + if (s) return s; + if (o = "this" === e.symbol.escapedName ? _0(a) : d0(e)) return As(o, !1, t) + } + if (OS.hasOnlyExpressionInitializer(e) && e.initializer) { + if (OS.isInJSFile(e) && !OS.isParameter(e)) { + var s = Rs(e, G(e), OS.getDeclaredExpandoInitializer(e)); + if (s) return s + } + return As(o = p2(e, d2(e, r)), i, t) + } + return OS.isPropertyDeclaration(e) && (Te || OS.isInJSFile(e)) ? OS.hasStaticModifier(e) ? (o = (a = OS.filter(e.parent.members, OS.isClassStaticBlockDeclaration)).length ? function(e, t) { + for (var r = OS.startsWith(e.escapedName, "__#") ? OS.factory.createPrivateIdentifier(e.escapedName.split("@")[1]) : OS.unescapeLeadingUnderscores(e.escapedName), n = 0, i = t; n < i.length; n++) { + var a = i[n], + o = OS.factory.createPropertyAccessExpression(OS.factory.createThis(), r), + a = (OS.setParent(o.expression, o), OS.setParent(o, a), o.flowNode = a.returnFlowNode, Ms(o, e)); + if (!Te || a !== Nr && a !== Et || se(e.valueDeclaration, OS.Diagnostics.Member_0_implicitly_has_an_1_type, le(e), ue(a)), !Dy(a, Th)) return Ib(a) + } + }(e.symbol, a) : 2 & OS.getEffectiveModifierFlags(e) ? eg(e.symbol) : void 0) && As(o, !0, t) : (o = (s = No(e.parent)) ? Os(e.symbol, s) : 2 & OS.getEffectiveModifierFlags(e) ? eg(e.symbol) : void 0) && As(o, !0, t) : OS.isJsxAttribute(e) ? Ur : OS.isBindingPattern(e.name) ? Us(e.name, !1, !0) : void 0 + } + + function Ps(t) { + var e; + return !(!t.valueDeclaration || !OS.isBinaryExpression(t.valueDeclaration)) && (void 0 === (e = ce(t)).isConstructorDeclaredProperty && (e.isConstructorDeclaredProperty = !1, e.isConstructorDeclaredProperty = !!Is(t) && OS.every(t.declarations, function(e) { + return OS.isBinaryExpression(e) && b0(e) && (209 !== e.left.kind || OS.isStringOrNumericLiteralLike(e.left.argumentExpression)) && !Bs(void 0, e, t, e) + })), e.isConstructorDeclaredProperty) + } + + function ws(e) { + e = e.valueDeclaration; + return e && OS.isPropertyDeclaration(e) && !OS.getEffectiveTypeAnnotationNode(e) && !e.initializer && (Te || OS.isInJSFile(e)) + } + + function Is(e) { + if (e.declarations) + for (var t = 0, r = e.declarations; t < r.length; t++) { + var n = r[t], + n = OS.getThisContainer(n, !1); + if (n && (173 === n.kind || Qv(n))) return n + } + } + + function Os(e, t) { + var r = OS.startsWith(e.escapedName, "__#") ? OS.factory.createPrivateIdentifier(e.escapedName.split("@")[1]) : OS.unescapeLeadingUnderscores(e.escapedName), + r = OS.factory.createPropertyAccessExpression(OS.factory.createThis(), r), + t = (OS.setParent(r.expression, r), OS.setParent(r, t), r.flowNode = t.returnFlowNode, Ms(r, e)); + return !Te || t !== Nr && t !== Et || se(e.valueDeclaration, OS.Diagnostics.Member_0_implicitly_has_an_1_type, le(e), ue(t)), Dy(t, Th) ? void 0 : Ib(t) + } + + function Ms(e, t) { + t = (null == t ? void 0 : t.valueDeclaration) && (!ws(t) || 2 & OS.getEffectiveModifierFlags(t.valueDeclaration)) && eg(t) || re; + return Vy(e, Nr, t) + } + + function Ls(e, t) { + var r = OS.getAssignedExpandoInitializer(e.valueDeclaration); + if (r) return (n = OS.getJSDocTypeTag(r)) && n.typeExpression ? K(n.typeExpression) : e.valueDeclaration && Rs(e.valueDeclaration, e, r) || Sg(u2(r)); + var n, i, a = !1, + o = !1; + if (!(f = Ps(e) ? Os(e, Is(e)) : f)) { + var s = void 0; + if (e.declarations) { + for (var c = void 0, l = 0, u = e.declarations; l < u.length; l++) { + var _, d = u[l], + p = OS.isBinaryExpression(d) || OS.isCallExpression(d) ? d : OS.isAccessExpression(d) ? OS.isBinaryExpression(d.parent) ? d.parent : d : void 0; + !p || ((4 === (_ = OS.isAccessExpression(p) ? OS.getAssignmentDeclarationPropertyAccessKind(p) : OS.getAssignmentDeclarationKind(p)) || OS.isBinaryExpression(p) && b0(p, _)) && (js(p) ? a = !0 : o = !0), c = OS.isCallExpression(p) ? c : Bs(c, p, e, d)) || (s = s || []).push(OS.isBinaryExpression(p) || OS.isCallExpression(p) ? function(e, t, r, n) { + if (OS.isCallExpression(r)) { + if (t) return de(t); + var i = u2(r.arguments[2]), + a = ys(i, "value"); + if (a) return a; + a = ys(i, "get"); + if (a) { + a = gv(a); + if (a) return me(a) + } + a = ys(i, "set"); + if (a) { + i = gv(a); + if (i) return E1(i) + } + return ee + } + if (function(t, e) { + return OS.isPropertyAccessExpression(t) && 108 === t.expression.kind && OS.forEachChildRecursively(e, function(e) { + return Jm(t, e) + }) + }(r.left, r.right)) return ee; + a = 1 === n && (OS.isPropertyAccessExpression(r.left) || OS.isElementAccessExpression(r.left)) && (OS.isModuleExportsAccessExpression(r.left.expression) || OS.isIdentifier(r.left.expression) && OS.isExportsIdentifier(r.left.expression)), i = t ? de(t) : (a ? hp : Sg)(u2(r.right)); { + var o; + if (524288 & i.flags && 2 === n && "export=" === e.escapedName) return a = Fl(i), o = OS.createSymbolTable(), OS.copyEntries(a.members, o), n = o.size, t && !t.exports && (t.exports = OS.createSymbolTable()), (t || e).exports.forEach(function(e, t) { + var r, n, i = o.get(t); + !i || i === e || 2097152 & e.flags ? o.set(t, e) : 111551 & e.flags && 111551 & i.flags ? (e.valueDeclaration && i.valueDeclaration && OS.getSourceFileOfNode(e.valueDeclaration) !== OS.getSourceFileOfNode(i.valueDeclaration) && (r = OS.unescapeLeadingUnderscores(e.escapedName), n = (null == (n = OS.tryCast(i.valueDeclaration, OS.isNamedDeclaration)) ? void 0 : n.name) || i.valueDeclaration, OS.addRelatedInfo(se(e.valueDeclaration, OS.Diagnostics.Duplicate_identifier_0, r), OS.createDiagnosticForNode(n, OS.Diagnostics._0_was_also_declared_here, r)), OS.addRelatedInfo(se(n, OS.Diagnostics.Duplicate_identifier_0, r), OS.createDiagnosticForNode(e.valueDeclaration, OS.Diagnostics._0_was_also_declared_here, r))), (n = B(e.flags | i.flags, t)).type = he([de(e), de(i)]), n.valueDeclaration = i.valueDeclaration, n.declarations = OS.concatenate(i.declarations, e.declarations), o.set(t, n)) : o.set(t, ua(e, i)) + }), t = Bo(n !== o.size ? void 0 : a.symbol, o, a.callSignatures, a.constructSignatures, a.indexInfos), n === o.size && (i.aliasSymbol && (t.aliasSymbol = i.aliasSymbol, t.aliasTypeArguments = i.aliasTypeArguments), 4 & OS.getObjectFlags(i)) && (t.aliasSymbol = i.symbol, e = ye(i), t.aliasTypeArguments = OS.length(e) ? e : void 0), t.objectFlags |= 4096 & OS.getObjectFlags(i), t.symbol && 32 & t.symbol.flags && i === Sc(t.symbol) && (t.objectFlags |= 16777216), t + } + if (gg(i)) return Zg(r, Ct), Ct; + return i + }(e, t, p, _) : ae) + } + f = c + } + if (!f) { + if (!OS.length(s)) return R; + r = a && e.declarations ? (n = s, i = e.declarations, OS.Debug.assert(n.length === i.length), n.filter(function(e, t) { + t = i[t], t = OS.isBinaryExpression(t) ? t : OS.isBinaryExpression(t.parent) ? t.parent : void 0; + return t && js(t) + })) : void 0; + o && (g = eg(e)) && ((r = r || []).push(g), a = !0); + var f = he(OS.some(r, function(e) { + return !!(-98305 & e.flags) + }) ? r : s) + } + } + var g = Xg(As(f, !1, o && !a)); + return e.valueDeclaration && Sy(g, function(e) { + return !!(-98305 & e.flags) + }) === ae ? (Zg(e.valueDeclaration, ee), ee) : g + } + + function Rs(e, t, r) { + var n; + if (OS.isInJSFile(e) && r && OS.isObjectLiteralExpression(r) && !r.properties.length) { + for (var i = OS.createSymbolTable(); OS.isBinaryExpression(e) || OS.isPropertyAccessExpression(e);) { + var a = G(e); + null != (n = null == a ? void 0 : a.exports) && n.size && pa(i, a.exports), e = (OS.isBinaryExpression(e) ? e : e.parent).parent + } + var r = G(e), + o = (null != (o = null == r ? void 0 : r.exports) && o.size && pa(i, r.exports), Bo(t, i, OS.emptyArray, OS.emptyArray, OS.emptyArray)); + return o.objectFlags |= 4096, o + } + } + + function Bs(e, t, r, n) { + t = OS.getEffectiveTypeAnnotationNode(t.parent); + if (t) { + t = Xg(K(t)); + if (!e) return t; + _e(e) || _e(t) || sf(e, t) || Mb(void 0, e, n, t) + } + if (null != (n = r.parent) && n.valueDeclaration) { + t = OS.getEffectiveTypeAnnotationNode(r.parent.valueDeclaration); + if (t) { + n = fe(K(t), r.escapedName); + if (n) return oc(n) + } + } + return e + } + + function js(e) { + e = OS.getThisContainer(e, !1); + return 173 === e.kind || 259 === e.kind || 215 === e.kind && !OS.isPrototypePropertyAssignment(e.parent) + } + + function Js(e, t, r) { + return e.initializer ? As(p2(e, d2(e, 0, OS.isBindingPattern(e.name) ? Us(e.name, !0, !1) : te))) : OS.isBindingPattern(e.name) ? Us(e.name, t, r) : (r && !Ws(e) && Zg(e, ee), t ? Pr : ee) + } + + function zs(e, t, r) { + var n, i = e.elements, + a = OS.lastOrUndefined(i), + o = a && 205 === a.kind && a.dotDotDotToken ? a : void 0; + return 0 === i.length || 1 === i.length && o ? 2 <= U ? (a = ee, j_(L_(!0), [a])) : Ct : (a = OS.map(i, function(e) { + return OS.isOmittedExpression(e) ? ee : Js(e, t, r) + }), n = OS.findLastIndex(i, function(e) { + return !(e === o || OS.isOmittedExpression(e) || z0(e)) + }, i.length - 1) + 1, a = H_(a, OS.map(i, function(e, t) { + return e === o ? 4 : n <= t ? 2 : 1 + })), t && ((a = r_(a)).pattern = e, a.objectFlags |= 131072), a) + } + + function Us(e, t, r) { + return void 0 === t && (t = !1), void 0 === r && (r = !1), 203 === e.kind ? (n = e, i = t, a = r, s = OS.createSymbolTable(), c = 131200, OS.forEach(n.elements, function(e) { + var t = e.propertyName || e.name; + e.dotDotDotToken ? o = Vu(ne, ee, !1) : zc(t = hd(t)) ? (t = Wc(t), (t = B(4 | (e.initializer ? 16777216 : 0), t)).type = Js(e, i, a), t.bindingElement = e, s.set(t.escapedName, t)) : c |= 512 + }), (l = Bo(void 0, s, OS.emptyArray, OS.emptyArray, o ? [o] : OS.emptyArray)).objectFlags |= c, i && (l.pattern = n, l.objectFlags |= 131072), l) : zs(e, t, r); + var n, i, a, o, s, c, l + } + + function Ks(e, t) { + return qs(Fs(e, !0, 0), e, t) + } + + function Vs(e) { + e = G(e); + Ft = Ft || S_("SymbolConstructor", !1); + return Ft && e && e === Ft + } + + function qs(e, t, r) { + return e ? (4096 & e.flags && Vs(t.parent) && (e = Sp(t)), r && $g(t, e), Xg(e = 8192 & e.flags && (OS.isBindingElement(t) || !t.type) && e.symbol !== G(t) ? qr : e)) : (e = OS.isParameter(t) && t.dotDotDotToken ? Ct : ee, r && !Ws(t) && Zg(t, e), e) + } + + function Ws(e) { + e = OS.getRootDeclaration(e); + return H2(166 === e.kind ? e.parent : e) + } + + function Hs(e) { + e = OS.getEffectiveTypeAnnotationNode(e); + if (e) return K(e) + } + + function Gs(e) { + var t = ce(e); + return t.type || (e = function(e) { + if (4194304 & e.flags) return function(e) { + return (e = Pc(xo(e))).typeParameters ? t_(e, OS.map(e.typeParameters, function(e) { + return ee + })) : e + }(e); + if (e === at) return ee; + if (134217728 & e.flags && e.valueDeclaration) return n = G(OS.getSourceFileOfNode(e.valueDeclaration)), (r = B(n.flags, "exports")).declarations = n.declarations ? n.declarations.slice() : [], r.parent = e, (r.target = n).valueDeclaration && (r.valueDeclaration = n.valueDeclaration), n.members && (r.members = new OS.Map(n.members)), n.exports && (r.exports = new OS.Map(n.exports)), (n = OS.createSymbolTable()).set("exports", r), Bo(e, n, OS.emptyArray, OS.emptyArray, OS.emptyArray); + OS.Debug.assertIsDefined(e.valueDeclaration); + var t, r = e.valueDeclaration; { + var n; + if (OS.isCatchClauseVariableDeclarationOrBindingElement(r)) return void 0 === (n = OS.getEffectiveTypeAnnotationNode(r)) ? D ? te : ee : j(n = hD(n)) || n === te ? n : R + } + if (OS.isSourceFile(r) && OS.isJsonSourceFile(r)) return r.statements.length ? Xg(Sg(V(r.statements[0].expression))) : un; + if (OS.isAccessor(r)) return Ys(e); + if (!ps(e, 0)) return (512 & e.flags && !(67108864 & e.flags) ? ec : nc)(e); + if (274 === r.kind) t = qs(Hs(r) || u2(r.expression), r); + else if (OS.isBinaryExpression(r) || OS.isInJSFile(r) && (OS.isCallExpression(r) || (OS.isPropertyAccessExpression(r) || OS.isBindableStaticElementAccessExpression(r)) && OS.isBinaryExpression(r.parent))) t = Ls(e); + else if (OS.isPropertyAccessExpression(r) || OS.isElementAccessExpression(r) || OS.isIdentifier(r) || OS.isStringLiteralLike(r) || OS.isNumericLiteral(r) || OS.isClassDeclaration(r) || OS.isFunctionDeclaration(r) || OS.isMethodDeclaration(r) && !OS.isObjectLiteralMethod(r) || OS.isMethodSignature(r) || OS.isSourceFile(r)) { + if (9136 & e.flags) return ec(e); + t = OS.isBinaryExpression(r.parent) ? Ls(e) : Hs(r) || ee + } else if (OS.isPropertyAssignment(r)) t = Hs(r) || y2(r); + else if (OS.isJsxAttribute(r)) t = Hs(r) || $0(r); + else if (OS.isShorthandPropertyAssignment(r)) t = Hs(r) || m2(r.name, 0); + else if (OS.isObjectLiteralMethod(r)) t = Hs(r) || h2(r, 0); + else if (OS.isParameter(r) || OS.isPropertyDeclaration(r) || OS.isPropertySignature(r) || OS.isVariableDeclaration(r) || OS.isBindingElement(r) || OS.isJSDocPropertyLikeTag(r)) t = Ks(r, !0); + else if (OS.isEnumDeclaration(r)) t = ec(e); + else { + if (!OS.isEnumMember(r)) return OS.Debug.fail("Unhandled declaration kind! " + OS.Debug.formatSyntaxKind(r.kind) + " for " + OS.Debug.formatSymbol(e)); + t = tc(e) + } + return gs() ? t : (!(512 & e.flags) || 67108864 & e.flags ? nc : ec)(e) + }(e), t.type) || (t.type = e), t.type + } + + function Qs(e) { + if (e) switch (e.kind) { + case 174: + return OS.getEffectiveReturnTypeNode(e); + case 175: + return OS.getEffectiveSetAccessorTypeAnnotationNode(e); + case 169: + return OS.Debug.assert(OS.hasAccessorModifier(e)), OS.getEffectiveTypeAnnotationNode(e) + } + } + + function Xs(e) { + e = Qs(e); + return e && K(e) + } + + function Ys(e) { + var t = ce(e); + if (!t.type) { + if (!ps(e, 0)) return R; + var r = OS.getDeclarationOfKind(e, 174), + n = OS.getDeclarationOfKind(e, 175), + i = OS.tryCast(OS.getDeclarationOfKind(e, 169), OS.isAutoAccessorPropertyDeclaration), + a = r && OS.isInJSFile(r) && ks(r) || Xs(r) || Xs(n) || Xs(i) || r && r.body && w1(r) || i && i.initializer && Ks(i, !0); + a || (n && !H2(n) ? ra(Te, n, OS.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation, le(e)) : r && !H2(r) ? ra(Te, r, OS.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, le(e)) : i && !H2(i) && ra(Te, i, OS.Diagnostics.Member_0_implicitly_has_an_1_type, le(e), "any"), a = ee), gs() || (Qs(r) ? se(r, OS.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, le(e)) : Qs(n) || Qs(i) ? se(n, OS.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, le(e)) : r && Te && se(r, OS.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, le(e)), a = ee), t.type = a + } + return t.type + } + + function Zs(e) { + var t = ce(e); + if (!t.writeType) { + if (!ps(e, 8)) return R; + var r = null != (r = OS.getDeclarationOfKind(e, 175)) ? r : OS.tryCast(OS.getDeclarationOfKind(e, 169), OS.isAutoAccessorPropertyDeclaration), + n = Xs(r); + gs() || (Qs(r) && se(r, OS.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, le(e)), n = ee), t.writeType = n || Ys(e) + } + return t.writeType + } + + function $s(e) { + e = vc(Sc(e)); + return 8650752 & e.flags ? e : 2097152 & e.flags ? OS.find(e.types, function(e) { + return !!(8650752 & e.flags) + }) : void 0 + } + + function ec(e) { + var t, r = ce(e), + n = r; + return r.type || ((t = e.valueDeclaration && Yv(e.valueDeclaration, !1)) && (t = Xv(e, t)) && (e = r = t), n.type = r.type = function(e) { + var t = e.valueDeclaration; { + if (1536 & e.flags && OS.isShorthandAmbientModuleSymbol(e)) return ee; + if (t && (223 === t.kind || OS.isAccessExpression(t) && 223 === t.parent.kind)) return Ls(e); + if (512 & e.flags && t && OS.isSourceFile(t) && t.commonJsModuleIndicator) { + t = co(e); + if (t !== e) return ps(e, 0) ? (r = bo(e.exports.get("export=")), r = Ls(r, r === t ? void 0 : t), gs() ? r : nc(e)) : R + } + } + t = wo(16, e); { + var r; + return 32 & e.flags ? (r = $s(e)) ? ve([t, r]) : t : $ && 16777216 & e.flags ? Mg(t) : t + } + }(e)), r.type + } + + function tc(e) { + var t = ce(e); + return t.type || (t.type = Ac(e)) + } + + function rc(e) { + var t, r, n, i, a, o = ce(e); + return o.type || (t = Ha(e), n = e.declarations && Va(ka(e), !0), r = OS.firstDefined(null == n ? void 0 : n.declarations, function(e) { + return OS.isExportAssignment(e) ? Hs(e) : void 0 + }), o.type = null != n && n.declarations && eD(n.declarations) && e.declarations.length ? (n = n, i = OS.getSourceFileOfNode(n.declarations[0]), a = OS.unescapeLeadingUnderscores(n.escapedName), a = (n = n.declarations.every(function(e) { + return OS.isInJSFile(e) && OS.isAccessExpression(e) && OS.isModuleExportsAccessExpression(e.expression) + })) ? OS.factory.createPropertyAccessExpression(OS.factory.createPropertyAccessExpression(OS.factory.createIdentifier("module"), OS.factory.createIdentifier("exports")), a) : OS.factory.createPropertyAccessExpression(OS.factory.createIdentifier("exports"), a), n && OS.setParent(a.expression.expression, a.expression), OS.setParent(a.expression, a), OS.setParent(a, i), a.flowNode = i.endFlowNode, Vy(a, Nr, re)) : eD(e.declarations) ? Nr : r || (111551 & Ga(t) ? de(t) : R)), o.type + } + + function nc(e) { + var t = e.valueDeclaration; + return OS.getEffectiveTypeAnnotationNode(t) ? (se(e.valueDeclaration, OS.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, le(e)), R) : (Te && (166 !== t.kind || t.initializer) && se(e.valueDeclaration, OS.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer, le(e)), ee) + } + + function ic(e) { + e = ce(e); + return e.type || (OS.Debug.assertIsDefined(e.deferralParent), OS.Debug.assertIsDefined(e.deferralConstituents), e.type = (1048576 & e.deferralParent.flags ? he : ve)(e.deferralConstituents)), e.type + } + + function ac(e) { + var t, r = OS.getCheckFlags(e); + return 4 & e.flags ? 2 & r ? 65536 & r ? (!(t = ce(t = e)).writeType && t.deferralWriteConstituents && (OS.Debug.assertIsDefined(t.deferralParent), OS.Debug.assertIsDefined(t.deferralConstituents), t.writeType = (1048576 & t.deferralParent.flags ? he : ve)(t.deferralWriteConstituents)), t.writeType || ic(e)) : e.writeType || e.type : de(e) : 98304 & e.flags ? 1 & r ? (t = ce(t = e)).writeType || (t.writeType = be(ac(t.target), t.mapper)) : Zs(e) : de(e) + } + + function de(e) { + var t = OS.getCheckFlags(e); + if (65536 & t) return ic(e); + if (1 & t) return (r = ce(r = e)).type || (r.type = be(de(r.target), r.mapper)); + if (262144 & t) { + var r = e; + if (!r.type) { + var n = r.mappedType; + if (!ps(r, 0)) return n.containsError = !0, R; + var i = Dl(n.target || n), + a = zp(n.mapper, vl(n), r.keyType), + i = be(i, a), + a = $ && 16777216 & r.flags && !X1(i, 49152) ? Mg(i, !0) : 524288 & r.checkFlags ? Kg(i) : i; + gs() || (se(Se, OS.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1, le(r), ue(n)), a = R), r.type = a + } + return r.type + } + return 8192 & t ? ((n = ce(i = e)).type || (n.type = fm(i.propertyType, i.mappedType, i.constraintType)), n.type) : 7 & e.flags ? Gs(e) : 9136 & e.flags ? ec(e) : 8 & e.flags ? tc(e) : 98304 & e.flags ? Ys(e) : 2097152 & e.flags ? rc(e) : R + } + + function oc(e) { + return zg(de(e), !!(16777216 & e.flags)) + } + + function sc(e, t) { + return void 0 !== e && void 0 !== t && 0 != (4 & OS.getObjectFlags(e)) && e.target === t + } + + function cc(e) { + return 4 & OS.getObjectFlags(e) ? e.target : e + } + + function lc(e, n) { + return function e(t) { + { + var r; + if (7 & OS.getObjectFlags(t)) return (r = cc(t)) === n || OS.some(xc(r), e); + if (2097152 & t.flags) return OS.some(t.types, e) + } + return !1 + }(e) + } + + function uc(e, t) { + for (var r = 0, n = t; r < n.length; r++) { + var i = n[r]; + e = OS.appendIfUnique(e, Fc(G(i))) + } + return e + } + + function _c(t, e) { + for (;;) { + var r; + if ((t = t.parent) && OS.isBinaryExpression(t) && (6 !== (r = OS.getAssignmentDeclarationKind(t)) && 3 !== r || (r = G(t.left)) && r.parent && !OS.findAncestor(r.parent.valueDeclaration, function(e) { + return t === e + }) && (t = r.parent.valueDeclaration)), !t) return; + switch (t.kind) { + case 260: + case 228: + case 261: + case 176: + case 177: + case 170: + case 181: + case 182: + case 320: + case 259: + case 171: + case 215: + case 216: + case 262: + case 347: + case 348: + case 342: + case 341: + case 197: + case 191: + var n, i = _c(t, e); + return 197 === t.kind ? OS.append(i, Fc(G(t.typeParameter))) : 191 === t.kind ? OS.concatenate(i, ip(t)) : (n = uc(i, OS.getEffectiveTypeParameterDeclarations(t)), (a = e && (260 === t.kind || 228 === t.kind || 261 === t.kind || Qv(t)) && Sc(G(t)).thisType) ? OS.append(n, a) : n); + case 343: + var a = OS.getParameterSymbolFromJSDoc(t); + a && (t = a.valueDeclaration); + break; + case 323: + i = _c(t, e); + return t.tags ? uc(i, OS.flatMap(t.tags, function(e) { + return OS.isJSDocTemplateTag(e) ? e.typeParameters : void 0 + })) : i + } + } + } + + function dc(e) { + e = 32 & e.flags ? e.valueDeclaration : OS.getDeclarationOfKind(e, 261); + return OS.Debug.assert(!!e, "Class was missing valueDeclaration -OR- non-class had no interface declarations"), _c(e) + } + + function pc(e) { + if (e.declarations) { + for (var t = 0, r = e.declarations; t < r.length; t++) { + var n, i = r[t]; + (261 === i.kind || 260 === i.kind || 228 === i.kind || Qv(i) || OS.isTypeAlias(i)) && (n = uc(n, OS.getEffectiveTypeParameterDeclarations(i))) + } + return n + } + } + + function fc(e) { + e = ge(e, 1); + if (1 === e.length) { + var e = e[0]; + if (!e.typeParameters && 1 === e.parameters.length && YS(e)) return j(e = p1(e.parameters[0])) || _g(e) === ee + } + return !1 + } + + function gc(e) { + return 0 < ge(e, 1).length || (8650752 & e.flags ? (e = Jl(e)) && fc(e) : void 0) + } + + function mc(e) { + e = OS.getClassLikeDeclarationOfSymbol(e.symbol); + return e && OS.getEffectiveBaseTypeNode(e) + } + + function yc(e, t, r) { + var n = OS.length(t), + i = OS.isInJSFile(r); + return OS.filter(ge(e, 1), function(e) { + return (i || n >= Su(e.typeParameters)) && n <= OS.length(e.typeParameters) + }) + } + + function hc(e, t, r) { + var e = yc(e, t, r), + n = OS.map(t, K); + return OS.sameMap(e, function(e) { + return OS.some(e.typeParameters) ? Lu(e, n, OS.isInJSFile(r)) : e + }) + } + + function vc(e) { + if (!e.resolvedBaseConstructorType) { + var t = OS.getClassLikeDeclarationOfSymbol(e.symbol), + t = t && OS.getEffectiveBaseTypeNode(t), + r = mc(e); + if (!r) return e.resolvedBaseConstructorType = re; + if (!ps(e, 1)) return R; + var n, i = V(r.expression); + if (t && r !== t && (OS.Debug.assert(!t.typeArguments), V(t.expression)), 2621440 & i.flags && Fl(i), !gs()) return se(e.symbol.valueDeclaration, OS.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression, le(e.symbol)), e.resolvedBaseConstructorType = R; + if (!(1 & i.flags || i === Br || gc(i))) return t = se(r.expression, OS.Diagnostics.Type_0_is_not_a_constructor_function_type, ue(i)), 262144 & i.flags && (r = Xu(i), n = te, r && (r = ge(r, 1))[0] && (n = me(r[0])), i.symbol.declarations) && OS.addRelatedInfo(t, OS.createDiagnosticForNode(i.symbol.declarations[0], OS.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1, le(i.symbol), ue(n))), e.resolvedBaseConstructorType = R; + e.resolvedBaseConstructorType = i + } + return e.resolvedBaseConstructorType + } + + function bc(e, t) { + se(e, OS.Diagnostics.Type_0_recursively_references_itself_as_a_base_type, ue(t, void 0, 2)) + } + + function xc(e) { + if (!e.baseTypesResolved) { + if (ps(e, 7)) { + if (8 & e.objectFlags) e.resolvedBaseTypes = [(d = e, z_(he(OS.sameMap(d.typeParameters, function(e, t) { + return 8 & d.elementFlags[t] ? qd(e, ie) : e + }) || OS.emptyArray), d.readonly))]; + else if (96 & e.symbol.flags) { + if (32 & e.symbol.flags && ! function(e) { + e.resolvedBaseTypes = OS.resolvingEmptyArray; + var t = Ql(vc(e)); + if (!(2621441 & t.flags)) return e.resolvedBaseTypes = OS.emptyArray; + var r = mc(e), + n = t.symbol ? Pc(t.symbol) : void 0; + if (t.symbol && 32 & t.symbol.flags && function(e) { + var t = e.outerTypeParameters; { + var r; + if (t) return r = t.length - 1, e = ye(e), t[r].symbol !== e[r].symbol + } + return 1 + }(n)) i = a_(r, t.symbol); + else if (1 & t.flags) i = t; + else { + n = hc(t, r.typeArguments, r); + if (!n.length) return se(r.expression, OS.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments), e.resolvedBaseTypes = OS.emptyArray; + i = me(n[0]) + } + if (_e(i)) return e.resolvedBaseTypes = OS.emptyArray; + t = eu(i); { + var i; + if (!Dc(t)) return n = iu(void 0, i), i = OS.chainDiagnosticMessages(n, OS.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members, ue(t)), oe.add(OS.createDiagnosticForNodeFromMessageChain(r.expression, i)), e.resolvedBaseTypes = OS.emptyArray + } + if (e === t || lc(t, e)) return se(e.symbol.valueDeclaration, OS.Diagnostics.Type_0_recursively_references_itself_as_a_base_type, ue(e, void 0, 2)), e.resolvedBaseTypes = OS.emptyArray; + e.resolvedBaseTypes === OS.resolvingEmptyArray && (e.members = void 0); + e.resolvedBaseTypes = [t] + }(e), 64 & e.symbol.flags) { + var t = e; + if (t.resolvedBaseTypes = t.resolvedBaseTypes || OS.emptyArray, t.symbol.declarations) + for (var r = 0, n = t.symbol.declarations; r < n.length; r++) { + var i = n[r]; + if (261 === i.kind && OS.getInterfaceBaseTypeNodes(i)) + for (var a = 0, o = OS.getInterfaceBaseTypeNodes(i); a < o.length; a++) { + var s = o[a], + c = eu(K(s)); + _e(c) || (Dc(c) ? t === c || lc(c, t) ? bc(i, t) : t.resolvedBaseTypes === OS.emptyArray ? t.resolvedBaseTypes = [c] : t.resolvedBaseTypes.push(c) : se(s, OS.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members)) + } + } + } + } else OS.Debug.fail("type must be class or interface"); + if (!gs() && e.symbol.declarations) + for (var l = 0, u = e.symbol.declarations; l < u.length; l++) { + var _ = u[l]; + 260 !== _.kind && 261 !== _.kind || bc(_, e) + } + } + e.baseTypesResolved = !0 + } + var d; + return e.resolvedBaseTypes + } + + function Dc(e) { + if (262144 & e.flags) { + var t = Jl(e); + if (t) return Dc(t) + } + return !!(67633153 & e.flags && !Al(e) || 2097152 & e.flags && OS.every(e.types, Dc)) + } + + function Sc(e) { + var t, r, n, i, a = ce(e), + o = a; + return !a.declaredType && (t = 32 & e.flags ? 1 : 2, (i = Xv(e, e.valueDeclaration && ((i = (null == (i = null == (i = null == (i = (i = e.valueDeclaration) && Yv(i, !0)) ? void 0 : i.exports) ? void 0 : i.get("prototype")) ? void 0 : i.valueDeclaration) && function(e) { + if (!e.parent) return !1; + var t = e.parent; + for (; t && 208 === t.kind;) t = t.parent; + if (t && OS.isBinaryExpression(t) && OS.isPrototypeAccess(t.left) && 63 === t.operatorToken.kind) return e = OS.getInitializerOfBinaryExpression(t), OS.isObjectLiteralExpression(e) && e + }(i.valueDeclaration)) ? G(i) : void 0))) && (e = a = i), o = o.declaredType = a.declaredType = wo(t, e), r = dc(e), n = pc(e), r || n || 1 == t || ! function(e) { + if (e.declarations) + for (var t = 0, r = e.declarations; t < r.length; t++) { + var n = r[t]; + if (261 === n.kind) { + if (128 & n.flags) return; + n = OS.getInterfaceBaseTypeNodes(n); + if (n) + for (var i = 0, a = n; i < a.length; i++) { + var o = a[i]; + if (OS.isEntityNameExpression(o.expression)) { + o = ro(o.expression, 788968, !0); + if (!o || !(64 & o.flags) || Sc(o).thisType) return + } + } + } + } + return 1 + }(e)) && (o.objectFlags |= 4, o.typeParameters = OS.concatenate(r, n), o.outerTypeParameters = r, o.localTypeParameters = n, o.instantiations = new OS.Map, o.instantiations.set(Zu(o.typeParameters), o), (o.target = o).resolvedTypeArguments = o.typeParameters, o.thisType = Io(e), o.thisType.isThisType = !0, o.thisType.constraint = o), a.declaredType + } + + function Tc(e) { + var t = ce(e); + if (!t.declaredType) { + if (!ps(e, 2)) return R; + var r, n = OS.Debug.checkDefined(null == (n = e.declarations) ? void 0 : n.find(OS.isTypeAlias), "Type alias symbol with no valid declaration found"), + i = OS.isJSDocTypeAlias(n) ? n.typeExpression : n.type, + i = i ? K(i) : R; + gs() ? (r = pc(e)) && (t.typeParameters = r, t.instantiations = new OS.Map, t.instantiations.set(Zu(r), i)) : (i = R, 342 === n.kind ? se(n.typeExpression.type, OS.Diagnostics.Type_alias_0_circularly_references_itself, le(e)) : se(OS.isNamedDeclaration(n) && n.name || n, OS.Diagnostics.Type_alias_0_circularly_references_itself, le(e))), t.declaredType = i + } + return t.declaredType + } + + function Cc(e) { + var t = e.initializer; + if (!t) return !(16777216 & e.flags); + switch (t.kind) { + case 10: + case 8: + case 14: + return 1; + case 221: + return 40 === t.operator && 8 === t.operand.kind; + case 79: + return OS.nodeIsMissing(t) || G(e.parent).exports.get(t.escapedText); + case 223: + return function e(t) { + return !!OS.isStringLiteralLike(t) || 223 === t.kind && e(t.left) && e(t.right) + }(t); + default: + return + } + } + + function Ec(e) { + var t = ce(e); + if (void 0 !== t.enumKind) return t.enumKind; + var r = !1; + if (e.declarations) + for (var n = 0, i = e.declarations; n < i.length; n++) { + var a = i[n]; + if (263 === a.kind) + for (var o = 0, s = a.members; o < s.length; o++) { + var c = s[o]; + if (c.initializer && OS.isStringLiteralLike(c.initializer)) return t.enumKind = 1; + Cc(c) || (r = !0) + } + } + return t.enumKind = r ? 0 : 1 + } + + function kc(e) { + return 1024 & e.flags && !(1048576 & e.flags) ? Pc(xo(e.symbol)) : e + } + + function Nc(e) { + var t, r, n = ce(e); + if (n.declaredType) return n.declaredType; + if (1 === Ec(e)) { + m++; + var i = []; + if (e.declarations) + for (var a = 0, o = e.declarations; a < o.length; a++) { + var s = o[a]; + if (263 === s.kind) + for (var c = 0, l = s.members; c < l.length; c++) { + var u = l[c], + _ = UD(u), + d = yp((_ = void 0 !== _ ? _ : 0, t = m, r = G(u), d = void 0, t = t + ("string" == typeof _ ? "@" : "#") + _, d = 1024 | ("string" == typeof _ ? 128 : 256), gr.get(t) || (gr.set(t, t = mp(d, _, r)), t))); + ce(G(u)).declaredType = d, i.push(hp(d)) + } + } + if (i.length) return 1048576 & (p = he(i, 1, e, void 0)).flags && (p.flags |= 1024, p.symbol = e), n.declaredType = p + } + var p = Ao(32); + return p.symbol = e, n.declaredType = p + } + + function Ac(e) { + var t = ce(e); + return t.declaredType || (e = Nc(xo(e)), t.declaredType) || (t.declaredType = e), t.declaredType + } + + function Fc(e) { + var t = ce(e); + return t.declaredType || (t.declaredType = Io(e)) + } + + function Pc(e) { + return wc(e) || R + } + + function wc(e) { + return 96 & e.flags ? Sc(e) : 524288 & e.flags ? Tc(e) : 262144 & e.flags ? Fc(e) : 384 & e.flags ? Nc(e) : 8 & e.flags ? Ac(e) : 2097152 & e.flags ? (t = ce(e = e)).declaredType || (t.declaredType = Pc(Ha(e))) : void 0; + var t + } + + function Ic(e) { + switch (e.kind) { + case 131: + case 157: + case 152: + case 148: + case 160: + case 134: + case 153: + case 149: + case 114: + case 155: + case 144: + case 198: + return !0; + case 185: + return Ic(e.elementType); + case 180: + return !e.typeArguments || e.typeArguments.every(Ic) + } + return !1 + } + + function Oc(e) { + e = OS.getEffectiveConstraintOfTypeParameter(e); + return !e || Ic(e) + } + + function Mc(e) { + var t = OS.getEffectiveTypeAnnotationNode(e); + return t ? Ic(t) : !OS.hasInitializer(e) + } + + function Lc(e) { + if (e.declarations && 1 === e.declarations.length) { + var t = e.declarations[0]; + if (t) switch (t.kind) { + case 169: + case 168: + return Mc(t); + case 171: + case 170: + case 173: + case 174: + case 175: + return r = t, n = OS.getEffectiveReturnTypeNode(r), i = OS.getEffectiveTypeParameterDeclarations(r), (173 === r.kind || !!n && Ic(n)) && r.parameters.every(Mc) && i.every(Oc) + } + } + var r, n, i + } + + function Rc(e, t, r) { + for (var n = OS.createSymbolTable(), i = 0, a = e; i < a.length; i++) { + var o = a[i]; + n.set(o.escapedName, r && Lc(o) ? o : Vp(o, t)) + } + return n + } + + function Bc(e, t) { + for (var r = 0, n = t; r < n.length; r++) { + var i = n[r]; + e.has(i.escapedName) || jc(i) || e.set(i.escapedName, i) + } + } + + function jc(e) { + return e.valueDeclaration && OS.isPrivateIdentifierClassElementDeclaration(e.valueDeclaration) && OS.isStatic(e.valueDeclaration) + } + + function Jc(e) { + var t, r; + return e.declaredProperties || (r = Qc(t = e.symbol), e.declaredProperties = Mo(r), e.declaredCallSignatures = OS.emptyArray, e.declaredConstructSignatures = OS.emptyArray, e.declaredIndexInfos = OS.emptyArray, e.declaredCallSignatures = Nu(r.get("__call")), e.declaredConstructSignatures = Nu(r.get("__new")), e.declaredIndexInfos = qu(t)), e + } + + function zc(e) { + return !!(8576 & e.flags) + } + + function Uc(e) { + var t; + return !(!OS.isComputedPropertyName(e) && !OS.isElementAccessExpression(e)) && (t = OS.isComputedPropertyName(e) ? e.expression : e.argumentExpression, OS.isEntityNameExpression(t)) && zc(OS.isComputedPropertyName(e) ? q0(e) : u2(t)) + } + + function Kc(e) { + return 95 === e.charCodeAt(0) && 95 === e.charCodeAt(1) && 64 === e.charCodeAt(2) + } + + function Vc(e) { + e = OS.getNameOfDeclaration(e); + return !!e && Uc(e) + } + + function qc(e) { + return !OS.hasDynamicName(e) || Vc(e) + } + + function Wc(e) { + return 8192 & e.flags ? e.escapedName : 384 & e.flags ? OS.escapeLeadingUnderscores("" + e.value) : OS.Debug.fail() + } + + function Hc(e, t, r, n) { + OS.Debug.assert(!!n.symbol, "The member is expected to have a symbol."); + var i = H(n); + if (!i.resolvedSymbol) { + i.resolvedSymbol = n.symbol; + var a, o, s, c, l = OS.isBinaryExpression(n) ? n.left : n.name, + u = OS.isElementAccessExpression(l) ? u2(l.argumentExpression) : q0(l); + if (zc(u)) return a = Wc(u), o = n.symbol.flags, (s = r.get(a)) || r.set(a, s = B(0, a, 4096)), r = t && t.get(a), (s.flags & sa(o) || r) && (t = r ? OS.concatenate(r.declarations, s.declarations) : s.declarations, c = !(8192 & u.flags) && OS.unescapeLeadingUnderscores(a) || OS.declarationNameToString(l), OS.forEach(t, function(e) { + return se(OS.getNameOfDeclaration(e) || e, OS.Diagnostics.Property_0_was_also_declared_here, c) + }), se(l || n, OS.Diagnostics.Duplicate_property_0, c), s = B(0, a, 4096)), s.nameType = u, r = s, t = n, l = o, OS.Debug.assert(!!(4096 & OS.getCheckFlags(r)), "Expected a late-bound symbol."), r.flags |= l, (ce(t.symbol).lateSymbol = r).declarations ? t.symbol.isReplaceableByMethod || r.declarations.push(t) : r.declarations = [t], 111551 & l && (r.valueDeclaration && r.valueDeclaration.kind === t.kind || (r.valueDeclaration = t)), s.parent ? OS.Debug.assert(s.parent === e, "Existing symbol parent should match new one") : s.parent = e, i.resolvedSymbol = s + } + i.resolvedSymbol + } + + function Gc(e, t) { + var r, n, i = ce(e); + if (!i[t]) { + for (var a = "resolvedExports" === t, o = a ? 1536 & e.flags ? vo(e) : e.exports : e.members, s = (i[t] = o || E, OS.createSymbolTable()), c = 0, l = e.declarations || OS.emptyArray; c < l.length; c++) { + var u = l[c], + u = OS.getMembersOfDeclaration(u); + if (u) + for (var _ = 0, d = u; _ < d.length; _++) { + var p = d[_]; + a === OS.hasStaticModifier(p) && Vc(p) && Hc(e, o, s, p) + } + } + var f = e.assignmentDeclarationMembers; + if (f) + for (var g = 0, m = OS.arrayFrom(f.values()); g < m.length; g++) { + var p = m[g], + y = OS.getAssignmentDeclarationKind(p); + a == !(3 === y || OS.isBinaryExpression(p) && b0(p, y) || 9 === y || 6 === y) && Vc(p) && Hc(e, o, s, p) + } + i[t] = (f = s, (null != (r = o) && r.size ? null != f && f.size ? (pa(n = OS.createSymbolTable(), r), pa(n, f), n) : r : f) || E) + } + return i[t] + } + + function Qc(e) { + return 6256 & e.flags ? Gc(e, "resolvedMembers") : e.members || E + } + + function Xc(e) { + var t, r; + return 106500 & e.flags && "__computed" === e.escapedName ? (!(t = ce(e)).lateSymbol && OS.some(e.declarations, Vc) && (r = bo(e.parent), (OS.some(e.declarations, OS.hasStaticModifier) ? mo : Qc)(r)), t.lateSymbol || (t.lateSymbol = e)) : e + } + + function Yc(e, t, r) { + if (4 & OS.getObjectFlags(e)) { + var n = e.target, + i = ye(e); + if (OS.length(n.typeParameters) === OS.length(i)) return i = t_(n, OS.concatenate(i, [t || n.thisType])), r ? Ql(i) : i + } else if (2097152 & e.flags) return (n = OS.sameMap(e.types, function(e) { + return Yc(e, t, r) + })) !== e.types ? ve(n) : e; + return r ? Ql(e) : e + } + + function Zc(e, t, r, n) { + d = OS.rangeEquals(r, n, 0, r.length) ? (a = t.symbol ? Qc(t.symbol) : OS.createSymbolTable(t.declaredProperties), o = t.declaredCallSignatures, s = t.declaredConstructSignatures, t.declaredIndexInfos) : (i = wp(r, n), a = Rc(t.declaredProperties, i, 1 === r.length), o = Fp(t.declaredCallSignatures, i), s = Fp(t.declaredConstructSignatures, i), Pp(t.declaredIndexInfos, i)); + var i, a, o, s, r = xc(t); + if (r.length) { + Ro(e, a = t.symbol && a === Qc(t.symbol) ? OS.createSymbolTable(t.declaredProperties) : a, o, s, d); + for (var c = OS.lastOrUndefined(n), l = 0, u = r; l < u.length; l++) var _ = u[l], + _ = c ? Yc(be(_, i), c) : _, + _ = (Bc(a, pe(_)), o = OS.concatenate(o, ge(_, 0)), s = OS.concatenate(s, ge(_, 1)), _ !== ee ? uu(_) : [Vu(ne, ee, !1)]), + d = OS.concatenate(d, OS.filter(_, function(e) { + return !ou(d, e.keyType) + })) + } + Ro(e, a, o, s, d) + } + + function $c(e, t, r, n, i, a, o, s) { + s = new u(ot, s); + return s.declaration = e, s.typeParameters = t, s.parameters = n, s.thisParameter = r, s.resolvedReturnType = i, s.resolvedTypePredicate = a, s.minArgumentCount = o, s.resolvedMinArgumentCount = void 0, s.target = void 0, s.mapper = void 0, s.compositeSignatures = void 0, s.compositeKind = void 0, s + } + + function el(e) { + var t = $c(e.declaration, e.typeParameters, e.thisParameter, e.parameters, void 0, void 0, e.minArgumentCount, 39 & e.flags); + return t.target = e.target, t.mapper = e.mapper, t.compositeSignatures = e.compositeSignatures, t.compositeKind = e.compositeKind, t + } + + function tl(e, t) { + e = el(e); + return e.compositeSignatures = t, e.compositeKind = 1048576, e.target = void 0, e.mapper = void 0, e + } + + function rl(e, t) { + if ((24 & e.flags) === t) return e; + e.optionalCallSignatureCache || (e.optionalCallSignatureCache = {}); + var r = 8 === t ? "inner" : "outer"; + return e.optionalCallSignatureCache[r] || (e.optionalCallSignatureCache[r] = function(e, t) { + OS.Debug.assert(8 === t || 16 === t, "An optional call signature can either be for an inner call chain or an outer call chain, but not both."); + e = el(e); + return e.flags |= t, e + }(e, t)) + } + + function nl(o, e) { + if (YS(o)) { + var t = o.parameters.length - 1, + r = de(o.parameters[t]); + if (De(r)) return [n(r, t)]; + if (!e && 1048576 & r.flags && OS.every(r.types, De)) return OS.map(r.types, function(e) { + return n(e, t) + }) + } + return [o.parameters]; + + function n(n, i) { + var e = ye(n), + a = n.target.labeledElementDeclarations, + e = OS.map(e, function(e, t) { + var r = !!a && f1(a[t]) || g1(o, i + t, n), + t = n.target.elementFlags[t], + r = B(1, r, 12 & t ? 32768 : 2 & t ? 16384 : 0); + return r.type = 4 & t ? z_(e) : e, r + }); + return OS.concatenate(o.parameters.slice(0, i), e) + } + } + + function il(e, t, r, n, i) { + for (var a = 0, o = e; a < o.length; a++) { + var s = o[a]; + if (ag(s, t, r, n, i, r ? uf : cf)) return s + } + } + + function al(e) { + for (var t, r, n = 0; n < e.length; n++) { + if (0 === e[n].length) return OS.emptyArray; + 1 < e[n].length && (r = void 0 === r ? n : -1); + for (var i = 0, a = e[n]; i < a.length; i++) { + var o, s, c, l, u = a[i]; + t && il(t, u, !1, !1, !0) || (o = function(e, t, r) { + if (t.typeParameters) { + if (0 < r) return; + for (var n = 1; n < e.length; n++) + if (!il(e[n], t, !1, !1, !1)) return; + return [t] + } + for (var i, n = 0; n < e.length; n++) { + var a = n === r ? t : il(e[n], t, !0, !1, !0); + if (!a) return; + i = OS.appendIfUnique(i, a) + } + return i + }(e, u, n)) && (s = u, 1 < o.length && (l = u.thisParameter, (c = OS.forEach(o, function(e) { + return e.thisParameter + })) && (l = qg(c, ve(OS.mapDefined(o, function(e) { + return e.thisParameter && de(e.thisParameter) + })))), (s = tl(u, o)).thisParameter = l), (t = t || []).push(s)) + } + } + if (!OS.length(t) && -1 !== r) { + for (var _ = e[void 0 !== r ? r : 0], d = _.slice(), p = function(e) { + if (e !== _) { + var c = e[0]; + if (OS.Debug.assert(!!c, "getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"), !(d = c.typeParameters && OS.some(d, function(e) { + return !!e.typeParameters && !ol(c.typeParameters, e.typeParameters) + }) ? void 0 : OS.map(d, function(e) { + var t, r = c, + n = e.typeParameters || r.typeParameters, + i = (e.typeParameters && r.typeParameters && (t = wp(r.typeParameters, e.typeParameters)), e.declaration), + a = function(e, t, r) { + for (var n = x1(e), i = x1(t), a = i <= n ? e : t, o = a === e ? t : e, s = a === e ? n : i, c = S1(e) || S1(t), l = c && !S1(a), u = new Array(s + (l ? 1 : 0)), _ = 0; _ < s; _++) { + var d = v1(a, _), + p = (a === t && (d = be(d, r)), v1(o, _) || te), + d = (o === t && (p = be(p, r)), ve([d, p])), + p = c && !l && _ === s - 1, + f = _ >= D1(a) && _ >= D1(o), + g = n <= _ ? void 0 : g1(e, _), + m = i <= _ ? void 0 : g1(t, _), + f = B(1 | (f && !p ? 16777216 : 0), (g === m ? g : g ? m ? void 0 : g : m) || "arg".concat(_)); + f.type = p ? z_(d) : d, u[_] = f + } { + var y; + l && ((y = B(1, "args")).type = z_(h1(o, s)), o === t && (y.type = be(y.type, r)), u[s] = y) + } + return u + }(e, r, t), + o = function(e, t, r) { + return e && t ? (r = ve([de(e), be(de(t), r)]), qg(e, r)) : e || t + }(e.thisParameter, r.thisParameter, t), + s = Math.max(e.minArgumentCount, r.minArgumentCount); + return (i = $c(i, n, o, a, void 0, void 0, s, 39 & (e.flags | r.flags))).compositeKind = 1048576, i.compositeSignatures = OS.concatenate(2097152 !== e.compositeKind && e.compositeSignatures || [e], [r]), t && (i.mapper = 2097152 !== e.compositeKind && e.mapper && e.compositeSignatures ? jp(e.mapper, t) : t), i + }))) return "break" + } + }, f = 0, g = e; f < g.length; f++) + if ("break" === p(g[f])) break; + t = d + } + return t || OS.emptyArray + } + + function ol(e, t) { + if (OS.length(e) === OS.length(t)) { + if (e && t) + for (var r = wp(t, e), n = 0; n < e.length; n++) { + var i = e[n], + a = t[n]; + if (i !== a && !sf(Xu(i) || te, be(Xu(a) || te, r))) return + } + return 1 + } + } + + function sl(r) { + var e = uu(r[0]); + if (e) { + for (var n = [], t = 0, i = e; t < i.length; t++) ! function(e) { + var t = e.keyType; + OS.every(r, function(e) { + return !!_u(e, t) + }) && n.push(Vu(t, he(OS.map(r, function(e) { + return du(e, t) + })), OS.some(r, function(e) { + return _u(e, t).isReadonly + }))) + }(i[t]); + return n + } + return OS.emptyArray + } + + function cl(e, t) { + return e ? t ? ve([e, t]) : e : t + } + + function ll(e) { + var t = OS.countWhere(e, function(e) { + return 0 < ge(e, 1).length + }), + e = OS.map(e, fc); + return 0 < t && t === OS.countWhere(e, function(e) { + return e + }) && (t = e.indexOf(!0), e[t] = !1), e + } + + function ul(n) { + for (var i, a, o, s = n.types, c = ll(s), l = OS.countWhere(c, function(e) { + return e + }), e = function(r) { + var e, t = n.types[r]; + c[r] || ((e = ge(t, 1)).length && 0 < l && (e = OS.map(e, function(e) { + var t = el(e); + return t.resolvedReturnType = function(e, t, r, n) { + for (var i = [], a = 0; a < t.length; a++) a === n ? i.push(e) : r[a] && i.push(me(ge(t[a], 1)[0])); + return ve(i) + }(me(e), s, c, r), t + })), a = _l(a, e)), i = _l(i, ge(t, 0)), o = OS.reduceLeft(uu(t), function(e, t) { + return dl(e, t, !1) + }, o) + }, t = 0; t < s.length; t++) e(t); + Ro(n, E, i || OS.emptyArray, a || OS.emptyArray, o || OS.emptyArray) + } + + function _l(e, t) { + for (var r = 0, n = t; r < n.length; r++) ! function(t) { + e && !OS.every(e, function(e) { + return !ag(e, t, !1, !1, !1, cf) + }) || (e = OS.append(e, t)) + }(n[r]); + return e + } + + function dl(e, t, r) { + if (e) + for (var n = 0; n < e.length; n++) { + var i = e[n]; + if (i.keyType === t.keyType) return e[n] = Vu(i.keyType, (r ? he : ve)([i.type, t.type]), r ? i.isReadonly || t.isReadonly : i.isReadonly && t.isReadonly), e + } + return OS.append(e, t) + } + + function pl(e) { + var t, r, n, i, a, o, s, c, l, u; + e.target ? + ( + Ro(e, E, OS.emptyArray, OS.emptyArray, OS.emptyArray), + Ro(e, Rc(Pl(e.target), e.mapper, !1), + o = Fp(ge(e.target, 0), e.mapper), + u = Fp(ge(e.target, 1), e.mapper), + Pp(uu(e.target), e.mapper)) + ) : + 2048 & (t = bo(e.symbol)).flags ? + ( + Ro(e, E, OS.emptyArray, OS.emptyArray, OS.emptyArray), + o = Nu((i = Qc(t)).get("__call")), + u = Nu(i.get("__new")), + log('====================\n'), + i.forEach(function (key, val) { log(key, ': ', val.text) }), + Ro(e, i, o, u, qu(t)) + ) : + ( + i = E, + t.exports && (i = mo(t), t === nt) && (n = new OS.Map, i.forEach(function(e) { + var t; + 418 & e.flags || 512 & e.flags && null != (t = e.declarations) && t.length && OS.every(e.declarations, OS.isAmbientModule) || n.set(e.escapedName, e) + }), i = n), + Ro(e, i, OS.emptyArray, OS.emptyArray, OS.emptyArray), + 32 & t.flags && (11272192 & (o = vc(Sc(t))).flags ? + Bc(i = OS.createSymbolTable((s = Mo(c = i), (c = Ku(c)) ? OS.concatenate(s, [c]) : s)), pe(o)) : + o === ee && (a = Vu(ne, ee, !1))), + (c = Ku(i)) ? + r = Wu(c) : + (a && (r = OS.append(r, a)), + 384 & t.flags && (32 & Pc(t).flags || OS.some(e.properties, function(e) { + return !!(296 & de(e).flags) + })) && (r = OS.append(r, Pn))), + Ro(e, i, OS.emptyArray, OS.emptyArray, r || OS.emptyArray), + 8208 & t.flags && (e.callSignatures = Nu(t)), + 32 & t.flags && ( + l = Sc(t), + u = t.members ? + Nu(t.members.get("__constructor")) : + OS.emptyArray, + (u = 16 & t.flags ? + OS.addRange(u.slice(), OS.mapDefined(e.callSignatures, function(e) { + return Qv(e.declaration) ? $c(e.declaration, e.typeParameters, e.thisParameter, e.parameters, l, void 0, e.minArgumentCount, 39 & e.flags) : + void 0 + })) : u + ).length || (u = function(e) { + var t = ge(vc(e), 1), + r = !!(n = OS.getClassLikeDeclarationOfSymbol(e.symbol)) && OS.hasSyntacticModifier(n, 256); + if (0 === t.length) return [$c(void 0, e.localTypeParameters, void 0, OS.emptyArray, e, void 0, 0, r ? 4 : 0)]; + for (var n = mc(e), i = OS.isInJSFile(n), a = v_(n), o = OS.length(a), s = [], c = 0, l = t; c < l.length; c++) { + var u = l[c], + _ = Su(u.typeParameters), + d = OS.length(u.typeParameters); + (i || _ <= o && o <= d) && ((d = d ? Bu(u, Tu(a, u.typeParameters, _, i)) : el(u)).typeParameters = e.localTypeParameters, d.resolvedReturnType = e, d.flags = r ? 4 | d.flags : -5 & d.flags, s.push(d)) + } + return s + }(l)), + e.constructSignatures = u + ) + ) + } + + function fl(e) { + for (var t, r, n = _u(e.source, ne), i = El(e.mappedType), a = !(1 & i), o = 4 & i ? 0 : 16777216, i = n ? [Vu(ne, fm(n.type, e.mappedType, e.constraintType), a && n.isReadonly)] : OS.emptyArray, s = OS.createSymbolTable(), c = 0, l = pe(e.source); c < l.length; c++) { + var u, _, d = l[c], + p = 8192 | (a && K1(d) ? 8 : 0), + p = B(4 | d.flags & o, d.escapedName, p); + p.declarations = d.declarations, p.nameType = ce(d).nameType, p.propertyType = de(d), 8388608 & e.constraintType.type.flags && 262144 & e.constraintType.type.objectType.flags && 262144 & e.constraintType.type.indexType.flags ? (u = e.constraintType.type.objectType, _ = e.mappedType, t = e.constraintType.type, r = u, _ = be(_, wp([t.indexType, t.objectType], [xp(0), H_([r])])), p.mappedType = _, p.constraintType = Sd(u)) : (p.mappedType = e.mappedType, p.constraintType = e.constraintType), s.set(d.escapedName, p) + } + Ro(e, s, OS.emptyArray, OS.emptyArray, i) + } + + function gl(e) { + if (4194304 & e.flags) return (kg(t = Ql(e.type)) ? Y_ : Sd)(t); + if (16777216 & e.flags) { + if (e.root.isDistributive) { + var t = e.checkType, + r = gl(t); + if (r !== t) return Yp(e, Jp(e.root.checkType, r, e.mapper)) + } + return e + } + return 1048576 & e.flags ? Cy(e, gl) : !(2097152 & e.flags) || 2 === (t = e.types).length && 76 & t[0].flags && t[1] === pn ? e : ve(OS.sameMap(e.types, gl)) + } + + function ml(e) { + return 4096 & OS.getCheckFlags(e) + } + + function yl(e, t, r, n) { + for (var i = 0, a = pe(e); i < a.length; i++) n(vd(a[i], t)); + if (1 & e.flags) n(ne); + else + for (var o = 0, s = uu(e); o < s.length; o++) { + var c = s[o]; + (!r || 134217732 & c.keyType.flags) && n(c.keyType) + } + } + + function hl(l) { + var u, _ = OS.createSymbolTable(), + d = (Ro(l, E, OS.emptyArray, OS.emptyArray, OS.emptyArray), vl(l)), + e = bl(l), + p = xl(l.target || l), + f = Dl(l.target || l), + g = Ql(Cl(l)), + m = El(l), + t = S ? 128 : 8576; + + function r(c) { + by(p ? be(p, zp(l.mapper, d, c)) : c, function(e) { + var t, r, n, i, a, o, s = c; + zc(e) ? (t = Wc(e), (r = _.get(t)) ? (r.nameType = he([r.nameType, e]), r.keyType = he([r.keyType, s])) : (r = zc(s) ? fe(g, Wc(s)) : void 0, n = !!(4 & m || !(8 & m) && r && 16777216 & r.flags), a = !!(1 & m || !(2 & m) && r && K1(r)), o = $ && !n && r && 16777216 & r.flags, i = r ? ml(r) : 0, (n = B(4 | (n ? 16777216 : 0), t, 262144 | i | (a ? 8 : 0) | (o ? 524288 : 0))).mappedType = l, n.nameType = e, n.keyType = s, r && (n.syntheticOrigin = r, n.declarations = p ? void 0 : r.declarations), _.set(t, n))) : (Hu(e) || 33 & e.flags) && (i = 5 & e.flags ? ne : 40 & e.flags ? ie : e, a = be(f, zp(l.mapper, d, s)), o = Vu(i, a, !!(1 & m)), u = dl(u, o, !0)) + }) + } + Tl(l) ? yl(g, t, S, r) : by(gl(e), r), Ro(l, _, OS.emptyArray, OS.emptyArray, u || OS.emptyArray) + } + + function vl(e) { + return e.typeParameter || (e.typeParameter = Fc(G(e.declaration.typeParameter))) + } + + function bl(e) { + return e.constraintType || (e.constraintType = Ml(vl(e)) || R) + } + + function xl(e) { + return e.declaration.nameType ? e.nameType || (e.nameType = be(K(e.declaration.nameType), e.mapper)) : void 0 + } + + function Dl(e) { + return e.templateType || (e.templateType = e.declaration.type ? be(As(K(e.declaration.type), !0, !!(4 & El(e))), e.mapper) : R) + } + + function Sl(e) { + return OS.getEffectiveConstraintOfTypeParameter(e.declaration.typeParameter) + } + + function Tl(e) { + e = Sl(e); + return 195 === e.kind && 141 === e.operator + } + + function Cl(e) { + var t; + return e.modifiersType || (Tl(e) ? e.modifiersType = be(K(Sl(e).type), e.mapper) : (t = (t = bl(Qd(e.declaration))) && 262144 & t.flags ? Ml(t) : t, e.modifiersType = t && 4194304 & t.flags ? be(t.type, e.mapper) : te)), e.modifiersType + } + + function El(e) { + e = e.declaration; + return (e.readonlyToken ? 40 === e.readonlyToken.kind ? 2 : 1 : 0) | (e.questionToken ? 40 === e.questionToken.kind ? 8 : 4 : 0) + } + + function kl(e) { + e = El(e); + return 8 & e ? -1 : 4 & e ? 1 : 0 + } + + function Nl(e) { + var t = kl(e), + e = Cl(e); + return t || (Al(e) ? kl(e) : 0) + } + + function Al(e) { + if (32 & OS.getObjectFlags(e)) { + var t = bl(e); + if (jd(t)) return !0; + var r = xl(e); + if (r && jd(be(r, Op(vl(e), t)))) return !0 + } + return !1 + } + + function Fl(e) { + var t, r, n, i; + return e.members || (524288 & e.flags ? 4 & e.objectFlags ? (r = Jc((t = e).target), n = OS.concatenate(r.typeParameters, [r.thisType]), i = ye(t), Zc(t, r, n, i.length === n.length ? i : OS.concatenate(i, [t]))) : 3 & e.objectFlags ? Zc(e, Jc(e), OS.emptyArray, OS.emptyArray) : 1024 & e.objectFlags ? fl(e) : 16 & e.objectFlags ? pl(e) : 32 & e.objectFlags ? hl(e) : OS.Debug.fail("Unhandled object type " + OS.Debug.formatObjectFlags(e.objectFlags)) : 1048576 & e.flags ? (r = e, n = al(OS.map(r.types, function(e) { + return e === gt ? [Nn] : ge(e, 0) + })), i = al(OS.map(r.types, function(e) { + return ge(e, 1) + })), t = sl(r.types), Ro(r, E, n, i, t)) : 2097152 & e.flags ? ul(e) : OS.Debug.fail("Unhandled type " + OS.Debug.formatTypeFlags(e.flags))), e + } + + function Pl(e) { + return 524288 & e.flags ? Fl(e).properties : OS.emptyArray + } + + function wl(e, t) { + if (524288 & e.flags) { + e = Fl(e).members.get(t); + if (e && ko(e)) return e + } + } + + function Il(e) { + if (!e.resolvedProperties) { + for (var t = OS.createSymbolTable(), r = 0, n = e.types; r < n.length; r++) { + for (var i = n[r], a = 0, o = pe(i); a < o.length; a++) { + var s, c = o[a]; + t.has(c.escapedName) || (s = $l(e, c.escapedName)) && t.set(c.escapedName, s) + } + if (1048576 & e.flags && 0 === uu(i).length) break + } + e.resolvedProperties = Mo(t) + } + return e.resolvedProperties + } + + function pe(e) { + return (3145728 & (e = Xl(e)).flags ? Il : Pl)(e) + } + + function Ol(e) { + { + if (262144 & e.flags) return Ml(e); + if (!(8388608 & e.flags)) return 16777216 & e.flags ? Ul(t = e) ? jl(t) : void 0 : Jl(e); + if (Ul(r = e)) { + if (Gl(r)) return Vd(r.objectType, r.indexType); + var t = Ll(r.indexType); + if (t && t !== r.indexType) { + t = Hd(r.objectType, t, r.accessFlags); + if (t) return t + } + return (t = Ll(r.objectType)) && t !== r.objectType ? Hd(t, r.indexType, r.accessFlags) : void 0 + } + } + var r + } + + function Ml(e) { + return Ul(e) ? Xu(e) : void 0 + } + + function Ll(e) { + var t = zd(e, !1); + return t !== e ? t : Ol(e) + } + + function Rl(e) { + var t, r; + return e.resolvedDefaultConstraint || (r = (r = e).resolvedInferredTrueType || (r.resolvedInferredTrueType = r.combinedMapper ? be(K(r.root.node.trueType), r.combinedMapper) : rp(r)), t = np(e), e.resolvedDefaultConstraint = j(r) ? t : j(t) ? r : he([r, t])), e.resolvedDefaultConstraint + } + + function Bl(e) { + if (e.root.isDistributive && e.restrictiveInstantiation !== e) { + var t = zd(e.checkType, !1), + t = t === e.checkType ? Ol(t) : t; + if (t && t !== e.checkType) { + t = Yp(e, Jp(e.root.checkType, t, e.mapper)); + if (!(131072 & t.flags)) return t + } + } + } + + function jl(e) { + return Bl(e) || Rl(e) + } + + function Jl(e) { + var t; + return 464781312 & e.flags ? (t = Kl(e)) !== hn && t !== vn ? t : void 0 : 4194304 & e.flags ? $r : void 0 + } + + function zl(e) { + return Jl(e) || e + } + + function Ul(e) { + return Kl(e) !== vn + } + + function Kl(e) { + var i; + return e.resolvedBaseConstraint || (i = [], e.resolvedBaseConstraint = Yc(t(e), e)); + + function t(e) { + if (!e.immediateBaseConstraint) { + if (!ps(e, 4)) return vn; + var t, r = void 0, + n = ng(e); + (i.length < 10 || i.length < 50 && !OS.contains(i, n)) && (i.push(n), r = function(e) { + if (262144 & e.flags) return l = Xu(e), e.isThisType || !l ? l : u(l); + if (3145728 & e.flags) { + for (var t = e.types, r = [], n = !1, i = 0, a = t; i < a.length; i++) { + var o = a[i], + s = u(o); + s ? (s !== o && (n = !0), r.push(s)) : n = !0 + } + return n ? 1048576 & e.flags && r.length === t.length ? he(r) : 2097152 & e.flags && r.length ? ve(r) : void 0 : e + } + if (4194304 & e.flags) return $r; + if (134217728 & e.flags) return t = e.types, (c = OS.mapDefined(t, u)).length === t.length ? Cd(e.texts, c) : ne; + if (268435456 & e.flags) return (l = u(e.type)) && l !== e.type ? kd(e.symbol, l) : ne; { + var c; + if (8388608 & e.flags) return Gl(e) ? u(Vd(e.objectType, e.indexType)) : (t = u(e.objectType), c = u(e.indexType), (t = t && c && Hd(t, c, e.accessFlags)) && u(t)) + } { + var l; + if (16777216 & e.flags) return (l = jl(e)) && u(l) + } + if (33554432 & e.flags) return u(d_(e)); + return e + }(zd(e, !1)), i.pop()), gs() || (262144 & e.flags && (n = Gu(e)) && (t = se(n, OS.Diagnostics.Type_parameter_0_has_a_circular_constraint, ue(e)), !Se || OS.isNodeDescendantOf(n, Se) || OS.isNodeDescendantOf(Se, n) || OS.addRelatedInfo(t, OS.createDiagnosticForNode(Se, OS.Diagnostics.Circularity_originates_in_type_at_this_location))), r = vn), e.immediateBaseConstraint = r || hn + } + return e.immediateBaseConstraint + } + + function u(e) { + e = t(e); + return e !== hn && e !== vn ? e : void 0 + } + } + + function Vl(e) { + var t; + return e.default ? e.default === bn && (e.default = vn) : e.target ? (t = Vl(e.target), e.default = t ? be(t, e.mapper) : hn) : (e.default = bn, t = (t = e.symbol && OS.forEach(e.symbol.declarations, function(e) { + return OS.isTypeParameterDeclaration(e) && e.default + })) ? K(t) : hn, e.default === bn && (e.default = t)), e.default + } + + function ql(e) { + e = Vl(e); + return e !== hn && e !== vn ? e : void 0 + } + + function Wl(e) { + return e.symbol && OS.forEach(e.symbol.declarations, function(e) { + return OS.isTypeParameterDeclaration(e) && e.default + }) + } + + function Hl(e) { + return e.resolvedApparentType || (e.resolvedApparentType = function(e) { + var t = Wp(e); + if (t && !e.declaration.nameType) { + var r = Ml(t); + if (r && lg(r)) return be(e, Jp(t, r, e.mapper)) + } + return e + }(e)) + } + + function Gl(e) { + var t; + return 8388608 & e.flags && 32 & OS.getObjectFlags(t = e.objectType) && !Al(t) && jd(e.indexType) && !(8 & El(t)) && !t.declaration.nameType + } + + function Ql(e) { + var t, e = 465829888 & e.flags ? Jl(e) || te : e; + return 32 & OS.getObjectFlags(e) ? Hl(e) : 2097152 & e.flags ? (t = e).resolvedApparentType || (t.resolvedApparentType = Yc(t, t, !0)) : 402653316 & e.flags ? bt : 296 & e.flags ? xt : 2112 & e.flags ? (er = er || E_("BigInt", 0, !1)) || un : 528 & e.flags ? Dt : 12288 & e.flags ? P_() : 67108864 & e.flags ? un : 4194304 & e.flags ? $r : 2 & e.flags && !$ ? un : e + } + + function Xl(e) { + return eu(Ql(eu(e))) + } + + function Yl(e, t, r) { + for (var n, i, a, o, s, c, l, u = 1048576 & e.flags, _ = 4, d = u ? 0 : 8, p = !1, f = 0, g = e.types; f < g.length; f++) _e(E = Ql(g[f])) || 131072 & E.flags || (s = (C = fe(E, t, r)) ? OS.getDeclarationModifierFlagsFromSymbol(C) : 0, C ? (106500 & C.flags && (null == o && (o = u ? 0 : 16777216), u ? o |= 16777216 & C.flags : o &= C.flags), n ? C !== n && ((Fx(C) || C) === (Fx(n) || n) && -1 === ig(n, C, function(e, t) { + return e === t ? -1 : 0 + }) ? p = !!n.parent && !!OS.length(pc(n.parent)) : (i || (i = new OS.Map).set(WS(n), n), c = WS(C), i.has(c) || i.set(c, C))) : n = C, u && K1(C) ? d |= 8 : u || K1(C) || (d &= -9), d |= (24 & s ? 0 : 256) | (16 & s ? 512 : 0) | (8 & s ? 1024 : 0) | (32 & s ? 2048 : 0), vh(C) || (_ = 2)) : u && ((c = !Kc(t) && gu(E, t)) ? (d |= 32 | (c.isReadonly ? 8 : 0), a = OS.append(a, De(E) ? Ag(E) || re : c.type)) : !Fm(E) || 2097152 & OS.getObjectFlags(E) ? d |= 16 : (d |= 32, a = OS.append(a, re)))); + if (n && (!(u && (i || 48 & d) && 1536 & d) || i && function(e) { + for (var r, t = 0, n = e; t < n.length; t++) { + var i = function(t) { + return t.declarations ? r ? (r.forEach(function(e) { + OS.contains(t.declarations, e) || r.delete(e) + }), 0 === r.size ? { + value: void 0 + } : void 0) : (r = new OS.Set(t.declarations), "continue") : { + value: void 0 + } + }(n[t]); + if ("object" == typeof i) return i.value + } + return r + }(OS.arrayFrom(i.values())))) { + if (!(i || 16 & d || a)) return p ? ((l = qg(n, n.type)).parent = null == (N = null == (N = n.valueDeclaration) ? void 0 : N.symbol) ? void 0 : N.parent, l.containingType = e, l.mapper = n.mapper, l) : n; + for (var m, y, h, v, b, x = [], D = !1, S = 0, T = i ? OS.arrayFrom(i.values()) : [n]; S < T.length; S++) { + var C = T[S], + E = (b ? C.valueDeclaration && C.valueDeclaration !== b && (D = !0) : b = C.valueDeclaration, m = OS.addRange(m, C.declarations), de(C)), + k = (y || (y = E, h = ce(C).nameType), ac(C)); + v || k !== E ? v = OS.append(v || x.slice(), k) : E !== y && (d |= 64), (xg(E) || Ld(E) || E === on) && (d |= 128), 131072 & E.flags && E !== on && (d |= 131072), x.push(E) + } + OS.addRange(x, a); + var N = B(4 | (null != o ? o : 0), t, _ | d); + return N.containingType = e, !D && b && (N.valueDeclaration = b).symbol.parent && (N.parent = b.symbol.parent), N.declarations = m, N.nameType = h, 2 < x.length ? (N.checkFlags |= 65536, N.deferralParent = e, N.deferralConstituents = x, N.deferralWriteConstituents = v) : (N.type = (u ? he : ve)(x), v && (N.writeType = (u ? he : ve)(v))), N + } + } + + function Zl(e, t, r) { + var n = (null == (n = e.propertyCacheWithoutObjectFunctionPropertyAugment) || !n.get(t)) && r || null == (n = e.propertyCache) ? void 0 : n.get(t); + return n || (n = Yl(e, t, r)) && (r ? e.propertyCacheWithoutObjectFunctionPropertyAugment || (e.propertyCacheWithoutObjectFunctionPropertyAugment = OS.createSymbolTable()) : e.propertyCache || (e.propertyCache = OS.createSymbolTable())).set(t, n), n + } + + function $l(e, t, r) { + e = Zl(e, t, r); + return !e || 16 & OS.getCheckFlags(e) ? void 0 : e + } + + function eu(e) { + return 1048576 & e.flags && 16777216 & e.objectFlags ? e.resolvedReducedType || (e.resolvedReducedType = function(e) { + var t = OS.sameMap(e.types, eu); + if (t === e.types) return e; + e = he(t); + 1048576 & e.flags && (e.resolvedReducedType = e); + return e + }(e)) : 2097152 & e.flags && (16777216 & e.objectFlags || (e.objectFlags |= 16777216 | (OS.some(Il(e), tu) ? 33554432 : 0)), 33554432 & e.objectFlags) ? ae : e + } + + function tu(e) { + return ru(e) || nu(e) + } + + function ru(e) { + return !(16777216 & e.flags || 192 != (131264 & OS.getCheckFlags(e)) || !(131072 & de(e).flags)) + } + + function nu(e) { + return !e.valueDeclaration && !!(1024 & OS.getCheckFlags(e)) + } + + function iu(e, t) { + if (2097152 & t.flags && 33554432 & OS.getObjectFlags(t)) { + var r = OS.find(Il(t), ru); + if (r) return OS.chainDiagnosticMessages(e, OS.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents, ue(t, void 0, 536870912), le(r)); + r = OS.find(Il(t), nu); + if (r) return OS.chainDiagnosticMessages(e, OS.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some, ue(t, void 0, 536870912), le(r)) + } + return e + } + + function fe(e, t, r, n) { + if (524288 & (e = Xl(e)).flags) { + var i = Fl(e), + a = i.members.get(t); + if (a && ko(a, n)) return a; + if (r) return; + n = i === yn ? gt : i.callSignatures.length ? mt : i.constructSignatures.length ? yt : void 0; + if (n) { + a = wl(n, t); + if (a) return a + } + return wl(ft, t) + } + if (3145728 & e.flags) return $l(e, t, r) + } + + function au(e, t) { + return 3670016 & e.flags ? (e = Fl(e), 0 === t ? e.callSignatures : e.constructSignatures) : OS.emptyArray + } + + function ge(e, t) { + return au(Xl(e), t) + } + + function ou(e, t) { + return OS.find(e, function(e) { + return e.keyType === t + }) + } + + function su(e, t) { + for (var r, n, i, a = 0, o = e; a < o.length; a++) { + var s = o[a]; + s.keyType === ne ? r = s : cu(t, s.keyType) && (n ? (i = i || [n]).push(s) : n = s) + } + return i ? Vu(te, ve(OS.map(i, function(e) { + return e.type + })), OS.reduceLeft(i, function(e, t) { + return e && t.isReadonly + }, !0)) : n || (r && cu(t, ne) ? r : void 0) + } + + function cu(e, t) { + return xe(e, t) || t === ne && xe(e, ie) || t === ie && (e === rn || !!(128 & e.flags) && OS.isNumericLiteralName(e.value)) + } + + function lu(e) { + return 3670016 & e.flags ? Fl(e).indexInfos : OS.emptyArray + } + + function uu(e) { + return lu(Xl(e)) + } + + function _u(e, t) { + return ou(uu(e), t) + } + + function du(e, t) { + return null == (e = _u(e, t)) ? void 0 : e.type + } + + function pu(e, t) { + return uu(e).filter(function(e) { + return cu(t, e.keyType) + }) + } + + function fu(e, t) { + return su(uu(e), t) + } + + function gu(e, t) { + return fu(e, Kc(t) ? qr : bp(OS.unescapeLeadingUnderscores(t))) + } + + function mu(e) { + for (var t = 0, r = OS.getEffectiveTypeParameterDeclarations(e); t < r.length; t++) var n = r[t], + i = OS.appendIfUnique(i, Fc(n.symbol)); + return null != i && i.length ? i : !OS.isFunctionDeclaration(e) || null == (e = Eu(e)) ? void 0 : e.typeParameters + } + + function yu(e) { + var r = []; + return e.forEach(function(e, t) { + Oo(t) || r.push(e) + }), r + } + + function hu(e) { + return OS.isInJSFile(e) && (e.type && 319 === e.type.kind || OS.getJSDocParameterTags(e).some(function(e) { + var t = e.isBracketed, + e = e.typeExpression; + return t || !!e && 319 === e.type.kind + })) + } + + function vu(e, t) { + if (!OS.isExternalModuleNameRelative(e)) return (e = ma(tt, '"' + e + '"', 512)) && t ? bo(e) : e + } + + function bu(e) { + var t, r; + return !!(OS.hasQuestionToken(e) || xu(e) || hu(e)) || (e.initializer ? (t = Cu(e.parent), r = e.parent.parameters.indexOf(e), OS.Debug.assert(0 <= r), r >= D1(t, 3)) : !!(r = OS.getImmediatelyInvokedFunctionExpression(e.parent)) && !e.type && !e.dotDotDotToken && e.parent.parameters.indexOf(e) >= r.arguments.length) + } + + function xu(e) { + var t; + return !!OS.isJSDocPropertyLikeTag(e) && (t = e.isBracketed, e = e.typeExpression, t || !!e && 319 === e.type.kind) + } + + function Du(e, t, r, n) { + return { + kind: e, + parameterName: t, + parameterIndex: r, + type: n + } + } + + function Su(e) { + var t = 0; + if (e) + for (var r = 0; r < e.length; r++) Wl(e[r]) || (t = r + 1); + return t + } + + function Tu(e, t, r, n) { + var i = OS.length(t); + if (!i) return []; + var a = OS.length(e); + if (n || r <= a && a <= i) { + for (var o = e ? e.slice() : [], s = a; s < i; s++) o[s] = R; + for (var c = Mm(n), s = a; s < i; s++) { + var l = ql(t[s]); + n && l && (sf(l, te) || sf(l, un)) && (l = ee), o[s] = l ? be(l, wp(t, o)) : c + } + return o.length = t.length, o + } + return e && e.slice() + } + + function Cu(e) { + var t = H(e); + if (!t.resolvedSignature) { + var r = [], + n = 0, + i = 0, + a = void 0, + o = !1, + s = OS.getImmediatelyInvokedFunctionExpression(e), + c = OS.isJSDocConstructSignature(e); + !s && OS.isInJSFile(e) && OS.isValueSignatureDeclaration(e) && !OS.hasJSDocParameterTags(e) && !OS.getJSDocType(e) && (n |= 32); + for (var l = c ? 1 : 0; l < e.parameters.length; l++) { + var u = e.parameters[l], + _ = u.symbol, + d = OS.isJSDocParameterTag(u) ? u.typeExpression && u.typeExpression.type : u.type; + _ && 4 & _.flags && !OS.isBindingPattern(u.name) && (_ = va(u, _.escapedName, 111551, void 0, void 0, !1)), 0 === l && "this" === _.escapedName ? (o = !0, a = u.symbol) : r.push(_), d && 198 === d.kind && (n |= 2), xu(u) || u.initializer || u.questionToken || OS.isRestParameter(u) || s && r.length > s.arguments.length && !d || hu(u) || (i = r.length) + } + 174 !== e.kind && 175 !== e.kind || !qc(e) || o && a || (c = 174 === e.kind ? 175 : 174, (c = OS.getDeclarationOfKind(G(e), c)) && (a = (c = bS(c = c)) && c.symbol)); + c = 173 === e.kind ? Sc(bo(e.parent.symbol)) : void 0, c = c ? c.localTypeParameters : mu(e); + (OS.hasRestParameter(e) || OS.isInJSFile(e) && function(e, t) { + if (OS.isJSDocSignature(e) || !ku(e)) return; + var r = OS.lastOrUndefined(e.parameters), + r = r ? OS.getJSDocParameterTags(r) : OS.getJSDocTags(e).filter(OS.isJSDocParameterTag), + e = OS.firstDefined(r, function(e) { + return e.typeExpression && OS.isJSDocVariadicType(e.typeExpression.type) ? e.typeExpression.type : void 0 + }), + r = B(3, "args", 32768); + e ? r.type = z_(K(e.type)) : (r.checkFlags |= 65536, r.deferralParent = ae, r.deferralConstituents = [Ct], r.deferralWriteConstituents = [Ct]); + e && t.pop(); + return t.push(r), 1 + }(e, r)) && (n |= 1), (OS.isConstructorTypeNode(e) && OS.hasSyntacticModifier(e, 256) || OS.isConstructorDeclaration(e) && OS.hasSyntacticModifier(e.parent, 256)) && (n |= 4), t.resolvedSignature = $c(e, c, a, r, void 0, void 0, i, n) + } + return t.resolvedSignature + } + + function Eu(e) { + if (OS.isInJSFile(e) && OS.isFunctionLikeDeclaration(e)) return (null == (e = OS.getJSDocTypeTag(e)) ? void 0 : e.typeExpression) && gv(K(e.typeExpression)) + } + + function ku(e) { + var t = H(e); + return void 0 === t.containsArgumentsReference && (8192 & t.flags ? t.containsArgumentsReference = !0 : t.containsArgumentsReference = function e(t) { + if (!t) return !1; + switch (t.kind) { + case 79: + return t.escapedText === it.escapedName && YD(t) === it; + case 169: + case 171: + case 174: + case 175: + return 164 === t.name.kind && e(t.name); + case 208: + case 209: + return e(t.expression); + case 299: + return e(t.initializer); + default: + return !OS.nodeStartsNewLexicalEnvironment(t) && !OS.isPartOfTypeNode(t) && !!OS.forEachChild(t, e) + } + }(e.body)), t.containsArgumentsReference + } + + function Nu(e) { + if (!e || !e.declarations) return OS.emptyArray; + for (var t = [], r = 0; r < e.declarations.length; r++) { + var n = e.declarations[r]; + if (OS.isFunctionLike(n)) { + if (0 < r && n.body) { + var i = e.declarations[r - 1]; + if (n.parent === i.parent && n.kind === i.kind && n.pos === i.end) continue + } + t.push(!OS.isFunctionExpressionOrArrowFunction(n) && !OS.isObjectLiteralMethod(n) && Eu(n) || Cu(n)) + } + } + return t + } + + function Au(e) { + e = io(e, e); + if (e) { + e = co(e); + if (e) return de(e) + } + return ee + } + + function Fu(e) { + if (e.thisParameter) return de(e.thisParameter) + } + + function Pu(e) { + var t, r, n, i, a, o; + return e.resolvedTypePredicate || (e.target ? (t = Pu(e.target), e.resolvedTypePredicate = t ? (o = e.mapper, Du(t.kind, t.parameterName, t.parameterIndex, be(t.type, o))) : En) : e.compositeSignatures ? e.resolvedTypePredicate = function(e, t) { + for (var r, n = [], i = 0, a = e; i < a.length; i++) { + var o = Pu(a[i]); + if (!o || 2 === o.kind || 3 === o.kind) { + if (2097152 !== t) continue; + return + } + if (r) { + if (!od(r, o)) return + } else r = o; + n.push(o.type) + } + if (r) return e = wu(n, t), Du(r.kind, r.parameterName, r.parameterIndex, e) + }(e.compositeSignatures, e.compositeKind) || En : (t = void 0, (o = e.declaration && OS.getEffectiveReturnTypeNode(e.declaration)) || (n = Eu(e.declaration)) && e !== n && (t = Pu(n)), e.resolvedTypePredicate = o && OS.isTypePredicateNode(o) ? (n = e, i = (r = o).parameterName, a = r.type && K(r.type), 194 === i.kind ? Du(r.assertsModifier ? 2 : 0, void 0, void 0, a) : Du(r.assertsModifier ? 3 : 1, i.escapedText, OS.findIndex(n.parameters, function(e) { + return e.escapedName === i.escapedText + }), a)) : t || En), OS.Debug.assert(!!e.resolvedTypePredicate)), e.resolvedTypePredicate === En ? void 0 : e.resolvedTypePredicate + } + + function wu(e, t, r) { + return 2097152 !== t ? he(e, r) : ve(e) + } + + function me(e) { + if (!e.resolvedReturnType) { + if (!ps(e, 3)) return R; + var t, r, n = e.target ? be(me(e.target), e.mapper) : e.compositeSignatures ? be(wu(OS.map(e.compositeSignatures, me), e.compositeKind, 2), e.mapper) : Iu(e.declaration) || (OS.nodeIsMissing(e.declaration.body) ? ee : w1(e.declaration)); + 8 & e.flags ? n = Rg(n) : 16 & e.flags && (n = Mg(n)), gs() || (e.declaration && ((t = OS.getEffectiveReturnTypeNode(e.declaration)) ? se(t, OS.Diagnostics.Return_type_annotation_circularly_references_itself) : Te && (t = e.declaration, (r = OS.getNameOfDeclaration(t)) ? se(r, OS.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, OS.declarationNameToString(r)) : se(t, OS.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions))), n = ee), e.resolvedReturnType = n + } + return e.resolvedReturnType + } + + function Iu(e) { + if (173 === e.kind) return Sc(bo(e.parent.symbol)); + if (OS.isJSDocConstructSignature(e)) return K(e.parameters[0].type); + var t = OS.getEffectiveReturnTypeNode(e); + if (t) return K(t); + if (174 === e.kind && qc(e)) { + var t = OS.isInJSFile(e) && ks(e); + if (t) return t; + t = Xs(OS.getDeclarationOfKind(G(e), 175)); + if (t) return t + } + return (t = Eu(t = e)) && me(t) + } + + function Ou(e) { + return !e.resolvedReturnType && 0 <= fs(e, 3) + } + + function Mu(e) { + if (YS(e)) return (e = De(e = de(e.parameters[e.parameters.length - 1])) ? Ag(e) : e) && du(e, ie) + } + + function Lu(e, t, r, n) { + t = Ru(e, Tu(t, e.typeParameters, Su(e.typeParameters), r)); + if (n) { + var e = mv(me(t)); + if (e) return (r = el(e)).typeParameters = n, (e = el(t)).resolvedReturnType = zu(r), e + } + return t + } + + function Ru(e, t) { + var r = e.instantiations || (e.instantiations = new OS.Map), + n = Zu(t), + i = r.get(n); + return i || r.set(n, i = Bu(e, t)), i + } + + function Bu(e, t) { + return Kp(e, wp(e.typeParameters, t), !0) + } + + function ju(e) { + return e.typeParameters ? e.erasedSignatureCache || (e.erasedSignatureCache = Kp(e, Bp(e.typeParameters), !0)) : e + } + + function Ju(e) { + return e.typeParameters ? e.canonicalSignatureCache || (e.canonicalSignatureCache = Lu(t = e, OS.map(t.typeParameters, function(e) { + return e.target && !Ml(e.target) ? e.target : e + }), OS.isInJSFile(t.declaration))) : e; + var t + } + + function zu(e) { + var t, r; + return e.isolatedSignatureType || (t = void 0 === (t = null == (t = e.declaration) ? void 0 : t.kind) || 173 === t || 177 === t || 182 === t, (r = wo(16)).members = E, r.properties = OS.emptyArray, r.callSignatures = t ? OS.emptyArray : [e], r.constructSignatures = t ? [e] : OS.emptyArray, r.indexInfos = OS.emptyArray, e.isolatedSignatureType = r), e.isolatedSignatureType + } + + function Uu(e) { + return e.members ? Ku(e.members) : void 0 + } + + function Ku(e) { + return e.get("__index") + } + + function Vu(e, t, r, n) { + return { + keyType: e, + type: t, + isReadonly: r, + declaration: n + } + } + + function qu(e) { + e = Uu(e); + return e ? Wu(e) : OS.emptyArray + } + + function Wu(e) { + if (e.declarations) { + for (var r = [], t = 0, n = e.declarations; t < n.length; t++) ! function(t) { + var e; + 1 === t.parameters.length && (e = t.parameters[0]).type && by(K(e.type), function(e) { + Hu(e) && !ou(r, e) && r.push(Vu(e, t.type ? K(t.type) : ee, OS.hasEffectiveModifier(t, 64), t)) + }) + }(n[t]); + return r + } + return OS.emptyArray + } + + function Hu(e) { + return !!(4108 & e.flags) || Ld(e) || !!(2097152 & e.flags) && !Rd(e) && OS.some(e.types, Hu) + } + + function Gu(e) { + return OS.mapDefined(OS.filter(e.symbol && e.symbol.declarations, OS.isTypeParameterDeclaration), OS.getEffectiveConstraintOfTypeParameter)[0] + } + + function Qu(o, s) { + var e, c; + if (null != (e = o.symbol) && e.declarations) + for (var t = function(e) { + var t, i, a, r, n; + 192 === e.parent.kind && (t = void 0 === (t = (n = OS.walkUpParenthesizedTypesAndGetParentAndChild(e.parent.parent))[0]) ? e.parent : t, 180 !== (n = n[1]).kind || s ? 166 === n.kind && n.dotDotDotToken || 188 === n.kind || 199 === n.kind && n.dotDotDotToken ? c = OS.append(c, z_(te)) : 201 === n.kind ? c = OS.append(c, ne) : 165 === n.kind && 197 === n.parent.kind ? c = OS.append(c, $r) : 197 === n.kind && n.type && OS.skipParentheses(n.type) === e.parent && 191 === n.parent.kind && n.parent.extendsType === n && 197 === n.parent.checkType.kind && n.parent.checkType.type && (r = K((e = n.parent.checkType).type), c = OS.append(c, be(r, Op(Fc(G(e.typeParameter)), e.typeParameter.constraint ? K(e.typeParameter.constraint) : $r)))) : (a = z2(i = n)) && (r = i.typeArguments.indexOf(t)) < a.length && (e = Ml(a[r])) && (n = be(e, Lp(a, a.map(function(e, n) { + return function() { + var e = i, + t = a, + r = n; + return e.typeArguments && r < e.typeArguments.length ? K(e.typeArguments[r]) : j2(e, t)[r] + } + })))) !== o && (c = OS.append(c, n))) + }, r = 0, n = o.symbol.declarations; r < n.length; r++) t(n[r]); + return c && ve(c) + } + + function Xu(e) { + var t, r; + return e.constraint || (e.target ? (t = Ml(e.target), e.constraint = t ? be(t, e.mapper) : hn) : (t = Gu(e)) ? (1 & (r = K(t)).flags && !_e(r) && (r = 197 === t.parent.parent.kind ? $r : te), e.constraint = r) : e.constraint = Qu(e) || hn), e.constraint === hn ? void 0 : e.constraint + } + + function Yu(e) { + e = OS.getDeclarationOfKind(e.symbol, 165), e = OS.isJSDocTemplateTag(e.parent) ? OS.getEffectiveContainerForJSDocTemplateTag(e.parent) : e.parent; + return e && G(e) + } + + function Zu(e) { + var t = ""; + if (e) + for (var r = e.length, n = 0; n < r;) { + for (var i = e[n].id, a = 1; n + a < r && e[n + a].id === i + a;) a++; + t.length && (t += ","), t += i, 1 < a && (t += ":" + a), n += a + } + return t + } + + function $u(e, t) { + return e ? "@".concat(WS(e)) + (t ? ":".concat(Zu(t)) : "") : "" + } + + function e_(e, t) { + for (var r = 0, n = 0, i = e; n < i.length; n++) { + var a = i[n]; + void 0 !== t && a.flags & t || (r |= OS.getObjectFlags(a)) + } + return 458752 & r + } + + function t_(e, t) { + var r = Zu(t), + n = e.instantiations.get(r); + return n || (n = wo(4, e.symbol), e.instantiations.set(r, n), n.objectFlags |= t ? e_(t) : 0, n.target = e, n.resolvedTypeArguments = t), n + } + + function r_(e) { + var t = Ao(e.flags); + return t.symbol = e.symbol, t.objectFlags = e.objectFlags, t.target = e.target, t.resolvedTypeArguments = e.resolvedTypeArguments, t + } + + function n_(e, t, r, n, i) { + n || (a = lp(n = cp(t)), i = r ? Ap(a, r) : a); + var a = wo(4, e.symbol); + return a.target = e, a.node = t, a.mapper = r, a.aliasSymbol = n, a.aliasTypeArguments = i, a + } + + function ye(e) { + if (!e.resolvedTypeArguments) { + if (!ps(e, 6)) return (null == (t = e.target.localTypeParameters) ? void 0 : t.map(function() { + return R + })) || OS.emptyArray; + var t = e.node, + t = t ? 180 === t.kind ? OS.concatenate(e.target.outerTypeParameters, j2(t, e.target.localTypeParameters)) : 185 === t.kind ? [K(t.elementType)] : OS.map(t.elements, K) : OS.emptyArray; + gs() ? e.resolvedTypeArguments = e.mapper ? Ap(t, e.mapper) : t : (e.resolvedTypeArguments = (null == (t = e.target.localTypeParameters) ? void 0 : t.map(function() { + return R + })) || OS.emptyArray, se(e.node || Se, e.target.symbol ? OS.Diagnostics.Type_arguments_for_0_circularly_reference_themselves : OS.Diagnostics.Tuple_type_arguments_circularly_reference_themselves, e.target.symbol && le(e.target.symbol))) + } + return e.resolvedTypeArguments + } + + function i_(e) { + return OS.length(e.target.typeParameters) + } + + function a_(e, t) { + var r = Pc(bo(t)), + n = r.localTypeParameters; + if (n) { + var i = OS.length(e.typeArguments), + a = Su(n), + o = OS.isInJSFile(e); + if (!(!Te && o) && (i < a || i > n.length)) { + i = o && OS.isExpressionWithTypeArguments(e) && !OS.isJSDocAugmentsTag(e.parent); + if (se(e, a === n.length ? i ? OS.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag : OS.Diagnostics.Generic_type_0_requires_1_type_argument_s : i ? OS.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag : OS.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments, ue(r, void 0, 2), a, n.length), !o) return R + } + return 180 === e.kind && q_(e, OS.length(e.typeArguments) !== n.length) ? n_(r, e, void 0) : t_(r, OS.concatenate(r.outerTypeParameters, Tu(v_(e), n, a, o))) + } + return m_(e, t) ? r : R + } + + function o_(e, t, r, n) { + var i, a, o, s, c = Pc(e); + return c === wr && US.has(e.escapedName) && t && 1 === t.length ? kd(e, t[0]) : (a = (i = ce(e)).typeParameters, o = Zu(t) + $u(r, n), (s = i.instantiations.get(o)) || i.instantiations.set(o, s = Zp(c, wp(a, Tu(t, a, Su(a), OS.isInJSFile(e.valueDeclaration))), r, n)), s) + } + + function s_(e) { + e = null == (e = e.declarations) ? void 0 : e.find(OS.isTypeAlias); + return e && OS.getContainingFunction(e) + } + + function c_(e) { + var t, r, n = (163 === e.kind ? e.right : 208 === e.kind ? e.name : e).escapedText; + return n ? (t = (e = 163 === e.kind ? c_(e.left) : 208 === e.kind ? c_(e.expression) : void 0) ? "".concat(function e(t) { + return t.parent ? "".concat(e(t.parent), ".").concat(t.escapedName) : t.escapedName + }(e), ".").concat(n) : n, (r = Er.get(t)) || (Er.set(t, r = B(524288, n, 1048576)), r.parent = e, r.declaredType = Fr), r) : L + } + + function l_(e, t, r) { + e = function(e) { + switch (e.kind) { + case 180: + return e.typeName; + case 230: + var t = e.expression; + if (OS.isEntityNameExpression(t)) return t + } + }(e); + return e ? (t = ro(e, t, r)) && t !== L ? t : r ? L : c_(e) : L + } + + function u_(e, t) { + var r, n, i, a, o, s; + return t === L ? R : 96 & (t = function(e) { + var t = e.valueDeclaration; + if (t && OS.isInJSFile(t) && !(524288 & e.flags) && !OS.getExpandoInitializer(t, !1)) { + t = OS.isVariableDeclaration(t) ? OS.getDeclaredExpandoInitializer(t) : OS.getAssignedExpandoInitializer(t); + if (t) { + t = G(t); + if (t) return Xv(t, e) + } + } + }(t) || t).flags ? a_(e, t) : 524288 & t.flags ? (r = e, n = t, 1048576 & OS.getCheckFlags(n) ? (s = $u(n, i = v_(r)), (a = kr.get(s)) || ((a = Po(1, "error")).aliasSymbol = n, a.aliasTypeArguments = i, kr.set(s, a)), a) : (i = Pc(n), (s = ce(n).typeParameters) ? (a = OS.length(r.typeArguments)) < (o = Su(s)) || a > s.length ? (se(r, o === s.length ? OS.Diagnostics.Generic_type_0_requires_1_type_argument_s : OS.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments, le(n), o, s.length), R) : (o = !(a = cp(r)) || !s_(n) && s_(a) ? void 0 : a, o_(n, v_(r), o, lp(o))) : m_(r, n) ? i : R)) : (s = wc(t)) ? m_(e, t) ? hp(s) : R : 111551 & t.flags && g_(e) ? function(e, t) { + var r = H(e); { + var n, i, a; + r.resolvedJSDocType || (n = de(t), i = n, t.valueDeclaration && (a = 202 === e.kind && e.qualifier, n.symbol) && n.symbol !== t && a && (i = u_(e, n.symbol)), r.resolvedJSDocType = i) + } + return r.resolvedJSDocType + }(e, t) || (l_(e, 788968), de(t)) : R + } + + function __(e, t) { + var r, n; + return 3 & t.flags || t === e || !Rd(e) && !Rd(t) ? e : (r = "".concat(e.id, ">").concat(t.id), vr.get(r) || ((n = Ao(33554432)).baseType = e, n.constraint = t, vr.set(r, n), n)) + } + + function d_(e) { + return ve([e.constraint, e.baseType]) + } + + function p_(e) { + return 186 === e.kind && 1 === e.elements.length + } + + function f_(e, t) { + for (var r, n = !0; t && !OS.isStatement(t) && 323 !== t.kind;) { + var i, a, o = t.parent; + ((n = 166 === o.kind ? !n : n) || 8650752 & e.flags) && 191 === o.kind && t === o.trueType ? (a = function e(t, r, n) { + return p_(r) && p_(n) ? e(t, r.elements[0], n.elements[0]) : Xd(K(r)) === Xd(t) ? K(n) : void 0 + }(e, o.checkType, o.extendsType)) && (r = OS.append(r, a)) : 262144 & e.flags && 197 === o.kind && t === o.type && vl(i = K(o)) === Xd(e) && (i = Wp(i)) && (a = Ml(i)) && Dy(a, lg) && (r = OS.append(r, he([ie, rn]))), t = o + } + return r ? __(e, ve(r)) : e + } + + function g_(e) { + return !!(8388608 & e.flags) && (180 === e.kind || 202 === e.kind) + } + + function m_(e, t) { + if (!e.typeArguments) return 1; + se(e, OS.Diagnostics.Type_0_is_not_generic, t ? le(t) : e.typeName ? OS.declarationNameToString(e.typeName) : RS) + } + + function y_(e) { + if (OS.isIdentifier(e.typeName)) { + var t, r, n = e.typeArguments; + switch (e.typeName.escapedText) { + case "String": + return m_(e), ne; + case "Number": + return m_(e), ie; + case "Boolean": + return m_(e), Vr; + case "Void": + return m_(e), Wr; + case "Undefined": + return m_(e), re; + case "Null": + return m_(e), Rr; + case "Function": + case "function": + return m_(e), gt; + case "array": + return n && n.length || Te ? void 0 : Ct; + case "promise": + return n && n.length || Te ? void 0 : A1(ee); + case "Object": + return n && 2 === n.length ? OS.isJSDocIndexSignature(e) ? (r = K(n[0]), t = K(n[1]), r = r === ne || r === ie ? [Vu(r, t, !1)] : OS.emptyArray, Bo(void 0, E, OS.emptyArray, OS.emptyArray, r)) : ee : (m_(e), Te ? void 0 : ee) + } + } + } + + function h_(e) { + var t = H(e); + if (!t.resolvedType) { + if (OS.isConstTypeReference(e) && OS.isAssertionExpression(e.parent)) return t.resolvedSymbol = L, t.resolvedType = u2(e.parent.expression); + var r = void 0, + n = void 0, + i = 788968; + !g_(e) || (n = y_(e)) || ((r = l_(e, i, !0)) === L ? r = l_(e, 900095) : l_(e, i), n = u_(e, r)), n = n || u_(e, r = l_(e, i)), t.resolvedSymbol = r, t.resolvedType = n + } + return t.resolvedType + } + + function v_(e) { + return OS.map(e.typeArguments, K) + } + + function b_(e) { + var t = H(e); + return t.resolvedType || (e = l1(e), t.resolvedType = hp(Xg(e))), t.resolvedType + } + + function x_(e, t) { + function r(e) { + e = e.declarations; + if (e) + for (var t = 0, r = e; t < r.length; t++) { + var n = r[t]; + switch (n.kind) { + case 260: + case 261: + case 263: + return n + } + } + } + var n; + return e ? 524288 & (n = Pc(e)).flags ? OS.length(n.typeParameters) !== t ? (se(r(e), OS.Diagnostics.Global_type_0_must_have_1_type_parameter_s, OS.symbolName(e), t), t ? mn : un) : n : (se(r(e), OS.Diagnostics.Global_type_0_must_be_a_class_or_interface_type, OS.symbolName(e)), t ? mn : un) : t ? mn : un + } + + function D_(e, t) { + return C_(e, 111551, t ? OS.Diagnostics.Cannot_find_global_value_0 : void 0) + } + + function S_(e, t) { + return C_(e, 788968, t ? OS.Diagnostics.Cannot_find_global_type_0 : void 0) + } + + function T_(e, t, r) { + e = C_(e, 788968, r ? OS.Diagnostics.Cannot_find_global_type_0 : void 0); + if (e && (Pc(e), OS.length(ce(e).typeParameters) !== t)) return void se(e.declarations && OS.find(e.declarations, OS.isTypeAliasDeclaration), OS.Diagnostics.Global_type_0_must_have_1_type_parameter_s, OS.symbolName(e), t); + return e + } + + function C_(e, t, r) { + return va(void 0, e, t, r, e, !1, !1, !1) + } + + function E_(e, t, r) { + e = S_(e, r); + return e || r ? x_(e, t) : void 0 + } + + function k_() { + return Gt = Gt || E_("ImportMeta", 0, !0) || un + } + + function N_() { + var e, t, r; + return Qt || (e = B(0, "ImportMetaExpression"), r = k_(), (t = B(4, "meta", 8)).parent = e, t.type = r, r = OS.createSymbolTable([t]), e.members = r, Qt = Bo(e, r, OS.emptyArray, OS.emptyArray, OS.emptyArray)), Qt + } + + function A_(e) { + return (Xt = Xt || E_("ImportCallOptions", 0, e)) || un + } + + function F_(e) { + return At = At || D_("Symbol", e) + } + + function P_() { + return (Pt = Pt || E_("Symbol", 0, !1)) || un + } + + function w_(e) { + return (It = It || E_("Promise", 1, e)) || mn + } + + function I_(e) { + return (Ot = Ot || E_("PromiseLike", 1, e)) || mn + } + + function O_(e) { + return Mt = Mt || D_("Promise", e) + } + + function M_(e) { + return (Kt = Kt || E_("AsyncIterable", 1, e)) || mn + } + + function L_(e) { + return (Rt = Rt || E_("Iterable", 1, e)) || mn + } + + function R_(e, t) { + void 0 === t && (t = 0); + e = C_(e, 788968, void 0); + return e && x_(e, t) + } + + function B_(e) { + return ($t = $t || T_("Awaited", 1, e) || (e ? L : void 0)) === L ? void 0 : $t + } + + function j_(e, t) { + return e !== mn ? t_(e, t) : un + } + + function J_(e) { + return j_(wt = wt || E_("TypedPropertyDescriptor", 1, !0) || mn, [e]) + } + + function z_(e, t) { + return j_(t ? vt : ht, [e]) + } + + function U_(e) { + switch (e.kind) { + case 187: + return 2; + case 188: + return K_(e); + case 199: + return e.questionToken ? 2 : e.dotDotDotToken ? K_(e) : 1; + default: + return 1 + } + } + + function K_(e) { + return Ep(e.type) ? 4 : 8 + } + + function V_(e) { + t = e.parent; + var t = OS.isTypeOperatorNode(t) && 146 === t.operator; + return Ep(e) ? t ? vt : ht : G_(OS.map(e.elements, U_), t, OS.some(e.elements, function(e) { + return 199 !== e.kind + }) ? void 0 : e.elements) + } + + function q_(e, t) { + return cp(e) || function e(t) { + var r = t.parent; + switch (r.kind) { + case 193: + case 199: + case 180: + case 189: + case 190: + case 196: + case 191: + case 195: + case 185: + case 186: + return e(r); + case 262: + return !0 + } + return !1 + }(e) && (185 === e.kind ? W_(e.elementType) : 186 === e.kind ? OS.some(e.elements, W_) : t || OS.some(e.typeArguments, W_)) + } + + function W_(e) { + switch (e.kind) { + case 180: + return g_(e) || !!(524288 & l_(e, 788968).flags); + case 183: + return !0; + case 195: + return 156 !== e.operator && W_(e.type); + case 193: + case 187: + case 199: + case 319: + case 317: + case 318: + case 312: + return W_(e.type); + case 188: + return 185 !== e.type.kind || W_(e.type.elementType); + case 189: + case 190: + return OS.some(e.types, W_); + case 196: + return W_(e.objectType) || W_(e.indexType); + case 191: + return W_(e.checkType) || W_(e.extendsType) || W_(e.trueType) || W_(e.falseType) + } + return !1 + } + + function H_(e, t, r, n) { + void 0 === r && (r = !1); + t = G_(t || OS.map(e, function(e) { + return 1 + }), r, n); + return t === mn ? un : e.length ? Q_(t, e) : t + } + + function G_(e, t, r) { + var n, i; + return 1 === e.length && 4 & e[0] ? t ? vt : ht : (n = OS.map(e, function(e) { + return 1 & e ? "#" : 2 & e ? "?" : 4 & e ? "." : "*" + }).join() + (t ? "R" : "") + (r && r.length ? "," + OS.map(r, qS).join(",") : ""), (i = lr.get(n)) || lr.set(n, i = function(e, t, r) { + var n, i = e.length, + a = OS.countWhere(e, function(e) { + return !!(9 & e) + }), + o = [], + s = 0; + if (i) { + n = new Array(i); + for (var c = 0; c < i; c++) { + var l = n[c] = Io(), + u = e[c]; + 12 & (s |= u) || ((u = B(4 | (2 & u ? 16777216 : 0), "" + c, t ? 8 : 0)).tupleLabelDeclaration = null == r ? void 0 : r[c], u.type = l, o.push(u)) + } + } + var _ = o.length, + d = B(4, "length", t ? 8 : 0); + if (12 & s) d.type = ie; + else { + for (var p = [], c = a; c <= i; c++) p.push(xp(c)); + d.type = he(p) + } + o.push(d); + d = wo(12); + return d.typeParameters = n, d.outerTypeParameters = void 0, d.localTypeParameters = n, d.instantiations = new OS.Map, d.instantiations.set(Zu(d.typeParameters), d), (d.target = d).resolvedTypeArguments = d.typeParameters, d.thisType = Io(), d.thisType.isThisType = !0, (d.thisType.constraint = d).declaredProperties = o, d.declaredCallSignatures = OS.emptyArray, d.declaredConstructSignatures = OS.emptyArray, d.declaredIndexInfos = OS.emptyArray, d.elementFlags = e, d.minLength = a, d.fixedLength = _, d.hasRestElement = !!(12 & s), d.combinedFlags = s, d.readonly = t, d.labeledElementDeclarations = r, d + }(e, t, r)), i) + } + + function Q_(e, t) { + return (8 & e.objectFlags ? function t(i, a) { + var o, s; + if (!(14 & i.combinedFlags)) return t_(i, a); + if (8 & i.combinedFlags) { + var r = OS.findIndex(a, function(e, t) { + return !!(8 & i.elementFlags[t] && 1179648 & e.flags) + }); + if (0 <= r) return pd(OS.map(a, function(e, t) { + return 8 & i.elementFlags[t] ? e : te + })) ? Cy(a[r], function(e) { + return t(i, OS.replaceElement(a, r, e)) + }) : R + } + var c = []; + var n = []; + var l = []; + var u = -1; + var _ = -1; + var d = -1; + var e = function(e) { + var r = a[e], + t = i.elementFlags[e]; + if (8 & t) + if (58982400 & r.flags || Al(r)) m(r, 8, null == (o = i.labeledElementDeclarations) ? void 0 : o[e]); + else if (De(r)) { + var n = ye(r); + if (1e4 <= n.length + c.length) return se(Se, OS.isPartOfTypeNode(Se) ? OS.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent : OS.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent), { + value: R + }; + OS.forEach(n, function(e, t) { + return m(e, r.target.elementFlags[t], null == (e = r.target.labeledElementDeclarations) ? void 0 : e[t]) + }) + } else m(dg(r) && du(r, ie) || R, 4, null == (o = i.labeledElementDeclarations) ? void 0 : o[e]); + else m(r, t, null == (s = i.labeledElementDeclarations) ? void 0 : s[e]) + }; + for (var p = 0; p < a.length; p++) { + var f = e(p); + if ("object" == typeof f) return f.value + } + for (p = 0; p < u; p++) 2 & n[p] && (n[p] = 1); + 0 <= _ && _ < d && (c[_] = he(OS.sameMap(c.slice(_, d + 1), function(e, t) { + return 8 & n[_ + t] ? qd(e, ie) : e + })), c.splice(_ + 1, d - _), n.splice(_ + 1, d - _), null != l) && l.splice(_ + 1, d - _); + var g = G_(n, i.readonly, l); + return g === mn ? un : n.length ? t_(g, c) : g; + + function m(e, t, r) { + 1 & t && (u = n.length), 4 & t && _ < 0 && (_ = n.length), 6 & t && (d = n.length), c.push(2 & t ? As(e, !0) : e), n.push(t), l && r ? l.push(r) : l = void 0 + } + } : t_)(e, t) + } + + function X_(e, t, r) { + void 0 === r && (r = 0); + var n = e.target, + r = i_(e) - r; + return t > n.fixedLength ? function(e) { + e = Ag(e); + return e && z_(e) + }(e) || H_(OS.emptyArray) : H_(ye(e).slice(t, r), n.elementFlags.slice(t, r), !1, n.labeledElementDeclarations && n.labeledElementDeclarations.slice(t, r)) + } + + function Y_(e) { + return he(OS.append(OS.arrayOf(e.target.fixedLength, function(e) { + return bp("" + e) + }), Sd(e.target.readonly ? vt : ht))) + } + + function Z_(e, t) { + var r = OS.findIndex(e.elementFlags, function(e) { + return !(e & t) + }); + return 0 <= r ? r : e.elementFlags.length + } + + function $_(e, t) { + return e.elementFlags.length - OS.findLastIndex(e.elementFlags, function(e) { + return !(e & t) + }) - 1 + } + + function ed(e) { + return e.id + } + + function td(e, t) { + return 0 <= OS.binarySearch(e, t, ed, OS.compareValues) + } + + function rd(e, t) { + var r = OS.binarySearch(e, t, ed, OS.compareValues); + return r < 0 && (e.splice(~r, 0, t), 1) + } + + function nd(e, t, r) { + for (var n, i, a, o, s = 0, c = r; s < c.length; s++) { + var l = c[s]; + n = e, i = t, o = a = void 0, t = 1048576 & (o = (l = l).flags) ? nd(n, i | (1048576 & (a = l).flags && (a.aliasSymbol || a.origin) ? 1048576 : 0), l.types) : (131072 & o || (i |= 205258751 & o, 465829888 & o && (i |= 33554432), l === Ar && (i |= 8388608), !$ && 98304 & o ? 65536 & OS.getObjectFlags(l) || (i |= 4194304) : (o = (a = n.length) && l.id > n[a - 1].id ? ~a : OS.binarySearch(n, l, ed, OS.compareValues)) < 0 && n.splice(~o, 0, l)), i) + } + return t + } + + function id(e) { + var r = OS.filter(e, Ld); + if (r.length) + for (var n = e.length; 0 < n;) ! function() { + var t = e[--n]; + 128 & t.flags && OS.some(r, function(e) { + return Tm(t, e) + }) && OS.orderedRemoveItemAt(e, n) + }() + } + + function ad(e, t) { + e = Fo(e); + return e.types = t, e + } + + function he(e, t, r, n, i) { + if (void 0 === t && (t = 1), 0 === e.length) return ae; + if (1 === e.length) return e[0]; + var a, o = [], + s = nd(o, 0, e); + if (0 !== t) { + if (3 & s) return 1 & s ? 8388608 & s ? Ar : ee : 65536 & s || td(o, te) ? te : Ir; + if (Ee && 32768 & s && 0 <= (a = OS.binarySearch(o, Lr, ed, OS.compareValues)) && td(o, re) && OS.orderedRemoveItemAt(o, a), 402664320 & s || 16384 & s && 32768 & s) + for (var c = o, l = s, u = !!(2 & t), _ = c.length; 0 < _;) { + var d = c[--_], + p = d.flags; + (402653312 & p && 4 & l || 256 & p && 8 & l || 2048 & p && 64 & l || 8192 & p && 4096 & l || u && 32768 & p && 16384 & l || vp(d) && td(c, d.regularType)) && OS.orderedRemoveItemAt(c, _) + } + if (128 & s && 134217728 & s && id(o), 2 === t && !(o = function(e, t) { + if (!(e.length < 2)) { + var r = Zu(e), + n = br.get(r); + if (n) return n; + for (var i = t && OS.some(e, function(e) { + return !!(524288 & e.flags) && !Al(e) && Ef(Fl(e)) + }), a = e.length, o = a, s = 0; 0 < o;) { + var c = e[--o]; + if (i || 469499904 & c.flags) + for (var l = 61603840 & c.flags ? OS.find(pe(c), function(e) { + return vg(de(e)) + }) : void 0, u = l && hp(de(l)), _ = 0, d = e; _ < d.length; _++) { + var p = d[_]; + if (c !== p) { + if (1e5 === s) + if (1e6 < s / (a - o) * a) return null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.instant("checkTypes", "removeSubtypes_DepthLimit", { + typeIds: e.map(function(e) { + return e.id + }) + }), void se(Se, OS.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); + if (s++, l && 61603840 & p.flags) { + var f = ys(p, l.escapedName); + if (f && vg(f) && hp(f) !== u) continue + } + if (If(c, p, xi) && (!(1 & OS.getObjectFlags(cc(c))) || !(1 & OS.getObjectFlags(cc(p))) || df(c, p))) { + OS.orderedRemoveItemAt(e, o); + break + } + } + } + } + br.set(r, e) + } + return e + }(o, !!(524288 & s)))) return R; + if (0 === o.length) return 65536 & s ? 4194304 & s ? Rr : Br : 32768 & s ? 4194304 & s ? re : Or : ae + } + if (!i && 1048576 & s) { + for (var f = [], g = (! function e(t, r) { + for (var n = 0, i = r; n < i.length; n++) { + var a, o = i[n]; + 1048576 & o.flags && (a = o.origin, o.aliasSymbol || a && !(1048576 & a.flags) ? OS.pushIfUnique(t, o) : a && 1048576 & a.flags && e(t, a.types)) + } + }(f, e), []), m = 0, y = o; m < y.length; m++) ! function(t) { + OS.some(f, function(e) { + return td(e.types, t) + }) || g.push(t) + }(y[m]); + if (!r && 1 === f.length && 0 === g.length) return f[0]; + if (OS.reduceLeft(f, function(e, t) { + return e + t.types.length + }, 0) + g.length === o.length) { + for (var h = 0, v = f; h < v.length; h++) rd(g, v[h]); + i = ad(1048576, g) + } + } + return sd(o, (36323363 & s ? 0 : 32768) | (2097152 & s ? 16777216 : 0), r, n, i) + } + + function od(e, t) { + return e.kind === t.kind && e.parameterIndex === t.parameterIndex + } + + function sd(e, t, r, n, i) { + var a, o; + return 0 === e.length ? ae : 1 === e.length ? e[0] : (a = (i ? 1048576 & i.flags ? "|".concat(Zu(i.types)) : 2097152 & i.flags ? "&".concat(Zu(i.types)) : "#".concat(i.type.id, "|").concat(Zu(e)) : Zu(e)) + $u(r, n), (o = ur.get(a)) || ((o = Ao(1048576)).objectFlags = t | e_(e, 98304), o.types = e, o.origin = i, o.aliasSymbol = r, o.aliasTypeArguments = n, 2 === e.length && 512 & e[0].flags && 512 & e[1].flags && (o.flags |= 16, o.intrinsicName = "boolean"), ur.set(a, o)), o) + } + + function cd(e, t, r) { + for (var n, i, a, o = 0, s = r; o < s.length; o++) { + var c = s[o]; + n = e, i = t, c = hp(c), a = void 0, t = 2097152 & (a = c.flags) ? cd(n, i, c.types) : (Nf(c) ? 16777216 & i || (i |= 16777216, n.set(c.id.toString(), c)) : (3 & a ? c === Ar && (i |= 8388608) : !$ && 98304 & a || (Ee && c === Lr && (i |= 262144, c = re), n.has(c.id.toString())) || (109440 & c.flags && 109440 & i && (i |= 67108864), n.set(c.id.toString(), c)), i |= 205258751 & a), i) + } + return t + } + + function ld(e, t) { + return OS.every(e, function(e) { + return !!(1048576 & e.flags) && OS.some(e.types, function(e) { + return !!(e.flags & t) + }) + }) + } + + function ud(e, t) { + for (var r = 0; r < e.length; r++) e[r] = Sy(e[r], function(e) { + return !(e.flags & t) + }) + } + + function _d(e) { + var t, r = OS.findIndex(e, function(e) { + return !!(32768 & OS.getObjectFlags(e)) + }); + if (!(r < 0)) { + for (var n = r + 1; n < e.length;) { + var i = e[n]; + 32768 & OS.getObjectFlags(i) ? ((t = t || [e[r]]).push(i), OS.orderedRemoveItemAt(e, n)) : n++ + } + if (t) { + for (var a = [], o = [], s = 0, c = t; s < c.length; s++) + for (var l = 0, u = c[s].types; l < u.length; l++) !rd(a, i = u[l]) || ! function(e, t) { + for (var r = 0, n = e; r < n.length; r++) { + var i = n[r]; + if (!td(i.types, t)) { + var a = 128 & t.flags ? ne : 256 & t.flags ? ie : 2048 & t.flags ? jr : 8192 & t.flags ? qr : void 0; + if (!a || !td(i.types, a)) return + } + } + return 1 + }(t, i) || rd(o, i); + return e[r] = sd(o, 32768), 1 + } + } + } + + function ve(e, t, r, n) { + var i = new OS.Map, + e = cd(i, 0, e), + i = OS.arrayFrom(i.values()); + if (131072 & e) return OS.contains(i, Hr) ? Hr : ae; + if ($ && 98304 & e && 84410368 & e || 67108864 & e && 402783228 & e || 402653316 & e && 67238776 & e || 296 & e && 469891796 & e || 2112 & e && 469889980 & e || 12288 & e && 469879804 & e || 49152 & e && 469842940 & e) return ae; + if (134217728 & e && 128 & e && function(e) { + for (var t = e.length, r = OS.filter(e, function(e) { + return !!(128 & e.flags) + }); 0 < t;) { + var n = e[--t]; + if (134217728 & n.flags) + for (var i = 0, a = r; i < a.length; i++) { + if (_f(a[i], n)) { + OS.orderedRemoveItemAt(e, t); + break + } + if (Ld(n)) return 1 + } + } + }(i)) return ae; + if (1 & e) return 8388608 & e ? Ar : ee; + if (!$ && 98304 & e) return 16777216 & e ? ae : 32768 & e ? re : Rr; + if ((4 & e && 402653312 & e || 8 & e && 256 & e || 64 & e && 2048 & e || 4096 & e && 8192 & e || 16384 & e && 32768 & e || 16777216 & e && 470302716 & e) && !n) + for (var a = i, o = e, s = a.length; 0 < s;) { + var c = a[--s]; + (4 & c.flags && 402653312 & o || 8 & c.flags && 256 & o || 64 & c.flags && 2048 & o || 4096 & c.flags && 8192 & o || 16384 & c.flags && 32768 & o || Nf(c) && 470302716 & o) && OS.orderedRemoveItemAt(a, s) + } + if (262144 & e && (i[i.indexOf(re)] = Lr), 0 === i.length) return te; + if (1 === i.length) return i[0]; + n = Zu(i) + $u(t, r); + if (!(l = _r.get(n))) { + if (1048576 & e) + if (_d(i)) l = ve(i, t, r); + else if (ld(i, 32768)) { + e = Ee && OS.some(i, function(e) { + return td(e.types, Lr) + }) ? Lr : re; + ud(i, 32768), l = he([ve(i), e], 1, t, r) + } else if (ld(i, 65536)) ud(i, 65536), l = he([ve(i), Rr], 1, t, r); + else { + if (!pd(i)) return R; + var e = function(e) { + for (var t = dd(e), r = [], n = 0; n < t; n++) { + for (var i, a, o = e.slice(), s = n, c = e.length - 1; 0 <= c; c--) 1048576 & e[c].flags && (i = e[c].types, a = i.length, o[c] = i[s % a], s = Math.floor(s / a)); + var l = ve(o); + 131072 & l.flags || r.push(l) + } + return r + }(i), + l = he(e, 1, t, r, OS.some(e, function(e) { + return !!(2097152 & e.flags) + }) && fd(e) > fd(i) ? ad(2097152, i) : void 0) + } else e = i, i = t, t = r, (r = Ao(2097152)).objectFlags = e_(e, 98304), r.types = e, r.aliasSymbol = i, r.aliasTypeArguments = t, l = r; + _r.set(n, l) + } + return l + } + + function dd(e) { + return OS.reduceLeft(e, function(e, t) { + return 1048576 & t.flags ? e * t.types.length : 131072 & t.flags ? 0 : e + }, 1) + } + + function pd(e) { + var t = dd(e); + return !(1e5 <= t && (null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.instant("checkTypes", "checkCrossProductUnion_DepthLimit", { + typeIds: e.map(function(e) { + return e.id + }), + size: t + }), se(Se, OS.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent), 1)) + } + + function fd(e) { + return OS.reduceLeft(e, function(e, t) { + return e + function e(t) { + return 3145728 & t.flags && !t.aliasSymbol ? 1048576 & t.flags && t.origin ? e(t.origin) : fd(t.types) : 1 + }(t) + }, 0) + } + + function gd(e, t) { + var r = Ao(4194304); + return r.type = e, r.stringsOnly = t, r + } + + function md(e, t) { + return t ? e.resolvedStringIndexType || (e.resolvedStringIndexType = gd(e, !0)) : e.resolvedIndexType || (e.resolvedIndexType = gd(e, !1)) + } + + function yd(e) { + var r = vl(e); + return function e(t) { + return !!(68157439 & t.flags) || (16777216 & t.flags ? t.root.isDistributive && t.checkType === r : 137363456 & t.flags ? OS.every(t.types, e) : 8388608 & t.flags ? e(t.objectType) && e(t.indexType) : 33554432 & t.flags ? e(t.baseType) && e(t.constraint) : !!(268435456 & t.flags) && e(t.type)) + }(xl(e) || r) + } + + function hd(e) { + return OS.isPrivateIdentifier(e) ? ae : OS.isIdentifier(e) ? bp(OS.unescapeLeadingUnderscores(e.escapedText)) : hp((OS.isComputedPropertyName(e) ? q0 : V)(e)) + } + + function vd(e, t, r) { + if (r || !(24 & OS.getDeclarationModifierFlagsFromSymbol(e))) { + var n, r = ce(Xc(e)).nameType; + if (r || (n = OS.getNameOfDeclaration(e.valueDeclaration), r = "default" === e.escapedName ? bp("default") : n && hd(n) || (OS.isKnownSymbol(e) ? void 0 : bp(OS.symbolName(e)))), r && r.flags & t) return r + } + return ae + } + + function bd(e, t, r) { + var r = r && (7 & OS.getObjectFlags(e) || e.aliasSymbol) ? (r = e, (n = Fo(4194304)).type = r, n) : void 0, + n = OS.map(pe(e), function(e) { + return vd(e, t) + }), + e = OS.map(uu(e), function(e) { + return e !== Pn && function t(e, r) { + return !!(e.flags & r || 2097152 & e.flags && OS.some(e.types, function(e) { + return t(e, r) + })) + }(e.keyType, t) ? e.keyType === ne && 8 & t ? Yr : e.keyType : ae + }); + return he(OS.concatenate(n, e), 1, void 0, void 0, r) + } + + function xd(e) { + e = 262143 & (e = e).flags ? e : e.uniqueLiteralFilledInstantiation || (e.uniqueLiteralFilledInstantiation = be(e, sn)); + return eu(e) !== e + } + + function Dd(e) { + return 58982400 & e.flags || kg(e) || Al(e) && !yd(e) || 1048576 & e.flags && OS.some(e.types, xd) || 2097152 & e.flags && X1(e, 465829888) && OS.some(e.types, Nf) + } + + function Sd(e, t, r) { + { + if (void 0 === t && (t = S), Dd(e = eu(e))) return md(e, t); + if (1048576 & e.flags) return ve(OS.map(e.types, function(e) { + return Sd(e, t, r) + })); + if (2097152 & e.flags) return he(OS.map(e.types, function(e) { + return Sd(e, t, r) + })); + if (!(32 & OS.getObjectFlags(e))) return e === Ar ? Ar : 2 & e.flags ? ae : 131073 & e.flags ? $r : bd(e, (r ? 128 : 402653316) | (t ? 0 : 12584), t === S && !r); + var n = e, + i = t, + a = r, + o = vl(n), + s = bl(n), + c = xl(n.target || n); + if (!c && !a) return s; + var l = []; + if (Tl(n)) { + if (jd(s)) return md(n, i); + yl(Ql(Cl(n)), 8576, i, u) + } else by(gl(s), u); + return jd(s) && by(s, u), 1048576 & (i = a ? Sy(he(l), function(e) { + return !(5 & e.flags) + }) : he(l)).flags && 1048576 & s.flags && Zu(i.types) === Zu(s.types) ? s : i; + + function u(e) { + e = c ? be(c, zp(n.mapper, o, e)) : e; + l.push(e === ne ? Yr : e) + } + } + } + + function Td(e) { + var t; + return S ? e : (t = (Yt = Yt || T_("Extract", 2, !0) || L) === L ? void 0 : Yt) ? o_(t, [e, ne]) : ne + } + + function Cd(t, r) { + var n = OS.findIndex(r, function(e) { + return !!(1179648 & e.flags) + }); + if (0 <= n) return pd(r) ? Cy(r[n], function(e) { + return Cd(t, OS.replaceElement(r, n, e)) + }) : R; + if (OS.contains(r, Ar)) return Ar; + var s = [], + c = [], + l = t[0]; + if (! function e(t, r) { + var n = OS.isArray(t); + for (var i = 0; i < r.length; i++) { + var a = r[i], + o = n ? t[i + 1] : t; + if (101248 & a.flags) { + if (l = (l += Ed(a) || "") + o, !n) return !0 + } else if (134217728 & a.flags) { + if (l += a.texts[0], !e(a.texts, a.types)) return !1; + if (l += o, !n) return !0 + } else if (jd(a) || Md(a)) s.push(a), c.push(l), l = o; + else if (2097152 & a.flags) { + o = e(t[i + 1], a.types); + if (!o) return !1 + } else if (n) return !1 + } + return !0 + }(t, r)) return ne; + if (0 === s.length) return bp(l); + if (c.push(l), OS.every(c, function(e) { + return "" === e + })) { + if (OS.every(s, function(e) { + return !!(4 & e.flags) + })) return ne; + if (1 === s.length && Ld(s[0])) return s[0] + } + var e, i, a = "".concat(Zu(s), "|").concat(OS.map(c, function(e) { + return e.length + }).join(","), "|").concat(c.join("")), + o = yr.get(a); + return o || yr.set(a, (a = c, e = s, (i = Ao(134217728)).texts = a, i.types = e, o = i)), o + } + + function Ed(e) { + return 128 & e.flags ? e.value : 256 & e.flags ? "" + e.value : 2048 & e.flags ? OS.pseudoBigIntToString(e.value) : 98816 & e.flags ? e.intrinsicName : void 0 + } + + function kd(t, e) { + return 1179648 & e.flags ? Cy(e, function(e) { + return kd(t, e) + }) : 128 & e.flags ? bp(Nd(t, e.value)) : 134217728 & e.flags ? Cd.apply(void 0, function(t, e, r) { + switch (US.get(t.escapedName)) { + case 0: + return [e.map(function(e) { + return e.toUpperCase() + }), r.map(function(e) { + return kd(t, e) + })]; + case 1: + return [e.map(function(e) { + return e.toLowerCase() + }), r.map(function(e) { + return kd(t, e) + })]; + case 2: + return ["" === e[0] ? e : __spreadArray([e[0].charAt(0).toUpperCase() + e[0].slice(1)], e.slice(1), !0), "" === e[0] ? __spreadArray([kd(t, r[0])], r.slice(1), !0) : r]; + case 3: + return ["" === e[0] ? e : __spreadArray([e[0].charAt(0).toLowerCase() + e[0].slice(1)], e.slice(1), !0), "" === e[0] ? __spreadArray([kd(t, r[0])], r.slice(1), !0) : r] + } + return [e, r] + }(t, e.texts, e.types)) : 268435456 & e.flags && t === e.symbol ? e : 268435461 & e.flags || jd(e) ? Ad(t, e) : Md(e) ? Ad(t, Cd(["", ""], [e])) : e + } + + function Nd(e, t) { + switch (US.get(e.escapedName)) { + case 0: + return t.toUpperCase(); + case 1: + return t.toLowerCase(); + case 2: + return t.charAt(0).toUpperCase() + t.slice(1); + case 3: + return t.charAt(0).toLowerCase() + t.slice(1) + } + return t + } + + function Ad(e, t) { + var r = "".concat(WS(e), ",").concat(t.id), + n = hr.get(r); + return n || hr.set(r, (r = e, e = t, (t = Ao(268435456)).symbol = r, t.type = e, n = t)), n + } + + function Fd(e) { + var t; + return !Te && (!!(4096 & OS.getObjectFlags(e)) || (1048576 & e.flags ? OS.every(e.types, Fd) : 2097152 & e.flags ? OS.some(e.types, Fd) : !!(465829888 & e.flags) && (t = Kl(e)) !== e && Fd(t))) + } + + function Pd(e, t) { + return zc(e) ? Wc(e) : t && OS.isPropertyName(t) ? OS.getPropertyNameForPropertyNameNode(t) : void 0 + } + + function wd(e, t) { + var r; + return !(8208 & t.flags) || (r = OS.findAncestor(e.parent, function(e) { + return !OS.isAccessExpression(e) + }) || e.parent, OS.isCallLikeExpression(r) ? OS.isCallOrNewExpression(r) && OS.isIdentifier(e) && Zm(r, e) : OS.every(t.declarations, function(e) { + return !OS.isFunctionLike(e) || !!(268435456 & OS.getCombinedNodeFlags(e)) + })) + } + + function Id(e, t, r, n, i, a) { + var o = i && 209 === i.kind ? i : void 0, + s = i && OS.isPrivateIdentifier(i) ? void 0 : Pd(r, i); + if (void 0 !== s) { + if (256 & a) return D0(t, s) || ee; + var c = fe(t, s); + if (c) { + if (64 & a && i && c.declarations && aa(c) && wd(i, c) && oa(null != (l = null == o ? void 0 : o.argumentExpression) ? l : OS.isIndexedAccessTypeNode(i) ? i.indexType : i, c.declarations, s), o) { + if (Zh(c, o, $h(o.expression, t.symbol)), V1(o, c, OS.getAssignmentTargetKind(o))) return void se(o.argumentExpression, OS.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, le(c)); + if (8 & a && (H(i).resolvedSymbol = c), Bh(o, c)) return Nr + } + var l = de(c); + return o && 1 !== OS.getAssignmentTargetKind(o) ? Vy(o, l) : l + } + if (Dy(t, De) && OS.isNumericLiteralName(s)) { + c = +s; + if (i && Dy(t, function(e) { + return !e.target.hasRestElement + }) && !(16 & a)) { + var u = Od(i); + if (De(t)) { + if (c < 0) return se(u, OS.Diagnostics.A_tuple_type_cannot_be_indexed_with_a_negative_value), re; + se(u, OS.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2, ue(t), i_(t), OS.unescapeLeadingUnderscores(s)) + } else se(u, OS.Diagnostics.Property_0_does_not_exist_on_type_1, OS.unescapeLeadingUnderscores(s), ue(t)) + } + if (0 <= c) return _(_u(t, ie)), Cy(t, function(e) { + e = Ag(e) || re; + return 1 & a ? he([e, re]) : e + }) + } + } + if (!(98304 & r.flags) && Y1(r, 402665900)) { + if (131073 & t.flags) return t; + var l = fu(t, r) || _u(t, ne); + if (l) return 2 & a && l.keyType !== ie ? void(o && se(o, OS.Diagnostics.Type_0_cannot_be_used_to_index_type_1, ue(r), ue(e))) : i && l.keyType === ne && !Y1(r, 12) ? (se(u = Od(i), OS.Diagnostics.Type_0_cannot_be_used_as_an_index_type, ue(r)), 1 & a ? he([l.type, re]) : l.type) : (_(l), 1 & a && !(t.symbol && 384 & t.symbol.flags && r.symbol && 1024 & r.flags && xo(r.symbol) === t.symbol) ? he([l.type, re]) : l.type); + if (131072 & r.flags) return ae; + if (Fd(t)) return ee; + if (o && !$1(t)) { + if (Fm(t)) { + if (Te && 384 & r.flags) return oe.add(OS.createDiagnosticForNode(o, OS.Diagnostics.Property_0_does_not_exist_on_type_1, r.value, ue(t))), re; + if (12 & r.flags) return c = OS.map(t.properties, de), he(OS.append(c, re)) + } + return void(t.symbol === nt && void 0 !== s && nt.exports.has(s) && 418 & nt.exports.get(s).flags ? se(o, OS.Diagnostics.Property_0_does_not_exist_on_type_1, OS.unescapeLeadingUnderscores(s), ue(t)) : !Te || Z.suppressImplicitAnyIndexErrors || 128 & a || (void 0 !== s && Vh(s, t) ? (e = ue(t), se(o, OS.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, s, e, e + "[" + OS.getTextOfNode(o.argumentExpression) + "]")) : du(t, ie) ? se(o.argumentExpression, OS.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number) : (l = void 0) !== s && (l = Gh(s, t)) ? void 0 !== l && se(o.argumentExpression, OS.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, s, ue(t), l) : void 0 !== (c = function(t, e, r) { + var n = OS.isAssignmentTarget(e) ? "set" : "get"; + if (! function(e) { + if (e = wl(t, e)) return (e = gv(de(e))) && 1 <= D1(e) && xe(r, h1(e, 0)) + }(n)) return; + e = OS.tryGetPropertyAccessOrIdentifierToString(e.expression); + void 0 === e ? e = n : e += "." + n; + return e + }(t, o, r)) ? se(o, OS.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1, ue(t), c) : (e = void 0, 1024 & r.flags ? e = OS.chainDiagnosticMessages(void 0, OS.Diagnostics.Property_0_does_not_exist_on_type_1, "[" + ue(r) + "]", ue(t)) : 8192 & r.flags ? (s = to(r.symbol, o), e = OS.chainDiagnosticMessages(void 0, OS.Diagnostics.Property_0_does_not_exist_on_type_1, "[" + s + "]", ue(t))) : 128 & r.flags || 256 & r.flags ? e = OS.chainDiagnosticMessages(void 0, OS.Diagnostics.Property_0_does_not_exist_on_type_1, r.value, ue(t)) : 12 & r.flags && (e = OS.chainDiagnosticMessages(void 0, OS.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1, ue(r), ue(t))), e = OS.chainDiagnosticMessages(e, OS.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1, ue(n), ue(t)), oe.add(OS.createDiagnosticForNodeFromMessageChain(o, e))))) + } + } + return Fd(t) ? ee : (i && (u = Od(i), 384 & r.flags ? se(u, OS.Diagnostics.Property_0_does_not_exist_on_type_1, "" + r.value, ue(t)) : 12 & r.flags ? se(u, OS.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1, ue(t), ue(r)) : se(u, OS.Diagnostics.Type_0_cannot_be_used_as_an_index_type, ue(r))), j(r) ? r : void 0); + + function _(e) { + e && e.isReadonly && o && (OS.isAssignmentTarget(o) || OS.isDeleteTarget(o)) && se(o, OS.Diagnostics.Index_signature_in_type_0_only_permits_reading, ue(t)) + } + } + + function Od(e) { + return 209 === e.kind ? e.argumentExpression : 196 === e.kind ? e.indexType : 164 === e.kind ? e.expression : e + } + + function Md(e) { + return !!(77 & e.flags) || Ld(e) + } + + function Ld(e) { + return !!(134217728 & e.flags) && OS.every(e.types, Md) || !!(268435456 & e.flags) && Md(e.type) + } + + function Rd(e) { + return !!Jd(e) + } + + function Bd(e) { + return 4194304 & Jd(e) + } + + function jd(e) { + return !!(8388608 & Jd(e)) + } + + function Jd(e) { + return 3145728 & e.flags ? (2097152 & e.objectFlags || (e.objectFlags |= 2097152 | OS.reduceLeft(e.types, function(e, t) { + return e | Jd(t) + }, 0)), 12582912 & e.objectFlags) : 33554432 & e.flags ? (2097152 & e.objectFlags || (e.objectFlags |= 2097152 | Jd(e.baseType) | Jd(e.constraint)), 12582912 & e.objectFlags) : (58982400 & e.flags || Al(e) || kg(e) ? 4194304 : 0) | (465829888 & e.flags && !Ld(e) ? 8388608 : 0) + } + + function zd(e, t) { + if (8388608 & e.flags) { + var r = e, + n = t, + i = n ? "simplifiedForWriting" : "simplifiedForReading"; + if (r[i]) return r[i] === vn ? r : r[i]; + r[i] = vn; + var a = zd(r.objectType, n), + o = zd(r.indexType, n), + s = function(t, e, r) { + if (1048576 & e.flags) return e = OS.map(e.types, function(e) { + return zd(qd(t, e), r) + }), (r ? ve : he)(e) + }(a, o, n); + if (s) return r[i] = s; + if (!(465829888 & o.flags)) { + s = Ud(a, o, n); + if (s) return r[i] = s + } + if (kg(a) && 296 & o.flags) { + s = Fg(a, 8 & o.flags ? 0 : a.target.fixedLength, 0, n); + if (s) return r[i] = s + } + if (Al(a)) { + o = xl(a); + if (!o || xe(o, vl(a))) return r[i] = Cy(Vd(a, r.indexType), function(e) { + return zd(e, n) + }) + } + return r[i] = r + } + if (16777216 & e.flags) { + s = e, o = t, a = s.checkType, i = s.extendsType, r = rp(s), t = np(s); + if (131072 & t.flags && Xd(r) === Xd(a)) { + if (1 & a.flags || xe(ef(a), ef(i))) return zd(r, o); + if (Kd(a, i)) return ae + } else if (131072 & r.flags && Xd(t) === Xd(a)) { + if (!(1 & a.flags) && xe(ef(a), ef(i))) return ae; + if (1 & a.flags || Kd(a, i)) return zd(t, o) + } + return s + } + return e + } + + function Ud(e, t, r) { + var n; + if (1048576 & e.flags || 2097152 & e.flags && !Dd(e)) return n = OS.map(e.types, function(e) { + return zd(qd(e, t), r) + }), (2097152 & e.flags || r ? ve : he)(n) + } + + function Kd(e, t) { + return 131072 & he([cl(e, t), ae]).flags + } + + function Vd(e, t) { + t = wp([vl(e)], [t]), t = jp(e.mapper, t); + return be(Dl(e.target || e), t) + } + + function qd(e, t, r, n, i, a) { + return Hd(e, t, r = void 0 === r ? 0 : r, n, i, a) || (n ? R : te) + } + + function Wd(e, t) { + return Dy(e, function(e) { + if (384 & e.flags) { + var e = Wc(e); + if (OS.isNumericLiteralName(e)) return 0 <= (e = +e) && e < t + } + return !1 + }) + } + + function Hd(e, t, r, n, i, a) { + if (void 0 === r && (r = 0), e === Ar || t === Ar) return Ar; + var o, s, c, l, u, _, d; + if (!Ff(e) || 98304 & t.flags || !Y1(t, 12) || (t = ne), Z.noUncheckedIndexedAccess && 32 & r && (r |= 1), jd(t) || (n && 196 !== n.kind ? kg(e) && !Wd(t, e.target.fixedLength) : Bd(e) && (!De(e) || !Wd(t, e.target.fixedLength)))) return 3 & e.flags ? e : (s = e.id + "," + t.id + "," + (l = 1 & r) + $u(i, a), (o = mr.get(s)) || mr.set(s, (s = e, c = t, l = l, u = i, _ = a, (d = Ao(8388608)).objectType = s, d.indexType = c, d.accessFlags = l, d.aliasSymbol = u, d.aliasTypeArguments = _, o = d)), o); + var p = Xl(e); + if (!(1048576 & t.flags) || 16 & t.flags) return Id(e, p, t, t, n, 72 | r); + for (var f = [], g = !1, m = 0, y = t.types; m < y.length; m++) { + var h = Id(e, p, y[m], t, n, r | (g ? 128 : 0)); + if (h) f.push(h); + else { + if (!n) return; + g = !0 + } + } + return g ? void 0 : 4 & r ? ve(f, i, a) : he(f, 1, i, a) + } + + function Gd(e) { + var t, r, n, i = H(e); + return i.resolvedType || (t = K(e.objectType), r = K(e.indexType), n = cp(e), i.resolvedType = qd(t, r, 0, e, n, lp(n))), i.resolvedType + } + + function Qd(e) { + var t, r = H(e); + return r.resolvedType || ((t = wo(32, e.symbol)).declaration = e, t.aliasSymbol = cp(e), t.aliasTypeArguments = lp(t.aliasSymbol), bl(r.resolvedType = t)), r.resolvedType + } + + function Xd(e) { + return 33554432 & e.flags ? e.baseType : 8388608 & e.flags && (33554432 & e.objectType.flags || 33554432 & e.indexType.flags) ? qd(Xd(e.objectType), Xd(e.indexType)) : e + } + + function Yd(e) { + var t = Ml(e); + return t && (Bd(t) || jd(t)) ? Up(e) : e + } + + function Zd(e) { + return !e.isDistributive && $d(e.node.checkType) && $d(e.node.extendsType) + } + + function $d(e) { + return OS.isTupleTypeNode(e) && 1 === OS.length(e.elements) && !OS.isOptionalTypeNode(e.elements[0]) && !OS.isRestTypeNode(e.elements[0]) && !(OS.isNamedTupleMember(e.elements[0]) && (e.elements[0].questionToken || e.elements[0].dotDotDotToken)) + } + + function ep(e, t) { + return Zd(e) && De(t) ? ye(t)[0] : t + } + + function tp(i, a, o, s) { + for (var e, t, c = 0;;) { + if (1e3 === c) { + se(Se, OS.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite), e = R; + break + } + var r = Zd(i), + n = be(ep(i, Xd(i.checkType)), a), + l = Rd(n), + u = be(ep(i, i.extendsType), a); + if (n === Ar || u === Ar) return Ar; + var _ = void 0; + if (i.inferTypeParameters) { + var d = OS.sameMap(i.inferTypeParameters, Yd), + p = d !== i.inferTypeParameters ? wp(i.inferTypeParameters, d) : void 0, + f = rm(d, void 0, 0); + if (p) + for (var g = jp(a, p), m = 0, y = d; m < y.length; m++) { + var h = y[m]; - 1 === i.inferTypeParameters.indexOf(h) && (h.mapper = g) + } + l || km(f.inferences, n, be(u, p), 1536); + d = jp(p, f.mapper), _ = a ? jp(d, a) : d + } + p = _ ? be(ep(i, i.extendsType), _) : u; + if (!l && !Rd(p)) { + if (!(3 & p.flags) && (1 & n.flags && !r || !xe($p(n), $p(p)))) { + 1 & n.flags && !r && (t = t || []).push(be(K(i.node.trueType), _ || a)); + f = K(i.node.falseType); + if (16777216 & f.flags) { + d = f.root; + if (d.node.parent === i.node && (!d.isDistributive || d.checkType === i.checkType)) { + i = d; + continue + } + if (v(f, a)) continue + } + e = be(f, a); + break + } + if (3 & p.flags || xe(ef(n), ef(p))) { + u = K(i.node.trueType), l = _ || a; + if (v(u, l)) continue; + e = be(u, l); + break + } + }(e = Ao(16777216)).root = i, e.checkType = be(i.checkType, a), e.extendsType = be(i.extendsType, a), e.mapper = a, e.combinedMapper = _, e.aliasSymbol = o || i.aliasSymbol, e.aliasTypeArguments = o ? s : Ap(i.aliasTypeArguments, a); + break + } + return t ? he(OS.append(t, e)) : e; + + function v(e, t) { + if (16777216 & e.flags && t) { + var r = e.root; + if (r.outerTypeParameters) { + var n = jp(e.mapper, t), + e = OS.map(r.outerTypeParameters, function(e) { + return Ip(e, n) + }), + t = wp(r.outerTypeParameters, e), + e = r.isDistributive ? Ip(r.checkType, t) : void 0; + if (!(e && e !== r.checkType && 1179648 & e.flags)) return a = t, s = o = void 0, (i = r).aliasSymbol && c++, 1 + } + } + } + } + + function rp(e) { + return e.resolvedTrueType || (e.resolvedTrueType = be(K(e.root.node.trueType), e.mapper)) + } + + function np(e) { + return e.resolvedFalseType || (e.resolvedFalseType = be(K(e.root.node.falseType), e.mapper)) + } + + function ip(e) { + var t; + return e.locals && e.locals.forEach(function(e) { + 262144 & e.flags && (t = OS.append(t, Pc(e))) + }), t + } + + function ap(e) { + var t = H(e); + if (!t.resolvedType) { + if (e.isTypeOf && e.typeArguments) return se(e, OS.Diagnostics.Type_arguments_cannot_be_used_here), t.resolvedSymbol = L, t.resolvedType = R; + if (!OS.isLiteralImportTypeNode(e)) return se(e.argument, OS.Diagnostics.String_literal_expected), t.resolvedSymbol = L, t.resolvedType = R; + var r = e.isTypeOf ? 111551 : 8388608 & e.flags ? 900095 : 788968, + n = io(e, e.argument.literal); + if (!n) return t.resolvedSymbol = L, t.resolvedType = R; + var i = !(null == (a = n.exports) || !a.get("export=")), + a = co(n, !1); + if (OS.nodeIsMissing(e.qualifier)) a.flags & r ? t.resolvedType = op(e, t, a, r) : (se(e, 111551 == r ? OS.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here : OS.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0, e.argument.literal.text), t.resolvedSymbol = L, t.resolvedType = R); + else { + for (var o, s = function e(t) { + return OS.isIdentifier(t) ? [t] : OS.append(e(t.left), t.right) + }(e.qualifier), c = a; o = s.shift();) { + var l = s.length ? 1920 : r, + u = bo(Wa(c)), + _ = e.isTypeOf || OS.isInJSFile(e) && i ? fe(de(u), o.escapedText, !1, !0) : void 0, + u = e.isTypeOf ? void 0 : ma(mo(u), o.escapedText, l), + l = null != u ? u : _; + if (!l) return se(o, OS.Diagnostics.Namespace_0_has_no_exported_member_1, to(c), OS.declarationNameToString(o)), t.resolvedType = R; + H(o).resolvedSymbol = l, c = H(o.parent).resolvedSymbol = l + } + t.resolvedType = op(e, t, c, r) + } + } + return t.resolvedType + } + + function op(e, t, r, n) { + var i = Wa(r); + return t.resolvedSymbol = i, 111551 === n ? de(r) : u_(e, i) + } + + function sp(e) { + var t, r, n = H(e); + return n.resolvedType || (t = cp(e), 0 !== Qc(e.symbol).size || t ? ((r = wo(16, e.symbol)).aliasSymbol = t, r.aliasTypeArguments = lp(t), OS.isJSDocTypeLiteral(e) && e.isArrayType && (r = z_(r)), n.resolvedType = r) : n.resolvedType = pn), n.resolvedType + } + + function cp(e) { + for (var t = e.parent; OS.isParenthesizedTypeNode(t) || OS.isJSDocTypeExpression(t) || OS.isTypeOperatorNode(t) && 146 === t.operator;) t = t.parent; + return OS.isTypeAlias(t) ? G(t) : void 0 + } + + function lp(e) { + return e ? pc(e) : void 0 + } + + function up(e) { + return 524288 & e.flags && !Al(e) + } + + function _p(e) { + return kf(e) || !!(474058748 & e.flags) + } + + function dp(e, t) { + if (!(1048576 & e.flags)) return e; + if (OS.every(e.types, _p)) return OS.find(e.types, kf) || un; + var r = OS.find(e.types, function(e) { + return !_p(e) + }); + if (!r) return e; + if (OS.find(e.types, function(e) { + return e !== r && !_p(e) + })) return e; + for (var e = r, n = OS.createSymbolTable(), i = 0, a = pe(e); i < a.length; i++) { + var o, s, c = a[i]; + 24 & OS.getDeclarationModifierFlagsFromSymbol(c) || fp(c) && (o = 65536 & c.flags && !(32768 & c.flags), (s = B(16777220, c.escapedName, ml(c) | (t ? 8 : 0))).type = o ? re : As(de(c), !0), s.declarations = c.declarations, s.nameType = ce(c).nameType, s.syntheticOrigin = c, n.set(c.escapedName, s)) + } + return (e = Bo(e.symbol, n, OS.emptyArray, OS.emptyArray, uu(e))).objectFlags |= 131200, e + } + + function pp(t, r, n, i, a) { + if (1 & t.flags || 1 & r.flags) return ee; + if (2 & t.flags || 2 & r.flags) return te; + if (131072 & t.flags) return r; + if (131072 & r.flags) return t; + if (1048576 & (t = dp(t, a)).flags) return pd([t, r]) ? Cy(t, function(e) { + return pp(e, r, n, i, a) + }) : R; + if (1048576 & (r = dp(r, a)).flags) return pd([t, r]) ? Cy(r, function(e) { + return pp(t, e, n, i, a) + }) : R; + if (473960444 & r.flags) return t; + if (Bd(t) || Bd(r)) { + if (kf(t)) return r; + if (2097152 & t.flags) { + var e = t.types, + o = e[e.length - 1]; + if (up(o) && up(r)) return ve(OS.concatenate(e.slice(0, e.length - 1), [pp(o, r, n, i, a)])) + } + return ve([t, r]) + } + for (var s = OS.createSymbolTable(), c = new OS.Set, e = t === un ? uu(r) : sl([t, r]), l = 0, u = pe(r); l < u.length; l++) { + var _ = u[l]; + 24 & OS.getDeclarationModifierFlagsFromSymbol(_) ? c.add(_.escapedName) : fp(_) && s.set(_.escapedName, gp(_, a)) + } + for (var d = 0, p = pe(t); d < p.length; d++) { + var f, g, m, y = p[d]; + !c.has(y.escapedName) && fp(y) && (s.has(y.escapedName) ? (f = de(_ = s.get(y.escapedName)), 16777216 & _.flags && (g = OS.concatenate(y.declarations, _.declarations), (m = B(4 | 16777216 & y.flags, y.escapedName)).type = he([de(y), Kg(f)], 2), m.leftSpread = y, m.rightSpread = _, m.declarations = g, m.nameType = ce(y).nameType, s.set(y.escapedName, m))) : s.set(y.escapedName, gp(y, a))) + } + o = Bo(n, s, OS.emptyArray, OS.emptyArray, OS.sameMap(e, function(e) { + return t = a, (e = e).isReadonly !== t ? Vu(e.keyType, e.type, t, e.declaration) : e; + var t + })); + return o.objectFlags |= 2228352 | i, o + } + + function fp(e) { + return !(OS.some(e.declarations, OS.isPrivateIdentifierClassElementDeclaration) || 106496 & e.flags && null != (e = e.declarations) && e.some(function(e) { + return OS.isClassLike(e.parent) + })) + } + + function gp(e, t) { + var r = 65536 & e.flags && !(32768 & e.flags); + return r || t !== K1(e) ? ((t = B(4 | 16777216 & e.flags, e.escapedName, ml(e) | (t ? 8 : 0))).type = r ? re : de(e), t.declarations = e.declarations, t.nameType = ce(e).nameType, t.syntheticOrigin = e, t) : e + } + + function mp(e, t, r, n) { + e = Ao(e); + return e.symbol = r, e.value = t, e.regularType = n || e, e + } + + function yp(e) { + var t; + return 2944 & e.flags ? (e.freshType || ((t = mp(e.flags, e.value, e.symbol, e)).freshType = t, e.freshType = t), e.freshType) : e + } + + function hp(e) { + return 2944 & e.flags ? e.regularType : 1048576 & e.flags ? e.regularType || (e.regularType = Cy(e, hp)) : e + } + + function vp(e) { + return !!(2944 & e.flags) && e.freshType === e + } + + function bp(e) { + return dr.get(e) || (dr.set(e, e = mp(128, e)), e) + } + + function xp(e) { + return pr.get(e) || (pr.set(e, e = mp(256, e)), e) + } + + function Dp(e) { + var t = OS.pseudoBigIntToString(e); + return fr.get(t) || (fr.set(t, t = mp(2048, e)), t) + } + + function Sp(e) { + if (OS.isValidESSymbolDeclaration(e)) { + e = OS.isCommonJsExportPropertyAssignment(e) ? G(e.left) : G(e); + if (e) return (t = ce(e)).uniqueESSymbolType || (t.uniqueESSymbolType = (t = e, (e = Ao(8192)).symbol = t, e.escapedName = "__@".concat(e.symbol.escapedName, "@").concat(WS(e.symbol)), e)) + } + var t; + return qr + } + + function Tp(e) { + var t, r, n, i = H(e); + return i.resolvedType || (i.resolvedType = (e = e, r = OS.getThisContainer(e, !1), !(n = r && r.parent) || !OS.isClassLike(n) && 261 !== n.kind || OS.isStatic(r) || OS.isConstructorDeclaration(r) && !OS.isNodeDescendantOf(e, r.body) ? n && OS.isObjectLiteralExpression(n) && OS.isBinaryExpression(n.parent) && 6 === OS.getAssignmentDeclarationKind(n.parent) ? Sc(G(n.parent.left).parent).thisType : (t = 8388608 & e.flags ? OS.getHostSignatureFromJSDoc(e) : void 0) && OS.isFunctionExpression(t) && OS.isBinaryExpression(t.parent) && 3 === OS.getAssignmentDeclarationKind(t.parent) ? Sc(G(t.parent.left).parent).thisType : Qv(r) && OS.isNodeDescendantOf(e, r.body) ? Sc(G(r)).thisType : (se(e, OS.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface), R) : Sc(G(n)).thisType)), i.resolvedType + } + + function Cp(e) { + return K(Ep(e.type) || e.type) + } + + function Ep(e) { + switch (e.kind) { + case 193: + return Ep(e.type); + case 186: + if (1 === e.elements.length && (188 === (e = e.elements[0]).kind || 199 === e.kind && e.dotDotDotToken)) return Ep(e.type); + break; + case 185: + return e.elementType + } + } + + function K(e) { + return f_(kp(e), e) + } + + function kp(e) { + switch (e.kind) { + case 131: + case 315: + case 316: + return ee; + case 157: + return te; + case 152: + return ne; + case 148: + return ie; + case 160: + return jr; + case 134: + return Vr; + case 153: + return qr; + case 114: + return Wr; + case 155: + return re; + case 104: + return Rr; + case 144: + return ae; + case 149: + return 262144 & e.flags && !Te ? ee : Xr; + case 139: + return wr; + case 194: + case 108: + return Tp(e); + case 198: + return 104 === (h = e).literal.kind ? Rr : ((v = H(h)).resolvedType || (v.resolvedType = hp(V(h.literal))), v.resolvedType); + case 180: + return h_(e); + case 179: + return e.assertsModifier ? Wr : Vr; + case 230: + return h_(e); + case 183: + return b_(e); + case 185: + case 186: + return (v = H(h = e)).resolvedType || ((m = V_(h)) === mn ? v.resolvedType = un : 186 === h.kind && OS.some(h.elements, function(e) { + return !!(8 & U_(e)) + }) || !q_(h) ? (y = 185 === h.kind ? [K(h.elementType)] : OS.map(h.elements, K), v.resolvedType = Q_(m, y)) : v.resolvedType = 186 === h.kind && 0 === h.elements.length ? m : n_(m, h, void 0)), v.resolvedType; + case 187: + return As(K(e.type), !0); + case 189: + return (m = H(y = e)).resolvedType || (g = cp(y), m.resolvedType = he(OS.map(y.types, K), 1, g, lp(g))), m.resolvedType; + case 190: + return (f = H(g = e)).resolvedType || (d = cp(g), p = 2 === (g = OS.map(g.types, K)).length && !!(76 & g[0].flags) && g[1] === pn, f.resolvedType = ve(g, d, lp(d), p)), f.resolvedType; + case 317: + return d = K((d = e).type), $ ? Og(d, 65536) : d; + case 319: + return As(K(e.type)); + case 199: + return (f = H(p = e)).resolvedType || (f.resolvedType = p.dotDotDotToken ? Cp(p) : As(K(p.type), !0, !!p.questionToken)); + case 193: + case 318: + case 312: + return K(e.type); + case 188: + return Cp(e); + case 321: + var t = K((i = e).type), + r = i.parent, + n = i.parent.parent; + if (OS.isJSDocTypeExpression(i.parent) && OS.isJSDocParameterTag(n)) { + var i = OS.getHostSignatureFromJSDoc(n), + a = OS.isJSDocCallbackTag(n.parent.parent); + if (i || a) { + a = a ? OS.lastOrUndefined(n.parent.parent.typeExpression.parameters) : OS.lastOrUndefined(i.parameters), i = OS.getParameterSymbolFromJSDoc(n); + if (!a || i && a.symbol === i && OS.isRestParameter(a)) return z_(t) + } + } + return OS.isParameter(r) && OS.isJSDocFunctionType(r.parent) ? z_(t) : As(t); + case 181: + case 182: + case 184: + case 325: + case 320: + case 326: + return sp(e); + case 195: + var o = e, + s = H(o); + if (!s.resolvedType) switch (o.operator) { + case 141: + s.resolvedType = Sd(K(o.type)); + break; + case 156: + s.resolvedType = 153 === o.type.kind ? Sp(OS.walkUpParenthesizedTypes(o.parent)) : R; + break; + case 146: + s.resolvedType = K(o.type); + break; + default: + throw OS.Debug.assertNever(o.operator) + } + return s.resolvedType; + case 196: + return Gd(e); + case 197: + return Qd(e); + case 191: + return (n = H(_ = e)).resolvedType || (i = K(_.checkType), r = lp(a = cp(_)), t = _c(_, !0), t = r ? t : OS.filter(t, function(e) { + return qp(e, _) + }), i = { + node: _, + checkType: i, + extendsType: K(_.extendsType), + isDistributive: !!(262144 & i.flags), + inferTypeParameters: ip(_), + outerTypeParameters: t, + instantiations: void 0, + aliasSymbol: a, + aliasTypeArguments: r + }, n.resolvedType = tp(i, void 0), t && (i.instantiations = new OS.Map, i.instantiations.set(Zu(t), n.resolvedType))), n.resolvedType; + case 192: + return (u = H(l = e)).resolvedType || (u.resolvedType = Fc(G(l.typeParameter))), u.resolvedType; + case 200: + return (u = H(l = e)).resolvedType || (u.resolvedType = Cd(__spreadArray([l.head.text], OS.map(l.templateSpans, function(e) { + return e.literal.text + }), !0), OS.map(l.templateSpans, function(e) { + return K(e.type) + }))), u.resolvedType; + case 202: + return ap(e); + case 79: + case 163: + case 208: + var c = yD(e); + return c ? Pc(c) : R; + default: + return R + } + var l, u, _, d, p, f, g, m, y, h, v + } + + function Np(e, t, r) { + if (e && e.length) + for (var n = 0; n < e.length; n++) { + var i = e[n], + a = r(i, t); + if (i !== a) { + var o = 0 === n ? [] : e.slice(0, n); + for (o.push(a), n++; n < e.length; n++) o.push(r(e[n], t)); + return o + } + } + return e + } + + function Ap(e, t) { + return Np(e, t, be) + } + + function Fp(e, t) { + return Np(e, t, Kp) + } + + function Pp(e, t) { + return Np(e, t, tf) + } + + function wp(e, t) { + return 1 === e.length ? Op(e[0], t ? t[0] : ee) : OS.Debug.attachDebugPrototypeIfDebug({ + kind: 1, + sources: e, + targets: t + }) + } + + function Ip(e, t) { + switch (t.kind) { + case 0: + return e === t.source ? t.target : e; + case 1: + for (var r = t.sources, n = t.targets, i = 0; i < r.length; i++) + if (e === r[i]) return n ? n[i] : ee; + return e; + case 2: + for (r = t.sources, n = t.targets, i = 0; i < r.length; i++) + if (e === r[i]) return n[i](); + return e; + case 3: + return t.func(e); + case 4: + case 5: + var a = Ip(e, t.mapper1); + return (a !== e && 4 === t.kind ? be : Ip)(a, t.mapper2) + } + } + + function Op(e, t) { + return OS.Debug.attachDebugPrototypeIfDebug({ + kind: 0, + source: e, + target: t + }) + } + + function Mp(e, t) { + return OS.Debug.attachDebugPrototypeIfDebug({ + kind: 3, + func: e, + debugInfo: OS.Debug.isDebugging ? t : void 0 + }) + } + + function Lp(e, t) { + return OS.Debug.attachDebugPrototypeIfDebug({ + kind: 2, + sources: e, + targets: t + }) + } + + function Rp(e, t, r) { + return OS.Debug.attachDebugPrototypeIfDebug({ + kind: e, + mapper1: t, + mapper2: r + }) + } + + function Bp(e) { + return wp(e, void 0) + } + + function jp(e, t) { + return e ? Rp(4, e, t) : t + } + + function Jp(e, t, r) { + return r ? Rp(5, Op(e, t), r) : Op(e, t) + } + + function zp(e, t, r) { + return e ? Rp(5, e, Op(t, r)) : Op(t, r) + } + + function Up(e) { + var t = Io(e.symbol); + return t.target = e, t + } + + function Kp(e, t, r) { + var n; + if (e.typeParameters && !r) { + n = OS.map(e.typeParameters, Up), t = jp(wp(e.typeParameters, n), t); + for (var i = 0, a = n; i < a.length; i++) a[i].mapper = t + } + r = $c(e.declaration, n, e.thisParameter && Vp(e.thisParameter, t), Np(e.parameters, t, Vp), void 0, void 0, e.minArgumentCount, 39 & e.flags); + return r.target = e, r.mapper = t, r + } + + function Vp(e, t) { + var r = ce(e); + if (r.type && !lm(r.type)) return e; + 1 & OS.getCheckFlags(e) && (e = r.target, t = jp(r.mapper, t)); + var n = B(e.flags, e.escapedName, 1 | 53256 & OS.getCheckFlags(e)); + return n.declarations = e.declarations, n.parent = e.parent, n.target = e, n.mapper = t, e.valueDeclaration && (n.valueDeclaration = e.valueDeclaration), r.nameType && (n.nameType = r.nameType), n + } + + function qp(a, e) { + if (a.symbol && a.symbol.declarations && 1 === a.symbol.declarations.length) { + for (var t = a.symbol.declarations[0].parent, r = e; r !== t; r = r.parent) + if (!r || 238 === r.kind || 191 === r.kind && OS.forEachChild(r.extendsType, o)) return !0; + return o(e) + } + return !0; + + function o(e) { + switch (e.kind) { + case 194: + return !!a.isThisType; + case 79: + return !a.isThisType && OS.isPartOfTypeNode(e) && !(180 === (r = e).parent.kind && r.parent.typeArguments && r === r.parent.typeName || 202 === r.parent.kind && r.parent.typeArguments && r === r.parent.qualifier) && kp(e) === a; + case 183: + var t, r = e.exprName, + n = Bm(OS.getFirstIdentifier(r)), + i = a.symbol.declarations[0]; + if (165 === i.kind) t = i.parent; + else { + if (!a.isThisType) return !0; + t = i + } + return n.declarations ? OS.some(n.declarations, function(e) { + return OS.isNodeDescendantOf(e, t) + }) || OS.some(e.typeArguments, o) : !0; + case 171: + case 170: + return !e.type && !!e.body || OS.some(e.typeParameters, o) || OS.some(e.parameters, o) || !!e.type && o(e.type) + } + var r; + return !!OS.forEachChild(e, o) + } + } + + function Wp(e) { + e = bl(e); + if (4194304 & e.flags) { + e = Xd(e.type); + if (262144 & e.flags) return e + } + } + + function Hp(f, g, e, t) { + var m = Wp(f); + if (m) { + var r = be(m, g); + if (m !== r) return Ey(eu(r), function(e) { + if (61603843 & e.flags && e !== Ar && !_e(e)) { + if (!f.declaration.nameType) { + var t = void 0; + if (sg(e) || 1 & e.flags && fs(m, 4) < 0 && (t = Ml(m)) && Dy(t, lg)) return t = f, c = Jp(m, p = e, g), _e(c = Qp(t, ie, !0, c)) ? R : z_(c, Gp(cg(p), El(t))); + if (kg(e)) return l = f, u = m, _ = g, d = (c = e).target.elementFlags, p = OS.map(ye(c), function(e, t) { + e = 8 & d[t] ? e : 4 & d[t] ? z_(e) : H_([e], [d[t]]); + return Hp(l, Jp(u, e, _)) + }), c = Gp(c.target.readonly, El(l)), H_(p, OS.map(p, function(e) { + return 8 + }), c); + if (De(e)) return r = f, n = Jp(m, t = e, g), i = t.target.elementFlags, a = OS.map(ye(t), function(e, t) { + return Qp(r, bp("" + t), !!(2 & i[t]), n) + }), o = El(r), s = 4 & o ? OS.map(i, function(e) { + return 1 & e ? 2 : e + }) : 8 & o ? OS.map(i, function(e) { + return 2 & e ? 1 : e + }) : i, o = Gp(t.target.readonly, o), OS.contains(a, R) ? R : H_(a, s, o, t.target.labeledElementDeclarations) + } + return Xp(f, Jp(m, e, g)) + } + var r, n, i, a, o, s, c, l, u, _, d, p; + return e + }, e, t) + } + return be(bl(f), g) === Ar ? Ar : Xp(f, g, e, t) + } + + function Gp(e, t) { + return !!(1 & t) || !(2 & t) && e + } + + function Qp(e, t, r, n) { + n = zp(n, vl(e), t), t = be(Dl(e.target || e), n), n = El(e); + return $ && 4 & n && !X1(t, 49152) ? Mg(t, !0) : $ && 8 & n && r ? ny(t, 524288) : t + } + + function Xp(e, t, r, n) { + var i, a, o = wo(64 | e.objectFlags, e.symbol); + return 32 & e.objectFlags && (o.declaration = e.declaration, a = Up(i = vl(e)), t = jp(Op(i, o.typeParameter = a), t), a.mapper = t), 8388608 & e.objectFlags && (o.node = e.node), o.target = e, o.mapper = t, o.aliasSymbol = r || e.aliasSymbol, o.aliasTypeArguments = r ? n : Ap(e.aliasTypeArguments, t), o.objectFlags |= o.aliasTypeArguments ? e_(o.aliasTypeArguments) : 0, o + } + + function Yp(e, t, r, n) { + var i, a, o, s, c, l = e.root; + return l.outerTypeParameters ? (i = Zu(s = OS.map(l.outerTypeParameters, function(e) { + return Ip(e, t) + })) + $u(r, n), (c = l.instantiations.get(i)) || (a = wp(l.outerTypeParameters, s), o = l.checkType, c = (s = l.isDistributive ? Ip(o, a) : void 0) && o !== s && 1179648 & s.flags ? Ey(eu(s), function(e) { + return tp(l, Jp(o, e, a)) + }, r, n) : tp(l, a, r, n), l.instantiations.set(i, c)), c) : e + } + + function be(e, t) { + return e && t ? Zp(e, t, void 0, void 0) : e + } + + function Zp(e, t, r, n) { + if (!lm(e)) return e; + if (100 === p || 5e6 <= d) return null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.instant("checkTypes", "instantiateType_DepthLimit", { + typeId: e.id, + instantiationDepth: p, + instantiationCount: d + }), se(Se, OS.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite), R; + _++, d++, p++; + e = function(e, t, r, n) { + var i, a, o = e.flags; + if (262144 & o) return Ip(e, t); + if (524288 & o) { + var s, c, l = e.objectFlags; + if (52 & l) return 4 & l && !e.node ? (s = e.resolvedTypeArguments, (c = Ap(s, t)) !== s ? Q_(e.target, c) : e) : 1024 & l ? function(e, t) { + var r = be(e.mappedType, t); + if (32 & OS.getObjectFlags(r)) { + var n = be(e.constraintType, t); + if (4194304 & n.flags) { + t = dm(be(e.source, t), r, n); + if (t) return t + } + } + return e + }(e, t) : function(e, t, r, n) { + var i, a, o, s, c = 4 & e.objectFlags || 8388608 & e.objectFlags ? e.node : e.symbol.declarations[0], + l = H(c), + u = 4 & e.objectFlags ? l.resolvedType : 64 & e.objectFlags ? e.target : e, + _ = l.outerTypeParameters; + return _ || (s = _c(c, !0), Qv(c) && (o = mu(c), s = OS.addRange(s, o)), _ = s || OS.emptyArray, i = 8388612 & e.objectFlags ? [c] : e.symbol.declarations, _ = (8388612 & u.objectFlags || 8192 & u.symbol.flags || 2048 & u.symbol.flags) && !u.aliasTypeArguments ? OS.filter(_, function(t) { + return OS.some(i, function(e) { + return qp(t, e) + }) + }) : _, l.outerTypeParameters = _), _.length ? (a = jp(e.mapper, t), o = OS.map(_, function(e) { + return Ip(e, a) + }), s = r || e.aliasSymbol, c = r ? n : Ap(e.aliasTypeArguments, t), l = Zu(o) + $u(s, c), u.instantiations || (u.instantiations = new OS.Map, u.instantiations.set(Zu(_) + $u(u.aliasSymbol, u.aliasTypeArguments), u)), (r = u.instantiations.get(l)) || (n = wp(_, o), r = 4 & u.objectFlags ? n_(e.target, e.node, n, s, c) : (32 & u.objectFlags ? Hp : Xp)(u, n, s, c), u.instantiations.set(l, r)), r) : e + }(e, t, r, n) + } else { + if (3145728 & o) return s = 1048576 & e.flags ? e.origin : void 0, c = (s && 3145728 & s.flags ? s : e).types, (l = Ap(c, t)) === c && r === e.aliasSymbol ? e : (i = r || e.aliasSymbol, a = r ? n : Ap(e.aliasTypeArguments, t), 2097152 & o || s && 2097152 & s.flags ? ve(l, i, a) : he(l, 1, i, a)); + if (4194304 & o) return Sd(be(e.type, t)); + if (134217728 & o) return Cd(e.texts, Ap(e.types, t)); + if (268435456 & o) return kd(e.symbol, be(e.type, t)); + if (8388608 & o) return i = r || e.aliasSymbol, a = r ? n : Ap(e.aliasTypeArguments, t), qd(be(e.objectType, t), be(e.indexType, t), e.accessFlags, void 0, i, a); + if (16777216 & o) return Yp(e, jp(e.mapper, t), r, n); + if (33554432 & o) return c = be(e.baseType, t), s = be(e.constraint, t), 8650752 & c.flags && Rd(s) ? __(c, s) : 3 & s.flags || xe(ef(c), ef(s)) ? c : 8650752 & c.flags ? __(c, s) : ve([s, c]) + } + return e + }(e, t, r, n); + return p--, e + } + + function $p(e) { + return 262143 & e.flags ? e : e.permissiveInstantiation || (e.permissiveInstantiation = be(e, an)) + } + + function ef(e) { + return 262143 & e.flags ? e : (e.restrictiveInstantiation || (e.restrictiveInstantiation = be(e, nn), e.restrictiveInstantiation.restrictiveInstantiation = e.restrictiveInstantiation), e.restrictiveInstantiation) + } + + function tf(e, t) { + return Vu(e.keyType, be(e.type, t), e.isReadonly, e.declaration) + } + + function rf(e) { + switch (OS.Debug.assert(171 !== e.kind || OS.isObjectLiteralMethod(e)), e.kind) { + case 215: + case 216: + case 171: + case 259: + return nf(e); + case 207: + return OS.some(e.properties, rf); + case 206: + return OS.some(e.elements, rf); + case 224: + return rf(e.whenTrue) || rf(e.whenFalse); + case 223: + return (56 === e.operatorToken.kind || 60 === e.operatorToken.kind) && (rf(e.left) || rf(e.right)); + case 299: + return rf(e.initializer); + case 214: + return rf(e.expression); + case 289: + return OS.some(e.properties, rf) || OS.isJsxOpeningElement(e.parent) && OS.some(e.parent.parent.children, rf); + case 288: + var t = e.initializer; + return !!t && rf(t); + case 291: + t = e.expression; + return !!t && rf(t) + } + return !1 + } + + function nf(e) { + return OS.hasContextSensitiveParameters(e) || !(e = e).typeParameters && !OS.getEffectiveReturnTypeNode(e) && !!e.body && 238 !== e.body.kind && rf(e.body) + } + + function af(e) { + return (OS.isFunctionExpressionOrArrowFunction(e) || OS.isObjectLiteralMethod(e)) && nf(e) + } + + function of(e) { + if (524288 & e.flags) { + var t, r = Fl(e); + if (r.constructSignatures.length || r.callSignatures.length) return (t = wo(16, e.symbol)).members = r.members, t.properties = r.properties, t.callSignatures = OS.emptyArray, t.constructSignatures = OS.emptyArray, t.indexInfos = OS.emptyArray, t + } else if (2097152 & e.flags) return ve(OS.map(e.types, of)); + return e + } + + function sf(e, t) { + return If(e, t, Ti) + } + + function cf(e, t) { + return If(e, t, Ti) ? -1 : 0 + } + + function lf(e, t) { + return If(e, t, Di) ? -1 : 0 + } + + function uf(e, t) { + return If(e, t, bi) ? -1 : 0 + } + + function _f(e, t) { + return If(e, t, bi) + } + + function xe(e, t) { + return If(e, t, Di) + } + + function df(t, r) { + return 1048576 & t.flags ? OS.every(t.types, function(e) { + return df(e, r) + }) : 1048576 & r.flags ? OS.some(r.types, function(e) { + return df(t, e) + }) : 58982400 & t.flags ? df(Jl(t) || te, r) : r === ft ? !!(67633152 & t.flags) : r === gt ? !!(524288 & t.flags) && ty(t) : lc(t, cc(r)) || sg(r) && !cg(r) && df(t, vt) + } + + function pf(e, t) { + return If(e, t, Si) + } + + function ff(e, t) { + return pf(e, t) || pf(t, e) + } + + function gf(e, t, r, n, i, a) { + return Lf(e, t, Di, r, n, i, a) + } + + function mf(e, t, r, n, i, a) { + return yf(e, t, Di, r, n, i, a, void 0) + } + + function yf(e, t, r, n, i, a, o, s) { + return !!If(e, t, r) || (!n || !vf(i, e, t, r, a, o, s)) && Lf(e, t, r, n, a, o, s) + } + + function hf(e) { + return !!(16777216 & e.flags || 2097152 & e.flags && OS.some(e.types, hf)) + } + + function vf(e, t, r, n, i, a, o) { + if (e && !hf(r)) { + if (!Lf(t, r, n, void 0) && function(e, t, r, n, i, a, o) { + for (var s = ge(t, 0), c = ge(t, 1), l = 0, u = [c, s]; l < u.length; l++) { + var _, d = u[l]; + if (OS.some(d, function(e) { + e = me(e); + return !(131073 & e.flags) && Lf(e, r, n, void 0) + })) return gf(t, r, e, i, a, _ = o || {}), _ = _.errors[_.errors.length - 1], OS.addRelatedInfo(_, OS.createDiagnosticForNode(e, d === c ? OS.Diagnostics.Did_you_mean_to_use_new_with_this_expression : OS.Diagnostics.Did_you_mean_to_call_this_expression)), 1 + } + return + }(e, t, r, n, i, a, o)) return !0; + switch (e.kind) { + case 291: + case 214: + return vf(e.expression, t, r, n, i, a, o); + case 223: + switch (e.operatorToken.kind) { + case 63: + case 27: + return vf(e.right, t, r, n, i, a, o) + } + break; + case 207: + return k = e, N = t, F = n, P = a, w = o, !(262140 & (A = r).flags) && bf(function(t) { + var r, n, i, a; + return __generator(this, function(e) { + switch (e.label) { + case 0: + if (!OS.length(t.properties)) return [2]; + r = 0, n = t.properties, e.label = 1; + case 1: + if (!(r < n.length)) return [3, 8]; + if (i = n[r], OS.isSpreadAssignment(i)) return [3, 7]; + if (!(a = vd(G(i), 8576)) || 131072 & a.flags) return [3, 7]; + switch (i.kind) { + case 175: + case 174: + case 171: + case 300: + return [3, 2]; + case 299: + return [3, 4] + } + return [3, 6]; + case 2: + return [4, { + errorNode: i.name, + innerExpression: void 0, + nameType: a + }]; + case 3: + return e.sent(), [3, 7]; + case 4: + return [4, { + errorNode: i.name, + innerExpression: i.initializer, + nameType: a, + errorMessage: OS.isComputedNonLiteralName(i.name) ? OS.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1 : void 0 + }]; + case 5: + return e.sent(), [3, 7]; + case 6: + OS.Debug.assertNever(i), e.label = 7; + case 7: + return r++, [3, 1]; + case 8: + return [2] + } + }) + }(k), N, A, F, P, w); + case 206: + k = e, N = t, A = r, F = n, P = a, w = o; + if (262140 & A.flags) return !1; + if (mg(N)) return bf(Df(k, A), N, A, F, P, w); + N = k.contextualType, k.contextualType = A; + try { + var s = U0(k, 1, !0); + return k.contextualType = N, mg(s) ? bf(Df(k, A), s, A, F, P, w) : !1 + } finally { + k.contextualType = N + } + return; + case 289: + var c, l = e, + s = t, + u = r, + _ = n, + d = a, + p = o, + f = bf(function(t) { + var r, n, i; + return __generator(this, function(e) { + switch (e.label) { + case 0: + if (!OS.length(t.properties)) return [2]; + r = 0, n = t.properties, e.label = 1; + case 1: + return r < n.length ? (i = n[r], OS.isJsxSpreadAttribute(i) || Y0(OS.idText(i.name)) ? [3, 3] : [4, { + errorNode: i.name, + innerExpression: i.initializer, + nameType: bp(OS.idText(i.name)) + }]) : [3, 4]; + case 2: + e.sent(), e.label = 3; + case 3: + return r++, [3, 1]; + case 4: + return [2] + } + }) + }(l), s, u, _, d, p); + if (OS.isJsxOpeningElement(l.parent) && OS.isJsxElement(l.parent.parent)) { + var g = l.parent.parent, + m = ch(oh(l)), + m = void 0 === m ? "children" : OS.unescapeLeadingUnderscores(m), + y = bp(m), + h = qd(u, y), + v = OS.getSemanticJsxChildren(g.children); + if (!OS.length(v)) return f; + var b, x, D = 1 < OS.length(v), + S = Sy(h, yg), + T = Sy(h, function(e) { + return !yg(e) + }); + D ? S !== ae ? (D = H_(eh(g, 0)), E = function(t, r) { + var n, i, a, o; + return __generator(this, function(e) { + switch (e.label) { + case 0: + if (!OS.length(t.children)) return [2]; + i = n = 0, e.label = 1; + case 1: + return i < t.children.length ? (o = t.children[i], a = xp(i - n), (o = xf(o, a, r)) ? [4, o] : [3, 3]) : [3, 5]; + case 2: + return e.sent(), [3, 4]; + case 3: + n++, e.label = 4; + case 4: + return i++, [3, 1]; + case 5: + return [2] + } + }) + }(g, C), f = bf(E, D, S, _, d, p) || f) : If(qd(s, y), h, _) || (f = !0, x = se(g.openingElement.tagName, OS.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided, m, ue(h)), p && p.skipLogging && (p.errors || (p.errors = [])).push(x)) : T !== ae ? (b = xf(v[0], y, C)) && (f = bf(function() { + return __generator(this, function(e) { + switch (e.label) { + case 0: + return [4, b]; + case 1: + return e.sent(), [2] + } + }) + }(), s, u, _, d, p) || f) : If(qd(s, y), h, _) || (f = !0, x = se(g.openingElement.tagName, OS.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided, m, ue(h)), p && p.skipLogging && (p.errors || (p.errors = [])).push(x)) + } + return f; + + function C() { + var e, t, r, n; + return c || (e = OS.getTextOfNode(l.parent.tagName), t = void 0 === (t = ch(oh(l))) ? "children" : OS.unescapeLeadingUnderscores(t), r = qd(u, bp(t)), n = OS.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2, c = __assign(__assign({}, n), { + key: "!!ALREADY FORMATTED!!", + message: OS.formatMessage(void 0, n, e, t, ue(r)) + })), c + } + case 216: + var E = e, + D = t, + S = r, + T = n, + v = a, + d = o; + if (!OS.isBlock(E.body) && !OS.some(E.parameters, OS.hasType)) { + D = gv(D); + if (D) { + y = ge(S, 0); + if (OS.length(y)) { + _ = E.body, D = me(D), y = he(OS.map(y, me)); + if (!Lf(D, y, T, void 0)) { + g = _ && vf(_, D, y, T, void 0, v, d); + if (g) return g; + g = d || {}; + if (Lf(D, y, T, _, void 0, v, g), g.errors) return S.symbol && OS.length(S.symbol.declarations) && OS.addRelatedInfo(g.errors[g.errors.length - 1], OS.createDiagnosticForNode(S.symbol.declarations[0], OS.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)), 0 == (2 & OS.getFunctionFlags(E)) && !ys(D, "then") && Lf(A1(D), y, T, void 0) && OS.addRelatedInfo(g.errors[g.errors.length - 1], OS.createDiagnosticForNode(E, OS.Diagnostics.Did_you_mean_to_mark_this_function_as_async)), !0 + } + } + } + } + return !1 + } + var k, N, A, F, P, w + } + return !1 + } + + function bf(e, t, r, n, i, a) { + for (var o = !1, s = e.next(); !s.done; s = e.next()) { + var c, l, u, _, d = s.value, + p = d.errorNode, + f = d.innerExpression, + g = d.nameType, + d = d.errorMessage, + m = function(e, t, r) { + var n = Hd(t, r); + if (n) return n; + if (1048576 & t.flags) { + n = Jf(e, t); + if (n) return Hd(n, r) + } + }(t, r, g); + !m || 8388608 & m.flags || (_ = Hd(t, g)) && (u = Pd(g, void 0), Lf(_, m, n, void 0) || (o = !0, f && vf(f, _, m, n, void 0, i, a)) || (c = a || {}, f = f ? function(e, t) { + e.contextualType = t; + try { + return m2(e, 1, t) + } finally { + e.contextualType = void 0 + } + }(f, _) : _, Ee && jf(f, m) ? (l = OS.createDiagnosticForNode(p, OS.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target, ue(f), ue(m)), oe.add(l), c.errors = [l]) : (l = !!(u && 16777216 & (fe(r, u) || L).flags), u = !!(u && 16777216 & (fe(t, u) || L).flags), m = zg(m, l), _ = zg(_, l && u), Lf(f, m, n, p, d, i, c) && f !== _ && Lf(_, m, n, p, d, i, c)), c.errors && (u = c.errors[c.errors.length - 1], f = !1, (m = void 0 !== (_ = zc(g) ? Wc(g) : void 0) ? fe(r, _) : void 0) || (p = fu(r, g)) && p.declaration && !OS.getSourceFileOfNode(p.declaration).hasNoDefaultLib && (f = !0, OS.addRelatedInfo(u, OS.createDiagnosticForNode(p.declaration, OS.Diagnostics.The_expected_type_comes_from_this_index_signature))), !f) && (m && OS.length(m.declarations) || r.symbol && OS.length(r.symbol.declarations)) && (d = (m && OS.length(m.declarations) ? m : r.symbol).declarations[0], OS.getSourceFileOfNode(d).hasNoDefaultLib || OS.addRelatedInfo(u, OS.createDiagnosticForNode(d, OS.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1, !_ || 8192 & g.flags ? ue(g) : OS.unescapeLeadingUnderscores(_), ue(r)))))) + } + return o + } + + function xf(e, t, r) { + switch (e.kind) { + case 291: + return { + errorNode: e, + innerExpression: e.expression, + nameType: t + }; + case 11: + if (e.containsOnlyTriviaWhiteSpaces) break; + return { + errorNode: e, + innerExpression: void 0, + nameType: t, + errorMessage: r() + }; + case 281: + case 282: + case 285: + return { + errorNode: e, + innerExpression: e, + nameType: t + }; + default: + return OS.Debug.assertNever(e, "Found invalid jsx child") + } + } + + function Df(t, r) { + var n, i, a, o; + return __generator(this, function(e) { + switch (e.label) { + case 0: + if (!(n = OS.length(t.elements))) return [2]; + i = 0, e.label = 1; + case 1: + return i < n ? mg(r) && !fe(r, "" + i) || (a = t.elements[i], OS.isOmittedExpression(a)) ? [3, 3] : (o = xp(i), [4, { + errorNode: a, + innerExpression: a, + nameType: o + }]) : [3, 4]; + case 2: + e.sent(), e.label = 3; + case 3: + return i++, [3, 1]; + case 4: + return [2] + } + }) + } + + function Sf(e, t, r, n, i) { + Lf(e, t, Si, r, n, i) + } + + function Tf(e, t, r, n, i, a, o, s) { + if (e === t) return -1; + if (!(c = t).typeParameters && (!c.thisParameter || j(p1(c.thisParameter))) && 1 === c.parameters.length && YS(c) && (p1(c.parameters[0]) === Ct || j(p1(c.parameters[0]))) && j(me(c))) return -1; + var c = x1(t); + if (!S1(t) && (8 & r ? S1(e) || x1(e) > c : D1(e) > c)) return 0; + var l = x1(e = e.typeParameters && e.typeParameters !== t.typeParameters ? hv(e, t = Ju(t), void 0, o) : e), + u = C1(e), + _ = C1(t), + d = ((u || _) && be(u || _, s), t.declaration ? t.declaration.kind : 0), + p = !(3 & r) && X && 171 !== d && 170 !== d && 173 !== d, + f = -1, + d = Fu(e); + if (d && d !== Wr) { + var g = Fu(t); + if (g) { + if (!(x = !p && o(d, g, !1) || o(g, d, n))) return n && i(OS.Diagnostics.The_this_types_of_each_signature_are_incompatible), 0; + f &= x + } + } + for (var m = u || _ ? Math.min(l, c) : Math.max(l, c), y = u || _ ? m - 1 : -1, h = 0; h < m; h++) { + var v = (h === y ? b1 : v1)(e, h), + b = (h === y ? b1 : v1)(t, h); + if (v && b) { + var x, D = 3 & r ? void 0 : gv(Lg(v)), + S = 3 & r ? void 0 : gv(Lg(b)); + if (!(x = (x = D && S && !Pu(D) && !Pu(S) && (50331648 & ry(v)) == (50331648 & ry(b)) ? Tf(S, D, 8 & r | (p ? 2 : 1), n, i, a, o, s) : !(3 & r) && !p && o(v, b, !1) || o(b, v, n)) && 8 & r && h >= D1(e) && h < D1(t) && o(v, b, !1) ? 0 : x)) return n && i(OS.Diagnostics.Types_of_parameters_0_and_1_are_incompatible, OS.unescapeLeadingUnderscores(g1(e, h)), OS.unescapeLeadingUnderscores(g1(t, h))), 0; + f &= x + } + } + if (!(4 & r)) { + g = Ou(t) ? ee : t.declaration && Qv(t.declaration) ? Sc(bo(t.declaration.symbol)) : me(t); + if (g === Wr || g === ee) return f; + d = Ou(e) ? ee : e.declaration && Qv(e.declaration) ? Sc(bo(e.declaration.symbol)) : me(e), l = Pu(t); + if (l) { + c = Pu(e); + if (c) f &= function(e, t, r, n, i) { + if (e.kind !== t.kind) return r && (n(OS.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard), n(OS.Diagnostics.Type_predicate_0_is_not_assignable_to_1, as(e), as(t))), 0; + if ((1 === e.kind || 3 === e.kind) && e.parameterIndex !== t.parameterIndex) return r && (n(OS.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1, e.parameterName, t.parameterName), n(OS.Diagnostics.Type_predicate_0_is_not_assignable_to_1, as(e), as(t))), 0; + i = e.type === t.type ? -1 : e.type && t.type ? i(e.type, t.type, r) : 0; + 0 === i && r && n(OS.Diagnostics.Type_predicate_0_is_not_assignable_to_1, as(e), as(t)); + return i + }(c, l, n, i, o); + else if (OS.isIdentifierTypePredicate(l)) return n && i(OS.Diagnostics.Signature_0_must_be_a_type_predicate, $o(e)), 0 + } else !(f &= 1 & r && o(g, d, !1) || o(d, g, n)) && n && a && a(d, g) + } + return f + } + + function Cf(e, t) { + var e = ju(e), + t = ju(t), + r = me(e), + n = me(t); + return (n === Wr || If(n, r, Di) || If(r, n, Di)) && 0 !== Tf(e, t, !0 ? 4 : 0, !1, void 0, void 0, lf, void 0) + } + + function Ef(e) { + return e !== yn && 0 === e.properties.length && 0 === e.callSignatures.length && 0 === e.constructSignatures.length && 0 === e.indexInfos.length + } + + function kf(e) { + return 524288 & e.flags ? !Al(e) && Ef(Fl(e)) : !!(67108864 & e.flags) || (1048576 & e.flags ? OS.some(e.types, kf) : !!(2097152 & e.flags) && OS.every(e.types, kf)) + } + + function Nf(e) { + return !!(16 & OS.getObjectFlags(e) && (e.members && Ef(e) || e.symbol && 2048 & e.symbol.flags && 0 === Qc(e.symbol).size)) + } + + function Af(e) { + return 32768 & (1048576 & e.flags ? e.types[0] : e).flags + } + + function Ff(e) { + return 524288 & e.flags && !Al(e) && 0 === pe(e).length && 1 === uu(e).length && !!_u(e, ne) || 3145728 & e.flags && OS.every(e.types, Ff) || !1 + } + + function Pf(e, t, r) { + if (e === t) return 1; + var n = WS(e) + "," + WS(t), + i = Ci.get(n); + if (void 0 !== i && (4 & i || !(2 & i) || !r)) return 1 & i; + if (e.escapedName === t.escapedName && 256 & e.flags && 256 & t.flags) { + for (var a = de(t), o = 0, s = pe(de(e)); o < s.length; o++) { + var c = s[o]; + if (8 & c.flags) { + var l = fe(a, c.escapedName); + if (!(l && 8 & l.flags)) return void(r ? (r(OS.Diagnostics.Property_0_is_missing_in_type_1, OS.symbolName(c), ue(Pc(t), void 0, 64)), Ci.set(n, 6)) : Ci.set(n, 2)) + } + } + return Ci.set(n, 1), 1 + } + Ci.set(n, 6) + } + + function wf(e, t, r, n) { + var i = e.flags, + a = t.flags; + if (3 & a || 131072 & i || e === Ar) return 1; + if (!(131072 & a)) { + if (402653316 & i && 4 & a) return 1; + if (128 & i && 1024 & i && 128 & a && !(1024 & a) && e.value === t.value) return 1; + if (296 & i && 8 & a) return 1; + if (256 & i && 1024 & i && 256 & a && !(1024 & a) && e.value === t.value) return 1; + if (2112 & i && 64 & a) return 1; + if (528 & i && 16 & a) return 1; + if (12288 & i && 4096 & a) return 1; + if (32 & i && 32 & a && Pf(e.symbol, t.symbol, n)) return 1; + if (1024 & i && 1024 & a) { + if (1048576 & i && 1048576 & a && Pf(e.symbol, t.symbol, n)) return 1; + if (2944 & i && 2944 & a && e.value === t.value && Pf(xo(e.symbol), xo(t.symbol), n)) return 1 + } + if (32768 & i && (!$ && !(3145728 & a) || 49152 & a)) return 1; + if (65536 & i && (!$ && !(3145728 & a) || 65536 & a)) return 1; + if (524288 & i && 67108864 & a && (r !== xi || !Nf(e) || 8192 & OS.getObjectFlags(e))) return 1; + if (r === Di || r === Si) { + if (1 & i) return 1; + if (264 & i && !(1024 & i) && (32 & a || r === Di && 256 & a && 1024 & a)) return 1; + if (n = t, $ && 1048576 & n.flags && (33554432 & n.objectFlags || (e = n.types, n.objectFlags |= 33554432 | (3 <= e.length && 32768 & e[0].flags && 65536 & e[1].flags && OS.some(e, Nf) ? 67108864 : 0)), 67108864 & n.objectFlags)) return 1 + } + } + } + + function If(e, t, r) { + if ((e = vp(e) ? e.regularType : e) === (t = vp(t) ? t.regularType : t)) return !0; + if (r !== Ti) { + if (r === Si && !(131072 & t.flags) && wf(t, e, r) || wf(e, t, r)) return !0 + } else if (!(61865984 & (e.flags | t.flags))) { + if (e.flags !== t.flags) return !1; + if (67358815 & e.flags) return !0 + } + if (524288 & e.flags && 524288 & t.flags) { + var n = r.get(Yf(e, t, 0, r, !1)); + if (void 0 !== n) return !!(1 & n) + } + return !!(469499904 & e.flags || 469499904 & t.flags) && Lf(e, t, r, void 0) + } + + function Of(e, t) { + return 2048 & OS.getObjectFlags(e) && Y0(t.escapedName) + } + + function Mf(e, t) { + for (;;) { + var r = vp(e) ? e.regularType : 4 & OS.getObjectFlags(e) ? e.node ? t_(e.target, ye(e)) : pg(e) || e : 3145728 & e.flags ? function(e, t) { + var r = eu(e); + if (r !== e) return r; + if (2097152 & e.flags && OS.some(e.types, Nf)) { + r = OS.sameMap(e.types, function(e) { + return Mf(e, t) + }); + if (r !== e.types) return ve(r) + } + return e + }(e, t) : 33554432 & e.flags ? t ? e.baseType : d_(e) : 25165824 & e.flags ? zd(e, t) : e; + if (r === e) return r; + e = r + } + } + + function Lf(e, t, B, d, j, r, n) { + var J, i, p, C, E, f, g, a, m = 0, + k = 0, + N = 0, + y = 0, + h = !1, + z = 0, + v = !1, + o = (OS.Debug.assert(B !== Ti || !d, "no error reporting in identity checking"), W(e, t, 3, !!d, j)); + return g && l(), h ? (null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.instant("checkTypes", "checkTypeRelatedTo_DepthLimit", { + sourceId: e.id, + targetId: t.id, + depth: k, + targetDepth: N + }), a = se(d || Se, OS.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1, ue(e), ue(t)), n && (n.errors || (n.errors = [])).push(a)) : J && (r = void(r && (r = r()) && (OS.concatenateDiagnosticMessageChains(r, J), J = r)), j && d && !o && e.symbol && (e = ce(e.symbol)).originatingImport && !OS.isImportCall(e.originatingImport) && Lf(de(e.target), t, B, void 0) && (t = OS.createDiagnosticForNode(e.originatingImport, OS.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead), r = OS.append(r, t)), a = OS.createDiagnosticForNodeFromMessageChain(d, J, r), i && OS.addRelatedInfo.apply(void 0, __spreadArray([a], i, !1)), n && (n.errors || (n.errors = [])).push(a), n && n.skipLogging || oe.add(a)), d && n && n.skipLogging && 0 === o && OS.Debug.assert(!!n.errors, "missed opportunity to interact with error."), 0 !== o; + + function A(e) { + J = e.errorInfo, f = e.lastSkippedInfo, g = e.incompatibleStack, z = e.overrideNextErrorInfo, i = e.relatedInfo + } + + function F() { + return { + errorInfo: J, + lastSkippedInfo: f, + incompatibleStack: null == g ? void 0 : g.slice(), + overrideNextErrorInfo: z, + relatedInfo: null == i ? void 0 : i.slice() + } + } + + function U(e, t, r, n, i) { + z++, f = void 0, (g = g || []).push([e, t, r, n, i]) + } + + function l() { + var e = g || [], + t = f; + if (f = g = void 0, 1 === e.length) K.apply(void 0, e[0]); + else { + for (var r = "", n = []; e.length;) { + var i, a, o = e.pop(), + s = o[0], + c = o.slice(1); + switch (s.code) { + case OS.Diagnostics.Types_of_property_0_are_incompatible.code: + 0 === r.indexOf("new ") && (r = "(".concat(r, ")")); + var l = "" + c[0], + r = 0 === r.length ? "".concat(l) : OS.isIdentifierText(l, OS.getEmitScriptTarget(Z)) ? "".concat(r, ".").concat(l) : "[" === l[0] && "]" === l[l.length - 1] ? "".concat(r).concat(l) : "".concat(r, "[").concat(l, "]"); + break; + case OS.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code: + case OS.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code: + case OS.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code: + case OS.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code: + 0 === r.length ? ((l = s).code === OS.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ? l = OS.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible : s.code === OS.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code && (l = OS.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible), n.unshift([l, c[0], c[1]])) : (i = s.code === OS.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code || s.code === OS.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ? "new " : "", a = s.code === OS.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code || s.code === OS.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ? "" : "...", r = "".concat(i).concat(r, "(").concat(a, ")")); + break; + case OS.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code: + n.unshift([OS.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target, c[0], c[1]]); + break; + case OS.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code: + n.unshift([OS.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target, c[0], c[1], c[2]]); + break; + default: + return OS.Debug.fail("Unhandled Diagnostic: ".concat(s.code)) + } + } + r ? K(")" === r[r.length - 1] ? OS.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types : OS.Diagnostics.The_types_of_0_are_incompatible_between_these_types, r) : n.shift(); + for (var u = 0, _ = n; u < _.length; u++) { + var d = _[u], + s = d[0], + c = d.slice(1), + d = s.elidedInCompatabilityPyramid; + s.elidedInCompatabilityPyramid = !1, K.apply(void 0, __spreadArray([s], c, !1)), s.elidedInCompatabilityPyramid = d + } + } + t && b.apply(void 0, __spreadArray([void 0], t, !1)) + } + + function K(e, t, r, n, i) { + OS.Debug.assert(!!d), g && l(), e.elidedInCompatabilityPyramid || (J = OS.chainDiagnosticMessages(J, e, t, r, n, i)) + } + + function V(e) { + OS.Debug.assert(!!J), i ? i.push(e) : i = [e] + } + + function b(e, t, r) { + g && l(); + var n, i, a = es(t, r), + o = a[0], + a = a[1], + s = t, + c = o; + if (xg(t) && !Rf(r) && (s = Dg(t), OS.Debug.assert(!xe(s, r), "generalized source shouldn't be assignable"), c = ts(s)), 262144 & r.flags && r !== Tn && r !== Cn && (i = void 0, (n = Jl(r)) && (xe(s, n) || (i = xe(t, n))) ? K(OS.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2, i ? o : c, a, ue(n)) : (J = void 0, K(OS.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1, a, c))), e) e === OS.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1 && Ee && Bf(t, r).length && (e = OS.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties); + else if (B === Si) e = OS.Diagnostics.Type_0_is_not_comparable_to_type_1; + else if (o === a) e = OS.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated; + else if (Ee && Bf(t, r).length) e = OS.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties; + else { + if (128 & t.flags && 1048576 & r.flags) { + s = function(e, t) { + t = t.types.filter(function(e) { + return !!(128 & e.flags) + }); + return OS.getSpellingSuggestion(e.value, t, function(e) { + return e.value + }) + }(t, r); + if (s) return void K(OS.Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2, c, a, ue(s)) + } + e = OS.Diagnostics.Type_0_is_not_assignable_to_type_1 + } + K(e, c, a) + } + + function q(e, t, r) { + return De(e) ? e.target.readonly && ug(t) ? void(r && K(OS.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1, ue(e), ue(t))) : lg(t) : cg(e) && ug(t) ? void(r && K(OS.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1, ue(e), ue(t))) : !De(t) || sg(e) + } + + function O(e, t, r) { + return W(e, t, 3, r) + } + + function W(e, t, r, n, i, a) { + if (void 0 === r && (r = 3), void 0 === n && (n = !1), void 0 === a && (a = 0), 524288 & e.flags && 131068 & t.flags) return wf(e, t, B, n ? K : void 0) ? -1 : (n && x(e, t, e, t, i), 0); + var o = Mf(e, !1), + s = Mf(t, !0); + if (o === s) return -1; + if (B === Ti) return o.flags !== s.flags ? 0 : 67358815 & o.flags ? -1 : (D(o, s), T(o, s, !1, 0, r)); + if (262144 & o.flags && Ol(o) === s) return -1; + if (470302716 & o.flags && 1048576 & s.flags) { + var c = s.types, + c = 2 === c.length && 98304 & c[0].flags ? c[1] : 3 === c.length && 98304 & c[0].flags && 98304 & c[1].flags ? c[2] : void 0; + if (c && !(98304 & c.flags) && o === (s = Mf(c, !0))) return -1 + } + if (B === Si && !(131072 & s.flags) && wf(s, o, B) || wf(o, s, B, n ? K : void 0)) return -1; + if (469499904 & o.flags || 469499904 & s.flags) { + c = !(2 & a) && Fm(o) && 8192 & OS.getObjectFlags(o); + if (c && function(o, e, s) { + var c; + if (!(!mh(e) || !Te && 4096 & OS.getObjectFlags(e))) { + var l = !!(2048 & OS.getObjectFlags(o)); + if (B !== Di && B !== Si || !(vy(ft, e) || !l && kf(e))) + for (var u, _ = e, t = (1048576 & e.flags && (_ = IS(o, e, W) || function(e) { + if (X1(e, 67108864)) { + var t = Sy(e, function(e) { + return !(131068 & e.flags) + }); + if (!(131072 & t.flags)) return t + } + return e + }(e), u = 1048576 & _.flags ? _.types : [_]), function(e) { + if (n = e, a = o.symbol, n.valueDeclaration && a.valueDeclaration && n.valueDeclaration.parent === a.valueDeclaration && !Of(o, e)) { + if (!gh(_, e.escapedName, l)) { + if (s) { + var t, r, n = Sy(_, mh); + if (!d) return { + value: OS.Debug.fail() + }; + OS.isJsxAttributes(d) || OS.isJsxOpeningLikeElement(d) || OS.isJsxOpeningLikeElement(d.parent) ? (e.valueDeclaration && OS.isJsxAttribute(e.valueDeclaration) && OS.getSourceFileOfNode(d) === OS.getSourceFileOfNode(e.valueDeclaration.name) && (d = e.valueDeclaration.name), (r = (r = Hh(a = le(e), n)) ? le(r) : void 0) ? K(OS.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, a, ue(n), r) : K(OS.Diagnostics.Property_0_does_not_exist_on_type_1, a, ue(n))) : (t = (null == (c = o.symbol) ? void 0 : c.declarations) && OS.firstOrUndefined(o.symbol.declarations), (r = void 0) !== (r = e.valueDeclaration && OS.findAncestor(e.valueDeclaration, function(e) { + return e === t + }) && OS.getSourceFileOfNode(t) === OS.getSourceFileOfNode(d) && (a = e.valueDeclaration, OS.Debug.assertNode(a, OS.isObjectLiteralElementLike), a = (d = a).name, OS.isIdentifier(a)) ? Gh(a, n) : r) ? K(OS.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2, le(e), ue(n), r) : K(OS.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1, le(e), ue(n))) + } + return { + value: !0 + } + } + if (u && !W(de(e), (a = u, i = e.escapedName, he(OS.reduceLeft(a, function(e, t) { + var r = (3145728 & (t = Ql(t)).flags ? $l : wl)(t, i), + t = r && de(r) || (null == (r = gu(t, i)) ? void 0 : r.type) || re; + return OS.append(e, t) + }, void 0) || OS.emptyArray)), 3, s)) return s && U(OS.Diagnostics.Types_of_property_0_are_incompatible, le(e)), { + value: !0 + } + } + var i, n, a + }), r = 0, n = pe(o); r < n.length; r++) { + var i = n[r], + i = t(i); + if ("object" == typeof i) return i.value + } + } + return + }(o, s, n)) return n && b(i, o, t.aliasSymbol ? t : s), 0; + var l, c = (B !== Si || vg(o)) && !(2 & a) && 2752508 & o.flags && o !== ft && 2621440 & s.flags && Uf(s) && (0 < pe(o).length || DD(o)), + u = !!(2048 & OS.getObjectFlags(o)); + if (c && ! function(e, t, r) { + for (var n = 0, i = pe(e); n < i.length; n++) { + var a = i[n]; + if (gh(t, a.escapedName, r)) return 1 + } + return + }(o, s, u)) return n && (c = ue(e.aliasSymbol ? e : o), u = ue(t.aliasSymbol ? t : s), _ = ge(o, 0), l = ge(o, 1), 0 < _.length && W(me(_[0]), s, 1, !1) || 0 < l.length && W(me(l[0]), s, 1, !1) ? K(OS.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it, c, u) : K(OS.Diagnostics.Type_0_has_no_properties_in_common_with_type_1, c, u)), 0; + D(o, s); + var _ = 1048576 & o.flags && o.types.length < 4 && !(1048576 & s.flags) || 1048576 & s.flags && s.types.length < 4 && !(469499904 & o.flags) ? M(o, s, n, a) : T(o, s, n, a, r); + if (_) return _ + } + return n && x(e, t, o, s, i), 0 + } + + function x(e, t, r, n, i) { + var a, o = !!pg(e), + s = !!pg(t), + o = (r = e.aliasSymbol || o ? e : r, n = t.aliasSymbol || s ? t : n, 0 < z); + if (o && z--, 524288 & r.flags && 524288 & n.flags && (e = J, q(r, n, !0), J !== e) && (o = !!J), 524288 & r.flags && 131068 & n.flags) s = n, a = rs((e = r).symbol) ? ue(e, e.symbol.valueDeclaration) : ue(e), c = rs(s.symbol) ? ue(s, s.symbol.valueDeclaration) : ue(s), (bt === e && ne === s || xt === e && ie === s || Dt === e && Vr === s || P_() === e && qr === s) && K(OS.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible, c, a); + else if (r.symbol && 524288 & r.flags && ft === r) K(OS.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead); + else if (2048 & OS.getObjectFlags(r) && 2097152 & n.flags) { + var e = n.types, + s = nh(MS.IntrinsicAttributes, d), + c = nh(MS.IntrinsicClassAttributes, d); + if (!_e(s) && !_e(c) && (OS.contains(e, s) || OS.contains(e, c))) return + } else J = iu(J, t); + !i && o ? f = [r, n] : (b(i, r, n), 262144 & r.flags && null != (s = null == (a = r.symbol) ? void 0 : a.declarations) && s[0] && !Ol(r) && ((e = Up(r)).constraint = be(n, Op(r, e)), Ul(e)) && (t = ue(n, r.symbol.declarations[0]), V(OS.createDiagnosticForNode(r.symbol.declarations[0], OS.Diagnostics.This_type_parameter_might_need_an_extends_0_constraint, t)))) + } + + function D(e, t) { + var r, n; + OS.tracing && 3145728 & e.flags && 3145728 & t.flags && (e.objectFlags & t.objectFlags & 32768 || 1e6 < (r = e.types.length) * (n = t.types.length) && OS.tracing.instant("checkTypes", "traceUnionsOrIntersectionsTooLarge_DepthLimit", { + sourceId: e.id, + sourceSize: r, + targetId: t.id, + targetSize: n, + pos: null == d ? void 0 : d.pos, + end: null == d ? void 0 : d.end + })) + } + + function M(e, t, r, n) { + if (1048576 & e.flags) return (B === Si ? S : function(e, t, r, n) { + for (var i = -1, a = e.types, o = function(e, t) { + if (1048576 & e.flags && 1048576 & t.flags && !(32768 & e.types[0].flags) && 32768 & t.types[0].flags) return ky(t, -32769); + return t + }(e, t), s = 0; s < a.length; s++) { + var c = a[s]; + if (1048576 & o.flags && a.length >= o.types.length && a.length % o.types.length == 0) { + var l = W(c, o.types[s % o.types.length], 3, !1, void 0, n); + if (l) { + i &= l; + continue + } + } + l = W(c, t, 1, r, void 0, n); + if (!l) return 0; + i &= l + } + return i + })(e, t, r && !(131068 & e.flags), n); + if (1048576 & t.flags) return _(Wg(e), t, r && !(131068 & e.flags) && !(131068 & t.flags)); + if (2097152 & t.flags) { + for (var i = e, a = r, o = 2, s = -1, n = (n = t).types, c = 0, l = n; c < l.length; c++) { + var u = l[c], + u = W(i, u, 2, a, void 0, o); + if (!u) return 0; + s &= u + } + return s + } + if (B === Si && 131068 & t.flags) { + r = OS.sameMap(e.types, function(e) { + return 465829888 & e.flags ? Jl(e) || te : e + }); + if (r !== e.types) { + if (131072 & (e = ve(r)).flags) return 0; + if (!(2097152 & e.flags)) return W(e, t, 1, !1) || W(t, e, 1, !1) + } + } + return S(e, t, !1, 1) + } + + function L(e, t) { + for (var r = -1, n = 0, i = e.types; n < i.length; n++) { + var a = _(i[n], t, !1); + if (!a) return 0; + r &= a + } + return r + } + + function _(e, t, r) { + var n = t.types; + if (1048576 & t.flags) { + if (td(n, e)) return -1; + var i = Xm(t, e); + if (i) + if (a = W(e, i, 2, !1)) return a + } + for (var a, o = 0, s = n; o < s.length; o++) + if (a = W(e, s[o], 2, !1)) return a; + return r && (i = Jf(e, t, W)) && W(e, i, 2, !0), 0 + } + + function S(e, t, r, n) { + var i = e.types; + if (1048576 & e.flags && td(i, t)) return -1; + for (var a = i.length, o = 0; o < a; o++) { + var s = W(i[o], t, 1, r && o === a - 1, void 0, n); + if (s) return s + } + return 0 + } + + function T(e, t, r, n, i) { + if (h) return 0; + var a = Yf(e, t, n, B, !1), + o = B.get(a); + if (void 0 !== o && (!(r && 2 & o) || 4 & o)) return lt && (8 & (_ = 24 & o) && be(e, ln), 16 & _) && be(e, cn), 1 & o ? -1 : 0; + if (p) { + for (var s = a.startsWith("*") ? Yf(e, t, n, B, !0) : void 0, c = 0; c < m; c++) + if (a === p[c] || s && s === p[c]) return 3; + if (100 === k || 100 === N) return h = !0, 0 + } else p = [], C = [], E = []; + var l, u, _ = m, + o = (p[m] = a, m++, y), + d = (1 & i && (C[k] = e, k++, 1 & y || !rg(e, C, k) || (y |= 1)), 2 & i && (E[N] = t, N++, 2 & y || !rg(t, E, N) || (y |= 2)), 0); + if (lt && (l = lt, lt = function(e) { + return d |= e ? 16 : 8, l(e) + }), 3 === y ? (null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.instant("checkTypes", "recursiveTypeRelatedTo_DepthLimit", { + sourceId: e.id, + sourceIdStack: C.map(function(e) { + return e.id + }), + targetId: t.id, + targetIdStack: E.map(function(e) { + return e.id + }), + depth: k, + targetDepth: N + }), u = 3) : (null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.push("checkTypes", "structuredTypeRelatedTo", { + sourceId: e.id, + targetId: t.id + }), u = function(t, e, r, n) { + var i = F(), + a = function(e, t, i, r, a) { + var o, s, c = !1, + n = e.flags, + l = t.flags; + if (B === Ti) { + if (3145728 & n) return (g = L(e, t)) && (g &= L(t, e)), g; + if (4194304 & n) return W(e.type, t.type, 3, !1); + if (8388608 & n && (o = W(e.objectType, t.objectType, 3, !1)) && (o &= W(e.indexType, t.indexType, 3, !1))) return o; + if (16777216 & n && e.root.isDistributive === t.root.isDistributive && (o = W(e.checkType, t.checkType, 3, !1)) && (o &= W(e.extendsType, t.extendsType, 3, !1)) && (o &= W(rp(e), rp(t), 3, !1)) && (o &= W(np(e), np(t), 3, !1))) return o; + if (33554432 & n && (o = W(e.baseType, t.baseType, 3, !1)) && (o &= W(e.constraint, t.constraint, 3, !1))) return o; + if (!(524288 & n)) return 0 + } else if (3145728 & n || 3145728 & l) { + if (o = M(e, t, i, r)) return o; + if (!(465829888 & n || 524288 & n && 1048576 & l || 2097152 & n && 467402752 & l)) return 0 + } + if (17301504 & n && e.aliasSymbol && e.aliasTypeArguments && e.aliasSymbol === t.aliasSymbol && !Hf(e) && !Hf(t)) { + if ((x = Vf(e.aliasSymbol)) === OS.emptyArray) return 1; + if (void 0 !== (D = T(e.aliasTypeArguments, t.aliasTypeArguments, x, r))) return D + } + if (Ng(e) && !e.target.readonly && (o = W(ye(e)[0], t, 1)) || Ng(t) && (t.target.readonly || ug(Jl(e) || e)) && (o = W(e, ye(t)[0], 2))) return o; + if (262144 & l) { + if (32 & OS.getObjectFlags(e) && !e.declaration.nameType && W(Sd(t), bl(e), 3) && !(4 & El(e))) { + var u = Dl(e), + _ = qd(t, vl(e)); + if (o = W(u, _, 3, i)) return o + } + if (B === Si && 262144 & n) { + if ((b = Ml(e)) && Ul(e)) + for (; b && xy(b, function(e) { + return !!(262144 & e.flags) + });) { + if (o = W(b, t, 1, !1)) return o; + b = Ml(b) + } + return 0 + } + } else if (4194304 & l) { + var d = t.type; + if (4194304 & n && (o = W(d, e.type, 3, !1))) return o; + if (De(d)) { + if (o = W(e, Y_(d), 2, i)) return o + } else if (b = Ll(d)) { + if (-1 === W(e, Sd(b, t.stringsOnly), 2, i)) return -1 + } else if (Al(d)) { + var p, f = xl(d), + g = bl(d), + m = void 0; + if (m = f && Tl(d) ? (yl(Ql(Cl(d)), 8576, !(p = []), function(e) { + p.push(be(f, zp(d.mapper, vl(d), e))) + }), he(__spreadArray(__spreadArray([], p, !0), [f], !1))) : f || g, -1 === W(e, m, 2, i)) return -1 + } + } else if (8388608 & l) { + if (8388608 & n) { + if ((o = W(e.objectType, t.objectType, 3, i)) && (o &= W(e.indexType, t.indexType, 3, i)), o) return o; + i && (s = J) + } + if (B === Di || B === Si) { + var g = t.objectType, + y = t.indexType, + h = Jl(g) || g, + y = Jl(y) || y; + if (!Bd(h) && !jd(y)) + if (b = Hd(h, y, 4 | (h !== g ? 2 : 0))) { + if (i && s && A(a), o = W(e, b, 2, i, void 0, r)) return o; + i && s && (J = J && (S([s]) <= S([J]) ? s : J)) + } + } + i && (s = void 0) + } else if (Al(t) && B !== Ti) { + y = !!t.declaration.nameType, u = Dl(t), h = El(t); + if (!(8 & h)) { + if (!y && 8388608 & u.flags && u.objectType === e && u.indexType === vl(t)) return -1; + if (!Al(e)) { + m = (y ? xl : bl)(t), g = Sd(e, void 0, !0), u = 4 & h, h = u ? cl(m, g) : void 0; + if (u ? !(131072 & h.flags) : W(m, g, 3)) { + var u = Dl(t), + g = vl(t), + v = ky(u, -98305); + if (!y && 8388608 & v.flags && v.indexType === g) { + if (o = W(e, v.objectType, 2, i)) return o + } else { + v = y ? h || m : h ? ve([h, g]) : g, _ = qd(e, v); + if (o = W(_, u, 3, i)) return o + } + } + s = J, A(a) + } + } + } else if (16777216 & l) { + if (rg(t, E, N, 10)) return 3; + y = t; + if (!y.root.inferTypeParameters && ! function(e) { + return e.isDistributive && (qp(e.checkType, e.node.trueType) || qp(e.checkType, e.node.falseType)) + }(y.root)) { + m = !xe($p(y.checkType), $p(y.extendsType)), h = !m && xe(ef(y.checkType), ef(y.extendsType)); + if ((o = m ? -1 : W(e, rp(y), 2, !1, void 0, r)) && (o &= h ? -1 : W(e, np(y), 2, !1, void 0, r))) return o + } + } else if (134217728 & l) { + if (134217728 & n) { + if (B === Si) return function(e, t) { + var r = e.texts[0], + n = t.texts[0], + e = e.texts[e.texts.length - 1], + t = t.texts[t.texts.length - 1], + i = Math.min(r.length, n.length), + a = Math.min(e.length, t.length); + return r.slice(0, i) !== n.slice(0, i) || e.slice(e.length - a) !== t.slice(t.length - a) + }(e, t) ? 0 : -1; + be(e, cn) + } + if (Tm(e, t)) return -1 + } else if (268435456 & t.flags && !(268435456 & e.flags) && Dm(e, t)) return -1; + if (8650752 & n) { + if (!(8388608 & n && 8388608 & l)) { + var b = Ol(e) || te; + if (o = W(b, t, 1, !1, void 0, r)) return o; + if (o = W(Yc(b, e), t, 1, i && b !== te && !(l & n & 262144), void 0, r)) return o; + if (Gl(e)) { + g = Ol(e.indexType); + if (g && (o = W(qd(e.objectType, g), t, 1, i))) return o + } + } + } else if (4194304 & n) { + if (o = W($r, t, 1, i)) return o + } else if (134217728 & n && !(524288 & l)) { + if (!(134217728 & l)) + if ((b = Jl(e)) && b !== e && (o = W(b, t, 1, i))) return o + } else if (268435456 & n) { + if (268435456 & l) { + if (e.symbol !== t.symbol) return 0; + if (o = W(e.type, t.type, 3, i)) return o + } else if ((b = Jl(e)) && (o = W(b, t, 1, i))) return o + } else if (16777216 & n) { + if (rg(e, C, k, 10)) return 3; + if (16777216 & l) { + v = e.root.inferTypeParameters, _ = e.extendsType, u = void 0; + if (v && (km((m = rm(v, void 0, 0, O)).inferences, t.extendsType, _, 1536), _ = be(_, m.mapper), u = m.mapper), sf(_, t.extendsType) && (W(e.checkType, t.checkType, 3) || W(t.checkType, e.checkType, 3)) && ((o = W(be(rp(e), u), rp(t), 3, i)) && (o &= W(np(e), np(t), 3, i)), o)) return o + } else { + h = Ul(e) ? Bl(e) : void 0; + if (h && (o = W(h, t, 1, i))) return o + } + y = Rl(e); + if (y && (o = W(y, t, 1, i))) return o + } else { + if (B !== bi && B !== xi && function(e) { + return 32 & OS.getObjectFlags(e) && 4 & El(e) + }(t) && kf(e)) return -1; + if (Al(t)) return Al(e) && (o = function(e, t, r) { + if (B === Si || (B === Ti ? El(e) === El(t) : Nl(e) <= Nl(t))) { + var n = bl(t), + i = be(bl(e), Nl(e) < 0 ? ln : cn); + if (n = W(n, i, 3, r)) { + i = wp([vl(e)], [vl(t)]); + if (be(xl(e), i) === be(xl(t), i)) return n & W(be(Dl(e), i), Dl(t), 3, r) + } + } + return 0 + }(e, t, i)) ? o : 0; + var x, D, g = !!(131068 & n); + if (B !== Ti) e = Ql(e), n = e.flags; + else if (Al(e)) return 0; + if (4 & OS.getObjectFlags(e) && 4 & OS.getObjectFlags(t) && e.target === t.target && !De(e) && !Hf(e) && !Hf(t)) { + if (gg(e)) return -1; + if ((x = Kf(e.target)) === OS.emptyArray) return 1; + if (void 0 !== (D = T(ye(e), ye(t), x, r))) return D + } else { + if (cg(t) ? lg(e) : sg(t) && De(e) && !e.target.readonly) return B !== Ti ? W(du(e, ie) || ee, du(t, ie) || ee, 3, i) : 0; + if ((B === bi || B === xi) && kf(t) && 8192 & OS.getObjectFlags(t) && !kf(e)) return 0 + } + if (2621440 & n && 524288 & l) { + v = i && J === a.errorInfo && !g; + if ((o = P(e, t, v, void 0, r)) && (o &= w(e, t, 0, v)) && (o &= w(e, t, 1, v)) && (o &= Y(e, t, g, v, r)), c && o) J = s || J || a.errorInfo; + else if (o) return o + } + if (2621440 & n && 1048576 & l) { + m = ky(t, 36175872); + if (1048576 & m.flags) { + _ = function(s, c) { + var l = Wm(pe(s), c); + if (!l) return 0; + for (var e = 1, t = 0, r = l; t < r.length; t++) { + var n = r[t]; + if (25 < (e *= function(e) { + return 1048576 & e.flags ? e.types.length : 1 + }(oc(n)))) return null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.instant("checkTypes", "typeRelatedToDiscriminatedType_DepthLimit", { + sourceId: s.id, + targetId: c.id, + numCombinations: e + }), 0 + } + for (var i = new Array(l.length), a = new OS.Set, o = 0; o < l.length; o++) { + var u = oc(n = l[o]); + i[o] = 1048576 & u.flags ? u.types : [u], a.add(n.escapedName) + } + for (var _ = OS.cartesianProduct(i), d = [], p = function(n) { + var e = !1; + e: for (var t = 0, r = c.types; t < r.length; t++) { + for (var i = r[t], a = 0; a < l.length; a++) { + var o = function(t) { + var e = l[t], + r = fe(i, e.escapedName); + return r ? e === r ? "continue" : G(s, c, e, r, function(e) { + return n[t] + }, !1, 0, $ || B === Si) ? void 0 : "continue-outer" : "continue-outer" + }(a); + if ("continue-outer" === o) continue e + } + OS.pushIfUnique(d, i, OS.equateValues), e = !0 + } + if (!e) return { + value: 0 + } + }, f = 0, g = _; f < g.length; f++) { + var m = g[f], + m = p(m); + if ("object" == typeof m) return m.value + } + for (var y = -1, h = 0, v = d; h < v.length; h++) { + var b = v[h]; + if (!(y &= P(s, b, !1, a, 0)) || !(y &= w(s, b, 0, !1)) || !(y &= w(s, b, 1, !1)) || De(s) && De(b) || (y &= Y(s, b, !1, !1, 0)), !y) return y + } + return y + }(e, m); + if (_) return _ + } + } + } + return 0; + + function S(e) { + return e ? OS.reduceLeft(e, function(e, t) { + return e + 1 + S(t.next) + }, 0) : 0 + } + + function T(e, t, r, n) { + if (o = function(e, t, r, n, i) { + if (void 0 === e && (e = OS.emptyArray), void 0 === t && (t = OS.emptyArray), void 0 === r && (r = OS.emptyArray), e.length !== t.length && B === Ti) return 0; + for (var a = (e.length <= t.length ? e : t).length, o = -1, s = 0; s < a; s++) { + var c = s < r.length ? r[s] : 1, + l = 7 & c; + if (4 != l) { + var u = e[s], + _ = t[s], + d = -1; + if (8 & c ? d = B === Ti ? W(u, _, 3, !1) : cf(u, _) : 1 == l ? d = W(u, _, 3, n, void 0, i) : 2 == l ? d = W(_, u, 3, n, void 0, i) : 3 == l ? d = (d = W(_, u, 3, !1)) || W(u, _, 3, n, void 0, i) : (d = W(u, _, 3, n, void 0, i)) && (d &= W(_, u, 3, n, void 0, i)), !d) return 0; + o &= d + } + } + return o + }(e, t, r, i, n)) return o; + if (OS.some(r, function(e) { + return !!(24 & e) + })) s = void 0, A(a); + else { + e = t && function(e, t) { + for (var r = 0; r < t.length; r++) + if (1 == (7 & t[r]) && 16384 & e[r].flags) return !0; + return !1 + }(t, r); + if (c = !e, r !== OS.emptyArray && !e) { + if (c && (!i || !OS.some(r, function(e) { + return 0 == (7 & e) + }))) return 0; + s = J, A(a) + } + } + } + }(t, e, r, n, i); { + var o; + B !== Ti && (a = !a && (2097152 & t.flags || 262144 & t.flags && 1048576 & e.flags) && (o = function(e, t) { + for (var r, n = !1, i = 0, a = e; i < a.length; i++) + if (465829888 & (s = a[i]).flags) { + for (var o = Ol(s); o && 21233664 & o.flags;) o = Ol(o); + o && (r = OS.append(r, o), t) && (r = OS.append(r, s)) + } else(469892092 & s.flags || Nf(s)) && (n = !0); + if (r && (t || n)) { + if (n) + for (var s, c = 0, l = e; c < l.length; c++)(469892092 & (s = l[c]).flags || Nf(s)) && (r = OS.append(r, s)); + return Mf(ve(r), !1) + } + }(2097152 & t.flags ? t.types : [t], !!(1048576 & e.flags))) && Dy(o, function(e) { + return e !== t + }) ? W(o, e, 1, !1, void 0, n) : a) && !v && (2097152 & e.flags && !Bd(e) && 2621440 & t.flags || up(e) && !lg(e) && 2097152 & t.flags && 3670016 & Ql(t).flags && !OS.some(t.types, function(e) { + return !!(262144 & OS.getObjectFlags(e)) + })) && (v = !0, a &= P(t, e, r, void 0, 0), v = !1) + } + a && A(i); + return a + }(e, t, r, n), null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.pop()), lt = lt && l, 1 & i && k--, 2 & i && N--, y = o, u) { + if (-1 === u || 0 === k && 0 === N) { + if (-1 === u || 3 === u) + for (c = _; c < m; c++) B.set(p[c], 1 | d); + m = _ + } + } else B.set(a, 2 | (r ? 4 : 0) | d), m = _; + return u + } + + function H(e, t) { + if (!t || 0 === e.length) return e; + for (var r, n = 0; n < e.length; n++) t.has(e[n].escapedName) ? r = r || e.slice(0, n) : r && r.push(e[n]); + return r || e + } + + function G(e, t, r, n, i, a, o, s) { + var c, l, u, _ = OS.getDeclarationModifierFlagsFromSymbol(r), + d = OS.getDeclarationModifierFlagsFromSymbol(n); + if (8 & _ || 8 & d) { + if (r.valueDeclaration !== n.valueDeclaration) return a && (8 & _ && 8 & d ? K(OS.Diagnostics.Types_have_separate_declarations_of_a_private_property_0, le(n)) : K(OS.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2, le(n), ue(8 & _ ? e : t), ue(8 & _ ? t : e))), 0 + } else if (16 & d) { + if (c = r, Zf(n, function(e) { + return !!(16 & OS.getDeclarationModifierFlagsFromSymbol(e)) && (t = c, r = $f(e), !Zf(t, function(e) { + e = $f(e); + return !!e && lc(e, r) + })); + var t, r + })) return a && K(OS.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2, le(n), ue($f(r) || e), ue($f(n) || t)), 0 + } else if (16 & _) return a && K(OS.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2, le(n), ue(e), ue(t)), 0; + return B === xi && K1(r) && !K1(n) ? 0 : (d = r, _ = n, i = i, l = a, o = o, u = $ && !!(48 & OS.getCheckFlags(_)), _ = As(oc(_), !1, u), (u = W(i(d), _, 3, l, void 0, o)) ? !s && 16777216 & r.flags && 106500 & n.flags && !(16777216 & n.flags) ? (a && K(OS.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2, le(n), ue(e), ue(t)), 0) : u : (a && U(OS.Diagnostics.Types_of_property_0_are_incompatible, le(n)), 0)) + } + + function P(e, t, r, n, i) { + if (B === Ti) { + var a = e, + o = t, + s = n; + if (!(524288 & a.flags && 524288 & o.flags)) return 0; + if (a = H(Pl(a), s), s = H(Pl(o), s), a.length !== s.length) return 0; + for (var c = -1, l = 0, u = a; l < u.length; l++) { + var _ = u[l], + d = wl(o, _.escapedName); + if (!d) return 0; + _ = ig(_, d, W); + if (!_) return 0; + c &= _ + } + return c + } + var p = -1; + if (De(t)) { + if (lg(e)) { + if (!t.target.readonly && (cg(e) || De(e) && e.target.readonly)) return 0; + var f = i_(e), + g = i_(t), + s = De(e) ? 4 & e.target.combinedFlags : 4, + a = 4 & t.target.combinedFlags, + m = De(e) ? e.target.minLength : 0, + y = t.target.minLength; + if (!s && f < y) return r && K(OS.Diagnostics.Source_has_0_element_s_but_target_requires_1, f, y), 0; + if (!a && g < m) return r && K(OS.Diagnostics.Source_has_0_element_s_but_target_allows_only_1, m, g), 0; + if (!a && (s || g < f)) return r && (m < y ? K(OS.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer, y) : K(OS.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more, g)), 0; + for (var h = ye(e), L = ye(t), v = Math.min(De(e) ? Z_(e.target, 11) : 0, Z_(t.target, 11)), b = Math.min(De(e) ? $_(e.target, 11) : 0, a ? $_(t.target, 11) : 0), x = !!n, D = 0; D < g; D++) { + var S = D < g - b ? D : D + f - g, + T = De(e) && (D < v || g - b <= D) ? e.target.elementFlags[S] : 4, + C = t.target.elementFlags[D]; + if (8 & C && !(8 & T)) return r && K(OS.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target, D), 0; + if (8 & T && !(12 & C)) return r && K(OS.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target, S, D), 0; + if (1 & C && !(1 & T)) return r && K(OS.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target, D), 0; + if (!(x = x && (!(12 & T || 12 & C) && x)) || null == n || !n.has("" + D)) { + var E = De(e) ? D < v || g - b <= D ? zg(h[S], !!(T & C & 2)) : Fg(e, v, b) || ae : h[0], + k = L[D]; + if (!(I = W(E, 8 & T && 4 & C ? z_(k) : zg(k, !!(2 & C)), 3, r, void 0, i))) return r && (1 < g || 1 < f) && (D < v || g - b <= D || f - v - b == 1 ? U(OS.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target, S, D) : U(OS.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target, v, f - b - 1, D)), 0; + p &= I + } + } + return p + } + if (12 & t.target.combinedFlags) return 0 + } + m = !(B !== bi && B !== xi || Fm(e) || gg(e) || De(e)), y = mm(e, t, m, !1); + if (y) return r && function(e, t) { + var r = au(e, 0), + n = au(e, 1), + e = Pl(e); + if (!r.length && !n.length || e.length) return 1; + if (ge(t, 0).length && r.length || ge(t, 1).length && n.length) return 1; + return + }(e, t) && function(e, t, r, n) { + var i = !1; + if (r.valueDeclaration && OS.isNamedDeclaration(r.valueDeclaration) && OS.isPrivateIdentifier(r.valueDeclaration.name) && e.symbol && 32 & e.symbol.flags) { + var a, o = r.valueDeclaration.name.escapedText, + s = OS.getSymbolNameForPrivateIdentifier(e.symbol, o); + if (s && fe(e, s)) return s = OS.factory.getDeclarationName(e.symbol.valueDeclaration), a = OS.factory.getDeclarationName(t.symbol.valueDeclaration), K(OS.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2, Da(o), Da("" === s.escapedText ? RS : s), Da("" === a.escapedText ? RS : a)) + } + o = OS.arrayFrom(gm(e, t, n, !1)), j && (j.code === OS.Diagnostics.Class_0_incorrectly_implements_interface_1.code || j.code === OS.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code) || (i = !0), 1 === o.length ? (s = le(r, void 0, 0, 20), K.apply(void 0, __spreadArray([OS.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2, s], es(e, t), !1)), OS.length(r.declarations) && V(OS.createDiagnosticForNode(r.declarations[0], OS.Diagnostics._0_is_declared_here, s)), i && J && z++) : q(e, t, !1) && (5 < o.length ? K(OS.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more, ue(e), ue(t), OS.map(o.slice(0, 4), function(e) { + return le(e) + }).join(", "), o.length - 4) : K(OS.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2, ue(e), ue(t), OS.map(o, function(e) { + return le(e) + }).join(", ")), i) && J && z++ + }(e, t, y, m), 0; + if (Fm(t)) + for (var N = 0, A = H(pe(e), n); N < A.length; N++) { + var F = A[N]; + if (!wl(t, F.escapedName)) + if (!(32768 & (E = de(F)).flags)) return r && K(OS.Diagnostics.Property_0_does_not_exist_on_type_1, le(F), ue(t)), 0 + } + for (var y = pe(t), R = De(e) && De(t), P = 0, w = H(y, n); P < w.length; P++) { + var I, O = w[P], + M = O.escapedName; + if (!(4194304 & O.flags) && (!R || OS.isNumericLiteralName(M) || "length" === M)) + if ((F = fe(e, M)) && F !== O) { + if (!(I = G(e, t, F, O, oc, r, i, B === Si))) return 0; + p &= I + } + } + return p + } + + function w(e, t, r, n) { + if (B === Ti) { + var i = t, + a = r, + o = ge(e, a), + s = ge(i, a); + if (o.length !== s.length) return 0; + for (var c = -1, l = 0; l < o.length; l++) { + var u = ag(o[l], s[l], !1, !1, !1, W); + if (!u) return 0; + c &= u + } + return c + } + if (t === yn || e === yn) return -1; + var i = e.symbol && Qv(e.symbol.valueDeclaration), + a = t.symbol && Qv(t.symbol.valueDeclaration), + _ = ge(e, i && 1 === r ? 0 : r), + d = ge(t, a && 1 === r ? 0 : r); + if (1 === r && _.length && d.length) { + var p = !!(4 & _[0].flags), + f = !!(4 & d[0].flags); + if (p && !f) return n && K(OS.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type), 0; + if (! function(e, t, r) { + if (!e.declaration || !t.declaration) return 1; + e = OS.getSelectedEffectiveModifierFlags(e.declaration, 24), t = OS.getSelectedEffectiveModifierFlags(t.declaration, 24); + if (8 === t) return 1; + if (16 === t && 8 !== e) return 1; + if (16 !== t && !e) return 1; + r && K(OS.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type, os(e), os(t)); + return + }(_[0], d[0], n)) return 0 + } + var g = -1, + m = 1 === r ? Q : R, + p = OS.getObjectFlags(e), + f = OS.getObjectFlags(t); + if (64 & p && 64 & f && e.symbol === t.symbol || 4 & p && 4 & f && e.target === t.target) + for (var y = 0; y < d.length; y++) { + if (!(k = I(_[y], d[y], !0, n, m(_[y], d[y])))) return 0; + g &= k + } else if (1 === _.length && 1 === d.length) { + var t = B === Si || !!Z.noStrictGenericChecks, + h = OS.first(_), + v = OS.first(d); + if (!(g = I(h, v, t, n, m(h, v))) && n && 1 === r && p & f && (173 === (null == (t = v.declaration) ? void 0 : t.kind) || 173 === (null == (p = h.declaration) ? void 0 : p.kind))) K(OS.Diagnostics.Type_0_is_not_assignable_to_type_1, (f = function(e) { + return $o(e, void 0, 262144, r) + })(h), f(v)), K(OS.Diagnostics.Types_of_construct_signatures_are_incompatible) + } else e: for (var b = 0, x = d; b < x.length; b++) { + for (var D = x[b], S = F(), T = n, C = 0, E = _; C < E.length; C++) { + var k, N = E[C]; + if (k = I(N, D, !0, T, m(N, D))) { + g &= k, A(S); + continue e + } + T = !1 + } + return T && K(OS.Diagnostics.Type_0_provides_no_match_for_the_signature_1, ue(e), $o(D, void 0, void 0, r)), 0 + } + return g + } + + function R(e, t) { + return 0 === e.parameters.length && 0 === t.parameters.length ? function(e, t) { + return U(OS.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1, ue(e), ue(t)) + } : function(e, t) { + return U(OS.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible, ue(e), ue(t)) + } + } + + function Q(e, t) { + return 0 === e.parameters.length && 0 === t.parameters.length ? function(e, t) { + return U(OS.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1, ue(e), ue(t)) + } : function(e, t) { + return U(OS.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible, ue(e), ue(t)) + } + } + + function I(e, t, r, n, i) { + return Tf(r ? ju(e) : e, r ? ju(t) : t, B === xi ? 8 : 0, n, K, i, O, cn) + } + + function X(e, t, r) { + var n = W(e.type, t.type, 3, r); + return !n && r && (e.keyType === t.keyType ? K(OS.Diagnostics._0_index_signatures_are_incompatible, ue(e.keyType)) : K(OS.Diagnostics._0_and_1_index_signatures_are_incompatible, ue(e.keyType), ue(t.keyType))), n + } + + function Y(e, t, r, n, i) { + if (B === Ti) { + var a = e, + o = t, + s = uu(a), + o = uu(o); + if (s.length !== o.length) return 0; + for (var c = 0, l = o; c < l.length; c++) { + var u = l[c], + _ = _u(a, u.keyType); + if (!_ || !W(_.type, u.type, 3) || _.isReadonly !== u.isReadonly) return 0 + } + return -1 + } + for (var s = uu(t), d = OS.some(s, function(e) { + return e.keyType === ne + }), p = -1, f = 0, g = s; f < g.length; f++) { + var m = g[f], + m = !r && d && 1 & m.type.flags ? -1 : Al(e) && d ? W(Dl(e), m.type, 3, n) : function(e, t, r, n) { + var i = fu(e, t.keyType); + if (i) return X(i, t, r); + if (!(1 & n) && Vg(e)) return function(e, t, r) { + for (var n = -1, i = t.keyType, a = 0, o = (2097152 & e.flags ? Il : Pl)(e); a < o.length; a++) { + var s = o[a]; + if (!Of(e, s) && cu(vd(s, 8576), i)) { + var c = oc(s); + if (!(_ = W(Ee || 32768 & c.flags || i === ie || !(16777216 & s.flags) ? c : ny(c, 524288), t.type, 3, r))) return r && K(OS.Diagnostics.Property_0_is_incompatible_with_index_signature, le(s)), 0; + n &= _ + } + } + for (var l = 0, u = uu(e); l < u.length; l++) { + var _, d = u[l]; + if (cu(d.keyType, i)) { + if (!(_ = X(d, t, r))) return 0; + n &= _ + } + } + return n + }(e, t, r); + r && K(OS.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1, ue(t.keyType), ue(e)); + return 0 + }(e, m, n, i); + if (!m) return 0; + p &= m + } + return p + } + } + + function Rf(e) { + if (16 & e.flags) return !1; + if (3145728 & e.flags) return !!OS.forEach(e.types, Rf); + if (465829888 & e.flags) { + var t = Ol(e); + if (t && t !== e) return Rf(t) + } + return vg(e) || !!(134217728 & e.flags) || !!(268435456 & e.flags) + } + + function Bf(t, e) { + return De(t) && De(e) ? OS.emptyArray : pe(e).filter(function(e) { + return jf(ys(t, e.escapedName), de(e)) + }) + } + + function jf(e, t) { + return !!e && !!t && X1(e, 32768) && !!Ug(t) + } + + function Jf(e, t, r) { + return IS(e, t, r = void 0 === r ? lf : r, !0) || function(r, e) { + var n = OS.getObjectFlags(r); + if (20 & n && 1048576 & e.flags) return OS.find(e.types, function(e) { + if (524288 & e.flags) { + var t = n & OS.getObjectFlags(e); + if (4 & t) return r.target === e.target; + if (16 & t) return !!r.aliasSymbol && r.aliasSymbol === e.aliasSymbol + } + return !1 + }) + }(e, t) || function(e, t) { + if (128 & OS.getObjectFlags(e) && xy(t, dg)) return OS.find(t.types, function(e) { + return !dg(e) + }) + }(e, t) || function(e, t) { + var r = 0; + if (0 < ge(e, r).length || 0 < ge(e, r = 1).length) return OS.find(t.types, function(e) { + return 0 < ge(e, r).length + }) + }(e, t) || function(e, t) { + var r; + if (!(406978556 & e.flags)) + for (var n = 0, i = 0, a = t.types; i < a.length; i++) { + var o = a[i]; + if (!(406978556 & o.flags)) { + var s = ve([Sd(e), Sd(o)]); + if (4194304 & s.flags) return o; + (vg(s) || 1048576 & s.flags) && (s = 1048576 & s.flags ? OS.countWhere(s.types, vg) : 1, n <= s) && (r = o, n = s) + } + } + return r + }(e, t) + } + + function zf(e, t, r, n, i) { + for (var a = e.types.map(function(e) {}), o = 0, s = t; o < s.length; o++) { + var c = s[o], + l = c[0], + u = c[1], + c = Zl(e, u); + if (!(i && c && 16 & OS.getCheckFlags(c))) + for (var _ = 0, d = 0, p = e.types; d < p.length; d++) { + var f = ys(p[d], u); + f && r(l(), f) ? a[_] = void 0 === a[_] || a[_] : a[_] = !1, _++ + } + } + var g = a.indexOf(!0); + if (-1 === g) return n; + for (var m = a.indexOf(!0, g + 1); - 1 !== m;) { + if (!sf(e.types[g], e.types[m])) return n; + m = a.indexOf(!0, m + 1) + } + return e.types[g] + } + + function Uf(e) { + var t; + return 524288 & e.flags ? 0 === (t = Fl(e)).callSignatures.length && 0 === t.constructSignatures.length && 0 === t.indexInfos.length && 0 < t.properties.length && OS.every(t.properties, function(e) { + return !!(16777216 & e.flags) + }) : !!(2097152 & e.flags) && OS.every(e.types, Uf) + } + + function Kf(e) { + return e === ht || e === vt || 8 & e.objectFlags ? y : qf(e.symbol, e.typeParameters) + } + + function Vf(e) { + return qf(e, ce(e).typeParameters) + } + + function qf(s, e) { + void 0 === e && (e = OS.emptyArray); + var t = ce(s); + if (!t.variances) { + null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.push("checkTypes", "getVariancesWorker", { + arity: e.length, + id: Pc(s).id + }), t.variances = OS.emptyArray; + for (var c = [], r = 0, n = e; r < n.length; r++) ! function(e) { + var t, r, n, i, a, o = Gf(e), + o = 65536 & o ? 32768 & o ? 0 : 1 : 32768 & o ? 2 : void 0; + void 0 === o && (r = t = !1, n = lt, lt = function(e) { + return e ? r = !0 : t = !0 + }, i = Wf(s, e, xn), 3 === (o = (xe(a = Wf(s, e, Dn), i) ? 1 : 0) | (xe(i, a) ? 2 : 0)) && xe(Wf(s, e, Sn), i) && (o = 4), lt = n, t || r) && (t && (o |= 8), r) && (o |= 16), c.push(o) + }(n[r]); + t.variances = c, null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.pop({ + variances: c.map(OS.Debug.formatVariance) + }) + } + return t.variances + } + + function Wf(e, t, r) { + t = Op(t, r), r = Pc(e); + return _e(r) ? r : (e = 524288 & e.flags ? o_(e, Ap(ce(e).typeParameters, t)) : t_(r, Ap(r.typeParameters, t)), Tr.add(e.id), e) + } + + function Hf(e) { + return Tr.has(e.id) + } + + function Gf(e) { + var t; + return (OS.some(null == (t = e.symbol) ? void 0 : t.declarations, function(e) { + return OS.hasSyntacticModifier(e, 32768) + }) ? 32768 : 0) | (OS.some(null == (t = e.symbol) ? void 0 : t.declarations, function(e) { + return OS.hasSyntacticModifier(e, 65536) + }) ? 65536 : 0) + } + + function Qf(e) { + return t = e, !!(4 & OS.getObjectFlags(t)) && !t.node && OS.some(ye(e), function(e) { + return !!(262144 & e.flags) || Qf(e) + }); + var t + } + + function Xf(e, t, r, s) { + var c = [], + l = "", + e = u(e, 0), + t = u(t, 0); + return "".concat(l).concat(e, ",").concat(t).concat(r); + + function u(e, t) { + void 0 === t && (t = 0); + for (var r = "" + e.target.id, n = 0, i = ye(e); n < i.length; n++) { + var a = i[n]; + if (262144 & a.flags) { + if (s || 262144 & (o = a).flags && !Ml(o)) { + var o = c.indexOf(a); + o < 0 && (o = c.length, c.push(a)), r += "=" + o; + continue + } + l = "*" + } else if (t < 4 && Qf(a)) { + r += "<" + u(a, t + 1) + ">"; + continue + } + r += "-" + a.id + } + return r + } + } + + function Yf(e, t, r, n, i) { + n === Ti && e.id > t.id && (n = e, e = t, t = n); + n = r ? ":" + r : ""; + return Qf(e) && Qf(t) ? Xf(e, t, n, i) : "".concat(e.id, ",").concat(t.id).concat(n) + } + + function Zf(e, t) { + if (!(6 & OS.getCheckFlags(e))) return t(e); + for (var r = 0, n = e.containingType.types; r < n.length; r++) { + var i = fe(n[r], e.escapedName), + i = i && Zf(i, t); + if (i) return i + } + } + + function $f(e) { + return e.parent && 32 & e.parent.flags ? Pc(xo(e)) : void 0 + } + + function eg(e) { + var t = $f(e), + t = t && xc(t)[0]; + return t && ys(t, e.escapedName) + } + + function tg(t, e, r) { + return Zf(e, function(e) { + return !!(16 & OS.getDeclarationModifierFlagsFromSymbol(e, r)) && !lc(t, $f(e)) + }) ? void 0 : t + } + + function rg(e, t, r, n) { + if ((n = void 0 === n ? 3 : n) <= r) + for (var i = ng(e), a = 0, o = 0, s = 0; s < r; s++) { + var c = t[s]; + if (ng(c) === i) { + if (c.id >= o && n <= ++a) return 1; + o = c.id + } + } + } + + function ng(e) { + if (524288 & e.flags && !Pm(e)) { + if (OS.getObjectFlags(e) && e.node) return e.node; + if (e.symbol && !(16 & OS.getObjectFlags(e) && 32 & e.symbol.flags)) return e.symbol; + if (De(e)) return e.target + } + if (262144 & e.flags) return e.symbol; + if (8388608 & e.flags) { + for (; 8388608 & (e = e.objectType).flags;); + return e + } + return 16777216 & e.flags ? e.root : e + } + + function ig(e, t, r) { + if (e === t) return -1; + var n = 24 & OS.getDeclarationModifierFlagsFromSymbol(e); + if (n != (24 & OS.getDeclarationModifierFlagsFromSymbol(t))) return 0; + if (n) { + if (Fx(e) !== Fx(t)) return 0 + } else if ((16777216 & e.flags) != (16777216 & t.flags)) return 0; + return K1(e) !== K1(t) ? 0 : r(de(e), de(t)) + } + + function ag(e, t, r, n, i, a) { + if (e === t) return -1; + if (d = t, r = r, l = x1(_ = e), u = x1(d), f = D1(_), p = D1(d), _ = S1(_), d = S1(d), (l !== u || f !== p || _ !== d) && !(r && f <= p)) return 0; + if (OS.length(e.typeParameters) !== OS.length(t.typeParameters)) return 0; + if (t.typeParameters) { + for (var o = wp(e.typeParameters, t.typeParameters), s = 0; s < t.typeParameters.length; s++) + if (!((h = e.typeParameters[s]) === (m = t.typeParameters[s]) || a(be(Xu(h), o) || te, Xu(m) || te) && a(be(ql(h), o) || te, ql(m) || te))) return 0; + e = Kp(e, o, !0) + } + var c = -1; + if (!n) { + var l = Fu(e); + if (l) { + var u = Fu(t); + if (u) { + if (!(y = a(l, u))) return 0; + c &= y + } + } + } + for (var _, d, p, f, g = x1(t), s = 0; s < g; s++) { + var m, y, h = h1(e, s); + if (!(y = a(m = h1(t, s), h))) return 0; + c &= y + } + return i || (_ = Pu(e), d = Pu(t), c &= _ || d ? (r = d, f = a, (p = _) && r && od(p, r) ? p.type === r.type ? -1 : p.type && r.type ? f(p.type, r.type) : 0 : 0) : a(me(e), me(t))), c + } + + function og(e) { + var t, r; + return 1 === e.length ? e[0] : (r = function(e) { + for (var t, r = 0, n = e; r < n.length; r++) { + var i = n[r]; + if (!(131072 & i.flags)) { + var a = Dg(i); + if (null != t || (t = a), a === i || a !== t) return + } + } + return 1 + }(t = $ ? OS.sameMap(e, function(e) { + return Sy(e, function(e) { + return !(98304 & e.flags) + }) + }) : e) ? he(t) : OS.reduceLeft(t, function(e, t) { + return _f(e, t) ? t : e + }), t === e ? r : Og(r, 98304 & function r(e) { + return OS.reduceLeft(e, function(e, t) { + return e | (1048576 & t.flags ? r(t.types) : t.flags) + }, 0) + }(e))) + } + + function sg(e) { + return !!(4 & OS.getObjectFlags(e)) && (e.target === ht || e.target === vt) + } + + function cg(e) { + return !!(4 & OS.getObjectFlags(e)) && e.target === vt + } + + function lg(e) { + return sg(e) || De(e) + } + + function ug(e) { + return sg(e) && !cg(e) || De(e) && !e.target.readonly + } + + function _g(e) { + return sg(e) ? ye(e)[0] : void 0 + } + + function dg(e) { + return sg(e) || !(98304 & e.flags) && xe(e, kt) + } + + function pg(e) { + if (4 & OS.getObjectFlags(e) && 3 & OS.getObjectFlags(e.target)) { + if (33554432 & OS.getObjectFlags(e)) return 67108864 & OS.getObjectFlags(e) ? e.cachedEquivalentBaseType : void 0; + e.objectFlags |= 33554432; + var t = e.target; + if (1 & OS.getObjectFlags(t)) { + var r = mc(t); + if (r && 79 !== r.expression.kind && 208 !== r.expression.kind) return + } + var r = xc(t); + if (1 === r.length) + if (!Qc(e.symbol).size) return r = OS.length(t.typeParameters) ? be(r[0], wp(t.typeParameters, ye(e).slice(0, t.typeParameters.length))) : r[0], OS.length(ye(e)) > OS.length(t.typeParameters) && (r = Yc(r, OS.last(ye(e)))), e.objectFlags |= 67108864, e.cachedEquivalentBaseType = r + } + } + + function fg(e) { + return $ ? e === Gr : e === Or + } + + function gg(e) { + e = _g(e); + return e && fg(e) + } + + function mg(e) { + return De(e) || !!fe(e, "0") + } + + function yg(e) { + return dg(e) || mg(e) + } + + function hg(e) { + return !(240512 & e.flags) + } + + function vg(e) { + return !!(109440 & e.flags) + } + + function bg(e) { + e = zl(e); + return 2097152 & e.flags ? OS.some(e.types, vg) : vg(e) + } + + function xg(e) { + return !!(16 & e.flags) || (1048576 & e.flags ? !!(1024 & e.flags) || OS.every(e.types, vg) : vg(e)) + } + + function Dg(e) { + return 1024 & e.flags ? kc(e) : 402653312 & e.flags ? ne : 256 & e.flags ? ie : 2048 & e.flags ? jr : 512 & e.flags ? Vr : 1048576 & e.flags ? (n = "B".concat((t = e).id), null != (r = Gi(n)) ? r : Qi(n, Cy(t, Dg))) : e; + var t, r, n + } + + function Sg(e) { + return 1024 & e.flags && vp(e) ? kc(e) : 128 & e.flags && vp(e) ? ne : 256 & e.flags && vp(e) ? ie : 2048 & e.flags && vp(e) ? jr : 512 & e.flags && vp(e) ? Vr : 1048576 & e.flags ? Cy(e, Sg) : e + } + + function Tg(e) { + return 8192 & e.flags ? qr : 1048576 & e.flags ? Cy(e, Tg) : e + } + + function Cg(e, t) { + return hp(e = f2(e, t) ? e : Tg(Sg(e))) + } + + function Eg(e, t, r, n) { + return e = e && vg(e) ? Cg(e, t ? px(r, t, n) : void 0) : e + } + + function De(e) { + return !!(4 & OS.getObjectFlags(e) && 8 & e.target.objectFlags) + } + + function kg(e) { + return De(e) && !!(8 & e.target.combinedFlags) + } + + function Ng(e) { + return kg(e) && 1 === e.target.elementFlags.length + } + + function Ag(e) { + return Fg(e, e.target.fixedLength) + } + + function Fg(e, t, r, n) { + void 0 === r && (r = 0), void 0 === n && (n = !1); + var i = i_(e) - r; + if (t < i) { + for (var a = ye(e), o = [], s = t; s < i; s++) { + var c = a[s]; + o.push(8 & e.target.elementFlags[s] ? qd(c, ie) : c) + } + return (n ? ve : he)(o) + } + } + + function Pg(e) { + return "0" === e.value.base10Value + } + + function wg(e) { + return Sy(e, function(e) { + return !!(4194304 & ry(e)) + }) + } + + function Ig(e) { + return 4 & e.flags ? Hn : 8 & e.flags ? Gn : 64 & e.flags ? Qn : e === zr || e === Jr || 114691 & e.flags || 128 & e.flags && "" === e.value || 256 & e.flags && 0 === e.value || 2048 & e.flags && Pg(e) ? e : ae + } + + function Og(e, t) { + t = t & ~e.flags & 98304; + return 0 == t ? e : he(32768 == t ? [e, re] : 65536 == t ? [e, Rr] : [e, re, Rr]) + } + + function Mg(e, t) { + void 0 === t && (t = !1), OS.Debug.assert($); + t = t ? Lr : re; + return 32768 & e.flags || 1048576 & e.flags && e.types[0] === t ? e : he([e, t]) + } + + function Lg(e) { + return $ ? iy(e, 2097152) : e + } + + function Rg(e) { + return $ ? he([e, Mr]) : e + } + + function Bg(e) { + return $ ? Ty(e, Mr) : e + } + + function jg(e, t, r) { + return r ? (OS.isOutermostOptionalChain(t) ? Mg : Rg)(e) : e + } + + function Jg(e, t) { + return OS.isExpressionOfOptionalChainRoot(t) ? Lg(e) : OS.isOptionalChain(t) ? Bg(e) : e + } + + function zg(e, t) { + return Ee && t ? Ty(e, Lr) : e + } + + function Ug(e) { + return Ee && (e === Lr || 1048576 & e.flags && td(e.types, Lr)) + } + + function Kg(e) { + return Ee ? Ty(e, Lr) : ny(e, 524288) + } + + function Vg(e) { + var t = OS.getObjectFlags(e); + return 2097152 & e.flags ? OS.every(e.types, Vg) : !(!e.symbol || 0 == (7040 & e.symbol.flags) || 32 & e.symbol.flags || DD(e)) || !!(4194304 & t) || !!(1024 & t && Vg(e.source)) + } + + function qg(e, t) { + var r = B(e.flags, e.escapedName, 8 & OS.getCheckFlags(e)), + t = (r.declarations = e.declarations, r.parent = e.parent, r.type = t, (r.target = e).valueDeclaration && (r.valueDeclaration = e.valueDeclaration), ce(e).nameType); + return t && (r.nameType = t), r + } + + function Wg(e) { + var t, r; + return Fm(e) && 8192 & OS.getObjectFlags(e) ? e.regularType || (r = function(e, t) { + for (var r = OS.createSymbolTable(), n = 0, i = Pl(e); n < i.length; n++) { + var a = i[n], + o = de(a), + s = t(o); + r.set(a.escapedName, s === o ? a : qg(a, s)) + } + return r + }(t = e, Wg), (r = Bo(t.symbol, r, t.callSignatures, t.constructSignatures, t.indexInfos)).flags = t.flags, r.objectFlags |= -8193 & t.objectFlags, e.regularType = r) : e + } + + function Hg(e, t, r) { + return { + parent: e, + propertyName: t, + siblings: r, + resolvedProperties: void 0 + } + } + + function Gg(e) { + if (!e.resolvedProperties) { + for (var t = new OS.Map, r = 0, n = function e(t) { + if (!t.siblings) { + for (var r = [], n = 0, i = e(t.parent); n < i.length; n++) { + var a = i[n]; + Fm(a) && (a = wl(a, t.propertyName)) && by(de(a), function(e) { + r.push(e) + }) + } + t.siblings = r + } + return t.siblings + }(e); r < n.length; r++) { + var i = n[r]; + if (Fm(i) && !(2097152 & OS.getObjectFlags(i))) + for (var a = 0, o = pe(i); a < o.length; a++) { + var s = o[a]; + t.set(s.escapedName, s) + } + } + e.resolvedProperties = OS.arrayFrom(t.values()) + } + return e.resolvedProperties + } + + function Qg(e, t) { + for (var r, n, i, a, o, s = OS.createSymbolTable(), c = 0, l = Pl(e); c < l.length; c++) { + var u = l[c]; + s.set(u.escapedName, (n = t, i = void 0, !(4 & (r = u).flags) || (n = Yg(i = de(r), n && Hg(n, r.escapedName, void 0))) === i ? r : qg(r, n))) + } + if (t) + for (var _ = 0, d = Gg(t); _ < d.length; _++) { + u = d[_]; + s.has(u.escapedName) || s.set(u.escapedName, (a = u, o = void 0, (o = Sr.get(a.escapedName)) || ((o = qg(a, Lr)).flags |= 16777216, Sr.set(a.escapedName, o), o))) + } + var p = Bo(e.symbol, s, OS.emptyArray, OS.emptyArray, OS.sameMap(uu(e), function(e) { + return Vu(e.keyType, Xg(e.type), e.isReadonly) + })); + return p.objectFlags |= 266240 & OS.getObjectFlags(e), p + } + + function Xg(e) { + return Yg(e, void 0) + } + + function Yg(e, t) { + var r, n, i; + return 196608 & OS.getObjectFlags(e) ? void 0 === t && e.widened ? e.widened : (i = void 0, 98305 & e.flags ? i = ee : Fm(e) ? i = Qg(e, t) : 1048576 & e.flags ? (r = t || Hg(void 0, void 0, e.types), i = he(n = OS.sameMap(e.types, function(e) { + return 98304 & e.flags ? e : Yg(e, r) + }), OS.some(n, kf) ? 2 : 1)) : 2097152 & e.flags ? i = ve(OS.sameMap(e.types, Xg)) : lg(e) && (i = t_(e.target, OS.sameMap(ye(e), Xg))), i && void 0 === t && (e.widened = i), i || e) : e + } + + function Zg(e, t, r) { + var n, i = ue(Xg(t)); + if (!OS.isInJSFile(e) || OS.isCheckJsEnabledForFile(OS.getSourceFileOfNode(e), Z)) { + switch (e.kind) { + case 223: + case 169: + case 168: + n = Te ? OS.Diagnostics.Member_0_implicitly_has_an_1_type : OS.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; + break; + case 166: + var a, o = e; + if (OS.isIdentifier(o.name) && (OS.isCallSignatureDeclaration(o.parent) || OS.isMethodSignature(o.parent) || OS.isFunctionTypeNode(o.parent)) && -1 < o.parent.parameters.indexOf(o) && (va(o, o.name.escapedText, 788968, void 0, o.name.escapedText, !0) || o.name.originalKeywordKind && OS.isTypeNodeKind(o.name.originalKeywordKind))) return a = "arg" + o.parent.parameters.indexOf(o), o = OS.declarationNameToString(o.name) + (o.dotDotDotToken ? "[]" : ""), void ra(Te, e, OS.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1, a, o); + n = e.dotDotDotToken ? Te ? OS.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type : OS.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage : Te ? OS.Diagnostics.Parameter_0_implicitly_has_an_1_type : OS.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; + break; + case 205: + if (n = OS.Diagnostics.Binding_element_0_implicitly_has_an_1_type, Te) break; + return; + case 320: + return void se(e, OS.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, i); + case 259: + case 171: + case 170: + case 174: + case 175: + case 215: + case 216: + if (Te && !e.name) return void se(e, 3 === r ? OS.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation : OS.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, i); + n = Te ? 3 === r ? OS.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type : OS.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type : OS.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage; + break; + case 197: + return void(Te && se(e, OS.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type)); + default: + n = Te ? OS.Diagnostics.Variable_0_implicitly_has_an_1_type : OS.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage + } + ra(Te, e, n, OS.declarationNameToString(OS.getNameOfDeclaration(e)), i) + } + } + + function $g(e, t, r) { + q(function() { + !(Te && 65536 & OS.getObjectFlags(t)) || r && j0(e) || ! function e(t) { + var r = !1; + if (65536 & OS.getObjectFlags(t)) { + if (1048576 & t.flags) + if (OS.some(t.types, kf)) r = !0; + else + for (var n = 0, i = t.types; n < i.length; n++) e(u = i[n]) && (r = !0); + if (lg(t)) + for (var a = 0, o = ye(t); a < o.length; a++) e(u = o[a]) && (r = !0); + if (Fm(t)) + for (var s = 0, c = Pl(t); s < c.length; s++) { + var l = c[s], + u = de(l); + 65536 & OS.getObjectFlags(u) && (e(u) || se(l.valueDeclaration, OS.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, le(l), ue(Xg(u))), r = !0) + } + } + return r + }(t) && Zg(e, t, r) + }) + } + + function em(e, t, r) { + var n = x1(e), + i = x1(t), + a = T1(e), + o = T1(t), + i = o ? i - 1 : i, + s = a ? i : Math.min(n, i), + a = Fu(e); + a && (n = Fu(t)) && r(a, n); + for (var c = 0; c < s; c++) r(h1(e, c), h1(t, c)); + o && r(b1(e, s), o) + } + + function tm(e, t, r) { + var n = Pu(e), + i = Pu(t); + n && i && od(n, i) && n.type && i.type ? r(n.type, i.type) : r(me(e), me(t)) + } + + function rm(e, t, r, n) { + return nm(e.map(om), t, r, n || lf) + } + + function nm(e, t, r, n) { + var s, i, e = { + inferences: e, + signature: t, + flags: r, + compareTypes: n, + mapper: ln, + nonFixingMapper: ln + }; + return e.mapper = (s = e, Lp(OS.map(s.inferences, function(e) { + return e.typeParameter + }), OS.map(s.inferences, function(a, o) { + return function() { + if (!a.isFixed) { + var e = s; + if (e.intraExpressionInferenceSites) { + for (var t = 0, r = e.intraExpressionInferenceSites; t < r.length; t++) { + var n = r[t], + i = n.node, + n = n.type, + i = (171 === i.kind ? S0 : I0)(i, 2); + i && km(e.inferences, n, i) + } + e.intraExpressionInferenceSites = void 0 + } + im(s.inferences), a.isFixed = !0 + } + return Om(s, o) + } + }))), e.nonFixingMapper = (i = e, Lp(OS.map(i.inferences, function(e) { + return e.typeParameter + }), OS.map(i.inferences, function(e, t) { + return function() { + return Om(i, t) + } + }))), e + } + + function im(e) { + for (var t = 0, r = e; t < r.length; t++) { + var n = r[t]; + n.isFixed || (n.inferredType = void 0) + } + } + + function am(e, t, r) { + var n; + (null != (n = e.intraExpressionInferenceSites) ? n : e.intraExpressionInferenceSites = []).push({ + node: t, + type: r + }) + } + + function om(e) { + return { + typeParameter: e, + candidates: void 0, + contraCandidates: void 0, + inferredType: void 0, + priority: void 0, + topLevel: !0, + isFixed: !1, + impliedArity: void 0 + } + } + + function sm(e) { + return { + typeParameter: e.typeParameter, + candidates: e.candidates && e.candidates.slice(), + contraCandidates: e.contraCandidates && e.contraCandidates.slice(), + inferredType: e.inferredType, + priority: e.priority, + topLevel: e.topLevel, + isFixed: e.isFixed, + impliedArity: e.impliedArity + } + } + + function cm(e) { + return e && e.mapper + } + + function lm(e) { + var t = OS.getObjectFlags(e); + return 524288 & t ? !!(1048576 & t) : (t = !!(465829888 & e.flags || 524288 & e.flags && !um(e) && (4 & t && (e.node || OS.forEach(ye(e), lm)) || 16 & t && e.symbol && 14384 & e.symbol.flags && e.symbol.declarations || 12583968 & t) || 3145728 & e.flags && !(1024 & e.flags) && !um(e) && OS.some(e.types, lm)), 3899393 & e.flags && (e.objectFlags |= 524288 | (t ? 1048576 : 0)), t) + } + + function um(e) { + if (e.aliasSymbol && !e.aliasTypeArguments) return (e = OS.getDeclarationOfKind(e.aliasSymbol, 262)) && OS.findAncestor(e.parent, function(e) { + return 308 === e.kind || 264 !== e.kind && "quit" + }) + } + + function _m(e, t) { + return !!(e === t || 3145728 & e.flags && OS.some(e.types, function(e) { + return _m(e, t) + }) || 16777216 & e.flags && (rp(e) === t || np(e) === t)) + } + + function dm(e, t, r) { + if (!Jn) { + var n = e.id + "," + t.id + "," + r.id; + if (jn.has(n)) return jn.get(n); + Jn = !0; + e = function(e, t, r) { + if (!(_u(e, ne) || 0 !== pe(e).length && pm(e))) return; + if (sg(e)) return z_(fm(ye(e)[0], t, r), cg(e)); { + var n; + if (De(e)) return i = OS.map(ye(e), function(e) { + return fm(e, t, r) + }), n = 4 & El(t) ? OS.sameMap(e.target.elementFlags, function(e) { + return 2 & e ? 1 : e + }) : e.target.elementFlags, H_(i, n, e.target.readonly, e.target.labeledElementDeclarations) + } + var i = wo(1040, void 0); + return i.source = e, i.mappedType = t, i.constraintType = r, i + }(e, t, r); + return Jn = !1, jn.set(n, e), e + } + } + + function pm(e) { + return !(262144 & OS.getObjectFlags(e)) || Fm(e) && OS.some(pe(e), function(e) { + return pm(de(e)) + }) || De(e) && OS.some(ye(e), pm) + } + + function fm(e, t, r) { + r = qd(r.type, vl(t)), t = Dl(t), r = om(r); + return km([r], e, t), ym(r) || te + } + + function gm(t, r, n, i) { + var a, o, s, c, l, u; + return __generator(this, function(e) { + switch (e.label) { + case 0: + o = pe(r), a = 0, o = o, e.label = 1; + case 1: + return a < o.length ? jc(s = o[a]) || !n && (16777216 & s.flags || 48 & OS.getCheckFlags(s)) ? [3, 5] : (c = fe(t, s.escapedName)) ? [3, 3] : [4, s] : [3, 6]; + case 2: + return e.sent(), [3, 5]; + case 3: + return i ? !(109440 & (l = de(s)).flags) || 1 & (u = de(c)).flags || hp(u) === hp(l) ? [3, 5] : [4, s] : [3, 5]; + case 4: + e.sent(), e.label = 5; + case 5: + return a++, [3, 1]; + case 6: + return [2] + } + }) + } + + function mm(e, t, r, n) { + e = gm(e, t, r, n).next(); + if (!e.done) return e.value + } + + function ym(e) { + return e.candidates ? he(e.candidates, 2) : e.contraCandidates ? ve(e.contraCandidates) : void 0 + } + + function hm(e) { + return !!H(e).skipDirectInference + } + + function vm(e) { + return e.symbol && OS.some(e.symbol.declarations, hm) + } + + function bm(e, t) { + var r; + if ("" !== e) return r = +e, isFinite(r) && (!t || "" + r === e) + } + + function xm(e, t) { + var r, n, i, a, o; + if ("" !== e) return r = OS.createScanner(99, !1), n = !0, r.setOnError(function() { + return n = !1 + }), r.setText(e + "n"), (a = 40 === (i = r.scan())) && (i = r.scan()), o = r.getTokenFlags(), n && 9 === i && r.getTextPos() === e.length + 1 && !(512 & o) && (!t || e === OS.pseudoBigIntToString({ + negative: a, + base10Value: OS.parsePseudoBigInt(r.getTokenValue()) + })) + } + + function Dm(e, t) { + if (5 & t.flags) return !0; + if (134217728 & t.flags) return xe(e, t); + if (268435456 & t.flags) { + for (var r = []; 268435456 & t.flags;) r.unshift(t.symbol), t = t.type; + return OS.reduceLeft(r, function(e, t) { + return kd(t, e) + }, e) === e && Dm(e, t) + } + return !1 + } + + function Sm(e, t) { + return 128 & e.flags ? Em([e.value], OS.emptyArray, t) : 134217728 & e.flags ? OS.arraysEqual(e.texts, t.texts) ? OS.map(e.types, Cm) : Em(e.texts, e.types, t) : void 0 + } + + function Tm(e, n) { + e = Sm(e, n); + return !!e && OS.every(e, function(e, t) { + return e = e, t = n.types[t], !!(e === t || 5 & t.flags) || (128 & e.flags ? (r = e.value, !!(8 & t.flags && bm(r, !1) || 64 & t.flags && xm(r, !1) || 98816 & t.flags && r === t.intrinsicName || 268435456 & t.flags && Dm(bp(r), t))) : 134217728 & e.flags ? 2 === (r = e.texts).length && "" === r[0] && "" === r[1] && xe(e.types[0], t) : xe(e, t)); + var r + }) + } + + function Cm(e) { + return 402653317 & e.flags ? e : Cd(["", ""], [e]) + } + + function Em(n, i, e) { + var t = n.length - 1, + r = n[0], + a = n[t], + o = e.texts, + s = o.length - 1, + e = o[0], + c = o[s]; + if (!(0 == t && r.length < e.length + c.length) && r.startsWith(e) && a.endsWith(c)) { + for (var l = a.slice(0, a.length - c.length), u = [], _ = 0, d = e.length, p = 1; p < s; p++) { + var f = o[p]; + if (0 < f.length) { + for (var g = _, m = d;;) { + if (0 <= (m = y(g).indexOf(f, m))) break; + if (++g === n.length) return; + m = 0 + } + h(g, m), d += f.length + } else if (d < y(_).length) h(_, d + 1); + else { + if (!(_ < t)) return; + h(_ + 1, 0) + } + } + return h(t, y(t).length), u + } + + function y(e) { + return e < t ? n[e] : l + } + + function h(e, t) { + var r = e === _ ? bp(y(e).slice(d, t)) : Cd(__spreadArray(__spreadArray([n[_].slice(d)], n.slice(_ + 1, e), !0), [y(e).slice(0, t)], !1), i.slice(_, e)); + u.push(r), _ = e, d = t + } + } + + function km(y, e, h, v, b) { + void 0 === v && (v = 0), void 0 === b && (b = !1); + var x, c, l, u, D = !1, + S = 2048, + T = !0, + _ = 0; + + function C(e, t) { + var n; + if (lm(t)) + if (e === Ar) o = x, x = e, C(t, t), x = o; + else if (e.aliasSymbol && e.aliasSymbol === t.aliasSymbol) e.aliasTypeArguments && A(e.aliasTypeArguments, t.aliasTypeArguments, Vf(e.aliasSymbol)); + else if (e === t && 3145728 & e.flags) + for (var r = 0, i = e.types; r < i.length; r++) { + var a = i[r]; + C(a, a) + } else { + if (1048576 & t.flags) { + var o = N(1048576 & e.flags ? e.types : [e], t.types, Nm), + o = N(o[0], o[1], Am), + s = o[0]; + if (0 === (c = o[1]).length) return; + if (t = he(c), 0 === s.length) return void E(e, t, 1); + e = he(s) + } else if (2097152 & t.flags && OS.some(t.types, function(e) { + return !!P(e) || Al(e) && !!P(Wp(e) || ae) + })) { + if (!(1048576 & e.flags)) { + var o = N(2097152 & e.flags ? e.types : [e], t.types, sf), + s = o[0], + c = o[1]; + if (0 === s.length || 0 === c.length) return; + e = ve(s), t = ve(c) + } + } else 41943040 & t.flags && (t = Xd(t)); + if (8650752 & t.flags) { + if (vm(e)) return; + o = P(t); + if (o) return 262144 & OS.getObjectFlags(e) || e === Pr ? void 0 : (o.isFixed || ((void 0 === o.priority || v < o.priority) && (o.candidates = void 0, o.contraCandidates = void 0, o.topLevel = !0, o.priority = v), v === o.priority && (s = x || e, b && !D ? OS.contains(o.contraCandidates, s) || (o.contraCandidates = OS.append(o.contraCandidates, s), im(y)) : OS.contains(o.candidates, s) || (o.candidates = OS.append(o.candidates, s), im(y))), !(128 & v) && 262144 & t.flags && o.topLevel && !_m(h, t) && (o.topLevel = !1, im(y))), void(S = Math.min(S, v))); + var c = zd(t, !1); + c !== t ? C(e, c) : 8388608 & t.flags && 465829888 & (s = zd(t.indexType, !1)).flags && (o = Ud(zd(t.objectType, !1), s, !1)) && o !== t && C(e, o) + } + if (!(4 & OS.getObjectFlags(e) && 4 & OS.getObjectFlags(t) && (e.target === t.target || sg(e) && sg(t))) || e.node && t.node) + if (4194304 & e.flags && 4194304 & t.flags) F(e.type, t.type); + else if ((xg(e) || 4 & e.flags) && 4194304 & t.flags) { + c = e, n = OS.createSymbolTable(), by(c, function(e) { + var t, r; + 128 & e.flags && ((r = B(4, t = OS.escapeLeadingUnderscores(e.value))).type = ee, e.symbol && (r.declarations = e.symbol.declarations, r.valueDeclaration = e.symbol.valueDeclaration), n.set(t, r)) + }), c = 4 & c.flags ? [Vu(ne, un, !1)] : OS.emptyArray; + s = Bo(void 0, n, OS.emptyArray, OS.emptyArray, c); + o = t.type, _ = v, v |= 256, F(s, o), v = _ + } else if (8388608 & e.flags && 8388608 & t.flags) C(e.objectType, t.objectType), C(e.indexType, t.indexType); + else if (268435456 & e.flags && 268435456 & t.flags) e.symbol === t.symbol && C(e.type, t.type); + else if (33554432 & e.flags) C(e.baseType, t), E(d_(e), t, 4); + else if (16777216 & t.flags) k(e, t, I); + else if (3145728 & t.flags) w(e, t.types, t.flags); + else if (1048576 & e.flags) + for (var l = 0, u = e.types; l < u.length; l++) C(u[l], t); + else if (134217728 & t.flags) { + var _ = t, + d = Sm(e, _), + p = _.types; + if (d || OS.every(_.texts, function(e) { + return 0 === e.length + })) + for (var f = function(e) { + var i = d ? d[e] : ae, + e = p[e]; + if (128 & i.flags && 8650752 & e.flags) { + var t = P(e), + t = t ? Jl(t.typeParameter) : void 0; + if (t && !j(t)) { + var t = 1048576 & t.flags ? t.types : [t], + a = OS.reduceLeft(t, function(e, t) { + return e | t.flags + }, 0); + if (!(4 & a)) { + var o = i.value, + t = (296 & a && !bm(o, !0) && (a &= -297), 2112 & a && !xm(o, !0) && (a &= -2113), OS.reduceLeft(t, function(e, t) { + return !(t.flags & a) || 4 & e.flags ? e : 4 & t.flags ? i : 134217728 & e.flags ? e : 134217728 & t.flags && Tm(i, t) ? i : 268435456 & e.flags ? e : 268435456 & t.flags && o === Nd(t.symbol, o) ? i : 128 & e.flags ? e : 128 & t.flags && t.value === o ? t : 8 & e.flags ? e : 8 & t.flags ? xp(+o) : 32 & e.flags ? e : 32 & t.flags ? xp(+o) : 256 & e.flags ? e : 256 & t.flags && t.value === +o ? t : 64 & e.flags ? e : 64 & t.flags ? Dp({ + negative: n = (r = o).startsWith("-"), + base10Value: OS.parsePseudoBigInt("".concat(n ? r.slice(1) : r, "n")) + }) : 2048 & e.flags ? e : 2048 & t.flags && OS.pseudoBigIntToString(t.value) === o ? t : 16 & e.flags ? e : 16 & t.flags ? "true" === o ? Ur : "false" === o ? Jr : Vr : !(512 & e.flags) && (512 & t.flags && t.intrinsicName === o || !(32768 & e.flags) && (32768 & t.flags && t.intrinsicName === o || !(65536 & e.flags) && 65536 & t.flags && t.intrinsicName === o)) ? t : e; + var r, n + }, ae)); + if (!(131072 & t.flags)) return C(t, e), "continue" + } + } + } + C(i, e) + }, g = 0; g < p.length; g++) f(g) + } else { + if (e = eu(e), !(512 & v && 467927040 & e.flags)) { + var m = Ql(e); + if (m !== e && T && !(2621440 & m.flags)) return T = !1, C(m, t); + e = m + } + 2621440 & e.flags && k(e, t, O) + } else A(ye(e), ye(t), Kf(e.target)) + } + } + + function E(e, t, r) { + var n = v; + v |= r, C(e, t), v = n + } + + function k(e, t, r) { + var n, i, a, o = e.id + "," + t.id, + s = c && c.get(o); + S = (void 0 !== s || ((c = c || new OS.Map).set(o, -1), s = S, S = 2048, n = _, i = ng(e), a = ng(t), OS.contains(l, i) && (_ |= 1), OS.contains(u, a) && (_ |= 2), 3 !== _ ? ((l = l || []).push(i), (u = u || []).push(a), r(e, t), u.pop(), l.pop()) : S = -1, _ = n, c.set(o, S)), Math.min(S, s)) + } + + function N(e, t, r) { + for (var n, i, a = 0, o = t; a < o.length; a++) + for (var s = o[a], c = 0, l = e; c < l.length; c++) { + var u = l[c]; + r(u, s) && (C(u, s), n = OS.appendIfUnique(n, u), i = OS.appendIfUnique(i, s)) + } + return [n ? OS.filter(e, function(e) { + return !OS.contains(n, e) + }) : e, i ? OS.filter(t, function(e) { + return !OS.contains(i, e) + }) : t] + } + + function A(e, t, r) { + for (var n = (e.length < t.length ? e : t).length, i = 0; i < n; i++)(i < r.length && 2 == (7 & r[i]) ? F : C)(e[i], t[i]) + } + + function F(e, t) { + b = !b, C(e, t), b = !b + } + + function p(e, t) { + (X || 1024 & v ? F : C)(e, t) + } + + function P(e) { + if (8650752 & e.flags) + for (var t = 0, r = y; t < r.length; t++) { + var n = r[t]; + if (e === n.typeParameter) return n + } + } + + function w(e, t, r) { + var n = 0; + if (1048576 & r) { + for (var i = void 0, a = 1048576 & e.flags ? e.types : [e], o = new Array(a.length), s = !1, c = 0, l = t; c < l.length; c++) + if (P(g = l[c])) i = g, n++; + else + for (var u = 0; u < a.length; u++) { + var _ = S; + S = 2048, C(a[u], g), S === v && (o[u] = !0), s = s || -1 === S, S = Math.min(S, _) + } + if (0 === n) return void((d = function(e) { + for (var t, r = 0, n = e; r < n.length; r++) { + var i = n[r], + i = 2097152 & i.flags && OS.find(i.types, function(e) { + return !!P(e) + }); + if (!i || t && i !== t) return; + t = i + } + return t + }(t)) && E(e, d, 1)); + if (1 === n && !s) { + var d = OS.flatMap(a, function(e, t) { + return o[t] ? void 0 : e + }); + if (d.length) return void C(he(d), i) + } + } else + for (var p = 0, f = t; p < f.length; p++) P(g = f[p]) ? n++ : C(e, g); + if (2097152 & r ? 1 === n : 0 < n) + for (var g, m = 0, y = t; m < y.length; m++) P(g = y[m]) && E(e, g, 1) + } + + function I(e, t) { + var r, n; + 16777216 & e.flags ? (C(e.checkType, t.checkType), C(e.extendsType, t.extendsType), C(rp(e), rp(t)), C(np(e), np(t))) : (r = [rp(t), np(t)], t = t.flags, n = v, v |= b ? 64 : 0, w(e, r, t), v = n) + } + + function O(e, t) { + if (4 & OS.getObjectFlags(e) && 4 & OS.getObjectFlags(t) && (e.target === t.target || sg(e) && sg(t))) A(ye(e), ye(t), Kf(e.target)); + else { + var r, n, i, a; + if (Al(e) && Al(t) && (C(bl(e), bl(t)), C(Dl(e), Dl(t)), i = xl(e), n = xl(t), i) && n && C(i, n), 32 & OS.getObjectFlags(t) && !t.declaration.nameType) + if (function e(t, r, n) { + if (1048576 & n.flags) { + for (var i = !1, a = 0, o = n.types; a < o.length; a++) i = e(t, r, o[a]) || i; + return i + } + var s, c; + return 4194304 & n.flags ? (!(c = P(n.type)) || c.isFixed || vm(t) || (s = dm(t, r, n)) && E(s, c.typeParameter, 262144 & OS.getObjectFlags(t) ? 16 : 8), !0) : !!(262144 & n.flags) && (E(Sd(t), n, 32), (s = Ol(n)) && e(t, r, s) || (c = OS.map(pe(t), de), n = OS.map(uu(t), function(e) { + return e !== Pn ? e.type : ae + }), C(he(OS.concatenate(c, n)), Dl(r))), !0) + }(e, t, bl(t))) return; + if (i = t, !(De(n = e) && De(i) ? (f = n, !(8 & (a = i).target.combinedFlags) && a.target.minLength > f.target.minLength || !a.target.hasRestElement && (f.target.hasRestElement || a.target.fixedLength < f.target.fixedLength)) : mm(n, i, !1, !0) && mm(i, n, !1, !1))) { + if (lg(e)) { + if (De(t)) { + var o = i_(e), + s = i_(t), + c = ye(t), + l = t.target.elementFlags; + if (De(e) && (r = t, i_(a = e) === i_(r)) && OS.every(a.target.elementFlags, function(e, t) { + return (12 & e) == (12 & r.target.elementFlags[t]) + })) { + for (var u = 0; u < s; u++) C(ye(e)[u], c[u]); + return + } + for (var _ = De(e) ? Math.min(e.target.fixedLength, t.target.fixedLength) : 0, d = Math.min(De(e) ? $_(e.target, 3) : 0, t.target.hasRestElement ? $_(t.target, 3) : 0), u = 0; u < _; u++) C(ye(e)[u], c[u]); + if (!De(e) || o - _ - d == 1 && 4 & e.target.elementFlags[_]) + for (var p = ye(e)[_], u = _; u < s - d; u++) C(8 & l[u] ? z_(p) : p, c[u]); + else { + var f = s - _ - d; + 2 == f && l[_] & l[_ + 1] & 8 && De(e) ? (m = P(c[_])) && void 0 !== m.impliedArity && (C(X_(e, _, d + o - m.impliedArity), c[_]), C(X_(e, _ + m.impliedArity, d), c[_ + 1])) : 1 == f && 8 & l[_] ? (m = 2 & t.target.elementFlags[s - 1], E(De(e) ? X_(e, _, d) : z_(ye(e)[0]), c[_], m ? 2 : 0)) : 1 == f && 4 & l[_] && (p = De(e) ? Fg(e, _, d) : ye(e)[0]) && C(p, c[_]) + } + for (u = 0; u < d; u++) C(ye(e)[o - u - 1], c[s - u - 1]); + return + } + if (sg(t)) return void L(e, t) + } + for (var g = e, m = Pl(m = t), y = 0, h = m; y < h.length; y++) { + var v = h[y], + b = fe(g, v.escapedName); + b && !OS.some(b.declarations, hm) && C(de(b), de(v)) + } + M(e, t, 0), M(e, t, 1), L(e, t) + } + } + } + + function M(e, t, r) { + for (var n, i, a, o, s = ge(e, r), c = ge(t, r), l = s.length, u = c.length, _ = l < u ? l : u, d = 0; d < _; d++) n = function(e) { + var t = e.typeParameters; + if (t) { + if (e.baseSignatureCache) return e.baseSignatureCache; + for (var r = Bp(t), n = wp(t, OS.map(t, function(e) { + return Ml(e) || te + })), i = OS.map(t, function(e) { + return be(e, n) || te + }), a = 0; a < t.length - 1; a++) i = Ap(i, n); + return i = Ap(i, r), e.baseSignatureCache = Kp(e, wp(t, i), !0) + } + return e + }(s[l - _ + d]), i = ju(c[u - _ + d]), o = a = void 0, a = D, o = i.declaration ? i.declaration.kind : 0, D = D || 171 === o || 170 === o || 173 === o, em(n, i, p), D = a, tm(n, i, C) + } + + function L(e, t) { + var r = OS.getObjectFlags(e) & OS.getObjectFlags(t) & 32 ? 8 : 0, + t = uu(t); + if (Vg(e)) + for (var n = 0, i = t; n < i.length; n++) { + for (var a = i[n], o = [], s = 0, c = pe(e); s < c.length; s++) { + var l, u = c[s]; + cu(vd(u, 8576), a.keyType) && (l = de(u), o.push(16777216 & u.flags ? Kg(l) : l)) + } + for (var _ = 0, d = uu(e); _ < d.length; _++) { + var p = d[_]; + cu(p.keyType, a.keyType) && o.push(p.type) + } + o.length && E(he(o), a.type, r) + } + for (var f = 0, g = t; f < g.length; f++) { + var m = fu(e, (a = g[f]).keyType); + m && E(m.type, a.type, r) + } + } + C(e, h) + } + + function Nm(e, t) { + return Ee && t === Lr ? e === t : sf(e, t) || !!(4 & t.flags && 128 & e.flags || 8 & t.flags && 256 & e.flags) + } + + function Am(e, t) { + return !!(524288 & e.flags && 524288 & t.flags && e.symbol && e.symbol === t.symbol || e.aliasSymbol && e.aliasTypeArguments && e.aliasSymbol === t.aliasSymbol) + } + + function Fm(e) { + return !!(128 & OS.getObjectFlags(e)) + } + + function Pm(e) { + return !!(16512 & OS.getObjectFlags(e)) + } + + function wm(e) { + return 416 & e.priority ? ve(e.contraCandidates) : (e = e.contraCandidates, OS.reduceLeft(e, function(e, t) { + return _f(t, e) ? t : e + })) + } + + function Im(e, t) { + var r = function(e) { + if (1 < e.length) { + var t = OS.filter(e, Pm); + if (t.length) return t = he(t, 2), OS.concatenate(OS.filter(e, function(e) { + return !Pm(e) + }), [t]) + } + return e + }(e.candidates), + n = !!(n = Ml(n = e.typeParameter)) && X1(16777216 & n.flags ? Rl(n) : n, 406978556), + t = !n && e.topLevel && (e.isFixed || !_m(me(t), e.typeParameter)), + n = n ? OS.sameMap(r, hp) : t ? OS.sameMap(r, Sg) : r; + return Xg(416 & e.priority ? he(n, 2) : og(n)) + } + + function Om(e, t) { + var r, n, i, a = e.inferences[t]; + return !a.inferredType && (r = void 0, (i = e.signature) ? (n = a.candidates ? Im(a, i) : void 0, a.contraCandidates ? r = !n || 131072 & n.flags || !OS.some(a.contraCandidates, function(e) { + return _f(n, e) + }) ? wm(a) : n : n ? r = n : 1 & e.flags ? r = Hr : (i = ql(a.typeParameter)) && (r = be(i, (i = (i = e).inferences.slice(t), t = wp(OS.map(i, function(e) { + return e.typeParameter + }), OS.map(i, function() { + return te + })), i = e.nonFixingMapper, t ? Rp(5, t, i) : i)))) : r = ym(a), a.inferredType = r || Mm(!!(2 & e.flags)), t = Ml(a.typeParameter)) && (i = be(t, e.nonFixingMapper), r && e.compareTypes(r, Yc(i, r)) || (a.inferredType = r = i)), a.inferredType + } + + function Mm(e) { + return e ? ee : te + } + + function Lm(e) { + for (var t = [], r = 0; r < e.inferences.length; r++) t.push(Om(e, r)); + return t + } + + function Rm(e) { + switch (e.escapedText) { + case "document": + case "console": + return OS.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom; + case "$": + return Z.types ? OS.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig : OS.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery; + case "describe": + case "suite": + case "it": + case "test": + return Z.types ? OS.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig : OS.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha; + case "process": + case "require": + case "Buffer": + case "module": + return Z.types ? OS.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig : OS.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode; + case "Map": + case "Set": + case "Promise": + case "Symbol": + case "WeakMap": + case "WeakSet": + case "Iterator": + case "AsyncIterator": + case "SharedArrayBuffer": + case "Atomics": + case "AsyncIterable": + case "AsyncIterableIterator": + case "AsyncGenerator": + case "AsyncGeneratorFunction": + case "BigInt": + case "Reflect": + case "BigInt64Array": + case "BigUint64Array": + return OS.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later; + case "await": + if (OS.isCallExpression(e.parent)) return OS.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function; + default: + return 300 === e.parent.kind ? OS.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer : OS.Diagnostics.Cannot_find_name_0 + } + } + + function Bm(e) { + var t = H(e); + return t.resolvedSymbol || (t.resolvedSymbol = !OS.nodeIsMissing(e) && va(e, e.escapedText, 1160127, Rm(e), e, !OS.isWriteOnlyAccess(e), !1) || L), t.resolvedSymbol + } + + function jm(e) { + return !!OS.findAncestor(e, function(e) { + return 183 === e.kind || 79 !== e.kind && 163 !== e.kind && "quit" + }) + } + + function Jm(e, t) { + switch (t.kind) { + case 214: + case 232: + return Jm(e, t.expression); + case 223: + return OS.isAssignmentExpression(t) && Jm(e, t.left) || OS.isBinaryExpression(t) && 27 === t.operatorToken.kind && Jm(e, t.right) + } + switch (e.kind) { + case 233: + return 233 === t.kind && e.keywordToken === t.keywordToken && e.name.escapedText === t.name.escapedText; + case 79: + case 80: + return OS.isThisInTypeQuery(e) ? 108 === t.kind : 79 === t.kind && Bm(e) === Bm(t) || (257 === t.kind || 205 === t.kind) && Eo(Bm(e)) === G(t); + case 108: + return 108 === t.kind; + case 106: + return 106 === t.kind; + case 232: + case 214: + return Jm(e.expression, t); + case 208: + case 209: + var r = zm(e), + n = OS.isAccessExpression(t) ? zm(t) : void 0; + return void 0 !== r && void 0 !== n && n === r && Jm(e.expression, t.expression); + case 163: + return OS.isAccessExpression(t) && e.right.escapedText === zm(t) && Jm(e.left, t.expression); + case 223: + return OS.isBinaryExpression(e) && 27 === e.operatorToken.kind && Jm(e.right, t) + } + return !1 + } + + function zm(e) { + if (OS.isPropertyAccessExpression(e)) return e.name.escapedText; + if (!OS.isElementAccessExpression(e)) return OS.isBindingElement(e) ? (t = Ts(e)) ? OS.escapeLeadingUnderscores(t) : void 0 : OS.isParameter(e) ? "" + e.parent.parameters.indexOf(e) : void 0; + var t = e; + if (OS.isStringOrNumericLiteralLike(t.argumentExpression)) return OS.escapeLeadingUnderscores(t.argumentExpression.text); + if (OS.isEntityNameExpression(t.argumentExpression)) { + e = ro(t.argumentExpression, 111551, !0); + if (!e || !(Gy(e) || 8 & e.flags)) return; + e = e.valueDeclaration; + if (void 0 === e) return; + var r = Hs(e); + if (r) { + r = Um(r); + if (void 0 !== r) return r + } + if (OS.hasOnlyExpressionInitializer(e) && ya(e, t.argumentExpression)) { + r = OS.getEffectiveInitializer(e); + if (r) return Um(C2(r)); + if (OS.isEnumMember(e)) return OS.getTextOfPropertyName(e.name) + } + } + } + + function Um(e) { + return 8192 & e.flags ? e.escapedName : 384 & e.flags ? OS.escapeLeadingUnderscores("" + e.value) : void 0 + } + + function Km(e, t) { + for (; OS.isAccessExpression(e);) + if (Jm(e = e.expression, t)) return !0; + return !1 + } + + function Vm(e, t) { + for (; OS.isOptionalChain(e);) + if (Jm(e = e.expression, t)) return 1 + } + + function qm(e, t) { + if (e && 1048576 & e.flags) { + e = Zl(e, t); + if (e && 2 & OS.getCheckFlags(e)) return void 0 === e.isDiscriminantProperty && (e.isDiscriminantProperty = 192 == (192 & e.checkFlags) && !Rd(de(e))), !!e.isDiscriminantProperty + } + return !1 + } + + function Wm(e, t) { + for (var r, n = 0, i = e; n < i.length; n++) { + var a = i[n]; + qm(t, a.escapedName) && (r ? r.push(a) : r = [a]) + } + return r + } + + function Hm(e, t) { + for (var i = new OS.Map, a = 0, r = 0, n = e; r < n.length; r++) { + var o = function(r) { + if (61603840 & r.flags) { + var e = ys(r, t); + if (e) { + if (!xg(e)) return { + value: void 0 + }; + var n = !1; + by(e, function(e) { + var e = hp(e).id, + t = i.get(e); + t ? t !== te && (i.set(e, te), n = !0) : i.set(e, r) + }), n || a++ + } + } + }(n[r]); + if ("object" == typeof o) return o.value + } + return 10 <= a && 2 * a >= e.length ? i : void 0 + } + + function Gm(e) { + var t, r = e.types; + if (!(r.length < 10 || 32768 & OS.getObjectFlags(e) || OS.countWhere(r, function(e) { + return !!(59506688 & e.flags) + }) < 10)) return void 0 === e.keyPropertyName && (r = (t = OS.forEach(r, function(e) { + return 59506688 & e.flags ? OS.forEach(pe(e), function(e) { + return vg(de(e)) ? e.escapedName : void 0 + }) : void 0 + })) && Hm(r, t), e.keyPropertyName = r ? t : "", e.constituentMap = r), e.keyPropertyName.length ? e.keyPropertyName : void 0 + } + + function Qm(e, t) { + e = null == (e = e.constituentMap) ? void 0 : e.get(hp(t).id); + return e !== te ? e : void 0 + } + + function Xm(e, t) { + var r = Gm(e), + t = r && ys(t, r); + return t && Qm(e, t) + } + + function Ym(e, t) { + return Jm(e, t) || Km(e, t) + } + + function Zm(e, t) { + if (e.arguments) + for (var r = 0, n = e.arguments; r < n.length; r++) + if (Ym(t, n[r])) return !0; + return !(208 !== e.expression.kind || !Ym(t, e.expression.expression)) + } + + function $m(e) { + return (!e.id || e.id < 0) && (e.id = jS, jS++), e.id + } + + function ey(e, t) { + var r, a, n; + return e === t ? e : 131072 & t.flags ? t : null != (r = Gi(n = "A".concat(e.id, ",").concat(t.id))) ? r : Qi(n, (a = t, n = Sy(r = e, function(e) { + var t = a, + r = e; + if (!(1048576 & t.flags)) return xe(t, r); + for (var n = 0, i = t.types; n < i.length; n++) + if (xe(i[n], r)) return !0; + return !1 + }), n = 512 & a.flags && vp(a) ? Cy(n, yp) : n, xe(a, n) ? n : r)) + } + + function ty(e) { + var t = Fl(e); + return !!(t.callSignatures.length || t.constructSignatures.length || t.members.get("bind") && _f(e, gt)) + } + + function ry(e) { + var t, r = (e = 467927040 & e.flags ? Jl(e) || te : e).flags; + if (268435460 & r) return $ ? 16317953 : 16776705; + if (134217856 & r) return n = 128 & r && "" === e.value, $ ? n ? 12123649 : 7929345 : n ? 12582401 : 16776705; + if (40 & r) return $ ? 16317698 : 16776450; + if (256 & r) return t = 0 === e.value, $ ? t ? 12123394 : 7929090 : t ? 12582146 : 16776450; + if (64 & r) return $ ? 16317188 : 16775940; + if (2048 & r) return t = Pg(e), $ ? t ? 12122884 : 7928580 : t ? 12581636 : 16775940; + if (16 & r) return $ ? 16316168 : 16774920; + if (528 & r) return $ ? e === Jr || e === zr ? 12121864 : 7927560 : e === Jr || e === zr ? 12580616 : 16774920; + if (524288 & r) return 16 & OS.getObjectFlags(e) && kf(e) ? $ ? 83427327 : 83886079 : ty(e) ? $ ? 7880640 : 16728e3 : $ ? 7888800 : 16736160; + if (16384 & r) return 9830144; + if (32768 & r) return 26607360; + if (65536 & r) return 42917664; + if (12288 & r) return $ ? 7925520 : 16772880; + if (67108864 & r) return $ ? 7888800 : 16736160; + if (131072 & r) return 0; + if (1048576 & r) return OS.reduceLeft(e.types, function(e, t) { + return e | ry(t) + }, 0); + if (2097152 & r) { + for (var n = e, i = X1(n, 131068), a = 0, o = 134217727, s = 0, c = n.types; s < c.length; s++) { + var l = c[s]; + i && 524288 & l.flags || (l = ry(l), a |= l, o &= l) + } + return 8256 & a | 134209471 & o + } + return 83886079 + } + + function ny(e, t) { + return Sy(e, function(e) { + return 0 != (ry(e) & t) + }) + } + + function iy(e, t) { + var r = ay(ny($ && 2 & e.flags ? gn : e, t)); + if ($) switch (t) { + case 524288: + return Cy(r, function(e) { + return 65536 & ry(e) ? ve([e, 131072 & ry(e) && !X1(r, 65536) ? he([un, Rr]) : un]) : e + }); + case 1048576: + return Cy(r, function(e) { + return 131072 & ry(e) ? ve([e, 65536 & ry(e) && !X1(r, 32768) ? he([un, re]) : un]) : e + }); + case 2097152: + case 4194304: + return Cy(r, function(e) { + return 262144 & ry(e) ? (t = e, (Nt = Nt || C_("NonNullable", 524288, void 0) || L) !== L ? o_(Nt, [t]) : ve([t, un])) : e; + var t + }) + } + return r + } + + function ay(e) { + return e === gn ? te : e + } + + function oy(e, t) { + return t ? he([xs(e), C2(t)]) : e + } + + function sy(e, t) { + var t = hd(t); + return zc(t) && (ys(e, t = Wc(t)) || ly(null == (e = gu(e, t)) ? void 0 : e.type)) || R + } + + function cy(e, t) { + return Dy(e, mg) && (ys(r = e, "" + t) || (Dy(r, De) ? Cy(r, function(e) { + return Ag(e) || re + }) : void 0)) || ly(Wb(65, e, re, void 0)) || R; + var r + } + + function ly(e) { + return e && (Z.noUncheckedIndexedAccess ? he([e, re]) : e) + } + + function uy(e) { + return z_(Wb(65, e, re, void 0) || R) + } + + function _y(e) { + return 223 === e.parent.kind && e.parent.left === e || 247 === e.parent.kind && e.parent.initializer === e + } + + function dy(e) { + return sy(py(e.parent), e.name) + } + + function py(e) { + var t, r, n = e.parent; + switch (n.kind) { + case 246: + return ne; + case 247: + return qb(n) || R; + case 223: + return 206 === (r = n).parent.kind && _y(r.parent) || 299 === r.parent.kind && _y(r.parent.parent) ? oy(py(r), r.right) : C2(r.right); + case 217: + return re; + case 206: + return r = e, cy(py(t = n), t.elements.indexOf(r)); + case 227: + return uy(py(n.parent)); + case 299: + return dy(n); + case 300: + return oy(dy(t = n), t.objectAssignmentInitializer) + } + return R + } + + function fy(e) { + return H(e).resolvedType || C2(e) + } + + function gy(e) { + return 257 === e.kind ? (r = e).initializer ? fy(r.initializer) : 246 === r.parent.parent.kind ? ne : 247 === r.parent.parent.kind && qb(r.parent.parent) || R : (e = (r = e).parent, t = gy(e.parent), oy(203 === e.kind ? sy(t, r.propertyName || r.name) : r.dotDotDotToken ? uy(t) : cy(t, e.elements.indexOf(r)), r.initializer)); + var t, r + } + + function my(e) { + switch (e.kind) { + case 214: + return my(e.expression); + case 223: + switch (e.operatorToken.kind) { + case 63: + case 75: + case 76: + case 77: + return my(e.left); + case 27: + return my(e.right) + } + } + return e + } + + function yy(e) { + var t = H(e); + if (!t.switchTypes) { + t.switchTypes = []; + for (var r = 0, n = e.caseBlock.clauses; r < n.length; r++) { + var i = n[r]; + t.switchTypes.push(292 === (i = i).kind ? hp(C2(i.expression)) : ae) + } + } + return t.switchTypes + } + + function hy(e) { + if (!OS.some(e.caseBlock.clauses, function(e) { + return 292 === e.kind && !OS.isStringLiteralLike(e.expression) + })) { + for (var t = [], r = 0, n = e.caseBlock.clauses; r < n.length; r++) { + var i = n[r], + i = 292 === i.kind ? i.expression.text : void 0; + t.push(i && !OS.contains(t, i) ? i : void 0) + } + return t + } + } + + function vy(e, t) { + return e === t || 1048576 & t.flags && function(e, t) { + if (1048576 & e.flags) { + for (var r = 0, n = e.types; r < n.length; r++) { + var i = n[r]; + if (!td(t.types, i)) return + } + return 1 + } + if (1024 & e.flags && kc(e) === t) return 1; + return td(t.types, e) + }(e, t) + } + + function by(e, t) { + return 1048576 & e.flags ? OS.forEach(e.types, t) : t(e) + } + + function xy(e, t) { + return 1048576 & e.flags ? OS.some(e.types, t) : t(e) + } + + function Dy(e, t) { + return 1048576 & e.flags ? OS.every(e.types, t) : t(e) + } + + function Sy(e, t) { + if (1048576 & e.flags) { + var r = e.types, + n = OS.filter(r, t); + if (n === r) return e; + var i = e.origin, + a = void 0; + if (i && 1048576 & i.flags) { + var i = i.types, + o = OS.filter(i, function(e) { + return !!(1048576 & e.flags) || t(e) + }); + if (i.length - o.length == r.length - n.length) { + if (1 === o.length) return o[0]; + a = ad(1048576, o) + } + } + return sd(n, e.objectFlags, void 0, void 0, a) + } + return 131072 & e.flags || t(e) ? e : ae + } + + function Ty(e, t) { + return Sy(e, function(e) { + return e !== t + }) + } + + function Cy(e, t, r) { + if (131072 & e.flags) return e; + if (!(1048576 & e.flags)) return t(e); + for (var n, i = e.origin, a = !1, o = 0, s = (i && 1048576 & i.flags ? i : e).types; o < s.length; o++) { + var c = s[o], + l = 1048576 & c.flags ? Cy(c, t, r) : t(c), + a = a || c !== l; + l && (n ? n.push(l) : n = [l]) + } + return a ? n && he(n, r ? 0 : 1) : e + } + + function Ey(e, t, r, n) { + return 1048576 & e.flags && r ? he(OS.map(e.types, t), 1, r, n) : Cy(e, t) + } + + function ky(e, t) { + return Sy(e, function(e) { + return 0 != (e.flags & t) + }) + } + + function Ny(e, t) { + return X1(e, 134217804) && X1(t, 402655616) ? Cy(e, function(e) { + return 4 & e.flags ? ky(t, 402653316) : Ld(e) && !X1(t, 402653188) ? ky(t, 128) : 8 & e.flags ? ky(t, 264) : 64 & e.flags ? ky(t, 2112) : e + }) : e + } + + function Ay(e) { + return 0 === e.flags + } + + function Fy(e) { + return 0 === e.flags ? e.type : e + } + + function Py(e, t) { + return t ? { + flags: 0, + type: 131072 & e.flags ? Hr : e + } : e + } + + function wy(e) { + return Dr[e.id] || (Dr[e.id] = (e = e, (t = wo(256)).elementType = e, t)); + var t + } + + function Iy(e, t) { + t = Wg(Dg(k2(t))); + return vy(t, e.elementType) ? e : wy(he([e.elementType, t])) + } + + function Oy(e) { + return e.finalArrayType || (e.finalArrayType = 131072 & (e = e.elementType).flags ? Et : z_(1048576 & e.flags ? he(e.types, 2) : e)) + } + + function My(e) { + return 256 & OS.getObjectFlags(e) ? Oy(e) : e + } + + function Ly(e) { + return 256 & OS.getObjectFlags(e) ? e.elementType : ae + } + + function Ry(e) { + var e = function e(t) { + var r = t.parent; + return 214 === r.kind || 223 === r.kind && 63 === r.operatorToken.kind && r.left === t || 223 === r.kind && 27 === r.operatorToken.kind && r.right === t ? e(r) : t + }(e), + t = e.parent, + r = OS.isPropertyAccessExpression(t) && ("length" === t.name.escapedText || 210 === t.parent.kind && OS.isIdentifier(t.name) && OS.isPushOrUnshiftIdentifier(t.name)), + e = 209 === t.kind && t.expression === e && 223 === t.parent.kind && 63 === t.parent.operatorToken.kind && t.parent.left === t && !OS.isAssignmentTarget(t.parent) && Y1(C2(t.argumentExpression), 296); + return r || e + } + + function By(e, t) { + if (8752 & (e = Wa(e)).flags) return de(e); + if (7 & e.flags) { + if (262144 & OS.getCheckFlags(e)) { + var r = e.syntheticOrigin; + if (r && By(r)) return de(e) + } + r = e.valueDeclaration; + if (r) { + if (n = r, (OS.isVariableDeclaration(n) || OS.isPropertyDeclaration(n) || OS.isPropertySignature(n) || OS.isParameter(n)) && (OS.getEffectiveTypeAnnotationNode(n) || OS.isInJSFile(n) && OS.hasInitializer(n) && n.initializer && OS.isFunctionExpressionOrArrowFunction(n.initializer) && OS.getEffectiveReturnTypeNode(n.initializer))) return de(e); + if (OS.isVariableDeclaration(r) && 247 === r.parent.parent.kind) { + var n = r.parent.parent, + i = jy(n.expression, void 0); + if (i) return Wb(n.awaitModifier ? 15 : 13, i, re, void 0) + } + t && OS.addRelatedInfo(t, OS.createDiagnosticForNode(r, OS.Diagnostics._0_needs_an_explicit_type_annotation, le(e))) + } + } + var n + } + + function jy(e, t) { + if (!(33554432 & e.flags)) switch (e.kind) { + case 79: + return By(Eo(Bm(e)), t); + case 108: + var r = e; + if (r = OS.getThisContainer(r, !1), OS.isFunctionLike(r)) { + var n = Cu(r); + if (n.thisParameter) return By(n.thisParameter) + } + return OS.isClassLike(r.parent) ? (n = G(r.parent), OS.isStatic(r) ? de(n) : Pc(n).thisType) : void 0; + case 106: + return l0(e); + case 208: + r = jy(e.expression, t); + if (r) { + var n = e.name, + i = void 0; + if (OS.isPrivateIdentifier(n)) { + if (!r.symbol) return; + i = fe(r, OS.getSymbolNameForPrivateIdentifier(r.symbol, n.escapedText)) + } else i = fe(r, n.escapedText); + return i && By(i, t) + } + return; + case 214: + return jy(e.expression, t) + } + } + + function Jy(e) { + var t, r = H(e), + n = r.effectsSignature; + return void 0 === n && (t = void 0, 241 === e.parent.kind ? t = jy(e.expression, void 0) : 106 !== e.expression.kind && (t = OS.isOptionalChain(e) ? Ah(Jg(V(e.expression), e.expression), e.expression) : Sh(e.expression)), e = 1 !== (t = ge(t && Ql(t) || te, 0)).length || t[0].typeParameters ? OS.some(t, zy) ? Gv(e) : void 0 : t[0], n = r.effectsSignature = e && zy(e) ? e : Nn), n === Nn ? void 0 : n + } + + function zy(e) { + return !!(Pu(e) || e.declaration && 131072 & (Iu(e.declaration) || te).flags) + } + + function Uy(e) { + var t = function t(e, r) { + for (;;) { + if (e === nr) return ir; + var n, i, a, o = e.flags; + if (4096 & o) { + if (!r) return c = $m(e), void 0 !== (s = ui[c]) ? s : ui[c] = t(e, !0); + r = !1 + } + if (368 & o) e = e.antecedent; + else if (512 & o) { + var s = Jy(e.node); + if (s) { + var c = Pu(s); + if (c && 3 === c.kind && !c.type) { + var l = e.node.arguments[c.parameterIndex]; + if (l && Ky(l)) return !1 + } + if (131072 & me(s).flags) return !1 + } + e = e.antecedent + } else { + if (4 & o) return OS.some(e.antecedents, function(e) { + return t(e, !1) + }); + if (8 & o) { + l = e.antecedents; + if (void 0 === l || 0 === l.length) return !1; + e = l[0] + } else { + if (!(128 & o)) return 1024 & o ? (nr = void 0, n = e.target, i = n.antecedents, n.antecedents = e.antecedents, a = t(e.antecedent, !1), n.antecedents = i, a) : !(1 & o); + if (e.clauseStart === e.clauseEnd && L1(e.switchStatement)) return !1; + e = e.antecedent + } + } + } + }(e, !1); + return nr = e, ir = t + } + + function Ky(e) { + e = OS.skipParentheses(e, !0); + return 95 === e.kind || 223 === e.kind && (55 === e.operatorToken.kind && (Ky(e.left) || Ky(e.right)) || 56 === e.operatorToken.kind && Ky(e.left) && Ky(e.right)) + } + + function Vy(_, p, u, l, e) { + void 0 === u && (u = p), void 0 === e && (e = _.flowNode); + var t, r = !1, + d = 0; + if (qn) return R; + if (!e) return p; + Wn++; + var f = Vn, + e = Fy(m(e)), + e = (Vn = f, 256 & OS.getObjectFlags(e) && Ry(_) ? Et : My(e)); + return e === Qr || _.parent && 232 === _.parent.kind && !(131072 & e.flags) && 131072 & ny(e, 2097152).flags ? p : e === Ir ? te : e; + + function g() { + return r ? t : (r = !0, t = function e(t, r, n, i) { + switch (t.kind) { + case 79: + if (!OS.isThisInTypeQuery(t)) return (o = Bm(t)) !== L ? "".concat(i ? qS(i) : "-1", "|").concat(r.id, "|").concat(n.id, "|").concat(WS(o)) : void 0; + case 108: + return "0|".concat(i ? qS(i) : "-1", "|").concat(r.id, "|").concat(n.id); + case 232: + case 214: + return e(t.expression, r, n, i); + case 163: + return (o = e(t.left, r, n, i)) && o + "." + t.right.escapedText; + case 208: + case 209: + var a, o; + if (void 0 !== (o = zm(t))) return (a = e(t.expression, r, n, i)) && a + "." + o; + break; + case 203: + case 204: + case 259: + case 215: + case 216: + case 171: + return "".concat(qS(t), "#").concat(r.id) + } + }(_, p, u, l)) + } + + function m(e) { + if (2e3 === d) return null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.instant("checkTypes", "getTypeAtFlowNode_DepthLimit", { + flowId: e.id + }), qn = !0, t = _, r = OS.findAncestor(t, OS.isFunctionOrModuleBlock), t = OS.getSourceFileOfNode(t), r = OS.getSpanOfTokenAtPosition(t, r.statements.pos), oe.add(OS.createFileDiagnostic(t, r.start, r.length, OS.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)), R; + var t, r, n; + for (d++;;) { + var i = e.flags; + if (4096 & i) { + for (var a = f; a < Vn; a++) + if (ci[a] === e) return d--, li[a]; + n = e + } + var o = void 0; + if (16 & i) { + if (!(o = function(e) { + var t = e.node; + if (Jm(_, t)) return Uy(e) ? 2 === OS.getAssignmentTargetKind(t) ? Py(Dg(Fy(r = m(e.antecedent))), Ay(r)) : p === Nr || p === Et ? function(e) { + return 257 === e.kind && e.initializer && Ns(e.initializer) || 205 !== e.kind && 223 === e.parent.kind && Ns(e.parent.right) + }(t) ? wy(ae) : xe(r = Sg(y(e)), p) ? r : Ct : 1048576 & p.flags ? ey(p, y(e)) : p : Qr; + if (Km(_, t)) { + if (!Uy(e)) return Qr; + if (OS.isVariableDeclaration(t) && (OS.isInJSFile(t) || OS.isVarConst(t))) { + var r = OS.getDeclaredExpandoInitializer(t); + if (r && (215 === r.kind || 216 === r.kind)) return m(e.antecedent) + } + return p + } + if (OS.isVariableDeclaration(t) && 246 === t.parent.parent.kind && Jm(_, t.parent.parent.expression)) return Ch(My(Fy(m(e.antecedent)))); + return + }(e))) { + e = e.antecedent; + continue + } + } else if (512 & i) { + if (!(o = function(e) { + var t = Jy(e.node); + if (t) { + var r, n, i = Pu(t); + if (i && (2 === i.kind || 3 === i.kind)) return r = m(e.antecedent), n = My(Fy(r)), (e = i.type ? O(n, i, e.node, !0) : 3 === i.kind && 0 <= i.parameterIndex && i.parameterIndex < e.node.arguments.length ? function e(t, r) { + r = OS.skipParentheses(r, !0); + if (95 === r.kind) return Qr; + if (223 === r.kind) { + if (55 === r.operatorToken.kind) return e(e(t, r.left), r.right); + if (56 === r.operatorToken.kind) return he([e(t, r.left), e(t, r.right)]) + } + return M(t, r, !0) + }(n, e.node.arguments[i.parameterIndex]) : n) === n ? r : Py(e, Ay(r)); + if (131072 & me(t).flags) return Qr + } + return + }(e))) { + e = e.antecedent; + continue + } + } else if (96 & i) o = function(e) { + var t = m(e.antecedent), + r = Fy(t); + if (131072 & r.flags) return t; + var n = 0 != (32 & e.flags), + r = My(r), + e = M(r, e.node, n); + return e !== r ? Py(e, Ay(t)) : t + }(e); + else if (128 & i) o = function(e) { + var t = e.switchStatement.expression, + r = m(e.antecedent), + n = Fy(r); + Jm(_, t) ? n = A(n, e.switchStatement, e.clauseStart, e.clauseEnd) : 218 === t.kind && Jm(_, t.expression) ? n = function(t, e, r, n) { + var i = hy(e); + if (!i) return t; + e = OS.findIndex(e.caseBlock.clauses, function(e) { + return 293 === e.kind + }); { + var a; + if (r === n || r <= e && e < n) return a = M1(r, n, i), Sy(t, function(e) { + return (ry(e) & a) === a + }) + } + e = i.slice(r, n); + return he(OS.map(e, function(e) { + return e ? F(t, e) : ae + })) + }(n, e.switchStatement, e.clauseStart, e.clauseEnd) : ($ && (Vm(t, _) ? n = N(n, e.switchStatement, e.clauseStart, e.clauseEnd, function(e) { + return !(163840 & e.flags) + }) : 218 === t.kind && Vm(t.expression, _) && (n = N(n, e.switchStatement, e.clauseStart, e.clauseEnd, function(e) { + return !(131072 & e.flags || 128 & e.flags && "undefined" === e.value) + }))), (t = v(t, n)) && (n = function(t, e, r, n, i) { + if (n < i && 1048576 & t.flags && Gm(t) === zm(e)) { + var a = yy(r).slice(n, i), + a = he(OS.map(a, function(e) { + return Qm(t, e) || te + })); + if (a !== te) return a + } + return b(t, e, function(e) { + return A(e, r, n, i) + }) + }(n, t, e.switchStatement, e.clauseStart, e.clauseEnd))); + return Py(n, Ay(r)) + }(e); + else if (12 & i) { + if (1 === e.antecedents.length) { + e = e.antecedents[0]; + continue + } + o = (4 & i ? function(e) { + for (var t, r = [], n = !1, i = !1, a = 0, o = e.antecedents; a < o.length; a++) { + var s = o[a]; + if (!t && 128 & s.flags && s.clauseStart === s.clauseEnd) t = s; + else { + var c = m(s); + if ((l = Fy(c)) === p && p === u) return l; + OS.pushIfUnique(r, l), vy(l, p) || (n = !0), Ay(c) && (i = !0) + } + } + if (t) { + var l = Fy(c = m(t)); + if (!OS.contains(r, l) && !L1(t.switchStatement)) { + if (l === p && p === u) return l; + r.push(l), vy(l, p) || (n = !0), Ay(c) && (i = !0) + } + } + return Py(h(r, n ? 2 : 1), i) + } : function(e) { + var t = $m(e), + r = ii[t] || (ii[t] = new OS.Map), + n = g(); + if (!n) return p; + t = r.get(n); + if (t) return t; + for (var i = Un; i < Kn; i++) + if (ai[i] === e && oi[i] === n && si[i].length) return Py(h(si[i], 1), !0); + for (var a, o = [], s = !1, c = 0, l = e.antecedents; c < l.length; c++) { + var u = l[c], + _ = void 0; + if (a) { + ai[Kn] = e, oi[Kn] = n, si[Kn] = o, Kn++; + var d = ar, + d = (ar = void 0, _ = m(u), ar = d, Kn--, r.get(n)); + if (d) return d + } else _ = a = m(u); + d = Fy(_); + if (OS.pushIfUnique(o, d), vy(d, p) || (s = !0), d === p) break + } + t = h(o, s ? 2 : 1); + if (Ay(a)) return Py(t, !0); + return r.set(n, t), t + })(e) + } else if (256 & i) { + if (!(o = function(e) { + if (p === Nr || p === Et) { + var t = e.node, + r = (210 === t.kind ? t.expression : t.left).expression; + if (Jm(_, my(r))) { + r = m(e.antecedent), e = Fy(r); + if (256 & OS.getObjectFlags(e)) { + var n = e; + if (210 === t.kind) + for (var i = 0, a = t.arguments; i < a.length; i++) { + var o = a[i]; + n = Iy(n, o) + } else Y1(k2(t.left.argumentExpression), 296) && (n = Iy(n, t.right)); + return n === e ? r : Py(n, Ay(r)) + } + return r + } + } + return + }(e))) { + e = e.antecedent; + continue + } + } else if (1024 & i) { + var s = e.target, + c = s.antecedents; + s.antecedents = e.antecedents, o = m(e.antecedent), s.antecedents = c + } else if (2 & i) { + s = e.node; + if (s && s !== l && 208 !== _.kind && 209 !== _.kind && 108 !== _.kind) { + e = s.flowNode; + continue + } + o = u + } else o = Ib(p); + return n && (ci[Vn] = n, li[Vn] = o, Vn++), d--, o + } + } + + function y(e) { + e = e.node; + return Yy((257 === e.kind || 205 === e.kind ? gy : py)(e), _) + } + + function h(e, t) { + return function(e) { + for (var t = !1, r = 0, n = e; r < n.length; r++) { + var i = n[r]; + if (!(131072 & i.flags)) { + if (!(256 & OS.getObjectFlags(i))) return; + t = !0 + } + } + return t + }(e) ? wy(he(OS.map(e, Ly))) : (e = ay(he(OS.sameMap(e, My), t))) !== p && e.flags & p.flags & 1048576 && OS.arraysEqual(e.types, p.types) ? p : e + } + + function v(e, t) { + t = 1048576 & p.flags ? p : t; + if (1048576 & t.flags) { + e = function(e) { + var t; + if (OS.isBindingPattern(_) || OS.isFunctionExpressionOrArrowFunction(_) || OS.isObjectLiteralMethod(_)) { + if (OS.isIdentifier(e) && (r = (t = Bm(e)).valueDeclaration) && (OS.isBindingElement(r) || OS.isParameter(r)) && _ === r.parent && !r.initializer && !r.dotDotDotToken) return r + } else if (OS.isAccessExpression(e)) { + if (Jm(_, e.expression)) return e + } else if (OS.isIdentifier(e)) + if (Gy(t = Bm(e))) { + var r = t.valueDeclaration; + if (OS.isVariableDeclaration(r) && !r.type && r.initializer && OS.isAccessExpression(r.initializer) && Jm(_, r.initializer.expression)) return r.initializer; + if (OS.isBindingElement(r) && !r.initializer) { + e = r.parent.parent; + if (OS.isVariableDeclaration(e) && !e.type && e.initializer && (OS.isIdentifier(e.initializer) || OS.isAccessExpression(e.initializer)) && Jm(_, e.initializer)) return r + } + } + }(e); + if (e) { + var r = zm(e); + if (r && qm(t, r)) return e + } + } + } + + function b(e, t, r) { + var n, i, a = zm(t); + return void 0 !== a && (n = ys((t = $ && OS.isOptionalChain(t) && X1(e, 98304)) ? ny(e, 2097152) : e, a)) ? (i = r(n = t ? Mg(n) : n), Sy(e, function(e) { + var t = ys(e = e, t = a) || (null == (e = gu(e, t)) ? void 0 : e.type) || te; + return !(131072 & t.flags) && !(131072 & i.flags) && ff(i, t) + })) : e + } + + function x(e, t, r, n, i) { + if ((36 === r || 37 === r) && 1048576 & e.flags) { + var a = Gm(e); + if (a && a === zm(t)) { + var o = Qm(e, C2(n)); + if (o) return r === (i ? 36 : 37) ? o : vg(ys(o, a) || te) ? Ty(e, o) : e + } + } + return b(e, t, function(e) { + return E(e, r, n, i) + }) + } + + function D(e, t, r) { + return Jm(_, t) ? iy(e, r ? 4194304 : 8388608) : (t = v(t, e = $ && r && Vm(t, _) ? iy(e, 2097152) : e)) ? b(e, t, function(e) { + return ny(e, r ? 4194304 : 8388608) + }) : e + } + + function a(e, t, r) { + var n = fe(e, t); + return n ? !!(16777216 & n.flags) || r : !!gu(e, t) || !r + } + + function S(e, t, r) { + var n = Wc(t); + if (xy(e, function(e) { + return a(e, n, !0) + })) return Sy(e, function(e) { + return a(e, n, r) + }); + if (r) { + var i = (rr = rr || T_("Record", 2, !0) || L) === L ? void 0 : rr; + if (i) return ve([e, o_(i, [t, te])]) + } + return e + } + + function T(e, t, r) { + switch (t.operatorToken.kind) { + case 63: + case 75: + case 76: + case 77: + return D(M(e, t.right, r), t.left, r); + case 34: + case 35: + case 36: + case 37: + var n = t.operatorToken.kind, + i = my(t.left), + a = my(t.right); + if (218 === i.kind && OS.isStringLiteralLike(a)) return k(e, i, n, a, r); + if (218 === a.kind && OS.isStringLiteralLike(i)) return k(e, a, n, i, r); + if (Jm(_, i)) return E(e, n, a, r); + if (Jm(_, a)) return E(e, n, i, r); + $ && (Vm(i, _) ? e = C(e, n, a, r) : Vm(a, _) && (e = C(e, n, i, r))); + var o = v(i, e); + if (o) return x(e, o, n, a, r); + o = v(a, e); + if (o) return x(e, o, n, i, r); + if (P(i)) return w(e, n, a, r); + if (P(a)) return w(e, n, i, r); + break; + case 102: + o = e, a = t, n = r, i = my(a.left); + if (!Jm(_, i)) return n && $ && Vm(i, _) ? iy(o, 2097152) : o; + if (!df(i = C2(a.right), gt)) return o; + if (!(a = fe(i, "prototype")) || j(a = de(a)) || (s = a), j(o) && (s === ft || s === gt)) return o; + if (s || (a = ge(i, 1), s = a.length ? he(OS.map(a, function(e) { + return me(ju(e)) + })) : un), !n && 1048576 & i.flags) + if (!OS.find(i.types, function(e) { + return !gc(e) + })) return o; + return I(o, s, n, !0); + case 101: + var s, c; + if (OS.isPrivateIdentifier(t.left)) return s = e, c = r, u = my((l = t).right), !Jm(_, u) || (OS.Debug.assertNode(l.left, OS.isPrivateIdentifier), void 0 === (u = Lh(l.left))) ? s : (l = u.parent, u = (OS.hasStaticModifier(OS.Debug.checkDefined(u.valueDeclaration, "should always have a declaration")) ? de : Pc)(l), I(s, u, c, !0)); + var l = my(t.right), + u = C2(t.left); + if (8576 & u.flags) { + if (Ug(e) && OS.isAccessExpression(_) && Jm(_.expression, l) && zm(_) === Wc(u)) return ny(e, r ? 524288 : 65536); + if (Jm(_, l)) return S(e, u, r) + } + break; + case 27: + return M(e, t.right, r); + case 55: + return r ? M(M(e, t.left, !0), t.right, !0) : he([M(e, t.left, !1), M(e, t.right, !1)]); + case 56: + return r ? he([M(e, t.left, !0), M(e, t.right, !0)]) : M(M(e, t.left, !1), t.right, !1) + } + return e + } + + function C(e, t, r, n) { + var i = 34 === t || 36 === t, + a = 34 === t || 35 === t ? 98304 : 32768, + t = C2(r); + return i !== n && Dy(t, function(e) { + return !!(e.flags & a) + }) || i === n && Dy(t, function(e) { + return !(e.flags & (3 | a)) + }) ? iy(e, 2097152) : e + } + + function E(e, t, r, n) { + if (1 & e.flags) return e; + 35 !== t && 37 !== t || (n = !n); + var i = C2(r), + a = 34 === t || 35 === t; + if (98304 & i.flags) return $ ? iy(e, a ? n ? 262144 : 2097152 : 65536 & i.flags ? n ? 131072 : 1048576 : n ? 65536 : 524288) : e; + if (n) { + if (!a && (2 & e.flags || xy(e, Nf))) { + if (67239932 & i.flags || Nf(i)) return i; + if (524288 & i.flags) return Xr + } + return Ny(Sy(e, function(e) { + return ff(e, i) || a && (t = i, 0 != (524 & e.flags)) && 0 != (28 & t.flags); + var t + }), i) + } + return vg(i) ? Sy(e, function(e) { + return !(bg(e) && ff(e, i)) + }) : e + } + + function k(e, t, r, n, i) { + 35 !== r && 37 !== r || (i = !i); + r = my(t.expression); + return Jm(_, r) ? o(e, n, i) : (t = v(t.expression, e)) ? b(e, t, function(e) { + return o(e, n, i) + }) : $ && Vm(r, _) && i === ("undefined" !== n.text) ? iy(e, 2097152) : e + } + + function o(e, t, r) { + return r ? F(e, t.text) : ny(e, JS.get(t.text) || 32768) + } + + function N(e, t, r, n, i) { + return r !== n && OS.every(yy(t).slice(r, n), i) ? ny(e, 2097152) : e + } + + function A(e, t, r, n) { + var i = yy(t); + if (!i.length) return e; + var a = i.slice(r, n), + t = r === n || OS.contains(a, ae); + if (2 & e.flags && !t) { + for (var o = void 0, s = 0; s < a.length; s += 1) { + var c = a[s]; + if (67239932 & c.flags) void 0 !== o && o.push(c); + else { + if (!(524288 & c.flags)) return e; + (o = void 0 === o ? a.slice(0, s) : o).push(Xr) + } + } + return he(void 0 === o ? a : o) + } + var l = he(a), + r = 131072 & l.flags ? ae : Ny(Sy(e, function(e) { + return ff(l, e) + }), l); + return t ? (n = Sy(e, function(e) { + return !(bg(e) && OS.contains(i, hp(2097152 & (e = e).flags && OS.find(e.types, vg) || e))) + }), 131072 & r.flags ? n : he([r, n])) : r + } + + function F(e, t) { + switch (t) { + case "string": + return n(e, ne, 1); + case "number": + return n(e, ie, 2); + case "bigint": + return n(e, jr, 4); + case "boolean": + return n(e, Vr, 8); + case "symbol": + return n(e, qr, 16); + case "object": + return 1 & e.flags ? e : he([n(e, Xr, 32), n(e, Rr, 131072)]); + case "function": + return 1 & e.flags ? e : n(e, gt, 64); + case "undefined": + return n(e, re, 65536) + } + return n(e, Xr, 128) + } + + function n(e, t, r) { + return Cy(e, function(e) { + return If(e, t, xi) ? ry(e) & r ? e : ae : _f(t, e) ? t : ry(e) & r ? ve([e, t]) : ae + }) + } + + function P(e) { + return (OS.isPropertyAccessExpression(e) && "constructor" === OS.idText(e.name) || OS.isElementAccessExpression(e) && OS.isStringLiteralLike(e.argumentExpression) && "constructor" === e.argumentExpression.text) && Jm(_, e.expression) + } + + function w(e, t, r, n) { + var i; + return (n ? 34 === t || 36 === t : 35 === t || 37 === t) && (qD(n = C2(r)) || gc(n)) && (t = fe(n, "prototype")) && (r = de(t), i = j(r) ? void 0 : r) && i !== ft && i !== gt ? j(e) ? i : Sy(e, function(e) { + var t = i; + return 524288 & e.flags && 1 & OS.getObjectFlags(e) || 524288 & t.flags && 1 & OS.getObjectFlags(t) ? e.symbol === t.symbol : _f(e, t) + }) : e + } + + function I(e, t, r, n) { + var i, a = 1048576 & e.flags ? "N".concat(e.id, ",").concat(t.id, ",").concat((r ? 1 : 0) | (n ? 2 : 0)) : void 0; + return null != (i = Gi(a)) ? i : Qi(a, function(r, t, e, n) { + var i = n ? df : _f; + if (!e) return Sy(r, function(e) { + return !i(e, t) + }); + if (3 & r.flags) return t; + var a = 1048576 & r.flags ? Gm(r) : void 0, + e = Cy(t, function(t) { + var e = a && ys(t, a), + e = Cy(e && Qm(r, e) || r, n ? function(e) { + return df(e, t) ? e : df(t, e) ? t : ae + } : function(e) { + return _f(t, e) ? t : _f(e, t) ? e : ae + }); + return 131072 & e.flags ? Cy(r, function(e) { + return X1(e, 465829888) && i(t, Jl(e) || te) ? ve([e, t]) : ae + }) : e + }); + return 131072 & e.flags ? _f(t, r) ? t : xe(r, t) ? r : xe(t, r) ? t : ve([r, t]) : e + }(e, t, r, n)) + } + + function O(e, t, r, n) { + if (t.type && (!j(e) || t.type !== ft && t.type !== gt)) { + r = r; + r = 1 === (i = t).kind || 3 === i.kind ? r.arguments[i.parameterIndex] : (i = OS.skipParentheses(r.expression), OS.isAccessExpression(i) ? OS.skipParentheses(i.expression) : void 0); + if (r) { + if (Jm(_, r)) return I(e, t.type, n, !1); + i = v(r, e = $ && n && Vm(r, _) && !(65536 & ry(t.type)) ? iy(e, 2097152) : e); + if (i) return b(e, i, function(e) { + return I(e, t.type, n, !1) + }) + } + } + var i; + return e + } + + function M(e, t, r) { + var n, i, a; + if (OS.isExpressionOfOptionalChainRoot(t) || OS.isBinaryExpression(t.parent) && 60 === t.parent.operatorToken.kind && t.parent.left === t) return n = e, a = r, Jm(_, i = t) ? iy(n, a ? 2097152 : 262144) : (i = v(i, n)) ? b(n, i, function(e) { + return ny(e, a ? 2097152 : 262144) + }) : n; + switch (t.kind) { + case 79: + if (!Jm(_, t) && z < 5) { + var o = Bm(t); + if (Gy(o)) { + var o = o.valueDeclaration; + if (o && OS.isVariableDeclaration(o) && !o.type && o.initializer && function e(t) { + switch (t.kind) { + case 79: + var r = Bm(t); + return Gy(r) || OS.isParameterOrCatchClauseVariable(r) && !Wy(r); + case 208: + case 209: + return e(t.expression) && K1(H(t).resolvedSymbol || L) + } + return !1 + }(_)) return z++, o = M(e, o.initializer, r), z--, o + } + } + case 108: + case 106: + case 208: + case 209: + return D(e, t, r); + case 210: + var o = e, + s = t, + c = r; + if (Zm(s, _)) { + var l = c || !OS.isCallChain(s) ? Jy(s) : void 0, + l = l && Pu(l); + if (l && (0 === l.kind || 1 === l.kind)) return O(o, l, s, c) + } + if (Ug(o) && OS.isAccessExpression(_) && OS.isPropertyAccessExpression(s.expression)) { + l = s.expression; + if (Jm(_.expression, my(l.expression)) && OS.isIdentifier(l.name) && "hasOwnProperty" === l.name.escapedText && 1 === s.arguments.length) { + l = s.arguments[0]; + if (OS.isStringLiteralLike(l) && zm(_) === OS.escapeLeadingUnderscores(l.text)) return ny(o, c ? 524288 : 65536) + } + } + return o; + case 214: + case 232: + return M(e, t.expression, r); + case 223: + return T(e, t, r); + case 221: + if (53 === t.operator) return M(e, t.operand, !r) + } + return e + } + } + + function qy(e) { + return OS.findAncestor(e.parent, function(e) { + return OS.isFunctionLike(e) && !OS.getImmediatelyInvokedFunctionExpression(e) || 265 === e.kind || 308 === e.kind || 169 === e.kind + }) + } + + function Wy(e) { + var t, r; + return e.valueDeclaration && (8388608 & (r = H(t = OS.getRootDeclaration(e.valueDeclaration).parent)).flags || (r.flags |= 8388608, OS.findAncestor(t.parent, function(e) { + return (OS.isFunctionLike(e) || OS.isCatchClause(e)) && !!(8388608 & H(e).flags) + })) || Hy(t), e.isAssigned) || !1 + } + + function Hy(e) { + var t; + 79 === e.kind ? OS.isAssignmentTarget(e) && (t = Bm(e), OS.isParameterOrCatchClauseVariable(t)) && (t.isAssigned = !0) : OS.forEachChild(e, Hy) + } + + function Gy(e) { + return 3 & e.flags && 0 != (2 & hh(e)) + } + + function Qy(e) { + return 2097152 & e.flags ? OS.some(e.types, Qy) : !!(465829888 & e.flags && 1146880 & zl(e).flags) + } + + function Xy(e) { + return 2097152 & e.flags ? OS.some(e.types, Xy) : !(!(465829888 & e.flags) || X1(zl(e), 98304)) + } + + function Yy(e, t, r) { + var n, i, a; + return !(r && 2 & r) && xy(e, Qy) && (n = e, 208 === (a = (i = t).parent).kind || 163 === a.kind || 210 === a.kind && a.expression === i || 209 === a.kind && a.expression === i && !(xy(n, Xy) && jd(C2(a.argumentExpression))) || (i = t, n = r, (i = (OS.isIdentifier(i) || OS.isPropertyAccessExpression(i) || OS.isElementAccessExpression(i)) && !((OS.isJsxOpeningElement(i.parent) || OS.isJsxSelfClosingElement(i.parent)) && i.parent.tagName === i) && I0(i, n && 64 & n ? 8 : void 0)) && !Rd(i))) ? Cy(e, zl) : e + } + + function Zy(e) { + return OS.findAncestor(e, function(e) { + var t = e.parent; + return void 0 === t ? "quit" : OS.isExportAssignment(t) ? t.expression === e && OS.isEntityNameExpression(e) : !!OS.isExportSpecifier(t) && (t.name === e || t.propertyName === e) + }) + } + + function $y(e, t) { + var r; + !qa(e, 111551) || jm(t) || Ya(e, 111551) || 1160127 & Ga(r = Ha(e)) && (Z.isolatedModules || OS.shouldPreserveConstEnums(Z) && Zy(t) || !OD(Eo(r)) ? $a(e) : (t = ce(t = e)).constEnumReferenced || (t.constEnumReferenced = !0)) + } + + function e0(e, t) { + if (OS.isThisInTypeQuery(e)) return o0(e); + var r = Bm(e); + if (r === L) return R; + if (r === it) return Uh(e) ? (se(e, OS.Diagnostics.arguments_cannot_be_referenced_in_property_initializers), R) : (o = OS.getContainingFunction(e), U < 2 && (216 === o.kind ? se(e, OS.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression) : OS.hasSyntacticModifier(o, 512) && se(e, OS.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)), H(o).flags |= 8192, de(r)); + ! function(e) { + var t = e.parent; + if (t) { + if (OS.isPropertyAccessExpression(t) && t.expression === e) return; + if (OS.isExportSpecifier(t) && t.isTypeOnly) return; + t = null == (e = t.parent) ? void 0 : e.parent; + if (t && OS.isExportDeclaration(t) && t.isTypeOnly) return + } + return 1 + }(e) || $y(r, e); + var n = Eo(r), + i = Vx(n, e), + a = (aa(i) && wd(e, i) && i.declarations && oa(e, i.declarations, e.escapedText), n.valueDeclaration); + if (a && 32 & n.flags) + if (260 === a.kind && OS.nodeIsDecorated(a)) + for (var o = OS.getContainingClass(e); void 0 !== o;) { + if (o === a && o.name !== e) { + H(a).flags |= 16777216, H(e).flags |= 33554432; + break + } + o = OS.getContainingClass(o) + } else if (228 === a.kind) + for (o = OS.getThisContainer(e, !1); 308 !== o.kind;) { + if (o.parent === a) { + (OS.isPropertyDeclaration(o) && OS.isStatic(o) || OS.isClassStaticBlockDeclaration(o)) && (H(a).flags |= 16777216, H(e).flags |= 33554432); + break + } + o = OS.getThisContainer(o, !1) + } + i = e, h = r, 2 <= U || 0 == (34 & h.flags) || !h.valueDeclaration || OS.isSourceFile(h.valueDeclaration) || 295 === h.valueDeclaration.parent.kind || (m = OS.getEnclosingBlockScopeContainer(h.valueDeclaration), y = function(e, t) { + return !!OS.findAncestor(e, function(e) { + return e === t ? "quit" : OS.isFunctionLike(e) || e.parent && OS.isPropertyDeclaration(e.parent) && !OS.hasStaticModifier(e.parent) && e.parent.initializer === e + }) + }(i, m), (f = t0(m)) && (y && (p = !0, p = !(OS.isForStatement(m) && (g = OS.getAncestor(h.valueDeclaration, 258)) && g.parent === m && (l = function(e, t) { + return OS.findAncestor(e, function(e) { + return e === t ? "quit" : e === t.initializer || e === t.condition || e === t.incrementor || e === t.statement + }) + }(i.parent, m)) && ((c = H(l)).flags |= 131072, c = c.capturedBlockScopeBindings || (c.capturedBlockScopeBindings = []), OS.pushIfUnique(c, h), l === m.initializer)) && p) && (H(f).flags |= 65536), OS.isForStatement(m) && (g = OS.getAncestor(h.valueDeclaration, 258)) && g.parent === m && function(e, t) { + var r = e; + for (; 214 === r.parent.kind;) r = r.parent; + e = !1; { + var n; + OS.isAssignmentTarget(r) ? e = !0 : 221 !== r.parent.kind && 222 !== r.parent.kind || (n = r.parent, e = 45 === n.operator || 46 === n.operator) + } + return e && !!OS.findAncestor(r, function(e) { + return e === t ? "quit" : e === t.statement + }) + }(i, m) && (H(h.valueDeclaration).flags |= 4194304), H(h.valueDeclaration).flags |= 524288), y && (H(h.valueDeclaration).flags |= 262144)); + var s = function(e, t) { + var r = e.valueDeclaration; + if (r) { + if (OS.isBindingElement(r) && !r.initializer && !r.dotDotDotToken && 2 <= r.parent.elements.length) { + var n = r.parent.parent; + if (257 === n.kind && 2 & OS.getCombinedNodeFlags(r) || 166 === n.kind) { + var i = H(n); + if (!(268435456 & i.flags)) { + i.flags |= 268435456; + var a = hs(n, 0), + a = a && Cy(a, zl); + if (i.flags &= -268435457, a && 1048576 & a.flags && (166 !== n.kind || !Wy(e))) return 131072 & (o = Vy(r.parent, a, a, void 0, t.flowNode)).flags ? ae : Es(r, o) + } + } + } + if (OS.isParameter(r) && !r.type && !r.initializer && !r.dotDotDotToken) { + i = r.parent; + if (2 <= i.parameters.length && af(i)) { + n = J0(i); + if (n && 1 === n.parameters.length && YS(n)) { + var o, a = Xl(de(n.parameters[0])); + if (1048576 & a.flags && Dy(a, De) && !Wy(e)) return qd(o = Vy(i, a, a, void 0, t.flowNode), xp(i.parameters.indexOf(r) - (OS.getThisParameter(i) ? 1 : 0))) + } + } + } + } + return de(e) + }(n, e), + c = OS.getAssignmentTargetKind(e); + if (c) { + if (!(3 & n.flags || OS.isInJSFile(e) && 512 & n.flags)) return se(e, 384 & n.flags ? OS.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum : 32 & n.flags ? OS.Diagnostics.Cannot_assign_to_0_because_it_is_a_class : 1536 & n.flags ? OS.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace : 16 & n.flags ? OS.Diagnostics.Cannot_assign_to_0_because_it_is_a_function : 2097152 & n.flags ? OS.Diagnostics.Cannot_assign_to_0_because_it_is_an_import : OS.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable, le(r)), R; + if (K1(n)) return 3 & n.flags ? se(e, OS.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant, le(r)) : se(e, OS.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, le(r)), R + } + var l = 2097152 & n.flags; + if (3 & n.flags) { + if (1 === c) return s + } else { + if (!l) return s; + a = ka(r) + } + if (!a) return s; + for (var s = Yy(s, e, t), u = 166 === OS.getRootDeclaration(a).kind, _ = qy(a), d = qy(e), p = d !== _, f = e.parent && e.parent.parent && OS.isSpreadAssignment(e.parent) && _y(e.parent.parent), g = 134217728 & r.flags; d !== _ && (215 === d.kind || 216 === d.kind || OS.isObjectLiteralOrClassExpressionMethodOrAccessor(d)) && (Gy(n) && s !== Et || u && !Wy(n));) d = qy(d); + var m, y, h, i = u || l || p || f || g || function(e, t) { + if (OS.isBindingElement(t)) return (e = OS.findAncestor(e, OS.isBindingElement)) && OS.getRootDeclaration(e) === OS.getRootDeclaration(t) + }(e, a) || s !== Nr && s !== Et && (!$ || 0 != (16387 & s.flags) || jm(e) || 278 === e.parent.kind) || 232 === e.parent.kind || 257 === a.kind && a.exclamationToken || 16777216 & a.flags, + t = Vy(e, s, i ? u ? (m = s, ps((y = a).symbol, 2) ? (h = $ && 166 === y.kind && y.initializer && 16777216 & ry(m) && !(16777216 & ry(V(y.initializer))), gs(), h ? ny(m, 524288) : m) : (nc(y.symbol), m)) : s : s === Nr || s === Et ? re : Mg(s), d); + if (Ry(e) || s !== Nr && s !== Et) { + if (!i && !Af(s) && Af(t)) return se(e, OS.Diagnostics.Variable_0_is_used_before_being_assigned, le(r)), s + } else if (t === Nr || t === Et) return Te && (se(OS.getNameOfDeclaration(a), OS.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined, le(r), ue(t)), se(e, OS.Diagnostics.Variable_0_implicitly_has_an_1_type, le(r), ue(t))), Ib(t); + return c ? Dg(t) : t + } + + function t0(e) { + return OS.findAncestor(e, function(e) { + return !e || OS.nodeStartsNewLexicalEnvironment(e) ? "quit" : OS.isIterationStatement(e, !1) + }) + } + + function r0(e, t) { + H(e).flags |= 2, 169 === t.kind || 173 === t.kind ? H(t.parent).flags |= 4 : H(t).flags |= 4 + } + + function n0(e) { + return OS.isSuperCall(e) ? e : OS.isFunctionLike(e) ? void 0 : OS.forEachChild(e, n0) + } + + function i0(e) { + return vc(Pc(G(e))) === Br + } + + function a0(e, t, r) { + t = t.parent; + OS.getClassExtendsHeritageElement(t) && !i0(t) && e.flowNode && ! function t(e, r) { + for (;;) { + var n, i, a, o = e.flags; + if (4096 & o) { + if (!r) return i = $m(e), void 0 !== (n = _i[i]) ? n : _i[i] = t(e, !0); + r = !1 + } + if (496 & o) e = e.antecedent; + else if (512 & o) { + if (106 === e.node.expression.kind) return !0; + e = e.antecedent + } else { + if (4 & o) return OS.every(e.antecedents, function(e) { + return t(e, !1) + }); + if (!(8 & o)) return 1024 & o ? (i = (n = e.target).antecedents, n.antecedents = e.antecedents, a = t(e.antecedent, !1), n.antecedents = i, a) : !!(1 & o); + e = e.antecedents[0] + } + } + }(e.flowNode, !1) && se(e, r) + } + + function o0(e) { + var t = jm(e), + r = OS.getThisContainer(e, !0), + n = !1; + switch (173 === r.kind && a0(e, r, OS.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class), 216 === r.kind && (r = OS.getThisContainer(r, !1), n = !0), i = e, a = r, OS.isPropertyDeclaration(a) && OS.hasStaticModifier(a) && a.initializer && OS.textRangeContainsPositionInclusive(a.initializer, i.pos) && OS.hasDecorators(a.parent) && se(i, OS.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class), r.kind) { + case 264: + se(e, OS.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body); + break; + case 263: + se(e, OS.Diagnostics.this_cannot_be_referenced_in_current_location); + break; + case 173: + c0(e, r) && se(e, OS.Diagnostics.this_cannot_be_referenced_in_constructor_arguments); + break; + case 164: + se(e, OS.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name) + }!t && n && U < 2 && r0(e, r); + var i, a = s0(e, !0, r); + return x && (a === (i = de(nt)) && n ? se(e, OS.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this) : a || (t = se(e, OS.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation), OS.isSourceFile(r)) || (n = s0(r)) && n !== i && OS.addRelatedInfo(t, OS.createDiagnosticForNode(r, OS.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))), a || ee + } + + function s0(e, t, r) { + void 0 === t && (t = !0), void 0 === r && (r = OS.getThisContainer(e, !1)); + var n = OS.isInJSFile(e); + if (OS.isFunctionLike(r) && (!f0(e) || OS.getThisParameter(r))) { + var i, a = Fu(Cu(r)) || n && function(e) { + var t = OS.getJSDocType(e); + if (t && 320 === t.kind) + if (0 < t.parameters.length && t.parameters[0].name && "this" === t.parameters[0].name.escapedText) return K(t.parameters[0].type); + t = OS.getJSDocThisTag(e); + if (t && t.typeExpression) return K(t.typeExpression) + }(r); + if (a || (i = 215 === (i = r).kind && OS.isBinaryExpression(i.parent) && 3 === OS.getAssignmentDeclarationKind(i.parent) ? i.parent.left.expression.expression : 171 === i.kind && 207 === i.parent.kind && OS.isBinaryExpression(i.parent.parent) && 6 === OS.getAssignmentDeclarationKind(i.parent.parent) ? i.parent.parent.left.expression : 215 === i.kind && 299 === i.parent.kind && 207 === i.parent.parent.kind && OS.isBinaryExpression(i.parent.parent.parent) && 6 === OS.getAssignmentDeclarationKind(i.parent.parent.parent) ? i.parent.parent.parent.left.expression : 215 === i.kind && OS.isPropertyAssignment(i.parent) && OS.isIdentifier(i.parent.name) && ("value" === i.parent.name.escapedText || "get" === i.parent.name.escapedText || "set" === i.parent.name.escapedText) && OS.isObjectLiteralExpression(i.parent.parent) && OS.isCallExpression(i.parent.parent.parent) && i.parent.parent.parent.arguments[2] === i.parent.parent && 9 === OS.getAssignmentDeclarationKind(i.parent.parent.parent) ? i.parent.parent.parent.arguments[0].expression : OS.isMethodDeclaration(i) && OS.isIdentifier(i.name) && ("value" === i.name.escapedText || "get" === i.name.escapedText || "set" === i.name.escapedText) && OS.isObjectLiteralExpression(i.parent) && OS.isCallExpression(i.parent.parent) && i.parent.parent.arguments[2] === i.parent && 9 === OS.getAssignmentDeclarationKind(i.parent.parent) ? i.parent.parent.arguments[0].expression : void 0, n && i ? (n = V(i).symbol) && n.members && 16 & n.flags && (a = Pc(n).thisType) : Qv(r) && (a = Pc(bo(r.symbol)).thisType), a = a || _0(r)), a) return Vy(e, a) + } + return OS.isClassLike(r.parent) ? (i = G(r.parent), Vy(e, OS.isStatic(r) ? de(i) : Pc(i).thisType)) : OS.isSourceFile(r) ? r.commonJsModuleIndicator ? (n = G(r)) && de(n) : r.externalModuleIndicator ? re : t ? de(nt) : void 0 : void 0 + } + + function c0(e, t) { + return OS.findAncestor(e, function(e) { + return OS.isFunctionLikeDeclaration(e) ? "quit" : 166 === e.kind && e.parent === t + }) + } + + function l0(e) { + var t = 210 === e.parent.kind && e.parent.expression === e, + r = OS.getSuperContainer(e, !0), + n = r, + i = !1, + a = !1; + if (!t) { + for (; n && 216 === n.kind;) OS.hasSyntacticModifier(n, 512) && (a = !0), n = OS.getSuperContainer(n, !0), i = U < 2; + n && OS.hasSyntacticModifier(n, 512) && (a = !0) + } + var o, s = 0; + return function(e) { + if (e) { + if (t) return 173 === e.kind; + if (OS.isClassLike(e.parent) || 207 === e.parent.kind) return OS.isStatic(e) ? 171 === e.kind || 170 === e.kind || 174 === e.kind || 175 === e.kind || 169 === e.kind || 172 === e.kind : 171 === e.kind || 170 === e.kind || 174 === e.kind || 175 === e.kind || 169 === e.kind || 168 === e.kind || 173 === e.kind + } + return !1 + }(n) ? (t || 173 !== r.kind || a0(e, n, OS.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class), OS.isStatic(n) || t ? (s = 512, !t && 2 <= U && U <= 8 && (OS.isPropertyDeclaration(n) || OS.isClassStaticBlockDeclaration(n)) && OS.forEachEnclosingBlockScopeContainer(e.parent, function(e) { + OS.isSourceFile(e) && !OS.isExternalOrCommonJsModule(e) || (H(e).flags |= 134217728) + })) : s = 256, H(e).flags |= s, 171 === n.kind && a && (OS.isSuperProperty(e.parent) && OS.isAssignmentTarget(e.parent) ? H(n).flags |= 4096 : H(n).flags |= 2048), i && r0(e.parent, n), 207 === n.parent.kind ? U < 2 ? (se(e, OS.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher), R) : ee : (r = n.parent, OS.getClassExtendsHeritageElement(r) ? (o = (r = Pc(G(r))) && xc(r)[0]) ? 173 === n.kind && c0(e, n) ? (se(e, OS.Diagnostics.super_cannot_be_referenced_in_constructor_arguments), R) : 512 === s ? vc(r) : Yc(o, r.thisType) : R : (se(e, OS.Diagnostics.super_can_only_be_referenced_in_a_derived_class), R))) : ((s = OS.findAncestor(e, function(e) { + return e === n ? "quit" : 164 === e.kind + })) && 164 === s.kind ? se(e, OS.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name) : t ? se(e, OS.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors) : n && n.parent && (OS.isClassLike(n.parent) || 207 === n.parent.kind) ? se(e, OS.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class) : se(e, OS.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions), R) + } + + function u0(e) { + return 4 & OS.getObjectFlags(e) && e.target === Tt ? ye(e)[0] : void 0 + } + + function _0(e) { + if (216 !== e.kind) { + if (af(e)) { + var t = J0(e); + if (t) { + t = t.thisParameter; + if (t) return de(t) + } + } + t = OS.isInJSFile(e); + if (x || t) { + var r = 171 !== (n = e).kind && 174 !== n.kind && 175 !== n.kind || 207 !== n.parent.kind ? 215 === n.kind && 299 === n.parent.kind ? n.parent.parent : void 0 : n.parent; + if (r) { + for (var n = F0(r, void 0), i = r, a = n; a;) { + var o = Cy(a, function(e) { + return 2097152 & e.flags ? OS.forEach(e.types, u0) : u0(e) + }); + if (o) return be(o, cm(O0(r))); + if (299 !== i.parent.kind) break; + a = F0(i = i.parent.parent, void 0) + } + return Xg(n ? Lg(n) : u2(r)) + } + n = OS.walkUpParenthesizedExpressions(e.parent); + if (223 === n.kind && 63 === n.operatorToken.kind) { + e = n.left; + if (OS.isAccessExpression(e)) { + e = e.expression; + if (t && OS.isIdentifier(e)) { + t = OS.getSourceFileOfNode(n); + if (t.commonJsModuleIndicator && Bm(e) === t.symbol) return + } + return Xg(u2(e)) + } + } + } + } + } + + function d0(e) { + var t, r, n, i, a = e.parent; + if (af(a)) return (i = OS.getImmediatelyInvokedFunctionExpression(a)) && i.arguments ? (r = Av(i), n = a.parameters.indexOf(e), e.dotDotDotToken ? Dv(r, n, r.length, ee, void 0, 0) : (t = (i = H(i)).resolvedSignature, i.resolvedSignature = kn, r = n < r.length ? Sg(V(r[n])) : e.initializer ? void 0 : Or, i.resolvedSignature = t, r)) : (n = J0(a)) ? (i = a.parameters.indexOf(e) - (OS.getThisParameter(a) ? 1 : 0), (e.dotDotDotToken && OS.lastOrUndefined(a.parameters) === e ? b1 : v1)(n, i)) : void 0 + } + + function p0(e, t) { + var r = OS.getEffectiveTypeAnnotationNode(e); + if (r) return K(r); + switch (e.kind) { + case 166: + return d0(e); + case 205: + var n = e, + i = t, + a = n.parent.parent, + o = n.propertyName || n.name; + return !(i = p0(a, i) || 205 !== a.kind && a.initializer && d2(a, n.dotDotDotToken ? 64 : 0)) || OS.isBindingPattern(o) || OS.isComputedNonLiteralName(o) ? void 0 : 204 === a.name.kind ? (a = OS.indexOfNode(n.parent.elements, n)) < 0 ? void 0 : C0(i, a) : zc(n = hd(o)) ? (a = Wc(n), ys(i, a)) : void 0; + case 169: + if (OS.isStatic(e)) { + o = e, n = t; + if (n = OS.isExpression(o.parent) && I0(o.parent, n)) return D0(n, G(o).escapedName) + } + } + } + + function f0(e) { + for (var t = !1; e.parent && !OS.isFunctionLike(e.parent);) { + if (OS.isParameter(e.parent) && (t || e.parent.initializer === e)) return 1; + OS.isBindingElement(e.parent) && e.parent.initializer === e && (t = !0), e = e.parent + } + } + + function g0(e, t) { + var r = !!(2 & OS.getFunctionFlags(t)), + t = m0(t, void 0); + if (t) return px(e, t, r) || void 0 + } + + function m0(e, t) { + var r = Iu(e); + return r || ((r = j0(e)) && !Ou(r) ? me(r) : (r = OS.getImmediatelyInvokedFunctionExpression(e)) ? I0(r, t) : void 0) + } + + function y0(e, t) { + t = Av(e).indexOf(t); + return -1 === t ? void 0 : h0(e, t) + } + + function h0(e, t) { + var r; + return OS.isImportCall(e) ? 0 === t ? ne : 1 === t ? A_(!1) : ee : (r = H(e).resolvedSignature === An ? An : Gv(e), OS.isJsxOpeningLikeElement(e) && 0 === t ? M0(r, e) : (e = r.parameters.length - 1, YS(r) && e <= t ? qd(de(r.parameters[e]), xp(t - e), 256) : h1(r, t))) + } + + function v0(e, t) { + var r = e.parent, + n = r.left, + i = r.operatorToken, + a = r.right; + switch (i.kind) { + case 63: + case 76: + case 75: + case 77: + if (e === a) { + var o = r; + var s = OS.getAssignmentDeclarationKind(o); + switch (s) { + case 0: + case 4: + var c = function(e) { + if (e.symbol) return e.symbol; + if (OS.isIdentifier(e)) return Bm(e); + if (OS.isPropertyAccessExpression(e)) return r = C2(e.expression), OS.isPrivateIdentifier(e.name) ? function(e, t) { + t = Oh(t.escapedText, t); + return t && Rh(e, t) + }(r, e.name) : fe(r, e.name.escapedText); { + var t, r; + if (OS.isElementAccessExpression(e)) return zc(t = u2(e.argumentExpression)) ? fe(r = C2(e.expression), Wc(t)) : void 0 + } + return + }(o.left), + l = c && c.valueDeclaration; + return l && (OS.isPropertyDeclaration(l) || OS.isPropertySignature(l)) ? (u = OS.getEffectiveTypeAnnotationNode(l)) && be(K(u), ce(c).mapper) || (OS.isPropertyDeclaration(l) ? l.initializer && C2(o.left) : void 0) : 0 === s ? C2(o.left) : x0(o); + case 5: + if (b0(o, s)) return x0(o); + if (o.left.symbol) { + var c = o.left.symbol.valueDeclaration; + if (!c) return; + var l = OS.cast(o.left, OS.isAccessExpression); + if (u = OS.getEffectiveTypeAnnotationNode(c)) return K(u); + if (OS.isIdentifier(l.expression)) { + var u = l.expression, + u = va(u, u.escapedText, 111551, void 0, u.escapedText, !0); + if (u) { + u = u.valueDeclaration && OS.getEffectiveTypeAnnotationNode(u.valueDeclaration); + if (u) { + l = OS.getElementOrPropertyAccessName(l); + if (void 0 !== l) return D0(K(u), l) + } + return + } + } + return OS.isInJSFile(c) ? void 0 : C2(o.left) + } + return C2(o.left); + case 1: + case 6: + case 3: + case 2: + u = void 0, l = (u = (u = 2 !== s ? null == (l = o.left.symbol) ? void 0 : l.valueDeclaration : u) || (null == (c = o.symbol) ? void 0 : c.valueDeclaration)) && OS.getEffectiveTypeAnnotationNode(u); + return l ? K(l) : void 0; + case 7: + case 8: + case 9: + return OS.Debug.fail("Does not apply"); + default: + return OS.Debug.assertNever(s) + } + return + } else return void 0; + case 56: + case 60: + var _ = I0(r, t); + return e === a && (_ && _.pattern || !_ && !OS.isDefaultedExpandoInitializer(r)) ? C2(n) : _; + case 55: + case 27: + return e === a ? I0(r, t) : void 0; + default: + return + } + } + + function b0(e, t) { + return 4 === (t = void 0 === t ? OS.getAssignmentDeclarationKind(e) : t) || !(!OS.isInJSFile(e) || 5 !== t || !OS.isIdentifier(e.left.expression)) && (t = e.left.expression.escapedText, e = va(e.left, t, 111551, void 0, void 0, !0, !0), OS.isThisInitializedDeclaration(null == e ? void 0 : e.valueDeclaration)) + } + + function x0(e) { + if (!e.symbol) return C2(e.left); + if (e.symbol.valueDeclaration) { + var t = OS.getEffectiveTypeAnnotationNode(e.symbol.valueDeclaration); + if (t) { + t = K(t); + if (t) return t + } + } + var t = OS.cast(e.left, OS.isAccessExpression); + return OS.isObjectLiteralMethod(OS.getThisContainer(t.expression, !1)) && (e = o0(t.expression), void 0 !== (t = OS.getElementOrPropertyAccessName(t))) && D0(e, t) || void 0 + } + + function D0(e, n, i) { + return Cy(e, function(e) { + if (Al(e) && !e.declaration.nameType) { + var t = bl(e), + t = Jl(t) || t, + r = i || bp(OS.unescapeLeadingUnderscores(n)); + if (xe(r, t)) return Vd(e, r) + } else if (3670016 & e.flags) { + t = fe(e, n); + if (t) return r = t, 262144 & OS.getCheckFlags(r) && !r.type && 0 <= fs(r, 0) ? void 0 : de(t); + if (De(e)) { + t = Ag(e); + if (t && OS.isNumericLiteralName(n) && 0 <= +n) return t + } + return null == (t = su(lu(e), i || bp(OS.unescapeLeadingUnderscores(n)))) ? void 0 : t.type + } + }, !0) + } + + function S0(e, t) { + if (OS.Debug.assert(OS.isObjectLiteralMethod(e)), !(33554432 & e.flags)) return T0(e, t) + } + + function T0(e, t) { + var r = e.parent, + n = OS.isPropertyAssignment(e) && p0(e, t); + if (n) return n; + var i, n = F0(r, t); + if (n) { + if (qc(e)) return D0(n, (r = G(e)).escapedName, ce(r).nameType); + if (e.name) return i = hd(e.name), Cy(n, function(e) { + return null == (e = su(lu(e), i)) ? void 0 : e.type + }, !0) + } + } + + function C0(e, t) { + return e && (D0(e, "" + t) || Cy(e, function(e) { + return Hb(1, e, re, void 0, !1) + }, !0)) + } + + function E0(e, t) { + var r = e.parent; { + var n, t, i; + return OS.isJsxAttributeLike(r) ? I0(e, t) : OS.isJsxElement(r) && (t = F0(r.openingElement.tagName, t), i = ch(oh(r)), t) && !j(t) && i && "" !== i ? (r = OS.getSemanticJsxChildren(r.children), n = r.indexOf(e), (e = D0(t, i)) && (1 === r.length ? e : Cy(e, function(e) { + return dg(e) ? qd(e, xp(n)) : e + }, !0))) : void 0 + } + } + + function k0(e, t) { + var r; + return OS.isJsxAttribute(e) ? (r = F0(e.parent, t)) && !j(r) ? D0(r, e.name.escapedText) : void 0 : I0(e.parent, t) + } + + function N0(e) { + switch (e.kind) { + case 10: + case 8: + case 9: + case 14: + case 110: + case 95: + case 104: + case 79: + case 155: + return !0; + case 208: + case 214: + return N0(e.expression); + case 291: + return !e.expression || N0(e.expression) + } + return !1 + } + + function A0(r, n) { + return t = r, i = Gm(e = n), (t = (t = i && OS.find(t.properties, function(e) { + return e.symbol && 299 === e.kind && e.symbol.escapedName === i && N0(e.initializer) + })) && k2(t.initializer)) && Qm(e, t) || zf(n, OS.concatenate(OS.map(OS.filter(r.properties, function(e) { + return !!e.symbol && 299 === e.kind && N0(e.initializer) && qm(n, e.symbol.escapedName) + }), function(e) { + return [function() { + return k2(e.initializer) + }, e.symbol.escapedName] + }), OS.map(OS.filter(pe(n), function(e) { + var t; + return !!(16777216 & e.flags) && !(null == (t = null == r ? void 0 : r.symbol) || !t.members) && !r.symbol.members.has(e.escapedName) && qm(n, e.escapedName) + }), function(e) { + return [function() { + return re + }, e.escapedName] + })), xe, n); + var e, t, i + } + + function F0(e, t) { + var r, n, i = P0((OS.isObjectLiteralMethod(e) ? S0 : I0)(e, t), e, t); + if (i && !(t && 2 & t && 8650752 & i.flags)) return 1048576 & (t = Cy(i, Ql, !0)).flags && OS.isObjectLiteralExpression(e) ? A0(e, t) : 1048576 & t.flags && OS.isJsxAttributes(e) ? (r = e, zf(n = t, OS.concatenate(OS.map(OS.filter(r.properties, function(e) { + return !!e.symbol && 288 === e.kind && qm(n, e.symbol.escapedName) && (!e.initializer || N0(e.initializer)) + }), function(e) { + return [e.initializer ? function() { + return k2(e.initializer) + } : function() { + return Ur + }, e.symbol.escapedName] + }), OS.map(OS.filter(pe(n), function(e) { + var t; + return !!(16777216 & e.flags) && !(null == (t = null == r ? void 0 : r.symbol) || !t.members) && !r.symbol.members.has(e.escapedName) && qm(n, e.escapedName) + }), function(e) { + return [function() { + return re + }, e.escapedName] + })), xe, n)) : t + } + + function P0(e, t, r) { + if (e && X1(e, 465829888)) { + t = O0(t); + if (t && 1 & r && OS.some(t.inferences, D2)) return w0(e, t.nonFixingMapper); + if (null != t && t.returnMapper) return 1048576 & (r = w0(e, t.returnMapper)).flags && td(r.types, zr) && td(r.types, Kr) ? Sy(r, function(e) { + return e !== zr && e !== Kr + }) : r + } + return e + } + + function w0(e, t) { + return 465829888 & e.flags ? be(e, t) : 1048576 & e.flags ? he(OS.map(e.types, function(e) { + return w0(e, t) + }), 0) : 2097152 & e.flags ? ve(OS.map(e.types, function(e) { + return w0(e, t) + })) : e + } + + function I0(e, t) { + if (!(33554432 & e.flags)) { + if (e.contextualType) return e.contextualType; + var r = e.parent; + switch (r.kind) { + case 257: + case 166: + case 169: + case 168: + case 205: + var n = e, + i = t, + a = n.parent; + if (OS.hasInitializer(a) && n === a.initializer) { + n = p0(a, i); + if (n) return n; + if (!(8 & i) && OS.isBindingPattern(a.name) && 0 < a.name.elements.length) return Us(a.name, !0, !1) + } + return; + case 216: + case 250: + n = e, i = t; + if (n = OS.getContainingFunction(n)) { + i = m0(n, i); + if (i) { + n = OS.getFunctionFlags(n); + if (1 & n) { + var o = 0 != (2 & n), + s = (1048576 & i.flags && (i = Sy(i, function(e) { + return !!px(1, e, o) + })), px(1, i, 0 != (2 & n))); + if (!s) return; + i = s + } + return 2 & n ? (s = Cy(i, ob)) && he([s, F1(s)]) : i + } + } + return; + case 226: + a = r, s = t; + if (u = OS.getContainingFunction(a)) { + var c, l = OS.getFunctionFlags(u), + u = m0(u, s); + if (u) return c = 0 != (2 & l), !a.asteriskToken && 1048576 & u.flags && (u = Sy(u, function(e) { + return !!px(1, e, c) + })), a.asteriskToken ? u : px(0, u, c) + } + return; + case 220: + l = r, u = t; + return (l = I0(l, u)) ? (u = ob(l)) && he([u, F1(u)]) : void 0; + case 210: + case 211: + return y0(r, e); + case 213: + case 231: + return OS.isConstTypeReference(r.type) ? m(r) : K(r.type); + case 223: + return v0(e, t); + case 299: + case 300: + return T0(r, t); + case 301: + return I0(r.parent, t); + case 206: + var _ = r; + return C0(F0(_, t), OS.indexOfNode(_.elements, e)); + case 224: + return _ = t, p = (d = e).parent, d === p.whenTrue || d === p.whenFalse ? I0(p, _) : void 0; + case 236: + OS.Debug.assert(225 === r.parent.kind); + var d = r.parent, + p = e; + return 212 === d.parent.kind ? y0(d.parent, p) : void 0; + case 214: + var f = OS.isInJSFile(r) ? OS.getJSDocTypeTag(r) : void 0; + return f ? OS.isJSDocTypeTag(f) && OS.isConstTypeReference(f.typeExpression.type) ? m(r) : K(f.typeExpression.type) : I0(r, t); + case 232: + return I0(r, t); + case 235: + return K(r.type); + case 274: + return Hs(r); + case 291: + return E0(r, t); + case 288: + case 290: + return k0(r, t); + case 283: + case 282: + var f = r, + g = t; + return OS.isJsxOpeningElement(f) && f.parent.contextualType && 4 !== g ? f.parent.contextualType : h0(f, 0) + } + } + + function m(e) { + return I0(e, t) + } + } + + function O0(e) { + e = OS.findAncestor(e, function(e) { + return !!e.inferenceContext + }); + return e && e.inferenceContext + } + + function M0(e, t) { + return (0 !== Tv(t) ? function(e, t) { + e = k1(e, te), e = L0(t, oh(t), e), t = nh(MS.IntrinsicAttributes, t); + _e(t) || (e = cl(t, e)); + return e + } : function(e, t) { + var r = oh(t), + n = function(e) { + return sh(MS.ElementAttributesPropertyNameContainer, e) + }(r), + i = void 0 === n ? k1(e, te) : "" === n ? me(e) : function(e, t) { + if (e.compositeSignatures) { + for (var r = [], n = 0, i = e.compositeSignatures; n < i.length; n++) { + var a = me(i[n]); + if (j(a)) return a; + a = ys(a, t); + if (!a) return; + r.push(a) + } + return ve(r) + } + e = me(e); + return j(e) ? e : ys(e, t) + }(e, n); + if (!i) return n && OS.length(t.attributes.properties) && se(t, OS.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property, OS.unescapeLeadingUnderscores(n)), te; { + var a; + return j(i = L0(t, r, i)) ? i : (n = i, _e(r = nh(MS.IntrinsicClassAttributes, t)) || (i = pc(r.symbol), e = me(e), a = void 0, a = i ? (e = Tu([e], i, Su(i), OS.isInJSFile(t)), be(r, wp(i, e))) : r, n = cl(a, n)), i = nh(MS.IntrinsicAttributes, t), n = _e(i) ? n : cl(i, n)) + } + })(e, t) + } + + function L0(e, t, r) { + var n, t = (t = t) && ma(t.exports, MS.LibraryManagedAttributes, 788968); + if (t) { + var i = Pc(t), + a = Z0((a = e).tagName) ? zu(qv(a, o = uh(a))) : 128 & (n = u2(a.tagName)).flags ? (o = lh(n, a)) ? zu(qv(a, o)) : R : n; + if (524288 & t.flags) { + var o = ce(t).typeParameters; + if (2 <= OS.length(o)) return o_(t, Tu([a, r], o, 2, OS.isInJSFile(e))) + } + if (2 <= OS.length(i.typeParameters)) return t_(i, Tu([a, r], i.typeParameters, 2, OS.isInJSFile(e))) + } + return r + } + + function R0(e) { + return OS.getStrictOptionValue(Z, "noImplicitAny") ? OS.reduceLeft(e, function(e, t) { + { + var r, n, i, a, o, s, c, a; + return e !== t && e ? ol(e.typeParameters, t.typeParameters) ? (i = (r = e).typeParameters || t.typeParameters, r.typeParameters && t.typeParameters && (n = wp(t.typeParameters, r.typeParameters)), a = r.declaration, o = function(e, t, r) { + for (var n = x1(e), i = x1(t), a = i <= n ? e : t, o = a === e ? t : e, s = a === e ? n : i, c = S1(e) || S1(t), l = c && !S1(a), u = new Array(s + (l ? 1 : 0)), _ = 0; _ < s; _++) { + var d = v1(a, _), + p = (a === t && (d = be(d, r)), v1(o, _) || te), + d = (o === t && (p = be(p, r)), he([d, p])), + p = c && !l && _ === s - 1, + f = _ >= D1(a) && _ >= D1(o), + g = n <= _ ? void 0 : g1(e, _), + m = i <= _ ? void 0 : g1(t, _), + f = B(1 | (f && !p ? 16777216 : 0), (g === m ? g : g ? m ? void 0 : g : m) || "arg".concat(_)); + f.type = p ? z_(d) : d, u[_] = f + } { + var y; + l && ((y = B(1, "args")).type = z_(h1(o, s)), o === t && (y.type = be(y.type, r)), u[s] = y) + } + return u + }(r, t, n), s = function(e, t, r) { + return e && t ? (r = he([de(e), be(de(t), r)]), qg(e, r)) : e || t + }(r.thisParameter, t.thisParameter, n), c = Math.max(r.minArgumentCount, t.minArgumentCount), (a = $c(a, i, s, o, void 0, void 0, c, 39 & (r.flags | t.flags))).compositeKind = 2097152, a.compositeSignatures = OS.concatenate(2097152 === r.compositeKind && r.compositeSignatures || [r], [t]), n && (a.mapper = 2097152 === r.compositeKind && r.mapper && r.compositeSignatures ? jp(r.mapper, n) : n), a) : void 0 : e + } + }) : void 0 + } + + function B0(e, i) { + e = ge(e, 0), e = OS.filter(e, function(e) { + for (var t = i, r = 0; r < t.parameters.length; r++) { + var n = t.parameters[r]; + if (n.initializer || n.questionToken || n.dotDotDotToken || hu(n)) break + } + return t.parameters.length && OS.parameterIsThisKeyword(t.parameters[0]) && r--, !(!S1(e) && x1(e) < r) + }); + return 1 === e.length ? e[0] : R0(e) + } + + function j0(e) { + return OS.isFunctionExpressionOrArrowFunction(e) || OS.isObjectLiteralMethod(e) ? J0(e) : void 0 + } + + function J0(e) { + OS.Debug.assert(171 !== e.kind || OS.isObjectLiteralMethod(e)); + var t = Eu(e); + if (t) return t; + t = F0(e, 1); + if (t) { + if (!(1048576 & t.flags)) return B0(t, e); + for (var r, n = 0, i = t.types; n < i.length; n++) { + var a = B0(i[n], e); + if (a) + if (r) { + if (!ag(r[0], a, !1, !0, !0, cf)) return; + r.push(a) + } else r = [a] + } + return r ? 1 === r.length ? r[0] : tl(r[0], r) : void 0 + } + } + + function z0(e) { + return 205 === e.kind && !!e.initializer || 223 === e.kind && 63 === e.operatorToken.kind + } + + function U0(e, t, r) { + for (var n = e.elements, i = n.length, a = [], o = [], s = F0(e, void 0), c = OS.isAssignmentTarget(e), l = g2(e), u = !1, _ = 0; _ < i; _++) { + var d, p, f = n[_]; + 227 === f.kind ? (U < 2 && iS(f, Z.downlevelIteration ? 1536 : 1024), dg(p = V(f.expression, t, r)) ? (a.push(p), o.push(8)) : (c ? (d = du(p, ie) || Hb(65, p, re, void 0, !1) || te, a.push(d)) : a.push(Wb(33, p, re, f.expression)), o.push(4))) : Ee && 229 === f.kind ? (u = !0, a.push(Lr), o.push(2)) : (d = m2(f, t, C0(s, a.length), r), a.push(As(d, !0, u)), o.push(u ? 2 : 1), s && xy(s, mg) && t && 2 & t && !(4 & t) && rf(f) && (p = O0(e), OS.Debug.assert(p), am(p, f, d))) + } + return c ? H_(a, o) : r || l || s && xy(s, mg) ? K0(H_(a, o, l)) : K0(z_(a.length ? he(OS.sameMap(a, function(e, t) { + return 8 & o[t] ? Hd(e, ie) || ee : e + }), 2) : $ ? Gr : Or, l)) + } + + function K0(e) { + var t; + return 4 & OS.getObjectFlags(e) ? ((t = e.literalType) || ((t = e.literalType = r_(e)).objectFlags |= 147456), t) : e + } + + function V0(e) { + switch (e.kind) { + case 164: + return Y1(q0(e), 296); + case 79: + return OS.isNumericLiteralName(e.escapedText); + case 8: + case 10: + return OS.isNumericLiteralName(e.text); + default: + return !1 + } + } + + function q0(e) { + var t, r = H(e.expression); + if (!r.resolvedType) { + if ((OS.isTypeLiteralNode(e.parent.parent) || OS.isClassLike(e.parent.parent) || OS.isInterfaceDeclaration(e.parent.parent)) && OS.isBinaryExpression(e.expression) && 101 === e.expression.operatorToken.kind && 174 !== e.parent.kind && 175 !== e.parent.kind) return r.resolvedType = R; + r.resolvedType = V(e.expression), OS.isPropertyDeclaration(e.parent) && !OS.hasStaticModifier(e.parent) && OS.isClassExpression(e.parent.parent) && (t = t0(OS.getEnclosingBlockScopeContainer(e.parent.parent))) && (H(t).flags |= 65536, H(e).flags |= 524288, H(e.parent.parent).flags |= 524288), (98304 & r.resolvedType.flags || !Y1(r.resolvedType, 402665900) && !xe(r.resolvedType, Zr)) && se(e, OS.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any) + } + return r.resolvedType + } + + function W0(e) { + var t = null == (t = e.declarations) ? void 0 : t[0]; + return OS.isKnownSymbol(e) || t && OS.isNamedDeclaration(t) && OS.isComputedPropertyName(t.name) && Y1(q0(t.name), 4096) + } + + function H0(e, t, r, n) { + for (var i, a = [], o = t; o < r.length; o++) { + var s = r[o]; + (n === ne && !W0(s) || n === ie && (i = void 0, i = null == (i = s.declarations) ? void 0 : i[0], OS.isNumericLiteralName(s.escapedName) || i && OS.isNamedDeclaration(i) && V0(i.name)) || n === qr && W0(s)) && a.push(de(r[o])) + } + return Vu(n, a.length ? he(a, 2) : re, g2(e)) + } + + function G0(e) { + OS.Debug.assert(0 != (2097152 & e.flags), "Should only get Alias here."); + var t = ce(e); + if (!t.immediateTarget) { + e = ka(e); + if (!e) return OS.Debug.fail(); + t.immediateTarget = Va(e, !0) + } + return t.immediateTarget + } + + function Q0(t, e) { + for (var r = OS.isAssignmentTarget(t), n = (! function(e, t) { + for (var r = new OS.Map, n = 0, i = e.properties; n < i.length; n++) { + var a = i[n]; + if (301 === a.kind) { + if (t) { + var o = OS.skipParentheses(a.expression); + if (OS.isArrayLiteralExpression(o) || OS.isObjectLiteralExpression(o)) return J(a.expression, OS.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern) + } + } else { + var s = a.name; + if (164 === s.kind && gS(s), 300 === a.kind && !t && a.objectAssignmentInitializer && J(a.equalsToken, OS.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern), 80 === s.kind && J(s, OS.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies), OS.canHaveModifiers(a) && a.modifiers) + for (var c = 0, l = a.modifiers; c < l.length; c++) { + var u = l[c]; + !OS.isModifier(u) || 132 === u.kind && 171 === a.kind || J(u, OS.Diagnostics._0_modifier_cannot_be_used_here, OS.getTextOfNode(u)) + } else if (OS.canHaveIllegalModifiers(a) && a.modifiers) + for (var _ = 0, d = a.modifiers; _ < d.length; _++) J(u = d[_], OS.Diagnostics._0_modifier_cannot_be_used_here, OS.getTextOfNode(u)); + var p = void 0; + switch (a.kind) { + case 300: + case 299: + hS(a.exclamationToken, OS.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context), yS(a.questionToken, OS.Diagnostics.An_object_member_cannot_be_declared_optional), 8 === s.kind && PS(s), p = 4; + break; + case 171: + p = 8; + break; + case 174: + p = 1; + break; + case 175: + p = 2; + break; + default: + throw OS.Debug.assertNever(a, "Unexpected syntax kind:" + a.kind) + } + if (!t) { + o = OS.getPropertyNameForPropertyNameNode(s); + if (void 0 !== o) { + var f = r.get(o); + if (f) + if (8 & p && 8 & f) J(s, OS.Diagnostics.Duplicate_identifier_0, OS.getTextOfNode(s)); + else if (4 & p && 4 & f) J(s, OS.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name, OS.getTextOfNode(s)); + else { + if (!(3 & p && 3 & f)) return J(s, OS.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name); + if (3 === f || p === f) return J(s, OS.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name); + r.set(o, p | f) + } else r.set(o, p) + } + } + } + } + }(t, r), $ ? OS.createSymbolTable() : void 0), i = OS.createSymbolTable(), a = [], o = un, s = F0(t, void 0), c = s && s.pattern && (203 === s.pattern.kind || 207 === s.pattern.kind), l = g2(t), u = l ? 8 : 0, _ = OS.isInJSFile(t) && !OS.isInJsonFile(t), d = OS.getJSDocEnumTag(t), p = !s && _ && !d, f = Ce, g = !1, m = !1, y = !1, h = !1, v = 0, b = t.properties; v < b.length; v++) { + var x = b[v]; + x.name && OS.isComputedPropertyName(x.name) && q0(x.name) + } + for (var D = 0, S = 0, T = t.properties; S < T.length; S++) { + var C = T[S], + E = G(C), + k = C.name && 164 === C.name.kind ? q0(C.name) : void 0; + if (299 === C.kind || 300 === C.kind || OS.isObjectLiteralMethod(C)) { + var N, A = 299 === C.kind ? y2(C, e) : 300 === C.kind ? m2(!r && C.objectAssignmentInitializer ? C.objectAssignmentInitializer : C.name, e) : h2(C, e), + F = (_ && ((F = ks(C)) ? (gf(A, F, C), A = F) : d && d.typeExpression && gf(A, K(d.typeExpression), C)), f |= 458752 & OS.getObjectFlags(A), k && zc(k) ? k : void 0), + P = F ? B(4 | E.flags, Wc(F), 4096 | u) : B(4 | E.flags, E.escapedName, u); + F && (P.nameType = F), r ? (299 === C.kind && z0(C.initializer) || 300 === C.kind && C.objectAssignmentInitializer) && (P.flags |= 16777216) : !c || 512 & OS.getObjectFlags(s) || ((N = fe(s, E.escapedName)) ? P.flags |= 16777216 & N.flags : Z.suppressExcessPropertyErrors || _u(s, ne) || se(C.name, OS.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1, le(E), ue(s))), P.declarations = E.declarations, P.parent = E.parent, E.valueDeclaration && (P.valueDeclaration = E.valueDeclaration), P.type = A, P.target = E, E = P, null != n && n.set(P.escapedName, P), !(s && e && 2 & e) || 4 & e || 299 !== C.kind && 171 !== C.kind || !rf(C) || (N = O0(t), OS.Debug.assert(N), am(N, 299 === C.kind ? C.initializer : C, A)) + } else { + if (301 === C.kind) { + if (U < 2 && iS(C, 2), 0 < a.length && (o = pp(o, M(), t.symbol, f, l), a = [], i = OS.createSymbolTable(), h = y = m = !1), X0(A = eu(V(C.expression)))) { + var w = dp(A, l); + if (n && th(w, n, C), D = a.length, _e(o)) continue; + o = pp(o, w, t.symbol, f, l) + } else se(C, OS.Diagnostics.Spread_types_may_only_be_created_from_object_types), o = R; + continue + } + OS.Debug.assert(174 === C.kind || 175 === C.kind), nD(C) + }!k || 8576 & k.flags ? i.set(E.escapedName, E) : xe(k, Zr) && (xe(k, ie) ? y = !0 : xe(k, qr) ? h = !0 : m = !0, r) && (g = !0), a.push(E) + } + if (c) { + var L = OS.findAncestor(s.pattern.parent, function(e) { + return 257 === e.kind || 223 === e.kind || 166 === e.kind + }); + if (301 !== OS.findAncestor(t, function(e) { + return e === L || 301 === e.kind + }).kind) + for (var I = 0, O = pe(s); I < O.length; I++) { + P = O[I]; + i.get(P.escapedName) || fe(o, P.escapedName) || (16777216 & P.flags || se(P.valueDeclaration || P.bindingElement, OS.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value), i.set(P.escapedName, P), a.push(P)) + } + } + return _e(o) ? R : o !== un ? (0 < a.length && (o = pp(o, M(), t.symbol, f, l), a = [], i = OS.createSymbolTable(), y = m = !1), Cy(o, function(e) { + return e === un ? M() : e + })) : M(); + + function M() { + var e = [], + e = (m && e.push(H0(t, D, a, ne)), y && e.push(H0(t, D, a, ie)), h && e.push(H0(t, D, a, qr)), Bo(t.symbol, i, OS.emptyArray, OS.emptyArray, e)); + return e.objectFlags |= 131200 | f, p && (e.objectFlags |= 4096), g && (e.objectFlags |= 512), r && (e.pattern = t), e + } + } + + function X0(e) { + e = wg(Cy(e, zl)); + return !!(126615553 & e.flags || 3145728 & e.flags && OS.every(e.types, X0)) + } + + function Y0(e) { + return OS.stringContains(e, "-") + } + + function Z0(e) { + return 79 === e.kind && OS.isIntrinsicJsxName(e.escapedText) + } + + function $0(e, t) { + return e.initializer ? m2(e.initializer, t) : Ur + } + + function eh(e, t) { + for (var r = [], n = 0, i = e.children; n < i.length; n++) { + var a = i[n]; + 11 === a.kind ? a.containsOnlyTriviaWhiteSpaces || r.push(ne) : 291 === a.kind && !a.expression || r.push(m2(a, t)) + } + return r + } + + function th(e, t, r) { + for (var n = 0, i = pe(e); n < i.length; n++) { + var a = i[n]; + 16777216 & a.flags || (a = t.get(a.escapedName)) && (a = se(a.valueDeclaration, OS.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, OS.unescapeLeadingUnderscores(a.escapedName)), OS.addRelatedInfo(a, OS.createDiagnosticForNode(r, OS.Diagnostics.This_spread_always_overwrites_this_property))) + } + } + + function rh(e, t) { + for (var r, e = e.parent, n = t, i = e.attributes, a = I0(i, 0), o = $ ? OS.createSymbolTable() : void 0, s = OS.createSymbolTable(), c = _n, l = !1, u = !1, _ = 2048, d = ch(oh(e)), p = 0, f = i.properties; p < f.length; p++) { + var g, m, y = f[p], + h = y.symbol; + OS.isJsxAttribute(y) ? (m = $0(y, n), _ |= 458752 & OS.getObjectFlags(m), (g = B(4 | h.flags, h.escapedName)).declarations = h.declarations, g.parent = h.parent, h.valueDeclaration && (g.valueDeclaration = h.valueDeclaration), g.type = m, g.target = h, s.set(g.escapedName, g), null != o && o.set(g.escapedName, g), y.name.escapedText === d && (u = !0), a && (g = fe(a, h.escapedName)) && g.declarations && aa(g) && oa(y.name, g.declarations, y.name.escapedText)) : (OS.Debug.assert(290 === y.kind), 0 < s.size && (c = pp(c, b(), i.symbol, _, !1), s = OS.createSymbolTable()), j(m = eu(u2(y.expression, n))) && (l = !0), X0(m) ? (c = pp(c, m, i.symbol, _, !1), o && th(m, o, y)) : (se(y.expression, OS.Diagnostics.Spread_types_may_only_be_created_from_object_types), r = r ? ve([r, m]) : m)) + } + l || 0 < s.size && (c = pp(c, b(), i.symbol, _, !1)); + var v, t = 281 === e.parent.kind ? e.parent : void 0; + return t && t.openingElement === e && 0 < t.children.length && (t = eh(t, n), !l) && d && "" !== d && (u && se(i, OS.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten, OS.unescapeLeadingUnderscores(d)), e = (e = F0(e.attributes, void 0)) && D0(e, d), (v = B(4, d)).type = 1 === t.length ? t[0] : e && xy(e, mg) ? H_(t) : z_(he(t)), v.valueDeclaration = OS.factory.createPropertySignature(void 0, OS.unescapeLeadingUnderscores(d), void 0, void 0), OS.setParent(v.valueDeclaration, i), v.valueDeclaration.symbol = v, (e = OS.createSymbolTable()).set(d, v), c = pp(c, Bo(i.symbol, e, OS.emptyArray, OS.emptyArray, OS.emptyArray), i.symbol, _, !1)), l ? ee : r && c !== _n ? ve([r, c]) : r || (c === _n ? b() : c); + + function b() { + _ |= Ce; + var e = Bo(i.symbol, s, OS.emptyArray, OS.emptyArray, OS.emptyArray); + return e.objectFlags |= 131200 | _, e + } + } + + function nh(e, t) { + t = oh(t), t = t && mo(t), t = t && ma(t, e, 788968); + return t ? Pc(t) : R + } + + function ih(e) { + var t, r, n = H(e); + return n.resolvedSymbol || (_e(t = nh(MS.IntrinsicElements, e)) ? (Te && se(e, OS.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists, OS.unescapeLeadingUnderscores(MS.IntrinsicElements)), n.resolvedSymbol = L) : OS.isIdentifier(e.tagName) ? (r = fe(t, e.tagName.escapedText)) ? (n.jsxFlags |= 1, n.resolvedSymbol = r) : du(t, ne) ? (n.jsxFlags |= 2, n.resolvedSymbol = t.symbol) : (se(e, OS.Diagnostics.Property_0_does_not_exist_on_type_1, OS.idText(e.tagName), "JSX." + MS.IntrinsicElements), n.resolvedSymbol = L) : OS.Debug.fail()) + } + + function ah(e) { + var t = e && OS.getSourceFileOfNode(e), + r = t && H(t); + if (!r || !1 !== r.jsxImplicitImportContainer) return r && r.jsxImplicitImportContainer ? r.jsxImplicitImportContainer : (t = OS.getJSXRuntimeImport(OS.getJSXImplicitImportBase(Z, t), Z)) ? (e = (t = oo(e, t, OS.getEmitModuleResolutionKind(Z) === OS.ModuleResolutionKind.Classic ? OS.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option : OS.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations, e)) && t !== L ? bo(Wa(t)) : void 0, r && (r.jsxImplicitImportContainer = e || !1), e) : void 0 + } + + function oh(e) { + var t = e && H(e); + if (t && t.jsxNamespace) return t.jsxNamespace; + if (!t || !1 !== t.jsxNamespace) { + var r = ah(e); + if (r = r && r !== L ? r : va(e, e = Xi(e), 1920, void 0, e, !1)) { + e = Wa(ma(mo(Wa(r)), MS.JSX, 1920)); + if (e && e !== L) return t && (t.jsxNamespace = e), e + } + t && (t.jsxNamespace = !1) + } + r = Wa(C_(MS.JSX, 1920, void 0)); + return r !== L ? r : void 0 + } + + function sh(e, t) { + var t = t && ma(t.exports, e, 788968), + r = t && Pc(t), + r = r && pe(r); + if (r) { + if (0 === r.length) return ""; + if (1 === r.length) return r[0].escapedName; + 1 < r.length && t.declarations && se(t.declarations[0], OS.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property, OS.unescapeLeadingUnderscores(e)) + } + } + + function ch(e) { + return sh(MS.ElementChildrenAttributeNameContainer, e) + } + + function lh(e, t) { + t = nh(MS.IntrinsicElements, t); + return _e(t) ? ee : (e = e.value, (e = fe(t, OS.escapeLeadingUnderscores(e))) ? de(e) : du(t, ne) || void 0) + } + + function uh(e) { + OS.Debug.assert(Z0(e.tagName)); + var t, r = H(e); + return r.resolvedJsxElementAttributesType || (t = ih(e), 1 & r.jsxFlags ? r.resolvedJsxElementAttributesType = de(t) || R : 2 & r.jsxFlags ? r.resolvedJsxElementAttributesType = du(nh(MS.IntrinsicElements, e), ne) || R : r.resolvedJsxElementAttributesType = R) + } + + function _h(e) { + e = nh(MS.ElementClass, e); + if (!_e(e)) return e + } + + function dh(e) { + return nh(MS.Element, e) + } + + function ph(e) { + e = dh(e); + if (e) return he([e, Rr]) + } + + function fh(e) { + var t, r, n, i, a, o, s, c = OS.isJsxOpeningLikeElement(e); + + function l() { + var e = OS.getTextOfNode(a.tagName); + return OS.chainDiagnosticMessages(void 0, OS.Diagnostics._0_cannot_be_used_as_a_JSX_component, e) + } + c && ! function(e) { + (function(e) { + if (OS.isPropertyAccessExpression(e)) { + var t = e; + do { + var r = n(t.name); + if (r) return + } while (t = t.expression, OS.isPropertyAccessExpression(t)); + e = n(t); + if (e); + } + + function n(e) { + if (OS.isIdentifier(e) && -1 !== OS.idText(e).indexOf(":")) return J(e, OS.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names) + } + })(e.tagName), dS(e, e.typeArguments); + for (var t = new OS.Map, r = 0, n = e.attributes.properties; r < n.length; r++) { + var i = n[r]; + if (290 !== i.kind) { + var a = i.name, + i = i.initializer; + if (t.get(a.escapedText)) return J(a, OS.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name); + if (t.set(a.escapedText, !0), i && 291 === i.kind && !i.expression) return J(i, OS.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression) + } + } + }(e), n = e, 0 === (Z.jsx || 0) && se(n, OS.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided), void 0 === dh(n) && Te && se(n, OS.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist), ah(e) || (n = oe && 2 === Z.jsx ? OS.Diagnostics.Cannot_find_name_0 : void 0, i = Xi(e), r = c ? e.tagName : e, t = void 0, (t = OS.isJsxOpeningFragment(e) && "null" === i ? t : va(r, i, 111551, n, i, !0)) && (t.isReferenced = 67108863, 2097152 & t.flags) && !Ya(t) && $a(t), OS.isJsxOpeningFragment(e) && (i = Yi(OS.getSourceFileOfNode(e))) && va(r, i, 111551, n, i, !0)), c && (Zv(r = Gv(t = e), e), n = Tv(t), i = me(r), a = t, 1 === n ? (o = ph(a)) && Lf(i, o, Di, a.tagName, OS.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element, l) : 0 === n ? (s = _h(a)) && Lf(i, s, Di, a.tagName, OS.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element, l) : (o = ph(a), s = _h(a), o && s && Lf(i, he([o, s]), Di, a.tagName, OS.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element, l))) + } + + function gh(e, t, r) { + if (524288 & e.flags) { + if (wl(e, t) || gu(e, t) || Kc(t) && _u(e, ne) || r && Y0(t)) return 1 + } else if (3145728 & e.flags && mh(e)) + for (var n = 0, i = e.types; n < i.length; n++) + if (gh(i[n], t, r)) return 1 + } + + function mh(e) { + return !!(524288 & e.flags && !(512 & OS.getObjectFlags(e)) || 67108864 & e.flags || 1048576 & e.flags && OS.some(e.types, mh) || 2097152 & e.flags && OS.every(e.types, mh)) + } + + function yh(e, t) { + var r = e; + if (r.expression && OS.isCommaSequence(r.expression)) J(r.expression, OS.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array); + return e.expression ? (r = V(e.expression, t), e.dotDotDotToken && r !== ee && !sg(r) && se(e, OS.Diagnostics.JSX_spread_child_must_be_an_array_type), r) : R + } + + function hh(e) { + return e.valueDeclaration ? OS.getCombinedNodeFlags(e.valueDeclaration) : 0 + } + + function vh(e) { + return 8192 & e.flags || 4 & OS.getCheckFlags(e) || (OS.isInJSFile(e.valueDeclaration) ? (e = e.valueDeclaration.parent) && OS.isBinaryExpression(e) && 3 === OS.getAssignmentDeclarationKind(e) : void 0) + } + + function bh(e, t, r, n, i, a) { + xh(e, t, r, n, i, (a = void 0 === a ? !0 : a) ? 163 === e.kind ? e.right : 202 === e.kind ? e : 205 === e.kind && e.propertyName ? e.propertyName : e.name : void 0) + } + + function xh(e, t, r, n, i, a) { + var o, s = OS.getDeclarationModifierFlagsFromSymbol(i, r); + if (t) { + if (U < 2 && Dh(i)) return a && se(a, OS.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword), !1; + if (256 & s) return a && se(a, OS.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression, le(i), ue($f(i))), !1 + } + if (256 & s && Dh(i) && (OS.isThisProperty(e) || OS.isThisInitializedObjectBindingExpression(e) || OS.isObjectBindingPattern(e.parent) && OS.isThisInitializedDeclaration(e.parent.parent)) && ((o = OS.getClassLikeDeclarationOfSymbol(xo(i))) && OS.findAncestor(e, function(e) { + return !!(OS.isConstructorDeclaration(e) && OS.nodeIsPresent(e.body) || OS.isPropertyDeclaration(e)) || !(!OS.isClassLike(e) && !OS.isFunctionLikeDeclaration(e)) && "quit" + }))) return a && se(a, OS.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor, le(i), OS.getTextOfIdentifierOrLiteral(o.name)), !1; + return !(24 & s && (8 & s ? (o = OS.getClassLikeDeclarationOfSymbol(xo(i)), !pD(e, o) && (a && se(a, OS.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1, le(i), ue($f(i))), 1)) : !t && (!(o = dD(e, function(e) { + return tg(Pc(G(e)), i, r) + })) && (o = (o = function(e) { + e = function(e) { + e = OS.getThisContainer(e, !1); + return e && OS.isFunctionLike(e) ? OS.getThisParameter(e) : void 0 + }(e), e = (null == e ? void 0 : e.type) && K(e.type); + e && 262144 & e.flags && (e = Ml(e)); + if (e && 7 & OS.getObjectFlags(e)) return cc(e); + return + }(e)) && tg(o, i, r), 32 & s || !o) ? (a && se(a, OS.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses, le(i), ue($f(i) || n)), 1) : !(32 & s) && (!(n = 262144 & n.flags ? (n.isThisType ? Ml : Jl)(n) : n) || !lc(n, o)) && (a && se(a, OS.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2, le(i), ue(o), ue(n)), 1)))) + } + + function Dh(e) { + return Zf(e, function(e) { + return !(8192 & e.flags) + }) + } + + function Sh(e) { + return Ah(V(e), e) + } + + function Th(e) { + return !!(50331648 & ry(e)) + } + + function Ch(e) { + return Th(e) ? Lg(e) : e + } + + function Eh(e, t) { + var r = OS.isEntityNameExpression(e) ? OS.entityNameToString(e) : void 0; + 104 === e.kind ? se(e, OS.Diagnostics.The_value_0_cannot_be_used_here, "null") : void 0 !== r && r.length < 100 ? OS.isIdentifier(e) && "undefined" === r ? se(e, OS.Diagnostics.The_value_0_cannot_be_used_here, "undefined") : se(e, 16777216 & t ? 33554432 & t ? OS.Diagnostics._0_is_possibly_null_or_undefined : OS.Diagnostics._0_is_possibly_undefined : OS.Diagnostics._0_is_possibly_null, r) : se(e, 16777216 & t ? 33554432 & t ? OS.Diagnostics.Object_is_possibly_null_or_undefined : OS.Diagnostics.Object_is_possibly_undefined : OS.Diagnostics.Object_is_possibly_null) + } + + function kh(e, t) { + se(e, 16777216 & t ? 33554432 & t ? OS.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined : OS.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined : OS.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null) + } + + function Nh(e, t, r) { + if ($ && 2 & e.flags) { + if (OS.isEntityNameExpression(t)) { + var n = OS.entityNameToString(t); + if (n.length < 100) return se(t, OS.Diagnostics._0_is_of_type_unknown, n), R + } + return se(t, OS.Diagnostics.Object_is_of_type_unknown), R + } + n = ry(e); + return 50331648 & n ? (r(t, n), 229376 & (r = Lg(e)).flags ? R : r) : e + } + + function Ah(e, t) { + return Nh(e, t, Eh) + } + + function Fh(e, t) { + e = Ah(e, t); + if (16384 & e.flags) { + if (OS.isEntityNameExpression(t)) { + e = OS.entityNameToString(t); + if (OS.isIdentifier(t) && "undefined" === e) return void se(t, OS.Diagnostics.The_value_0_cannot_be_used_here, e); + if (e.length < 100) return void se(t, OS.Diagnostics._0_is_possibly_undefined, e) + } + se(t, OS.Diagnostics.Object_is_possibly_undefined) + } + } + + function Ph(e, t) { + return 32 & e.flags ? (n = t, i = V((r = e).expression), a = Jg(i, r.expression), jg(jh(r, r.expression, Ah(a, r.expression), r.name, n), r, a !== i)) : jh(e, e.expression, Sh(e.expression), e.name, t); + var r, n, i, a + } + + function wh(e, t) { + var r = OS.isPartOfTypeQuery(e) && OS.isThisIdentifier(e.left) ? Ah(o0(e.left), e.left) : Sh(e.left); + return jh(e, e.left, r, e.right, t) + } + + function Ih(e) { + for (; 214 === e.parent.kind;) e = e.parent; + return OS.isCallOrNewExpression(e.parent) && e.parent.expression === e + } + + function Oh(e, t) { + for (var r = OS.getContainingClass(t); r; r = OS.getContainingClass(r)) { + var n = r.symbol, + i = OS.getSymbolNameForPrivateIdentifier(n, e), + n = n.members && n.members.get(i) || n.exports && n.exports.get(i); + if (n) return n + } + } + + function Mh(e) { + ! function(e) { + if (!OS.getContainingClass(e)) return J(e, OS.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); + if (!OS.isForInStatement(e.parent)) { + if (!OS.isExpressionNode(e)) return J(e, OS.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression); + var t = OS.isBinaryExpression(e.parent) && 101 === e.parent.operatorToken.kind; + if (!Lh(e) && !t) J(e, OS.Diagnostics.Cannot_find_name_0, OS.idText(e)) + } + }(e); + e = Lh(e); + return e && Zh(e, void 0, !1), ee + } + + function Lh(e) { + var t; + if (OS.isExpressionNode(e)) return void 0 === (t = H(e)).resolvedSymbol && (t.resolvedSymbol = Oh(e.escapedText, e)), t.resolvedSymbol + } + + function Rh(e, t) { + return fe(e, t.escapedName) + } + + function Bh(e, t) { + return (Ps(t) || OS.isThisProperty(e) && ws(t)) && OS.getThisContainer(e, !0) === Is(t) + } + + function jh(e, t, r, n, i) { + var a, o, s, c = H(t).resolvedSymbol, + l = OS.getAssignmentTargetKind(e), + u = Ql(0 !== l || Ih(e) ? Xg(r) : r), + _ = j(u) || u === Hr; + if (OS.isPrivateIdentifier(n)) { + U < 99 && (0 !== l && iS(e, 1048576), 1 !== l) && iS(e, 524288); + var d = Oh(n.escapedText, n); + if (l && d && d.valueDeclaration && OS.isMethodDeclaration(d.valueDeclaration) && J(n, OS.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable, OS.idText(n)), _) { + if (d) return _e(u) ? R : u; + if (!OS.getContainingClass(n)) return J(n, OS.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies), ee + } + if (!(a = d ? Rh(r, d) : void 0) && function(e, r, t) { + (i = pe(e)) && OS.forEach(i, function(e) { + var t = e.valueDeclaration; + if (t && OS.isNamedDeclaration(t) && OS.isPrivateIdentifier(t.name) && t.name.escapedText === r.escapedText) return n = e, !0 + }); + var n, i = Da(r); + if (n) { + var a = OS.Debug.checkDefined(n.valueDeclaration), + o = OS.Debug.checkDefined(OS.getContainingClass(a)); + if (null != t && t.valueDeclaration) { + var t = t.valueDeclaration, + s = OS.getContainingClass(t); + if (OS.Debug.assert(!!s), OS.findAncestor(s, function(e) { + return o === e + })) return s = se(r, OS.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling, i, ue(e)), OS.addRelatedInfo(s, OS.createDiagnosticForNode(t, OS.Diagnostics.The_shadowing_declaration_of_0_is_defined_here, i), OS.createDiagnosticForNode(a, OS.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here, i)), 1 + } + return se(r, OS.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier, i, Da(o.name || RS)), 1 + } + }(r, n, d)) return R; + a && 65536 & a.flags && !(32768 & a.flags) && 1 !== l && se(e, OS.Diagnostics.Private_accessor_was_defined_without_a_getter) + } else { + if (_) return OS.isIdentifier(t) && c && $y(c, e), _e(u) ? R : u; + a = fe(u, n.escapedText, !1, 163 === e.kind) + } + if (OS.isIdentifier(t) && c && (Z.isolatedModules || !a || !(OD(a) || 8 & a.flags && 302 === e.parent.kind) || OS.shouldPreserveConstEnums(Z) && Zy(e)) && $y(c, e), a) { + aa(a) && wd(e, a) && a.declarations && oa(n, a.declarations, n.escapedText), d = e, _ = n, (f = (p = a).valueDeclaration) && !OS.getSourceFileOfNode(d).isDeclarationFile && (s = OS.idText(_), !Uh(d) || function(e) { + return OS.isPropertyDeclaration(e) && !OS.hasAccessorModifier(e) && e.questionToken + }(f) || OS.isAccessExpression(d) && OS.isAccessExpression(d.expression) || ya(f, _) || OS.isMethodDeclaration(f) && 32 & OS.getCombinedModifierFlags(f) || !Z.useDefineForClassFields && function(e) { + if (!(32 & e.parent.flags)) return; + var t = de(e.parent); + for (;;) { + if (!(t = t.symbol && function(e) { + e = xc(e); + if (0 !== e.length) return ve(e) + }(t))) return; + var r = fe(t, e.escapedName); + if (r && r.valueDeclaration) return 1 + } + }(p) ? 260 !== f.kind || 180 === d.parent.kind || 16777216 & f.flags || ya(f, _) || (o = se(_, OS.Diagnostics.Class_0_used_before_its_declaration, s)) : o = se(_, OS.Diagnostics.Property_0_is_used_before_its_initialization, s), o) && OS.addRelatedInfo(o, OS.createDiagnosticForNode(f, OS.Diagnostics._0_is_declared_here, s)), Zh(a, e, $h(t, c)), H(e).resolvedSymbol = a; + var p = OS.isWriteAccess(e); + if (bh(e, 106 === t.kind, p, u, a), V1(e, a, l)) return se(n, OS.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, OS.idText(n)), R; + o = Bh(e, a) ? Nr : (p ? ac : de)(a) + } else { + var f, _ = OS.isPrivateIdentifier(n) || 0 !== l && Bd(r) && !OS.isThisTypeParameter(r) ? void 0 : gu(u, n.escapedText); + if (!_ || !_.type) return !(f = Jh(e, r.symbol, !0)) && Fd(r) ? ee : r.symbol === nt ? (nt.exports.has(n.escapedText) && 418 & nt.exports.get(n.escapedText).flags ? se(n, OS.Diagnostics.Property_0_does_not_exist_on_type_1, OS.unescapeLeadingUnderscores(n.escapedText), ue(r)) : Te && se(n, OS.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature, ue(r)), ee) : (n.escapedText && !Sa(e) && Kh(n, OS.isThisTypeParameter(r) ? u : r, f), R); + _.isReadonly && (OS.isAssignmentTarget(e) || OS.isDeleteTarget(e)) && se(e, OS.Diagnostics.Index_signature_in_type_0_only_permits_reading, ue(u)), o = Z.noUncheckedIndexedAccess && !OS.isAssignmentTarget(e) ? he([_.type, re]) : _.type, Z.noPropertyAccessFromIndexSignature && OS.isPropertyAccessExpression(e) && se(n, OS.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0, OS.unescapeLeadingUnderscores(n.escapedText)), _.declaration && 268435456 & OS.getCombinedNodeFlags(_.declaration) && oa(n, [_.declaration], n.escapedText) + } + return zh(e, a, o, n, i) + } + + function Jh(e, t, r) { + var n = OS.getSourceFileOfNode(e); + if (n && (void 0 === Z.checkJs && void 0 === n.checkJsDirective && (1 === n.scriptKind || 2 === n.scriptKind))) return !(n !== (n = OS.forEach(null == t ? void 0 : t.declarations, OS.getSourceFileOfNode)) && n && ga(n) || r && t && 32 & t.flags || e && r && OS.isPropertyAccessExpression(e) && 108 === e.expression.kind); + return !1 + } + + function zh(e, t, r, n, i) { + var a = OS.getAssignmentTargetKind(e); + if (1 === a) return zg(r, !!(t && 16777216 & t.flags)); + if (t && !(98311 & t.flags) && !(8192 & t.flags && 1048576 & r.flags) && !eD(t.declarations)) return r; + if (r === Nr) return Ms(e, t); + r = Yy(r, e, i); + var o, i = !1, + s = ($ && Y && OS.isAccessExpression(e) && 108 === e.expression.kind ? (o = t && t.valueDeclaration) && Ix(o) && (OS.isStatic(o) || 173 !== (s = qy(e)).kind || s.parent !== o.parent || 16777216 & o.flags || (i = !0)) : $ && t && t.valueDeclaration && OS.isPropertyAccessExpression(t.valueDeclaration) && OS.getAssignmentDeclarationPropertyAccessKind(t.valueDeclaration) && qy(e) === qy(t.valueDeclaration) && (i = !0), Vy(e, r, i ? Mg(r) : r)); + return i && !Af(r) && Af(s) ? (se(n, OS.Diagnostics.Property_0_is_used_before_being_assigned, le(t)), r) : a ? Dg(s) : s + } + + function Uh(e) { + return OS.findAncestor(e, function(e) { + switch (e.kind) { + case 169: + return !0; + case 299: + case 171: + case 174: + case 175: + case 301: + case 164: + case 236: + case 291: + case 288: + case 289: + case 290: + case 283: + case 230: + case 294: + return !1; + case 216: + case 241: + return !(!OS.isBlock(e.parent) || !OS.isClassStaticBlockDeclaration(e.parent.parent)) || "quit"; + default: + return !OS.isExpressionNode(e) && "quit" + } + }) + } + + function Kh(e, t, r) { + var n, i, a, o, s, c; + if (!OS.isPrivateIdentifier(e) && 1048576 & t.flags && !(131068 & t.flags)) + for (var l = 0, u = t.types; l < u.length; l++) { + var _ = u[l]; + if (!fe(_, e.escapedText) && !gu(_, e.escapedText)) { + i = OS.chainDiagnosticMessages(i, OS.Diagnostics.Property_0_does_not_exist_on_type_1, OS.declarationNameToString(e), ue(_)); + break + } + } + Vh(e.escapedText, t) ? (a = OS.declarationNameToString(e), o = ue(t), i = OS.chainDiagnosticMessages(i, OS.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, a, o, o + "." + a)) : (o = Z2(t)) && fe(o, e.escapedText) ? (i = OS.chainDiagnosticMessages(i, OS.Diagnostics.Property_0_does_not_exist_on_type_1, OS.declarationNameToString(e), ue(t)), n = OS.createDiagnosticForNode(e, OS.Diagnostics.Did_you_forget_to_use_await)) : (a = OS.declarationNameToString(e), o = ue(t), void 0 !== (s = function(e, t) { + var r = Ql(t).symbol; + if (!r) return; + for (var n = OS.getScriptTargetFeatures(), t = OS.getOwnKeys(n), i = 0, a = t; i < a.length; i++) { + var o = a[i], + s = n[o][OS.symbolName(r)]; + if (void 0 !== s && OS.contains(s, e)) return o + } + }(a, t)) ? i = OS.chainDiagnosticMessages(i, OS.Diagnostics.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later, a, o, s) : void 0 !== (s = Wh(e, t)) ? (d = OS.symbolName(s), c = r ? OS.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2 : OS.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, i = OS.chainDiagnosticMessages(i, c, a, o, d), n = s.valueDeclaration && OS.createDiagnosticForNode(s.valueDeclaration, OS.Diagnostics._0_is_declared_here, d)) : (c = t, s = Z.lib && !Z.lib.includes("dom") && function(e, t) { + return 3145728 & e.flags ? OS.every(e.types, t) : t(e) + }(c, function(e) { + return e.symbol && /^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(OS.unescapeLeadingUnderscores(e.symbol.escapedName)) + }) && kf(c) ? OS.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom : OS.Diagnostics.Property_0_does_not_exist_on_type_1, i = OS.chainDiagnosticMessages(iu(i, t), s, a, o))); + var d = OS.createDiagnosticForNodeFromMessageChain(e, i); + n && OS.addRelatedInfo(d, n), ta(!r || i.code !== OS.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code, d) + } + + function Vh(e, t) { + t = t.symbol && fe(de(t.symbol), e); + return void 0 !== t && t.valueDeclaration && OS.isStatic(t.valueDeclaration) + } + + function qh(e, t) { + return Yh(e, pe(t), 106500) + } + + function Wh(e, t) { + var r, n = pe(t); + return "string" != typeof e && (r = e.parent, OS.isPropertyAccessExpression(r) && (n = OS.filter(n, function(e) { + return ev(r, t, e) + })), e = OS.idText(e)), Yh(e, n, 111551) + } + + function Hh(e, t) { + var e = OS.isString(e) ? e : OS.idText(e), + t = pe(t), + r = "for" === e ? OS.find(t, function(e) { + return "htmlFor" === OS.symbolName(e) + }) : "class" === e ? OS.find(t, function(e) { + return "className" === OS.symbolName(e) + }) : void 0; + return null != r ? r : Yh(e, t, 111551) + } + + function Gh(e, t) { + e = Wh(e, t); + return e && OS.symbolName(e) + } + + function Qh(e, i, t) { + return OS.Debug.assert(void 0 !== i, "outername should always be defined"), ba(e, i, t, void 0, i, !1, !1, !0, function(t, e, r) { + OS.Debug.assertEqual(i, e, "name should equal outerName"); + var n = ma(t, e, r); + return n || (n = t === tt ? OS.mapDefined(["string", "number", "boolean", "object", "bigint", "symbol"], function(e) { + return t.has(e.charAt(0).toUpperCase() + e.slice(1)) ? B(524288, e) : void 0 + }).concat(OS.arrayFrom(t.values())) : OS.arrayFrom(t.values()), Yh(OS.unescapeLeadingUnderscores(e), n, r)) + }) + } + + function Xh(e, t) { + return t.exports && Yh(OS.idText(e), po(t), 2623475) + } + + function Yh(e, t, r) { + return OS.getSpellingSuggestion(e, t, function(e) { + var t = OS.symbolName(e); + if (!OS.startsWith(t, '"')) { + if (e.flags & r) return t; + if (2097152 & e.flags) { + e = function(e) { + if (ce(e).aliasTarget !== Cr) return Ha(e) + }(e); + if (e && e.flags & r) return t + } + } + return + }) + } + + function Zh(e, t, r) { + var n = e && 106500 & e.flags && e.valueDeclaration; + if (n) { + var n = OS.hasEffectiveModifier(n, 8), + i = e.valueDeclaration && OS.isNamedDeclaration(e.valueDeclaration) && OS.isPrivateIdentifier(e.valueDeclaration.name); + if ((n || i) && (!t || !OS.isWriteOnlyAccess(t) || 65536 & e.flags)) { + if (r) { + n = OS.findAncestor(t, OS.isFunctionLikeDeclaration); + if (n && n.symbol === e) return + }(1 & OS.getCheckFlags(e) ? ce(e).target : e).isReferenced = 67108863 + } + } + } + + function $h(e, t) { + return 108 === e.kind || !!t && OS.isEntityNameExpression(e) && t === Bm(OS.getFirstIdentifier(e)) + } + + function ev(e, t, r) { + return rv(e, 208 === e.kind && 106 === e.expression.kind, !1, t, r) + } + + function tv(e, t, r, n) { + return !!j(n) || !!(r = fe(n, r)) && rv(e, t, !1, n, r) + } + + function rv(e, t, r, n, i) { + var a; + return !!j(n) || (i.valueDeclaration && OS.isPrivateIdentifierClassElementDeclaration(i.valueDeclaration) ? (a = OS.getContainingClass(i.valueDeclaration), !OS.isOptionalChain(e) && !!OS.findAncestor(e, function(e) { + return e === a + })) : xh(e, t, r, n, i)) + } + + function nv(e) { + var t, r = OS.skipParentheses(e); + if (79 === r.kind) { + var n = Bm(r); + if (3 & n.flags) + for (var i = e, a = e.parent; a;) { + if (246 === a.kind && i === a.statement && function(e) { + if (258 === (e = e.initializer).kind) { + var t = e.declarations[0]; + if (t && !OS.isBindingPattern(t.name)) return G(t) + } else if (79 === e.kind) return Bm(e) + }(a) === n && 1 === uu(t = C2(a.expression)).length && _u(t, ie)) return 1; + a = (i = a).parent + } + } + } + + function iv(e, t) { + return 32 & e.flags ? (n = t, i = V((r = e).expression), a = Jg(i, r.expression), jg(av(r, Ah(a, r.expression), n), r, a !== i)) : av(e, Sh(e.expression), t); + var r, n, i, a + } + + function av(e, t, r) { + var t = 0 !== OS.getAssignmentTargetKind(e) || Ih(e) ? Xg(t) : t, + n = e.argumentExpression, + i = V(n); + return _e(t) || t === Hr ? t : $1(t) && !OS.isStringLiteralLike(n) ? (se(n, OS.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal), R) : (i = Hd(t, nv(n) ? ie : i, OS.isAssignmentTarget(e) ? 4 | (Bd(t) && !OS.isThisTypeParameter(t) ? 2 : 0) : 32, e) || R, V2(zh(e, H(e).resolvedSymbol, i, n, r), e)) + } + + function ov(e) { + return OS.isCallOrNewExpression(e) || OS.isTaggedTemplateExpression(e) || OS.isJsxOpeningLikeElement(e) + } + + function sv(e) { + return ov(e) && OS.forEach(e.typeArguments, Q), 212 === e.kind ? V(e.template) : OS.isJsxOpeningLikeElement(e) ? V(e.attributes) : 167 !== e.kind && OS.forEach(e.arguments, function(e) { + V(e) + }), kn + } + + function cv(e) { + return sv(e), Nn + } + + function lv(e) { + return !!e && (227 === e.kind || 234 === e.kind && e.isSpread) + } + + function uv(e) { + return OS.findIndex(e, lv) + } + + function _v(e) { + return !!(16384 & e.flags) + } + + function dv(e) { + return !!(49155 & e.flags) + } + + function pv(e, t, r, n) { + void 0 === n && (n = !1); + var i = !1, + a = x1(r), + o = D1(r); + if (212 === e.kind) { + var s = t.length; + i = 225 === e.template.kind ? (c = OS.last(e.template.templateSpans), OS.nodeIsMissing(c.literal) || !!c.literal.isUnterminated) : (c = e.template, OS.Debug.assert(14 === c.kind), !!c.isUnterminated) + } else if (167 === e.kind) s = Fv(e, r); + else if (OS.isJsxOpeningLikeElement(e)) { + if (i = e.attributes.end === e.end) return 1; + s = 0 === o ? t.length : 1, a = 0 === t.length ? a : 1, o = Math.min(o, 1) + } else { + if (!e.arguments) return OS.Debug.assert(211 === e.kind), 0 === D1(r); + s = n ? t.length + 1 : t.length, i = e.arguments.end === e.end; + var c = uv(t); + if (0 <= c) return c >= D1(r) && (S1(r) || c < x1(r)) + } + if (S1(r) || !(a < s)) { + if (!(i || o <= s)) + for (var l = s; l < o; l++) + if (131072 & Sy(h1(r, l), OS.isInJSFile(e) && !$ ? dv : _v).flags) return; + return 1 + } + } + + function fv(e, t) { + var r = OS.length(e.typeParameters), + e = Su(e.typeParameters); + return !OS.some(t) || t.length >= e && t.length <= r + } + + function gv(e) { + return yv(e, 0, !1) + } + + function mv(e) { + return yv(e, 0, !1) || yv(e, 1, !1) + } + + function yv(e, t, r) { + if (524288 & e.flags) { + e = Fl(e); + if (r || 0 === e.properties.length && 0 === e.indexInfos.length) { + if (0 === t && 1 === e.callSignatures.length && 0 === e.constructSignatures.length) return e.callSignatures[0]; + if (1 === t && 1 === e.constructSignatures.length && 0 === e.callSignatures.length) return e.constructSignatures[0] + } + } + } + + function hv(e, t, r, n) { + var i = rm(e.typeParameters, e, 0, n), + n = T1(t), + n = r && (n && 262144 & n.flags ? r.nonFixingMapper : r.mapper); + return em(n ? Kp(t, n) : t, e, function(e, t) { + km(i.inferences, e, t) + }), r || tm(t, e, function(e, t) { + km(i.inferences, e, t, 128) + }), Lu(e, Lm(i), OS.isInJSFile(t.declaration)) + } + + function vv(e) { + var t; + return e ? (t = V(e), OS.isOptionalChainRoot(e.parent) ? Lg(t) : OS.isOptionalChain(e.parent) ? Bg(t) : t) : Wr + } + + function bv(e, t, r, n, i) { + if (OS.isJsxOpeningLikeElement(e)) return a = n, c = i, s = M0(s = t, o = e), o = l2(o.attributes, s, c, a), km(c.inferences, o, s), Lm(c); + 167 !== e.kind && (a = OS.every(t.typeParameters, function(e) { + return !!ql(e) + }), o = I0(e, a ? 8 : 0)) && lm(s = me(t)) && (c = O0(e), !a && I0(e, 8) !== o || (l = (l = gv(u = be(o, cm((void 0 === (u = 1) && (u = 0), (l = c) && nm(OS.map(l.inferences, sm), l.signature, l.flags | u, l.compareTypes)))))) && l.typeParameters ? zu(Ru(l, l.typeParameters)) : u, km(i.inferences, l, s, 128)), u = rm(t.typeParameters, t, i.flags), l = be(o, c && c.returnMapper), km(u.inferences, l, s), i.returnMapper = OS.some(u.inferences, x2) ? cm((f = u, (_ = OS.filter(f.inferences, x2)).length ? nm(OS.map(_, sm), f.signature, f.flags, f.compareTypes) : void 0)) : void 0); + var a, o, s, c, l, u, _, d = C1(t), + p = d ? Math.min(x1(t) - 1, r.length) : r.length, + f = (d && 262144 & d.flags && (_ = OS.find(i.inferences, function(e) { + return e.typeParameter === d + })) && (_.impliedArity = OS.findIndex(r, lv, p) < 0 ? r.length - p : void 0), Fu(t)); + f && lm(f) && (e = kv(e), km(i.inferences, vv(e), f)); + for (var g = 0; g < p; g++) { + var m, y = r[g]; + 229 === y.kind || 32 & n && hm(y) || lm(m = h1(t, g)) && (y = l2(y, m, i, n), km(i.inferences, y, m)) + } + return d && lm(d) && (e = Dv(r, p, r.length, d, i, n), km(i.inferences, e, d)), Lm(i) + } + + function xv(e) { + return 1048576 & e.flags ? Cy(e, xv) : 1 & e.flags || ug(Jl(e) || e) ? e : De(e) ? H_(ye(e), e.target.elementFlags, !1, e.target.labeledElementDeclarations) : H_([e], [8]) + } + + function Dv(e, t, r, n, i, a) { + if (r - 1 <= t && lv(o = e[r - 1])) return xv(234 === o.kind ? o.type : l2(o.expression, n, i, a)); + for (var o, s, c, l, u = [], _ = [], d = [], p = t; p < r; p++) lv(o = e[p]) ? dg(s = 234 === o.kind ? o.type : V(o.expression)) ? (u.push(s), _.push(8)) : (u.push(Wb(33, s, re, 227 === o.kind ? o.expression : o)), _.push(4)) : (c = l2(o, s = qd(n, xp(p - t), 256), i, a), l = X1(s, 406978556), u.push((l ? hp : Sg)(c)), _.push(1)), 234 === o.kind && o.tupleNameSource && d.push(o.tupleNameSource); + return H_(u, _, !1, OS.length(d) === OS.length(u) ? d : void 0) + } + + function Sv(e, t, r, n) { + for (var i = OS.isInJSFile(e.declaration), a = e.typeParameters, o = Tu(OS.map(t, K), a, Su(a), i), s = 0; s < t.length; s++) { + OS.Debug.assert(void 0 !== a[s], "Should not call checkTypeArguments with too many type arguments"); + var c = Ml(a[s]); + if (c) { + var l = r && n ? function() { + return OS.chainDiagnosticMessages(void 0, OS.Diagnostics.Type_0_does_not_satisfy_the_constraint_1) + } : void 0, + u = n || OS.Diagnostics.Type_0_does_not_satisfy_the_constraint_1, + _ = _ || wp(a, o), + d = o[s]; + if (!gf(d, Yc(be(c, _), d), r ? t[s] : void 0, u, l)) return + } + } + return o + } + + function Tv(e) { + return Z0(e.tagName) ? 2 : (e = Ql(V(e.tagName)), OS.length(ge(e, 1)) ? 0 : OS.length(ge(e, 0)) ? 1 : 2) + } + + function Cv(g, e, t, r, m, n, y) { + e = M0(e, g), r = l2(g.attributes, e, void 0, r); + return function() { + if (ah(g)) return 1; + var e = OS.isJsxOpeningElement(g) || OS.isJsxSelfClosingElement(g) && !Z0(g.tagName) ? V(g.tagName) : void 0; + if (!e) return 1; + var e = ge(e, 0); + if (!OS.length(e)) return 1; + var t = tS(g); + if (!t) return 1; + var r = ro(t, 111551, !0, !1, g); + if (!r) return 1; + r = ge(de(r), 0); + if (!OS.length(r)) return 1; + for (var n = !1, i = 0, a = 0, o = r; a < o.length; a++) { + var s = ge(h1(o[a], 0), 0); + if (OS.length(s)) + for (var c = 0, l = s; c < l.length; c++) { + var u = l[c]; + if (n = !0, S1(u)) return 1; + u = x1(u); + i < u && (i = u) + } + } + if (!n) return 1; + for (var _ = 1 / 0, d = 0, p = e; d < p.length; d++) { + var f = D1(p[d]); + f < _ && (_ = f) + } + if (_ <= i) return 1; + m && (r = OS.createDiagnosticForNode(g.tagName, OS.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3, OS.entityNameToString(g.tagName), _, OS.entityNameToString(t), i), (t = null == (e = yD(g.tagName)) ? void 0 : e.valueDeclaration) && OS.addRelatedInfo(r, OS.createDiagnosticForNode(t, OS.Diagnostics._0_is_declared_here, OS.entityNameToString(g.tagName))), y && y.skipLogging && (y.errors || (y.errors = [])).push(r), y.skipLogging || oe.add(r)); + return + }() && yf(r, e, t, m ? g.tagName : void 0, g.attributes, void 0, n, y) + } + + function Ev(e, t, r, n, i, a, o) { + var s = { + errors: void 0, + skipLogging: !0 + }; + if (OS.isJsxOpeningLikeElement(e)) return Cv(e, r, n, i, a, o, s) ? void 0 : (OS.Debug.assert(!a || !!s.errors, "jsx should have errors when reporting errors"), s.errors || OS.emptyArray); + var c = Fu(r); + if (c && c !== Wr && 211 !== e.kind) { + var l = kv(e), + u = vv(l), + l = a ? l || e : void 0, + _ = OS.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1; + if (!Lf(u, c, n, l, _, o, s)) return OS.Debug.assert(!a || !!s.errors, "this parameter should have errors when reporting errors"), s.errors || OS.emptyArray + } + for (var d = OS.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1, u = C1(r), p = u ? Math.min(x1(r) - 1, t.length) : t.length, f = 0; f < p; f++) { + var g = t[f]; + if (229 !== g.kind) { + var m = h1(r, f), + y = l2(g, m, void 0, i), + y = 4 & i ? Wg(y) : y; + if (!yf(y, m, n, a ? g : void 0, g, d, o, s)) return OS.Debug.assert(!a || !!s.errors, "parameter should have errors when reporting errors"), h(g, y, m), s.errors || OS.emptyArray + } + } + if (u) { + c = Dv(t, p, t.length, u, void 0, i), _ = t.length - p, l = a ? 0 == _ ? e : 1 == _ ? t[p] : OS.setTextRangePosEnd(Nv(e, c), t[p].pos, t[t.length - 1].end) : void 0; + if (!Lf(c, u, n, l, d, void 0, s)) return OS.Debug.assert(!a || !!s.errors, "rest parameter should have errors when reporting errors"), h(l, c, u), s.errors || OS.emptyArray + } + + function h(e, t, r) { + e && a && s.errors && s.errors.length && (Y2(r) || (t = Y2(t)) && If(t, r, n) && OS.addRelatedInfo(s.errors[0], OS.createDiagnosticForNode(e, OS.Diagnostics.Did_you_forget_to_use_await))) + } + } + + function kv(e) { + e = 210 === e.kind ? e.expression : 212 === e.kind ? e.tag : void 0; + if (e) { + e = OS.skipOuterExpressions(e); + if (OS.isAccessExpression(e)) return e.expression + } + } + + function Nv(e, t, r, n) { + t = OS.parseNodeFactory.createSyntheticExpression(t, r, n); + return OS.setTextRange(t, e), OS.setParent(t, e), t + } + + function Av(e) { + var t; + if (212 === e.kind) return r = e.template, t = [Nv(r, Ht = Ht || E_("TemplateStringsArray", 0, !0) || un)], 225 === r.kind && OS.forEach(r.templateSpans, function(e) { + t.push(e.expression) + }), t; + if (167 === e.kind) { + var r = e, + n = r.parent, + i = r.expression; + switch (n.kind) { + case 260: + case 228: + return [Nv(i, de(G(n)))]; + case 166: + var a = n.parent; + return [Nv(i, 173 === n.parent.kind ? de(G(a)) : R), Nv(i, ee), Nv(i, ie)]; + case 169: + case 171: + case 174: + case 175: + a = 0 !== U && (!OS.isPropertyDeclaration(n) || OS.hasAccessorModifier(n)); + return [Nv(i, function(e) { + var t = G(e.parent); + return (OS.isStatic(e) ? de : Pc)(t) + }(n)), Nv(i, function(e) { + var t = e.name; + switch (t.kind) { + case 79: + return bp(OS.idText(t)); + case 8: + case 10: + return bp(t.text); + case 164: + var r = q0(t); + return Y1(r, 12288) ? r : ne; + default: + return OS.Debug.fail("Unsupported property name.") + } + }(n)), Nv(i, a ? J_(hD(n)) : ee)] + } + return OS.Debug.fail() + } + if (OS.isJsxOpeningLikeElement(e)) return 0 < e.attributes.properties.length || OS.isJsxOpeningElement(e) && 0 < e.parent.children.length ? [e.attributes] : OS.emptyArray; + var o = e.arguments || OS.emptyArray, + e = uv(o); + if (0 <= e) { + for (var s = o.slice(0, e), c = e; c < o.length; c++) ! function(e) { + var n = o[e], + i = 227 === n.kind && (Kn ? V : u2)(n.expression); + i && De(i) ? OS.forEach(ye(i), function(e, t) { + var r = i.target.elementFlags[t], + r = Nv(n, 4 & r ? z_(e) : e, !!(12 & r), null == (e = i.target.labeledElementDeclarations) ? void 0 : e[t]); + s.push(r) + }) : s.push(n) + }(c); + return s + } + return o + } + + function Fv(e, t) { + switch (e.parent.kind) { + case 260: + case 228: + return 1; + case 169: + return OS.hasAccessorModifier(e.parent) ? 3 : 2; + case 171: + case 174: + case 175: + return 0 === U || t.parameters.length <= 2 ? 2 : 3; + case 166: + return 3; + default: + return OS.Debug.fail() + } + } + + function Pv(e, t) { + var r, n, i = OS.getSourceFileOfNode(e); + return t = OS.isPropertyAccessExpression(e.expression) ? (r = (n = OS.getErrorSpanForNode(i, e.expression.name)).start, t ? n.length : e.end - r) : (r = (n = OS.getErrorSpanForNode(i, e.expression)).start, t ? n.length : e.end - r), { + start: r, + length: t, + sourceFile: i + } + } + + function wv(e, t, r, n, i, a) { + var o, s, c; + return OS.isCallExpression(e) ? (o = (c = Pv(e)).sourceFile, s = c.start, c = c.length, OS.createFileDiagnostic(o, s, c, t, r, n, i, a)) : OS.createDiagnosticForNode(e, t, r, n, i, a) + } + + function Iv(e, t, r) { + var n = uv(r); + if (-1 < n) return OS.createDiagnosticForNode(r[n], OS.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter); + for (var i, a = Number.POSITIVE_INFINITY, o = Number.NEGATIVE_INFINITY, s = Number.NEGATIVE_INFINITY, c = Number.POSITIVE_INFINITY, l = 0, u = t; l < u.length; l++) { + var _ = u[l], + d = D1(_), + p = x1(_); + d < a && (a = d, i = _), o = Math.max(o, p), d < r.length && s < d && (s = d), r.length < p && p < c && (c = p) + } + var f, g, m, n = OS.some(t, S1), + t = !n && a < o ? a + "-" + o : a, + y = !n && 1 === t && 0 === r.length && (y = e, !!(OS.isCallExpression(y) && OS.isIdentifier(y.expression) && (y = null == (y = va(y.expression, y.expression.escapedText, 111551, void 0, void 0, !1)) ? void 0 : y.valueDeclaration) && OS.isParameter(y) && OS.isFunctionExpressionOrArrowFunction(y.parent) && OS.isNewExpression(y.parent.parent) && OS.isIdentifier(y.parent.parent.expression) && (f = O_(!1)) && yD(y.parent.parent.expression, !0) === f)); + return y && OS.isInJSFile(e) ? wv(e, OS.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments) : (f = n ? OS.Diagnostics.Expected_at_least_0_arguments_but_got_1 : y ? OS.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise : OS.Diagnostics.Expected_0_arguments_but_got_1, a < r.length && r.length < o ? wv(e, OS.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments, r.length, s, c) : r.length < a ? (n = wv(e, f, t, r.length), (g = null == (g = null == i ? void 0 : i.declaration) ? void 0 : g.parameters[i.thisParameter ? r.length + 1 : r.length]) ? (g = OS.createDiagnosticForNode(g, OS.isBindingPattern(g.name) ? OS.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided : OS.isRestParameter(g) ? OS.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided : OS.Diagnostics.An_argument_for_0_was_not_provided, g.name ? OS.isBindingPattern(g.name) ? void 0 : OS.idText(OS.getFirstIdentifier(g.name)) : r.length), OS.addRelatedInfo(n, g)) : n) : (g = OS.factory.createNodeArray(r.slice(o)), n = OS.first(g).pos, (m = OS.last(g).end) === n && m++, OS.setTextRangePosEnd(g, n, m), OS.createDiagnosticForNodeArray(OS.getSourceFileOfNode(e), g, f, t, r.length))) + } + + function Ov(l, e, t, u, r, n) { + var _, i, a, o, s, c = 212 === l.kind, + d = 167 === l.kind, + p = OS.isJsxOpeningLikeElement(l), + f = !t, + g = (!d && !OS.isSuperCall(l) && (_ = l.typeArguments, c || p || 106 !== l.expression.kind) && OS.forEach(_, Q), t || []), + c = e, + m = g, + L = r, + y = 0, + R = -1; + OS.Debug.assert(!m.length); + for (var h = 0, B = c; h < B.length; h++) { + var v = B[h], + j = v.declaration && G(v.declaration), + b = v.declaration && v.declaration.parent; + a && j !== a ? (o = y = m.length, i = b) : i && b === i ? o += 1 : (i = b, o = y), a = j, ZS(v) ? (s = ++R, y++) : s = o, m.splice(s, 0, L ? rl(v, L) : v) + } + if (!g.length) return f && oe.add(wv(l, OS.Diagnostics.Call_target_does_not_contain_any_signatures)), cv(l); + var x, D, S, T, C = Av(l), + p = 1 === g.length && !g[0].typeParameters, + E = d || p || !OS.some(C, rf) ? 0 : 4, + r = (E |= 32 & u, !!(16 & u) && 210 === l.kind && l.arguments.hasTrailingComma); + if (!(T = (T = 1 < g.length ? W(g, bi, p, r) : T) || W(g, Di, p, r)) && (c = l, p = g, r = C, t = !!t, M = u, OS.Debug.assert(0 < p.length), nD(c), T = t || 1 === p.length || p.some(function(e) { + return !!e.typeParameters + }) ? function(e, t, r, n) { + var i, a = function(e, t) { + for (var r = -1, n = -1, i = 0; i < e.length; i++) { + var a = e[i], + o = x1(a); + if (S1(a) || t <= o) return i; + n < o && (n = o, r = i) + } + return r + }(t, void 0 === et ? r.length : et), + o = t[a], + s = o.typeParameters; + return s ? (i = ov(e) ? e.typeArguments : void 0, i = i ? Bu(o, function(e, t, r) { + var n = e.map(hD); + for (; n.length > t.length;) n.pop(); + for (; n.length < t.length;) n.push(ql(t[n.length]) || Ml(t[n.length]) || Mm(r)); + return n + }(i, s, OS.isInJSFile(e))) : function(e, t, r, n, i) { + t = rm(t, r, OS.isInJSFile(e) ? 2 : 0), e = bv(e, r, n, 12 | i, t); + return Bu(r, e) + }(e, s, o, r, n), t[a] = i) : o + }(c, p, r, M) : function(r) { + var e, t = OS.mapDefined(r, function(e) { + return e.thisParameter + }); + t.length && (e = Lv(t, t.map(p1))); + for (var t = OS.minAndMax(r, Mv), n = t.min, i = t.max, a = [], o = 0; o < i; o++) ! function(t) { + var e = OS.mapDefined(r, function(e) { + return YS(e) ? t < e.parameters.length - 1 ? e.parameters[t] : OS.last(e.parameters) : t < e.parameters.length ? e.parameters[t] : void 0 + }); + OS.Debug.assert(0 !== e.length), a.push(Lv(e, OS.mapDefined(r, function(e) { + return v1(e, t) + }))) + }(o); + var t = OS.mapDefined(r, function(e) { + return YS(e) ? OS.last(e.parameters) : void 0 + }), + s = 0; { + var c; + 0 !== t.length && (c = z_(he(OS.mapDefined(r, Mu), 2)), a.push(Rv(t, c)), s |= 1) + } + r.some(ZS) && (s |= 2); + return $c(r[0].declaration, void 0, e, a, ve(r.map(me)), void 0, n, s) + }(p), H(l).resolvedSignature = T, f)) + if (x) + if (1 === x.length || 3 < x.length) { + var k, N = x[x.length - 1], + t = (3 < x.length && (k = OS.chainDiagnosticMessages(k, OS.Diagnostics.The_last_overload_gave_the_following_error), k = OS.chainDiagnosticMessages(k, OS.Diagnostics.No_overload_matches_this_call)), Ev(l, C, N, Di, 0, !0, function() { + return k + })); + if (t) + for (var A = 0, J = t; A < J.length; A++) { + var F = J[A]; + N.declaration && 3 < x.length && OS.addRelatedInfo(F, OS.createDiagnosticForNode(N.declaration, OS.Diagnostics.The_last_overload_is_declared_here)), q(N, F), oe.add(F) + } else OS.Debug.fail("No error for last overload signature") + } else { + for (var P = [], w = 0, z = Number.MAX_VALUE, U = 0, I = 0, K = 0, V = x; K < V.length; K++) ! function(e) { + var t = Ev(l, C, e, Di, 0, !0, function() { + return OS.chainDiagnosticMessages(void 0, OS.Diagnostics.Overload_0_of_1_2_gave_the_following_error, I + 1, g.length, $o(e)) + }); + t ? (t.length <= z && (z = t.length, U = I), w = Math.max(w, t.length), P.push(t)) : OS.Debug.fail("No error for 3 or fewer overload signatures"), I++ + }(V[K]); + var O = 1 < w ? P[U] : OS.flatten(P), + c = (OS.Debug.assert(0 < O.length, "No errors reported for 3 or fewer overload signatures"), OS.chainDiagnosticMessages(OS.map(O, OS.createDiagnosticMessageChainFromDiagnostic), OS.Diagnostics.No_overload_matches_this_call)), + r = __spreadArray([], OS.flatMap(O, function(e) { + return e.relatedInformation + }), !0), + M = void 0; + M = OS.every(O, function(e) { + return e.start === O[0].start && e.length === O[0].length && e.file === O[0].file + }) ? { + file: (p = O[0]).file, + start: p.start, + length: p.length, + code: c.code, + category: c.category, + messageText: c, + relatedInformation: r + } : OS.createDiagnosticForNodeFromMessageChain(l, c, r), q(x[0], M), oe.add(M) + } + else D ? oe.add(Iv(l, [D], C)) : S ? Sv(S, l.typeArguments, !0, n) : 0 === (f = OS.filter(e, function(e) { + return fv(e, _) + })).length ? oe.add(function(e, t, r) { + var n, i = r.length; + if (1 === t.length) return n = Su((l = t[0]).typeParameters), _ = OS.length(l.typeParameters), OS.createDiagnosticForNodeArray(OS.getSourceFileOfNode(e), r, OS.Diagnostics.Expected_0_type_arguments_but_got_1, n < _ ? n + "-" + _ : n, i); + for (var a = -1 / 0, o = 1 / 0, s = 0, c = t; s < c.length; s++) { + var l, u = Su((l = c[s]).typeParameters), + _ = OS.length(l.typeParameters); + i < u ? o = Math.min(o, u) : _ < i && (a = Math.max(a, _)) + } + return a !== -1 / 0 && o !== 1 / 0 ? OS.createDiagnosticForNodeArray(OS.getSourceFileOfNode(e), r, OS.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments, i, a, o) : OS.createDiagnosticForNodeArray(OS.getSourceFileOfNode(e), r, OS.Diagnostics.Expected_0_type_arguments_but_got_1, a === -1 / 0 ? o : a, i) + }(l, e, _)) : d ? n && oe.add(wv(l, n)) : oe.add(Iv(l, f, C)); + return T; + + function q(e, t) { + var r, n, i = x, + a = D, + o = S, + e = (null == (e = null == (e = e.declaration) ? void 0 : e.symbol) ? void 0 : e.declarations) || OS.emptyArray, + e = 1 < e.length ? OS.find(e, function(e) { + return OS.isFunctionLikeDeclaration(e) && OS.nodeIsPresent(e.body) + }) : void 0; + e && (n = !(r = Cu(e)).typeParameters, W([r], Di, n)) && OS.addRelatedInfo(t, OS.createDiagnosticForNode(e, OS.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible)), x = i, D = a, S = o + } + + function W(e, t, r, n) { + if (void 0 === n && (n = !1), S = D = x = void 0, r) return i = e[0], OS.some(_) || !pv(l, C, i, n) ? void 0 : Ev(l, C, i, t, 0, !1, void 0) ? void(x = [i]) : i; + for (var i, a = 0; a < e.length; a++) + if (fv(i = e[a], _) && pv(l, C, i, n)) { + var o = void 0, + s = void 0; + if (i.typeParameters) { + var c = void 0; + if (OS.some(_)) { + if (!(c = Sv(i, _, !1))) { + S = i; + continue + } + } else s = rm(i.typeParameters, i, OS.isInJSFile(l) ? 2 : 0), c = bv(l, i, C, 8 | E, s), E |= 4 & s.flags ? 8 : 0; + if (o = Lu(i, c, OS.isInJSFile(i.declaration), s && s.inferredTypeParameters), C1(i) && !pv(l, C, o, n)) { + D = o; + continue + } + } else o = i; + if (!Ev(l, C, o, t, E, !1, void 0)) { + if (E) { + if (E = 32 & u, s) { + o = Lu(i, c = bv(l, i, C, E, s), OS.isInJSFile(i.declaration), s.inferredTypeParameters); + if (C1(i) && !pv(l, C, o, n)) { + D = o; + continue + } + } + if (Ev(l, C, o, t, E, !1, void 0)) { + (x = x || []).push(o); + continue + } + } + return e[a] = o + }(x = x || []).push(o) + } + } + } + + function Mv(e) { + var t = e.parameters.length; + return YS(e) ? t - 1 : t + } + + function Lv(e, t) { + return Rv(e, he(t, 2)) + } + + function Rv(e, t) { + return qg(OS.first(e), t) + } + + function Bv(e) { + return !(!e.typeParameters || !qD(me(e))) + } + + function jv(e, t, r, n) { + return j(e) || j(t) && 262144 & e.flags || !r && !n && !(1048576 & t.flags) && !(131072 & eu(t).flags) && xe(e, gt) + } + + function Jv(e, t, r) { + e.arguments && U < 1 && 0 <= (n = uv(e.arguments)) && se(e.arguments[n], OS.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher); + var n = Sh(e.expression); + if (n === Hr) return Fn; + if (!_e(n = Ql(n))) { + if (j(n)) return e.typeArguments && se(e, OS.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments), sv(e); + var i = ge(n, 1); + if (i.length) return function(e, t) { + if (!t || !t.declaration) return 1; + var t = t.declaration, + r = OS.getSelectedEffectiveModifierFlags(t, 24); + if (!r || 173 !== t.kind) return 1; + var n = OS.getClassLikeDeclarationOfSymbol(t.parent.symbol), + i = Pc(t.parent.symbol); + if (pD(e, n)) return 1; + n = OS.getContainingClass(e); + if (n && 16 & r) { + n = hD(n); + if (function e(t, r) { + r = xc(r); + if (!OS.length(r)) return !1; + r = r[0]; + if (2097152 & r.flags) { + for (var n = r.types, i = ll(n), a = 0, o = 0, s = r.types; o < s.length; o++) { + var c = s[o]; + if (!i[a] && 3 & OS.getObjectFlags(c)) { + if (c.symbol === t) return !0; + if (e(t, c)) return !0 + } + a++ + } + return !1 + } + if (r.symbol === t) return !0; + return e(t, r) + }(t.parent.symbol, n)) return 1 + } + 8 & r && se(e, OS.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration, ue(i)); + 16 & r && se(e, OS.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration, ue(i)); + return + }(e, i[0]) ? function t(e, r) { + if (OS.isArray(e)) return OS.some(e, function(e) { + return t(e, r) + }); + return 1048576 === e.compositeKind ? OS.some(e.compositeSignatures, r) : r(e) + }(i, function(e) { + return !!(4 & e.flags) + }) || (a = n.symbol && OS.getClassLikeDeclarationOfSymbol(n.symbol)) && OS.hasSyntacticModifier(a, 256) ? (se(e, OS.Diagnostics.Cannot_create_an_instance_of_an_abstract_class), cv(e)) : Ov(e, i, t, r, 0) : cv(e); + var a = ge(n, 0); + if (a.length) return i = Ov(e, a, t, r, 0), Te || (i.declaration && !Qv(i.declaration) && me(i) !== Wr && se(e, OS.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword), Fu(i) === Wr && se(e, OS.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)), i; + Uv(e.expression, n, 1) + } + return cv(e) + } + + function zv(e, t, r) { + var n, i = 0 === r, + a = ab(t), + a = a && 0 < ge(a, r).length; + if (1048576 & t.flags) { + for (var o = !1, s = 0, c = t.types; s < c.length; s++) { + var l = c[s]; + if (0 !== ge(l, r).length) { + if (o = !0, n) break + } else if (n || (n = OS.chainDiagnosticMessages(n, i ? OS.Diagnostics.Type_0_has_no_call_signatures : OS.Diagnostics.Type_0_has_no_construct_signatures, ue(l)), n = OS.chainDiagnosticMessages(n, i ? OS.Diagnostics.Not_all_constituents_of_type_0_are_callable : OS.Diagnostics.Not_all_constituents_of_type_0_are_constructable, ue(t))), o) break + } + n = (n = o ? n : OS.chainDiagnosticMessages(void 0, i ? OS.Diagnostics.No_constituent_of_type_0_is_callable : OS.Diagnostics.No_constituent_of_type_0_is_constructable, ue(t))) || OS.chainDiagnosticMessages(n, i ? OS.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other : OS.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other, ue(t)) + } else n = OS.chainDiagnosticMessages(n, i ? OS.Diagnostics.Type_0_has_no_call_signatures : OS.Diagnostics.Type_0_has_no_construct_signatures, ue(t)); + var u = i ? OS.Diagnostics.This_expression_is_not_callable : OS.Diagnostics.This_expression_is_not_constructable; + return OS.isCallExpression(e.parent) && 0 === e.parent.arguments.length && (e = H(e).resolvedSymbol) && 32768 & e.flags && (u = OS.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without), { + messageChain: OS.chainDiagnosticMessages(n, u), + relatedMessage: a ? OS.Diagnostics.Did_you_forget_to_use_await : void 0 + } + } + + function Uv(e, t, r, n) { + var i = zv(e, t, r), + a = i.messageChain, + i = i.relatedMessage, + a = OS.createDiagnosticForNodeFromMessageChain(e, a); + i && OS.addRelatedInfo(a, OS.createDiagnosticForNode(e, i)), OS.isCallExpression(e.parent) && (e = (i = Pv(e.parent, !0)).start, i = i.length, a.start = e, a.length = i), oe.add(a), Kv(t, r, n ? OS.addRelatedInfo(a, n) : a) + } + + function Kv(e, t, r) { + var n; + e.symbol && (n = ce(e.symbol).originatingImport) && !OS.isImportCall(n) && (e = ge(de(ce(e.symbol).target), t)) && e.length && OS.addRelatedInfo(r, OS.createDiagnosticForNode(n, OS.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead)) + } + + function Vv(e, t, r) { + var n, i, a, o = V(e.expression), + s = Ql(o); + return _e(s) ? cv(e) : (a = ge(s, 0), i = ge(s, 1).length, jv(o, s, a.length, i) ? sv(e) : (n = e, (o = a).length && OS.every(o, function(e) { + return 0 === e.minArgumentCount && !YS(e) && e.parameters.length < Fv(n, e) + }) ? (i = OS.getTextOfNode(e.expression, !1), se(e, OS.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0, i), cv(e)) : (o = function(e) { + switch (e.parent.kind) { + case 260: + case 228: + return OS.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression; + case 166: + return OS.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression; + case 169: + return OS.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression; + case 171: + case 174: + case 175: + return OS.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression; + default: + return OS.Debug.fail() + } + }(e), a.length ? Ov(e, a, t, r, 0, o) : (i = zv(e.expression, s, 0), a = OS.chainDiagnosticMessages(i.messageChain, o), t = OS.createDiagnosticForNodeFromMessageChain(e.expression, a), i.relatedMessage && OS.addRelatedInfo(t, OS.createDiagnosticForNode(e.expression, i.relatedMessage)), oe.add(t), Kv(s, 0, t), cv(e))))) + } + + function qv(e, t) { + var r = oh(e), + r = r && mo(r), + r = r && ma(r, MS.Element, 788968), + n = r && P.symbolToEntityName(r, 788968, e), + e = OS.factory.createFunctionTypeNode(void 0, [OS.factory.createParameterDeclaration(void 0, void 0, "props", void 0, P.typeToTypeNode(t, e))], n ? OS.factory.createTypeReferenceNode(n, void 0) : OS.factory.createKeywordTypeNode(131)), + n = B(1, "props"); + return n.type = t, $c(e, void 0, void 0, [n], r ? Pc(r) : R, void 0, 1, 0) + } + + function Wv(e, t, r) { + var n, i; + return Z0(e.tagName) ? (i = qv(e, n = uh(e)), mf(l2(e.attributes, M0(i, e), void 0, 0), n, e.tagName, e.attributes), OS.length(e.typeArguments) && (OS.forEach(e.typeArguments, Q), oe.add(OS.createDiagnosticForNodeArray(OS.getSourceFileOfNode(e), e.typeArguments, OS.Diagnostics.Expected_0_type_arguments_but_got_1, 0, OS.length(e.typeArguments)))), i) : _e(i = Ql(n = V(e.tagName))) ? cv(e) : jv(n, i, (i = function t(e, r) { + var n; + return 4 & e.flags ? [kn] : 128 & e.flags ? (n = lh(e, r)) ? [qv(r, n)] : (se(r, OS.Diagnostics.Property_0_does_not_exist_on_type_1, e.value, "JSX." + MS.IntrinsicElements), OS.emptyArray) : 0 === (e = 0 === (e = ge(n = Ql(e), 1)).length ? ge(n, 0) : e).length && 1048576 & n.flags ? al(OS.map(n.types, function(e) { + return t(e, r) + })) : e + }(n, e)).length, 0) ? sv(e) : 0 === i.length ? (se(e.tagName, OS.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, OS.getTextOfNode(e.tagName)), cv(e)) : Ov(e, i, t, r, 0) + } + + function Hv(e, t, r) { + switch (e.kind) { + case 210: + var n = e, + i = t, + a = r; + if (106 === n.expression.kind) { + var o = l0(n.expression); + if (j(o)) { + for (var s = 0, c = n.arguments; s < c.length; s++) V(c[s]); + return kn + } + if (!_e(o)) { + var l = OS.getEffectiveBaseTypeNode(OS.getContainingClass(n)); + if (l) return Ov(n, hc(o, l.typeArguments, l), i, a, 0) + } + return sv(n) + } + o = V(n.expression); + return OS.isCallChain(n) ? (_ = (l = Jg(o, n.expression)) === o ? 0 : OS.isOutermostOptionalChain(n) ? 16 : 8, o = l) : _ = 0, (o = Nh(o, n.expression, kh)) === Hr ? Fn : _e(l = Ql(o)) ? cv(n) : (d = ge(l, 0), u = ge(l, 1).length, jv(o, l, d.length, u) ? (!_e(o) && n.typeArguments && se(n, OS.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments), sv(n)) : d.length ? 8 & a && !n.typeArguments && d.some(Bv) ? (b2(n, a), An) : d.some(function(e) { + return OS.isInJSFile(e.declaration) && !!OS.getJSDocClassTag(e.declaration) + }) ? (se(n, OS.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, ue(o)), cv(n)) : Ov(n, d, i, a, _) : (u ? se(n, OS.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, ue(o)) : (d = void 0, 1 === n.arguments.length && (i = OS.getSourceFileOfNode(n).text, OS.isLineBreak(i.charCodeAt(OS.skipTrivia(i, n.expression.end, !0) - 1))) && (d = OS.createDiagnosticForNode(n.expression, OS.Diagnostics.Are_you_missing_a_semicolon)), Uv(n.expression, l, 0, d)), cv(n))); + case 211: + return Jv(e, t, r); + case 212: + return a = t, _ = r, o = V((u = e).tag), _e(i = Ql(o)) ? cv(u) : (l = ge(i, 0), d = ge(i, 1).length, jv(o, i, l.length, d) ? sv(u) : l.length ? Ov(u, l, a, _, 0) : (OS.isArrayLiteralExpression(u.parent) ? (o = OS.createDiagnosticForNode(u.tag, OS.Diagnostics.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked), oe.add(o)) : Uv(u.tag, i, 0), cv(u))); + case 167: + return Vv(e, t, r); + case 283: + case 282: + return Wv(e, t, r) + } + var u, _, d; + throw OS.Debug.assertNever(e, "Branch in 'resolveSignature' should be unreachable.") + } + + function Gv(e, t, r) { + var n = H(e), + i = n.resolvedSignature; + if (i && i !== An && !t) return i; + n.resolvedSignature = An; + e = Hv(e, t, r || 0); + return e !== An && (n.resolvedSignature = Un === Kn ? e : i), e + } + + function Qv(e) { + var t; + return !(!e || !OS.isInJSFile(e) || !(t = OS.isFunctionDeclaration(e) || OS.isFunctionExpression(e) ? e : (OS.isVariableDeclaration(e) || OS.isPropertyAssignment(e)) && e.initializer && OS.isFunctionExpression(e.initializer) ? e.initializer : void 0) || !OS.getJSDocClassTag(e) && (OS.isPropertyAssignment(OS.walkUpParenthesizedExpressions(t.parent)) || null == (t = null == (e = G(t)) ? void 0 : e.members) || !t.size)) + } + + function Xv(e, t) { + var r, n; + if (t) return (n = ce(t)).inferredClassSymbol && n.inferredClassSymbol.has(WS(e)) ? n.inferredClassSymbol.get(WS(e)) : ((e = OS.isTransientSymbol(e) ? e : la(e)).exports = e.exports || OS.createSymbolTable(), e.members = e.members || OS.createSymbolTable(), e.flags |= 32 & t.flags, null != (r = t.exports) && r.size && pa(e.exports, t.exports), null != (r = t.members) && r.size && pa(e.members, t.members), (n.inferredClassSymbol || (n.inferredClassSymbol = new OS.Map)).set(WS(e), e), e) + } + + function Yv(e, t) { + if (e.parent) { + var r, n; + if (OS.isVariableDeclaration(e.parent) && e.parent.initializer === e) { + if (!(OS.isInJSFile(e) || OS.isVarConst(e.parent) && OS.isFunctionLikeDeclaration(e))) return; + r = e.parent.name, n = e.parent + } else if (OS.isBinaryExpression(e.parent)) { + var i = e.parent, + a = e.parent.operatorToken.kind; + if (63 !== a || !t && i.right !== e) { + if (!(56 !== a && 60 !== a || (OS.isVariableDeclaration(i.parent) && i.parent.initializer === i ? (r = i.parent.name, n = i.parent) : OS.isBinaryExpression(i.parent) && 63 === i.parent.operatorToken.kind && (t || i.parent.right === i) && (n = r = i.parent.left), r && OS.isBindableStaticNameExpression(r) && OS.isSameEntityName(r, i.left)))) return + } else n = r = i.left + } else t && OS.isFunctionDeclaration(e) && (r = e.name, n = e); + if (n && r && (t || OS.getExpandoInitializer(e, OS.isPrototypeAccess(r)))) return G(n) + } + } + + function Zv(e, t) { + var r, n; + e.declaration && 268435456 & e.declaration.flags && (r = $v(t), t = OS.tryGetPropertyAccessOrIdentifierToString(OS.getInvokedExpression(t)), r = r, n = e.declaration, t = t, e = $o(e), ia(n, t ? OS.createDiagnosticForNode(r, OS.Diagnostics.The_signature_0_of_1_is_deprecated, e, t) : OS.createDiagnosticForNode(r, OS.Diagnostics._0_is_deprecated, e))) + } + + function $v(e) { + switch ((e = OS.skipParentheses(e)).kind) { + case 210: + case 167: + case 211: + return $v(e.expression); + case 212: + return $v(e.tag); + case 283: + case 282: + return $v(e.tagName); + case 209: + return e.argumentExpression; + case 208: + return e.name; + case 180: + var t = e; + return OS.isQualifiedName(t.typeName) ? t.typeName.right : t; + default: + return e + } + } + + function e1(e) { + var t; + if (OS.isCallExpression(e)) return e = e.expression, OS.isPropertyAccessExpression(e) && "for" === e.name.escapedText && (e = e.expression), OS.isIdentifier(e) && "Symbol" === e.escapedText && (t = F_(!1)) ? t === va(e, "Symbol", 111551, void 0, void 0, !1) : void 0 + } + + function t1(e) { + if (function(e) { + if (v === OS.ModuleKind.ES2015) return J(e, OS.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext); + if (e.typeArguments) return J(e, OS.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments); + var t = e.arguments; + if (v !== OS.ModuleKind.ESNext && v !== OS.ModuleKind.NodeNext && v !== OS.ModuleKind.Node16) + if (cS(t), 1 < t.length) return J(t[1], OS.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext); + if (0 === t.length || 2 < t.length) return J(e, OS.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments); + e = OS.find(t, OS.isSpreadElement); + if (e) return J(e, OS.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element) + }(e), 0 !== e.arguments.length) { + for (var t = e.arguments[0], r = u2(t), n = 1 < e.arguments.length ? u2(e.arguments[1]) : void 0, i = 2; i < e.arguments.length; ++i) u2(e.arguments[i]); + (32768 & r.flags || 65536 & r.flags || !xe(r, ne)) && se(t, OS.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0, ue(r)), n && (r = A_(!0)) !== un && gf(n, Og(r, 32768), e.arguments[1]); + n = io(e, t); + if (n) { + r = lo(n, t, !0, !1); + if (r) return P1(e, n1(de(r), r, n, t) || i1(de(r), r, n, t)) + } + } + return P1(e, ee) + } + + function r1(e, t, r) { + var n = OS.createSymbolTable(), + i = B(2097152, "default"); + return i.parent = t, i.nameType = bp("default"), i.aliasTarget = Wa(e), n.set("default", i), Bo(r, n, OS.emptyArray, OS.emptyArray, OS.emptyArray) + } + + function n1(e, t, r, n) { + if (Ma(n) && e && !_e(e)) return (n = e).defaultOnlyType || (e = r1(t, r), n.defaultOnlyType = e), n.defaultOnlyType + } + + function i1(e, t, r, n) { + var i, a; + return b && e && !_e(e) ? ((i = e).syntheticType || (La(null == (a = r.declarations) ? void 0 : a.find(OS.isSourceFile), r, !1, n) ? (n = r1(t, r, a = B(2048, "__type")), a.type = n, i.syntheticType = X0(e) ? pp(e, n, a, 0, !1) : n) : i.syntheticType = e), i.syntheticType) : e + } + + function a1(e) { + var t; + return OS.isRequireCall(e, !0) && (OS.isIdentifier(e.expression) ? (e = va(e.expression, e.expression.escapedText, 111551, void 0, void 0, !0)) === at || (!(2097152 & e.flags) && 0 != (t = 16 & e.flags ? 259 : 3 & e.flags ? 257 : 0) ? (e = OS.getDeclarationOfKind(e, t)) && 16777216 & e.flags : void 0) : OS.Debug.fail()) + } + + function o1(e) { + ! function(e) { + if (e.questionDotToken || 32 & e.flags) return J(e.template, OS.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain); + return + }(e) && dS(e, e.typeArguments), U < 2 && iS(e, 262144); + var t = Gv(e); + return Zv(t, e), me(t) + } + + function s1(t, e, r, n) { + var i = V(r, n); + if (OS.isConstTypeReference(e)) return function e(t) { + switch (t.kind) { + case 10: + case 14: + case 8: + case 9: + case 110: + case 95: + case 206: + case 207: + case 225: + return !0; + case 214: + return e(t.expression); + case 221: + var r = t.operator, + n = t.operand; + return 40 === r && (8 === n.kind || 9 === n.kind) || 39 === r && 8 === n.kind; + case 208: + case 209: + return !!((r = (r = hD(t.expression).symbol) && 2097152 & r.flags ? Ha(r) : r) && 384 & Ga(r) && 1 === Ec(r)) + } + return !1 + }(r) || se(r, OS.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals), hp(i); + Q(e); + var i = Wg(Dg(i)), + a = K(e); + return _e(a) || q(function() { + var e = Xg(i); + pf(a, e) || Sf(i, a, t, OS.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first) + }), a + } + + function c1(e) { + return 32 & e.flags ? (r = V((t = e).expression), jg(Lg(n = Jg(r, t.expression)), t, n !== r)) : Lg(V(e.expression)); + var t, r, n + } + + function l1(c) { + fS(c); + var r, n, e, t = 230 === c.kind ? V(c.expression) : (OS.isThisIdentifier(c.exprName) ? o0 : V)(c.exprName), + i = c.typeArguments; + return t === Hr || _e(t) || !OS.some(i) ? t : (r = !1, e = function i(e) { + var a = !1; + var o = !1; + var t = s(e); + r = r || o; + !a || o || null == n && (n = e); + return t; + + function s(e) { + if (524288 & e.flags) { + var t = Fl(e), + r = l(t.callSignatures), + n = l(t.constructSignatures); + if (a = a || 0 !== t.callSignatures.length || 0 !== t.constructSignatures.length, o = o || 0 !== r.length || 0 !== n.length, r !== t.callSignatures || n !== t.constructSignatures) return (r = Bo(void 0, t.members, r, n, t.indexInfos)).objectFlags |= 8388608, r.node = c, r + } else if (58982400 & e.flags) { + n = Jl(e); + if (n) { + t = s(n); + if (t !== n) return t + } + } else { + if (1048576 & e.flags) return Cy(e, i); + if (2097152 & e.flags) return ve(OS.sameMap(e.types, s)) + } + return e + } + }(t), (t = r ? n : t) && oe.add(OS.createDiagnosticForNodeArray(OS.getSourceFileOfNode(c), i, OS.Diagnostics.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable, ue(t))), e); + + function l(e) { + e = OS.filter(e, function(e) { + return !!e.typeParameters && fv(e, i) + }); + return OS.sameMap(e, function(e) { + var t = Sv(e, i, !0); + return t ? Lu(e, t, OS.isInJSFile(e.declaration)) : e + }) + } + } + + function u1(e) { + var t, r; + return function(e) { + var t = e.name.escapedText; + switch (e.keywordToken) { + case 103: + if ("target" !== t) return J(e.name, OS.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, e.name.escapedText, OS.tokenToString(e.keywordToken), "target"); + break; + case 100: + if ("meta" !== t) J(e.name, OS.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, e.name.escapedText, OS.tokenToString(e.keywordToken), "meta") + } + }(e), 103 === e.keywordToken ? d1(e) : 100 === e.keywordToken ? (t = e, v === OS.ModuleKind.Node16 || v === OS.ModuleKind.NodeNext ? OS.getSourceFileOfNode(t).impliedNodeFormat !== OS.ModuleKind.ESNext && se(t, OS.Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output) : v < OS.ModuleKind.ES2020 && v !== OS.ModuleKind.System && se(t, OS.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext), r = OS.getSourceFileOfNode(t), OS.Debug.assert(!!(4194304 & r.flags), "Containing file is missing import meta node flag."), "meta" === t.name.escapedText ? k_() : R) : OS.Debug.assertNever(e.keywordToken) + } + + function _1(e) { + switch (e.keywordToken) { + case 100: + return N_(); + case 103: + var t = d1(e); + return _e(t) ? R : (t = t, r = B(0, "NewTargetExpression"), (n = B(4, "target", 8)).parent = r, n.type = t, t = OS.createSymbolTable([n]), r.members = t, Bo(r, t, OS.emptyArray, OS.emptyArray, OS.emptyArray)); + default: + OS.Debug.assertNever(e.keywordToken) + } + var r, n + } + + function d1(e) { + var t = OS.getNewTargetContainer(e); + return t ? 173 === t.kind ? de(G(t.parent)) : de(G(t)) : (se(e, OS.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, "new.target"), R) + } + + function p1(e) { + var t = de(e); + if ($) { + e = e.valueDeclaration; + if (e && OS.hasInitializer(e)) return Mg(t) + } + return t + } + + function f1(e) { + return OS.Debug.assert(OS.isIdentifier(e.name)), e.name.escapedText + } + + function g1(e, t, r) { + var n = e.parameters.length - (YS(e) ? 1 : 0); + return t < n ? e.parameters[t].escapedName : (e = e.parameters[n] || L, De(r = r || de(e)) ? (t = t - n, (n = r.target.labeledElementDeclarations) && f1(n[t]) || e.escapedName + "_" + t) : e.escapedName) + } + + function m1(e) { + return e.valueDeclaration && OS.isParameter(e.valueDeclaration) && OS.isIdentifier(e.valueDeclaration.name) + } + + function y1(e) { + return 199 === e.kind || OS.isParameter(e) && e.name && OS.isIdentifier(e.name) + } + + function h1(e, t) { + return v1(e, t) || ee + } + + function v1(e, t) { + var r = e.parameters.length - (YS(e) ? 1 : 0); + if (t < r) return p1(e.parameters[t]); + if (YS(e)) { + e = de(e.parameters[r]), t = t - r; + if (!De(e) || e.target.hasRestElement || t < e.target.fixedLength) return qd(e, xp(t)) + } + } + + function b1(e, t) { + var r = x1(e), + n = D1(e), + i = T1(e); + if (i && r - 1 <= t) return t === r - 1 ? i : z_(qd(i, ie)); + for (var a, o, s, c = [], l = [], u = [], _ = t; _ < r; _++) { + !i || _ < r - 1 ? (c.push(h1(e, _)), l.push(_ < n ? 1 : 2)) : (c.push(i), l.push(8)); + a = _, s = o = void 0, s = (d = e).parameters.length - (YS(d) ? 1 : 0); + var d = a < s ? (o = d.parameters[a].valueDeclaration) && y1(o) ? o : void 0 : De(d = de(o = d.parameters[s] || L)) ? (d = d.target.labeledElementDeclarations) && d[a - s] : o.valueDeclaration && y1(o.valueDeclaration) ? o.valueDeclaration : void 0; + d && u.push(d) + } + return H_(c, l, !1, OS.length(u) === OS.length(c) ? u : void 0) + } + + function x1(e) { + var t = e.parameters.length; + if (YS(e)) { + e = de(e.parameters[t - 1]); + if (De(e)) return t + e.target.fixedLength - (e.target.hasRestElement ? 0 : 1) + } + return t + } + + function D1(e, t) { + var r = 1 & t, + t = 2 & t; + if (t || void 0 === e.resolvedMinArgumentCount) { + var n, i, a = void 0; + if (void 0 === (a = YS(e) && De(i = de(e.parameters[e.parameters.length - 1])) && 0 < (i = (n = OS.findIndex(i.target.elementFlags, function(e) { + return !(1 & e) + })) < 0 ? i.target.fixedLength : n) ? e.parameters.length - 1 + i : a)) { + if (!r && 32 & e.flags) return 0; + a = e.minArgumentCount + } + if (t) return a; + for (var o = a - 1; 0 <= o; o--) { + if (131072 & Sy(h1(e, o), _v).flags) break; + a = o + } + e.resolvedMinArgumentCount = a + } + return e.resolvedMinArgumentCount + } + + function S1(e) { + return !!YS(e) && (!De(e = de(e.parameters[e.parameters.length - 1])) || e.target.hasRestElement) + } + + function T1(e) { + if (YS(e)) { + e = de(e.parameters[e.parameters.length - 1]); + if (!De(e)) return e; + if (e.target.hasRestElement) return X_(e, e.target.fixedLength) + } + } + + function C1(e) { + e = T1(e); + return !e || sg(e) || j(e) || 0 != (131072 & eu(e).flags) ? void 0 : e + } + + function E1(e) { + return k1(e, ae) + } + + function k1(e, t) { + return 0 < e.parameters.length ? h1(e, 0) : t + } + + function N1(e, t) { + var r, n = ce(e); + n.type ? t && OS.Debug.assertEqual(n.type, t, "Parameter symbol already has a cached type which differs from newly assigned type") : (r = e.valueDeclaration, n.type = t || (r ? Ks(r, !0) : de(e)), r && 79 !== r.name.kind && (n.type === te && (n.type = Us(r.name)), function e(t, r) { + for (var n = 0, i = t.elements; n < i.length; n++) { + var a, o = i[n]; + OS.isOmittedExpression(o) || (a = Es(o, r), 79 === o.name.kind ? ce(G(o)).type = a : e(o.name, a)) + } + }(r.name, n.type))) + } + + function A1(e) { + var t = w_(!0); + return t !== mn ? t_(t, [e = ob(rb(e)) || te]) : te + } + + function F1(e) { + var t = I_(!0); + return t !== mn ? t_(t, [e = ob(rb(e)) || te]) : te + } + + function P1(e, t) { + t = A1(t); + return t === te ? (se(e, OS.isImportCall(e) ? OS.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option : OS.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option), R) : (O_(!0) || se(e, OS.isImportCall(e) ? OS.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option : OS.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option), t) + } + + function w1(e, t) { + if (!e.body) return R; + var r, n, i, a, o, s, c = OS.getFunctionFlags(e), + l = 0 != (2 & c), + u = 0 != (1 & c), + _ = Wr; + if (238 !== e.body.kind) r = u2(e.body, t && -9 & t), l && (r = rb($2(r, !1, e, OS.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))); + else if (u) var d = B1(e, t), + d = (d ? 0 < d.length && (r = he(d, 2)) : _ = ae, d = e, n = t, i = [], a = [], o = 0 != (2 & OS.getFunctionFlags(d)), OS.forEachYieldExpression(d.body, function(e) { + var t = e.expression ? V(e.expression, n) : Or; + OS.pushIfUnique(i, O1(e, t, ee, o)), (t = e.asteriskToken ? (t = Yb(t, o ? 19 : 17, e.expression)) && t.nextType : I0(e, void 0)) && OS.pushIfUnique(a, t) + }), { + yieldTypes: i, + nextTypes: a + }), + p = d.yieldTypes, + d = d.nextTypes, + p = OS.some(p) ? he(p, 2) : void 0, + d = OS.some(d) ? ve(d) : void 0; + else { + var t = B1(e, t); + if (!t) return 2 & c ? P1(e, ae) : ae; + if (0 === t.length) return 2 & c ? P1(e, Wr) : Wr; + r = he(t, 2) + } + return (r || p || d) && (p && $g(e, p, 3), r && $g(e, r, 1), d && $g(e, d, 2), (r && vg(r) || p && vg(p) || d && vg(d)) && (t = (c = j0(e)) ? c === Cu(e) ? u ? void 0 : r : P0(me(c), e, void 0) : void 0, u ? (p = Eg(p, t, 0, l), r = Eg(r, t, 1, l), d = Eg(d, t, 2, l)) : (c = t, t = l, r = s = (s = r) && vg(s) ? Cg(s, c ? t ? Z2(c) : c : void 0) : s)), p = p && Xg(p), r = r && Xg(r), d = d && Xg(d)), u ? I1(p || ae, r || _, d || g0(2, e) || te, l) : l ? A1(r || _) : r || _ + } + + function I1(e, t, r, n) { + var i, a, o, n = n ? Rn : Bn, + s = n.getGlobalGeneratorType(!1); + return e = n.resolveIterationType(e, void 0) || te, t = n.resolveIterationType(t, void 0) || te, r = n.resolveIterationType(r, void 0) || te, s === mn ? (a = (o = (i = n.getGlobalIterableIteratorType(!1)) !== mn ? tx(i, n) : void 0) ? o.returnType : ee, o = o ? o.nextType : re, xe(t, a) && xe(o, r) ? i !== mn ? j_(i, [e]) : (n.getGlobalIterableIteratorType(!0), un) : (n.getGlobalGeneratorType(!0), un)) : j_(s, [e, t, r]) + } + + function O1(e, t, r, n) { + var i = e.expression || e, + r = e.asteriskToken ? Wb(n ? 19 : 17, t, r, i) : t; + return n ? ab(r, i, e.asteriskToken ? OS.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member : OS.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member) : r + } + + function M1(e, t, r) { + for (var n = 0, i = 0; i < r.length; i++) { + var a = i < e || t <= i ? r[i] : void 0; + n |= void 0 !== a ? JS.get(a) || 32768 : 0 + } + return n + } + + function L1(e) { + var t = H(e); + return void 0 === t.isExhaustive ? (t.isExhaustive = 0, e = function(e) { + { + var t; + if (218 === e.expression.kind) return !!(i = hy(e)) && (r = zl(u2(e.expression.expression)), t = M1(0, 0, i), 3 & r.flags ? 556800 == (556800 & t) : !xy(r, function(e) { + return (ry(e) & t) === t + })) + } + var r, n, i = u2(e.expression); + return !!xg(i) && !(!(r = yy(e)).length || OS.some(r, hg)) && (e = Cy(i, hp), n = r, 1048576 & e.flags ? !OS.forEach(e.types, function(e) { + return !OS.contains(n, e) + }) : OS.contains(n, e)) + }(e), 0 === t.isExhaustive && (t.isExhaustive = e)) : 0 === t.isExhaustive && (t.isExhaustive = !1), t.isExhaustive + } + + function R1(e) { + return e.endFlowNode && Uy(e.endFlowNode) + } + + function B1(t, r) { + var n = OS.getFunctionFlags(t), + i = [], + a = R1(t), + o = !1; + if (OS.forEachReturnStatement(t.body, function(e) { + var e = e.expression; + e ? (e = u2(e, r && -9 & r), 131072 & (e = 2 & n ? rb($2(e, !1, t, OS.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)) : e).flags && (o = !0), OS.pushIfUnique(i, e)) : a = !0 + }), 0 !== i.length || a || !o && ! function(e) { + switch (e.kind) { + case 215: + case 216: + return 1; + case 171: + return 207 === e.parent.kind; + default: + return + } + }(t)) return !($ && i.length && a) || Qv(t) && i.some(function(e) { + return e.symbol === t.symbol + }) || OS.pushIfUnique(i, re), i + } + + function j1(n, i) { + q(function() { + var e = OS.getFunctionFlags(n), + e = i && mx(i, e); + if ((!e || !X1(e, 16385)) && 170 !== n.kind && !OS.nodeIsMissing(n.body) && 238 === n.body.kind && R1(n)) { + var t = 512 & n.flags, + r = OS.getEffectiveReturnTypeNode(n) || n; + if (e && 131072 & e.flags) se(r, OS.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point); + else if (e && !t) se(r, OS.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value); + else if (e && $ && !xe(re, e)) se(r, OS.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined); + else if (Z.noImplicitReturns) { + if (!e) { + if (!t) return; + e = me(Cu(n)); + if (yx(n, e)) return + } + se(r, OS.Diagnostics.Not_all_code_paths_return_a_value) + } + } + }) + } + + function J1(e, t) { + if (OS.Debug.assert(171 !== e.kind || OS.isObjectLiteralMethod(e)), nD(e), OS.isFunctionExpression(e) && wb(e, e.name), t && 4 & t && rf(e)) { + if (!OS.getEffectiveReturnTypeNode(e) && !OS.hasContextSensitiveParameters(e)) { + var r = J0(e); + if (r && lm(me(r))) return (r = H(e)).contextFreeType || (o = w1(e, t), o = $c(void 0, void 0, void 0, OS.emptyArray, o, void 0, 0, 0), (o = Bo(e.symbol, E, [o], OS.emptyArray, OS.emptyArray)).objectFlags |= 262144, r.contextFreeType = o) + } + return yn + } + _S(e) || 215 !== e.kind || mS(e); + var n, i, a, r = e, + o = t, + t = H(r); + if (!(1024 & t.flags || (n = J0(r), 1024 & t.flags)) && (t.flags |= 1024, t = OS.firstOrUndefined(ge(de(G(r)), 0)))) { + if (rf(r)) + if (n) s = O0(r), i = void 0, i = (i = o && 2 & o && (function(e, t, r) { + for (var n = e.parameters.length - (YS(e) ? 1 : 0), i = 0; i < n; i++) { + var a = e.parameters[i].valueDeclaration; + a.type && (a = OS.getEffectiveTypeAnnotationNode(a)) && km(r.inferences, K(a), h1(t, i)) + } + }(t, n, s), a = T1(n)) && 262144 & a.flags ? Kp(n, s.nonFixingMapper) : i) || (s ? Kp(n, s.mapper) : n), + function(e, t) { + if (t.typeParameters) { + if (e.typeParameters) return; + e.typeParameters = t.typeParameters + } + t.thisParameter && (!(i = e.thisParameter) || i.valueDeclaration && !i.valueDeclaration.type) && (i || (e.thisParameter = qg(t.thisParameter, void 0)), N1(e.thisParameter, de(t.thisParameter))); + for (var r = e.parameters.length - (YS(e) ? 1 : 0), n = 0; n < r; n++) { + var i = e.parameters[n]; + OS.getEffectiveTypeAnnotationNode(i.valueDeclaration) || N1(i, v1(t, n)) + } + YS(e) && ((i = OS.last(e.parameters)).valueDeclaration ? !OS.getEffectiveTypeAnnotationNode(i.valueDeclaration) : 65536 & OS.getCheckFlags(i)) && N1(i, b1(t, r)) + }(t, i); + else { + var s = t; + s.thisParameter && N1(s.thisParameter); + for (var c = 0, l = s.parameters; c < l.length; c++) N1(l[c]) + }!n || Iu(r) || t.resolvedReturnType || (a = w1(r, o), t.resolvedReturnType) || (t.resolvedReturnType = a), P2(r) + } + return de(G(e)) + } + + function z1(e, t, r, n) { + return void 0 === n && (n = !1), !!xe(t, en) || (na(e, !!(e = n && Y2(t)) && xe(e, en), r), !1) + } + + function U1(e) { + if (!OS.isCallExpression(e)) return !1; + if (!OS.isBindableObjectDefinePropertyCall(e)) return !1; + e = u2(e.arguments[2]); + if (ys(e, "value")) { + var t = fe(e, "writable"), + r = t && de(t); + if (!r || r === Jr || r === zr) return !0; + if (t && t.valueDeclaration && OS.isPropertyAssignment(t.valueDeclaration)) { + r = V(t.valueDeclaration.initializer); + if (r === Jr || r === zr) return !0 + } + return !1 + } + return !fe(e, "set") + } + + function K1(e) { + return !!(8 & OS.getCheckFlags(e) || 4 & e.flags && 64 & OS.getDeclarationModifierFlagsFromSymbol(e) || 3 & e.flags && 2 & hh(e) || 98304 & e.flags && !(65536 & e.flags) || 8 & e.flags || OS.some(e.declarations, U1)) + } + + function V1(e, t, r) { + if (0 !== r) { + if (K1(t)) { + if (4 & t.flags && OS.isAccessExpression(e) && 108 === e.expression.kind) { + var n, i, r = OS.getContainingFunction(e); + if (!r || 173 !== r.kind && !Qv(r)) return 1; + if (t.valueDeclaration) return a = OS.isBinaryExpression(t.valueDeclaration), o = r.parent === t.valueDeclaration.parent, n = r === t.valueDeclaration.parent, i = a && (null == (i = t.parent) ? void 0 : i.valueDeclaration) === r.parent, t = a && (null == (a = t.parent) ? void 0 : a.valueDeclaration) === r, !(o || n || i || t) + } + return 1 + } + if (OS.isAccessExpression(e)) { + var a = OS.skipParentheses(e.expression); + if (79 === a.kind) { + var o, r = H(a).resolvedSymbol; + if (2097152 & r.flags) return (o = ka(r)) && 271 === o.kind + } + } + } + } + + function q1(e, t, r) { + var n = OS.skipOuterExpressions(e, 7); + if (79 === n.kind || OS.isAccessExpression(n)) { + if (!(32 & n.flags)) return 1; + se(e, r) + } else se(e, t) + } + + function W1(e) { + V(e.expression); + var t, r, n, e = OS.skipParentheses(e.expression); + return OS.isAccessExpression(e) ? (OS.isPropertyAccessExpression(e) && OS.isPrivateIdentifier(e.name) && se(e, OS.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier), (r = Eo(H(e).resolvedSymbol)) && (K1(r) && se(e, OS.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property), t = e, n = de(r = r), !$ || 131075 & n.flags || (Ee ? 16777216 & r.flags : 16777216 & ry(n)) || se(t, OS.Diagnostics.The_operand_of_a_delete_operator_must_be_optional))) : se(e, OS.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference), Vr + } + + function H1(a) { + q(function() { + var e, t = a, + r = OS.getContainingFunctionOrClassStaticBlock(t); + if (r && OS.isClassStaticBlockDeclaration(r)) se(t, OS.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block); + else if (!(32768 & t.flags)) + if (OS.isInTopLevelContext(t)) { + if (!ES(e = OS.getSourceFileOfNode(t))) { + var n, i = void 0; + switch (OS.isEffectiveExternalModule(e, Z) || (null == i && (i = OS.getSpanOfTokenAtPosition(e, t.pos)), n = OS.createFileDiagnostic(e, i.start, i.length, OS.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module), oe.add(n)), v) { + case OS.ModuleKind.Node16: + case OS.ModuleKind.NodeNext: + if (e.impliedNodeFormat === OS.ModuleKind.CommonJS) { + null != i || (i = OS.getSpanOfTokenAtPosition(e, t.pos)), oe.add(OS.createFileDiagnostic(e, i.start, i.length, OS.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)); + break + } + case OS.ModuleKind.ES2022: + case OS.ModuleKind.ESNext: + case OS.ModuleKind.System: + if (4 <= U) break; + default: + null != i || (i = OS.getSpanOfTokenAtPosition(e, t.pos)), oe.add(OS.createFileDiagnostic(e, i.start, i.length, OS.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher)) + } + } + } else ES(e = OS.getSourceFileOfNode(t)) || (i = OS.getSpanOfTokenAtPosition(e, t.pos), n = OS.createFileDiagnostic(e, i.start, i.length, OS.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules), r && 173 !== r.kind && 0 == (2 & OS.getFunctionFlags(r)) && (r = OS.createDiagnosticForNode(r, OS.Diagnostics.Did_you_mean_to_mark_this_function_as_async), OS.addRelatedInfo(n, r)), oe.add(n)); + f0(t) && se(t, OS.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer) + }); + var e = V(a.expression), + t = $2(e, !0, a, OS.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member); + return t !== e || _e(t) || 3 & e.flags || ta(!1, OS.createDiagnosticForNode(a, OS.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)), t + } + + function G1(e) { + return X1(e, 2112) ? Y1(e, 3) || X1(e, 296) ? en : jr : ie + } + + function Q1(e, t) { + return X1(e, t) || (e = zl(e)) && X1(e, t) + } + + function X1(e, t) { + if (e.flags & t) return !0; + if (3145728 & e.flags) + for (var r = 0, n = e.types; r < n.length; r++) + if (X1(n[r], t)) return !0; + return !1 + } + + function Y1(e, t, r) { + return !!(e.flags & t) || !(r && 114691 & e.flags) && (!!(296 & t) && xe(e, ie) || !!(2112 & t) && xe(e, jr) || !!(402653316 & t) && xe(e, ne) || !!(528 & t) && xe(e, Vr) || !!(16384 & t) && xe(e, Wr) || !!(131072 & t) && xe(e, ae) || !!(65536 & t) && xe(e, Rr) || !!(32768 & t) && xe(e, re) || !!(4096 & t) && xe(e, qr) || !!(67108864 & t) && xe(e, Xr)) + } + + function Z1(e, t, r) { + return 1048576 & e.flags ? OS.every(e.types, function(e) { + return Z1(e, t, r) + }) : Y1(e, t, r) + } + + function $1(e) { + return 16 & OS.getObjectFlags(e) && e.symbol && e2(e.symbol) + } + + function e2(e) { + return 0 != (128 & e.flags) + } + + function t2(e, t, r, n) { + return r === Hr || n === Hr ? Hr : (OS.isPrivateIdentifier(e) ? (U < 99 && iS(e, 2097152), !H(e).resolvedSymbol && OS.getContainingClass(e) && Kh(e, n, Jh(e, n.symbol, !0))) : gf(Ah(r, e), Zr, e), gf(Ah(n, t), Xr, t) && xy(n, function(e) { + return e === fn || !!(2097152 & e.flags) && OS.some(e.types, Nf) + }) && se(t, OS.Diagnostics.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator, ue(n)), Vr) + } + + function r2(e, t, r, n, i) { + void 0 === i && (i = !1); + var a, o, e = e.properties, + s = e[r]; + if (299 === s.kind || 300 === s.kind) return zc(o = hd(a = s.name)) && (d = fe(t, Wc(o))) && (Zh(d, s, i), bh(s, !1, !0, t, d)), d = Ds(s, qd(t, o, 32, a)), i2(300 === s.kind ? s : s.initializer, d); + if (301 === s.kind) { + if (!(r < e.length - 1)) { + U < 99 && iS(s, 4); + var c = []; + if (n) + for (var l = 0, u = n; l < u.length; l++) { + var _ = u[l]; + OS.isSpreadAssignment(_) || c.push(_.name) + } + var d = vs(t, c, t.symbol); + return cS(n, OS.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma), i2(s.expression, d) + } + se(s, OS.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern) + } else se(s, OS.Diagnostics.Property_assignment_expected) + } + + function n2(e, t, r, n, i) { + var a = e.elements, + o = a[r]; + if (229 !== o.kind) { + if (227 !== o.kind) return s = xp(r), dg(t) ? (s = Hd(t, s, 32 | (z0(o) ? 16 : 0), Nv(o, s)) || R, i2(o, Ds(o, z0(o) ? ny(s, 524288) : s), i)) : i2(o, n, i); + if (r < a.length - 1) se(o, OS.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); + else { + var s = o.expression; + if (223 !== s.kind || 63 !== s.operatorToken.kind) return cS(e.elements, OS.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma), i2(s, Dy(t, De) ? Cy(t, function(e) { + return X_(e, r) + }) : z_(n), i); + se(s.operatorToken, OS.Diagnostics.A_rest_element_cannot_have_an_initializer) + } + } + } + + function i2(e, t, r, n) { + var i, a, o, s = 300 === e.kind ? ((s = e).objectAssignmentInitializer && (!$ || 16777216 & ry(V(s.objectAssignmentInitializer)) || (t = ny(t, 524288)), function(e, t, r, n, i) { + var a = t.kind; + if (63 === a && (207 === e.kind || 206 === e.kind)) return i2(e, V(r, n), n, 108 === r.kind); + a = (55 === a || 56 === a || 60 === a ? Ub : V)(e, n); + n = V(r, n); + o2(e, t, r, a, n, i) + }(s.name, s.equalsToken, s.objectAssignmentInitializer, r)), e.name) : e; + if (223 === s.kind && 63 === s.operatorToken.kind && (T(s, r), s = s.left, $) && (t = ny(t, 524288)), 207 === s.kind) { + var c = s, + l = t, + u = n, + _ = c.properties; + if ($ && 0 === _.length) return Ah(l, c); + for (var d = 0; d < _.length; d++) r2(c, l, d, _, u); + return l + } + if (206 !== s.kind) return e = t, i = V(n = s, i = r), a = 301 === n.parent.kind ? OS.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access : OS.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access, o = 301 === n.parent.kind ? OS.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access : OS.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access, q1(n, a, o) && mf(e, i, n, n), OS.isPrivateIdentifierPropertyAccessExpression(n) && iS(n.parent, 1048576), e; + for (var p = s, f = t, g = r, m = p.elements, y = (U < 2 && Z.downlevelIteration && iS(p, 512), Wb(193, f, re, p) || R), h = Z.noUncheckedIndexedAccess ? void 0 : y, v = 0; v < m.length; v++) { + var b = y; + n2(p, f, v, b = 227 === p.elements[v].kind ? h = null != h ? h : Wb(65, f, re, p) || R : b, g) + } + return f + } + + function a2(e, t) { + return 0 != (98304 & t.flags) || pf(e, t) + } + + function o2(n, a, i, o, s, c) { + var e, t, r, l, u, _, d = a.kind; + switch (d) { + case 41: + case 42: + case 66: + case 67: + case 43: + case 68: + case 44: + case 69: + case 40: + case 65: + case 47: + case 70: + case 48: + case 71: + case 49: + case 72: + case 51: + case 74: + case 52: + case 78: + case 50: + case 73: + if (o === Hr || s === Hr) return Hr; + o = Ah(o, n), s = Ah(s, i); + var p = void 0; + if (528 & o.flags && 528 & s.flags && void 0 !== (p = function(e) { + switch (e) { + case 51: + case 74: + return 56; + case 52: + case 78: + return 37; + case 50: + case 73: + return 55; + default: + return + } + }(a.kind))) return se(c || a, OS.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, OS.tokenToString(a.kind), OS.tokenToString(p)), ie; + var f, p = z1(n, o, OS.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type, !0), + g = z1(i, s, OS.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type, !0); + if (Y1(o, 3) && Y1(s, 3) || !X1(o, 2112) && !X1(s, 2112)) f = ie; + else if (T(o, s)) { + switch (d) { + case 49: + case 72: + N(); + break; + case 42: + case 67: + U < 3 && se(c, OS.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later) + } + f = jr + } else N(T), f = R; + return p && g && E(f), f; + case 39: + case 64: + if (o === Hr || s === Hr) return Hr; + Y1(o, 402653316) || Y1(s, 402653316) || (o = Ah(o, n), s = Ah(s, i)); + p = void 0; + if (Y1(o, 296, !0) && Y1(s, 296, !0) ? p = ie : Y1(o, 2112, !0) && Y1(s, 2112, !0) ? p = jr : Y1(o, 402653316, !0) || Y1(s, 402653316, !0) ? p = ne : (j(o) || j(s)) && (p = _e(o) || _e(s) ? R : ee), !p || C(d)) { + if (!p) return N(function(e, t) { + return Y1(e, 402655727) && Y1(t, 402655727) + }), ee; + 64 === d && E(p) + } + return p; + case 29: + case 31: + case 32: + case 33: + return C(d) && (o = Dg(Ah(o, n)), s = Dg(Ah(s, i)), k(function(e, t) { + return pf(e, t) || pf(t, e) || xe(e, en) && xe(t, en) + })), Vr; + case 34: + case 35: + case 36: + case 37: + return (OS.isLiteralExpressionOfObject(n) || OS.isLiteralExpressionOfObject(i)) && se(c, OS.Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, 34 === d || 36 === d ? "false" : "true"), g = c, f = d, p = n, l = i, u = A(OS.skipParentheses(p)), _ = A(OS.skipParentheses(l)), (u || _) && (g = se(g, OS.Diagnostics.This_condition_will_always_return_0, OS.tokenToString(36 === f || 34 === f ? 95 : 110)), u && _ || (_ = 37 === f || 35 === f ? OS.tokenToString(53) : "", f = u ? l : p, u = OS.skipParentheses(f), OS.addRelatedInfo(g, OS.createDiagnosticForNode(f, OS.Diagnostics.Did_you_mean_0, "".concat(_, "Number.isNaN(").concat(OS.isEntityNameExpression(u) ? OS.entityNameToString(u) : "...", ")"))))), k(function(e, t) { + return a2(e, t) || a2(t, e) + }), Vr; + case 102: + return l = n, _ = i, u = s, (m = o) === Hr || u === Hr ? Hr : (!j(m) && Z1(m, 131068) && se(l, OS.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter), j(u) || DD(u) || _f(u, gt) || se(_, OS.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type), Vr); + case 101: + return t2(n, i, o, s); + case 55: + case 76: + var m = 4194304 & ry(o) ? he([Cy($ ? o : Dg(s), Ig), s]) : o; + return 76 === d && E(s), m; + case 56: + case 75: + var y = 8388608 & ry(o) ? he([Lg(wg(o)), s], 2) : o; + return 75 === d && E(s), y; + case 60: + case 77: + y = 262144 & ry(o) ? he([Lg(o), s], 2) : o; + return 77 === d && E(s), y; + case 63: + var y = OS.isBinaryExpression(n.parent) ? OS.getAssignmentDeclarationKind(n.parent) : 0, + h = s; + if (2 === y) + for (var v = 0, b = Pl(h); v < b.length; v++) { + var x, D = b[v], + S = de(D); + S.symbol && 32 & S.symbol.flags && (S = D.escapedName, null != (x = va(D.valueDeclaration, S, 788968, void 0, S, !1))) && x.declarations && x.declarations.some(OS.isJSDocTypedefTag) && (_a(x, OS.Diagnostics.Duplicate_identifier_0, OS.unescapeLeadingUnderscores(S), D), _a(D, OS.Diagnostics.Duplicate_identifier_0, OS.unescapeLeadingUnderscores(S), x)) + } + return function(e) { + switch (e) { + case 2: + return 1; + case 1: + case 5: + case 6: + case 3: + case 4: + var t = G(n), + r = OS.getAssignedExpandoInitializer(i); + return r && OS.isObjectLiteralExpression(r) && null != (r = null == t ? void 0 : t.exports) && r.size; + default: + return + } + }(y) ? (524288 & s.flags && (2 === y || 6 === y || kf(s) || ty(s) || 1 & OS.getObjectFlags(s)) || E(s), o) : (E(s), Wg(s)); + case 27: + return Z.allowUnreachableCode || ! function e(t) { + switch ((t = OS.skipParentheses(t)).kind) { + case 79: + case 10: + case 13: + case 212: + case 225: + case 14: + case 8: + case 9: + case 110: + case 95: + case 104: + case 155: + case 215: + case 228: + case 216: + case 206: + case 207: + case 218: + case 232: + case 282: + case 281: + return !0; + case 224: + return e(t.whenTrue) && e(t.whenFalse); + case 223: + return !OS.isAssignmentOperator(t.operatorToken.kind) && e(t.left) && e(t.right); + case 221: + case 222: + switch (t.operator) { + case 53: + case 39: + case 40: + case 54: + return !0 + } + return !1; + default: + return !1 + } + }(n) || 79 === (h = i).kind && "eval" === h.escapedText || (t = (e = OS.getSourceFileOfNode(n)).text, r = OS.skipTrivia(t, n.pos), e.parseDiagnostics.some(function(e) { + return e.code === OS.Diagnostics.JSX_expressions_must_have_one_parent_element.code && OS.textSpanContainsPosition(e, r) + })) || se(n, OS.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects), s; + default: + return OS.Debug.fail() + } + + function T(e, t) { + return Y1(e, 2112) && Y1(t, 2112) + } + + function C(e) { + var t = Q1(o, 12288) ? n : Q1(s, 12288) ? i : void 0; + if (!t) return 1; + se(t, OS.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, OS.tokenToString(e)) + } + + function E(r) { + OS.isAssignmentOperator(d) && q(function() { + { + var e, t; + !q1(n, OS.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access, OS.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access) || OS.isIdentifier(n) && "exports" === OS.unescapeLeadingUnderscores(n.escapedText) || (e = void 0, Ee && OS.isPropertyAccessExpression(n) && X1(r, 32768) && (t = ys(C2(n.expression), n.name.escapedText), jf(r, t)) && (e = OS.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target), mf(r, o, n, i, e)) + } + }) + } + + function k(e) { + e(o, s) || N(e) + } + + function N(e) { + var t = !1, + r = c || a, + n = (e && (n = ob(o), i = ob(s), t = !(n === o && i === s) && !(!n || !i) && e(n, i)), o), + i = s, + e = (!t && e && (n = (e = function(e, t, r) { + var n = e, + i = t, + e = Dg(e), + t = Dg(t); + r(e, t) || (n = e, i = t); + return [n, i] + }(o, s, e))[0], i = e[1]), es(n, i)), + n = e[0], + i = e[1]; + ! function(e, t, r, n) { + switch (a.kind) { + case 36: + case 34: + case 37: + case 35: + return na(e, t, OS.Diagnostics.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap, r, n); + default: + return + } + }(r, t, n, i) && na(r, t, OS.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2, OS.tokenToString(a.kind), n, i) + } + + function A(e) { + return !(!OS.isIdentifier(e) || "NaN" !== e.escapedText || (tr = tr || D_("NaN", !1), !tr) || tr !== Bm(e)) + } + } + + function s2(e) { + for (var t = [e.head.text], r = [], n = 0, i = e.templateSpans; n < i.length; n++) { + var a = i[n], + o = V(a.expression); + Q1(o, 12288) && se(a.expression, OS.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String), t.push(a.literal.text), r.push(xe(o, tn) ? o : ne) + } + return g2(e) || function e(t) { + var r = t.parent; + return OS.isParenthesizedExpression(r) && e(r) || OS.isElementAccessExpression(r) && r.argumentExpression === t + }(e) || xy(I0(e, void 0) || te, c2) ? Cd(t, r) : ne + } + + function c2(e) { + return !!(134217856 & e.flags || 58982400 & e.flags && X1(Jl(e) || te, 402653316)) + } + + function l2(e, t, r, n) { + var i = 289 !== (i = e).kind || OS.isJsxSelfClosingElement(i.parent) ? i : i.parent.parent, + a = i.contextualType, + o = i.inferenceContext; + try { + i.contextualType = t; + var s = V(e, 1 | n | ((i.inferenceContext = r) ? 2 : 0)); + return r && r.intraExpressionInferenceSites && (r.intraExpressionInferenceSites = void 0), X1(s, 2944) && f2(s, P0(t, e, void 0)) ? hp(s) : s + } finally { + i.contextualType = a, i.inferenceContext = o + } + } + + function u2(e, t) { + var r, n, i; + return t && 0 !== t ? V(e, t) : ((r = H(e)).resolvedType || (n = Un, i = ar, Un = Kn, ar = void 0, r.resolvedType = V(e, t), ar = i, Un = n), r.resolvedType) + } + + function _2(e) { + return 213 === (e = OS.skipParentheses(e, !0)).kind || 231 === e.kind || OS.isJSDocTypeAssertion(e) + } + + function d2(e, t, r) { + var n = OS.getEffectiveInitializer(e), + r = E2(n) || (r ? l2(n, r, void 0, t || 0) : u2(n, t)); + if (OS.isParameter(e) && 204 === e.name.kind && De(r) && !r.target.hasRestElement && i_(r) < e.name.elements.length) { + for (var n = r, i = e.name.elements, a = ye(n).slice(), o = n.target.elementFlags.slice(), s = i_(n); s < i.length; s++) { + var c = i[s]; + (s < i.length - 1 || 205 !== c.kind || !c.dotDotDotToken) && (a.push(!OS.isOmittedExpression(c) && z0(c) ? Js(c, !1, !1) : ee), o.push(2), OS.isOmittedExpression(c) || z0(c) || Zg(c, ee)) + } + return H_(a, o, n.target.readonly) + } + return r + } + + function p2(e, t) { + t = 2 & OS.getCombinedNodeFlags(e) || OS.isDeclarationReadonly(e) ? t : Sg(t); + if (OS.isInJSFile(e)) { + if (fg(t)) return Zg(e, ee), ee; + if (gg(t)) return Zg(e, Ct), Ct + } + return t + } + + function f2(t, e) { + var r; + return !!e && (3145728 & e.flags ? (r = e.types, OS.some(r, function(e) { + return f2(t, e) + })) : 58982400 & e.flags ? X1(r = Jl(e) || te, 4) && X1(t, 128) || X1(r, 8) && X1(t, 256) || X1(r, 64) && X1(t, 2048) || X1(r, 4096) && X1(t, 8192) || f2(t, r) : !!(406847616 & e.flags && X1(t, 128) || 256 & e.flags && X1(t, 256) || 2048 & e.flags && X1(t, 2048) || 512 & e.flags && X1(t, 512) || 8192 & e.flags && X1(t, 8192))) + } + + function g2(e) { + e = e.parent; + return OS.isAssertionExpression(e) && OS.isConstTypeReference(e.type) || OS.isJSDocTypeAssertion(e) && OS.isConstTypeReference(OS.getJSDocTypeAssertionType(e)) || (OS.isParenthesizedExpression(e) || OS.isArrayLiteralExpression(e) || OS.isSpreadElement(e)) && g2(e) || (OS.isPropertyAssignment(e) || OS.isShorthandPropertyAssignment(e) || OS.isTemplateSpan(e)) && g2(e.parent) + } + + function m2(e, t, r, n) { + t = V(e, t, n); + return g2(e) || OS.isCommonJsExportedExpression(e) ? hp(t) : _2(e) ? t : Cg(t, P0(2 === arguments.length ? I0(e, void 0) : r, e, void 0)) + } + + function y2(e, t) { + return 164 === e.name.kind && q0(e.name), m2(e.initializer, t) + } + + function h2(e, t) { + return DS(e), 164 === e.name.kind && q0(e.name), v2(e, J1(e, t), t) + } + + function v2(e, t, r) { + if (r && 10 & r) { + var n = yv(t, 0, !0), + i = yv(t, 1, !0), + i = n || i; + if (i && i.typeParameters) { + var a = F0(e, 2); + if (a) { + a = yv(Lg(a), n ? 0 : 1, !1); + if (a && !a.typeParameters) { + if (8 & r) return b2(e, r), yn; + n = O0(e), r = n.signature && me(n.signature), e = r && mv(r); + if (e && !e.typeParameters && !OS.every(n.inferences, x2)) { + var r = function(e, t) { + for (var r, n, i = [], a = 0, o = t; a < o.length; a++) { + var s = (c = o[a]).symbol.escapedName; + S2(e.inferredTypeParameters, s) || S2(i, s) ? ((s = Io(B(262144, function(e, t) { + var r = t.length; + for (; 1 < r && 48 <= t.charCodeAt(r - 1) && t.charCodeAt(r - 1) <= 57;) r--; + for (var n = t.slice(0, r), i = 1;; i++) { + 1; { + var a = n + i; + if (!S2(e, a)) return a + } + } + }(OS.concatenate(e.inferredTypeParameters, i), s)))).target = c, r = OS.append(r, c), n = OS.append(n, s), i.push(s)) : i.push(c) + } + if (n) + for (var c, l = wp(r, n), u = 0, _ = n; u < _.length; u++)(c = _[u]).mapper = l; + return i + }(n, i.typeParameters), + e = Ru(i, r), + o = OS.map(n.inferences, function(e) { + return om(e.typeParameter) + }); + if (em(e, a, function(e, t) { + km(o, e, t, 0, !0) + }), OS.some(o, x2) && (tm(e, a, function(e, t) { + km(o, e, t) + }), ! function(e, t) { + for (var r = 0; r < e.length; r++) + if (x2(e[r]) && x2(t[r])) return 1; + return + }(n.inferences, o))) { + for (var s = n.inferences, c = o, l = 0; l < s.length; l++) !x2(s[l]) && x2(c[l]) && (s[l] = c[l]); + return n.inferredTypeParameters = OS.concatenate(n.inferredTypeParameters, r), zu(e) + } + } + return zu(hv(i, a, n)) + } + } + } + } + return t + } + + function b2(e, t) { + 2 & t && (O0(e).flags |= 4) + } + + function x2(e) { + return !(!e.candidates && !e.contraCandidates) + } + + function D2(e) { + return !!(e.candidates || e.contraCandidates || Wl(e.typeParameter)) + } + + function S2(e, t) { + return OS.some(e, function(e) { + return e.symbol.escapedName === t + }) + } + + function T2(e) { + e = gv(e); + if (e && !e.typeParameters) return me(e) + } + + function C2(e) { + var t = E2(e); + if (t) return t; + if (134217728 & e.flags && ar) { + t = ar[qS(e)]; + if (t) return t + } + var t = Wn, + r = V(e); + return Wn !== t && (ar = ar || [], ar[qS(e)] = r, OS.setNodeFlags(e, 134217728 | e.flags)), r + } + + function E2(e) { + var t, r, n, i = OS.skipParentheses(e, !0); + if (OS.isJSDocTypeAssertion(i)) { + var a = OS.getJSDocTypeAssertionType(i); + if (!OS.isConstTypeReference(a)) return K(a) + } + if (i = OS.skipParentheses(e), !OS.isCallExpression(i) || 106 === i.expression.kind || OS.isRequireCall(i, !0) || e1(i)) { + if (OS.isAssertionExpression(i) && !OS.isConstTypeReference(i.type)) return K(i.type); + if (8 === e.kind || 10 === e.kind || 110 === e.kind || 95 === e.kind) return V(e) + } else if (a = OS.isCallChain(i) ? (t = V((e = i).expression), r = Jg(t, e.expression), (n = T2(t)) && jg(n, e, r !== t)) : T2(Sh(i.expression))) return a + } + + function k2(e) { + var t = H(e); + if (t.contextFreeType) return t.contextFreeType; + var r = e.contextualType; + e.contextualType = ee; + try { + return t.contextFreeType = V(e, 4) + } finally { + e.contextualType = r + } + } + + function V(e, t, r) { + null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.push("check", "checkExpression", { + kind: e.kind, + pos: e.pos, + end: e.end, + path: e.tracingPath + }); + var n = Se, + r = (d = 0, function(e, t, r) { + var n = e.kind; + if (f) switch (n) { + case 228: + case 215: + case 216: + f.throwIfCancellationRequested() + } + switch (n) { + case 79: + return e0(e, t); + case 80: + return Mh(e); + case 108: + return o0(e); + case 106: + return l0(e); + case 104: + return Br; + case 14: + case 10: + return yp(bp(e.text)); + case 8: + return PS(e), yp(xp(+e.text)); + case 9: + return function(e) { + if (!(OS.isLiteralTypeNode(e.parent) || OS.isPrefixUnaryExpression(e.parent) && OS.isLiteralTypeNode(e.parent.parent)) && U < 7 && J(e, OS.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)) return + }(e), yp(Dp({ + negative: !1, + base10Value: OS.parsePseudoBigInt(e.text) + })); + case 110: + return Ur; + case 95: + return Jr; + case 225: + return s2(e); + case 13: + return St; + case 206: + return U0(e, t, r); + case 207: + return Q0(e, t); + case 208: + return Ph(e, t); + case 163: + return wh(e, t); + case 209: + return iv(e, t); + case 210: + if (100 === e.expression.kind) return t1(e); + case 211: + return function(e, t) { + if (dS(e, e.typeArguments), (t = Gv(e, void 0, t)) === An) return Hr; + if (Zv(t, e), 106 === e.expression.kind) return Wr; + if (211 === e.kind) { + var r = t.declaration; + if (r && 173 !== r.kind && 177 !== r.kind && 182 !== r.kind && !OS.isJSDocConstructSignature(r) && !Qv(r)) return Te && se(e, OS.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type), ee + } + if (OS.isInJSFile(e) && a1(e)) return Au(e.arguments[0]); + if (12288 & (r = me(t)).flags && e1(e)) return Sp(OS.walkUpParenthesizedExpressions(e.parent)); + if (210 === e.kind && !e.questionDotToken && 241 === e.parent.kind && 16384 & r.flags && Pu(t) && (OS.isDottedName(e.expression) ? Jy(e) || (t = se(e.expression, OS.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation), jy(e.expression, t)) : se(e.expression, OS.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name)), OS.isInJSFile(e)) { + t = Yv(e, !1); + if (null != (e = null == t ? void 0 : t.exports) && e.size) return (e = Bo(t, t.exports, OS.emptyArray, OS.emptyArray, OS.emptyArray)).objectFlags |= 4096, ve([r, e]) + } + return r + }(e, t); + case 212: + return o1(e); + case 214: + return function(e, t) { + { + var r; + if (OS.hasJSDocNodes(e) && OS.isJSDocTypeAssertion(e)) return s1(r = OS.getJSDocTypeAssertionType(e), r, e.expression, t) + } + return V(e.expression, t) + }(e, t); + case 228: + return function(e) { + return Ex(e), nD(e), de(G(e)) + }(e); + case 215: + case 216: + return J1(e, t); + case 218: + return function(e) { + return V(e.expression), vi + }(e); + case 213: + case 231: + return function(e) { + var t; + return 213 === e.kind && (t = OS.getSourceFileOfNode(e)) && OS.fileExtensionIsOneOf(t.fileName, [".cts", ".mts"]) && J(e, OS.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead), s1(e, e.type, e.expression) + }(e); + case 232: + return c1(e); + case 230: + return l1(e); + case 235: + return function(e) { + Q(e.type); + var t = V(e.expression), + r = K(e.type); + return _e(r) ? r : (mf(t, r, e.type, e.expression, OS.Diagnostics.Type_0_does_not_satisfy_the_expected_type_1), t) + }(e); + case 233: + return u1(e); + case 217: + return W1(e); + case 219: + return function(e) { + return V(e.expression), Or + }(e); + case 220: + return H1(e); + case 221: + return function(e) { + var t = V(e.operand); + if (t === Hr) return Hr; + switch (e.operand.kind) { + case 8: + switch (e.operator) { + case 40: + return yp(xp(-e.operand.text)); + case 39: + return yp(xp(+e.operand.text)) + } + break; + case 9: + if (40 === e.operator) return yp(Dp({ + negative: !0, + base10Value: OS.parsePseudoBigInt(e.operand.text) + })) + } + switch (e.operator) { + case 39: + case 40: + case 54: + return Ah(t, e.operand), Q1(t, 12288) && se(e.operand, OS.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, OS.tokenToString(e.operator)), 39 === e.operator ? (Q1(t, 2112) && se(e.operand, OS.Diagnostics.Operator_0_cannot_be_applied_to_type_1, OS.tokenToString(e.operator), ue(Dg(t))), ie) : G1(t); + case 53: + Ub(e.operand); + var r = 12582912 & ry(t); + return 4194304 == r ? Jr : 8388608 == r ? Ur : Vr; + case 45: + case 46: + return z1(e.operand, Ah(t, e.operand), OS.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type) && q1(e.operand, OS.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access, OS.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access), G1(t) + } + return R + }(e); + case 222: + return function(e) { + var t = V(e.operand); + return t === Hr ? Hr : (z1(e.operand, Ah(t, e.operand), OS.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type) && q1(e.operand, OS.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access, OS.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access), G1(t)) + }(e); + case 223: + return T(e, t); + case 224: + return function(e, t) { + var r = Ub(e.condition); + return Jb(e.condition, r, e.whenTrue), he([V(e.whenTrue, t), V(e.whenFalse, t)], 2) + }(e, t); + case 227: + return function(e, t) { + return U < 2 && iS(e, Z.downlevelIteration ? 1536 : 1024), Wb(33, V(e.expression, t), re, e.expression) + }(e, t); + case 229: + return Or; + case 226: + return function(t) { + q(function() { + 8192 & t.flags || kS(t, OS.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body); + f0(t) && se(t, OS.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer) + }); + var e, r, n, i, a, o = OS.getContainingFunction(t); + return o && 1 & (e = OS.getFunctionFlags(o)) ? (e = 0 != (2 & e), t.asteriskToken && (e && U < 99 && iS(t, 26624), !e) && U < 2 && Z.downlevelIteration && iS(t, 256), n = (a = (r = Iu(o)) && fx(r, e)) && a.yieldType || ee, a = a && a.nextType || ee, a = e ? ab(a) || ee : a, i = t.expression ? V(t.expression) : Or, a = O1(t, i, a, e), r && a && mf(a, n, t.expression || t, t.expression), t.asteriskToken ? Gb(e ? 19 : 17, 1, i, t.expression) || ee : r ? px(2, r, e) || ee : ((a = g0(2, o)) || (a = ee, q(function() { + var e; + !Te || OS.expressionResultIsUnused(t) || (e = I0(t, void 0)) && !j(e) || se(t, OS.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation) + })), a)) : ee + }(e); + case 234: + return function(e) { + return e.isSpread ? qd(e.type, ie) : e.type + }(e); + case 291: + return yh(e, t); + case 281: + return function(e) { + return nD(e), dh(e) || ee + }(e); + case 282: + return function(e) { + return nD(e), dh(e) || ee + }(e); + case 285: + return function(e) { + fh(e.openingFragment); + var t = OS.getSourceFileOfNode(e); + return !OS.getJSXTransformEnabled(Z) || !Z.jsxFactory && !t.pragmas.has("jsx") || Z.jsxFragmentFactory || t.pragmas.has("jsxfrag") || se(e, Z.jsxFactory ? OS.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option : OS.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments), eh(e), dh(e) || ee + }(e); + case 289: + return rh(e, t); + case 283: + OS.Debug.fail("Shouldn't ever directly check a JsxOpeningElement") + } + return R + }(Se = e, t, r)), + r = v2(e, r, t); + return $1(r) && (t = r, 208 === (e = e).parent.kind && e.parent.expression === e || 209 === e.parent.kind && e.parent.expression === e || (79 === e.kind || 163 === e.kind) && fD(e) || 183 === e.parent.kind && e.parent.exprName === e || 278 === e.parent.kind || se(e, OS.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query), Z.isolatedModules) && (OS.Debug.assert(!!(128 & t.symbol.flags)), 16777216 & t.symbol.valueDeclaration.flags) && se(e, OS.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided), Se = n, null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.pop(), r + } + + function N2(e) { + oS(e), e.expression && kS(e.expression, OS.Diagnostics.Type_expected), Q(e.constraint), Q(e.default); + var t = Fc(G(e)), + r = (Jl(t), Vl(t) === vn && se(e.default, OS.Diagnostics.Type_parameter_0_has_a_circular_default, ue(t)), Ml(t)), + n = ql(t); + r && n && gf(n, Yc(be(r, Op(t, n)), n), e.default, OS.Diagnostics.Type_0_does_not_satisfy_the_constraint_1), nD(e), q(function() { + return Dx(e.name, OS.Diagnostics.Type_parameter_name_cannot_be_0) + }) + } + + function A2(e) { + aS(e), Ob(e); + var t = OS.getContainingFunction(e); + OS.hasSyntacticModifier(e, 16476) && (173 === t.kind && OS.nodeIsPresent(t.body) || se(e, OS.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation), 173 === t.kind) && OS.isIdentifier(e.name) && "constructor" === e.name.escapedText && se(e.name, OS.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name), (e.questionToken || hu(e)) && OS.isBindingPattern(e.name) && t.body && se(e, OS.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature), e.name && OS.isIdentifier(e.name) && ("this" === e.name.escapedText || "new" === e.name.escapedText) && (0 !== t.parameters.indexOf(e) && se(e, OS.Diagnostics.A_0_parameter_must_be_the_first_parameter, e.name.escapedText), 173 !== t.kind && 177 !== t.kind && 182 !== t.kind || se(e, OS.Diagnostics.A_constructor_cannot_have_a_this_parameter), 216 === t.kind && se(e, OS.Diagnostics.An_arrow_function_cannot_have_a_this_parameter), 174 !== t.kind && 175 !== t.kind || se(e, OS.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)), !e.dotDotDotToken || OS.isBindingPattern(e.name) || xe(eu(de(e.symbol)), kt) || se(e, OS.Diagnostics.A_rest_parameter_must_be_of_an_array_type) + } + + function F2(e) { + var t = function(e) { + switch (e.parent.kind) { + case 216: + case 176: + case 259: + case 215: + case 181: + case 171: + case 170: + var t = e.parent; + if (e === t.type) return t + } + }(e); + if (t) { + var r = Cu(t), + n = Pu(r); + if (n) { + Q(e.type); + var i = e.parameterName; + if (0 === n.kind || 2 === n.kind) Tp(i); + else if (0 <= n.parameterIndex) YS(r) && n.parameterIndex === r.parameters.length - 1 ? se(i, OS.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter) : n.type && gf(n.type, de(r.parameters[n.parameterIndex]), e.type, void 0, function() { + return OS.chainDiagnosticMessages(void 0, OS.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type) + }); + else if (i) { + for (var a = !1, o = 0, s = t.parameters; o < s.length; o++) { + var c = s[o].name; + if (OS.isBindingPattern(c) && function e(t, r, n) { + for (var i = 0, a = t.elements; i < a.length; i++) { + var o = a[i]; + if (!OS.isOmittedExpression(o)) { + o = o.name; + if (79 === o.kind && o.escapedText === n) return se(r, OS.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern, n), !0; + if ((204 === o.kind || 203 === o.kind) && e(o, r, n)) return !0 + } + } + }(c, i, n.parameterName)) { + a = !0; + break + } + } + a || se(e.parameterName, OS.Diagnostics.Cannot_find_parameter_0, n.parameterName) + } + } + } else se(e, OS.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods) + } + + function P2(o) { + 178 === o.kind ? aS(r = o) || function(e) { + var t = e.parameters[0]; + if (1 !== e.parameters.length) return J(t ? t.name : e, OS.Diagnostics.An_index_signature_must_have_exactly_one_parameter); + if (cS(e.parameters, OS.Diagnostics.An_index_signature_cannot_have_a_trailing_comma), t.dotDotDotToken) return J(t.dotDotDotToken, OS.Diagnostics.An_index_signature_cannot_have_a_rest_parameter); + if (OS.hasEffectiveModifiers(t)) return J(t.name, OS.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier); + if (t.questionToken) return J(t.questionToken, OS.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark); + if (t.initializer) return J(t.name, OS.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer); + if (!t.type) return J(t.name, OS.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation); + var r = K(t.type); + if (xy(r, function(e) { + return !!(8576 & e.flags) + }) || Rd(r)) return J(t.name, OS.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead); + Dy(r, Hu) ? e.type || J(e, OS.Diagnostics.An_index_signature_must_have_a_type_annotation) : J(t.name, OS.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type) + }(r) : 181 !== o.kind && 259 !== o.kind && 182 !== o.kind && 176 !== o.kind && 173 !== o.kind && 177 !== o.kind || _S(o); + var e, n, i, a, t, r = OS.getFunctionFlags(o); + 4 & r || (3 == (3 & r) && U < 99 && iS(o, 6144), 2 == (3 & r) && U < 4 && iS(o, 64), 0 != (3 & r) && U < 2 && iS(o, 128)), Sx(OS.getEffectiveTypeParameterDeclarations(o)), e = o, t = OS.filter(OS.getJSDocTags(e), OS.isJSDocParameterTag), OS.length(t) && (n = OS.isInJSFile(e), i = new OS.Set, a = new OS.Set, OS.forEach(e.parameters, function(e, t) { + e = e.name; + OS.isIdentifier(e) && i.add(e.escapedText), OS.isBindingPattern(e) && a.add(t) + }), ku(e) ? (e = OS.lastOrUndefined(t), n && e && OS.isIdentifier(e.name) && e.typeExpression && e.typeExpression.type && !i.has(e.name.escapedText) && !sg(K(e.typeExpression.type)) && se(e.name, OS.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, OS.idText(e.name))) : OS.forEach(t, function(e, t) { + var r = e.name, + e = e.isNameFirst; + a.has(t) || OS.isIdentifier(r) && i.has(r.escapedText) || (OS.isQualifiedName(r) ? n && se(r, OS.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1, OS.entityNameToString(r), OS.entityNameToString(r.left)) : e || ra(n, r, OS.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name, OS.idText(r))) + })), OS.forEach(o.parameters, A2), o.type && Q(o.type), q(function() { + ! function(e) { + 2 <= U || !OS.hasRestParameter(e) || 16777216 & e.flags || OS.nodeIsMissing(e.body) || OS.forEach(e.parameters, function(e) { + e.name && !OS.isBindingPattern(e.name) && e.name.escapedText === it.escapedName && $i("noEmit", e, OS.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters) + }) + }(o); + var e = OS.getEffectiveReturnTypeNode(o); + if (Te && !e) switch (o.kind) { + case 177: + se(o, OS.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); + break; + case 176: + se(o, OS.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type) + } { + var t, r, n, i, a; + e && (1 == (5 & (t = OS.getFunctionFlags(o))) ? (r = K(e)) === Wr ? se(e, OS.Diagnostics.A_generator_cannot_have_a_void_type_annotation) : (n = px(0, r, 0 != (2 & t)) || ee, i = px(1, r, 0 != (2 & t)) || n, a = px(2, r, 0 != (2 & t)) || te, gf(I1(n, i, a, !!(2 & t)), r, e)) : 2 == (3 & t) && function(e, t) { + var r = K(t); + if (2 <= U) { + if (_e(r)) return; + var n = w_(!0); + if (n !== mn && !sc(r, n)) return se(t, OS.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0, ue(ob(r) || Wr)) + } else { + if (! function(e) { + sb(e && OS.getEntityNameFromTypeNode(e), !1) + }(t), _e(r)) return; + n = OS.getEntityNameFromTypeNode(t); + if (void 0 === n) return se(t, OS.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, ue(r)); + var i = ro(n, 111551, !0), + i = i ? de(i) : R; + if (_e(i)) return 79 === n.kind && "Promise" === n.escapedText && cc(r) === w_(!1) ? se(t, OS.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option) : se(t, OS.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, OS.entityNameToString(n)); + var a = (Lt = Lt || E_("PromiseConstructorLike", 0, !0)) || un; + if (a === un) return se(t, OS.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, OS.entityNameToString(n)); + if (!gf(i, a, t, OS.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value)) return; + i = n && OS.getFirstIdentifier(n), a = ma(e.locals, i.escapedText, 111551); + if (a) return se(a.valueDeclaration, OS.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions, OS.idText(i), OS.entityNameToString(n)) + } + $2(r, !1, e, OS.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member) + }(o, e)) + } + 178 !== o.kind && 320 !== o.kind && gb(o) + }) + } + + function w2(e) { + for (var t = new OS.Map, r = 0, n = e.members; r < n.length; r++) { + var i = n[r]; + if (168 === i.kind) { + var a = void 0, + o = i.name; + switch (o.kind) { + case 10: + case 8: + a = o.text; + break; + case 79: + a = OS.idText(o); + break; + default: + continue + } + t.get(a) ? (se(OS.getNameOfDeclaration(i.symbol.valueDeclaration), OS.Diagnostics.Duplicate_identifier_0, a), se(i.name, OS.Diagnostics.Duplicate_identifier_0, a)) : t.set(a, !0) + } + } + } + + function I2(e) { + if (261 === e.kind) { + var t = G(e); + if (t.declarations && 0 < t.declarations.length && t.declarations[0] !== e) return + } + t = Uu(G(e)); + if (null != t && t.declarations) { + for (var n = new OS.Map, r = 0, i = t.declarations; r < i.length; r++) ! function(r) { + 1 === r.parameters.length && r.parameters[0].type && by(K(r.parameters[0].type), function(e) { + var t = n.get(e.id); + t ? t.declarations.push(r) : n.set(e.id, { + type: e, + declarations: [r] + }) + }) + }(i[r]); + n.forEach(function(e) { + if (1 < e.declarations.length) + for (var t = 0, r = e.declarations; t < r.length; t++) se(r[t], OS.Diagnostics.Duplicate_index_signature_for_type_0, ue(e.type)) + }) + } + } + + function O2(e) { + aS(e) || function(e) { + if (OS.isComputedPropertyName(e.name) && OS.isBinaryExpression(e.name.expression) && 101 === e.name.expression.operatorToken.kind) return J(e.parent.members[0], OS.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods); + if (OS.isClassLike(e.parent)) { + if (OS.isStringLiteral(e.name) && "constructor" === e.name.text) return J(e.name, OS.Diagnostics.Classes_may_not_have_a_field_named_constructor); + if (xS(e.name, OS.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type)) return 1; + if (U < 2 && OS.isPrivateIdentifier(e.name)) return J(e.name, OS.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher); + if (U < 2 && OS.isAutoAccessorPropertyDeclaration(e)) return J(e.name, OS.Diagnostics.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher); + if (OS.isAutoAccessorPropertyDeclaration(e) && yS(e.questionToken, OS.Diagnostics.An_accessor_property_cannot_be_declared_optional)) return 1 + } else if (261 === e.parent.kind) { + if (xS(e.name, OS.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)) return 1; + if (OS.Debug.assertNode(e, OS.isPropertySignature), e.initializer) return J(e.initializer, OS.Diagnostics.An_interface_property_cannot_have_an_initializer) + } else if (OS.isTypeLiteralNode(e.parent)) { + if (xS(e.name, OS.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)) return 1; + if (OS.Debug.assertNode(e, OS.isPropertySignature), e.initializer) return J(e.initializer, OS.Diagnostics.A_type_literal_property_cannot_have_an_initializer) + } + 16777216 & e.flags && TS(e); { + var t; + if (OS.isPropertyDeclaration(e) && e.exclamationToken && (!OS.isClassLike(e.parent) || !e.type || e.initializer || 16777216 & e.flags || OS.isStatic(e) || OS.hasAbstractModifier(e))) return t = e.initializer ? OS.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : e.type ? OS.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context : OS.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations, J(e.exclamationToken, t) + } + }(e) || gS(e.name), Ob(e), M2(e), OS.hasSyntacticModifier(e, 256) && 169 === e.kind && e.initializer && se(e, OS.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract, OS.declarationNameToString(e.name)) + } + + function M2(e) { + if (OS.isPrivateIdentifier(e.name) && U < 99) { + for (var t, r = OS.getEnclosingBlockScopeContainer(e); r; r = OS.getEnclosingBlockScopeContainer(r)) H(r).flags |= 67108864; + OS.isClassExpression(e.parent) && (t = t0(e.parent)) && (H(e.name).flags |= 524288, H(t).flags |= 65536) + } + } + + function L2(o) { + if (P2(o), ! function(e) { + var t = OS.isInJSFile(e) ? OS.getJSDocTypeParameterDeclarations(e) : void 0, + t = e.typeParameters || t && OS.firstOrUndefined(t); { + var r; + if (t) return r = t.pos === t.end ? t.pos : OS.skipTrivia(OS.getSourceFileOfNode(e).text, t.pos), NS(e, r, t.end - r, OS.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration) + } + }(o)) { + var e = o; + if (e = e.type || OS.getEffectiveReturnTypeNode(e)) J(e, OS.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration) + } + Q(o.body); + var e = G(o), + t = OS.getDeclarationOfKind(e, o.kind); + + function s(e) { + return !!OS.isPrivateIdentifierClassElementDeclaration(e) || 169 === e.kind && !OS.isStatic(e) && !!e.initializer + } + o === t && Q2(e), OS.nodeIsMissing(o.body) || q(function() { + var e = o.parent; + if (OS.getClassExtendsHeritageElement(e)) { + r0(o.parent, e); + var e = i0(e), + t = n0(o.body); + if (t) { + if (e && se(t, OS.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null), (99 !== OS.getEmitScriptTarget(Z) || !W) && (OS.some(o.parent.members, s) || OS.some(o.parameters, function(e) { + return OS.hasSyntacticModifier(e, 16476) + }))) + if (function(e, t) { + e = OS.walkUpParenthesizedExpressions(e.parent); + return OS.isExpressionStatement(e) && e.parent === t + }(t, o.body)) { + for (var r = void 0, n = 0, i = o.body.statements; n < i.length; n++) { + var a = i[n]; + if (OS.isExpressionStatement(a) && OS.isSuperCall(OS.skipOuterExpressions(a.expression))) { + r = a; + break + } + if (R2(a)) break + } + void 0 === r && se(o, OS.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers) + } else se(t, OS.Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers) + } else e || se(o, OS.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call) + } + }) + } + + function R2(e) { + return 106 === e.kind || 108 === e.kind || !OS.isThisContainerOrFunctionBlock(e) && !!OS.forEachChild(e, R2) + } + + function B2(i) { + OS.isIdentifier(i.name) && "constructor" === OS.idText(i.name) && se(i.name, OS.Diagnostics.Class_constructor_may_not_be_an_accessor), q(function() { + _S(i) || function(e) { + if (!(16777216 & e.flags) && 184 !== e.parent.kind && 261 !== e.parent.kind) { + if (U < 1) return J(e.name, OS.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher); + if (U < 2 && OS.isPrivateIdentifier(e.name)) return J(e.name, OS.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher); + if (void 0 === e.body && !OS.hasSyntacticModifier(e, 256)) return NS(e, e.end - 1, ";".length, OS.Diagnostics._0_expected, "{") + } + if (e.body) { + if (OS.hasSyntacticModifier(e, 256)) return J(e, OS.Diagnostics.An_abstract_accessor_cannot_have_an_implementation); + if (184 === e.parent.kind || 261 === e.parent.kind) return J(e.body, OS.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts) + } + if (e.typeParameters) return J(e.name, OS.Diagnostics.An_accessor_cannot_have_type_parameters); + if (! function(e) { + return bS(e) || e.parameters.length === (174 === e.kind ? 0 : 1) + }(e)) return J(e.name, 174 === e.kind ? OS.Diagnostics.A_get_accessor_cannot_have_parameters : OS.Diagnostics.A_set_accessor_must_have_exactly_one_parameter); + if (175 === e.kind) { + if (e.type) return J(e.name, OS.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation); + var t = OS.Debug.checkDefined(OS.getSetAccessorValueParameter(e), "Return value does not match parameter count assertion."); + if (t.dotDotDotToken) return J(t.dotDotDotToken, OS.Diagnostics.A_set_accessor_cannot_have_rest_parameter); + if (t.questionToken) return J(t.questionToken, OS.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter); + if (t.initializer) return J(e.name, OS.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer) + } + return + }(i) || gS(i.name); + db(i), P2(i), 174 !== i.kind || 16777216 & i.flags || !OS.nodeIsPresent(i.body) || !(256 & i.flags) || 512 & i.flags || se(i.name, OS.Diagnostics.A_get_accessor_must_return_a_value); + 164 === i.name.kind && q0(i.name); { + var e, t, r; + qc(i) && (n = G(i), e = OS.getDeclarationOfKind(n, 174), n = OS.getDeclarationOfKind(n, 175), !e || !n || 1 & zD(e) || (H(e).flags |= 1, t = OS.getEffectiveModifierFlags(e), r = OS.getEffectiveModifierFlags(n), (256 & t) != (256 & r) && (se(e.name, OS.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract), se(n.name, OS.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)), (16 & t && !(24 & r) || 8 & t && !(8 & r)) && (se(e.name, OS.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter), se(n.name, OS.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter)), t = Xs(e), r = Xs(n), t && r && gf(t, r, e, OS.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type))) + } + var n = Ys(G(i)); + 174 === i.kind && j1(i, n) + }), Q(i.body), M2(i) + } + + function j2(e, t) { + return Tu(OS.map(e.typeArguments, K), t, Su(t), OS.isInJSFile(e)) + } + + function J2(e, t) { + for (var r, n, i = !0, a = 0; a < t.length; a++) { + var o = Ml(t[a]); + o && (r || (n = wp(t, r = j2(e, t))), i = i && gf(r[a], be(o, n), e.typeArguments[a], OS.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)) + } + return i + } + + function z2(e) { + var t = h_(e); + if (!_e(t)) { + e = H(e).resolvedSymbol; + if (e) return 524288 & e.flags && ce(e).typeParameters || (4 & OS.getObjectFlags(t) ? t.target.localTypeParameters : void 0) + } + } + + function U2(t) { + dS(t, t.typeArguments), 180 !== t.kind || void 0 === t.typeName.jsdocDotPos || OS.isInJSFile(t) || OS.isInJSDoc(t) || NS(t, t.typeName.jsdocDotPos, 1, OS.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments), OS.forEach(t.typeArguments, Q); + var e, r = h_(t); + _e(r) || (t.typeArguments && q(function() { + var e = z2(t); + e && J2(t, e) + }), (e = H(t).resolvedSymbol) && (OS.some(e.declarations, function(e) { + return OS.isTypeDeclaration(e) && !!(268435456 & e.flags) + }) && oa($v(t), e.declarations, e.escapedName), 32 & r.flags) && 8 & e.flags && se(t, OS.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals, ue(r))) + } + + function K2(t) { + OS.forEach(t.members, Q), q(function() { + var e = sp(t); + bx(e, e.symbol), I2(t), w2(t) + }) + } + + function V2(e, t) { + if (!(8388608 & e.flags)) return e; + var r = e.objectType, + n = e.indexType; + if (xe(n, Sd(r, !1))) return 209 === t.kind && OS.isAssignmentTarget(t) && 32 & OS.getObjectFlags(r) && 1 & El(r) && se(t, OS.Diagnostics.Index_signature_in_type_0_only_permits_reading, ue(r)), e; + var i = Ql(r); + if (_u(i, ie) && Y1(n, 296)) return e; + if (Bd(r)) { + var a = Pd(n, t); + if (a) { + e = by(i, function(e) { + return fe(e, a) + }); + if (e && 24 & OS.getDeclarationModifierFlagsFromSymbol(e)) return se(t, OS.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter, OS.unescapeLeadingUnderscores(a)), R + } + } + return se(t, OS.Diagnostics.Type_0_cannot_be_used_to_index_type_1, ue(n), ue(r)), R + } + + function q2(e) { + var t = e; + if (null != (r = t.members) && r.length) J(t.members[0], OS.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods); + Q(e.typeParameter), Q(e.nameType), Q(e.type), e.type || Zg(e, ee); + var r = Qd(e), + t = xl(r); + t ? gf(t, $r, e.nameType) : gf(bl(r), $r, OS.getEffectiveConstraintOfTypeParameter(e.typeParameter)) + } + + function W2(e) { + ! function(e) { + if (156 === e.operator) { + if (153 !== e.type.kind) return J(e.type, OS.Diagnostics._0_expected, OS.tokenToString(153)); + var t, r = OS.walkUpParenthesizedTypes(e.parent); + switch ((r = OS.isInJSFile(r) && OS.isJSDocTypeExpression(r) && (t = OS.getJSDocHost(r)) ? OS.getSingleVariableOfVariableStatement(t) || t : r).kind) { + case 257: + var n = r; + if (79 !== n.name.kind) return J(e, OS.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name); + if (!OS.isVariableDeclarationInVariableStatement(n)) return J(e, OS.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement); + if (2 & n.parent.flags) break; + return J(r.name, OS.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const); + case 169: + if (OS.isStatic(r) && OS.hasEffectiveReadonlyModifier(r)) break; + return J(r.name, OS.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly); + case 168: + if (OS.hasSyntacticModifier(r, 64)) break; + return J(r.name, OS.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly); + default: + J(e, OS.Diagnostics.unique_symbol_types_are_not_allowed_here) + } + } else if (146 === e.operator && 185 !== e.type.kind && 186 !== e.type.kind) kS(e, OS.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types, OS.tokenToString(153)) + }(e), Q(e.type) + } + + function H2(e) { + return (OS.hasEffectiveModifier(e, 8) || OS.isPrivateIdentifierClassElementDeclaration(e)) && !!(16777216 & e.flags) + } + + function G2(e, t) { + var r = OS.getCombinedModifierFlags(e); + return 261 !== e.parent.kind && 260 !== e.parent.kind && 228 !== e.parent.kind && 16777216 & e.flags && (2 & r || OS.isModuleBlock(e.parent) && OS.isModuleDeclaration(e.parent.parent) && OS.isGlobalScopeAugmentation(e.parent.parent) || (r |= 1), r |= 2), r & t + } + + function Q2(k) { + q(function() { + var r = k; + + function o(e, t) { + return void 0 !== t && t.parent === e[0].parent ? t : e[0] + } + var e, t, n, i = 0, + a = 283, + s = !1, + c = !0, + l = !1, + u = r.declarations, + _ = 0 != (16384 & r.flags); + + function d(t) { + if (!t.name || !OS.nodeIsMissing(t.name)) { + var r = !1, + e = OS.forEachChild(t.parent, function(e) { + if (r) return e; + r = e === t + }); + if (e && e.pos === t.end && e.kind === t.kind) { + var n = e.name || e, + i = e.name; + if (t.name && i && (OS.isPrivateIdentifier(t.name) && OS.isPrivateIdentifier(i) && t.name.escapedText === i.escapedText || OS.isComputedPropertyName(t.name) && OS.isComputedPropertyName(i) || OS.isPropertyNameLiteral(t.name) && OS.isPropertyNameLiteral(i) && OS.getEscapedTextOfIdentifierOrLiteral(t.name) === OS.getEscapedTextOfIdentifierOrLiteral(i))) return void((171 === t.kind || 170 === t.kind) && OS.isStatic(t) !== OS.isStatic(e) && se(n, OS.isStatic(t) ? OS.Diagnostics.Function_overload_must_be_static : OS.Diagnostics.Function_overload_must_not_be_static)); + if (OS.nodeIsPresent(e.body)) return void se(n, OS.Diagnostics.Function_implementation_name_must_be_0, OS.declarationNameToString(t.name)) + } + i = t.name || t; + _ ? se(i, OS.Diagnostics.Constructor_implementation_is_missing) : OS.hasSyntacticModifier(t, 256) ? se(i, OS.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive) : se(i, OS.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration) + } + } + var p, f = !1, + g = !1, + m = !1, + y = []; + if (u) + for (var h = 0, v = u; h < v.length; h++) { + var b = v[h], + x = 16777216 & b.flags, + D = b.parent && (261 === b.parent.kind || 184 === b.parent.kind) || x; + D && (n = void 0), 260 !== b.kind && 228 !== b.kind || x || (m = !0), 259 !== b.kind && 171 !== b.kind && 170 !== b.kind && 173 !== b.kind || (y.push(b), x = G2(b, 283), i |= x, a &= x, s = s || OS.hasQuestionToken(b), c = c && OS.hasQuestionToken(b), (x = OS.nodeIsPresent(b.body)) && e ? _ ? g = !0 : f = !0 : (null == n ? void 0 : n.parent) === b.parent && n.end !== b.pos && d(n), x ? e = e || b : l = !0, n = b, D) || (t = b) + } + if (g && OS.forEach(y, function(e) { + se(e, OS.Diagnostics.Multiple_constructor_implementations_are_not_allowed) + }), f && OS.forEach(y, function(e) { + se(OS.getNameOfDeclaration(e) || e, OS.Diagnostics.Duplicate_function_implementation) + }), m && !_ && 16 & r.flags && u && (p = OS.filter(u, function(e) { + return 260 === e.kind + }).map(function(e) { + return OS.createDiagnosticForNode(e, OS.Diagnostics.Consider_adding_a_declare_modifier_to_this_class) + }), OS.forEach(u, function(e) { + var t = 260 === e.kind ? OS.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0 : 259 === e.kind ? OS.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient : void 0; + t && OS.addRelatedInfo.apply(void 0, __spreadArray([se(OS.getNameOfDeclaration(e) || e, t, OS.symbolName(r))], p, !1)) + })), !t || t.body || OS.hasSyntacticModifier(t, 256) || t.questionToken || d(t), l && (u && (function(e, t, r, n, i) { + var a; + 0 != (n ^ i) && (a = G2(o(e, t), r), OS.forEach(e, function(e) { + var t = G2(e, r) ^ a; + 1 & t ? se(OS.getNameOfDeclaration(e), OS.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported) : 2 & t ? se(OS.getNameOfDeclaration(e), OS.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient) : 24 & t ? se(OS.getNameOfDeclaration(e) || e, OS.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected) : 256 & t && se(OS.getNameOfDeclaration(e), OS.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract) + })) + }(u, e, 283, i, a), function(e, t, r, n) { + var i; + r !== n && (i = OS.hasQuestionToken(o(e, t)), OS.forEach(e, function(e) { + OS.hasQuestionToken(e) !== i && se(OS.getNameOfDeclaration(e), OS.Diagnostics.Overload_signatures_must_all_be_optional_or_required) + })) + }(u, e, s, c)), e)) + for (var u = Nu(r), S = Cu(e), T = 0, C = u; T < C.length; T++) { + var E = C[T]; + if (!Cf(S, E)) { + OS.addRelatedInfo(se(E.declaration, OS.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature), OS.createDiagnosticForNode(e, OS.Diagnostics.The_implementation_signature_is_declared_here)); + break + } + } + }) + } + + function X2(m) { + q(function() { + var e = m, + t = e.localSymbol; + if ((t || (t = G(e)).exportSymbol) && OS.getDeclarationOfKind(t, e.kind) === e) { + for (var r = 0, n = 0, i = 0, a = 0, o = t.declarations; a < o.length; a++) { + var s = g(p = o[a]), + c = G2(p, 1025); + 1 & c ? 1024 & c ? i |= s : r |= s : n |= s + } + var l = r & n, + u = i & (r | n); + if (l || u) + for (var _ = 0, d = t.declarations; _ < d.length; _++) { + var p, s = g(p = d[_]), + f = OS.getNameOfDeclaration(p); + s & u ? se(f, OS.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead, OS.declarationNameToString(f)) : s & l && se(f, OS.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local, OS.declarationNameToString(f)) + } + } + + function g(e) { + var t = e; + switch (t.kind) { + case 261: + case 262: + case 348: + case 341: + case 342: + return 2; + case 264: + return OS.isAmbientModule(t) || 0 !== OS.getModuleInstanceState(t) ? 5 : 4; + case 260: + case 263: + case 302: + return 3; + case 308: + return 7; + case 274: + case 223: + var r = t, + r = OS.isExportAssignment(r) ? r.expression : r.right; + if (!OS.isEntityNameExpression(r)) return 1; + t = r; + case 268: + case 271: + case 270: + var n = 0, + r = Ha(G(t)); + return OS.forEach(r.declarations, function(e) { + n |= g(e) + }), n; + case 257: + case 205: + case 259: + case 273: + case 79: + return 1; + default: + return OS.Debug.failBadSyntaxKind(t) + } + } + }) + } + + function Y2(e, t, r, n) { + e = Z2(e, t); + return e && ab(e, t, r, n) + } + + function Z2(e, t, r) { + if (!j(e)) { + var n = e; + if (n.promisedTypeOfPromise) return n.promisedTypeOfPromise; + if (sc(e, w_(!1))) return n.promisedTypeOfPromise = ye(e)[0]; + if (!Z1(zl(e), 262140)) { + var i = ys(e, "then"); + if (!j(i)) { + i = i ? ge(i, 0) : OS.emptyArray; + if (0 === i.length) t && se(t, OS.Diagnostics.A_promise_must_have_a_then_method); + else { + for (var a, o, s = 0, c = i; s < c.length; s++) { + var l = c[s], + u = Fu(l); + u && u !== Wr && !If(e, u, bi) ? a = u : o = OS.append(o, l) + } + if (o) { + i = ny(he(OS.map(o, E1)), 2097152); + if (!j(i)) { + i = ge(i, 0); + if (0 !== i.length) return n.promisedTypeOfPromise = he(OS.map(i, E1), 2); + t && se(t, OS.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback) + } + } else OS.Debug.assertIsDefined(a), r && (r.value = a), t && se(t, OS.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, ue(e), ue(a)) + } + } + } + } + } + + function $2(e, t, r, n, i) { + return (t ? ab : ob)(e, r, n, i) || R + } + + function eb(e) { + return !Z1(zl(e), 262140) && !!(e = ys(e, "then")) && 0 < ge(ny(e, 2097152), 0).length + } + + function tb(e) { + var t; + if (16777216 & e.flags) return (t = B_(!1)) && e.aliasSymbol === t && 1 === (null == (t = e.aliasTypeArguments) ? void 0 : t.length) + } + + function rb(e) { + return 1048576 & e.flags ? Cy(e, rb) : tb(e) ? e.aliasTypeArguments[0] : e + } + + function nb(e) { + if (!j(e) && !tb(e) && Bd(e)) { + var t = Jl(e); + if (t ? 3 & t.flags || kf(t) || xy(t, eb) : X1(e, 8650752)) return 1 + } + } + + function ib(e) { + if (nb(e)) { + var t = function(e) { + var t = B_(!0); + if (t) return o_(t, [rb(e)]) + }(e); + if (t) return t + } + return OS.Debug.assert(void 0 === Z2(e), "type provided should not be a non-generic 'promise'-like."), e + } + + function ab(e, t, r, n) { + e = ob(e, t, r, n); + return e && ib(e) + } + + function ob(e, t, r, n) { + if (j(e)) return e; + if (tb(e)) return e; + var i = e; + if (i.awaitedTypeOfType) return i.awaitedTypeOfType; + if (1048576 & e.flags) return 0 <= yi.lastIndexOf(e.id) ? void(t && se(t, OS.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method)) : (a = t ? function(e) { + return ob(e, t, r, n) + } : ob, yi.push(e.id), a = Cy(e, a), yi.pop(), i.awaitedTypeOfType = a); + if (nb(e)) return i.awaitedTypeOfType = e; + var a = { + value: void 0 + }, + o = Z2(e, void 0, a); + if (o) { + if (e.id === o.id || 0 <= yi.lastIndexOf(o.id)) return void(t && se(t, OS.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method)); + yi.push(e.id); + var o = ob(o, t, r, n); + return (yi.pop(), o) ? i.awaitedTypeOfType = o : void 0 + } + if (!eb(e)) return i.awaitedTypeOfType = e; + t && (OS.Debug.assertIsDefined(r), o = void 0, a.value && (o = OS.chainDiagnosticMessages(o, OS.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, ue(e), ue(a.value))), o = OS.chainDiagnosticMessages(o, r, n), oe.add(OS.createDiagnosticForNodeFromMessageChain(t, o))) + } + + function sb(e, t) { + var r, n; + e && (r = OS.getFirstIdentifier(e), n = 2097152 | (79 === e.kind ? 788968 : 1920), n = va(r, r.escapedText, n, void 0, void 0, !0)) && 2097152 & n.flags && (!ko(n) || OD(Ha(n)) || Ya(n) ? t && Z.isolatedModules && OS.getEmitModuleKind(Z) >= OS.ModuleKind.ES2015 && !ko(n) && !OS.some(n.declarations, OS.isTypeOnlyImportOrExportDeclaration) && (t = se(e, OS.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled), e = OS.find(n.declarations || OS.emptyArray, Na)) && OS.addRelatedInfo(t, OS.createDiagnosticForNode(e, OS.Diagnostics._0_was_imported_here, OS.idText(r))) : $a(n)) + } + + function cb(e) { + e = lb(e); + e && OS.isEntityName(e) && sb(e, !0) + } + + function lb(e) { + if (e) switch (e.kind) { + case 190: + case 189: + return ub(e.types); + case 191: + return ub([e.trueType, e.falseType]); + case 193: + case 199: + return lb(e.type); + case 180: + return e.typeName + } + } + + function ub(e) { + for (var t, r = 0, n = e; r < n.length; r++) { + for (var i = n[r]; 193 === i.kind || 199 === i.kind;) i = i.type; + if (144 !== i.kind && ($ || (198 !== i.kind || 104 !== i.literal.kind) && 155 !== i.kind)) { + var a = lb(i); + if (!a) return; + if (t) { + if (!OS.isIdentifier(t) || !OS.isIdentifier(a) || t.escapedText !== a.escapedText) return + } else t = a + } + } + return t + } + + function _b(e) { + var t = OS.getEffectiveTypeAnnotationNode(e); + return OS.isRestParameter(e) ? OS.getRestParameterElementType(t) : t + } + + function db(e) { + if (OS.canHaveDecorators(e) && OS.hasDecorators(e) && e.modifiers && OS.nodeCanBeDecorated(e, e.parent, e.parent.parent)) { + Z.experimentalDecorators || se(e, OS.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning); + var t = OS.find(e.modifiers, OS.isDecorator); + if (t) { + if (iS(t, 8), 166 === e.kind && iS(t, 32), Z.emitDecoratorMetadata) switch (iS(t, 16), e.kind) { + case 260: + var r = OS.getFirstConstructorWithBody(e); + if (r) + for (var n = 0, i = r.parameters; n < i.length; n++) cb(_b(i[n])); + break; + case 174: + case 175: + r = 174 === e.kind ? 175 : 174, r = OS.getDeclarationOfKind(G(e), r); + cb(Qs(e) || r && Qs(r)); + break; + case 171: + for (var a = 0, o = e.parameters; a < o.length; a++) cb(_b(o[a])); + cb(OS.getEffectiveReturnTypeNode(e)); + break; + case 169: + cb(OS.getEffectiveTypeAnnotationNode(e)); + break; + case 166: + cb(_b(e)); + for (var s = 0, c = e.parent.parameters; s < c.length; s++) cb(_b(c[s])) + } + for (var l = 0, u = e.modifiers; l < u.length; l++) { + var _ = u[l]; + OS.isDecorator(_) && ! function(e) { + Zv(t = Gv(e), e); + var t = me(t); + if (!(1 & t.flags)) { + switch (e.parent.kind) { + case 260: + var r = OS.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1, + n = he([de(G(e.parent)), Wr]); + break; + case 169: + case 166: + r = OS.Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any, n = Wr; + break; + case 171: + case 174: + case 175: + r = OS.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1, n = he([J_(hD(e.parent)), Wr]); + break; + default: + return OS.Debug.fail() + } + gf(t, n, e, r) + } + }(_) + } + } + } + } + + function pb(e) { + switch (e.kind) { + case 79: + return e; + case 208: + return e.name; + default: + return + } + } + + function fb(t) { + db(t), P2(t); + var e, r, n, i = OS.getFunctionFlags(t), + a = (t.name && 164 === t.name.kind && q0(t.name), qc(t) && (e = G(t), n = null == (n = (r = t.localSymbol || e).declarations) ? void 0 : n.find(function(e) { + return e.kind === t.kind && !(262144 & e.flags) + }), t === n && Q2(r), e.parent) && Q2(e), 170 === t.kind ? void 0 : t.body); + Q(a), j1(t, Iu(t)), q(function() { + OS.getEffectiveReturnTypeNode(t) || (OS.nodeIsMissing(a) && !H2(t) && Zg(t, ee), 1 & i && OS.nodeIsPresent(a) && me(Cu(t))) + }), OS.isInJSFile(t) && (n = OS.getJSDocTypeTag(t)) && n.typeExpression && !B0(K(n.typeExpression), t) && se(n.typeExpression.type, OS.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature) + } + + function gb(r) { + q(function() { + var e = OS.getSourceFileOfNode(r), + t = zn.get(e.path); + t || (t = [], zn.set(e.path, t)); + t.push(r) + }) + } + + function mb(e, t) { + for (var r, n, i = 0, a = e; i < a.length; i++) { + var o = a[i]; + switch (o.kind) { + case 260: + case 228: + g = f = p = _ = d = u = l = c = s = void 0; + for (var s = o, c = t, l = 0, u = s.members; l < u.length; l++) { + var _, d = u[l]; + switch (d.kind) { + case 171: + case 169: + case 174: + case 175: + 175 === d.kind && 32768 & d.symbol.flags || (_ = G(d)).isReferenced || !(OS.hasEffectiveModifier(d, 8) || OS.isNamedDeclaration(d) && OS.isPrivateIdentifier(d.name)) || 16777216 & d.flags || c(d, 0, OS.createDiagnosticForNode(d.name, OS.Diagnostics._0_is_declared_but_its_value_is_never_read, le(_))); + break; + case 173: + for (var p = 0, f = d.parameters; p < f.length; p++) { + var g = f[p]; + !g.symbol.isReferenced && OS.hasSyntacticModifier(g, 8) && c(g, 0, OS.createDiagnosticForNode(g.name, OS.Diagnostics.Property_0_is_declared_but_its_value_is_never_read, OS.symbolName(g.symbol))) + } + break; + case 178: + case 237: + case 172: + break; + default: + OS.Debug.fail("Unexpected class member") + } + } + vb(o, t); + break; + case 308: + case 264: + case 238: + case 266: + case 245: + case 246: + case 247: + Sb(o, t); + break; + case 173: + case 215: + case 259: + case 216: + case 171: + case 174: + case 175: + o.body && Sb(o, t), vb(o, t); + break; + case 170: + case 176: + case 177: + case 181: + case 182: + case 262: + case 261: + vb(o, t); + break; + case 192: + s = t, n = void 0, bb(n = (r = o).typeParameter) && s(r, 1, OS.createDiagnosticForNode(r, OS.Diagnostics._0_is_declared_but_its_value_is_never_read, OS.idText(n.name))); + break; + default: + OS.Debug.assertNever(o, "Node should not have been registered for unused identifiers check") + } + } + } + + function yb(e, t, r) { + var n = OS.getNameOfDeclaration(e) || e, + i = OS.isTypeDeclaration(e) ? OS.Diagnostics._0_is_declared_but_never_used : OS.Diagnostics._0_is_declared_but_its_value_is_never_read; + r(e, 0, OS.createDiagnosticForNode(n, i, t)) + } + + function hb(e) { + return OS.isIdentifier(e) && 95 === OS.idText(e).charCodeAt(0) + } + + function vb(e, t) { + var r = G(e).declarations; + if (r && OS.last(r) === e) + for (var r = OS.getEffectiveTypeParameterDeclarations(e), n = new OS.Set, i = 0, a = r; i < a.length; i++) { + var o, s, c, l, u, _ = a[i]; + bb(_) && (o = OS.idText(_.name), 192 !== (l = _.parent).kind && l.typeParameters.every(bb) ? OS.tryAddToSet(n, l) && (s = OS.getSourceFileOfNode(l), c = OS.isJSDocTemplateTag(l) ? OS.rangeOfNode(l) : OS.rangeOfTypeParameters(s, l.typeParameters), u = (l = 1 === l.typeParameters.length) ? OS.Diagnostics._0_is_declared_but_its_value_is_never_read : OS.Diagnostics.All_type_parameters_are_unused, t(_, 1, OS.createFileDiagnostic(s, c.pos, c.end - c.pos, u, l ? o : void 0))) : t(_, 1, OS.createDiagnosticForNode(_, OS.Diagnostics._0_is_declared_but_its_value_is_never_read, o))) + } + } + + function bb(e) { + return !(262144 & bo(e.symbol).isReferenced || hb(e.name)) + } + + function xb(e, t, r, n) { + var n = String(n(t)), + i = e.get(n); + i ? i[1].push(r) : e.set(n, [t, [r]]) + } + + function Db(e) { + return OS.tryCast(OS.getRootDeclaration(e), OS.isParameter) + } + + function Sb(e, o) { + var s = new OS.Map, + c = new OS.Map, + l = new OS.Map; + e.locals.forEach(function(e) { + if ((262144 & e.flags ? 3 & e.flags && !(3 & e.isReferenced) : !e.isReferenced && !e.exportSymbol) && e.declarations) + for (var t = 0, r = e.declarations; t < r.length; t++) { + var n, i, a = r[t]; + n = a, (OS.isBindingElement(n) ? (!OS.isObjectBindingPattern(n.parent) || n.propertyName) && hb(n.name) : OS.isAmbientModule(n) || (OS.isVariableDeclaration(n) && OS.isForInOrOfStatement(n.parent.parent) || Cb(n)) && hb(n.name)) || (Cb(a) ? xb(s, 270 === (n = a).kind ? n : (271 === n.kind ? n : n.parent).parent, a, qS) : OS.isBindingElement(a) && OS.isObjectBindingPattern(a.parent) ? (n = OS.last(a.parent.elements), a !== n && OS.last(a.parent.elements).dotDotDotToken || xb(c, a.parent, a, qS)) : OS.isVariableDeclaration(a) ? xb(l, a.parent, a, qS) : (n = e.valueDeclaration && Db(e.valueDeclaration), i = e.valueDeclaration && OS.getNameOfDeclaration(e.valueDeclaration), n && i ? OS.isParameterPropertyDeclaration(n, n.parent) || OS.parameterIsThisKeyword(n) || hb(i) || (OS.isBindingElement(a) && OS.isArrayBindingPattern(a.parent) ? xb(c, a.parent, a, qS) : o(n, 1, OS.createDiagnosticForNode(i, OS.Diagnostics._0_is_declared_but_its_value_is_never_read, OS.symbolName(e)))) : yb(a, OS.symbolName(e), o))) + } + }), s.forEach(function(e) { + var t = e[0], + e = e[1], + r = t.parent; + if ((t.name ? 1 : 0) + (t.namedBindings ? 271 === t.namedBindings.kind ? 1 : t.namedBindings.elements.length : 0) === e.length) o(r, 0, 1 === e.length ? OS.createDiagnosticForNode(r, OS.Diagnostics._0_is_declared_but_its_value_is_never_read, OS.idText(OS.first(e).name)) : OS.createDiagnosticForNode(r, OS.Diagnostics.All_imports_in_import_declaration_are_unused)); + else + for (var n = 0, i = e; n < i.length; n++) { + var a = i[n]; + yb(a, OS.idText(a.name), o) + } + }), c.forEach(function(e) { + var t = e[0], + e = e[1], + r = Db(t.parent) ? 1 : 0; + if (t.elements.length === e.length) 1 === e.length && 257 === t.parent.kind && 258 === t.parent.parent.kind ? xb(l, t.parent.parent, t.parent, qS) : o(t, r, 1 === e.length ? OS.createDiagnosticForNode(t, OS.Diagnostics._0_is_declared_but_its_value_is_never_read, Tb(OS.first(e).name)) : OS.createDiagnosticForNode(t, OS.Diagnostics.All_destructured_elements_are_unused)); + else + for (var n = 0, i = e; n < i.length; n++) { + var a = i[n]; + o(a, r, OS.createDiagnosticForNode(a, OS.Diagnostics._0_is_declared_but_its_value_is_never_read, Tb(a.name))) + } + }), l.forEach(function(e) { + var t = e[0], + e = e[1]; + if (t.declarations.length === e.length) o(t, 0, 1 === e.length ? OS.createDiagnosticForNode(OS.first(e).name, OS.Diagnostics._0_is_declared_but_its_value_is_never_read, Tb(OS.first(e).name)) : OS.createDiagnosticForNode(240 === t.parent.kind ? t.parent : t, OS.Diagnostics.All_variables_are_unused)); + else + for (var r = 0, n = e; r < n.length; r++) { + var i = n[r]; + o(i, 0, OS.createDiagnosticForNode(i, OS.Diagnostics._0_is_declared_but_its_value_is_never_read, Tb(i.name))) + } + }) + } + + function Tb(e) { + switch (e.kind) { + case 79: + return OS.idText(e); + case 204: + case 203: + return Tb(OS.cast(OS.first(e.elements), OS.isBindingElement).name); + default: + return OS.Debug.assertNever(e) + } + } + + function Cb(e) { + return 270 === e.kind || 273 === e.kind || 271 === e.kind + } + + function Eb(e) { + var t; + 238 === e.kind && FS(e), OS.isFunctionOrModuleBlock(e) ? (t = qn, OS.forEach(e.statements, Q), qn = t) : OS.forEach(e.statements, Q), e.locals && gb(e) + } + + function kb(e, t, r) { + if ((null == t ? void 0 : t.escapedText) === r && (169 !== e.kind && 168 !== e.kind && 171 !== e.kind && 170 !== e.kind && 174 !== e.kind && 175 !== e.kind && 299 !== e.kind && !(16777216 & e.flags || (OS.isImportClause(e) || OS.isImportEqualsDeclaration(e) || OS.isImportSpecifier(e)) && OS.isTypeOnlyImportOrExportDeclaration(e)))) return t = OS.getRootDeclaration(e), OS.isParameter(t) && OS.nodeIsMissing(t.parent.body) ? void 0 : 1 + } + + function Nb(t) { + OS.findAncestor(t, function(e) { + return !!(4 & zD(e)) && (79 !== t.kind ? se(OS.getNameOfDeclaration(t), OS.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference) : se(t, OS.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference), !0) + }) + } + + function Ab(t) { + OS.findAncestor(t, function(e) { + return !!(8 & zD(e)) && (79 !== t.kind ? se(OS.getNameOfDeclaration(t), OS.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference) : se(t, OS.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference), !0) + }) + } + + function Fb(e) { + 67108864 & zD(OS.getEnclosingBlockScopeContainer(e)) && (OS.Debug.assert(OS.isNamedDeclaration(e) && OS.isIdentifier(e.name) && "string" == typeof e.name.escapedText, "The target of a WeakMap/WeakSet collision check should be an identifier"), $i("noEmit", e, OS.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, e.name.escapedText)) + } + + function Pb(e) { + var t, r = !1; + if (OS.isClassExpression(e)) { + for (var n = 0, i = e.members; n < i.length; n++) + if (134217728 & zD(i[n])) { + r = !0; + break + } + } else OS.isFunctionExpression(e) ? 134217728 & zD(e) && (r = !0) : (t = OS.getEnclosingBlockScopeContainer(e)) && 134217728 & zD(t) && (r = !0); + r && (OS.Debug.assert(OS.isNamedDeclaration(e) && OS.isIdentifier(e.name), "The target of a Reflect collision check should be an identifier"), $i("noEmit", e, OS.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers, OS.declarationNameToString(e.name), "Reflect")) + } + + function wb(e, t) { + var r, n; + t && (n = e, r = t, v >= OS.ModuleKind.ES2015 && !(v >= OS.ModuleKind.Node16 && OS.getSourceFileOfNode(n).impliedNodeFormat === OS.ModuleKind.CommonJS) || !r || !kb(n, r, "require") && !kb(n, r, "exports") || OS.isModuleDeclaration(n) && 1 !== OS.getModuleInstanceState(n) || 308 === (n = ms(n)).kind && OS.isExternalOrCommonJsModule(n) && $i("noEmit", r, OS.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module, OS.declarationNameToString(r), OS.declarationNameToString(r)), n = e, !(r = t) || 4 <= U || !kb(n, r, "Promise") || OS.isModuleDeclaration(n) && 1 !== OS.getModuleInstanceState(n) || 308 === (n = ms(n)).kind && OS.isExternalOrCommonJsModule(n) && 2048 & n.flags && $i("noEmit", r, OS.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions, OS.declarationNameToString(r), OS.declarationNameToString(r)), n = e, r = t, U <= 8 && (kb(n, r, "WeakMap") || kb(n, r, "WeakSet")) && fi.push(n), r = e, (n = t) && 2 <= U && U <= 8 && kb(r, n, "Reflect") && gi.push(r), OS.isClassLike(e) ? (Dx(t, OS.Diagnostics.Class_name_cannot_be_0), 16777216 & e.flags || (n = t, 1 <= U && "Object" === n.escapedText && (v < OS.ModuleKind.ES2015 || OS.getSourceFileOfNode(n).impliedNodeFormat === OS.ModuleKind.CommonJS) && se(n, OS.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0, OS.ModuleKind[v]))) : OS.isEnumDeclaration(e) && Dx(t, OS.Diagnostics.Enum_name_cannot_be_0)) + } + + function Ib(e) { + return e === Nr ? ee : e === Et ? Ct : e + } + + function Ob(t) { + var e; + if (db(t), OS.isBindingElement(t) || Q(t.type), t.name) { + if (164 === t.name.kind && (q0(t.name), OS.hasOnlyExpressionInitializer(t)) && t.initializer && u2(t.initializer), OS.isBindingElement(t)) { + if (t.propertyName && OS.isIdentifier(t.name) && OS.isParameterDeclaration(t) && OS.nodeIsMissing(OS.getContainingFunction(t).body)) return void mi.push(t); + OS.isObjectBindingPattern(t.parent) && t.dotDotDotToken && U < 5 && iS(t, 4), t.propertyName && 164 === t.propertyName.kind && q0(t.propertyName); + var r = t.parent.parent, + n = hs(r, t.dotDotDotToken ? 64 : 0), + i = t.propertyName || t.name; + n && !OS.isBindingPattern(i) && zc(i = hd(i)) && (i = fe(n, Wc(i))) && (Zh(i, void 0, !1), bh(t, !!r.initializer && 106 === r.initializer.kind, !1, n, i)) + } + OS.isBindingPattern(t.name) && (204 === t.name.kind && U < 2 && Z.downlevelIteration && iS(t, 512), OS.forEach(t.name.elements, Q)), OS.isParameter(t) && t.initializer && OS.nodeIsMissing(OS.getContainingFunction(t).body) ? se(t, OS.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation) : OS.isBindingPattern(t.name) ? (r = OS.hasOnlyExpressionInitializer(t) && t.initializer && 246 !== t.parent.parent.kind, n = !OS.some(t.name.elements, OS.not(OS.isOmittedExpression)), (r || n) && (i = Ks(t), r && (r = u2(t.initializer), $ && n ? Fh(r, t) : mf(r, Ks(t), t, t.initializer)), n) && (OS.isArrayBindingPattern(t.name) ? Wb(65, i, re, t) : $ && Fh(i, t))) : 2097152 & (r = G(t)).flags && OS.isVariableDeclarationInitializedToBareOrAccessedRequire(205 === t.kind ? t.parent.parent : t) ? Ux(t) : (n = Ib(de(r)), t === r.valueDeclaration ? (!(i = OS.hasOnlyExpressionInitializer(t) && OS.getEffectiveInitializer(t)) || OS.isInJSFile(t) && OS.isObjectLiteralExpression(i) && (0 === i.properties.length || OS.isPrototypeAccess(t.name)) && !(null == (e = r.exports) || !e.size) || 246 === t.parent.parent.kind || mf(u2(i), n, t, i, void 0), r.declarations && 1 < r.declarations.length && OS.some(r.declarations, function(e) { + return e !== t && OS.isVariableLike(e) && !Lb(e, t) + }) && se(t.name, OS.Diagnostics.All_declarations_of_0_must_have_identical_modifiers, OS.declarationNameToString(t.name))) : (e = Ib(Ks(t)), _e(n) || _e(e) || sf(n, e) || 67108864 & r.flags || Mb(r.valueDeclaration, n, t, e), OS.hasOnlyExpressionInitializer(t) && t.initializer && mf(u2(t.initializer), e, t, t.initializer, void 0), r.valueDeclaration && !Lb(t, r.valueDeclaration) && se(t.name, OS.Diagnostics.All_declarations_of_0_must_have_identical_modifiers, OS.declarationNameToString(t.name))), 169 !== t.kind && 168 !== t.kind && (X2(t), 257 !== t.kind && 205 !== t.kind || function(e) { + if (0 == (3 & OS.getCombinedNodeFlags(e)) && !OS.isParameterDeclaration(e) && (257 !== e.kind || e.initializer)) { + var t = G(e); + if (1 & t.flags) { + if (!OS.isIdentifier(e.name)) return OS.Debug.fail(); + var r = va(e, e.name.escapedText, 3, void 0, void 0, !1); + r && r !== t && 2 & r.flags && 3 & hh(r) && ((t = 240 === (t = OS.getAncestor(r.valueDeclaration, 258)).parent.kind && t.parent.parent ? t.parent.parent : void 0) && (238 === t.kind && OS.isFunctionLike(t.parent) || 265 === t.kind || 264 === t.kind || 308 === t.kind) || (t = le(r), se(e, OS.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1, t, t))) + } + } + }(t), wb(t, t.name))) + } + } + + function Mb(e, t, r, n) { + var i = OS.getNameOfDeclaration(r), + r = 169 === r.kind || 168 === r.kind ? OS.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2 : OS.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2, + a = OS.declarationNameToString(i), + i = se(i, r, a, ue(t), ue(n)); + e && OS.addRelatedInfo(i, OS.createDiagnosticForNode(e, OS.Diagnostics._0_was_also_declared_here, a)) + } + + function Lb(e, t) { + return 166 === e.kind && 257 === t.kind || 257 === e.kind && 166 === t.kind || (OS.hasQuestionToken(e) === OS.hasQuestionToken(t) ? OS.getSelectedEffectiveModifierFlags(e, 888) === OS.getSelectedEffectiveModifierFlags(t, 888) : void 0) + } + + function Rb(e) { + null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.push("check", "checkVariableDeclaration", { + kind: e.kind, + pos: e.pos, + end: e.end, + path: e.tracingPath + }), + function(e) { + if (246 !== e.parent.parent.kind && 247 !== e.parent.parent.kind) + if (16777216 & e.flags) TS(e); + else if (!e.initializer) { + if (OS.isBindingPattern(e.name) && !OS.isBindingPattern(e.parent)) return J(e, OS.Diagnostics.A_destructuring_declaration_must_have_an_initializer); + if (OS.isVarConst(e)) return J(e, OS.Diagnostics.const_declarations_must_be_initialized) + } { + var t; + if (e.exclamationToken && (240 !== e.parent.parent.kind || !e.type || e.initializer || 16777216 & e.flags)) return t = e.initializer ? OS.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : e.type ? OS.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context : OS.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations, J(e.exclamationToken, t) + }!(v < OS.ModuleKind.ES2015 || OS.getSourceFileOfNode(e).impliedNodeFormat === OS.ModuleKind.CommonJS) || v === OS.ModuleKind.System || 16777216 & e.parent.parent.flags || !OS.hasSyntacticModifier(e.parent.parent, 1) || ! function e(t) { + if (79 === t.kind) { + if ("__esModule" === OS.idText(t)) return AS("noEmit", t, OS.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules) + } else + for (var t = t.elements, r = 0, n = t; r < n.length; r++) { + var i = n[r]; + if (!OS.isOmittedExpression(i)) return e(i.name) + } + return !1 + }(e.name); + (OS.isLet(e) || OS.isVarConst(e)) && function e(t) { + if (79 === t.kind) { + if (119 === t.originalKeywordKind) return J(t, OS.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations) + } else + for (var t = t.elements, r = 0, n = t; r < n.length; r++) { + var i = n[r]; + OS.isOmittedExpression(i) || e(i.name) + } + return !1 + }(e.name) + }(e), Ob(e), null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.pop() + } + + function Bb(e) { + return function(e) { + if (e.dotDotDotToken) { + var t = e.parent.elements; + if (e !== OS.last(t)) return J(e, OS.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); + if (cS(t, OS.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma), e.propertyName) return J(e.name, OS.Diagnostics.A_rest_element_cannot_have_a_property_name) + } + if (e.dotDotDotToken && e.initializer) NS(e, e.initializer.pos - 1, 1, OS.Diagnostics.A_rest_element_cannot_have_an_initializer) + }(e), Ob(e) + } + + function jb(e) { + if (!aS(e) && !CS(e.declarationList)) { + var t = e; + if (! function e(t) { + switch (t.kind) { + case 242: + case 243: + case 244: + case 251: + case 245: + case 246: + case 247: + return !1; + case 253: + return e(t.parent) + } + return !0 + }(t.parent)) OS.isLet(t.declarationList) ? J(t, OS.Diagnostics.let_declarations_can_only_be_declared_inside_a_block) : OS.isVarConst(t.declarationList) && J(t, OS.Diagnostics.const_declarations_can_only_be_declared_inside_a_block) + } + OS.forEach(e.declarationList.declarations, Q) + } + + function Jb(e, u, t) { + if ($) + for (r(e, t); OS.isBinaryExpression(e) && 56 === e.operatorToken.kind;) r(e = e.left, t); + + function r(e, t) { + var r, n, i, a, o, s, c, l = !OS.isBinaryExpression(e) || 56 !== e.operatorToken.kind && 55 !== e.operatorToken.kind ? e : e.right; + OS.isModuleExportsAccessExpression(l) || (r = l === e ? u : Ub(l), i = OS.isPropertyAccessExpression(l) && _2(l.expression), 4194304 & ry(r) && !i && (i = ge(r, 0), n = !!Y2(r), 0 === i.length && !n || !(a = (i = OS.isIdentifier(l) ? l : OS.isPropertyAccessExpression(l) ? l.name : OS.isBinaryExpression(l) && OS.isIdentifier(l.right) ? l.right : void 0) && yD(i)) && !n || a && OS.isBinaryExpression(e.parent) && function(e, n) { + for (; OS.isBinaryExpression(e) && 55 === e.operatorToken.kind;) { + if (OS.forEachChild(e.right, function e(t) { + if (OS.isIdentifier(t)) { + var r = yD(t); + if (r && r === n) return !0 + } + return OS.forEachChild(t, e) + })) return !0; + e = e.parent + } + return !1 + }(e.parent, a) || a && t && (o = e, s = i, c = a, !!OS.forEachChild(t, function e(t) { + if (OS.isIdentifier(t)) { + var r = yD(t); + if (r && r === c) { + if (OS.isIdentifier(o) || OS.isIdentifier(s) && OS.isBinaryExpression(s.parent)) return !0; + for (var n = s.parent, i = t.parent; n && i;) { + if (OS.isIdentifier(n) && OS.isIdentifier(i) || 108 === n.kind && 108 === i.kind) return yD(n) === yD(i); + if (OS.isPropertyAccessExpression(n) && OS.isPropertyAccessExpression(i)) { + if (yD(n.name) !== yD(i.name)) return !1 + } else if (!OS.isCallExpression(n) || !OS.isCallExpression(i)) return !1; + i = i.expression, n = n.expression + } + } + } + return OS.forEachChild(t, e) + })) || (n ? na(l, !0, OS.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined, ts(r)) : se(l, OS.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead)))) + } + } + + function zb(e, t) { + return 16384 & e.flags && se(t, OS.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness), e + } + + function Ub(e, t) { + return zb(V(e, t), e) + } + + function Kb(e) { + vS(e); + var t, r, n, i = Ch(V(e.expression)); + 258 === e.initializer.kind ? ((t = e.initializer.declarations[0]) && OS.isBindingPattern(t.name) && se(t.name, OS.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern), Vb(e)) : (r = V(t = e.initializer), 206 === t.kind || 207 === t.kind ? se(t, OS.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern) : xe(131072 & (n = Td(Sd(n = i))).flags ? ne : n, r) ? q1(t, OS.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access, OS.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access) : se(t, OS.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)), i !== ae && Y1(i, 126091264) || se(e.expression, OS.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0, ue(i)), Q(e.statement), e.locals && gb(e) + } + + function Vb(e) { + e = e.initializer; + 1 <= e.declarations.length && Rb(e.declarations[0]) + } + + function qb(e) { + return Wb(e.awaitModifier ? 15 : 13, Sh(e.expression), re, e.expression) + } + + function Wb(e, t, r, n) { + return j(t) ? t : Hb(e, t, r, n, !0) || ee + } + + function Hb(r, n, e, t, i) { + var a = 0 != (2 & r); + if (n !== ae) { + var o = 2 <= U, + s = !o && Z.downlevelIteration, + c = Z.noUncheckedIndexedAccess && !!(128 & r); + if (o || s || a) { + var l = Yb(n, r, o ? t : void 0); + if (i && l && (i = 8 & r ? OS.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0 : 32 & r ? OS.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0 : 64 & r ? OS.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0 : 16 & r ? OS.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0 : void 0) && gf(e, l.nextType, t, i), l || o) return c ? ly(l && l.yieldType) : l && l.yieldType + } + var u, e = n, + i = !1, + o = !1; + if (4 & r) + if (1048576 & e.flags ? (l = n.types, (u = OS.filter(l, function(e) { + return !(402653316 & e.flags) + })) !== l && (e = he(u, 2))) : 402653316 & e.flags && (e = ae), (o = e !== n) && (U < 1 && t && (se(t, OS.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher), i = !0), 131072 & e.flags)) return c ? ly(ne) : ne; + return dg(e) ? (l = du(e, ie), o && l ? 402653316 & l.flags && !Z.noUncheckedIndexedAccess ? ne : he(c ? [l, ne, re] : [l, ne], 2) : 128 & r ? ly(l) : l) : (t && !i && (l = (u = function(e, t) { + if (t) return e ? [OS.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator, !0] : [OS.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator, !0]; + if (Gb(r, 0, n, void 0)) return [OS.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher, !1]; + if (function(e) { + switch (e) { + case "Float32Array": + case "Float64Array": + case "Int16Array": + case "Int32Array": + case "Int8Array": + case "NodeList": + case "Uint16Array": + case "Uint32Array": + case "Uint8Array": + case "Uint8ClampedArray": + return 1 + } + return + }(null == (t = n.symbol) ? void 0 : t.escapedName)) return [OS.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher, !0]; + return e ? [OS.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type, !0] : [OS.Diagnostics.Type_0_is_not_an_array_type, !0] + }(!!(4 & r) && !o, s))[0], na(t, u[1] && !!Y2(e), l, ue(e))), o ? c ? ly(ne) : ne : void 0) + } + ix(t, n, a) + } + + function Gb(e, t, r, n) { + if (!j(r)) return (r = Yb(r, e, n)) && r[XS(t)] + } + + function Qb(e, t, r) { + var n, i; + return void 0 === t && (t = ae), void 0 === r && (r = te), 67359327 & (e = void 0 === e ? ae : e).flags && 180227 & t.flags && 180227 & r.flags ? (n = Zu([e, t, r]), (i = wn.get(n)) || wn.set(n, i = { + yieldType: e, + returnType: t, + nextType: r + }), i) : { + yieldType: e, + returnType: t, + nextType: r + } + } + + function Xb(e) { + for (var t, r, n, i = 0, a = e; i < a.length; i++) { + var o = a[i]; + if (void 0 !== o && o !== In) { + if (o === On) return On; + t = OS.append(t, o.yieldType), r = OS.append(r, o.returnType), n = OS.append(n, o.nextType) + } + } + return t || r || n ? Qb(t && he(t), r && he(r), n && ve(n)) : In + } + + function Yb(e, t, r) { + var n; + if (j(e)) return On; + if (!(1048576 & e.flags)) { + var i = $b(e, t, r, p = r ? { + errors: void 0 + } : void 0); + if (i === In) return void(r && (f = ix(r, e, !!(2 & t)), null != p) && p.errors && OS.addRelatedInfo.apply(void 0, __spreadArray([f], p.errors, !1))); + if (null != (u = null == p ? void 0 : p.errors) && u.length) + for (var a = 0, o = p.errors; a < o.length; a++) { + var s = o[a]; + oe.add(s) + } + return i + } + var c, l = 2 & t ? "iterationTypesOfAsyncIterable" : "iterationTypesOfIterable", + u = e[l]; + if (u) return u === In ? void 0 : u; + for (var _ = 0, d = e.types; _ < d.length; _++) { + var p, f, g = $b(d[_], t, r, p = r ? { + errors: void 0 + } : void 0); + if (g === In) return r && (f = ix(r, e, !!(2 & t)), null != p) && p.errors && OS.addRelatedInfo.apply(void 0, __spreadArray([f], p.errors, !1)), void(e[l] = In); + if (null != (n = null == p ? void 0 : p.errors) && n.length) + for (var m = 0, y = p.errors; m < y.length; m++) { + s = y[m]; + oe.add(s) + } + c = OS.append(c, g) + } + i = c ? Xb(c) : In; + return (e[l] = i) === In ? void 0 : i + } + + function Zb(e, t) { + var r, n; + return e === In ? In : e === On ? On : (r = e.yieldType, n = e.returnType, e = e.nextType, t && B_(!0), Qb(ab(r, t) || ee, ab(n, t) || ee, e)) + } + + function $b(e, t, r, n) { + if (j(e)) return On; + var i, a = !1; + if (2 & t && (i = ex(e, Rn) || rx(e, Rn))) { + if (i !== In || !r) return 8 & t ? Zb(i, r) : i; + a = !0 + } + if (1 & t && (i = ex(e, Bn) || rx(e, Bn))) + if (i === In && r) a = !0; + else { + if (!(2 & t)) return i; + if (i !== In) return i = Zb(i, r), a ? i : e.iterationTypesOfAsyncIterable = i + } + if (2 & t && (i = nx(e, Rn, r, n, a)) !== In) return i; + if (1 & t && (i = nx(e, Bn, r, n, a)) !== In) return !(2 & t) || (i = Zb(i, r), a) ? i : e.iterationTypesOfAsyncIterable = i; + return In + } + + function ex(e, t) { + return e[t.iterableCacheKey] + } + + function tx(e, t) { + e = ex(e, t) || nx(e, t, void 0, void 0, !1); + return e === In ? Ln : e + } + + function rx(e, t) { + var r, n, i, a; + return sc(e, r = t.getGlobalIterableType(!1)) || sc(e, r = t.getGlobalIterableIteratorType(!1)) ? (n = ye(e)[0], i = (r = tx(r, t)).returnType, a = r.nextType, e[t.iterableCacheKey] = Qb(t.resolveIterationType(n, void 0) || n, t.resolveIterationType(i, void 0) || i, a)) : sc(e, t.getGlobalGeneratorType(!1)) ? (n = (r = ye(e))[0], i = r[1], a = r[2], e[t.iterableCacheKey] = Qb(t.resolveIterationType(n, void 0) || n, t.resolveIterationType(i, void 0) || i, a)) : void 0 + } + + function nx(e, t, r, n, i) { + var a = fe(e, (o = t.iteratorSymbolName, (a = (a = F_(!1)) && ys(de(a), OS.escapeLeadingUnderscores(o))) && zc(a) ? Wc(a) : "__@".concat(o))), + o = !a || 16777216 & a.flags ? void 0 : de(a); + return j(o) ? i ? On : e[t.iterableCacheKey] = On : (a = o ? ge(o, 0) : void 0, OS.some(a) ? (a = null != (o = ax(ve(OS.map(a, me)), t, r, n, i)) ? o : In, i ? a : e[t.iterableCacheKey] = a) : i ? In : e[t.iterableCacheKey] = In) + } + + function ix(e, t, r) { + var n = r ? OS.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator : OS.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator; + return na(e, !!Y2(t) || !r && OS.isForOfStatement(e.parent) && e.parent.expression === e && M_(!1) !== mn && xe(t, M_(!1)), n, ue(t)) + } + + function ax(e, t, r, n, i) { + var a; + return j(e) ? On : ((a = ox(e, t) || function(e, t) { + var r = t.getGlobalIterableIteratorType(!1); + if (sc(e, r)) return n = ye(e)[0], r = ox(r, t) || dx(r, t, void 0, void 0, !1), i = (r = r === In ? Ln : r).returnType, a = r.nextType, e[t.iteratorCacheKey] = Qb(n, i, a); { + var n, i, a; + if (sc(e, t.getGlobalIteratorType(!1)) || sc(e, t.getGlobalGeneratorType(!1))) return r = ye(e), n = r[0], i = r[1], a = r[2], e[t.iteratorCacheKey] = Qb(n, i, a) + } + }(e, t)) === In && r && (i = !(a = void 0)), (a = null == a ? dx(e, t, r, n, i) : a) === In ? void 0 : a) + } + + function ox(e, t) { + return e[t.iteratorCacheKey] + } + + function sx(e, t) { + e = ys(e, "done") || Jr; + return xe(0 === t ? Jr : Ur, e) + } + + function cx(e) { + return sx(e, 0) + } + + function lx(e) { + return sx(e, 1) + } + + function ux(e) { + var t, r; + return j(e) ? On : e.iterationTypesOfIteratorResult || (sc(e, (zt = zt || E_("IteratorYieldResult", 1, !1)) || mn) ? (t = ye(e)[0], e.iterationTypesOfIteratorResult = Qb(t, void 0, void 0)) : sc(e, (Ut = Ut || E_("IteratorReturnResult", 1, !1)) || mn) ? (t = ye(e)[0], e.iterationTypesOfIteratorResult = Qb(void 0, t, void 0)) : (t = (t = Sy(e, cx)) !== ae ? ys(t, "value") : void 0, r = (r = Sy(e, lx)) !== ae ? ys(r, "value") : void 0, e.iterationTypesOfIteratorResult = t || r ? Qb(t, r || Wr, void 0) : In)) + } + + function _x(e, t, r, n, i) { + e = fe(e, r); + if (e || "next" === r) { + e = !e || "next" === r && 16777216 & e.flags ? void 0 : "next" === r ? de(e) : ny(de(e), 2097152); + if (j(e)) return "next" === r ? On : Mn; + var a, o, s = e ? ge(e, 0) : OS.emptyArray; + if (0 === s.length) return n && (c = "next" === r ? t.mustHaveANextMethodDiagnostic : t.mustBeAMethodDiagnostic, i ? (null == i.errors && (i.errors = []), i.errors.push(OS.createDiagnosticForNode(n, c, r))) : se(n, c, r)), "next" === r ? In : void 0; + if (null != e && e.symbol && 1 === s.length) { + var c = t.getGlobalGeneratorType(!1), + l = t.getGlobalIteratorType(!1), + u = (null == (u = null == (u = c.symbol) ? void 0 : u.members) ? void 0 : u.get(r)) === e.symbol, + _ = !u && (null == (_ = null == (_ = l.symbol) ? void 0 : _.members) ? void 0 : _.get(r)) === e.symbol; + if (u || _) return _ = e.mapper, Qb(Ip((e = u ? c : l).typeParameters[0], _), Ip(e.typeParameters[1], _), "next" === r ? Ip(e.typeParameters[2], _) : void 0) + } + for (var d, p, f, g = 0, m = s; g < m.length; g++) { + var y = m[g]; + "throw" !== r && OS.some(y.parameters) && (a = OS.append(a, h1(y, 0))), o = OS.append(o, me(y)) + } + "throw" !== r && (u = a ? he(a) : te, "next" === r ? d = u : "return" === r && (c = t.resolveIterationType(u, n) || ee, p = OS.append(p, c))); + l = o ? ve(o) : ae, e = ux(t.resolveIterationType(l, n) || ee); + return p = e === In ? (n && (i ? (null == i.errors && (i.errors = []), i.errors.push(OS.createDiagnosticForNode(n, t.mustHaveAValueDiagnostic, r))) : se(n, t.mustHaveAValueDiagnostic, r)), OS.append(p, f = ee)) : (f = e.yieldType, OS.append(p, e.returnType)), Qb(f, he(p), d) + } + } + + function dx(e, t, r, n, i) { + r = Xb([_x(e, t, "next", r, n), _x(e, t, "return", r, n), _x(e, t, "throw", r, n)]); + return i ? r : e[t.iteratorCacheKey] = r + } + + function px(e, t, r) { + if (!j(t)) return (t = fx(t, r)) && t[XS(e)] + } + + function fx(e, t) { + var r; + return j(e) ? On : (r = t ? Rn : Bn, Yb(e, t ? 2 : 1, void 0) || ax(e, r, void 0, void 0, !1)) + } + + function gx(e) { + if (!FS(e)) { + for (var t = e, r = t; r;) { + if (OS.isFunctionLikeOrClassStaticBlockDeclaration(r)) return void!J(t, OS.Diagnostics.Jump_target_cannot_cross_function_boundary); + switch (r.kind) { + case 253: + if (t.label && r.label.escapedText === t.label.escapedText) return void!(248 !== t.kind || OS.isIterationStatement(r.statement, !0) || J(t, OS.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)); + break; + case 252: + if (249 !== t.kind || t.label) break; + return void!void 0; + default: + if (OS.isIterationStatement(r, !1) && !t.label) return void!void 0 + } + r = r.parent + } + e = t.label ? 249 === t.kind ? OS.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement : OS.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement : 249 === t.kind ? OS.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement : OS.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement, J(t, e) + } + } + + function mx(e, t) { + var r = !!(2 & t); + return !(1 & t) ? r ? ob(e) || R : e : (t = px(1, e, r)) ? r ? ob(rb(t)) : t : R + } + + function yx(e, t) { + t = mx(t, OS.getFunctionFlags(e)); + return t && X1(t, 16387) + } + + function hx(e) { + FS(e); + var t, r = !1, + i = V(e.expression), + a = xg(i); + OS.forEach(e.caseBlock.clauses, function(e) { + var n; + 293 !== e.kind || r || (void 0 === t ? t = e : (J(e, OS.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement), r = !0)), 292 === e.kind && q((n = e, function() { + var e = V(n.expression), + t = xg(e), + r = i; + t && a || (e = t ? Dg(e) : e, r = Dg(i)), a2(r, e) || Sf(e, r, n.expression, void 0) + })), OS.forEach(e.statements, Q), Z.noFallthroughCasesInSwitch && e.fallthroughFlowNode && Uy(e.fallthroughFlowNode) && se(e, OS.Diagnostics.Fallthrough_case_in_switch) + }), e.caseBlock.locals && gb(e.caseBlock) + } + + function vx(e) { + var t, r, n, i, a, o; + FS(e) || OS.isIdentifier(e.expression) && !e.expression.escapedText && (t = e, r = OS.Diagnostics.Line_break_not_permitted_here, ES(o = OS.getSourceFileOfNode(t)) || (t = OS.getSpanOfTokenAtPosition(o, t.pos), oe.add(OS.createFileDiagnostic(o, OS.textSpanEnd(t), 0, r, n, i, a)))), e.expression && V(e.expression) + } + + function bx(e, t, r) { + var n = uu(e); + if (0 !== n.length) { + for (var i = 0, a = Pl(e); i < a.length; i++) { + var o = a[i]; + r && 4194304 & o.flags || xx(e, o, vd(o, 8576, !0), oc(o)) + } + t = t.valueDeclaration; + if (t && OS.isClassLike(t)) + for (var s = 0, c = t.members; s < c.length; s++) { + var l, u = c[s]; + OS.isStatic(u) || qc(u) || xx(e, l = G(u), C2(u.name.expression), oc(l)) + } + if (1 < n.length) + for (var _ = 0, d = n; _ < d.length; _++) ! function(r, n) { + for (var e = n.declaration, t = pu(r, n.keyType), i = 2 & OS.getObjectFlags(r) ? OS.getDeclarationOfKind(r.symbol, 261) : void 0, a = e && xo(G(e)) === r.symbol ? e : void 0, o = 0, s = t; o < s.length; o++) ! function(t) { + if (t === n) return; + var e = t.declaration && xo(G(t.declaration)) === r.symbol ? t.declaration : void 0, + e = a || e || (i && !OS.some(xc(r), function(e) { + return !!_u(e, n.keyType) && !!du(e, t.keyType) + }) ? i : void 0); + e && !xe(n.type, t.type) && se(e, OS.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3, ue(n.keyType), ue(n.type), ue(t.keyType), ue(t.type)) + }(s[o]) + }(e, d[_]) + } + } + + function xx(n, i, e, a) { + var t = i.valueDeclaration, + r = OS.getNameOfDeclaration(t); + if (!r || !OS.isPrivateIdentifier(r)) + for (var e = pu(n, e), o = 2 & OS.getObjectFlags(n) ? OS.getDeclarationOfKind(n.symbol, 261) : void 0, s = t && 223 === t.kind || r && 164 === r.kind ? t : void 0, c = xo(i) === n.symbol ? t : void 0, l = 0, u = e; l < u.length; l++) ! function(t) { + var e, r = t.declaration && xo(G(t.declaration)) === n.symbol ? t.declaration : void 0, + r = c || r || (o && !OS.some(xc(n), function(e) { + return !!wl(e, i.escapedName) && !!du(e, t.keyType) + }) ? o : void 0); + r && !xe(a, t.type) && (e = ea(r, OS.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3, le(i), ue(a), ue(t.keyType), ue(t.type)), s && r !== s && OS.addRelatedInfo(e, OS.createDiagnosticForNode(s, OS.Diagnostics._0_is_declared_here, le(i))), oe.add(e)) + }(u[l]) + } + + function Dx(e, t) { + switch (e.escapedText) { + case "any": + case "unknown": + case "never": + case "number": + case "bigint": + case "boolean": + case "string": + case "symbol": + case "void": + case "object": + se(e, t, e.escapedText) + } + } + + function Sx(o) { + var s = !1; + if (o) + for (var e = 0; e < o.length; e++) { + var t = o[e]; + N2(t), q(function(r, n) { + return function() { + var e, i, a; + r.default ? (s = !0, e = r.default, i = o, a = n, function e(t) { + if (180 === t.kind) { + var r = h_(t); + if (262144 & r.flags) + for (var n = a; n < i.length; n++) r.symbol === G(i[n]) && se(t, OS.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters) + } + OS.forEachChild(t, e) + }(e)) : s && se(r, OS.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters); + for (var t = 0; t < n; t++) o[t].symbol === r.symbol && se(r.name, OS.Diagnostics.Duplicate_identifier_0, OS.declarationNameToString(r.name)) + } + }(t, e)) + } + } + + function Tx(e) { + if (!e.declarations || 1 !== e.declarations.length) { + var t = ce(e); + if (!t.typeParametersChecked) { + t.typeParametersChecked = !0; + t = OS.filter(e.declarations, function(e) { + return 260 === e.kind || 261 === e.kind + }); + if (t && !(t.length <= 1)) + if (!Cx(t, Pc(e).localTypeParameters, OS.getEffectiveTypeParameterDeclarations)) + for (var r = le(e), n = 0, i = t; n < i.length; n++) se(i[n].name, OS.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters, r) + } + } + } + + function Cx(e, t, r) { + for (var n = OS.length(t), i = Su(t), a = 0, o = e; a < o.length; a++) { + var s = r(o[a]), + c = s.length; + if (c < i || n < c) return; + for (var l = 0; l < c; l++) { + var u = s[l], + _ = t[l]; + if (u.name.escapedText !== _.symbol.escapedName) return; + var d = OS.getEffectiveConstraintOfTypeParameter(u), + d = d && K(d), + p = Ml(_); + if (d && p && !sf(d, p)) return; + d = u.default && K(u.default), p = ql(_); + if (d && p && !sf(d, p)) return + } + } + return 1 + } + + function Ex(g) { + e = g, I = OS.getSourceFileOfNode(e), + function(e) { + var t = !1, + r = !1; + if (!aS(e) && e.heritageClauses) + for (var n = 0, i = e.heritageClauses; n < i.length; n++) { + var a = i[n]; + if (94 === a.token) { + if (t) return kS(a, OS.Diagnostics.extends_clause_already_seen); + if (r) return kS(a, OS.Diagnostics.extends_clause_must_precede_implements_clause); + if (1 < a.types.length) return kS(a.types[1], OS.Diagnostics.Classes_can_only_extend_a_single_class); + t = !0 + } else { + if (OS.Debug.assert(117 === a.token), r) return kS(a, OS.Diagnostics.implements_clause_already_seen); + r = !0 + } + pS(a) + } + }(e) || lS(e.typeParameters, I), db(g), wb(g, g.name), Sx(OS.getEffectiveTypeParameterDeclarations(g)), X2(g); + for (var s = G(g), m = Pc(s), y = Yc(m), h = de(s), e = (Tx(s), Q2(s), g), t = new OS.Map, L = new OS.Map, R = new OS.Map, r = 0, n = e.members; r < n.length; r++) { + var i = n[r]; + if (173 === i.kind) + for (var a = 0, o = i.parameters; a < o.length; a++) { + var c = o[a]; + OS.isParameterPropertyDeclaration(c, i) && !OS.isBindingPattern(c.name) && v(t, c.name, c.name.escapedText, 3) + } else { + var l = OS.isStatic(i), + u = i.name; + if (u) { + var _ = OS.isPrivateIdentifier(u), + d = _ && l ? 16 : 0, + p = _ ? R : l ? L : t, + f = u && OS.getPropertyNameForPropertyNameNode(u); + if (f) switch (i.kind) { + case 174: + v(p, u, f, 1 | d); + break; + case 175: + v(p, u, f, 2 | d); + break; + case 169: + v(p, u, f, 3 | d); + break; + case 171: + v(p, u, f, 8 | d) + } + } + } + } + + function v(e, t, r, n) { + var i, a, o = e.get(r); + o ? (16 & o) != (16 & n) ? se(t, OS.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name, OS.getTextOfNode(t)) : (a = !!(8 & n), (i = !!(8 & o)) || a ? i != a && se(t, OS.Diagnostics.Duplicate_identifier_0, OS.getTextOfNode(t)) : o & n & -17 ? se(t, OS.Diagnostics.Duplicate_identifier_0, OS.getTextOfNode(t)) : e.set(r, o | n)) : e.set(r, n) + } + if (!!!(16777216 & g.flags)) + for (var b = g, x = 0, D = b.members; x < D.length; x++) { + var S = D[x], + T = S.name; + if (OS.isStatic(S) && T) { + var C = OS.getPropertyNameForPropertyNameNode(T); + switch (C) { + case "name": + case "length": + case "caller": + case "arguments": + case "prototype": + se(T, OS.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1, C, us(G(b))) + } + } + } + for (var E, k = OS.getEffectiveBaseTypeNode(g), N = (k && (OS.forEach(k.typeArguments, Q), U < 2 && iS(k.parent, 1), (I = OS.getClassExtendsHeritageElement(g)) && I !== k && V(I.expression), (E = xc(m)).length) && q(function() { + var t = E[0], + e = vc(m), + r = Ql(e); + if (o = k, (s = ge(c = r, 1)).length && (s = s[0].declaration) && OS.hasEffectiveModifier(s, 8) && (s = OS.getClassLikeDeclarationOfSymbol(c.symbol), pD(o, s) || se(o, OS.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private, to(c.symbol))), Q(k.expression), OS.some(k.typeArguments)) { + OS.forEach(k.typeArguments, Q); + for (var n = 0, i = yc(r, k.typeArguments, k); n < i.length; n++) { + var a = i[n]; + if (!J2(k, a.typeParameters)) break + } + } + for (var o, _, d, s = Yc(t, m.thisType), p = (gf(y, s, void 0) ? gf(h, of(r), g.name || g, OS.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1) : Ax(g, y, s, OS.Diagnostics.Class_0_incorrectly_extends_base_class_1), 8650752 & e.flags && (fc(h) ? ge(e, 1).some(function(e) { + return 4 & e.flags + }) && !OS.hasSyntacticModifier(g, 256) && se(g.name || g, OS.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract) : se(g.name || g, OS.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)), r.symbol && 32 & r.symbol.flags || 8650752 & e.flags || (o = hc(r, k.typeArguments, k), OS.forEach(o, function(e) { + return !Qv(e.declaration) && !sf(me(e), t) + }) && se(k.expression, OS.Diagnostics.Base_constructors_must_all_have_the_same_return_type)), m), f = t, c = pe(f), l = 0, u = c; l < u.length; l++) ! function(e) { + var t = Fx(e); + if (4194304 & t.flags) return; + var r = wl(p, t.escapedName); + if (!r) return; + var r = Fx(r), + n = OS.getDeclarationModifierFlagsFromSymbol(t); + if (OS.Debug.assert(!!r, "derived should point to something, even if it is the base class' declaration."), r === t) { + var i = OS.getClassLikeDeclarationOfSymbol(p.symbol); + if (256 & n && (!i || !OS.hasSyntacticModifier(i, 256))) { + for (var a = 0, o = xc(p); a < o.length; a++) { + var s = o[a]; + if (s !== f) { + s = wl(s, t.escapedName), s = s && Fx(s); + if (s && s !== t) return + } + } + 228 === i.kind ? se(i, OS.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1, le(e), ue(f)) : se(i, OS.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2, ue(p), le(e), ue(f)) + } + } else { + i = OS.getDeclarationModifierFlagsFromSymbol(r); + if (8 & n || 8 & i) return; + var c, e = void 0, + l = 98308 & t.flags, + u = 98308 & r.flags; + if (l && u) return (6 & OS.getCheckFlags(t) ? null != (_ = t.declarations) && _.some(function(e) { + return Px(e, n) + }) : null != (_ = t.declarations) && _.every(function(e) { + return Px(e, n) + })) || 262144 & OS.getCheckFlags(t) || r.valueDeclaration && OS.isBinaryExpression(r.valueDeclaration) || ((c = 4 != l && 4 == u) || 4 == l && 4 != u ? (l = c ? OS.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property : OS.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor, se(OS.getNameOfDeclaration(r.valueDeclaration) || r.valueDeclaration, l, le(t), ue(f), ue(p))) : !W || !(u = null == (d = r.declarations) ? void 0 : d.find(function(e) { + return 169 === e.kind && !e.initializer + })) || 33554432 & r.flags || 256 & n || 256 & i || null != (d = r.declarations) && d.some(function(e) { + return !!(16777216 & e.flags) + }) || (c = No(OS.getClassLikeDeclarationOfSymbol(p.symbol)), l = u.name, !u.exclamationToken && c && OS.isIdentifier(l) && $ && Ox(l, p, c)) || (i = OS.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration, se(OS.getNameOfDeclaration(r.valueDeclaration) || r.valueDeclaration, i, le(t), ue(f)))); + if (vh(t)) { + if (vh(r) || 4 & r.flags) return; + OS.Debug.assert(!!(98304 & r.flags)), e = OS.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor + } else e = 98304 & t.flags ? OS.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function : OS.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function; + se(OS.getNameOfDeclaration(r.valueDeclaration) || r.valueDeclaration, e, ue(f), le(t), ue(p)) + } + }(u[l]) + }), g), A = m, F = y, P = h, e = OS.getEffectiveBaseTypeNode(N) && xc(A), B = null != e && e.length ? Yc(OS.first(e), A.thisType) : void 0, j = vc(A), w = 0, J = N.members; w < J.length; w++) ! function(t) { + if (OS.hasAmbientModifier(t)) return; + OS.isConstructorDeclaration(t) && OS.forEach(t.parameters, function(e) { + OS.isParameterPropertyDeclaration(e, t) && kx(N, P, j, B, A, F, e, !0) + }), kx(N, P, j, B, A, F, t, !1) + }(J[w]); + var I = OS.getEffectiveImplementsTypeNodes(g); + if (I) + for (var O = 0, z = I; O < z.length; O++) { + var M = z[O]; + OS.isEntityNameExpression(M.expression) && !OS.isOptionalChain(M.expression) || se(M.expression, OS.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments), U2(M), q(function(r) { + return function() { + var e, t = eu(K(r)); + _e(t) || (Dc(t) ? (e = t.symbol && 32 & t.symbol.flags ? OS.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass : OS.Diagnostics.Class_0_incorrectly_implements_interface_1, t = Yc(t, m.thisType), gf(y, t, void 0) || Ax(g, y, t, e)) : se(r, OS.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)) + } + }(M)) + } + q(function() { + bx(m, s), bx(h, s, !0), I2(g); + var e = g; + if ($ && Y && !(16777216 & e.flags)) + for (var t = No(e), r = 0, n = e.members; r < n.length; r++) { + var i, a, o = n[r]; + 2 & OS.getEffectiveModifierFlags(o) || !OS.isStatic(o) && Ix(o) && (i = o.name, !(OS.isIdentifier(i) || OS.isPrivateIdentifier(i) || OS.isComputedPropertyName(i)) || 3 & (a = de(G(o))).flags || Af(a) || t && Ox(i, a, t) || se(o.name, OS.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor, OS.declarationNameToString(i))) + } + }) + } + + function kx(e, t, r, n, i, a, o, s, c) { + void 0 === c && (c = !0); + var l = o.name && yD(o.name) || yD(o); + l && Nx(e, t, r, n, i, a, OS.hasOverrideModifier(o), OS.hasAbstractModifier(o), OS.isStatic(o), s, OS.symbolName(l), c ? o : void 0) + } + + function Nx(e, t, r, n, i, a, o, s, c, l, u, _) { + var d = OS.isInJSFile(e), + e = !!(16777216 & e.flags); + if (n && (o || Z.noImplicitOverride)) { + var p = OS.escapeLeadingUnderscores(u), + r = c ? r : n, + c = fe(c ? t : a, p), + t = fe(r, p), + a = ue(n); + if (c && !t && o) return _ && ((p = qh(u, r)) ? se(_, d ? OS.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1 : OS.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1, a, le(p)) : se(_, d ? OS.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0 : OS.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0, a)), 2; + if (c && null != t && t.declarations && Z.noImplicitOverride && !e) { + n = OS.some(t.declarations, OS.hasAbstractModifier); + if (o) return 0; + if (!n) return _ && se(_, l ? d ? OS.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 : OS.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0 : d ? OS.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 : OS.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0, a), 1; + if (s && n) return _ && se(_, OS.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0, a), 1 + } + } else if (o) return _ && (u = ue(i), se(_, d ? OS.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class : OS.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class, u)), 2; + return 0 + } + + function Ax(e, i, a, t) { + for (var o = !1, r = function(e) { + if (OS.isStatic(e)) return "continue"; + var t, r, n = e.name && yD(e.name) || yD(e); + n && (t = fe(i, n.escapedName), r = fe(a, n.escapedName), t) && r && (gf(de(t), de(r), e.name || e, void 0, function() { + return OS.chainDiagnosticMessages(void 0, OS.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2, le(n), ue(i), ue(a)) + }) || (o = !0)) + }, n = 0, s = e.members; n < s.length; n++) r(s[n]); + o || gf(i, a, e.name || e, t) + } + + function Fx(e) { + return 1 & OS.getCheckFlags(e) ? e.target : e + } + + function Px(e, t) { + return 256 & t && (!OS.isPropertyDeclaration(e) || !e.initializer) || OS.isInterfaceDeclaration(e.parent) + } + + function wx(t, e) { + var r = xc(t); + if (r.length < 2) return 1; + for (var n = new OS.Map, i = (OS.forEach(Jc(t).declaredProperties, function(e) { + n.set(e.escapedName, { + prop: e, + containingType: t + }) + }), !0), a = 0, o = r; a < o.length; a++) + for (var s = o[a], c = 0, l = pe(Yc(s, t.thisType)); c < l.length; c++) { + var u, _, d = l[c], + p = n.get(d.escapedName); + p ? p.containingType !== t && 0 === ig(p.prop, d, cf) && (i = !1, p = ue(p.containingType), u = ue(s), _ = OS.chainDiagnosticMessages(void 0, OS.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical, le(d), p, u), _ = OS.chainDiagnosticMessages(_, OS.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2, ue(t), p, u), oe.add(OS.createDiagnosticForNodeFromMessageChain(e, _))) : n.set(d.escapedName, { + prop: d, + containingType: s + }) + } + return i + } + + function Ix(e) { + return 169 === e.kind && !OS.hasAbstractModifier(e) && !e.exclamationToken && !e.initializer + } + + function Ox(e, t, r) { + e = OS.isComputedPropertyName(e) ? OS.factory.createElementAccessExpression(OS.factory.createThis(), e.expression) : OS.factory.createPropertyAccessExpression(OS.factory.createThis(), e); + return OS.setParent(e.expression, e), OS.setParent(e, r), e.flowNode = r.returnFlowNode, !Af(Vy(e, t, Mg(t))) + } + + function Mx(o) { + aS(o) || ! function(e) { + var t = !1; + if (e.heritageClauses) + for (var r = 0, n = e.heritageClauses; r < n.length; r++) { + var i = n[r]; + if (94 !== i.token) return OS.Debug.assert(117 === i.token), kS(i, OS.Diagnostics.Interface_declaration_cannot_have_implements_clause); + if (t) return kS(i, OS.Diagnostics.extends_clause_already_seen); + t = !0, pS(i) + } + }(o), Sx(o.typeParameters), q(function() { + Dx(o.name, OS.Diagnostics.Interface_name_cannot_be_0), X2(o); + var e = G(o), + t = (Tx(e), OS.getDeclarationOfKind(e, 261)); + if (o === t) { + var r = Pc(e), + n = Yc(r); + if (wx(r, o.name)) { + for (var i = 0, a = xc(r); i < a.length; i++) gf(n, Yc(a[i], r.thisType), o.name, OS.Diagnostics.Interface_0_incorrectly_extends_interface_1); + bx(r, e) + } + } + w2(o) + }), OS.forEach(OS.getInterfaceBaseTypeNodes(o), function(e) { + OS.isEntityNameExpression(e.expression) && !OS.isOptionalChain(e.expression) || se(e.expression, OS.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments), U2(e) + }), OS.forEach(o.members, Q), q(function() { + I2(o), gb(o) + }) + } + + function Lx(e) { + var t = H(e); + if (!(16384 & t.flags)) { + t.flags |= 16384; + for (var r = 0, n = 0, i = e.members; n < i.length; n++) var a = i[n], + o = function(e, t) { + { + var r; + OS.isComputedNonLiteralName(e.name) ? se(e.name, OS.Diagnostics.Computed_property_names_are_not_allowed_in_enums) : (r = OS.getTextOfPropertyName(e.name), OS.isNumericLiteralName(r) && !OS.isInfinityOrNaNString(r) && se(e.name, OS.Diagnostics.An_enum_member_cannot_have_a_numeric_name)) + } + if (e.initializer) return function(s) { + var e = Ec(G(s.parent)), + t = OS.isEnumConst(s.parent), + r = s.initializer, + n = 1 !== e || Cc(s) ? function e(t) { + switch (t.kind) { + case 221: + var r = e(t.operand); + if ("number" == typeof r) switch (t.operator) { + case 39: + return r; + case 40: + return -r; + case 54: + return ~r + } + break; + case 223: + var n = e(t.left), + i = e(t.right); + if ("number" == typeof n && "number" == typeof i) switch (t.operatorToken.kind) { + case 51: + return n | i; + case 50: + return n & i; + case 48: + return n >> i; + case 49: + return n >>> i; + case 47: + return n << i; + case 52: + return n ^ i; + case 41: + return n * i; + case 43: + return n / i; + case 39: + return n + i; + case 40: + return n - i; + case 44: + return n % i; + case 42: + return Math.pow(n, i) + } else if ("string" == typeof n && "string" == typeof i && 39 === t.operatorToken.kind) return n + i; + break; + case 10: + case 14: + return t.text; + case 8: + return PS(t), +t.text; + case 214: + return e(t.expression); + case 79: + var a = t; + return OS.isInfinityOrNaNString(a.escapedText) ? +a.escapedText : OS.nodeIsMissing(t) ? 0 : c(t, G(s.parent), a.escapedText); + case 209: + case 208: + if (Rx(t)) { + var o, a = C2(t.expression); + if (a.symbol && 384 & a.symbol.flags) return o = void 0, o = 208 === t.kind ? t.name.escapedText : OS.escapeLeadingUnderscores(OS.cast(t.argumentExpression, OS.isLiteralExpression).text), c(t, a.symbol, o) + } + } + return + }(r) : void 0; + if (void 0 !== n) t && "number" == typeof n && !isFinite(n) && se(r, isNaN(n) ? OS.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN : OS.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value); + else { + if (1 === e) return se(r, OS.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members), 0; + t ? se(r, OS.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values) : 16777216 & s.parent.flags ? se(r, OS.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression) : Y1(e = V(r), 296) ? gf(e, Pc(G(s.parent)), r, void 0) : se(r, OS.Diagnostics.Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead, ue(e)) + } + return n; + + function c(e, t, r) { + t = t.exports.get(r); + if (t) { + r = t.valueDeclaration; + if (r !== s) return r && ya(r, s) && OS.isEnumDeclaration(r.parent) ? UD(r) : (se(e, OS.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums), 0); + se(e, OS.Diagnostics.Property_0_is_used_before_being_assigned, le(t)) + } + } + }(e); + if (!(16777216 & e.parent.flags) || OS.isEnumConst(e.parent) || 0 !== Ec(G(e.parent))) { + if (void 0 !== t) return t; + se(e.name, OS.Diagnostics.Enum_member_must_have_initializer) + } + return + }(a, r), + r = "number" == typeof(H(a).enumMemberValue = o) ? o + 1 : void 0 + } + } + + function Rx(e) { + return C2(e) !== R && (79 === e.kind || 208 === e.kind && Rx(e.expression) || 209 === e.kind && Rx(e.expression) && OS.isStringLiteralLike(e.argumentExpression)) + } + + function Bx(a) { + q(function() { + var t, r, e = a, + n = (aS(e), wb(e, e.name), X2(e), e.members.forEach(jx), Lx(e), G(e)), + i = OS.getDeclarationOfKind(n, e.kind); + e === i && (n.declarations && 1 < n.declarations.length && (t = OS.isEnumConst(e), OS.forEach(n.declarations, function(e) { + OS.isEnumDeclaration(e) && OS.isEnumConst(e) !== t && se(OS.getNameOfDeclaration(e), OS.Diagnostics.Enum_declarations_must_all_be_const_or_non_const) + })), r = !1, OS.forEach(n.declarations, function(e) { + return 263 === e.kind && !!e.members.length && void((e = e.members[0]).initializer || (r ? se(e.name, OS.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element) : r = !0)) + })) + }) + } + + function jx(e) { + OS.isPrivateIdentifier(e.name) && se(e, OS.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier) + } + + function Jx(o) { + o.body && (Q(o.body), OS.isGlobalScopeAugmentation(o) || gb(o)), q(function() { + var e = OS.isGlobalScopeAugmentation(o), + t = 16777216 & o.flags; + e && !t && se(o.name, OS.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context); + var r = OS.isAmbientModule(o), + n = r ? OS.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file : OS.Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module; + if (!Qx(o, n)) { + aS(o) || t || 10 !== o.name.kind || J(o.name, OS.Diagnostics.Only_ambient_modules_can_use_quoted_names), OS.isIdentifier(o.name) && wb(o, o.name), X2(o); + n = G(o); + if (512 & n.flags && !t && n.declarations && 1 < n.declarations.length && HS(o, OS.shouldPreserveConstEnums(Z)) && ((t = function(e) { + if (e = e.declarations) + for (var t = 0, r = e; t < r.length; t++) { + var n = r[t]; + if ((260 === n.kind || 259 === n.kind && OS.nodeIsPresent(n.body)) && !(16777216 & n.flags)) return n + } + }(n)) && (OS.getSourceFileOfNode(o) !== OS.getSourceFileOfNode(t) ? se(o.name, OS.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged) : o.pos < t.pos && se(o.name, OS.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged)), t = OS.getDeclarationOfKind(n, 260)) && function(e, t) { + return e = OS.getEnclosingBlockScopeContainer(e), t = OS.getEnclosingBlockScopeContainer(t), ga(e) ? ga(t) : !ga(t) && e === t + }(o, t) && (H(o).flags |= 32768), r) + if (OS.isExternalModuleAugmentation(o)) { + if ((e || 33554432 & G(o).flags) && o.body) + for (var i = 0, a = o.body.statements; i < a.length; i++) ! function e(t, r) { + switch (t.kind) { + case 240: + for (var n = 0, i = t.declarationList.declarations; n < i.length; n++) { + var a = i[n]; + e(a, r) + } + break; + case 274: + case 275: + kS(t, OS.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations); + break; + case 268: + case 269: + kS(t, OS.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module); + break; + case 205: + case 257: + var o = t.name; + if (OS.isBindingPattern(o)) { + for (var s = 0, c = o.elements; s < c.length; s++) { + var l = c[s]; + e(l, r) + } + break + } + } + }(a[i], e) + } else ga(o.parent) ? e ? se(o.name, OS.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations) : OS.isExternalModuleNameRelative(OS.getTextOfIdentifierOrLiteral(o.name)) && se(o.name, OS.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name) : se(o.name, e ? OS.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations : OS.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces) + } + }) + } + + function zx(e) { + var t = OS.getExternalModuleName(e); + if (t && !OS.nodeIsMissing(t)) + if (OS.isStringLiteral(t)) { + var r = 265 === e.parent.kind && OS.isAmbientModule(e.parent.parent); + if (308 === e.parent.kind || r) { + if (!r || !OS.isExternalModuleNameRelative(t.text) || ss(e)) { + if (OS.isImportEqualsDeclaration(e) || !e.assertClause) return 1; + for (var n = !1, i = 0, a = e.assertClause.elements; i < a.length; i++) { + var o = a[i]; + OS.isStringLiteral(o.value) || (n = !0, se(o.value, OS.Diagnostics.Import_assertion_values_must_be_string_literal_expressions)) + } + return !n + } + se(e, OS.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name) + } else se(t, 275 === e.kind ? OS.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace : OS.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module) + } else se(t, OS.Diagnostics.String_literal_expected) + } + + function Ux(e) { + var t = Ha(i = G(e)); + if (t !== L) { + var r, n, i = bo(i.exportSymbol || i); + if (!OS.isInJSFile(e) || 111551 & t.flags || OS.isTypeOnlyImportOrExportDeclaration(e)) { + var a = Ga(t); + if (a & ((1160127 & i.flags ? 111551 : 0) | (788968 & i.flags ? 788968 : 0) | (1920 & i.flags ? 1920 : 0)) && se(e, 278 === e.kind ? OS.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : OS.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0, le(i)), Z.isolatedModules && !OS.isTypeOnlyImportOrExportDeclaration(e) && !(16777216 & e.flags)) { + var o, s = Ya(i), + c = !(111551 & a); + if (c || s) switch (e.kind) { + case 270: + case 273: + case 268: + Z.preserveValueImports && (OS.Debug.assertIsDefined(e.name, "An ImportClause with a symbol should have a name"), xa(se(e, c ? OS.Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled : OS.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled, o = OS.idText(273 === e.kind && e.propertyName || e.name)), c ? void 0 : s, o)), c && 268 === e.kind && OS.hasEffectiveModifier(e, 1) && se(e, OS.Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided); + break; + case 278: + if (OS.getSourceFileOfNode(s) !== OS.getSourceFileOfNode(e)) return void xa(se(e, c ? OS.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type : OS.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled, o = OS.idText(e.propertyName || e.name)), c ? void 0 : s, o) + } + } + OS.isImportSpecifier(e) && Kx(a = Vx(i, e)) && a.declarations && oa(e, a.declarations, a.escapedName) + } else a = OS.isImportOrExportSpecifier(e) ? e.propertyName || e.name : OS.isNamedDeclaration(e) ? e.name : e, OS.Debug.assert(277 !== e.kind), 278 === e.kind ? (n = se(a, OS.Diagnostics.Types_cannot_appear_in_export_declarations_in_JavaScript_files), (r = null == (r = null == (r = OS.getSourceFileOfNode(e).symbol) ? void 0 : r.exports) ? void 0 : r.get((e.propertyName || e.name).escapedText)) === t && (t = null == (t = r.declarations) ? void 0 : t.find(OS.isJSDocNode)) && OS.addRelatedInfo(n, OS.createDiagnosticForNode(t, OS.Diagnostics._0_is_automatically_exported_here, OS.unescapeLeadingUnderscores(r.escapedName)))) : (OS.Debug.assert(257 !== e.kind), n = null != (r = (n = OS.findAncestor(e, OS.or(OS.isImportDeclaration, OS.isImportEqualsDeclaration))) && (null == (t = OS.tryGetModuleSpecifierFromDeclaration(n)) ? void 0 : t.text)) ? r : "...", t = OS.unescapeLeadingUnderscores(OS.isIdentifier(a) ? a.escapedText : i.escapedName), se(a, OS.Diagnostics._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation, t, 'import("'.concat(n, '").').concat(t))) + } + } + + function Kx(e) { + return e.declarations && OS.every(e.declarations, function(e) { + return !!(268435456 & OS.getCombinedNodeFlags(e)) + }) + } + + function Vx(e, t) { + if (!(2097152 & e.flags)) return e; + var r = Ha(e); + if (r !== L) + for (; 2097152 & e.flags;) { + var n = G0(e); + if (!n) break; + if (n === r) break; + if (n.declarations && OS.length(n.declarations)) { + if (Kx(n)) { + oa(t, n.declarations, n.escapedName); + break + } + if (e === r) break; + e = n + } + } + return r + } + + function qx(e) { + wb(e, e.name), Ux(e), 273 === e.kind && "default" === OS.idText(e.propertyName || e.name) && OS.getESModuleInterop(Z) && v !== OS.ModuleKind.System && (v < OS.ModuleKind.ES2015 || OS.getSourceFileOfNode(e).impliedNodeFormat === OS.ModuleKind.CommonJS) && iS(e, 131072) + } + + function Wx(e) { + var t, r; + if (e.assertClause) return t = OS.isExclusivelyTypeOnlyImportOrExport(e), r = OS.getResolutionModeOverrideForClause(e.assertClause, t ? J : void 0), t && r ? (OS.isNightly() || J(e.assertClause, OS.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next), OS.getEmitModuleResolutionKind(Z) !== OS.ModuleResolutionKind.Node16 && OS.getEmitModuleResolutionKind(Z) !== OS.ModuleResolutionKind.NodeNext ? J(e.assertClause, OS.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext) : void 0) : (v === OS.ModuleKind.NodeNext && e.moduleSpecifier && Ia(e.moduleSpecifier)) !== OS.ModuleKind.ESNext && v !== OS.ModuleKind.ESNext ? J(e.assertClause, v === OS.ModuleKind.NodeNext ? OS.Diagnostics.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls : OS.Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext) : (OS.isImportDeclaration(e) ? null != (t = e.importClause) && t.isTypeOnly : e.isTypeOnly) ? J(e.assertClause, OS.Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports) : void(r && J(e.assertClause, OS.Diagnostics.resolution_mode_can_only_be_set_for_type_only_imports)) + } + + function Hx(e) { + var t; + Qx(e, OS.isInJSFile(e) ? OS.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module : OS.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module) || (!aS(e) && OS.hasEffectiveModifiers(e) && kS(e, OS.Diagnostics.An_import_declaration_cannot_have_modifiers), zx(e) && (t = e.importClause) && ! function(e) { + var t; + if (e.isTypeOnly && e.name && e.namedBindings) return J(e, OS.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both); + if (e.isTypeOnly && 272 === (null == (t = e.namedBindings) ? void 0 : t.kind)) return wS(e.namedBindings); + return + }(t) && (t.name && qx(t), t.namedBindings) && (271 === t.namedBindings.kind ? (qx(t.namedBindings), v !== OS.ModuleKind.System && (v < OS.ModuleKind.ES2015 || OS.getSourceFileOfNode(e).impliedNodeFormat === OS.ModuleKind.CommonJS) && OS.getESModuleInterop(Z) && iS(e, 65536)) : io(e, e.moduleSpecifier) && OS.forEach(t.namedBindings.elements, qx)), Wx(e)) + } + + function Gx(e) { + var t, r; + Qx(e, OS.isInJSFile(e) ? OS.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module : OS.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module) || (!aS(e) && OS.hasSyntacticModifiers(e) && kS(e, OS.Diagnostics.An_export_declaration_cannot_have_modifiers), e.moduleSpecifier && e.exportClause && OS.isNamedExports(e.exportClause) && OS.length(e.exportClause.elements) && 0 === U && iS(e, 4194304), function(e) { + var t; + if (e.isTypeOnly) return 276 === (null == (t = e.exportClause) ? void 0 : t.kind) ? wS(e.exportClause) : J(e, OS.Diagnostics.Only_named_exports_may_use_export_type) + }(e), e.moduleSpecifier && !zx(e) || (e.exportClause && !OS.isNamespaceExport(e.exportClause) ? (OS.forEach(e.exportClause.elements, Zx), t = !(r = 265 === e.parent.kind && OS.isAmbientModule(e.parent.parent)) && 265 === e.parent.kind && !e.moduleSpecifier && 16777216 & e.flags, 308 === e.parent.kind || r || t || se(e, OS.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)) : ((r = io(e, e.moduleSpecifier)) && _o(r) ? se(e.moduleSpecifier, OS.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk, le(r)) : e.exportClause && Ux(e.exportClause), v !== OS.ModuleKind.System && (v < OS.ModuleKind.ES2015 || OS.getSourceFileOfNode(e).impliedNodeFormat === OS.ModuleKind.CommonJS) && (e.exportClause ? OS.getESModuleInterop(Z) && iS(e, 65536) : iS(e, 32768)))), Wx(e)) + } + + function Qx(e, t) { + var r = 308 === e.parent.kind || 265 === e.parent.kind || 264 === e.parent.kind; + return r || kS(e, t), !r + } + + function Xx(e) { + return OS.isImportDeclaration(e) && e.importClause && !e.importClause.isTypeOnly && (t = e.importClause, OS.forEachImportClauseDeclaration(t, function(e) { + return !!G(e).isReferenced + })) && !MD(e.importClause, !0) && (t = e.importClause, !OS.forEachImportClauseDeclaration(t, function(e) { + return !!ce(G(e)).constEnumReferenced + })); + var t + } + + function Yx(e) { + for (var t, r = 0, n = e.statements; r < n.length; r++) { + var i = n[r]; + !Xx(i) && (t = i, !OS.isImportEqualsDeclaration(t) || !OS.isExternalModuleReference(t.moduleReference) || t.isTypeOnly || !G(t).isReferenced || MD(t, !1) || ce(G(t)).constEnumReferenced) || se(i, OS.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error) + } + } + + function Zx(e) { + var t, r; + Ux(e), OS.getEmitDeclarations(Z) && ds(e.propertyName || e.name, !0), e.parent.parent.moduleSpecifier ? OS.getESModuleInterop(Z) && v !== OS.ModuleKind.System && (v < OS.ModuleKind.ES2015 || OS.getSourceFileOfNode(e).impliedNodeFormat === OS.ModuleKind.CommonJS) && "default" === OS.idText(e.propertyName || e.name) && iS(e, 131072) : (t = va(r = e.propertyName || e.name, r.escapedText, 2998271, void 0, void 0, !0)) && (t === rt || t === nt || t.declarations && ga(ms(t.declarations[0]))) ? se(r, OS.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, OS.idText(r)) : (e.isTypeOnly || e.parent.parent.isTypeOnly || Za(e), (!(r = t && (2097152 & t.flags ? Ha(t) : t)) || 111551 & Ga(r)) && u2(e.propertyName || e.name)) + } + + function $x(e) { + var t, e = G(e), + r = ce(e); + r.exportsChecked || ((t = e.exports.get("export=")) && OS.forEachEntry(e.exports, function(e, t) { + return "export=" !== t + }) && (!(t = ka(t) || t.valueDeclaration) || ss(t) || OS.isInJSFile(t) || se(t, OS.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)), (t = yo(e)) && t.forEach(function(e, t) { + var r = e.declarations, + e = e.flags; + if ("__export" !== t && !(1920 & e)) { + var n = OS.countWhere(r, OS.and(zS, OS.not(OS.isInterfaceDeclaration))); + if (!(524288 & e && n <= 2) && 1 < n && !eD(r)) + for (var i = 0, a = r; i < a.length; i++) { + var o = a[i]; + GS(o) && oe.add(OS.createDiagnosticForNode(o, OS.Diagnostics.Cannot_redeclare_exported_variable_0, OS.unescapeLeadingUnderscores(t))) + } + } + }), r.exportsChecked = !0) + } + + function eD(e) { + return e && 1 < e.length && e.every(function(e) { + return OS.isInJSFile(e) && OS.isAccessExpression(e) && (OS.isExportsIdentifier(e.expression) || OS.isModuleExportsAccessExpression(e.expression)) + }) + } + + function Q(e) { + var t; + e && (t = Se, d = 0, function(r) { + OS.forEach(r.jsDoc, function(e) { + var t = e.comment, + e = e.tags; + tD(t), OS.forEach(e, function(e) { + tD(e.comment), OS.isInJSFile(r) && Q(e) + }) + }); + var e = r.kind; + if (f) switch (e) { + case 264: + case 260: + case 261: + case 259: + f.throwIfCancellationRequested() + } + 240 <= e && e <= 256 && r.flowNode && !Uy(r.flowNode) && ra(!1 === Z.allowUnreachableCode, r, OS.Diagnostics.Unreachable_code_detected); + switch (e) { + case 165: + return N2(r); + case 166: + return A2(r); + case 169: + return O2(r); + case 168: + return function(e) { + OS.isPrivateIdentifier(e.name) && se(e, OS.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies), O2(e) + }(r); + case 182: + case 181: + case 176: + case 177: + case 178: + return P2(r); + case 171: + case 170: + return function(e) { + DS(e) || gS(e.name), OS.isMethodDeclaration(e) && e.asteriskToken && OS.isIdentifier(e.name) && "constructor" === OS.idText(e.name) && se(e.name, OS.Diagnostics.Class_constructor_may_not_be_a_generator), fb(e), OS.hasSyntacticModifier(e, 256) && 171 === e.kind && e.body && se(e, OS.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, OS.declarationNameToString(e.name)), OS.isPrivateIdentifier(e.name) && !OS.getContainingClass(e) && se(e, OS.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies), M2(e) + }(r); + case 172: + return function(e) { + aS(e), OS.forEachChild(e, Q) + }(r); + case 173: + return L2(r); + case 174: + case 175: + return B2(r); + case 180: + return U2(r); + case 179: + return F2(r); + case 183: + return function(e) { + b_(e) + }(r); + case 184: + return K2(r); + case 185: + return function(e) { + Q(e.elementType) + }(r); + case 186: + return function(e) { + for (var t = e.elements, r = !1, n = !1, i = OS.some(t, OS.isNamedTupleMember), a = 0, o = t; a < o.length; a++) { + var s = o[a]; + if (199 !== s.kind && i) { + J(s, OS.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names); + break + } + var c = U_(s); + if (8 & c) { + var l = K(s.type); + if (!dg(l)) { + se(s, OS.Diagnostics.A_rest_element_type_must_be_an_array_type); + break + }(sg(l) || De(l) && 4 & l.target.combinedFlags) && (n = !0) + } else if (4 & c) { + if (n) { + J(s, OS.Diagnostics.A_rest_element_cannot_follow_another_rest_element); + break + } + n = !0 + } else if (2 & c) { + if (n) { + J(s, OS.Diagnostics.An_optional_element_cannot_follow_a_rest_element); + break + } + r = !0 + } else if (r) { + J(s, OS.Diagnostics.A_required_element_cannot_follow_an_optional_element); + break + } + } + OS.forEach(e.elements, Q), K(e) + }(r); + case 189: + case 190: + return function(e) { + OS.forEach(e.types, Q), K(e) + }(r); + case 193: + case 187: + case 188: + return Q(r.type); + case 194: + return function(e) { + Tp(e) + }(r); + case 195: + return W2(r); + case 191: + return function(e) { + OS.forEachChild(e, Q) + }(r); + case 192: + return function(e) { + OS.findAncestor(e, function(e) { + return e.parent && 191 === e.parent.kind && e.parent.extendsType === e + }) || J(e, OS.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type), Q(e.typeParameter); + var t = G(e.typeParameter); + if (t.declarations && 1 < t.declarations.length) { + var r = ce(t); + if (!r.typeParametersChecked) { + r.typeParametersChecked = !0; + var r = Fc(t), + n = OS.getDeclarationsOfKind(t, 165); + if (!Cx(n, [r], function(e) { + return [e] + })) + for (var i = le(t), a = 0, o = n; a < o.length; a++) se(o[a].name, OS.Diagnostics.All_declarations_of_0_must_have_identical_constraints, i) + } + } + gb(e) + }(r); + case 200: + return function(e) { + for (var t = 0, r = e.templateSpans; t < r.length; t++) { + var n = r[t]; + Q(n.type), gf(K(n.type), tn, n.type) + } + K(e) + }(r); + case 202: + return function(e) { + Q(e.argument), e.assertions && OS.getResolutionModeOverrideForClause(e.assertions.assertClause, J) && (OS.isNightly() || J(e.assertions.assertClause, OS.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next), OS.getEmitModuleResolutionKind(Z) !== OS.ModuleResolutionKind.Node16) && OS.getEmitModuleResolutionKind(Z) !== OS.ModuleResolutionKind.NodeNext && J(e.assertions.assertClause, OS.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext), K(e) + }(r); + case 199: + return function(e) { + e.dotDotDotToken && e.questionToken && J(e, OS.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest), 187 === e.type.kind && J(e.type, OS.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type), 188 === e.type.kind && J(e.type, OS.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type), Q(e.type), K(e) + }(r); + case 331: + return function(e) { + var t, r, n = OS.getEffectiveJSDocHost(e); + n && (OS.isClassDeclaration(n) || OS.isClassExpression(n)) ? (t = OS.getJSDocTags(n).filter(OS.isJSDocAugmentsTag), OS.Debug.assert(0 < t.length), 1 < t.length && se(t[1], OS.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag), t = pb(e.class.expression), (r = OS.getClassExtendsHeritageElement(n)) && (r = pb(r.expression)) && t.escapedText !== r.escapedText && se(t, OS.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause, OS.idText(e.tagName), OS.idText(t), OS.idText(r))) : se(n, OS.Diagnostics.JSDoc_0_is_not_attached_to_a_class, OS.idText(e.tagName)) + }(r); + case 332: + return function(e) { + var t = OS.getEffectiveJSDocHost(e); + t && (OS.isClassDeclaration(t) || OS.isClassExpression(t)) || se(t, OS.Diagnostics.JSDoc_0_is_not_attached_to_a_class, OS.idText(e.tagName)) + }(r); + case 348: + case 341: + case 342: + return function(e) { + e.typeExpression || se(e.name, OS.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags), e.name && Dx(e.name, OS.Diagnostics.Type_alias_name_cannot_be_0), Q(e.typeExpression), Sx(OS.getEffectiveTypeParameterDeclarations(e)) + }(r); + case 347: + return function(e) { + Q(e.constraint); + for (var t = 0, r = e.typeParameters; t < r.length; t++) Q(r[t]) + }(r); + case 346: + return function(e) { + Q(e.typeExpression) + }(r); + case 327: + case 328: + case 329: + return function(e) { + e.name && mD(e.name, !0) + }(r); + case 343: + return function(e) { + Q(e.typeExpression) + }(r); + case 350: + return function(e) { + Q(e.typeExpression) + }(r); + case 320: + ! function(e) { + q(function() { + e.type || OS.isJSDocConstructSignature(e) || Zg(e, ee) + }), P2(e) + }(r); + case 318: + case 317: + case 315: + case 316: + case 325: + return rD(r), OS.forEachChild(r, Q); + case 321: + return function(e) { + rD(e), Q(e.type); + var t, r = e.parent; + OS.isParameter(r) && OS.isJSDocFunctionType(r.parent) ? OS.last(r.parent.parameters) !== r && se(e, OS.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list) : (OS.isJSDocTypeExpression(r) || se(e, OS.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature), r = e.parent.parent, OS.isJSDocParameterTag(r) ? !(t = OS.getParameterSymbolFromJSDoc(r)) || (r = OS.getHostSignatureFromJSDoc(r)) && OS.last(r.parameters).symbol === t || se(e, OS.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list) : se(e, OS.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature)) + }(r); + case 312: + return Q(r.type); + case 336: + case 338: + case 337: + return function(e) { + var t = OS.getJSDocHost(e); + t && OS.isPrivateIdentifierClassElementDeclaration(t) && se(e, OS.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier) + }(r); + case 196: + return function(e) { + Q(e.objectType), Q(e.indexType), V2(Gd(e), e) + }(r); + case 197: + return q2(r); + case 259: + return function(e) { + q(function() { + fb(e), mS(e), wb(e, e.name) + }) + }(r); + case 238: + case 265: + return Eb(r); + case 240: + return jb(r); + case 241: + return function(e) { + FS(e), V(e.expression) + }(r); + case 242: + return function(e) { + FS(e); + var t = Ub(e.expression); + Jb(e.expression, t, e.thenStatement), Q(e.thenStatement), 239 === e.thenStatement.kind && se(e.thenStatement, OS.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement), Q(e.elseStatement) + }(r); + case 243: + return function(e) { + FS(e), Q(e.statement), Ub(e.expression) + }(r); + case 244: + return function(e) { + FS(e), Ub(e.expression), Q(e.statement) + }(r); + case 245: + return function(e) { + FS(e) || e.initializer && 258 === e.initializer.kind && CS(e.initializer), e.initializer && (258 === e.initializer.kind ? OS.forEach(e.initializer.declarations, Rb) : V(e.initializer)), e.condition && Ub(e.condition), e.incrementor && V(e.incrementor), Q(e.statement), e.locals && gb(e) + }(r); + case 246: + return Kb(r); + case 247: + return function(e) { + vS(e); + var t, r, n = OS.getContainingFunctionOrClassStaticBlock(e); + e.awaitModifier ? n && OS.isClassStaticBlockDeclaration(n) ? J(e.awaitModifier, OS.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block) : 2 == (6 & OS.getFunctionFlags(n)) && U < 99 && iS(e, 16384) : Z.downlevelIteration && U < 2 && iS(e, 256), 258 === e.initializer.kind ? Vb(e) : (n = e.initializer, t = qb(e), 206 === n.kind || 207 === n.kind ? i2(n, t || R) : (r = V(n), q1(n, OS.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access, OS.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access), t && mf(t, r, n, e.expression))), Q(e.statement), e.locals && gb(e) + }(r); + case 248: + case 249: + return gx(r); + case 250: + return function(e) { + var t, r, n, i, a; + FS(e) || ((t = OS.getContainingFunctionOrClassStaticBlock(e)) && OS.isClassStaticBlockDeclaration(t) ? kS(e, OS.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block) : t ? (r = me(Cu(t)), a = OS.getFunctionFlags(t), $ || e.expression || 131072 & r.flags ? (n = e.expression ? u2(e.expression) : re, 175 === t.kind ? e.expression && se(e, OS.Diagnostics.Setters_cannot_return_a_value) : 173 === t.kind ? e.expression && !mf(n, r, e, e.expression) && se(e, OS.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class) : Iu(t) && (i = null != (i = mx(r, a)) ? i : r, a = 2 & a ? $2(n, !1, e, OS.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member) : n, i) && mf(a, i, e, e.expression)) : 173 !== t.kind && Z.noImplicitReturns && !yx(t, r) && se(e, OS.Diagnostics.Not_all_code_paths_return_a_value)) : kS(e, OS.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)) + }(r); + case 251: + return function(e) { + FS(e) || 32768 & e.flags && kS(e, OS.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block), V(e.expression); + var t = OS.getSourceFileOfNode(e); + ES(t) || NS(t, t = OS.getSpanOfTokenAtPosition(t, e.pos).start, e.statement.pos - t, OS.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any) + }(r); + case 252: + return hx(r); + case 253: + return function(t) { + FS(t) || OS.findAncestor(t.parent, function(e) { + return OS.isFunctionLike(e) ? "quit" : 253 === e.kind && e.label.escapedText === t.label.escapedText && (J(t.label, OS.Diagnostics.Duplicate_label_0, OS.getTextOfNode(t.label)), !0) + }), Q(t.statement) + }(r); + case 254: + return vx(r); + case 255: + return function(e) { + FS(e), Eb(e.tryBlock); + var t, r, n, i, a = e.catchClause; + a && (a.variableDeclaration && (t = a.variableDeclaration, (r = OS.getEffectiveTypeAnnotationNode(OS.getRootDeclaration(t))) ? !(n = Fs(t, !1, 0)) || 3 & n.flags || kS(r, OS.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified) : t.initializer ? kS(t.initializer, OS.Diagnostics.Catch_clause_variable_cannot_have_an_initializer) : (i = a.block.locals) && OS.forEachKey(a.locals, function(e) { + var t = i.get(e); + null != t && t.valueDeclaration && 0 != (2 & t.flags) && J(t.valueDeclaration, OS.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause, e) + })), Eb(a.block)), e.finallyBlock && Eb(e.finallyBlock) + }(r); + case 257: + return Rb(r); + case 205: + return Bb(r); + case 260: + return function(e) { + var t = OS.find(e.modifiers, OS.isDecorator); + t && OS.some(e.members, function(e) { + return OS.hasStaticModifier(e) && OS.isPrivateIdentifierClassElementDeclaration(e) + }) && J(t, OS.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator), e.name || OS.hasSyntacticModifier(e, 1024) || kS(e, OS.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name), Ex(e), OS.forEach(e.members, Q), gb(e) + }(r); + case 261: + return Mx(r); + case 262: + return function(e) { + aS(e), Dx(e.name, OS.Diagnostics.Type_alias_name_cannot_be_0), X2(e), Sx(e.typeParameters), 139 === e.type.kind ? US.has(e.name.escapedText) && 1 === OS.length(e.typeParameters) || se(e.type, OS.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types) : (Q(e.type), gb(e)) + }(r); + case 263: + return Bx(r); + case 264: + return Jx(r); + case 269: + return Hx(r); + case 268: + return function(e) { + var t, r; + !Qx(e, OS.isInJSFile(e) ? OS.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module : OS.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module) && (aS(e), OS.isInternalModuleImportEqualsDeclaration(e) || zx(e)) && (qx(e), OS.hasSyntacticModifier(e, 1) && Za(e), 280 !== e.moduleReference.kind ? ((t = Ha(G(e))) !== L && (111551 & (t = Ga(t)) && (1920 & ro(r = OS.getFirstIdentifier(e.moduleReference), 112575).flags || se(r, OS.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name, OS.declarationNameToString(r))), 788968 & t) && Dx(e.name, OS.Diagnostics.Import_name_cannot_be_0), e.isTypeOnly && J(e, OS.Diagnostics.An_import_alias_cannot_use_import_type)) : !(v >= OS.ModuleKind.ES2015 && void 0 === OS.getSourceFileOfNode(e).impliedNodeFormat) || e.isTypeOnly || 16777216 & e.flags || J(e, OS.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)) + }(r); + case 275: + return Gx(r); + case 274: + return function(e) { + var t, r, n; + Qx(e, e.isExportEquals ? OS.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration : OS.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration) || (264 !== (t = (308 === e.parent.kind ? e : e.parent).parent).kind || OS.isAmbientModule(t) ? (!aS(e) && OS.hasEffectiveModifiers(e) && kS(e, OS.Diagnostics.An_export_assignment_cannot_have_modifiers), (r = OS.getEffectiveTypeAnnotationNode(e)) && gf(u2(e.expression), K(r), e.expression), 79 === e.expression.kind ? ((!(n = ro(r = e.expression, 67108863, !0, !0, e)) || ($y(n, r), 111551 & Ga(2097152 & n.flags ? Ha(n) : n))) && u2(e.expression), OS.getEmitDeclarations(Z) && ds(e.expression, !0)) : u2(e.expression), $x(t), 16777216 & e.flags && !OS.isEntityNameExpression(e.expression) && J(e.expression, OS.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context), !e.isExportEquals || 16777216 & e.flags || (v >= OS.ModuleKind.ES2015 && OS.getSourceFileOfNode(e).impliedNodeFormat !== OS.ModuleKind.CommonJS ? J(e, OS.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead) : v === OS.ModuleKind.System && J(e, OS.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))) : e.isExportEquals ? se(e, OS.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace) : se(e, OS.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)) + }(r); + case 239: + case 256: + return FS(r); + case 279: + (function(e) { + db(e) + })(r) + } + }(Se = e), Se = t) + } + + function tD(e) { + OS.isArray(e) && OS.forEach(e, function(e) { + OS.isJSDocLinkLike(e) && Q(e) + }) + } + + function rD(e) { + OS.isInJSFile(e) || J(e, OS.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments) + } + + function nD(e) { + var t = H(OS.getSourceFileOfNode(e)); + 1 & t.flags || (t.deferredNodes || (t.deferredNodes = new OS.Set), t.deferredNodes.add(e)) + } + + function iD(e) { + null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.push("check", "checkDeferredNode", { + kind: e.kind, + pos: e.pos, + end: e.end, + path: e.tracingPath + }); + var t, r, n, i, a, o, s = Se; + switch (d = 0, (Se = e).kind) { + case 210: + case 211: + case 212: + case 167: + case 283: + sv(e); + break; + case 215: + case 216: + case 171: + case 170: + n = e, OS.Debug.assert(171 !== n.kind || OS.isObjectLiteralMethod(n)), a = OS.getFunctionFlags(n), o = Iu(n), j1(n, o), n.body && (OS.getEffectiveReturnTypeNode(n) || me(Cu(n)), 238 === n.body.kind ? Q(n.body) : (i = V(n.body), (o = o && mx(o, a)) && mf(2 == (3 & a) ? $2(i, !1, n.body, OS.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member) : i, o, n.body, n.body))); + break; + case 174: + case 175: + B2(e); + break; + case 228: + a = e, OS.forEach(a.members, Q), gb(a); + break; + case 165: + i = e, (OS.isInterfaceDeclaration(i.parent) || OS.isClassLike(i.parent) || OS.isTypeAliasDeclaration(i.parent)) && (n = Gf(o = Fc(G(i)))) && (r = G(i.parent), !OS.isTypeAliasDeclaration(i.parent) || 48 & OS.getObjectFlags(Pc(r)) ? 32768 !== n && 65536 !== n || (null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.push("checkTypes", "checkTypeParameterDeferred", { + parent: Pc(r).id, + id: o.id + }), t = Wf(r, o, 65536 === n ? Cn : Tn), r = Wf(r, o, 65536 === n ? Tn : Cn), h = n = o, gf(t, r, i, OS.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation), h = n, null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.pop()) : se(i, OS.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)); + break; + case 282: + fh(e); + break; + case 281: + fh((t = e).openingElement), Z0(t.closingElement.tagName) ? ih(t.closingElement) : V(t.closingElement.tagName), eh(t) + } + Se = s, null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.pop() + } + + function aD(e) { + { + var t; + null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.push("check", "checkSourceFile", { + path: e.path + }, !0), OS.performance.mark("beforeCheck"), 1 & (e = H(a = e)).flags || OS.skipTypeChecking(a, Z, g) || (16777216 & (t = a).flags && function(e) { + for (var t = 0, r = e.statements; t < r.length; t++) { + var n = r[t]; + if ((OS.isDeclaration(n) || 240 === n.kind) && function(e) { + if (261 === e.kind || 262 === e.kind || 269 === e.kind || 268 === e.kind || 275 === e.kind || 274 === e.kind || 267 === e.kind || OS.hasSyntacticModifier(e, 1027)) return; + return kS(e, OS.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier) + }(n)) return + } + }(t), OS.clear(di), OS.clear(pi), OS.clear(fi), OS.clear(gi), OS.clear(mi), OS.forEach(a.statements, Q), Q(a.endOfFileToken), (t = H(t = a)).deferredNodes && t.deferredNodes.forEach(iD), OS.isExternalOrCommonJsModule(a) && gb(a), q(function() { + if (a.isDeclarationFile || !Z.noUnusedLocals && !Z.noUnusedParameters || mb(sD(a), function(e, t, r) { + !OS.containsParseError(e) && oD(t, !!(16777216 & e.flags)) && oe.add(r) + }), !a.isDeclarationFile) + for (var e = 0, t = mi; e < t.length; e++) { + var r, n, i = t[e]; + null != (r = G(i)) && r.isReferenced || (r = OS.walkUpBindingElementsAndPatterns(i), OS.Debug.assert(OS.isParameterDeclaration(r), "Only parameter declaration should be checked here"), n = OS.createDiagnosticForNode(i.name, OS.Diagnostics._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation, OS.declarationNameToString(i.name), OS.declarationNameToString(i.propertyName)), r.type || OS.addRelatedInfo(n, OS.createFileDiagnostic(OS.getSourceFileOfNode(r), r.end, 1, OS.Diagnostics.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here, OS.declarationNameToString(i.propertyName))), oe.add(n)) + } + }), 2 === Z.importsNotUsedAsValues && !a.isDeclarationFile && OS.isExternalModule(a) && Yx(a), OS.isExternalOrCommonJsModule(a) && $x(a), di.length && (OS.forEach(di, Nb), OS.clear(di)), pi.length && (OS.forEach(pi, Ab), OS.clear(pi)), fi.length && (OS.forEach(fi, Fb), OS.clear(fi)), gi.length && (OS.forEach(gi, Pb), OS.clear(gi)), e.flags |= 1) + } + var a; + OS.performance.mark("afterCheck"), OS.performance.measure("Check", "beforeCheck", "afterCheck"), null !== OS.tracing && void 0 !== OS.tracing && OS.tracing.pop() + } + + function oD(e, t) { + if (!t) switch (e) { + case 0: + return Z.noUnusedLocals; + case 1: + return Z.noUnusedParameters; + default: + return OS.Debug.assertNever(e) + } + } + + function sD(e) { + return zn.get(e.path) || OS.emptyArray + } + + function cD(e, t) { + try { + f = t; + var r, n, i, a = e; + return a ? (lD(), i = oe.getGlobalDiagnostics(), r = i.length, uD(a), a = oe.getDiagnostics(a.fileName), (n = oe.getGlobalDiagnostics()) !== i ? (i = OS.relativeComplement(i, n, OS.compareDiagnostics), OS.concatenate(i, a)) : 0 === r && 0 < n.length ? OS.concatenate(n, a) : a) : (OS.forEach(g.getSourceFiles(), uD), oe.getDiagnostics()) + } finally { + f = void 0 + } + } + + function lD() { + for (var e = 0, t = n; e < t.length; e++)(0, t[e])(); + n = [] + } + + function uD(e) { + lD(); + var t = q; + q = function(e) { + return e() + }, aD(e), q = t + } + + function _D(e) { + for (; 163 === e.parent.kind;) e = e.parent; + return 180 === e.parent.kind + } + + function dD(e, t) { + for (var r; + (e = OS.getContainingClass(e)) && !(r = t(e));); + return r + } + + function pD(e, t) { + return dD(e, function(e) { + return e === t + }) + } + + function fD(e) { + return void 0 !== function(e) { + for (; 163 === e.parent.kind;) e = e.parent; + return 268 === e.parent.kind ? e.parent.moduleReference === e ? e.parent : void 0 : 274 === e.parent.kind && e.parent.expression === e ? e.parent : void 0 + }(e) + } + + function gD(e) { + if (OS.isDeclarationName(e)) return G(e.parent); + if (OS.isInJSFile(e) && 208 === e.parent.kind && e.parent === e.parent.parent.left && !OS.isPrivateIdentifier(e) && !OS.isJSDocMemberName(e)) { + var t = function(e) { + switch (OS.getAssignmentDeclarationKind(e.parent.parent)) { + case 1: + case 3: + return G(e.parent); + case 4: + case 2: + case 5: + return G(e.parent.parent) + } + }(e); + if (t) return t + } + if (274 === e.parent.kind && OS.isEntityNameExpression(e)) { + t = ro(e, 2998271, !0); + if (t && t !== L) return t + } else if (OS.isEntityName(e) && fD(e)) return t = OS.getAncestor(e, 268), OS.Debug.assert(void 0 !== t), eo(e, !0); + if (OS.isEntityName(e)) { + var t = function(e) { + for (var t = e.parent; OS.isQualifiedName(t);) t = (e = t).parent; + if (t && 202 === t.kind && t.qualifier === e) return t + }(e); + if (t) return K(t), (t = H(e).resolvedSymbol) === L ? void 0 : t + } + for (; OS.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(e);) e = e.parent; + if (function(e) { + for (; 208 === e.parent.kind;) e = e.parent; + return 230 === e.parent.kind + }(e)) { + var r = 0, + t = (230 === e.parent.kind ? (r = 788968, OS.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent) && (r |= 111551)) : r = 1920, r |= 2097152, OS.isEntityNameExpression(e) ? ro(e, r) : void 0); + if (t) return t + } + if (343 === e.parent.kind) return OS.getParameterSymbolFromJSDoc(e.parent); + if (165 === e.parent.kind && 347 === e.parent.parent.kind) return OS.Debug.assert(!OS.isInJSFile(e)), (t = OS.getTypeParameterFromJsDoc(e.parent)) && t.symbol; + if (OS.isExpressionNode(e)) { + if (OS.nodeIsMissing(e)) return; + var n, i, a, o, s, t = OS.findAncestor(e, OS.or(OS.isJSDocLinkLike, OS.isJSDocNameReference, OS.isJSDocMemberName)), + r = t ? 901119 : 111551; + if (79 === e.kind) { + if (OS.isJSXTagName(e) && Z0(e)) return (i = ih(e.parent)) === L ? void 0 : i; + var c, l = ro(e, r, !1, !0, OS.getHostSignatureFromJSDoc(e)); + if (!l && t) + if (c = OS.findAncestor(e, OS.or(OS.isClassLike, OS.isInterfaceDeclaration))) return mD(e, !1, G(c)); + if (l && t) + if ((c = OS.getJSDocHost(e)) && OS.isEnumMember(c) && c === l.valueDeclaration) return ro(e, r, !0, !0, OS.getSourceFileOfNode(c)) || l; + return l + } + if (OS.isPrivateIdentifier(e)) return Lh(e); + if (208 === e.kind || 163 === e.kind) return (c = H(e)).resolvedSymbol || (208 === e.kind ? (Ph(e, 0), c.resolvedSymbol || (n = pu(l = u2(e.expression), hd(e.name))).length && l.members && (i = Fl(l).members.get("__index"), n === uu(l) ? c.resolvedSymbol = i : i && (a = ce(i), o = OS.mapDefined(n, function(e) { + return e.declaration + }), o = OS.map(o, qS).join(","), a.filteredIndexSymbolCache || (a.filteredIndexSymbolCache = new OS.Map), a.filteredIndexSymbolCache.has(o) || ((s = B(131072, "__index")).declarations = OS.mapDefined(n, function(e) { + return e.declaration + }), s.parent = l.aliasSymbol || l.symbol || yD(s.declarations[0].parent), a.filteredIndexSymbolCache.set(o, s)), c.resolvedSymbol = a.filteredIndexSymbolCache.get(o)))) : wh(e, 0), !c.resolvedSymbol && t && OS.isQualifiedName(e) ? mD(e) : c.resolvedSymbol); + if (OS.isJSDocMemberName(e)) return mD(e) + } else if (_D(e)) return (i = ro(e, r = 180 === e.parent.kind ? 788968 : 1920, !1, !0)) && i !== L ? i : c_(e); + return 179 === e.parent.kind ? ro(e, 1) : void 0 + } + + function mD(e, t, r) { + if (OS.isEntityName(e)) { + var n = ro(e, 901119, t, !0, OS.getHostSignatureFromJSDoc(e)); + if (n = !n && OS.isIdentifier(e) && r ? bo(ma(mo(r), e.escapedText, 901119)) : n) return n + } + n = OS.isIdentifier(e) ? r : mD(e.left, t, r), t = (OS.isIdentifier(e) ? e : e.right).escapedText; + if (n) return r = 111551 & n.flags && fe(de(n), "prototype"), fe(r ? de(r) : Pc(n), t) + } + + function yD(e, t) { + if (308 === e.kind) return OS.isExternalModule(e) ? bo(e.symbol) : void 0; + var r = e.parent, + n = r.parent; + if (!(33554432 & e.flags)) { + if (QS(e)) return i = G(r), OS.isImportOrExportSpecifier(e.parent) && e.parent.propertyName === e ? G0(i) : i; + if (OS.isLiteralComputedPropertyDeclarationName(e)) return G(r.parent); + if (79 === e.kind) { + if (fD(e)) return gD(e); + if (205 === r.kind && 203 === n.kind && e === r.propertyName) { + var i = fe(hD(n), e.escapedText); + if (i) return i + } else if (OS.isMetaProperty(r) && r.name === e) return 103 === r.keywordToken && "target" === OS.idText(e) ? d1(r).symbol : 100 === r.keywordToken && "meta" === OS.idText(e) ? N_().members.get("meta") : void 0 + } + switch (e.kind) { + case 79: + case 80: + case 208: + case 163: + if (!OS.isThisInTypeQuery(e)) return gD(e); + case 108: + var a = OS.getThisContainer(e, !1); + if (OS.isFunctionLike(a)) { + a = Cu(a); + if (a.thisParameter) return a.thisParameter + } + if (OS.isInExpressionContext(e)) return V(e).symbol; + case 194: + return Tp(e).symbol; + case 106: + return V(e).symbol; + case 135: + a = e.parent; + return a && 173 === a.kind ? a.parent.symbol : void 0; + case 10: + case 14: + if (OS.isExternalModuleImportEqualsDeclaration(e.parent.parent) && OS.getExternalModuleImportEqualsDeclarationExpression(e.parent.parent) === e || (269 === e.parent.kind || 275 === e.parent.kind) && e.parent.moduleSpecifier === e || OS.isInJSFile(e) && OS.isRequireCall(e.parent, !1) || OS.isImportCall(e.parent) || OS.isLiteralTypeNode(e.parent) && OS.isLiteralImportTypeNode(e.parent.parent) && e.parent.parent.argument === e.parent) return io(e, e, t); + if (OS.isCallExpression(r) && OS.isBindableObjectDefinePropertyCall(r) && r.arguments[1] === e) return G(r); + case 8: + a = OS.isElementAccessExpression(r) ? r.argumentExpression === e ? C2(r.expression) : void 0 : OS.isLiteralTypeNode(r) && OS.isIndexedAccessTypeNode(n) ? K(n.objectType) : void 0; + return a && fe(a, OS.escapeLeadingUnderscores(e.text)); + case 88: + case 98: + case 38: + case 84: + return G(e.parent); + case 202: + return OS.isLiteralImportTypeNode(e) ? yD(e.argument.literal, t) : void 0; + case 93: + return OS.isExportAssignment(e.parent) ? OS.Debug.checkDefined(e.parent.symbol) : void 0; + case 100: + case 103: + return OS.isMetaProperty(e.parent) ? _1(e.parent).symbol : void 0; + case 233: + return V(e).symbol; + default: + return + } + } + } + + function hD(e) { + if (OS.isSourceFile(e) && !OS.isExternalModule(e)) return R; + if (33554432 & e.flags) return R; + var t, r, n = OS.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(e), + i = n && Sc(G(n.class)); + if (OS.isPartOfTypeNode(e)) return r = K(e), i ? Yc(r, i.thisType) : r; + if (OS.isExpressionNode(e)) return bD(e); + if (i && !n.isImplements) return (r = OS.firstOrUndefined(xc(i))) ? Yc(r, i.thisType) : R; + if (OS.isTypeDeclaration(e)) return Pc(t = G(e)); + if (79 === (n = e).kind && OS.isTypeDeclaration(n.parent) && OS.getNameOfDeclaration(n.parent) === n) return (t = yD(e)) ? Pc(t) : R; + if (OS.isDeclaration(e)) return (t = G(e)) ? de(t) : R; + if (QS(e)) return (t = yD(e)) ? de(t) : R; + if (OS.isBindingPattern(e)) return Fs(e.parent, !0, 0) || R; + if (fD(e) && (t = yD(e))) return _e(r = Pc(t)) ? de(t) : r; + return OS.isMetaProperty(e.parent) && e.parent.keywordToken === e.kind ? _1(e.parent) : R + } + + function vD(e) { + var t, r, n; + return OS.Debug.assert(207 === e.kind || 206 === e.kind), 247 === e.parent.kind ? i2(e, qb(e.parent) || R) : 223 === e.parent.kind ? i2(e, C2(e.parent.right) || R) : 299 === e.parent.kind ? r2(t = OS.cast(e.parent.parent, OS.isObjectLiteralExpression), vD(t) || R, OS.indexOfNode(t.properties, e.parent)) : (n = Wb(65, r = vD(t = OS.cast(e.parent, OS.isArrayLiteralExpression)) || R, re, e.parent) || R, n2(t, r, t.elements.indexOf(e), n)) + } + + function bD(e) { + return hp(C2(e = OS.isRightSideOfQualifiedNameOrPropertyAccess(e) ? e.parent : e)) + } + + function xD(e) { + e = Ql(e); + var t = OS.createSymbolTable(pe(e)), + e = ge(e, 0).length ? mt : ge(e, 1).length ? yt : void 0; + return e && OS.forEach(pe(e), function(e) { + t.has(e.escapedName) || t.set(e.escapedName, e) + }), Mo(t) + } + + function DD(e) { + return OS.typeHasCallOrConstructSignatures(e, ot) + } + + function SD(t) { + var e, r, n; + return 6 & OS.getCheckFlags(t) ? OS.mapDefined(ce(t).containingType.types, function(e) { + return fe(e, t.escapedName) + }) : 33554432 & t.flags ? (e = t.leftSpread, r = t.rightSpread, n = t.syntheticOrigin, e ? [e, r] : n ? [n] : OS.singleElementArray(function(e) { + var t, r = e; + for (; r = ce(r).target;) t = r; + return t + }(t))) : void 0 + } + + function TD(e) { + var t; + return !OS.isGeneratedIdentifier(e) && !!(e = OS.getParseTreeNode(e, OS.isIdentifier)) && !(!(t = e.parent) || (OS.isPropertyAccessExpression(t) || OS.isPropertyAssignment(t)) && t.name === e || YD(e) !== it) + } + + function CD(e) { + var t, r, e = io(e.parent, e); + return !(e && !OS.isShorthandAmbientModuleSymbol(e)) || (t = _o(e), void 0 === (r = ce(e = co(e))).exportsSomeValue && (r.exportsSomeValue = t ? !!(111551 & e.flags) : OS.forEachEntry(yo(e), function(e) { + return (e = Wa(e)) && !!(111551 & Ga(e)) + })), r.exportsSomeValue) + } + + function ED(e, t) { + e = OS.getParseTreeNode(e, OS.isIdentifier); + if (e) { + var r = YD(e, (r = e, OS.isModuleOrEnumDeclaration(r.parent) && r === r.parent.name)); + if (r) { + if (1048576 & r.flags) { + var n = bo(r.exportSymbol); + if (!t && 944 & n.flags && !(3 & n.flags)) return; + r = n + } + var i = xo(r); + if (i) return 512 & i.flags && 308 === (null == (t = i.valueDeclaration) ? void 0 : t.kind) ? (n = i.valueDeclaration) !== OS.getSourceFileOfNode(e) ? void 0 : n : OS.findAncestor(e.parent, function(e) { + return OS.isModuleOrEnumDeclaration(e) && G(e) === i + }) + } + } + } + + function kD(e) { + if (e.generatedImportReference) return e.generatedImportReference; + e = OS.getParseTreeNode(e, OS.isIdentifier); + if (e) { + e = function(e) { + var t = H(e).resolvedSymbol; + if (t && t !== L) return t; + return va(e, e.escapedText, 3257279, void 0, void 0, !0, void 0, void 0) + }(e); + if (qa(e, 111551) && !Ya(e, 111551)) return ka(e) + } + } + + function ND(e) { + var t, r, n, i, a; + return !(!(418 & e.flags && e.valueDeclaration) || OS.isSourceFile(e.valueDeclaration)) && (void 0 === (t = ce(e)).isDeclarationWithCollidingName && (r = OS.getEnclosingBlockScopeContainer(e.valueDeclaration), OS.isStatementWithLocals(r) || (a = e).valueDeclaration && OS.isBindingElement(a.valueDeclaration) && 295 === OS.walkUpBindingElementsAndPatterns(a.valueDeclaration).parent.kind) && (a = H(e.valueDeclaration), va(r.parent, e.escapedName, 111551, void 0, void 0, !1) ? t.isDeclarationWithCollidingName = !0 : 262144 & a.flags ? (e = 524288 & a.flags, n = OS.isIterationStatement(r, !1), i = 238 === r.kind && OS.isIterationStatement(r.parent, !1), t.isDeclarationWithCollidingName = !(OS.isBlockScopedContainerTopLevel(r) || e && (n || i))) : t.isDeclarationWithCollidingName = !1), t.isDeclarationWithCollidingName) + } + + function AD(e) { + if (!OS.isGeneratedIdentifier(e)) { + e = OS.getParseTreeNode(e, OS.isIdentifier); + if (e) { + e = YD(e); + if (e && ND(e)) return e.valueDeclaration + } + } + } + + function FD(e) { + e = OS.getParseTreeNode(e, OS.isDeclaration); + if (e) { + e = G(e); + if (e) return ND(e) + } + return !1 + } + + function PD(e) { + switch (e.kind) { + case 268: + return ID(G(e)); + case 270: + case 271: + case 273: + case 278: + var t = G(e); + return !!t && ID(t) && !Ya(t, 111551); + case 275: + t = e.exportClause; + return !!t && (OS.isNamespaceExport(t) || OS.some(t.elements, PD)); + case 274: + return !e.expression || 79 !== e.expression.kind || ID(G(e)) + } + return !1 + } + + function wD(e) { + e = OS.getParseTreeNode(e, OS.isImportEqualsDeclaration); + return !(void 0 === e || 308 !== e.parent.kind || !OS.isInternalModuleImportEqualsDeclaration(e)) && ID(G(e)) && e.moduleReference && !OS.nodeIsMissing(e.moduleReference) + } + + function ID(e) { + var t; + return !!e && ((e = Eo(Ha(e))) === L || !!(111551 & (null != (t = Ga(e)) ? t : -1)) && (OS.shouldPreserveConstEnums(Z) || !OD(e))) + } + + function OD(e) { + return e2(e) || e.constEnumOnlyModule + } + + function MD(e, t) { + if (Na(e)) { + var r = G(e), + n = r && ce(r); + if (null != n && n.referenced) return !0; + n = ce(r).aliasTarget; + if (n && 1 & OS.getEffectiveModifierFlags(e) && 111551 & Ga(n) && (OS.shouldPreserveConstEnums(Z) || !OD(n))) return !0 + } + return !!t && !!OS.forEachChild(e, function(e) { + return MD(e, t) + }) + } + + function LD(e) { + var t; + return !!OS.nodeIsPresent(e.body) && !OS.isGetAccessor(e) && !OS.isSetAccessor(e) && (1 < (t = Nu(G(e))).length || 1 === t.length && t[0].declaration !== e) + } + + function RD(e) { + return !(!$ || bu(e) || OS.isJSDocParameterTag(e) || !e.initializer || OS.hasSyntacticModifier(e, 16476)) + } + + function BD(e) { + return $ && bu(e) && !e.initializer && OS.hasSyntacticModifier(e, 16476) + } + + function jD(e) { + var e = OS.getParseTreeNode(e, OS.isFunctionDeclaration); + return !!e && !!((e = G(e)) && 16 & e.flags) && !!OS.forEachEntry(mo(e), function(e) { + return 111551 & e.flags && e.valueDeclaration && OS.isPropertyAccessExpression(e.valueDeclaration) + }) + } + + function JD(e) { + var e = OS.getParseTreeNode(e, OS.isFunctionDeclaration); + return (e = e && G(e)) && pe(de(e)) || OS.emptyArray + } + + function zD(e) { + var e = e.id || 0; + return !(e < 0 || e >= ni.length) && (null == (e = ni[e]) ? void 0 : e.flags) || 0 + } + + function UD(e) { + return Lx(e.parent), H(e).enumMemberValue + } + + function KD(e) { + switch (e.kind) { + case 302: + case 208: + case 209: + return !0 + } + return !1 + } + + function VD(e) { + if (302 === e.kind) return UD(e); + e = H(e).resolvedSymbol; + if (e && 8 & e.flags) { + e = e.valueDeclaration; + if (OS.isEnumConst(e.parent)) return UD(e) + } + } + + function qD(e) { + return 524288 & e.flags && 0 < ge(e, 0).length + } + + function WD(e, t) { + e = OS.getParseTreeNode(e, OS.isEntityName); + if (!e) return OS.TypeReferenceSerializationKind.Unknown; + if (t && !(t = OS.getParseTreeNode(t))) return OS.TypeReferenceSerializationKind.Unknown; + var r = !1, + n = (OS.isQualifiedName(e) && (r = !(null == (n = null == (n = ro(OS.getFirstIdentifier(e), 111551, !0, !0, t)) ? void 0 : n.declarations) || !n.every(OS.isTypeOnlyImportOrExportDeclaration))), ro(e, 111551, !0, !0, t)), + i = n && 2097152 & n.flags ? Ha(n) : n, + n = (r = r || !(null == (n = null == n ? void 0 : n.declarations) || !n.every(OS.isTypeOnlyImportOrExportDeclaration)), ro(e, 788968, !0, !1, t)); + if (i && i === n) { + var e = O_(!1); + if (e && i === e) return OS.TypeReferenceSerializationKind.Promise; + t = de(i); + if (t && gc(t)) return r ? OS.TypeReferenceSerializationKind.TypeWithCallSignature : OS.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue + } + return !n || _e(e = Pc(n)) ? r ? OS.TypeReferenceSerializationKind.ObjectType : OS.TypeReferenceSerializationKind.Unknown : 3 & e.flags ? OS.TypeReferenceSerializationKind.ObjectType : Y1(e, 245760) ? OS.TypeReferenceSerializationKind.VoidNullableOrNeverType : Y1(e, 528) ? OS.TypeReferenceSerializationKind.BooleanType : Y1(e, 296) ? OS.TypeReferenceSerializationKind.NumberLikeType : Y1(e, 2112) ? OS.TypeReferenceSerializationKind.BigIntLikeType : Y1(e, 402653316) ? OS.TypeReferenceSerializationKind.StringLikeType : De(e) ? OS.TypeReferenceSerializationKind.ArrayLikeType : Y1(e, 12288) ? OS.TypeReferenceSerializationKind.ESSymbolType : qD(e) ? OS.TypeReferenceSerializationKind.TypeWithCallSignature : sg(e) ? OS.TypeReferenceSerializationKind.ArrayLikeType : OS.TypeReferenceSerializationKind.ObjectType + } + + function HD(e, t, r, n, i) { + var a, e = OS.getParseTreeNode(e, OS.isVariableLikeOrAccessor); + return e ? (8192 & (a = !(e = G(e)) || 133120 & e.flags ? R : Sg(de(e))).flags && a.symbol === e && (r |= 1048576), i && (a = Mg(a)), P.typeToTypeNode(a, t, 1024 | r, n)) : OS.factory.createToken(131) + } + + function GD(e, t, r, n) { + var e = OS.getParseTreeNode(e, OS.isFunctionLike); + return e ? (e = Cu(e), P.typeToTypeNode(me(e), t, 1024 | r, n)) : OS.factory.createToken(131) + } + + function QD(e, t, r, n) { + var e = OS.getParseTreeNode(e, OS.isExpression); + return e ? (e = Xg(bD(e)), P.typeToTypeNode(e, t, 1024 | r, n)) : OS.factory.createToken(131) + } + + function XD(e) { + return tt.has(OS.escapeLeadingUnderscores(e)) + } + + function YD(e, t) { + var r = H(e).resolvedSymbol; + return r || (r = e, va(r = t && (t = e.parent, OS.isDeclaration(t)) && e === t.name ? ms(t) : r, e.escapedText, 3257279, void 0, void 0, !0)) + } + + function ZD(e) { + if (!OS.isGeneratedIdentifier(e)) { + e = OS.getParseTreeNode(e, OS.isIdentifier); + if (e) { + e = YD(e); + if (e) return Eo(e).valueDeclaration + } + } + } + + function $D(e) { + return !!(OS.isDeclarationReadonly(e) || OS.isVariableDeclaration(e) && OS.isVarConst(e)) && vp(de(G(e))) + } + + function eS(e, t) { + var r = de(G(e)); + return e = e, t = t, (e = 1024 & (r = r).flags ? P.symbolToExpression(r.symbol, 111551, e, void 0, t) : r === Ur ? OS.factory.createTrue() : r === Jr && OS.factory.createFalse()) || ("object" == typeof(t = r.value) ? OS.factory.createBigIntLiteral(t) : "number" == typeof t ? OS.factory.createNumericLiteral(t) : OS.factory.createStringLiteral(t)) + } + + function tS(e) { + return e && (Xi(e), OS.getSourceFileOfNode(e).localJsxFactory) || sr + } + + function rS(e) { + if (e) { + e = OS.getSourceFileOfNode(e); + if (e) { + if (e.localJsxFragmentFactory) return e.localJsxFragmentFactory; + var t = e.pragmas.get("jsxfrag"), + t = OS.isArray(t) ? t[0] : t; + if (t) return e.localJsxFragmentFactory = OS.parseIsolatedEntityName(t.arguments.factory, U), e.localJsxFragmentFactory + } + } + if (Z.jsxFragmentFactory) return OS.parseIsolatedEntityName(Z.jsxFragmentFactory, U) + } + + function nS(e) { + e = 264 === e.kind ? OS.tryCast(e.name, OS.isStringLiteral) : OS.getExternalModuleName(e), e = ao(e, e, void 0); + if (e) return OS.getDeclarationOfKind(e, 308) + } + + function iS(e, t) { + if ((c & t) !== t && Z.importHelpers) { + var r = OS.getSourceFileOfNode(e); + if (OS.isEffectiveExternalModule(r, Z) && !(16777216 & e.flags)) { + var n = function(e, t) { + l = l || oo(e, OS.externalHelpersModuleNameText, OS.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found, t) || L; + return l + }(r, e); + if (n !== L) + for (var i, a, o = t & ~c, s = 1; s <= 4194304; s <<= 1) o & s && (i = function(e) { + switch (e) { + case 1: + return "__extends"; + case 2: + return "__assign"; + case 4: + return "__rest"; + case 8: + return "__decorate"; + case 16: + return "__metadata"; + case 32: + return "__param"; + case 64: + return "__awaiter"; + case 128: + return "__generator"; + case 256: + return "__values"; + case 512: + return "__read"; + case 1024: + return "__spreadArray"; + case 2048: + return "__await"; + case 4096: + return "__asyncGenerator"; + case 8192: + return "__asyncDelegator"; + case 16384: + return "__asyncValues"; + case 32768: + return "__exportStar"; + case 65536: + return "__importStar"; + case 131072: + return "__importDefault"; + case 262144: + return "__makeTemplateObject"; + case 524288: + return "__classPrivateFieldGet"; + case 1048576: + return "__classPrivateFieldSet"; + case 2097152: + return "__classPrivateFieldIn"; + case 4194304: + return "__createBinding"; + default: + return OS.Debug.fail("Unrecognized helper") + } + }(s), (a = ma(n.exports, OS.escapeLeadingUnderscores(i), 111551)) ? 524288 & s ? OS.some(Nu(a), function(e) { + return 3 < x1(e) + }) || se(e, OS.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, OS.externalHelpersModuleNameText, i, 4) : 1048576 & s ? OS.some(Nu(a), function(e) { + return 4 < x1(e) + }) || se(e, OS.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, OS.externalHelpersModuleNameText, i, 5) : 1024 & s && (OS.some(Nu(a), function(e) { + return 2 < x1(e) + }) || se(e, OS.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, OS.externalHelpersModuleNameText, i, 3)) : se(e, OS.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, OS.externalHelpersModuleNameText, i)); + c |= t + } + } + } + + function aS(e) { + return function(e) { + if (OS.canHaveIllegalDecorators(e) && OS.some(e.illegalDecorators)) return kS(e, OS.Diagnostics.Decorators_are_not_valid_here); + if (OS.canHaveDecorators(e) && OS.hasDecorators(e)) { + if (!OS.nodeCanBeDecorated(e, e.parent, e.parent.parent)) return 171 !== e.kind || OS.nodeIsPresent(e.body) ? kS(e, OS.Diagnostics.Decorators_are_not_valid_here) : kS(e, OS.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload); + if (174 === e.kind || 175 === e.kind) { + var t = OS.getAllAccessorDeclarations(e.parent.members, e); + if (OS.hasDecorators(t.firstAccessor) && e === t.secondAccessor) return kS(e, OS.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name) + } + } + return !1 + }(e) || oS(e) + } + + function oS(e) { + var t, r, n, i, a = !!(a = e).modifiers && (function(e) { + switch (e.kind) { + case 174: + case 175: + case 173: + case 169: + case 168: + case 171: + case 170: + case 178: + case 264: + case 269: + case 268: + case 275: + case 274: + case 215: + case 216: + case 166: + case 165: + return; + case 172: + case 299: + case 300: + case 267: + case 181: + case 279: + return 1; + default: + if (265 === e.parent.kind || 308 === e.parent.kind) return; + switch (e.kind) { + case 259: + return sS(e, 132); + case 260: + case 182: + return sS(e, 126); + case 228: + case 261: + case 240: + case 262: + return 1; + case 263: + return sS(e, 85); + default: + OS.Debug.assertNever(e) + } + } + }(a) ? kS(a, OS.Diagnostics.Modifiers_cannot_appear_here) : void 0); + if (void 0 !== a) return a; + for (var o = 0, s = 0, c = e.modifiers; s < c.length; s++) { + var l = c[s]; + if (!OS.isDecorator(l)) { + if (146 !== l.kind) { + if (168 === e.kind || 170 === e.kind) return J(l, OS.Diagnostics._0_modifier_cannot_appear_on_a_type_member, OS.tokenToString(l.kind)); + if (178 === e.kind && (124 !== l.kind || !OS.isClassLike(e.parent))) return J(l, OS.Diagnostics._0_modifier_cannot_appear_on_an_index_signature, OS.tokenToString(l.kind)) + } + if (101 !== l.kind && 145 !== l.kind && 165 === e.kind) return J(l, OS.Diagnostics._0_modifier_cannot_appear_on_a_type_parameter, OS.tokenToString(l.kind)); + switch (l.kind) { + case 85: + if (263 !== e.kind) return J(e, OS.Diagnostics.A_class_member_cannot_have_the_0_keyword, OS.tokenToString(85)); + break; + case 161: + if (16384 & o) return J(l, OS.Diagnostics._0_modifier_already_seen, "override"); + if (2 & o) return J(l, OS.Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "override", "declare"); + if (64 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, "override", "readonly"); + if (128 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, "override", "accessor"); + if (512 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, "override", "async"); + o |= 16384, i = l; + break; + case 123: + case 122: + case 121: + var u = os(OS.modifierToFlag(l.kind)); + if (28 & o) return J(l, OS.Diagnostics.Accessibility_modifier_already_seen); + if (16384 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, u, "override"); + if (32 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, u, "static"); + if (128 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, u, "accessor"); + if (64 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, u, "readonly"); + if (512 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, u, "async"); + if (265 === e.parent.kind || 308 === e.parent.kind) return J(l, OS.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, u); + if (256 & o) return 121 === l.kind ? J(l, OS.Diagnostics._0_modifier_cannot_be_used_with_1_modifier, u, "abstract") : J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, u, "abstract"); + if (OS.isPrivateIdentifierClassElementDeclaration(e)) return J(l, OS.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier); + o |= OS.modifierToFlag(l.kind); + break; + case 124: + if (32 & o) return J(l, OS.Diagnostics._0_modifier_already_seen, "static"); + if (64 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, "static", "readonly"); + if (512 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, "static", "async"); + if (128 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, "static", "accessor"); + if (265 === e.parent.kind || 308 === e.parent.kind) return J(l, OS.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, "static"); + if (166 === e.kind) return J(l, OS.Diagnostics._0_modifier_cannot_appear_on_a_parameter, "static"); + if (256 & o) return J(l, OS.Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "static", "abstract"); + if (16384 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, "static", "override"); + o |= 32, t = l; + break; + case 127: + if (128 & o) return J(l, OS.Diagnostics._0_modifier_already_seen, "accessor"); + if (64 & o) return J(l, OS.Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "accessor", "readonly"); + if (2 & o) return J(l, OS.Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "accessor", "declare"); + if (169 !== e.kind) return J(l, OS.Diagnostics.accessor_modifier_can_only_appear_on_a_property_declaration); + o |= 128; + break; + case 146: + if (64 & o) return J(l, OS.Diagnostics._0_modifier_already_seen, "readonly"); + if (169 !== e.kind && 168 !== e.kind && 178 !== e.kind && 166 !== e.kind) return J(l, OS.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature); + o |= 64; + break; + case 93: + if (1 & o) return J(l, OS.Diagnostics._0_modifier_already_seen, "export"); + if (2 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, "export", "declare"); + if (256 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, "export", "abstract"); + if (512 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, "export", "async"); + if (OS.isClassLike(e.parent)) return J(l, OS.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, "export"); + if (166 === e.kind) return J(l, OS.Diagnostics._0_modifier_cannot_appear_on_a_parameter, "export"); + o |= 1; + break; + case 88: + u = (308 === e.parent.kind ? e : e.parent).parent; + if (264 === u.kind && !OS.isAmbientModule(u)) return J(l, OS.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); + if (!(1 & o)) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, "export", "default"); + o |= 1024; + break; + case 136: + if (2 & o) return J(l, OS.Diagnostics._0_modifier_already_seen, "declare"); + if (512 & o) return J(l, OS.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "async"); + if (16384 & o) return J(l, OS.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "override"); + if (OS.isClassLike(e.parent) && !OS.isPropertyDeclaration(e)) return J(l, OS.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, "declare"); + if (166 === e.kind) return J(l, OS.Diagnostics._0_modifier_cannot_appear_on_a_parameter, "declare"); + if (16777216 & e.parent.flags && 265 === e.parent.kind) return J(l, OS.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context); + if (OS.isPrivateIdentifierClassElementDeclaration(e)) return J(l, OS.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier, "declare"); + o |= 2, r = l; + break; + case 126: + if (256 & o) return J(l, OS.Diagnostics._0_modifier_already_seen, "abstract"); + if (260 !== e.kind && 182 !== e.kind) { + if (171 !== e.kind && 169 !== e.kind && 174 !== e.kind && 175 !== e.kind) return J(l, OS.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration); + if (260 !== e.parent.kind || !OS.hasSyntacticModifier(e.parent, 256)) return J(l, OS.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class); + if (32 & o) return J(l, OS.Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "static", "abstract"); + if (8 & o) return J(l, OS.Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "private", "abstract"); + if (512 & o && n) return J(n, OS.Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "async", "abstract"); + if (16384 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, "abstract", "override"); + if (128 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, "abstract", "accessor") + } + if (OS.isNamedDeclaration(e) && 80 === e.name.kind) return J(l, OS.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier, "abstract"); + o |= 256; + break; + case 132: + if (512 & o) return J(l, OS.Diagnostics._0_modifier_already_seen, "async"); + if (2 & o || 16777216 & e.parent.flags) return J(l, OS.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "async"); + if (166 === e.kind) return J(l, OS.Diagnostics._0_modifier_cannot_appear_on_a_parameter, "async"); + if (256 & o) return J(l, OS.Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "async", "abstract"); + o |= 512, n = l; + break; + case 101: + case 145: + var _ = 101 === l.kind ? 32768 : 65536, + d = 101 === l.kind ? "in" : "out"; + if (165 !== e.kind || !(OS.isInterfaceDeclaration(e.parent) || OS.isClassLike(e.parent) || OS.isTypeAliasDeclaration(e.parent))) return J(l, OS.Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias, d); + if (o & _) return J(l, OS.Diagnostics._0_modifier_already_seen, d); + if (32768 & _ && 65536 & o) return J(l, OS.Diagnostics._0_modifier_must_precede_1_modifier, "in", "out"); + o |= _ + } + } + } + if (173 === e.kind) return 32 & o ? J(t, OS.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "static") : 16384 & o ? J(i, OS.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "override") : !!(512 & o) && J(n, OS.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "async"); + if ((269 === e.kind || 268 === e.kind) && 2 & o) return J(r, OS.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration, "declare"); + if (166 === e.kind && 16476 & o && OS.isBindingPattern(e.name)) return J(e, OS.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern); + if (166 === e.kind && 16476 & o && e.dotDotDotToken) return J(e, OS.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter); + if (512 & o) { + a = n; + switch (e.kind) { + case 171: + case 259: + case 215: + case 216: + return !1 + } + return J(a, OS.Diagnostics._0_modifier_cannot_be_used_here, "async") + } + return !1 + } + + function sS(e, t) { + for (var r = 0, n = e.modifiers; r < n.length; r++) { + var i = n[r]; + if (!OS.isDecorator(i)) return i.kind !== t + } + return !1 + } + + function cS(e, t) { + return void 0 === t && (t = OS.Diagnostics.Trailing_comma_not_allowed), !(!e || !e.hasTrailingComma) && NS(e[0], e.end - ",".length, ",".length, t) + } + + function lS(e, t) { + var r; + return !(!e || 0 !== e.length) && NS(t, r = e.pos - "<".length, OS.skipTrivia(t.text, e.end) + ">".length - r, OS.Diagnostics.Type_parameter_list_cannot_be_empty) + } + + function uS(e) { + if (3 <= U) { + var t = e.body && OS.isBlock(e.body) && OS.findUseStrictPrologue(e.body.statements); + if (t) { + e = e.parameters; + e = OS.filter(e, function(e) { + return !!e.initializer || OS.isBindingPattern(e.name) || OS.isRestParameter(e) + }); + if (OS.length(e)) return OS.forEach(e, function(e) { + OS.addRelatedInfo(se(e, OS.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive), OS.createDiagnosticForNode(t, OS.Diagnostics.use_strict_directive_used_here)) + }), e = e.map(function(e, t) { + return 0 === t ? OS.createDiagnosticForNode(e, OS.Diagnostics.Non_simple_parameter_declared_here) : OS.createDiagnosticForNode(e, OS.Diagnostics.and_here) + }), OS.addRelatedInfo.apply(void 0, __spreadArray([se(t, OS.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)], e, !1)), !0 + } + } + return !1 + } + + function _S(e) { + var t = OS.getSourceFileOfNode(e); + return aS(e) || lS(e.typeParameters, t) || function(e) { + for (var t = !1, r = e.length, n = 0; n < r; n++) { + var i = e[n]; + if (i.dotDotDotToken) { + if (n !== r - 1) return J(i.dotDotDotToken, OS.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); + if (16777216 & i.flags || cS(e, OS.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma), i.questionToken) return J(i.questionToken, OS.Diagnostics.A_rest_parameter_cannot_be_optional); + if (i.initializer) return J(i.name, OS.Diagnostics.A_rest_parameter_cannot_have_an_initializer) + } else if (bu(i)) { + if (t = !0, i.questionToken && i.initializer) return J(i.name, OS.Diagnostics.Parameter_cannot_have_question_mark_and_initializer) + } else if (t && !i.initializer) return J(i.name, OS.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter) + } + }(e.parameters) || function(e, t) { + if (!OS.isArrowFunction(e)) return !1; + e.typeParameters && !(1 < OS.length(e.typeParameters) || e.typeParameters.hasTrailingComma || e.typeParameters[0].constraint) && t && OS.fileExtensionIsOneOf(t.fileName, [".mts", ".cts"]) && J(e.typeParameters[0], OS.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint); + var e = e.equalsGreaterThanToken, + r = OS.getLineAndCharacterOfPosition(t, e.pos).line, + t = OS.getLineAndCharacterOfPosition(t, e.end).line; + return r !== t && J(e, OS.Diagnostics.Line_terminator_not_permitted_before_arrow) + }(e, t) || OS.isFunctionLikeDeclaration(e) && uS(e) + } + + function dS(e, t) { + return cS(t) || (e = e, !(!(t = t) || 0 !== t.length) && NS(e = OS.getSourceFileOfNode(e), r = t.pos - "<".length, OS.skipTrivia(e.text, t.end) + ">".length - r, OS.Diagnostics.Type_argument_list_cannot_be_empty)); + var r + } + + function pS(e) { + var t, r = e.types; + if (!cS(r)) return r && 0 === r.length ? (t = OS.tokenToString(e.token), NS(e, r.pos, 0, OS.Diagnostics._0_list_cannot_be_empty, t)) : void OS.some(r, fS) + } + + function fS(e) { + return OS.isExpressionWithTypeArguments(e) && OS.isImportKeyword(e.expression) && e.typeArguments ? J(e, OS.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments) : dS(e, e.typeArguments) + } + + function gS(e) { + return 164 === e.kind && 223 === e.expression.kind && 27 === e.expression.operatorToken.kind ? J(e.expression, OS.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name) : void 0 + } + + function mS(e) { + return e.asteriskToken && (OS.Debug.assert(259 === e.kind || 215 === e.kind || 171 === e.kind), 16777216 & e.flags ? J(e.asteriskToken, OS.Diagnostics.Generators_are_not_allowed_in_an_ambient_context) : !e.body && J(e.asteriskToken, OS.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)) + } + + function yS(e, t) { + return e && J(e, t) + } + + function hS(e, t) { + return e && J(e, t) + } + + function vS(e) { + if (!FS(e)) + if (247 !== e.kind || !e.awaitModifier || 32768 & e.flags) + if (!OS.isForOfStatement(e) || 32768 & e.flags || !OS.isIdentifier(e.initializer) || "async" !== e.initializer.escapedText) { + if (258 === e.initializer.kind) { + var t = e.initializer; + if (!CS(t)) { + var r = t.declarations; + if (!r.length) return; + if (1 < r.length) return n = 246 === e.kind ? OS.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : OS.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement, kS(t.declarations[1], n); + t = r[0]; + if (t.initializer) return n = 246 === e.kind ? OS.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer : OS.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer, J(t.name, n); + if (t.type) return J(t, n = 246 === e.kind ? OS.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation : OS.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation) + } + } + } else J(e.initializer, OS.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async); + else { + var n, i = OS.getSourceFileOfNode(e); + if (OS.isInTopLevelContext(e)) { + if (!ES(i)) switch (OS.isEffectiveExternalModule(i, Z) || oe.add(OS.createDiagnosticForNode(e.awaitModifier, OS.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)), v) { + case OS.ModuleKind.Node16: + case OS.ModuleKind.NodeNext: + if (i.impliedNodeFormat === OS.ModuleKind.CommonJS) { + oe.add(OS.createDiagnosticForNode(e.awaitModifier, OS.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)); + break + } + case OS.ModuleKind.ES2022: + case OS.ModuleKind.ESNext: + case OS.ModuleKind.System: + if (4 <= U) break; + default: + oe.add(OS.createDiagnosticForNode(e.awaitModifier, OS.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher)) + } + } else if (!ES(i)) return n = OS.createDiagnosticForNode(e.awaitModifier, OS.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules), (r = OS.getContainingFunction(e)) && 173 !== r.kind && (OS.Debug.assert(0 == (2 & OS.getFunctionFlags(r)), "Enclosing function should never be an async function."), t = OS.createDiagnosticForNode(r, OS.Diagnostics.Did_you_mean_to_mark_this_function_as_async), OS.addRelatedInfo(n, t)), void oe.add(n) + } + } + + function bS(e) { + if (e.parameters.length === (174 === e.kind ? 1 : 2)) return OS.getThisParameter(e) + } + + function xS(e, t) { + if (r = e, OS.isDynamicName(r) && !Uc(r)) return J(e, t); + var r + } + + function DS(e) { + if (_S(e)) return 1; + if (171 === e.kind) { + if (207 === e.parent.kind) { + if (e.modifiers && (1 !== e.modifiers.length || 132 !== OS.first(e.modifiers).kind)) return kS(e, OS.Diagnostics.Modifiers_cannot_appear_here); + if (yS(e.questionToken, OS.Diagnostics.An_object_member_cannot_be_declared_optional)) return 1; + if (hS(e.exclamationToken, OS.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)) return 1; + if (void 0 === e.body) return NS(e, e.end - 1, ";".length, OS.Diagnostics._0_expected, "{") + } + if (mS(e)) return 1 + } + return OS.isClassLike(e.parent) ? U < 2 && OS.isPrivateIdentifier(e.name) ? J(e.name, OS.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher) : 16777216 & e.flags ? xS(e.name, OS.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type) : 171 === e.kind && !e.body && xS(e.name, OS.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type) : 261 === e.parent.kind ? xS(e.name, OS.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type) : 184 === e.parent.kind && xS(e.name, OS.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type) + } + + function SS(e) { + return OS.isStringOrNumericLiteralLike(e) || 221 === e.kind && 40 === e.operator && 8 === e.operand.kind + } + + function TS(e) { + var t, r = e.initializer; + r && (t = !(SS(r) || (t = r, (OS.isPropertyAccessExpression(t) || OS.isElementAccessExpression(t) && SS(t.argumentExpression)) && OS.isEntityNameExpression(t.expression) && 1024 & u2(t).flags) || 110 === r.kind || 95 === r.kind || 9 === (t = r).kind || 221 === t.kind && 40 === t.operator && 9 === t.operand.kind), (OS.isDeclarationReadonly(e) || OS.isVariableDeclaration(e) && OS.isVarConst(e)) && !e.type ? t && J(r, OS.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference) : J(r, OS.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)) + } + + function CS(e) { + var t = e.declarations; + return cS(e.declarations) || !e.declarations.length && NS(e, t.pos, t.end - t.pos, OS.Diagnostics.Variable_declaration_list_cannot_be_empty) + } + + function ES(e) { + return 0 < e.parseDiagnostics.length + } + + function kS(e, t, r, n, i) { + var a = OS.getSourceFileOfNode(e); + return !ES(a) && (e = OS.getSpanOfTokenAtPosition(a, e.pos), oe.add(OS.createFileDiagnostic(a, e.start, e.length, t, r, n, i)), !0) + } + + function NS(e, t, r, n, i, a, o) { + e = OS.getSourceFileOfNode(e); + return !ES(e) && (oe.add(OS.createFileDiagnostic(e, t, r, n, i, a, o)), !0) + } + + function AS(e, t, r, n, i, a) { + return !ES(OS.getSourceFileOfNode(t)) && ($i(e, t, r, n, i, a), !0) + } + + function J(e, t, r, n, i) { + return !ES(OS.getSourceFileOfNode(e)) && (oe.add(OS.createDiagnosticForNode(e, t, r, n, i)), !0) + } + + function FS(e) { + if (16777216 & e.flags) { + if (!H(e).hasReportedStatementInAmbientContext && (OS.isFunctionLike(e.parent) || OS.isAccessor(e.parent))) return H(e).hasReportedStatementInAmbientContext = kS(e, OS.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts); + if (238 === e.parent.kind || 265 === e.parent.kind || 308 === e.parent.kind) { + var t = H(e.parent); + if (!t.hasReportedStatementInAmbientContext) return t.hasReportedStatementInAmbientContext = kS(e, OS.Diagnostics.Statements_are_not_allowed_in_ambient_contexts) + } + } + } + + function PS(e) { + if (32 & e.numericLiteralFlags) { + var t = void 0; + if (1 <= U ? t = OS.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0 : OS.isChildOfNodeWithKind(e, 198) ? t = OS.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0 : OS.isChildOfNodeWithKind(e, 302) && (t = OS.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0), t) return n = ((r = OS.isPrefixUnaryExpression(e.parent) && 40 === e.parent.operator) ? "-" : "") + "0o" + e.text, J(r ? e.parent : e, t, n) + } + var r, n; + return r = e, t = -1 !== OS.getTextOfNode(r).indexOf("."), n = 16 & r.numericLiteralFlags, t || n || +r.text <= Math.pow(2, 53) - 1 || ta(!1, OS.createDiagnosticForNode(r, OS.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers)), !1 + } + + function wS(e) { + return !!OS.forEach(e.elements, function(e) { + if (e.isTypeOnly) return kS(e, 273 === e.kind ? OS.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement : OS.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement) + }) + } + + function IS(e, t, r, n) { + if (1048576 & t.flags && 2621440 & e.flags) { + var i = Xm(t, e); + if (i) return i; + i = pe(e); + if (i) { + e = Wm(i, t); + if (e) return zf(t, OS.map(e, function(e) { + return [function() { + return de(e) + }, e.escapedName] + }), r, void 0, n) + } + } + } + }, (e = MS = MS || {}).JSX = "JSX", e.IntrinsicElements = "IntrinsicElements", e.ElementClass = "ElementClass", e.ElementAttributesPropertyNameContainer = "ElementAttributesProperty", e.ElementChildrenAttributeNameContainer = "ElementChildrenAttribute", e.Element = "Element", e.IntrinsicAttributes = "IntrinsicAttributes", e.IntrinsicClassAttributes = "IntrinsicClassAttributes", e.LibraryManagedAttributes = "LibraryManagedAttributes", OS.signatureHasRestParameter = YS, OS.signatureHasLiteralTypes = ZS + }(ts = ts || {}), ! function(p) { + var e; + + function s(e, t, r, n) { + return void 0 === e || void 0 === t || (t = t(e)) === e ? e : void 0 !== t ? (e = p.isArray(t) ? (n || i)(t) : t, p.Debug.assertNode(e, r), e) : void 0 + } + + function c(e, t, r, n, i) { + var a, o, s; + return void 0 !== e && void 0 !== t && (s = e.length, (void 0 === n || n < 0) && (n = 0), (void 0 === i || s - n < i) && (i = s - n), o = a = -1, s = 0 < n || i < s ? e.hasTrailingComma && n + i === s : (a = e.pos, o = e.end, e.hasTrailingComma), (t = l(e, t, r, n, i)) !== e) ? (r = p.factory.createNodeArray(t, s), p.setTextRangePosEnd(r, a, o), r) : e + } + + function l(e, t, r, n, i) { + var a, o = e.length; + (0 < n || i < o) && (a = []); + for (var s = 0; s < i; s++) { + var c = e[s + n], + l = void 0 !== c ? t(c) : void 0; + if ((void 0 !== a || void 0 === l || l !== c) && (void 0 === a && (a = e.slice(0, s)), l)) + if (p.isArray(l)) + for (var u = 0, _ = l; u < _.length; u++) { + var d = _[u]; + p.Debug.assertNode(d, r), a.push(d) + } else p.Debug.assertNode(l, r), a.push(l) + } + return null != a ? a : e + } + + function o(e, t, r, n, i, a) { + return void 0 === a && (a = c), r.startLexicalEnvironment(), e = a(e, t, p.isStatement, n), i && (e = r.factory.ensureUseStrict(e)), p.factory.mergeLexicalEnvironment(e, r.endLexicalEnvironment()) + } + + function u(e, t, r, n) { + var i; + return void 0 === n && (n = c), r.startLexicalEnvironment(), e && (r.setLexicalEnvironmentFlags(1, !0), i = n(e, t, p.isParameterDeclaration), 2 & r.getLexicalEnvironmentFlags() && 2 <= p.getEmitScriptTarget(r.getCompilerOptions()) && (i = function(e, t) { + for (var r, n = 0; n < e.length; n++) { + var i = e[n], + a = function(e, t) { + return e.dotDotDotToken ? e : p.isBindingPattern(e.name) ? function(e, t) { + var r = t.factory; + return t.addInitializationStatement(r.createVariableStatement(void 0, r.createVariableDeclarationList([r.createVariableDeclaration(e.name, void 0, e.type, e.initializer ? r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e), r.createVoidZero()), void 0, e.initializer, void 0, r.getGeneratedNameForNode(e)) : r.getGeneratedNameForNode(e))]))), r.updateParameterDeclaration(e, e.modifiers, e.dotDotDotToken, r.getGeneratedNameForNode(e), e.questionToken, e.type, void 0) + }(e, t) : e.initializer ? function(e, t, r, n) { + var i = n.factory; + return n.addInitializationStatement(i.createIfStatement(i.createTypeCheck(i.cloneNode(t), "undefined"), p.setEmitFlags(p.setTextRange(i.createBlock([i.createExpressionStatement(p.setEmitFlags(p.setTextRange(i.createAssignment(p.setEmitFlags(i.cloneNode(t), 48), p.setEmitFlags(r, 1584 | p.getEmitFlags(r))), e), 1536))]), e), 1953))), i.updateParameterDeclaration(e, e.modifiers, e.dotDotDotToken, e.name, e.questionToken, e.type, void 0) + }(e, e.name, e.initializer, t) : e + }(i, t); + !r && a === i || ((r = r || e.slice(0, n))[n] = a) + } + if (r) return p.setTextRange(t.factory.createNodeArray(r, e.hasTrailingComma), e); + return e + }(i, r)), r.setLexicalEnvironmentFlags(1, !1)), r.suspendLexicalEnvironment(), i + } + + function _(e, t, r, n) { + void 0 === n && (n = s), r.resumeLexicalEnvironment(); + var i, n = n(e, t, p.isConciseBody), + e = r.endLexicalEnvironment(); + return p.some(e) ? n ? (t = r.factory.converters.convertToFunctionBlock(n), i = p.factory.mergeLexicalEnvironment(t.statements, e), r.factory.updateBlock(t, i)) : r.factory.createBlock(e) : n + } + + function d(e, t, r, n) { + void 0 === n && (n = s), r.startBlockScope(); + n = n(e, t, p.isStatement, r.factory.liftToBlock), e = r.endBlockScope(); + return p.some(e) ? p.isBlock(n) ? (e.push.apply(e, n.statements), r.factory.updateBlock(n, e)) : (e.push(n), r.factory.createBlock(e)) : n + } + p.visitNode = s, p.visitNodes = c, p.visitArray = function(e, t, r, n, i) { + var a; + return void 0 === e ? e : (a = e.length, l(e, t, r, n = void 0 === n || n < 0 ? 0 : n, i = void 0 === i || a - n < i ? a - n : i)) + }, p.visitLexicalEnvironment = o, p.visitParameterList = u, p.visitFunctionBody = _, p.visitIterationBody = d, p.visitEachChild = function(e, t, r, n, i, a) { + var o; + if (void 0 === n && (n = c), void 0 === a && (a = s), void 0 !== e) return void 0 === (o = f[e.kind]) ? e : o(e, t, r, n, a, i) + }; + (e = {})[79] = function(e, t, r, n, i, a) { + return r.factory.updateIdentifier(e, n(e.typeArguments, t, p.isTypeNodeOrTypeParameterDeclaration)) + }, e[163] = function(e, t, r, n, i, a) { + return r.factory.updateQualifiedName(e, i(e.left, t, p.isEntityName), i(e.right, t, p.isIdentifier)) + }, e[164] = function(e, t, r, n, i, a) { + return r.factory.updateComputedPropertyName(e, i(e.expression, t, p.isExpression)) + }, e[165] = function(e, t, r, n, i, a) { + return r.factory.updateTypeParameterDeclaration(e, n(e.modifiers, t, p.isModifier), i(e.name, t, p.isIdentifier), i(e.constraint, t, p.isTypeNode), i(e.default, t, p.isTypeNode)) + }, e[166] = function(e, t, r, n, i, a) { + return r.factory.updateParameterDeclaration(e, n(e.modifiers, t, p.isModifierLike), i(e.dotDotDotToken, a, p.isDotDotDotToken), i(e.name, t, p.isBindingName), i(e.questionToken, a, p.isQuestionToken), i(e.type, t, p.isTypeNode), i(e.initializer, t, p.isExpression)) + }, e[167] = function(e, t, r, n, i, a) { + return r.factory.updateDecorator(e, i(e.expression, t, p.isExpression)) + }, e[168] = function(e, t, r, n, i, a) { + return r.factory.updatePropertySignature(e, n(e.modifiers, t, p.isModifier), i(e.name, t, p.isPropertyName), i(e.questionToken, a, p.isToken), i(e.type, t, p.isTypeNode)) + }, e[169] = function(e, t, r, n, i, a) { + return r.factory.updatePropertyDeclaration(e, n(e.modifiers, t, p.isModifierLike), i(e.name, t, p.isPropertyName), i(null != (r = e.questionToken) ? r : e.exclamationToken, a, p.isQuestionOrExclamationToken), i(e.type, t, p.isTypeNode), i(e.initializer, t, p.isExpression)) + }, e[170] = function(e, t, r, n, i, a) { + return r.factory.updateMethodSignature(e, n(e.modifiers, t, p.isModifier), i(e.name, t, p.isPropertyName), i(e.questionToken, a, p.isQuestionToken), n(e.typeParameters, t, p.isTypeParameterDeclaration), n(e.parameters, t, p.isParameterDeclaration), i(e.type, t, p.isTypeNode)) + }, e[171] = function(e, t, r, n, i, a) { + return r.factory.updateMethodDeclaration(e, n(e.modifiers, t, p.isModifierLike), i(e.asteriskToken, a, p.isAsteriskToken), i(e.name, t, p.isPropertyName), i(e.questionToken, a, p.isQuestionToken), n(e.typeParameters, t, p.isTypeParameterDeclaration), u(e.parameters, t, r, n), i(e.type, t, p.isTypeNode), _(e.body, t, r, i)) + }, e[173] = function(e, t, r, n, i, a) { + return r.factory.updateConstructorDeclaration(e, n(e.modifiers, t, p.isModifier), u(e.parameters, t, r, n), _(e.body, t, r, i)) + }, e[174] = function(e, t, r, n, i, a) { + return r.factory.updateGetAccessorDeclaration(e, n(e.modifiers, t, p.isModifierLike), i(e.name, t, p.isPropertyName), u(e.parameters, t, r, n), i(e.type, t, p.isTypeNode), _(e.body, t, r, i)) + }, e[175] = function(e, t, r, n, i, a) { + return r.factory.updateSetAccessorDeclaration(e, n(e.modifiers, t, p.isModifierLike), i(e.name, t, p.isPropertyName), u(e.parameters, t, r, n), _(e.body, t, r, i)) + }, e[172] = function(e, t, r, n, i, a) { + return r.startLexicalEnvironment(), r.suspendLexicalEnvironment(), r.factory.updateClassStaticBlockDeclaration(e, _(e.body, t, r, i)) + }, e[176] = function(e, t, r, n, i, a) { + return r.factory.updateCallSignature(e, n(e.typeParameters, t, p.isTypeParameterDeclaration), n(e.parameters, t, p.isParameterDeclaration), i(e.type, t, p.isTypeNode)) + }, e[177] = function(e, t, r, n, i, a) { + return r.factory.updateConstructSignature(e, n(e.typeParameters, t, p.isTypeParameterDeclaration), n(e.parameters, t, p.isParameterDeclaration), i(e.type, t, p.isTypeNode)) + }, e[178] = function(e, t, r, n, i, a) { + return r.factory.updateIndexSignature(e, n(e.modifiers, t, p.isModifier), n(e.parameters, t, p.isParameterDeclaration), i(e.type, t, p.isTypeNode)) + }, e[179] = function(e, t, r, n, i, a) { + return r.factory.updateTypePredicateNode(e, i(e.assertsModifier, t, p.isAssertsKeyword), i(e.parameterName, t, p.isIdentifierOrThisTypeNode), i(e.type, t, p.isTypeNode)) + }, e[180] = function(e, t, r, n, i, a) { + return r.factory.updateTypeReferenceNode(e, i(e.typeName, t, p.isEntityName), n(e.typeArguments, t, p.isTypeNode)) + }, e[181] = function(e, t, r, n, i, a) { + return r.factory.updateFunctionTypeNode(e, n(e.typeParameters, t, p.isTypeParameterDeclaration), n(e.parameters, t, p.isParameterDeclaration), i(e.type, t, p.isTypeNode)) + }, e[182] = function(e, t, r, n, i, a) { + return r.factory.updateConstructorTypeNode(e, n(e.modifiers, t, p.isModifier), n(e.typeParameters, t, p.isTypeParameterDeclaration), n(e.parameters, t, p.isParameterDeclaration), i(e.type, t, p.isTypeNode)) + }, e[183] = function(e, t, r, n, i, a) { + return r.factory.updateTypeQueryNode(e, i(e.exprName, t, p.isEntityName), n(e.typeArguments, t, p.isTypeNode)) + }, e[184] = function(e, t, r, n, i, a) { + return r.factory.updateTypeLiteralNode(e, n(e.members, t, p.isTypeElement)) + }, e[185] = function(e, t, r, n, i, a) { + return r.factory.updateArrayTypeNode(e, i(e.elementType, t, p.isTypeNode)) + }, e[186] = function(e, t, r, n, i, a) { + return r.factory.updateTupleTypeNode(e, n(e.elements, t, p.isTypeNode)) + }, e[187] = function(e, t, r, n, i, a) { + return r.factory.updateOptionalTypeNode(e, i(e.type, t, p.isTypeNode)) + }, e[188] = function(e, t, r, n, i, a) { + return r.factory.updateRestTypeNode(e, i(e.type, t, p.isTypeNode)) + }, e[189] = function(e, t, r, n, i, a) { + return r.factory.updateUnionTypeNode(e, n(e.types, t, p.isTypeNode)) + }, e[190] = function(e, t, r, n, i, a) { + return r.factory.updateIntersectionTypeNode(e, n(e.types, t, p.isTypeNode)) + }, e[191] = function(e, t, r, n, i, a) { + return r.factory.updateConditionalTypeNode(e, i(e.checkType, t, p.isTypeNode), i(e.extendsType, t, p.isTypeNode), i(e.trueType, t, p.isTypeNode), i(e.falseType, t, p.isTypeNode)) + }, e[192] = function(e, t, r, n, i, a) { + return r.factory.updateInferTypeNode(e, i(e.typeParameter, t, p.isTypeParameterDeclaration)) + }, e[202] = function(e, t, r, n, i, a) { + return r.factory.updateImportTypeNode(e, i(e.argument, t, p.isTypeNode), i(e.assertions, t, p.isImportTypeAssertionContainer), i(e.qualifier, t, p.isEntityName), n(e.typeArguments, t, p.isTypeNode), e.isTypeOf) + }, e[298] = function(e, t, r, n, i, a) { + return r.factory.updateImportTypeAssertionContainer(e, i(e.assertClause, t, p.isAssertClause), e.multiLine) + }, e[199] = function(e, t, r, n, i, a) { + return r.factory.updateNamedTupleMember(e, i(e.dotDotDotToken, a, p.isDotDotDotToken), i(e.name, t, p.isIdentifier), i(e.questionToken, a, p.isQuestionToken), i(e.type, t, p.isTypeNode)) + }, e[193] = function(e, t, r, n, i, a) { + return r.factory.updateParenthesizedType(e, i(e.type, t, p.isTypeNode)) + }, e[195] = function(e, t, r, n, i, a) { + return r.factory.updateTypeOperatorNode(e, i(e.type, t, p.isTypeNode)) + }, e[196] = function(e, t, r, n, i, a) { + return r.factory.updateIndexedAccessTypeNode(e, i(e.objectType, t, p.isTypeNode), i(e.indexType, t, p.isTypeNode)) + }, e[197] = function(e, t, r, n, i, a) { + return r.factory.updateMappedTypeNode(e, i(e.readonlyToken, a, p.isReadonlyKeywordOrPlusOrMinusToken), i(e.typeParameter, t, p.isTypeParameterDeclaration), i(e.nameType, t, p.isTypeNode), i(e.questionToken, a, p.isQuestionOrPlusOrMinusToken), i(e.type, t, p.isTypeNode), n(e.members, t, p.isTypeElement)) + }, e[198] = function(e, t, r, n, i, a) { + return r.factory.updateLiteralTypeNode(e, i(e.literal, t, p.isExpression)) + }, e[200] = function(e, t, r, n, i, a) { + return r.factory.updateTemplateLiteralType(e, i(e.head, t, p.isTemplateHead), n(e.templateSpans, t, p.isTemplateLiteralTypeSpan)) + }, e[201] = function(e, t, r, n, i, a) { + return r.factory.updateTemplateLiteralTypeSpan(e, i(e.type, t, p.isTypeNode), i(e.literal, t, p.isTemplateMiddleOrTemplateTail)) + }, e[203] = function(e, t, r, n, i, a) { + return r.factory.updateObjectBindingPattern(e, n(e.elements, t, p.isBindingElement)) + }, e[204] = function(e, t, r, n, i, a) { + return r.factory.updateArrayBindingPattern(e, n(e.elements, t, p.isArrayBindingElement)) + }, e[205] = function(e, t, r, n, i, a) { + return r.factory.updateBindingElement(e, i(e.dotDotDotToken, a, p.isDotDotDotToken), i(e.propertyName, t, p.isPropertyName), i(e.name, t, p.isBindingName), i(e.initializer, t, p.isExpression)) + }, e[206] = function(e, t, r, n, i, a) { + return r.factory.updateArrayLiteralExpression(e, n(e.elements, t, p.isExpression)) + }, e[207] = function(e, t, r, n, i, a) { + return r.factory.updateObjectLiteralExpression(e, n(e.properties, t, p.isObjectLiteralElementLike)) + }, e[208] = function(e, t, r, n, i, a) { + return p.isPropertyAccessChain(e) ? r.factory.updatePropertyAccessChain(e, i(e.expression, t, p.isExpression), i(e.questionDotToken, a, p.isQuestionDotToken), i(e.name, t, p.isMemberName)) : r.factory.updatePropertyAccessExpression(e, i(e.expression, t, p.isExpression), i(e.name, t, p.isMemberName)) + }, e[209] = function(e, t, r, n, i, a) { + return p.isElementAccessChain(e) ? r.factory.updateElementAccessChain(e, i(e.expression, t, p.isExpression), i(e.questionDotToken, a, p.isQuestionDotToken), i(e.argumentExpression, t, p.isExpression)) : r.factory.updateElementAccessExpression(e, i(e.expression, t, p.isExpression), i(e.argumentExpression, t, p.isExpression)) + }, e[210] = function(e, t, r, n, i, a) { + return p.isCallChain(e) ? r.factory.updateCallChain(e, i(e.expression, t, p.isExpression), i(e.questionDotToken, a, p.isQuestionDotToken), n(e.typeArguments, t, p.isTypeNode), n(e.arguments, t, p.isExpression)) : r.factory.updateCallExpression(e, i(e.expression, t, p.isExpression), n(e.typeArguments, t, p.isTypeNode), n(e.arguments, t, p.isExpression)) + }, e[211] = function(e, t, r, n, i, a) { + return r.factory.updateNewExpression(e, i(e.expression, t, p.isExpression), n(e.typeArguments, t, p.isTypeNode), n(e.arguments, t, p.isExpression)) + }, e[212] = function(e, t, r, n, i, a) { + return r.factory.updateTaggedTemplateExpression(e, i(e.tag, t, p.isExpression), n(e.typeArguments, t, p.isTypeNode), i(e.template, t, p.isTemplateLiteral)) + }, e[213] = function(e, t, r, n, i, a) { + return r.factory.updateTypeAssertion(e, i(e.type, t, p.isTypeNode), i(e.expression, t, p.isExpression)) + }, e[214] = function(e, t, r, n, i, a) { + return r.factory.updateParenthesizedExpression(e, i(e.expression, t, p.isExpression)) + }, e[215] = function(e, t, r, n, i, a) { + return r.factory.updateFunctionExpression(e, n(e.modifiers, t, p.isModifier), i(e.asteriskToken, a, p.isAsteriskToken), i(e.name, t, p.isIdentifier), n(e.typeParameters, t, p.isTypeParameterDeclaration), u(e.parameters, t, r, n), i(e.type, t, p.isTypeNode), _(e.body, t, r, i)) + }, e[216] = function(e, t, r, n, i, a) { + return r.factory.updateArrowFunction(e, n(e.modifiers, t, p.isModifier), n(e.typeParameters, t, p.isTypeParameterDeclaration), u(e.parameters, t, r, n), i(e.type, t, p.isTypeNode), i(e.equalsGreaterThanToken, a, p.isEqualsGreaterThanToken), _(e.body, t, r, i)) + }, e[217] = function(e, t, r, n, i, a) { + return r.factory.updateDeleteExpression(e, i(e.expression, t, p.isExpression)) + }, e[218] = function(e, t, r, n, i, a) { + return r.factory.updateTypeOfExpression(e, i(e.expression, t, p.isExpression)) + }, e[219] = function(e, t, r, n, i, a) { + return r.factory.updateVoidExpression(e, i(e.expression, t, p.isExpression)) + }, e[220] = function(e, t, r, n, i, a) { + return r.factory.updateAwaitExpression(e, i(e.expression, t, p.isExpression)) + }, e[221] = function(e, t, r, n, i, a) { + return r.factory.updatePrefixUnaryExpression(e, i(e.operand, t, p.isExpression)) + }, e[222] = function(e, t, r, n, i, a) { + return r.factory.updatePostfixUnaryExpression(e, i(e.operand, t, p.isExpression)) + }, e[223] = function(e, t, r, n, i, a) { + return r.factory.updateBinaryExpression(e, i(e.left, t, p.isExpression), i(e.operatorToken, a, p.isBinaryOperatorToken), i(e.right, t, p.isExpression)) + }, e[224] = function(e, t, r, n, i, a) { + return r.factory.updateConditionalExpression(e, i(e.condition, t, p.isExpression), i(e.questionToken, a, p.isQuestionToken), i(e.whenTrue, t, p.isExpression), i(e.colonToken, a, p.isColonToken), i(e.whenFalse, t, p.isExpression)) + }, e[225] = function(e, t, r, n, i, a) { + return r.factory.updateTemplateExpression(e, i(e.head, t, p.isTemplateHead), n(e.templateSpans, t, p.isTemplateSpan)) + }, e[226] = function(e, t, r, n, i, a) { + return r.factory.updateYieldExpression(e, i(e.asteriskToken, a, p.isAsteriskToken), i(e.expression, t, p.isExpression)) + }, e[227] = function(e, t, r, n, i, a) { + return r.factory.updateSpreadElement(e, i(e.expression, t, p.isExpression)) + }, e[228] = function(e, t, r, n, i, a) { + return r.factory.updateClassExpression(e, n(e.modifiers, t, p.isModifierLike), i(e.name, t, p.isIdentifier), n(e.typeParameters, t, p.isTypeParameterDeclaration), n(e.heritageClauses, t, p.isHeritageClause), n(e.members, t, p.isClassElement)) + }, e[230] = function(e, t, r, n, i, a) { + return r.factory.updateExpressionWithTypeArguments(e, i(e.expression, t, p.isExpression), n(e.typeArguments, t, p.isTypeNode)) + }, e[231] = function(e, t, r, n, i, a) { + return r.factory.updateAsExpression(e, i(e.expression, t, p.isExpression), i(e.type, t, p.isTypeNode)) + }, e[235] = function(e, t, r, n, i, a) { + return r.factory.updateSatisfiesExpression(e, i(e.expression, t, p.isExpression), i(e.type, t, p.isTypeNode)) + }, e[232] = function(e, t, r, n, i, a) { + return p.isOptionalChain(e) ? r.factory.updateNonNullChain(e, i(e.expression, t, p.isExpression)) : r.factory.updateNonNullExpression(e, i(e.expression, t, p.isExpression)) + }, e[233] = function(e, t, r, n, i, a) { + return r.factory.updateMetaProperty(e, i(e.name, t, p.isIdentifier)) + }, e[236] = function(e, t, r, n, i, a) { + return r.factory.updateTemplateSpan(e, i(e.expression, t, p.isExpression), i(e.literal, t, p.isTemplateMiddleOrTemplateTail)) + }, e[238] = function(e, t, r, n, i, a) { + return r.factory.updateBlock(e, n(e.statements, t, p.isStatement)) + }, e[240] = function(e, t, r, n, i, a) { + return r.factory.updateVariableStatement(e, n(e.modifiers, t, p.isModifier), i(e.declarationList, t, p.isVariableDeclarationList)) + }, e[241] = function(e, t, r, n, i, a) { + return r.factory.updateExpressionStatement(e, i(e.expression, t, p.isExpression)) + }, e[242] = function(e, t, r, n, i, a) { + return r.factory.updateIfStatement(e, i(e.expression, t, p.isExpression), i(e.thenStatement, t, p.isStatement, r.factory.liftToBlock), i(e.elseStatement, t, p.isStatement, r.factory.liftToBlock)) + }, e[243] = function(e, t, r, n, i, a) { + return r.factory.updateDoStatement(e, d(e.statement, t, r, i), i(e.expression, t, p.isExpression)) + }, e[244] = function(e, t, r, n, i, a) { + return r.factory.updateWhileStatement(e, i(e.expression, t, p.isExpression), d(e.statement, t, r, i)) + }, e[245] = function(e, t, r, n, i, a) { + return r.factory.updateForStatement(e, i(e.initializer, t, p.isForInitializer), i(e.condition, t, p.isExpression), i(e.incrementor, t, p.isExpression), d(e.statement, t, r, i)) + }, e[246] = function(e, t, r, n, i, a) { + return r.factory.updateForInStatement(e, i(e.initializer, t, p.isForInitializer), i(e.expression, t, p.isExpression), d(e.statement, t, r, i)) + }, e[247] = function(e, t, r, n, i, a) { + return r.factory.updateForOfStatement(e, i(e.awaitModifier, a, p.isAwaitKeyword), i(e.initializer, t, p.isForInitializer), i(e.expression, t, p.isExpression), d(e.statement, t, r, i)) + }, e[248] = function(e, t, r, n, i, a) { + return r.factory.updateContinueStatement(e, i(e.label, t, p.isIdentifier)) + }, e[249] = function(e, t, r, n, i, a) { + return r.factory.updateBreakStatement(e, i(e.label, t, p.isIdentifier)) + }, e[250] = function(e, t, r, n, i, a) { + return r.factory.updateReturnStatement(e, i(e.expression, t, p.isExpression)) + }, e[251] = function(e, t, r, n, i, a) { + return r.factory.updateWithStatement(e, i(e.expression, t, p.isExpression), i(e.statement, t, p.isStatement, r.factory.liftToBlock)) + }, e[252] = function(e, t, r, n, i, a) { + return r.factory.updateSwitchStatement(e, i(e.expression, t, p.isExpression), i(e.caseBlock, t, p.isCaseBlock)) + }, e[253] = function(e, t, r, n, i, a) { + return r.factory.updateLabeledStatement(e, i(e.label, t, p.isIdentifier), i(e.statement, t, p.isStatement, r.factory.liftToBlock)) + }, e[254] = function(e, t, r, n, i, a) { + return r.factory.updateThrowStatement(e, i(e.expression, t, p.isExpression)) + }, e[255] = function(e, t, r, n, i, a) { + return r.factory.updateTryStatement(e, i(e.tryBlock, t, p.isBlock), i(e.catchClause, t, p.isCatchClause), i(e.finallyBlock, t, p.isBlock)) + }, e[257] = function(e, t, r, n, i, a) { + return r.factory.updateVariableDeclaration(e, i(e.name, t, p.isBindingName), i(e.exclamationToken, a, p.isExclamationToken), i(e.type, t, p.isTypeNode), i(e.initializer, t, p.isExpression)) + }, e[258] = function(e, t, r, n, i, a) { + return r.factory.updateVariableDeclarationList(e, n(e.declarations, t, p.isVariableDeclaration)) + }, e[259] = function(e, t, r, n, i, a) { + return r.factory.updateFunctionDeclaration(e, n(e.modifiers, t, p.isModifier), i(e.asteriskToken, a, p.isAsteriskToken), i(e.name, t, p.isIdentifier), n(e.typeParameters, t, p.isTypeParameterDeclaration), u(e.parameters, t, r, n), i(e.type, t, p.isTypeNode), _(e.body, t, r, i)) + }, e[260] = function(e, t, r, n, i, a) { + return r.factory.updateClassDeclaration(e, n(e.modifiers, t, p.isModifierLike), i(e.name, t, p.isIdentifier), n(e.typeParameters, t, p.isTypeParameterDeclaration), n(e.heritageClauses, t, p.isHeritageClause), n(e.members, t, p.isClassElement)) + }, e[261] = function(e, t, r, n, i, a) { + return r.factory.updateInterfaceDeclaration(e, n(e.modifiers, t, p.isModifier), i(e.name, t, p.isIdentifier), n(e.typeParameters, t, p.isTypeParameterDeclaration), n(e.heritageClauses, t, p.isHeritageClause), n(e.members, t, p.isTypeElement)) + }, e[262] = function(e, t, r, n, i, a) { + return r.factory.updateTypeAliasDeclaration(e, n(e.modifiers, t, p.isModifier), i(e.name, t, p.isIdentifier), n(e.typeParameters, t, p.isTypeParameterDeclaration), i(e.type, t, p.isTypeNode)) + }, e[263] = function(e, t, r, n, i, a) { + return r.factory.updateEnumDeclaration(e, n(e.modifiers, t, p.isModifier), i(e.name, t, p.isIdentifier), n(e.members, t, p.isEnumMember)) + }, e[264] = function(e, t, r, n, i, a) { + return r.factory.updateModuleDeclaration(e, n(e.modifiers, t, p.isModifier), i(e.name, t, p.isModuleName), i(e.body, t, p.isModuleBody)) + }, e[265] = function(e, t, r, n, i, a) { + return r.factory.updateModuleBlock(e, n(e.statements, t, p.isStatement)) + }, e[266] = function(e, t, r, n, i, a) { + return r.factory.updateCaseBlock(e, n(e.clauses, t, p.isCaseOrDefaultClause)) + }, e[267] = function(e, t, r, n, i, a) { + return r.factory.updateNamespaceExportDeclaration(e, i(e.name, t, p.isIdentifier)) + }, e[268] = function(e, t, r, n, i, a) { + return r.factory.updateImportEqualsDeclaration(e, n(e.modifiers, t, p.isModifier), e.isTypeOnly, i(e.name, t, p.isIdentifier), i(e.moduleReference, t, p.isModuleReference)) + }, e[269] = function(e, t, r, n, i, a) { + return r.factory.updateImportDeclaration(e, n(e.modifiers, t, p.isModifier), i(e.importClause, t, p.isImportClause), i(e.moduleSpecifier, t, p.isExpression), i(e.assertClause, t, p.isAssertClause)) + }, e[296] = function(e, t, r, n, i, a) { + return r.factory.updateAssertClause(e, n(e.elements, t, p.isAssertEntry), e.multiLine) + }, e[297] = function(e, t, r, n, i, a) { + return r.factory.updateAssertEntry(e, i(e.name, t, p.isAssertionKey), i(e.value, t, p.isExpression)) + }, e[270] = function(e, t, r, n, i, a) { + return r.factory.updateImportClause(e, e.isTypeOnly, i(e.name, t, p.isIdentifier), i(e.namedBindings, t, p.isNamedImportBindings)) + }, e[271] = function(e, t, r, n, i, a) { + return r.factory.updateNamespaceImport(e, i(e.name, t, p.isIdentifier)) + }, e[277] = function(e, t, r, n, i, a) { + return r.factory.updateNamespaceExport(e, i(e.name, t, p.isIdentifier)) + }, e[272] = function(e, t, r, n, i, a) { + return r.factory.updateNamedImports(e, n(e.elements, t, p.isImportSpecifier)) + }, e[273] = function(e, t, r, n, i, a) { + return r.factory.updateImportSpecifier(e, e.isTypeOnly, i(e.propertyName, t, p.isIdentifier), i(e.name, t, p.isIdentifier)) + }, e[274] = function(e, t, r, n, i, a) { + return r.factory.updateExportAssignment(e, n(e.modifiers, t, p.isModifier), i(e.expression, t, p.isExpression)) + }, e[275] = function(e, t, r, n, i, a) { + return r.factory.updateExportDeclaration(e, n(e.modifiers, t, p.isModifier), e.isTypeOnly, i(e.exportClause, t, p.isNamedExportBindings), i(e.moduleSpecifier, t, p.isExpression), i(e.assertClause, t, p.isAssertClause)) + }, e[276] = function(e, t, r, n, i, a) { + return r.factory.updateNamedExports(e, n(e.elements, t, p.isExportSpecifier)) + }, e[278] = function(e, t, r, n, i, a) { + return r.factory.updateExportSpecifier(e, e.isTypeOnly, i(e.propertyName, t, p.isIdentifier), i(e.name, t, p.isIdentifier)) + }, e[280] = function(e, t, r, n, i, a) { + return r.factory.updateExternalModuleReference(e, i(e.expression, t, p.isExpression)) + }, e[281] = function(e, t, r, n, i, a) { + return r.factory.updateJsxElement(e, i(e.openingElement, t, p.isJsxOpeningElement), n(e.children, t, p.isJsxChild), i(e.closingElement, t, p.isJsxClosingElement)) + }, e[282] = function(e, t, r, n, i, a) { + return r.factory.updateJsxSelfClosingElement(e, i(e.tagName, t, p.isJsxTagNameExpression), n(e.typeArguments, t, p.isTypeNode), i(e.attributes, t, p.isJsxAttributes)) + }, e[283] = function(e, t, r, n, i, a) { + return r.factory.updateJsxOpeningElement(e, i(e.tagName, t, p.isJsxTagNameExpression), n(e.typeArguments, t, p.isTypeNode), i(e.attributes, t, p.isJsxAttributes)) + }, e[284] = function(e, t, r, n, i, a) { + return r.factory.updateJsxClosingElement(e, i(e.tagName, t, p.isJsxTagNameExpression)) + }, e[285] = function(e, t, r, n, i, a) { + return r.factory.updateJsxFragment(e, i(e.openingFragment, t, p.isJsxOpeningFragment), n(e.children, t, p.isJsxChild), i(e.closingFragment, t, p.isJsxClosingFragment)) + }, e[288] = function(e, t, r, n, i, a) { + return r.factory.updateJsxAttribute(e, i(e.name, t, p.isIdentifier), i(e.initializer, t, p.isStringLiteralOrJsxExpression)) + }, e[289] = function(e, t, r, n, i, a) { + return r.factory.updateJsxAttributes(e, n(e.properties, t, p.isJsxAttributeLike)) + }, e[290] = function(e, t, r, n, i, a) { + return r.factory.updateJsxSpreadAttribute(e, i(e.expression, t, p.isExpression)) + }, e[291] = function(e, t, r, n, i, a) { + return r.factory.updateJsxExpression(e, i(e.expression, t, p.isExpression)) + }, e[292] = function(e, t, r, n, i, a) { + return r.factory.updateCaseClause(e, i(e.expression, t, p.isExpression), n(e.statements, t, p.isStatement)) + }, e[293] = function(e, t, r, n, i, a) { + return r.factory.updateDefaultClause(e, n(e.statements, t, p.isStatement)) + }, e[294] = function(e, t, r, n, i, a) { + return r.factory.updateHeritageClause(e, n(e.types, t, p.isExpressionWithTypeArguments)) + }, e[295] = function(e, t, r, n, i, a) { + return r.factory.updateCatchClause(e, i(e.variableDeclaration, t, p.isVariableDeclaration), i(e.block, t, p.isBlock)) + }, e[299] = function(e, t, r, n, i, a) { + return r.factory.updatePropertyAssignment(e, i(e.name, t, p.isPropertyName), i(e.initializer, t, p.isExpression)) + }, e[300] = function(e, t, r, n, i, a) { + return r.factory.updateShorthandPropertyAssignment(e, i(e.name, t, p.isIdentifier), i(e.objectAssignmentInitializer, t, p.isExpression)) + }, e[301] = function(e, t, r, n, i, a) { + return r.factory.updateSpreadAssignment(e, i(e.expression, t, p.isExpression)) + }, e[302] = function(e, t, r, n, i, a) { + return r.factory.updateEnumMember(e, i(e.name, t, p.isPropertyName), i(e.initializer, t, p.isExpression)) + }, e[308] = function(e, t, r, n, i, a) { + return r.factory.updateSourceFile(e, o(e.statements, t, r)) + }, e[353] = function(e, t, r, n, i, a) { + return r.factory.updatePartiallyEmittedExpression(e, i(e.expression, t, p.isExpression)) + }, e[354] = function(e, t, r, n, i, a) { + return r.factory.updateCommaListExpression(e, n(e.elements, t, p.isExpression)) + }; + var f = e; + + function i(e) { + return p.Debug.assert(e.length <= 1, "Too many nodes written to output."), p.singleOrUndefined(e) + } + }(ts = ts || {}), ! function(J) { + J.createSourceMapGenerator = function(n, L, R, B, e) { + var r, i, y = (e = e.extendedDiagnostics ? J.performance.createTimer("Source Map", "beforeSourcemap", "afterSourcemap") : J.performance.nullTimer).enter, + h = e.exit, + a = [], + o = [], + s = new J.Map, + c = [], + t = [], + l = "", + u = 0, + _ = 0, + d = 0, + p = 0, + f = 0, + g = 0, + m = !1, + v = 0, + b = 0, + x = 0, + D = 0, + S = 0, + T = 0, + C = !1, + E = !1, + k = !1; + return { + getSources: function() { + return a + }, + addSource: N, + setSourceContent: A, + addName: F, + addMapping: P, + appendSourceMap: function(e, t, r, n, i, a) { + J.Debug.assert(v <= e, "generatedLine cannot backtrack"), J.Debug.assert(0 <= t, "generatedCharacter cannot be negative"), y(); + for (var o, s = [], c = z(r.mappings), l = c.next(); !l.done; l = c.next()) { + var u, _, d, p, f, g, m = l.value; + if (a && (m.generatedLine > a.line || m.generatedLine === a.line && m.generatedCharacter > a.character)) break; + i && (m.generatedLine < i.line || i.line === m.generatedLine && m.generatedCharacter < i.character) || ((p = d = _ = u = void 0) !== m.sourceIndex && (void 0 === (u = s[m.sourceIndex]) && (f = r.sources[m.sourceIndex], f = r.sourceRoot ? J.combinePaths(r.sourceRoot, f) : f, f = J.combinePaths(J.getDirectoryPath(n), f), s[m.sourceIndex] = u = N(f), r.sourcesContent) && "string" == typeof r.sourcesContent[m.sourceIndex] && A(u, r.sourcesContent[m.sourceIndex]), _ = m.sourceLine, d = m.sourceCharacter, r.names) && void 0 !== m.nameIndex && void 0 === (p = (o = o || [])[m.nameIndex]) && (o[m.nameIndex] = p = F(r.names[m.nameIndex])), f = m.generatedLine - (i ? i.line : 0), g = f + e, m = i && i.line === m.generatedLine ? m.generatedCharacter - i.character : m.generatedCharacter, P(g, 0 == f ? m + t : m, u, _, d, p)) + } + h() + }, + toJSON: j, + toString: function() { + return JSON.stringify(j()) + } + }; + + function N(e) { + y(); + var t = J.getRelativePathToDirectoryOrUrl(B, e, n.getCurrentDirectory(), n.getCanonicalFileName, !0), + r = s.get(t); + return void 0 === r && (r = o.length, o.push(t), a.push(e), s.set(t, r)), h(), r + } + + function A(e, t) { + if (y(), null !== t) { + for (r = r || []; r.length < e;) r.push(null); + r[e] = t + } + h() + } + + function F(e) { + y(); + var t = (i = i || new J.Map).get(e); + return void 0 === t && (t = c.length, c.push(e), i.set(e, t)), h(), t + } + + function P(e, t, r, n, i, a) { + var o, s, c; + J.Debug.assert(v <= e, "generatedLine cannot backtrack"), J.Debug.assert(0 <= t, "generatedCharacter cannot be negative"), J.Debug.assert(void 0 === r || 0 <= r, "sourceIndex cannot be negative"), J.Debug.assert(void 0 === n || 0 <= n, "sourceLine cannot be negative"), J.Debug.assert(void 0 === i || 0 <= i, "sourceCharacter cannot be negative"), y(), C && v === e && b === t && (s = n, c = i, void 0 === (o = r) || void 0 === s || void 0 === c || x !== o || !(s < D || D === s && c < S)) || (I(), v = e, b = t, C = !(k = E = !1)), void 0 !== r && void 0 !== n && void 0 !== i && (x = r, D = n, S = i, E = !0, void 0 !== a) && (T = a, k = !0), h() + } + + function w(e) { + t.push(e), 1024 <= t.length && O() + } + + function I() { + if (C && (!m || u !== v || _ !== b || d !== x || p !== D || f !== S || g !== T)) { + if (y(), u < v) { + for (; w(59), ++u < v;); + _ = 0 + } else J.Debug.assertEqual(u, v, "generatedLine cannot backtrack"), m && w(44); + M(b - _), _ = b, E && (M(x - d), d = x, M(D - p), p = D, M(S - f), f = S, k) && (M(T - g), g = T), m = !0, h() + } + } + + function O() { + 0 < t.length && (l += String.fromCharCode.apply(void 0, t), t.length = 0) + } + + function j() { + return I(), O(), { + version: 3, + file: L, + sourceRoot: R, + sources: o, + names: c, + mappings: l, + sourcesContent: r + } + } + + function M(e) { + e < 0 ? e = 1 + (-e << 1) : e <<= 1; + do { + var t = 31 & e; + 0 < (e >>= 5) && (t |= 32), w(0 <= (t = t) && t < 26 ? 65 + t : 26 <= t && t < 52 ? 97 + t - 26 : 52 <= t && t < 62 ? 48 + t - 52 : 62 === t ? 43 : 63 === t ? 47 : J.Debug.fail("".concat(t, ": not a base64 value"))) + } while (0 < e) + } + }; + var i = /^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/, + a = /^\s*(\/\/[@#] .*)?$/; + + function t(e) { + return "string" == typeof e || null === e + } + + function r(e) { + return null !== e && "object" == typeof e && 3 === e.version && "string" == typeof e.file && "string" == typeof e.mappings && J.isArray(e.sources) && J.every(e.sources, J.isString) && (void 0 === e.sourceRoot || null === e.sourceRoot || "string" == typeof e.sourceRoot) && (void 0 === e.sourcesContent || null === e.sourcesContent || J.isArray(e.sourcesContent) && J.every(e.sourcesContent, t)) && (void 0 === e.names || null === e.names || J.isArray(e.names) && J.every(e.names, J.isString)) + } + + function z(i) { + var t, r = !1, + a = 0, + n = 0, + o = 0, + s = 0, + c = 0, + l = 0, + u = 0; + return {get pos() { + return a + }, + get error() { + return t + }, + get state() { + return _(!0, !0) + }, + next: function() { + for (; !r && a < i.length;) { + var e = i.charCodeAt(a); + if (59 === e) n++, o = 0; + else if (44 !== e) { + var e = !1, + t = !1; + if (o += y(), g()) return d(); + if (o < 0) return f("Invalid generatedCharacter found"); + if (!m()) { + if (e = !0, s += y(), g()) return d(); + if (s < 0) return f("Invalid sourceIndex found"); + if (m()) return f("Unsupported Format: No entries after sourceIndex"); + if (c += y(), g()) return d(); + if (c < 0) return f("Invalid sourceLine found"); + if (m()) return f("Unsupported Format: No entries after sourceLine"); + if (l += y(), g()) return d(); + if (l < 0) return f("Invalid sourceCharacter found"); + if (!m()) { + if (t = !0, u += y(), g()) return d(); + if (u < 0) return f("Invalid nameIndex found"); + if (!m()) return f("Unsupported Error Format: Entries after nameIndex") + } + } + return { + value: _(e, t), + done: r + } + } + a++ + } + return d() + } + }; + + function _(e, t) { + return { + generatedLine: n, + generatedCharacter: o, + sourceIndex: e ? s : void 0, + sourceLine: e ? c : void 0, + sourceCharacter: e ? l : void 0, + nameIndex: t ? u : void 0 + } + } + + function d() { + return { + value: void 0, + done: r = !0 + } + } + + function p(e) { + void 0 === t && (t = e) + } + + function f(e) { + return p(e), d() + } + + function g() { + return void 0 !== t + } + + function m() { + return a === i.length || 44 === i.charCodeAt(a) || 59 === i.charCodeAt(a) + } + + function y() { + for (var e = !0, t = 0, r = 0; e; a++) { + if (a >= i.length) return p("Error in decoding base64VLQFormatDecode, past the mapping string"), -1; + var n = 65 <= (n = i.charCodeAt(a)) && n <= 90 ? n - 65 : 97 <= n && n <= 122 ? n - 97 + 26 : 48 <= n && n <= 57 ? n - 48 + 52 : 43 === n ? 62 : 47 === n ? 63 : -1; + if (-1 == n) return p("Invalid character in VLQ"), -1; + e = 0 != (32 & n), r |= (31 & n) << t, t += 5 + } + return 0 == (1 & r) ? r >>= 1 : r = -(r >>= 1), r + } + } + + function p(e) { + return void 0 !== e.sourceIndex && void 0 !== e.sourceLine && void 0 !== e.sourceCharacter + } + + function f(e) { + return void 0 !== e.sourceIndex && void 0 !== e.sourcePosition + } + + function g(e, t) { + return e.generatedPosition === t.generatedPosition && e.sourceIndex === t.sourceIndex && e.sourcePosition === t.sourcePosition + } + + function m(e, t) { + return J.Debug.assert(e.sourceIndex === t.sourceIndex), J.compareValues(e.sourcePosition, t.sourcePosition) + } + + function y(e, t) { + return J.compareValues(e.generatedPosition, t.generatedPosition) + } + + function h(e) { + return e.sourcePosition + } + + function v(e) { + return e.generatedPosition + } + J.getLineInfo = function(t, r) { + return { + getLineCount: function() { + return r.length + }, + getLineText: function(e) { + return t.substring(r[e], r[e + 1]) + } + } + }, J.tryGetSourceMappingURL = function(e) { + for (var t = e.getLineCount() - 1; 0 <= t; t--) { + var r = e.getLineText(t), + n = i.exec(r); + if (n) return J.trimStringEnd(n[1]); + if (!r.match(a)) break + } + }, J.isRawSourceMap = r, J.tryParseRawSourceMap = function(e) { + try { + var t = JSON.parse(e); + if (r(t)) return t + } catch (e) {} + }, J.decodeMappings = z, J.sameMapping = function(e, t) { + return e === t || e.generatedLine === t.generatedLine && e.generatedCharacter === t.generatedCharacter && e.sourceIndex === t.sourceIndex && e.sourceLine === t.sourceLine && e.sourceCharacter === t.sourceCharacter && e.nameIndex === t.nameIndex + }, J.isSourceMapping = p, J.createDocumentPositionMapper = function(i, a, e) { + var r, o, s, e = J.getDirectoryPath(e), + t = a.sourceRoot ? J.getNormalizedAbsolutePath(a.sourceRoot, e) : e, + c = J.getNormalizedAbsolutePath(a.file, e), + l = i.getSourceFileLike(c), + u = a.sources.map(function(e) { + return J.getNormalizedAbsolutePath(e, t) + }), + _ = new J.Map(u.map(function(e, t) { + return [i.getCanonicalFileName(e), t] + })); + return { + getSourcePosition: function(e) { + var t = function() { + if (void 0 === o) { + for (var e = [], t = 0, r = d(); t < r.length; t++) { + var n = r[t]; + e.push(n) + } + o = J.sortAndDeduplicate(e, y, g) + } + return o + }(); + if (!J.some(t)) return e; + var r = J.binarySearchKey(t, e.pos, v, J.compareValues); + r < 0 && (r = ~r); + t = t[r]; + return void 0 !== t && f(t) ? { + fileName: u[t.sourceIndex], + pos: t.sourcePosition + } : e + }, + getGeneratedPosition: function(e) { + var t = _.get(i.getCanonicalFileName(e.fileName)); + if (void 0 === t) return e; + var r = function(e) { + if (void 0 === s) { + for (var t = [], r = 0, n = d(); r < n.length; r++) { + var i, a = n[r]; + f(a) && ((i = t[a.sourceIndex]) || (t[a.sourceIndex] = i = []), i.push(a)) + } + s = t.map(function(e) { + return J.sortAndDeduplicate(e, m, g) + }) + } + return s[e] + }(t); + if (!J.some(r)) return e; + var n = J.binarySearchKey(r, e.pos, h, J.compareValues); + n < 0 && (n = ~n); + r = r[n]; + return void 0 !== r && r.sourceIndex === t ? { + fileName: c, + pos: r.generatedPosition + } : e + } + }; + + function n(e) { + var t, r, n = void 0 !== l ? J.getPositionOfLineAndCharacter(l, e.generatedLine, e.generatedCharacter, !0) : -1; + return p(e) && (r = i.getSourceFileLike(u[e.sourceIndex]), t = a.sources[e.sourceIndex], r = void 0 !== r ? J.getPositionOfLineAndCharacter(r, e.sourceLine, e.sourceCharacter, !0) : -1), { + generatedPosition: n, + source: t, + sourceIndex: e.sourceIndex, + sourcePosition: r, + nameIndex: e.nameIndex + } + } + + function d() { + var e, t; + return void 0 === r && (e = z(a.mappings), t = J.arrayFrom(e, n), r = void 0 !== e.error ? (i.log && i.log("Encountered error while decoding sourcemap: ".concat(e.error)), J.emptyArray) : t), r + } + }, J.identitySourceMapConsumer = { + getSourcePosition: J.identity, + getGeneratedPosition: J.identity + } + }(ts = ts || {}), ! function(x) { + function D(e) { + return (e = x.getOriginalNode(e)) ? x.getNodeId(e) : 0 + } + + function a(e) { + return void 0 !== e.propertyName && "default" === e.propertyName.escapedText + } + + function S(e) { + if (x.getNamespaceDeclarationNode(e)) return !0; + var t = e.importClause && e.importClause.namedBindings; + if (!t) return !1; + if (!x.isNamedImports(t)) return !1; + for (var r = 0, n = 0, i = t.elements; n < i.length; n++) a(i[n]) && r++; + return 0 < r && r !== t.elements.length || !!(t.elements.length - r) && x.isDefaultImport(e) + } + + function T(e) { + return !S(e) && (x.isDefaultImport(e) || !!e.importClause && x.isNamedImports(e.importClause.namedBindings) && !!(e = e.importClause.namedBindings) && !!x.isNamedImports(e) && x.some(e.elements, a)) + } + + function C(e, t, r) { + var n = e[t]; + n ? n.push(r) : e[t] = n = [r] + } + + function t(e) { + return x.isStringLiteralLike(e) || 8 === e.kind || x.isKeyword(e.kind) || x.isIdentifier(e) + } + + function n(e) { + if (x.isExpressionStatement(e)) return e = x.skipParentheses(e.expression), x.isSuperCall(e) ? e : void 0 + } + + function r(e) { + return t = e, x.isPropertyDeclaration(t) && x.hasStaticModifier(t) || x.isClassStaticBlockDeclaration(e); + var t + } + + function s(e) { + var t; + if (e) + for (var r = e.parameters, e = 0 < r.length && x.parameterIsThisKeyword(r[0]), n = e ? 1 : 0, i = e ? r.length - 1 : r.length, a = 0; a < i; a++) { + var o = r[a + n]; + (t || x.hasDecorators(o)) && ((t = t || new Array(i))[a] = x.getDecorators(o)) + } + return t + } + x.getOriginalNodeId = D, x.chainBundle = function(t, r) { + return function(e) { + return (308 === e.kind ? r : function(e) { + return t.factory.createBundle(x.map(e.sourceFiles, r), e.prepends) + })(e) + } + }, x.getExportNeedsImportStarHelper = function(e) { + return !!x.getNamespaceDeclarationNode(e) + }, x.getImportNeedsImportStarHelper = S, x.getImportNeedsImportDefaultHelper = T, x.collectExternalModuleInfo = function(e, t, a, r) { + for (var n, i = [], o = x.createMultiMap(), s = [], c = new x.Map, l = !1, u = !1, _ = !1, d = !1, p = 0, f = t.statements; p < f.length; p++) { + var g, m = f[p]; + switch (m.kind) { + case 269: + i.push(m), !_ && S(m) && (_ = !0), !d && T(m) && (d = !0); + break; + case 268: + 280 === m.moduleReference.kind && i.push(m); + break; + case 275: + m.moduleSpecifier ? m.exportClause ? (i.push(m), x.isNamedExports(m.exportClause) ? b(m) : (g = m.exportClause.name, c.get(x.idText(g)) || (C(s, D(m), g), c.set(x.idText(g), !0), v = x.append(v, g)), _ = !0)) : (i.push(m), u = !0) : b(m); + break; + case 274: + m.isExportEquals && !n && (n = m); + break; + case 240: + if (x.hasSyntacticModifier(m, 1)) + for (var y = 0, h = m.declarationList.declarations; y < h.length; y++) var v = function e(t, r, n) { + if (x.isBindingPattern(t.name)) + for (var i = 0, a = t.name.elements; i < a.length; i++) { + var o = a[i]; + x.isOmittedExpression(o) || (n = e(o, r, n)) + } else { + var s; + x.isGeneratedIdentifier(t.name) || (s = x.idText(t.name), r.get(s)) || (r.set(s, !0), n = x.append(n, t.name)) + } + return n + }(h[y], c, v); + break; + case 259: + x.hasSyntacticModifier(m, 1) && (x.hasSyntacticModifier(m, 1024) ? l || (C(s, D(m), e.factory.getDeclarationName(m)), l = !0) : (g = m.name, c.get(x.idText(g)) || (C(s, D(m), g), c.set(x.idText(g), !0), v = x.append(v, g)))); + break; + case 260: + x.hasSyntacticModifier(m, 1) && (x.hasSyntacticModifier(m, 1024) ? l || (C(s, D(m), e.factory.getDeclarationName(m)), l = !0) : (g = m.name) && !c.get(x.idText(g)) && (C(s, D(m), g), c.set(x.idText(g), !0), v = x.append(v, g))) + } + } + return (t = x.createExternalHelpersImportDeclarationIfNeeded(e.factory, e.getEmitHelperFactory(), t, r, u, _, d)) && i.unshift(t), { + externalImports: i, + exportSpecifiers: o, + exportEquals: n, + hasExportStarsToExportValues: u, + exportedBindings: s, + exportedNames: v, + externalHelpersImportDeclaration: t + }; + + function b(e) { + for (var t = 0, r = x.cast(e.exportClause, x.isNamedExports).elements; t < r.length; t++) { + var n, i = r[t]; + c.get(x.idText(i.name)) || (n = i.propertyName || i.name, e.moduleSpecifier || o.add(x.idText(n), i), (n = a.getReferencedImportDeclaration(n) || a.getReferencedValueDeclaration(n)) && C(s, D(n), i.name), c.set(x.idText(i.name), !0), v = x.append(v, i.name)) + } + } + }, x.isSimpleCopiableExpression = t, x.isSimpleInlineableExpression = function(e) { + return !x.isIdentifier(e) && t(e) + }, x.isCompoundAssignment = function(e) { + return 64 <= e && e <= 78 + }, x.getNonAssignmentOperatorForCompoundAssignment = function(e) { + switch (e) { + case 64: + return 39; + case 65: + return 40; + case 66: + return 41; + case 67: + return 42; + case 68: + return 43; + case 69: + return 44; + case 70: + return 47; + case 71: + return 48; + case 72: + return 49; + case 73: + return 50; + case 74: + return 51; + case 78: + return 52; + case 75: + return 56; + case 76: + return 55; + case 77: + return 60 + } + }, x.getSuperCallFromStatement = n, x.findSuperStatementIndex = function(e, t) { + for (var r = t; r < e.length; r += 1) + if (n(e[r])) return r; + return -1 + }, x.getProperties = function(e, n, i) { + return x.filter(e.members, function(e) { + return e = e, t = n, r = i, x.isPropertyDeclaration(e) && (!!e.initializer || !t) && x.hasStaticModifier(e) === r; + var t, r + }) + }, x.getStaticPropertiesAndClassStaticBlock = function(e) { + return x.filter(e.members, r) + }, x.isInitializedProperty = function(e) { + return 169 === e.kind && void 0 !== e.initializer + }, x.isNonStaticMethodOrAccessorWithPrivateName = function(e) { + return !x.isStatic(e) && (x.isMethodOrAccessor(e) || x.isAutoAccessorPropertyDeclaration(e)) && x.isPrivateIdentifier(e.name) + }, x.getAllDecoratorsOfClass = function(e) { + var t = x.getDecorators(e), + e = s(x.getFirstConstructorWithBody(e)); + if (x.some(t) || x.some(e)) return { + decorators: t, + parameters: e + } + }, x.getAllDecoratorsOfClassElement = function(e, t) { + switch (e.kind) { + case 174: + case 175: + var r, n = e, + i = t; + return n.body ? (o = (i = x.getAllAccessorDeclarations(i.members, n)).firstAccessor, a = i.secondAccessor, r = i.getAccessor, i = i.setAccessor, (o = x.hasDecorators(o) ? o : a && x.hasDecorators(a) ? a : void 0) && n === o && (a = x.getDecorators(o), n = s(i), x.some(a) || x.some(n)) ? { + decorators: a, + parameters: n, + getDecorators: r && x.getDecorators(r), + setDecorators: i && x.getDecorators(i) + } : void 0) : void 0; + case 171: + var a, o = e; + return o.body ? (a = x.getDecorators(o), o = s(o), x.some(a) || x.some(o) ? { + decorators: a, + parameters: o + } : void 0) : void 0; + case 169: + n = e; + return n = x.getDecorators(n), x.some(n) ? { + decorators: n + } : void 0; + default: + return + } + } + }(ts = ts || {}), ! function(M) { + var e; + + function h(e, t) { + e = M.getTargetOfBindingOrAssignmentElement(e); + if (!M.isBindingOrAssignmentPattern(e)) return M.isIdentifier(e) && e.escapedText === t; + for (var r = t, e = M.getElementsOfBindingOrAssignmentPattern(e), n = 0, i = e; n < i.length; n++) + if (h(i[n], r)) return 1 + } + + function v(e) { + var t = M.tryGetPropertyNameOfBindingOrAssignmentElement(e); + return !(!t || !M.isComputedPropertyName(t) || M.isLiteralExpression(t.expression)) || !!(t = M.getTargetOfBindingOrAssignmentElement(e)) && M.isBindingOrAssignmentPattern(t) && !!M.forEach(M.getElementsOfBindingOrAssignmentPattern(t), v) + } + + function L(e, t, r, n, i) { + var a = M.getTargetOfBindingOrAssignmentElement(t); + if (i || ((i = M.visitNode(M.getInitializerOfBindingOrAssignmentElement(t), e.visitor, M.isExpression)) ? r ? (D = i, S = B(l = e, S = r, !0, n), r = l.context.factory.createConditionalExpression(l.context.factory.createTypeCheck(S, "undefined"), void 0, D, void 0, S), !M.isSimpleInlineableExpression(i) && M.isBindingOrAssignmentPattern(a) && (r = B(e, r, !0, n))) : r = i : r = r || e.context.factory.createVoidZero()), M.isObjectBindingOrAssignmentPattern(a)) { + var o, s, c = e, + l = t, + u = a, + _ = r, + d = n, + p = M.getElementsOfBindingOrAssignmentPattern(u), + f = p.length; + 1 !== f && (l = !M.isDeclarationBindingElement(l) || 0 !== f, _ = B(c, _, l, d)); + for (var g = 0; g < f; g++) { + var m, y, h = p[g]; + M.getRestIndicatorOfBindingOrAssignmentElement(h) ? g === f - 1 && (o && (c.emitBindingOrAssignment(c.createObjectBindingOrAssignmentPattern(o), _, d, u), o = void 0), y = c.context.getEmitHelperFactory().createRestHelper(_, p, s, u), L(c, h, y, h)) : (m = M.getPropertyNameOfBindingOrAssignmentElement(h), !(1 <= c.level) || 98304 & h.transformFlags || 98304 & M.getTargetOfBindingOrAssignmentElement(h).transformFlags || M.isComputedPropertyName(m) ? (o && (c.emitBindingOrAssignment(c.createObjectBindingOrAssignmentPattern(o), _, d, u), o = void 0), y = function(e, t, r) { + { + var n; + return M.isComputedPropertyName(r) ? (n = B(e, M.visitNode(r.expression, e.visitor), !1, r), e.context.factory.createElementAccessExpression(t, n)) : M.isStringOrNumericLiteralLike(r) ? (n = M.factory.cloneNode(r), e.context.factory.createElementAccessExpression(t, n)) : (n = e.context.factory.createIdentifier(M.idText(r)), e.context.factory.createPropertyAccessExpression(t, n)) + } + }(c, _, m), M.isComputedPropertyName(m) && (s = M.append(s, y.argumentExpression)), L(c, h, y, h)) : o = M.append(o, M.visitNode(h, c.visitor))) + } + o && c.emitBindingOrAssignment(c.createObjectBindingOrAssignmentPattern(o), _, d, u) + } else if (M.isArrayBindingOrAssignmentPattern(a)) { + var v, b, x = e, + D = t, + S = a, + T = r, + i = n, + C = M.getElementsOfBindingOrAssignmentPattern(S), + E = C.length; + x.level < 1 && x.downlevelIteration ? T = B(x, M.setTextRange(x.context.getEmitHelperFactory().createReadHelper(T, 0 < E && M.getRestIndicatorOfBindingOrAssignmentElement(C[E - 1]) ? void 0 : E), i), !1, i) : (1 !== E && (x.level < 1 || 0 === E) || M.every(C, M.isOmittedExpression)) && (D = !M.isDeclarationBindingElement(D) || 0 !== E, T = B(x, T, D, i)); + for (var k = 0; k < E; k++) { + var N, A, F = C[k]; + 1 <= x.level ? v = 65536 & F.transformFlags || x.hasTransformedPriorElement && !R(F) ? (x.hasTransformedPriorElement = !0, N = x.context.factory.createTempVariable(void 0), x.hoistTempVariables && x.context.hoistVariableDeclaration(N), b = M.append(b, [N, F]), M.append(v, x.createArrayBindingOrAssignmentElement(N))) : M.append(v, F) : M.isOmittedExpression(F) || (M.getRestIndicatorOfBindingOrAssignmentElement(F) ? k === E - 1 && (A = x.context.factory.createArraySliceCall(T, k), L(x, F, A, F)) : (A = x.context.factory.createElementAccessExpression(T, k), L(x, F, A, F))) + } + if (v && x.emitBindingOrAssignment(x.createArrayBindingOrAssignmentPattern(v), T, i, S), b) + for (var P = 0, w = b; P < w.length; P++) { + var I = w[P], + O = I[0], + F = I[1]; + L(x, F, O, F) + } + } else e.emitBindingOrAssignment(a, r, n, t) + } + + function R(e) { + var t, r = M.getTargetOfBindingOrAssignmentElement(e); + return !(r && !M.isOmittedExpression(r)) || !((t = M.tryGetPropertyNameOfBindingOrAssignmentElement(e)) && !M.isPropertyNameLiteral(t) || (t = M.getInitializerOfBindingOrAssignmentElement(e)) && !M.isSimpleInlineableExpression(t)) && (M.isBindingOrAssignmentPattern(r) ? M.every(M.getElementsOfBindingOrAssignmentPattern(r), R) : M.isIdentifier(r)) + } + + function B(e, t, r, n) { + return M.isIdentifier(t) && r ? t : (r = e.context.factory.createTempVariable(void 0), e.hoistTempVariables ? (e.context.hoistVariableDeclaration(r), e.emitExpression(M.setTextRange(e.context.factory.createAssignment(r, t), n))) : e.emitBindingOrAssignment(r, t, n, void 0), r) + } + + function u(e) { + return e + }(e = M.FlattenLevel || (M.FlattenLevel = {}))[e.All = 0] = "All", e[e.ObjectRest = 1] = "ObjectRest", M.flattenDestructuringAssignment = function(e, i, a, t, r, o) { + var n, s, c = e; + if (M.isDestructuringAssignment(e)) + for (n = e.right; M.isEmptyArrayLiteral(e.left) || M.isEmptyObjectLiteral(e.left);) { + if (!M.isDestructuringAssignment(n)) return M.visitNode(n, i, M.isExpression); + c = e = n, n = e.right + } + if (t = { + context: a, + level: t, + downlevelIteration: !!a.getCompilerOptions().downlevelIteration, + hoistTempVariables: !0, + emitExpression: l, + emitBindingOrAssignment: function(e, t, r, n) { + M.Debug.assertNode(e, o ? M.isIdentifier : M.isExpression); + e = o ? o(e, t, r) : M.setTextRange(a.factory.createAssignment(M.visitNode(e, i, M.isExpression), t), r); + e.original = n, l(e) + }, + createArrayBindingOrAssignmentPattern: function(e) { + return (t = a.factory).createArrayLiteralExpression(M.map(e, t.converters.convertToArrayAssignmentElement)); + var t + }, + createObjectBindingOrAssignmentPattern: function(e) { + return (t = a.factory).createObjectLiteralExpression(M.map(e, t.converters.convertToObjectAssignmentElement)); + var t + }, + createArrayBindingOrAssignmentElement: u, + visitor: i + }, n && (n = M.visitNode(n, i, M.isExpression), M.isIdentifier(n) && h(e, n.escapedText) || v(e) ? n = B(t, n, !1, c) : r ? n = B(t, n, !0, c) : M.nodeIsSynthesized(e) && (c = n)), L(t, e, n, c, M.isDestructuringAssignment(e)), n && r) { + if (!M.some(s)) return n; + s.push(n) + } + return a.factory.inlineExpressions(s) || a.factory.createOmittedExpression(); + + function l(e) { + s = M.append(s, e) + } + }, M.flattenDestructuringBinding = function(e, t, i, r, n, a, o) { + void 0 === a && (a = !1); + var s, c = [], + l = [], + r = { + context: i, + level: r, + downlevelIteration: !!i.getCompilerOptions().downlevelIteration, + hoistTempVariables: a, + emitExpression: function(e) { + s = M.append(s, e) + }, + emitBindingOrAssignment: y, + createArrayBindingOrAssignmentPattern: function(e) { + return t = i.factory, e = e, M.Debug.assertEachNode(e, M.isArrayBindingElement), t.createArrayBindingPattern(e); + var t + }, + createObjectBindingOrAssignmentPattern: function(e) { + return t = i.factory, e = e, M.Debug.assertEachNode(e, M.isBindingElement), t.createObjectBindingPattern(e); + var t + }, + createArrayBindingOrAssignmentElement: function(e) { + return i.factory.createBindingElement(void 0, void 0, e) + }, + visitor: t + }; + M.isVariableDeclaration(e) && (t = M.getInitializerOfBindingOrAssignmentElement(e)) && (M.isIdentifier(t) && h(e, t.escapedText) || v(e)) && (t = B(r, M.visitNode(t, r.visitor), !1, t), e = i.factory.updateVariableDeclaration(e, e.name, void 0, void 0, t)), L(r, e, n, e, o), s && (t = i.factory.createTempVariable(void 0), a ? y(t, g = i.factory.inlineExpressions(s), s = void 0, void 0) : (i.hoistVariableDeclaration(t), (r = M.last(c)).pendingExpressions = M.append(r.pendingExpressions, i.factory.createAssignment(t, r.value)), M.addRange(r.pendingExpressions, s), r.value = t)); + for (var u = 0, _ = c; u < _.length; u++) { + var d = _[u], + p = d.pendingExpressions, + f = d.name, + g = d.value, + m = d.location, + d = d.original, + f = i.factory.createVariableDeclaration(f, void 0, void 0, p ? i.factory.inlineExpressions(M.append(p, g)) : g); + f.original = d, M.setTextRange(f, m), l.push(f) + } + return l; + + function y(e, t, r, n) { + M.Debug.assertNode(e, M.isBindingName), s && (t = i.factory.inlineExpressions(M.append(s, t)), s = void 0), c.push({ + pendingExpressions: s, + name: e, + value: t, + location: r, + original: n + }) + } + } + }(ts = ts || {}), ! function(f) { + var g, e; + + function m(e) { + return e.templateFlags ? f.factory.createVoidZero() : f.factory.createStringLiteral(e.text) + } + + function y(e, t) { + var r = e.rawText; + return void 0 === r && (f.Debug.assertIsDefined(t, "Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."), r = f.getSourceTextOfNodeFromSourceFile(t, e), t = 14 === e.kind || 17 === e.kind, r = r.substring(1, r.length - (t ? 1 : 2))), r = r.replace(/\r\n?/g, "\n"), f.setTextRange(f.factory.createStringLiteral(r), e) + }(e = g = f.ProcessLevel || (f.ProcessLevel = {}))[e.LiftRestriction = 0] = "LiftRestriction", e[e.All = 1] = "All", f.processTaggedTemplateExpression = function(e, t, r, n, i, a) { + var o = f.visitNode(t.tag, r, f.isExpression), + s = [void 0], + c = [], + l = [], + u = t.template; + if (a === g.LiftRestriction && !f.hasInvalidEscape(u)) return f.visitEachChild(t, r, e); + if (f.isNoSubstitutionTemplateLiteral(u)) c.push(m(u)), l.push(y(u, n)); + else { + c.push(m(u.head)), l.push(y(u.head, n)); + for (var _ = 0, d = u.templateSpans; _ < d.length; _++) { + var p = d[_]; + c.push(m(p.literal)), l.push(y(p.literal, n)), s.push(f.visitNode(p.expression, r, f.isExpression)) + } + } + return a = e.getEmitHelperFactory().createTemplateObjectHelper(f.factory.createArrayLiteralExpression(c), f.factory.createArrayLiteralExpression(l)), f.isExternalModule(n) ? (i(t = f.factory.createUniqueName("templateObject")), s[0] = f.factory.createLogicalOr(t, f.factory.createAssignment(t, a))) : s[0] = a, f.factory.createCallExpression(o, void 0, s) + } + }(ts = ts || {}), ! function(be) { + be.transformTypeScript = function(D) { + var S, T, C, E, c, o, l, a, k = D.factory, + s = D.getEmitHelperFactory, + N = D.startLexicalEnvironment, + h = D.resumeLexicalEnvironment, + A = D.endLexicalEnvironment, + v = D.hoistVariableDeclaration, + u = D.getEmitResolver(), + F = D.getCompilerOptions(), + z = be.getEmitScriptTarget(F), + P = be.getEmitModuleKind(F), + _ = F.emitDecoratorMetadata ? be.createRuntimeTypeSerializer(D) : void 0, + b = D.onEmitNode, + x = D.onSubstituteNode; + return D.onEmitNode = function(e, t, r) { + var n = a, + i = S; + be.isSourceFile(t) && (S = t); + 2 & l && function(e) { + return 264 === be.getOriginalNode(e).kind + }(t) && (a |= 2); + 8 & l && function(e) { + return 263 === be.getOriginalNode(e).kind + }(t) && (a |= 8); + b(e, t, r), a = n, S = i + }, D.onSubstituteNode = function(e, t) { + { + if (t = x(e, t), 1 === e) return function(e) { + switch (e.kind) { + case 79: + return function(e) { + return he(e) || e + }(e); + case 208: + case 209: + return ve(e) + } + return e + }(t); + if (be.isShorthandPropertyAssignment(t)) return function(e) { + if (2 & l) { + var t, r = e.name, + n = he(r); + if (n) return e.objectAssignmentInitializer ? (t = k.createAssignment(n, e.objectAssignmentInitializer), be.setTextRange(k.createPropertyAssignment(r, t), e)) : be.setTextRange(k.createPropertyAssignment(r, n), e) + } + return e + }(t) + } + return t + }, D.enableSubstitution(208), D.enableSubstitution(209), + function(e) { + return 309 !== e.kind ? t(e) : (e = e, k.createBundle(e.sourceFiles.map(t), be.mapDefined(e.prepends, function(e) { + return 311 === e.kind ? be.createUnparsedSourceFile(e, "js") : e + }))) + }; + + function t(e) { + return e.isDeclarationFile || (e = d(S = e, H), be.addEmitHelpers(e, D.readEmitHelpers()), S = void 0), e + } + + function d(e, t) { + var r = E, + n = c, + i = o, + a = e; + switch (a.kind) { + case 308: + case 266: + case 265: + case 238: + E = a, c = void 0; + break; + case 260: + case 259: + be.hasSyntacticModifier(a, 2) || (a.name ? ne(a) : be.Debug.assert(260 === a.kind || be.hasSyntacticModifier(a, 1024))) + } + t = t(e); + return E !== r && (c = n), E = r, o = i, t + } + + function w(e) { + return d(e, r) + } + + function r(e) { + return 1 & e.transformFlags ? n(e) : e + } + + function U(e) { + return d(e, K) + } + + function K(e) { + switch (e.kind) { + case 269: + case 268: + case 274: + case 275: + var t = e; + if (be.getParseTreeNode(t) !== t) return 1 & t.transformFlags ? be.visitEachChild(t, w, D) : t; + switch (t.kind) { + case 269: + return function(e) { + if (!e.importClause) return e; + if (e.importClause.isTypeOnly) return; + var t = be.visitNode(e.importClause, se, be.isImportClause); + return t || 1 === F.importsNotUsedAsValues || 2 === F.importsNotUsedAsValues ? k.updateImportDeclaration(e, void 0, t, e.moduleSpecifier, e.assertClause) : void 0 + }(t); + case 268: + return _e(t); + case 274: + return function(e) { + return u.isValueAliasDeclaration(e) ? be.visitEachChild(e, w, D) : void 0 + }(t); + case 275: + return function(e) { + if (e.isTypeOnly) return; + if (!e.exportClause || be.isNamespaceExport(e.exportClause)) return e; + var n = !!e.moduleSpecifier && (1 === F.importsNotUsedAsValues || 2 === F.importsNotUsedAsValues), + t = be.visitNode(e.exportClause, function(e) { + var t, r; + return e = e, r = n, be.isNamespaceExport(e) ? (t = e, k.updateNamespaceExport(t, be.visitNode(t.name, w, be.isIdentifier))) : (t = e, e = r, r = be.visitNodes(t.elements, ue, be.isExportSpecifier), e || be.some(r) ? k.updateNamedExports(t, r) : void 0) + }, be.isNamedExportBindings); + return t ? k.updateExportDeclaration(e, void 0, e.isTypeOnly, t, e.moduleSpecifier, e.assertClause) : void 0 + }(t); + default: + be.Debug.fail("Unhandled ellided statement") + } + return; + default: + return r(e) + } + } + + function V(e) { + return d(e, q) + } + + function q(e) { + if (275 !== e.kind && 269 !== e.kind && 270 !== e.kind && (268 !== e.kind || 280 !== e.moduleReference.kind)) return 1 & e.transformFlags || be.hasSyntacticModifier(e, 1) ? n(e) : e + } + + function I(n) { + return function(e) { + return d(e, function(e) { + var t = e, + r = n; + switch (t.kind) { + case 173: + return function(e) { + if (B(e)) return k.updateConstructorDeclaration(e, void 0, be.visitParameterList(e.parameters, w, D), function(e, t) { + var r = t && be.filter(t.parameters, function(e) { + return be.isParameterPropertyDeclaration(e, t) + }); + if (!be.some(r)) return be.visitFunctionBody(e, w, D); + var n = [], + i = (h(), k.copyPrologue(e.statements, n, !1, w)), + a = be.findSuperStatementIndex(e.statements, i); + 0 <= a && be.addRange(n, be.visitNodes(e.statements, w, be.isStatement, i, a + 1 - i)); + r = be.mapDefined(r, Z); + 0 <= a ? be.addRange(n, r) : n = __spreadArray(__spreadArray(__spreadArray([], n.slice(0, i), !0), r, !0), n.slice(i), !0); + r = 0 <= a ? a + 1 : i, be.addRange(n, be.visitNodes(e.statements, w, be.isStatement, r)), n = k.mergeLexicalEnvironment(n, A()), a = k.createBlock(be.setTextRange(k.createNodeArray(n), e.statements), !0); + return be.setTextRange(a, e), be.setOriginalNode(a, e), a + }(e.body, e)) + }(t); + case 169: + return function(e, t) { + var r = 16777216 & e.flags || be.hasSyntacticModifier(e, 256); + if (r && !be.hasDecorators(e)) return; + var n = be.getAllDecoratorsOfClassElement(e, t), + t = R(e, t, n); + if (r) return k.updatePropertyDeclaration(e, be.concatenate(t, k.createModifiersFromModifierFlags(2)), be.visitNode(e.name, w, be.isPropertyName), void 0, void 0, void 0); + return k.updatePropertyDeclaration(e, be.concatenate(t, be.visitNodes(e.modifiers, O, be.isModifierLike)), p(e), void 0, void 0, be.visitNode(e.initializer, w)) + }(t, r); + case 174: + return m(t, r); + case 175: + return $(t, r); + case 171: + return f(t, r); + case 172: + return be.visitEachChild(t, w, D); + case 237: + return t; + case 178: + return; + default: + return be.Debug.failBadSyntaxKind(t) + } + }) + } + } + + function W(n) { + return function(e) { + return d(e, function(e) { + var t = e, + r = n; + switch (t.kind) { + case 299: + case 300: + case 301: + return w(t); + case 174: + return m(t, r); + case 175: + return $(t, r); + case 171: + return f(t, r); + default: + return be.Debug.failBadSyntaxKind(t) + } + }) + } + } + + function O(e) { + if (!be.isDecorator(e) && !(117086 & be.modifierToFlag(e.kind) || T && 93 === e.kind)) return e + } + + function n(e) { + if (be.isStatement(e) && be.hasSyntacticModifier(e, 2)) return k.createNotEmittedStatement(e); + switch (e.kind) { + case 93: + case 88: + return T ? void 0 : e; + case 123: + case 121: + case 122: + case 126: + case 161: + case 85: + case 136: + case 146: + case 101: + case 145: + case 185: + case 186: + case 187: + case 188: + case 184: + case 179: + case 165: + case 131: + case 157: + case 134: + case 152: + case 148: + case 144: + case 114: + case 153: + case 182: + case 181: + case 183: + case 180: + case 189: + case 190: + case 191: + case 193: + case 194: + case 195: + case 196: + case 197: + case 198: + case 178: + return; + case 262: + return k.createNotEmittedStatement(e); + case 267: + return; + case 261: + return k.createNotEmittedStatement(e); + case 260: + var t = e; + return M(t) || T && be.hasSyntacticModifier(t, 1) ? (r = be.getProperties(t, !0, !0), 128 & (r = function(e, t) { + var r = 0; + be.some(t) && (r |= 1); + t = be.getEffectiveBaseTypeNode(e); + t && 104 !== be.skipOuterExpressions(t.expression).kind && (r |= 64); + be.classOrConstructorParameterIsDecorated(e) && (r |= 2); + be.childIsDecorated(e) && (r |= 4); + j(e) ? r |= 8 : ! function(e) { + return J(e) && be.hasSyntacticModifier(e, 1024) + }(e) ? de(e) && (r |= 16) : r |= 32; + z <= 1 && 7 & r && (r |= 128); + return r + }(t, r)) && D.startLexicalEnvironment(), n = t.name || (5 & r ? k.getGeneratedNameForNode(t) : void 0), i = be.getAllDecoratorsOfClass(t), i = R(t, t, i), b = 128 & r ? be.elideNodes(k, t.modifiers) : be.visitNodes(t.modifiers, O, be.isModifier), i = k.updateClassDeclaration(t, be.concatenate(i, b), n, void 0, be.visitNodes(t.heritageClauses, w, be.isHeritageClause), L(t)), b = be.getEmitFlags(t), 1 & r && (b |= 32), be.setEmitFlags(i, b), n = [i], 128 & r && (b = be.createTokenRange(be.skipTrivia(S.text, t.members.end), 19), x = k.getInternalName(t), x = k.createPartiallyEmittedExpression(x), be.setTextRangeEnd(x, b.end), be.setEmitFlags(x, 1536), x = k.createReturnStatement(x), be.setTextRangePos(x, b.pos), be.setEmitFlags(x, 1920), n.push(x), be.insertStatementsAfterStandardPrologue(n, D.endLexicalEnvironment()), b = k.createImmediatelyInvokedArrowFunction(n), be.setEmitFlags(b, 33554432), x = k.createVariableStatement(void 0, k.createVariableDeclarationList([k.createVariableDeclaration(k.getLocalName(t, !1, !1), void 0, void 0, b)])), be.setOriginalNode(x, t), be.setCommentRange(x, t), be.setSourceMapRange(x, be.moveRangePastDecorators(t)), be.startOnNewLine(x), n = [x]), 8 & r ? pe(n, t) : (128 & r || 2 & r) && (32 & r ? n.push(k.createExportDefault(k.getLocalName(t, !1, !0))) : 16 & r && n.push(k.createExternalModuleExport(k.getLocalName(t, !1, !0)))), 1 < n.length && (n.push(k.createEndOfDeclarationMarker(t)), be.setEmitFlags(i, 4194304 | be.getEmitFlags(i))), be.singleOrMany(n)) : k.updateClassDeclaration(t, be.visitNodes(t.modifiers, O, be.isModifier), t.name, void 0, be.visitNodes(t.heritageClauses, w, be.isHeritageClause), be.visitNodes(t.members, I(t), be.isClassElement)); + case 228: + return b = e, x = be.getAllDecoratorsOfClass(b), x = R(b, b, x), k.updateClassExpression(b, x, b.name, void 0, be.visitNodes(b.heritageClauses, w, be.isHeritageClause), M(b) ? L(b) : be.visitNodes(b.members, I(b), be.isClassElement)); + case 294: + var r = e; + return 117 !== r.token ? be.visitEachChild(r, w, D) : void 0; + case 230: + return k.updateExpressionWithTypeArguments(e, be.visitNode(e.expression, w, be.isLeftHandSideExpression), void 0); + case 207: + return k.updateObjectLiteralExpression(e, be.visitNodes(e.properties, W(e), be.isObjectLiteralElement)); + case 173: + case 169: + case 171: + case 174: + case 175: + case 172: + return be.Debug.fail("Class and object literal elements must be visited with their respective visitors"); + case 259: + var n, i = e; + return B(i) ? (n = k.updateFunctionDeclaration(i, be.visitNodes(i.modifiers, O, be.isModifier), i.asteriskToken, i.name, void 0, be.visitParameterList(i.parameters, w, D), void 0, be.visitFunctionBody(i.body, w, D) || k.createBlock([])), j(i) ? (pe(t = [n], i), t) : n) : k.createNotEmittedStatement(i); + case 215: + return B(v = e) ? k.updateFunctionExpression(v, be.visitNodes(v.modifiers, O, be.isModifier), v.asteriskToken, v.name, void 0, be.visitParameterList(v.parameters, w, D), void 0, be.visitFunctionBody(v.body, w, D) || k.createBlock([])) : k.createOmittedExpression(); + case 216: + return v = e, k.updateArrowFunction(v, be.visitNodes(v.modifiers, O, be.isModifier), void 0, be.visitParameterList(v.parameters, w, D), void 0, v.equalsGreaterThanToken, be.visitFunctionBody(v.body, w, D)); + case 166: + var a = e; + return be.parameterIsThisKeyword(a) ? void 0 : ((o = k.updateParameterDeclaration(a, be.elideNodes(k, a.modifiers), a.dotDotDotToken, be.visitNode(a.name, w, be.isBindingName), void 0, void 0, be.visitNode(a.initializer, w, be.isExpression))) !== a && (be.setCommentRange(o, a), be.setTextRange(o, be.moveRangePastModifiers(a)), be.setSourceMapRange(o, be.moveRangePastModifiers(a)), be.setEmitFlags(o.name, 32)), o); + case 214: + var a = e, + o = be.skipOuterExpressions(a.expression, -7); + return be.isAssertionExpression(o) ? (o = be.visitNode(a.expression, w, be.isExpression), k.createPartiallyEmittedExpression(o, a)) : be.visitEachChild(a, w, D); + case 213: + case 231: + return y = e, h = be.visitNode(y.expression, w, be.isExpression), k.createPartiallyEmittedExpression(h, y); + case 235: + return h = e, y = be.visitNode(h.expression, w, be.isExpression), k.createPartiallyEmittedExpression(y, h); + case 210: + return m = e, k.updateCallExpression(m, be.visitNode(m.expression, w, be.isExpression), void 0, be.visitNodes(m.arguments, w, be.isExpression)); + case 211: + return m = e, k.updateNewExpression(m, be.visitNode(m.expression, w, be.isExpression), void 0, be.visitNodes(m.arguments, w, be.isExpression)); + case 212: + return g = e, k.updateTaggedTemplateExpression(g, be.visitNode(g.tag, w, be.isExpression), void 0, be.visitNode(g.template, w, be.isExpression)); + case 232: + return g = e, c = be.visitNode(g.expression, w, be.isLeftHandSideExpression), k.createPartiallyEmittedExpression(c, g); + case 263: + var s, c = e; + return function(e) { + return !be.isEnumConst(e) || be.shouldPreserveConstEnums(F) + }(c) ? (f = 2, !(d = ae(s = [], c)) || P === be.ModuleKind.System && E === S || (f |= 512), u = me(c), l = ye(c), _ = be.hasSyntacticModifier(c, 1) ? k.getExternalModuleOrNamespaceExportName(C, c, !1, !0) : k.getLocalName(c, !1, !0), _ = k.createLogicalOr(_, k.createAssignment(_, k.createObjectLiteralExpression())), re(c) && (p = k.getLocalName(c, !1, !0), _ = k.createAssignment(p, _)), p = k.createExpressionStatement(k.createCallExpression(k.createFunctionExpression(void 0, void 0, void 0, void 0, [k.createParameterDeclaration(void 0, void 0, u)], void 0, function(e, t) { + var r = C, + t = (C = t, []), + n = (N(), be.map(e.members, te)); + return be.insertStatementsAfterStandardPrologue(t, A()), be.addRange(t, n), C = r, k.createBlock(be.setTextRange(k.createNodeArray(t), e.members), !0) + }(c, l)), void 0, [_])), be.setOriginalNode(p, c), d && (be.setSyntheticLeadingComments(p, void 0), be.setSyntheticTrailingComments(p, void 0)), be.setTextRange(p, c), be.addEmitFlags(p, f), s.push(p), s.push(k.createEndOfDeclarationMarker(c)), s) : k.createNotEmittedStatement(c); + case 240: + var l, u = e; + return j(u) ? 0 !== (l = be.getInitializedVariables(u.declarationList)).length ? be.setTextRange(k.createExpressionStatement(k.inlineExpressions(be.map(l, ee))), u) : void 0 : be.visitEachChild(u, w, D); + case 257: + var _ = e, + d = k.updateVariableDeclaration(_, be.visitNode(_.name, w, be.isBindingName), void 0, void 0, be.visitNode(_.initializer, w, be.isExpression)); + return _.type && be.setTypeNode(d.name, _.type), d; + case 264: + return oe(e); + case 268: + return _e(e); + case 282: + return f = e, k.updateJsxSelfClosingElement(f, be.visitNode(f.tagName, w, be.isJsxTagNameExpression), void 0, be.visitNode(f.attributes, w, be.isJsxAttributes)); + case 283: + return p = e, k.updateJsxOpeningElement(p, be.visitNode(p.tagName, w, be.isJsxTagNameExpression), void 0, be.visitNode(p.attributes, w, be.isJsxAttributes)); + default: + return be.visitEachChild(e, w, D) + } + var p, f, c, g, m, y, h, v, b, x + } + + function H(e) { + var t = be.getStrictOptionValue(F, "alwaysStrict") && !(be.isExternalModule(e) && P >= be.ModuleKind.ES2015) && !be.isJsonSourceFile(e); + return k.updateSourceFile(e, be.visitLexicalEnvironment(e.statements, U, D, 0, t)) + } + + function i(e) { + return !!(8192 & e.transformFlags) + } + + function M(e) { + return be.hasDecorators(e) || be.some(e.typeParameters) || be.some(e.heritageClauses, i) || be.some(e.members, i) + } + + function L(e) { + var t = [], + r = be.getFirstConstructorWithBody(e), + n = r && be.filter(r.parameters, function(e) { + return be.isParameterPropertyDeclaration(e, r) + }); + if (n) + for (var i = 0, a = n; i < a.length; i++) { + var o = a[i]; + be.isIdentifier(o.name) && t.push(be.setOriginalNode(k.createPropertyDeclaration(void 0, o.name, void 0, void 0, void 0), o)) + } + return be.addRange(t, be.visitNodes(e.members, I(e), be.isClassElement)), be.setTextRange(k.createNodeArray(t), e.members) + } + + function R(e, t, r) { + var n, i; + if (r) return n = be.visitArray(r.decorators, w, be.isDecorator), i = be.flatMap(r.parameters, G), e = be.some(n) || be.some(i) ? function(e, t) { + { + var r, n; + if (_) return r = void 0, Q(e) && (n = s().createMetadataHelper("design:type", _.serializeTypeOfNode({ + currentLexicalScope: E, + currentNameScope: t + }, e)), r = be.append(r, k.createDecorator(n))), Y(e) && (n = s().createMetadataHelper("design:paramtypes", _.serializeParameterTypesOfNode({ + currentLexicalScope: E, + currentNameScope: t + }, e, t)), r = be.append(r, k.createDecorator(n))), X(e) && (n = s().createMetadataHelper("design:returntype", _.serializeReturnTypeOfNode({ + currentLexicalScope: E, + currentNameScope: t + }, e)), r = be.append(r, k.createDecorator(n))), r + } + }(e, t) : void 0, t = k.createNodeArray(be.concatenate(be.concatenate(n, i), e)), e = null != (i = null == (n = be.firstOrUndefined(r.decorators)) ? void 0 : n.pos) ? i : -1, r = null != (i = null == (n = be.lastOrUndefined(r.decorators)) ? void 0 : n.end) ? i : -1, be.setTextRangePosEnd(t, e, r), t + } + + function G(e, t) { + if (e) { + for (var r = [], n = 0, i = e; n < i.length; n++) { + var a = i[n], + o = be.visitNode(a.expression, w, be.isExpression), + o = s().createParamHelper(o, t), + o = (be.setTextRange(o, a.expression), be.setEmitFlags(o, 1536), k.createDecorator(o)); + be.setSourceMapRange(o, a.expression), be.setCommentRange(o, a.expression), be.setEmitFlags(o, 1536), r.push(o) + } + return r + } + } + + function Q(e) { + e = e.kind; + return 171 === e || 174 === e || 175 === e || 169 === e + } + + function X(e) { + return 171 === e.kind + } + + function Y(e) { + switch (e.kind) { + case 260: + case 228: + return void 0 !== be.getFirstConstructorWithBody(e); + case 171: + case 174: + case 175: + return 1 + } + } + + function p(e) { + var t = e.name; + if (be.isComputedPropertyName(t) && (!be.hasStaticModifier(e) && o || be.hasDecorators(e))) { + var e = be.visitNode(t.expression, w, be.isExpression), + r = be.skipPartiallyEmittedExpressions(e); + if (!be.isSimpleInlineableExpression(r)) return r = k.getGeneratedNameForNode(t), v(r), k.updateComputedPropertyName(t, k.createAssignment(r, e)) + } + return be.visitNode(t, w, be.isPropertyName) + } + + function B(e) { + return !be.nodeIsMissing(e.body) + } + + function Z(e) { + var t, r = e.name; + if (be.isIdentifier(r)) return t = be.setParent(be.setTextRange(k.cloneNode(r), r), r.parent), be.setEmitFlags(t, 1584), r = be.setParent(be.setTextRange(k.cloneNode(r), r), r.parent), be.setEmitFlags(r, 1536), be.startOnNewLine(be.removeAllComments(be.setTextRange(be.setOriginalNode(k.createExpressionStatement(k.createAssignment(be.setTextRange(k.createPropertyAccessExpression(k.createThis(), t), e.name), r)), e), be.moveRangePos(e, -1)))) + } + + function f(e, t) { + var r; + return 1 & e.transformFlags ? B(e) ? (r = be.isClassLike(t) ? be.getAllDecoratorsOfClassElement(e, t) : void 0, t = be.isClassLike(t) ? R(e, t, r) : void 0, k.updateMethodDeclaration(e, be.concatenate(t, be.visitNodes(e.modifiers, O, be.isModifierLike)), e.asteriskToken, p(e), void 0, void 0, be.visitParameterList(e.parameters, w, D), void 0, be.visitFunctionBody(e.body, w, D))) : void 0 : e + } + + function g(e) { + return !be.nodeIsMissing(e.body) || !be.hasSyntacticModifier(e, 256) + } + + function m(e, t) { + return 1 & e.transformFlags ? g(e) ? (t = be.isClassLike(t) ? R(e, t, be.getAllDecoratorsOfClassElement(e, t)) : void 0, k.updateGetAccessorDeclaration(e, be.concatenate(t, be.visitNodes(e.modifiers, O, be.isModifierLike)), p(e), be.visitParameterList(e.parameters, w, D), void 0, be.visitFunctionBody(e.body, w, D) || k.createBlock([]))) : void 0 : e + } + + function $(e, t) { + return 1 & e.transformFlags ? g(e) ? (t = be.isClassLike(t) ? R(e, t, be.getAllDecoratorsOfClassElement(e, t)) : void 0, k.updateSetAccessorDeclaration(e, be.concatenate(t, be.visitNodes(e.modifiers, O, be.isModifierLike)), p(e), be.visitParameterList(e.parameters, w, D), be.visitFunctionBody(e.body, w, D) || k.createBlock([]))) : void 0 : e + } + + function ee(e) { + var t = e.name; + return be.isBindingPattern(t) ? be.flattenDestructuringAssignment(e, w, D, 0, !1, fe) : be.setTextRange(k.createAssignment(ge(t), be.visitNode(e.initializer, w, be.isExpression)), e) + } + + function te(e) { + t = !1, n = (n = e).name; + var t = be.isPrivateIdentifier(n) ? k.createIdentifier("") : be.isComputedPropertyName(n) ? t && !be.isSimpleInlineableExpression(n.expression) ? k.getGeneratedNameForNode(n) : n.expression : be.isIdentifier(n) ? k.createStringLiteral(be.idText(n)) : k.cloneNode(n), + r = (n = e, void 0 !== (r = u.getConstantValue(n)) ? "string" == typeof r ? k.createStringLiteral(r) : k.createNumericLiteral(r) : (0 == (8 & l) && (l |= 8, D.enableSubstitution(79)), n.initializer ? be.visitNode(n.initializer, w, be.isExpression) : k.createVoidZero())), + n = k.createAssignment(k.createElementAccessExpression(C, t), r), + r = 10 === r.kind ? n : k.createAssignment(k.createElementAccessExpression(C, n), t); + return be.setTextRange(k.createExpressionStatement(be.setTextRange(r, e)), e) + } + + function re(e) { + return j(e) || J(e) && P !== be.ModuleKind.ES2015 && P !== be.ModuleKind.ES2020 && P !== be.ModuleKind.ES2022 && P !== be.ModuleKind.ESNext && P !== be.ModuleKind.System + } + + function ne(e) { + c = c || new be.Map; + var t = ie(e); + c.has(t) || c.set(t, e) + } + + function ie(e) { + return be.Debug.assertNode(e.name, be.isIdentifier), e.name.escapedText + } + + function ae(e, t) { + var r, n, i = k.createVariableStatement(be.visitNodes(t.modifiers, O, be.isModifier), k.createVariableDeclarationList([k.createVariableDeclaration(k.getLocalName(t, !1, !0))], 308 === E.kind ? 0 : 1)); + return be.setOriginalNode(i, t), ne(t), r = t, c && (n = ie(r), c.get(n) !== r) ? (n = k.createMergeDeclarationMarker(i), be.setEmitFlags(n, 4195840), e.push(n), !1) : (263 === t.kind ? be.setSourceMapRange(i.declarationList, t) : be.setSourceMapRange(i, t), be.setCommentRange(i, t), be.addEmitFlags(i, 4195328), e.push(i), !0) + } + + function oe(e) { + var t, r, n, i, a, o, s; + return r = e, (r = be.getParseTreeNode(r, be.isModuleDeclaration)) && !be.isInstantiatedModule(r, be.shouldPreserveConstEnums(F)) ? k.createNotEmittedStatement(e) : (be.Debug.assertNode(e.name, be.isIdentifier, "A TypeScript namespace should have an Identifier name."), 0 == (2 & l) && (l |= 2, D.enableSubstitution(79), D.enableSubstitution(300), D.enableEmitNotification(264)), r = 2, !(n = ae(t = [], e)) || P === be.ModuleKind.System && E === S || (r |= 512), i = me(e), a = ye(e), o = be.hasSyntacticModifier(e, 1) ? k.getExternalModuleOrNamespaceExportName(C, e, !1, !0) : k.getLocalName(e, !1, !0), o = k.createLogicalOr(o, k.createAssignment(o, k.createObjectLiteralExpression())), re(e) && (s = k.getLocalName(e, !1, !0), o = k.createAssignment(s, o)), s = k.createExpressionStatement(k.createCallExpression(k.createFunctionExpression(void 0, void 0, void 0, void 0, [k.createParameterDeclaration(void 0, void 0, i)], void 0, function(e, t) { + var r, n, i = C, + a = T, + o = c, + s = (C = t, T = e, c = void 0, []); + N(), e.body && (265 === e.body.kind ? (d(e.body, function(e) { + return be.addRange(s, be.visitNodes(e.statements, V, be.isStatement)) + }), r = e.body.statements, n = e.body) : ((t = oe(e.body)) && (be.isArray(t) ? be.addRange(s, t) : s.push(t)), t = function e(t) { + if (264 === t.body.kind) return e(t.body) || t.body + }(e).body, r = be.moveRangePos(t.statements, -1))); + be.insertStatementsAfterStandardPrologue(s, A()), C = i, T = a, c = o; + t = k.createBlock(be.setTextRange(k.createNodeArray(s), r), !0); + be.setTextRange(t, n), e.body && 265 === e.body.kind || be.setEmitFlags(t, 1536 | be.getEmitFlags(t)); + return t + }(e, a)), void 0, [o])), be.setOriginalNode(s, e), n && (be.setSyntheticLeadingComments(s, void 0), be.setSyntheticTrailingComments(s, void 0)), be.setTextRange(s, e), be.addEmitFlags(s, r), t.push(s), t.push(k.createEndOfDeclarationMarker(e)), t) + } + + function se(e) { + be.Debug.assert(!e.isTypeOnly); + var t = y(e) ? e.name : void 0, + r = be.visitNode(e.namedBindings, ce, be.isNamedImportBindings); + return t || r ? k.updateImportClause(e, !1, t, r) : void 0 + } + + function ce(e) { + var t, r; + return 271 === e.kind ? y(e) ? e : void 0 : (t = F.preserveValueImports && (1 === F.importsNotUsedAsValues || 2 === F.importsNotUsedAsValues), r = be.visitNodes(e.elements, le, be.isImportSpecifier), t || be.some(r) ? k.updateNamedImports(e, r) : void 0) + } + + function le(e) { + return !e.isTypeOnly && y(e) ? e : void 0 + } + + function ue(e) { + return !e.isTypeOnly && u.isValueAliasDeclaration(e) ? e : void 0 + } + + function _e(e) { + var t, r, n, i; + if (!e.isTypeOnly) return be.isExternalModuleImportEqualsDeclaration(e) ? (t = y(e)) || 1 !== F.importsNotUsedAsValues ? t ? be.visitEachChild(e, w, D) : void 0 : be.setOriginalNode(be.setTextRange(k.createImportDeclaration(void 0, void 0, e.moduleReference.expression, void 0), e), e) : y(t = e) || !be.isExternalModule(S) && u.isTopLevelValueImportEqualsWithEntityName(t) ? (n = be.createExpressionFromEntityName(k, e.moduleReference), be.setEmitFlags(n, 3584), de(e) || !j(e) ? be.setOriginalNode(be.setTextRange(k.createVariableStatement(be.visitNodes(e.modifiers, O, be.isModifier), k.createVariableDeclarationList([be.setOriginalNode(k.createVariableDeclaration(e.name, void 0, void 0, n), e)])), e), e) : be.setOriginalNode((r = e.name, n = n, i = e, be.setTextRange(k.createExpressionStatement(k.createAssignment(k.getNamespaceMemberName(C, r, !1, !0), n)), i)), e)) : void 0 + } + + function j(e) { + return void 0 !== T && be.hasSyntacticModifier(e, 1) + } + + function J(e) { + return void 0 === T && be.hasSyntacticModifier(e, 1) + } + + function de(e) { + return J(e) && !be.hasSyntacticModifier(e, 1024) + } + + function pe(e, t) { + var r = k.createAssignment(k.getExternalModuleOrNamespaceExportName(C, t, !1, !0), k.getLocalName(t)), + r = (be.setSourceMapRange(r, be.createRange((t.name || t).pos, t.end)), k.createExpressionStatement(r)); + be.setSourceMapRange(r, be.createRange(-1, t.end)), e.push(r) + } + + function fe(e, t, r) { + return be.setTextRange(k.createAssignment(ge(e), t), r) + } + + function ge(e) { + return k.getNamespaceMemberName(C, e, !1, !0) + } + + function me(e) { + var t = k.getGeneratedNameForNode(e); + return be.setSourceMapRange(t, e.name), t + } + + function ye(e) { + return k.getGeneratedNameForNode(e) + } + + function he(e) { + if (l & a && !be.isGeneratedIdentifier(e) && !be.isLocalName(e)) { + var t = u.getReferencedExportContainer(e, !1); + if (t && 308 !== t.kind) + if (2 & a && 264 === t.kind || 8 & a && 263 === t.kind) return be.setTextRange(k.createPropertyAccessExpression(k.getGeneratedNameForNode(t), e), e) + } + } + + function ve(e) { + var t, r = function(e) { + if (F.isolatedModules) return; + return be.isPropertyAccessExpression(e) || be.isElementAccessExpression(e) ? u.getConstantValue(e) : void 0 + }(e); + return void 0 !== r ? (be.setConstantValue(e, r), r = "string" == typeof r ? k.createStringLiteral(r) : k.createNumericLiteral(r), F.removeComments || (t = be.getOriginalNode(e, be.isAccessExpression), be.addSyntheticTrailingComment(r, 3, " ".concat(be.getTextOfNode(t).replace(/\*\//g, "*_/"), " "))), r) : e + } + + function y(e) { + return be.isInJSFile(e) || (F.preserveValueImports ? u.isValueAliasDeclaration(e) : u.isReferencedAliasDeclaration(e)) + } + } + }(ts = ts || {}), ! function(be) { + var e; + + function xe(e, t, r) { + be.isGeneratedPrivateIdentifier(t) ? (null == e.generatedIdentifiers && (e.generatedIdentifiers = new be.Map), e.generatedIdentifiers.set(be.getNodeForGeneratedName(t), r)) : (null == e.identifiers && (e.identifiers = new be.Map), e.identifiers.set(t.escapedText, r)) + } + + function De(e, t) { + return null == (e = e.identifiers) ? void 0 : e.get(t) + } + + function Se(e, t) { + return null == (e = e.generatedIdentifiers) ? void 0 : e.get(t) + }(e = be.PrivateIdentifierKind || (be.PrivateIdentifierKind = {})).Field = "f", e.Method = "m", e.Accessor = "a", be.transformClassFields = function(f) { + var u, _, d, p, g, a, s, m, y = f.factory, + h = f.hoistVariableDeclaration, + z = f.endLexicalEnvironment, + r = f.startLexicalEnvironment, + U = f.resumeLexicalEnvironment, + v = f.addBlockScopedVariable, + b = f.getEmitResolver(), + e = f.getCompilerOptions(), + x = be.getEmitScriptTarget(e), + D = be.getUseDefineForClassFields(e), + o = !D, + t = D && x < 9, + S = o || t, + T = x < 9, + C = x < 99, + K = x < 9, + E = K && 2 <= x, + n = S || T || C, + i = f.onSubstituteNode, + c = (f.onSubstituteNode = function(e, t) { + if (t = i(e, t), 1 !== e) return t; + var r = t; + switch (r.kind) { + case 79: + return function(e) { + return function(e) { + if (1 & u && 33554432 & b.getNodeCheckFlags(e)) { + var t = b.getReferencedValueDeclaration(e); + if (t) { + var t = _[t.id]; + if (t) return t = y.cloneNode(t), be.setSourceMapRange(t, e), be.setCommentRange(t, e), t + } + } + return + }(e) || e + }(r); + case 108: + return function(e) { + if (2 & u && g) { + var t = g.facts, + r = g.classConstructor; + if (1 & t) return y.createParenthesizedExpression(y.createVoidZero()); + if (r) return be.setTextRange(be.setOriginalNode(y.cloneNode(r), e), e) + } + return e + }(r) + } + return r + }, f.onEmitNode), + l = (f.onEmitNode = function(e, t, r) { + var n = be.getOriginalNode(t); + if (n.id) { + var i = k.get(n.id); + if (i) return a = g, o = s, s = g = i, c(e, t, r), g = a, void(s = o) + } + switch (t.kind) { + case 215: + if (be.isArrowFunction(n) || 262144 & be.getEmitFlags(t)) break; + case 259: + case 173: + var a = g, + o = s; + return s = g = void 0, c(e, t, r), g = a, void(s = o); + case 174: + case 175: + case 171: + case 169: + a = g, o = s; + return s = g, g = void 0, c(e, t, r), g = a, void(s = o); + case 164: + a = g, o = s; + return g = s, s = void 0, c(e, t, r), g = a, void(s = o) + } + c(e, t, r) + }, []), + k = new be.Map; + return be.chainBundle(f, function(e) { + if (e.isDeclarationFile || !n) return e; + e = be.visitEachChild(e, N, f); + return be.addEmitHelpers(e, f.readEmitHelpers()), e + }); + + function N(e) { + if (!(16777216 & e.transformFlags || 134234112 & e.transformFlags)) return e; + switch (e.kind) { + case 127: + return C ? void 0 : e; + case 260: + return ne(e, ie); + case 228: + return ne(e, ae); + case 172: + var t = e; + return T ? void 0 : be.visitEachChild(t, N, f); + case 169: + return G(e); + case 240: + return t = e, l = p, p = [], t = be.visitEachChild(t, N, f), t = be.some(p) ? __spreadArray([t], p, !0) : t, p = l, t; + case 80: + l = e; + return T ? be.isStatement(l.parent) ? l : be.setOriginalNode(y.createIdentifier(""), l) : l; + case 208: + var r = e; + if (T && be.isPrivateIdentifier(r.name)) { + var n = J(r.name); + if (n) return be.setTextRange(be.setOriginalNode(Q(n, r.expression), r), r) + } + if (E && be.isSuperProperty(r) && be.isIdentifier(r.name) && m && g) { + var n = g.classConstructor, + i = g.superClassReference; + if (1 & g.facts) return M(r); + if (n && i) return i = y.createReflectGetCall(i, y.createStringLiteralFromNode(r.name), n), be.setOriginalNode(i, r.expression), be.setTextRange(i, r.expression), i + } + return be.visitEachChild(r, N, f); + case 209: + n = e; + if (E && be.isSuperProperty(n) && m && g) { + i = g.classConstructor, r = g.superClassReference; + if (1 & g.facts) return M(n); + if (i && r) return r = y.createReflectGetCall(r, be.visitNode(n.argumentExpression, N, be.isExpression), i), be.setOriginalNode(r, n.expression), be.setTextRange(r, n.expression), r + } + return be.visitEachChild(n, N, f); + case 221: + case 222: + return Y(e, !1); + case 223: + return ee(e, !1); + case 210: + var a = e; + return T && be.isPrivateIdentifierPropertyAccessExpression(a.expression) ? (o = y.createCallBinding(a.expression, h, x), c = o.thisArg, o = o.target, be.isCallChain(a) ? y.updateCallChain(a, y.createPropertyAccessChain(be.visitNode(o, N), a.questionDotToken, "call"), void 0, void 0, __spreadArray([be.visitNode(c, N, be.isExpression)], be.visitNodes(a.arguments, N, be.isExpression), !0)) : y.updateCallExpression(a, y.createPropertyAccessExpression(be.visitNode(o, N), "call"), void 0, __spreadArray([be.visitNode(c, N, be.isExpression)], be.visitNodes(a.arguments, N, be.isExpression), !0))) : E && be.isSuperProperty(a.expression) && m && null != g && g.classConstructor ? (o = y.createFunctionCallCall(be.visitNode(a.expression, N, be.isExpression), g.classConstructor, be.visitNodes(a.arguments, N, be.isExpression)), be.setOriginalNode(o, a), be.setTextRange(o, a), o) : be.visitEachChild(a, N, f); + case 241: + return y.updateExpressionStatement(e, be.visitNode(e.expression, F, be.isExpression)); + case 212: + var o, s, c = e; + return T && be.isPrivateIdentifierPropertyAccessExpression(c.tag) ? (s = y.createCallBinding(c.tag, h, x), o = s.thisArg, s = s.target, y.updateTaggedTemplateExpression(c, y.createCallExpression(y.createPropertyAccessExpression(be.visitNode(s, N), "bind"), void 0, [be.visitNode(o, N, be.isExpression)]), void 0, be.visitNode(c.template, N, be.isTemplateLiteral))) : E && be.isSuperProperty(c.tag) && m && null != g && g.classConstructor ? (s = y.createFunctionBindCall(be.visitNode(c.tag, N, be.isExpression), g.classConstructor, []), be.setOriginalNode(s, c), be.setTextRange(s, c), y.updateTaggedTemplateExpression(c, s, void 0, be.visitNode(c.template, N, be.isTemplateLiteral))) : be.visitEachChild(c, N, f); + case 245: + return a = e, y.updateForStatement(a, be.visitNode(a.initializer, F, be.isForInitializer), be.visitNode(a.condition, N, be.isExpression), be.visitNode(a.incrementor, F, be.isExpression), be.visitIterationBody(a.statement, N, f)); + case 259: + case 215: + case 173: + case 171: + case 174: + case 175: + return O(void 0, A, e); + default: + return A(e) + } + var l + } + + function A(e) { + return be.visitEachChild(e, N, f) + } + + function F(e) { + switch (e.kind) { + case 221: + case 222: + return Y(e, !0); + case 223: + return ee(e, !0); + default: + return N(e) + } + } + + function P(e) { + switch (e.kind) { + case 294: + return be.visitEachChild(e, P, f); + case 230: + var t, r = e; + return 4 & ((null == g ? void 0 : g.facts) || 0) ? (t = y.createTempVariable(h, !0), L().superClassReference = t, y.updateExpressionWithTypeArguments(r, y.createAssignment(t, be.visitNode(r.expression, N, be.isExpression)), void 0)) : be.visitEachChild(r, N, f); + default: + return N(e) + } + } + + function w(e) { + switch (e.kind) { + case 207: + case 206: + return t = e, be.isArrayLiteralExpression(t) ? y.updateArrayLiteralExpression(t, be.visitNodes(t.elements, he, be.isExpression)) : y.updateObjectLiteralExpression(t, be.visitNodes(t.properties, ve, be.isObjectLiteralElementLike)); + default: + return N(e) + } + var t + } + + function I(e) { + switch (e.kind) { + case 173: + var t = e; + return a ? ce(t, a) : A(t); + case 174: + case 175: + case 171: + return O(void 0, q, e); + case 169: + return O(void 0, G, e); + case 164: + var t = e, + r = be.visitNode(t.expression, N, be.isExpression); + return be.some(d) && (r = be.isParenthesizedExpression(r) ? y.updateParenthesizedExpression(r, y.inlineExpressions(__spreadArray(__spreadArray([], d, !0), [r.expression], !1))) : y.inlineExpressions(__spreadArray(__spreadArray([], d, !0), [r], !1)), d = void 0), y.updateComputedPropertyName(t, r); + case 237: + return e; + default: + return N(e) + } + } + + function V(e) { + switch (e.kind) { + case 169: + return H(e); + case 174: + case 175: + return I(e); + default: + be.Debug.assertMissingNode(e, "Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration") + } + } + + function q(e) { + var t; + return be.Debug.assert(!be.hasDecorators(e)), T && be.isPrivateIdentifier(e.name) ? (t = J(e.name), be.Debug.assert(t, "Undeclared private name for property declaration."), t.isValid ? void((t = function(e) { + be.Debug.assert(be.isPrivateIdentifier(e.name)); + var t = J(e.name); + if (be.Debug.assert(t, "Undeclared private name for property declaration."), "m" === t.kind) return t.methodName; + if ("a" === t.kind) return be.isGetAccessor(e) ? t.getterName : be.isSetAccessor(e) ? t.setterName : void 0 + }(e)) && B().push(y.createAssignment(t, y.createFunctionExpression(be.filter(e.modifiers, function(e) { + return be.isModifier(e) && !be.isStaticModifier(e) && !be.isAccessorModifier(e) + }), e.asteriskToken, t, void 0, be.visitParameterList(e.parameters, N, f), void 0, be.visitFunctionBody(e.body, N, f))))) : e) : be.visitEachChild(e, I, f) + } + + function O(e, t, r) { + var n = m, + e = (m = e, t(r)); + return m = n, e + } + + function W(e) { + if (!S) return be.visitEachChild(e, I, f); + var t = function(e, t) { + { + var r, n, i; + if (be.isComputedPropertyName(e)) return r = be.visitNode(e.expression, N, be.isExpression), n = be.skipPartiallyEmittedExpressions(r), i = be.isSimpleInlineableExpression(n), be.isAssignmentExpression(n) && be.isGeneratedIdentifier(n.left) || i || !t ? i || be.isIdentifier(n) ? void 0 : r : (t = y.getGeneratedNameForNode(e), (524288 & b.getNodeCheckFlags(e) ? v : h)(t), y.createAssignment(t, r)) + } + }(e.name, !!e.initializer || D); + if (t && B().push(t), be.isStatic(e) && !T) { + var r, t = ue(e, y.createThis()); + if (t) return r = y.createClassStaticBlockDeclaration(y.createBlock([t])), be.setOriginalNode(r, e), be.setCommentRange(r, e), be.setCommentRange(t, { + pos: -1, + end: -1 + }), be.setSyntheticLeadingComments(t, void 0), be.setSyntheticTrailingComments(t, void 0), r + } + } + + function H(e) { + return be.Debug.assert(!be.hasDecorators(e), "Decorators should already have been transformed and elided."), be.isPrivateIdentifierClassElementDeclaration(e) ? (t = e, T ? (r = J(t.name), be.Debug.assert(r, "Undeclared private name for property declaration."), r.isValid ? void 0 : t) : o && !be.isStatic(t) ? y.updatePropertyDeclaration(t, be.visitNodes(t.modifiers, N, be.isModifierLike), t.name, void 0, void 0, void 0) : be.visitEachChild(t, N, f)) : W(e); + var t, r + } + + function G(e) { + var t, r, n, i, a, o, s, c; + return C && be.isAutoAccessorPropertyDeclaration(e) ? (t = e, be.Debug.assertEachNode(t.modifiers, be.isModifier), r = be.getCommentRange(t), n = be.getSourceMapRange(t), i = s = t.name, a = s, be.isComputedPropertyName(s) && !be.isSimpleInlineableExpression(s.expression) && (c = y.createTempVariable(h), be.setSourceMapRange(c, s.expression), o = be.visitNode(s.expression, N, be.isExpression), o = y.createAssignment(c, o), be.setSourceMapRange(o, s.expression), i = y.updateComputedPropertyName(s, y.inlineExpressions([o, c])), a = y.updateComputedPropertyName(s, c)), o = be.createAccessorPropertyBackingField(y, t, t.modifiers, t.initializer), be.setOriginalNode(o, t), be.setEmitFlags(o, 1536), be.setSourceMapRange(o, n), s = be.createAccessorPropertyGetRedirector(y, t, t.modifiers, i), be.setOriginalNode(s, t), be.setCommentRange(s, r), be.setSourceMapRange(s, n), c = be.createAccessorPropertySetRedirector(y, t, t.modifiers, a), be.setOriginalNode(c, t), be.setEmitFlags(c, 1536), be.setSourceMapRange(c, n), be.visitArray([o, s, c], V, be.isClassElement)) : H(e) + } + + function Q(e, t) { + return X(e, be.visitNode(t, N, be.isExpression)) + } + + function X(e, t) { + switch (be.setCommentRange(t, be.moveRangePos(t, -1)), e.kind) { + case "a": + return f.getEmitHelperFactory().createClassPrivateFieldGetHelper(t, e.brandCheckIdentifier, e.kind, e.getterName); + case "m": + return f.getEmitHelperFactory().createClassPrivateFieldGetHelper(t, e.brandCheckIdentifier, e.kind, e.methodName); + case "f": + return f.getEmitHelperFactory().createClassPrivateFieldGetHelper(t, e.brandCheckIdentifier, e.kind, e.variableName); + default: + be.Debug.assertNever(e, "Unknown private element type") + } + } + + function Y(e, t) { + if (45 === e.operator || 46 === e.operator) { + var r = be.skipParentheses(e.operand); + if (T && be.isPrivateIdentifierPropertyAccessExpression(r)) { + if (n = J(r.name)) return s = (i = Z(be.visitNode(r.expression, N, be.isExpression))).readExpression, i = i.initializeExpression, a = Q(n, s), o = be.isPrefixUnaryExpression(e) || t ? void 0 : y.createTempVariable(h), a = te(n, i || s, a = be.expandPreOrPostfixIncrementOrDecrementExpression(y, e, a, h, o), 63), be.setOriginalNode(a, e), be.setTextRange(a, e), o && (a = y.createComma(a, o), be.setTextRange(a, e)), a + } else if (E && be.isSuperProperty(r) && m && g) { + var n = g.classConstructor, + i = g.superClassReference; + if (1 & g.facts) return a = M(r), be.isPrefixUnaryExpression(e) ? y.updatePrefixUnaryExpression(e, a) : y.updatePostfixUnaryExpression(e, a); + if (n && i) { + var a, o, s = void 0, + c = void 0; + if (be.isPropertyAccessExpression(r) ? be.isIdentifier(r.name) && (c = s = y.createStringLiteralFromNode(r.name)) : be.isSimpleInlineableExpression(r.argumentExpression) ? c = s = r.argumentExpression : (c = y.createTempVariable(h), s = y.createAssignment(c, be.visitNode(r.argumentExpression, N, be.isExpression))), s && c) return a = y.createReflectGetCall(i, c, n), be.setTextRange(a, r), o = t ? void 0 : y.createTempVariable(h), a = be.expandPreOrPostfixIncrementOrDecrementExpression(y, e, a, h, o), a = y.createReflectSetCall(i, s, a, n), be.setOriginalNode(a, e), be.setTextRange(a, e), o && (a = y.createComma(a, o), be.setTextRange(a, e)), a + } + } + } + return be.visitEachChild(e, N, f) + } + + function Z(e) { + var t = be.nodeIsSynthesized(e) ? e : y.cloneNode(e); + return be.isSimpleInlineableExpression(e) ? { + readExpression: t, + initializeExpression: void 0 + } : { + readExpression: e = y.createTempVariable(h), + initializeExpression: y.createAssignment(e, t) + } + } + + function $(e) { + var t; + if (T) return g && k.set(be.getOriginalNodeId(e), g), r(), t = O(e, function(e) { + return be.visitNodes(e, N, be.isStatement) + }, e.body.statements), t = y.mergeLexicalEnvironment(t, z()), t = y.createImmediatelyInvokedArrowFunction(t), be.setOriginalNode(t, e), be.setTextRange(t, e), be.addEmitFlags(t, 2), t + } + + function ee(e, t) { + if (be.isDestructuringAssignment(e)) return r = d, d = void 0, e = y.updateBinaryExpression(e, be.visitNode(e.left, w), e.operatorToken, be.visitNode(e.right, N)), n = be.some(d) ? y.inlineExpressions(be.compact(__spreadArray(__spreadArray([], d, !0), [e], !1))) : e, d = r, n; + if (be.isAssignmentExpression(e)) + if (T && be.isPrivateIdentifierPropertyAccessExpression(e.left)) { + var r = J(e.left.name); + if (r) return be.setTextRange(be.setOriginalNode(te(r, e.left.expression, e.right, e.operatorToken.kind), e), e) + } else if (E && be.isSuperProperty(e.left) && m && g) { + var n = g.classConstructor, + r = g.superClassReference; + if (1 & g.facts) return y.updateBinaryExpression(e, M(e.left), e.operatorToken, be.visitNode(e.right, N, be.isExpression)); + if (n && r) { + var i, a, o = be.isElementAccessExpression(e.left) ? be.visitNode(e.left.argumentExpression, N, be.isExpression) : be.isIdentifier(e.left.name) ? y.createStringLiteralFromNode(e.left.name) : void 0; + if (o) return i = be.visitNode(e.right, N, be.isExpression), be.isCompoundAssignment(e.operatorToken.kind) && (a = o, be.isSimpleInlineableExpression(o) || (a = y.createTempVariable(h), o = y.createAssignment(a, o)), a = y.createReflectGetCall(r, a, n), be.setOriginalNode(a, e.left), be.setTextRange(a, e.left), i = y.createBinaryExpression(a, be.getNonAssignmentOperatorForCompoundAssignment(e.operatorToken.kind), i), be.setTextRange(i, e)), (a = t ? void 0 : y.createTempVariable(h)) && (i = y.createAssignment(a, i), be.setTextRange(a, e)), i = y.createReflectSetCall(r, o, i, n), be.setOriginalNode(i, e), be.setTextRange(i, e), a && (i = y.createComma(i, a), be.setTextRange(i, e)), i + } + } + return T && (t = e, be.isPrivateIdentifier(t.left)) && 101 === t.operatorToken.kind ? (o = J((r = e).left)) ? (n = be.visitNode(r.right, N, be.isExpression), be.setOriginalNode(f.getEmitHelperFactory().createClassPrivateFieldInHelper(o.brandCheckIdentifier, n), r)) : be.visitEachChild(r, N, f) : be.visitEachChild(e, N, f) + } + + function te(e, t, r, n) { + var i, a; + switch (t = be.visitNode(t, N, be.isExpression), r = be.visitNode(r, N, be.isExpression), be.isCompoundAssignment(n) && (a = (i = Z(t)).readExpression, t = i.initializeExpression || a, r = y.createBinaryExpression(X(e, a), be.getNonAssignmentOperatorForCompoundAssignment(n), r)), be.setCommentRange(t, be.moveRangePos(t, -1)), e.kind) { + case "a": + return f.getEmitHelperFactory().createClassPrivateFieldSetHelper(t, e.brandCheckIdentifier, r, e.kind, e.setterName); + case "m": + return f.getEmitHelperFactory().createClassPrivateFieldSetHelper(t, e.brandCheckIdentifier, r, e.kind, void 0); + case "f": + return f.getEmitHelperFactory().createClassPrivateFieldSetHelper(t, e.brandCheckIdentifier, r, e.kind, e.variableName); + default: + be.Debug.assertNever(e, "Unknown private element type") + } + } + + function re(e) { + return be.filter(e.members, be.isNonStaticMethodOrAccessorWithPrivateName) + } + + function ne(e, t) { + var r = a, + n = d, + i = (a = e, d = void 0, l.push(g), g = void 0, T && ((i = be.getNameOfDeclaration(e)) && be.isIdentifier(i) && (R().className = i), i = re(e), be.some(i)) && (R().weakSetName = ge("instances", i[0].name)), function(e) { + var t = 0, + r = be.getOriginalNode(e); + be.isClassDeclaration(r) && be.classOrConstructorParameterIsDecorated(r) && (t |= 1); + for (var n = 0, i = e.members; n < i.length; n++) { + var a = i[n]; + be.isStatic(a) && (a.name && (be.isPrivateIdentifier(a.name) || be.isAutoAccessorPropertyDeclaration(a)) && T && (t |= 2), be.isPropertyDeclaration(a) || be.isClassStaticBlockDeclaration(a)) && (K && 16384 & a.transformFlags && (1 & (t |= 8) || (t |= 2)), E) && 134217728 & a.transformFlags && (1 & t || (t |= 6)) + } + return t + }(e)), + t = (i && (L().facts = i), 8 & i && 0 == (2 & u) && (u |= 2, f.enableSubstitution(108), f.enableEmitNotification(259), f.enableEmitNotification(215), f.enableEmitNotification(173), f.enableEmitNotification(174), f.enableEmitNotification(175), f.enableEmitNotification(171), f.enableEmitNotification(169), f.enableEmitNotification(164)), t(e, i)); + return g = l.pop(), a = r, d = n, t + } + + function ie(e, t) { + 2 & t && (t = y.createTempVariable(h, !0), L().classConstructor = y.cloneNode(t), r = y.createAssignment(t, y.getInternalName(e))); + var r, t = be.visitNodes(e.modifiers, N, be.isModifierLike), + n = be.visitNodes(e.heritageClauses, P, be.isHeritageClause), + i = oe(e), + a = i.members, + i = i.prologue, + t = y.updateClassDeclaration(e, t, e.name, void 0, n, a), + n = []; + return i && n.push(y.createExpressionStatement(i)), n.push(t), r && B().unshift(r), be.some(d) && n.push(y.createExpressionStatement(y.inlineExpressions(d))), (o || T) && (a = be.getStaticPropertiesAndClassStaticBlock(e), be.some(a)) && le(n, a, y.getInternalName(e)), n + } + + function ae(t, e) { + var r = !!(1 & e), + n = be.getStaticPropertiesAndClassStaticBlock(t), + i = 16777216 & b.getNodeCheckFlags(t); + + function a() { + var e = b.getNodeCheckFlags(t); + return y.createTempVariable(524288 & e ? v : h, !!(16777216 & e)) + } + 2 & e && (o = a(), L().classConstructor = y.cloneNode(o)); + var o, e = be.visitNodes(t.modifiers, N, be.isModifierLike), + s = be.visitNodes(t.heritageClauses, P, be.isHeritageClause), + c = oe(t), + l = c.members, + c = c.prologue, + e = y.updateClassExpression(t, e, t.name, void 0, s, l), + s = []; + return c && s.push(c), T && be.some(n, function(e) { + return be.isClassStaticBlockDeclaration(e) || be.isPrivateIdentifierClassElementDeclaration(e) || S && be.isInitializedProperty(e) + }) || be.some(d) ? r ? (be.Debug.assertIsDefined(p, "Decorated classes transformed by TypeScript are expected to be within a variable declaration."), p && d && be.some(d) && p.push(y.createExpressionStatement(y.inlineExpressions(d))), p && be.some(n) && le(p, n, y.getInternalName(t)), o ? s.push(be.startOnNewLine(y.createAssignment(o, e)), be.startOnNewLine(o)) : (s.push(e), c && be.startOnNewLine(e))) : (o = o || a(), i && (0 == (1 & u) && (u |= 1, f.enableSubstitution(79), _ = []), (l = y.cloneNode(o)).autoGenerateFlags &= -9, _[be.getOriginalNodeId(t)] = l), be.setEmitFlags(e, 65536 | be.getEmitFlags(e)), s.push(be.startOnNewLine(y.createAssignment(o, e))), be.addRange(s, be.map(d, be.startOnNewLine)), be.addRange(s, function(e, t) { + for (var r = [], n = 0, i = e; n < i.length; n++) { + var a = i[n], + o = be.isClassStaticBlockDeclaration(a) ? $(a) : _e(a, t); + o && (be.startOnNewLine(o), be.setOriginalNode(o, a), be.addEmitFlags(o, 1536 & be.getEmitFlags(a)), be.setSourceMapRange(o, be.moveRangePastModifiers(a)), be.setCommentRange(o, a), r.push(o)) + } + return r + }(n, o)), s.push(be.startOnNewLine(o))) : (s.push(e), c && be.startOnNewLine(e)), y.inlineExpressions(s) + } + + function oe(e) { + if (T) { + for (var t = 0, r = e.members; t < r.length; t++) { + var n = r[t]; + be.isPrivateIdentifierClassElementDeclaration(n) && fe(n, n.name, de) + } + if (be.some(re(e)) && (u = R().weakSetName, be.Debug.assert(u, "weakSetName should be set in private identifier environment"), B().push(y.createAssignment(u, y.createNewExpression(y.createIdentifier("WeakSet"), void 0, [])))), C) + for (var i = 0, a = e.members; i < a.length; i++) { + n = a[i]; + be.isAutoAccessorPropertyDeclaration(n) && fe(n, y.getGeneratedPrivateNameForNode(n.name, void 0, "_accessor_storage"), pe) + } + } + var o, s, c, l, u = be.visitNodes(e.members, I, be.isClassElement); + return be.some(u, be.isConstructorDeclaration) || (o = ce(void 0, e)), !T && be.some(d) && (134234112 & (c = y.createExpressionStatement(y.inlineExpressions(d))).transformFlags && (l = y.createTempVariable(h), s = y.createArrowFunction(void 0, void 0, [], void 0, void 0, y.createBlock([c])), s = y.createAssignment(l, s), c = y.createExpressionStatement(y.createCallExpression(l, void 0, []))), l = y.createBlock([c]), c = y.createClassStaticBlockDeclaration(l), d = void 0), (o || c) && (l = be.append(l = void 0, o), l = be.append(l, c), l = be.addRange(l, u), u = be.setTextRange(y.createNodeArray(l), e.members)), { + members: u, + prologue: s + } + } + + function se(e) { + return !be.isStatic(e) && !be.hasAbstractModifier(be.getOriginalNode(e)) && (t && be.isPropertyDeclaration(e) || o && be.isInitializedProperty(e) || T && be.isPrivateIdentifierClassElementDeclaration(e) || T && C && be.isAutoAccessorPropertyDeclaration(e)) + } + + function ce(e, t) { + var r, n; + return e = be.visitNode(e, N, be.isConstructorDeclaration), be.some(t.members, se) && (n = !(!(n = be.getEffectiveBaseTypeNode(t)) || 104 === be.skipOuterExpressions(n.expression).kind), r = be.visitParameterList(e ? e.parameters : void 0, N, f), n = function(e, t, r) { + var n = be.getProperties(e, !1, !1); + D || (n = be.filter(n, function(e) { + return !!e.initializer || be.isPrivateIdentifier(e.name) || be.hasAccessorModifier(e) + })); + var i = re(e), + a = be.some(n) || be.some(i); + if (!t && !a) return be.visitFunctionBody(void 0, N, f); + U(); + var a = !t && r, + r = 0, + o = 0, + s = -1, + c = []; + null != (p = null == t ? void 0 : t.body) && p.statements && (o = y.copyPrologue(t.body.statements, c, !1, N), 0 <= (s = be.findSuperStatementIndex(t.body.statements, o)) ? (r = s + 1, c = __spreadArray(__spreadArray(__spreadArray([], c.slice(0, o), !0), be.visitNodes(t.body.statements, N, be.isStatement, o, r - o), !0), c.slice(o), !0)) : 0 <= o && (r = o)); + a && c.push(y.createExpressionStatement(y.createCallExpression(y.createSuper(), void 0, [y.createSpreadElement(y.createIdentifier("arguments"))]))); + var l = 0; + if (null != t && t.body) + if (D) c = c.filter(function(e) { + return !be.isParameterPropertyDeclaration(be.getOriginalNode(e), t) + }); + else { + for (var u = 0, _ = t.body.statements; u < _.length; u++) { + var d = _[u]; + be.isParameterPropertyDeclaration(be.getOriginalNode(d), t) && l++ + } + 0 < l && (p = be.visitNodes(t.body.statements, N, be.isStatement, r, l), 0 <= s ? be.addRange(c, p) : (s = o, a && s++, c = __spreadArray(__spreadArray(__spreadArray([], c.slice(0, s), !0), p, !0), c.slice(s), !0)), r += l) + } + var p, o = y.createThis(); + (function(e, t, r) { + T && be.some(t) && (t = R().weakSetName, be.Debug.assert(t, "weakSetName should be set in private identifier environment"), e.push(y.createExpressionStatement(function(e, t) { + return be.factory.createCallExpression(be.factory.createPropertyAccessExpression(t, "add"), void 0, [e]) + }(r, t)))) + })(c, i, o), le(c, n, o), t && be.addRange(c, be.visitNodes(t.body.statements, function(e) { + if (D && be.isParameterPropertyDeclaration(be.getOriginalNode(e), t)) return; + return N(e) + }, be.isStatement, r)); + if (0 !== (c = y.mergeLexicalEnvironment(c, z())).length || t) return p = null != t && t.body && t.body.statements.length >= c.length && null != (a = t.body.multiLine) ? a : 0 < c.length, be.setTextRange(y.createBlock(be.setTextRange(y.createNodeArray(c), t ? t.body.statements : e.members), p), t ? t.body : void 0) + }(t, e, n)) ? e ? (be.Debug.assert(r), y.updateConstructorDeclaration(e, void 0, r, n)) : be.startOnNewLine(be.setOriginalNode(be.setTextRange(y.createConstructorDeclaration(void 0, null != r ? r : [], n), e || t), e)) : e + } + + function le(e, t, r) { + for (var n = 0, i = t; n < i.length; n++) { + var a = i[n]; + (!be.isStatic(a) || T || D) && (a = ue(a, r)) && e.push(a) + } + } + + function ue(e, t) { + var r, t = be.isClassStaticBlockDeclaration(e) ? $(e) : _e(e, t); + if (t) return r = y.createExpressionStatement(t), be.setOriginalNode(r, e), be.addEmitFlags(r, 1536 & be.getEmitFlags(e)), be.setSourceMapRange(r, be.moveRangePastModifiers(e)), be.setCommentRange(r, e), be.setSyntheticLeadingComments(t, void 0), be.setSyntheticTrailingComments(t, void 0), r + } + + function _e(e, t) { + var r = m, + t = function(e, t) { + var r = !D, + n = be.hasAccessorModifier(e) ? y.getGeneratedPrivateNameForNode(e.name) : be.isComputedPropertyName(e.name) && !be.isSimpleInlineableExpression(e.name.expression) ? y.updateComputedPropertyName(e.name, y.getGeneratedNameForNode(e.name)) : e.name; + be.hasStaticModifier(e) && (m = e); + if (T && be.isPrivateIdentifier(n)) { + var i = J(n); + if (i) return "f" === i.kind ? i.isStatic ? function(e, t) { + return be.factory.createAssignment(e, be.factory.createObjectLiteralExpression([be.factory.createPropertyAssignment("value", t || be.factory.createVoidZero())])) + }(i.variableName, be.visitNode(e.initializer, N, be.isExpression)) : function(e, t, r) { + return be.factory.createCallExpression(be.factory.createPropertyAccessExpression(r, "set"), void 0, [e, t || be.factory.createVoidZero()]) + }(t, be.visitNode(e.initializer, N, be.isExpression), i.brandCheckIdentifier) : void 0; + be.Debug.fail("Undeclared private name for property declaration.") + } + if ((be.isPrivateIdentifier(n) || be.hasStaticModifier(e)) && !e.initializer) return; + i = be.getOriginalNode(e); + if (be.hasSyntacticModifier(i, 256)) return; + e = e.initializer || r ? null != (e = be.visitNode(e.initializer, N, be.isExpression)) ? e : y.createVoidZero() : be.isParameterPropertyDeclaration(i, i.parent) && be.isIdentifier(n) ? n : y.createVoidZero(); + return r || be.isPrivateIdentifier(n) ? (i = be.createMemberAccessForPropertyName(y, t, n, n), y.createAssignment(i, e)) : (r = be.isComputedPropertyName(n) ? n.expression : be.isIdentifier(n) ? y.createStringLiteral(be.unescapeLeadingUnderscores(n.escapedText)) : n, i = y.createPropertyDescriptor({ + value: e, + configurable: !0, + writable: !0, + enumerable: !0 + }), y.createObjectDefinePropertyCall(t, r, i)) + }(e, t); + return t && be.hasStaticModifier(e) && null != g && g.facts && (be.setOriginalNode(t, e), be.addEmitFlags(t, 2), k.set(be.getOriginalNodeId(t), g)), m = r, t + } + + function M(e) { + return be.isPropertyAccessExpression(e) ? y.updatePropertyAccessExpression(e, y.createVoidZero(), e.name) : y.updateElementAccessExpression(e, y.createVoidZero(), be.visitNode(e.argumentExpression, N, be.isExpression)) + } + + function L() { + return g = g || { + facts: 0, + classConstructor: void 0, + superClassReference: void 0, + privateIdentifierEnvironment: void 0 + } + } + + function R() { + var e = L(); + return e.privateIdentifierEnvironment || (e.privateIdentifierEnvironment = { + className: void 0, + weakSetName: void 0, + identifiers: void 0, + generatedIdentifiers: void 0 + }), e.privateIdentifierEnvironment + } + + function B() { + return null != d ? d : d = [] + } + + function de(e, t, r, n, i, a, o) { + var s, c, l, u, _, d, p, f, g, m, y, h, v; + be.isAutoAccessorPropertyDeclaration(e) ? (f = r, g = n, m = i, y = a, h = j(p = t, "_get"), v = j(p, "_set"), f = m ? be.Debug.checkDefined(f.classConstructor, "classConstructor should be set in private identifier environment") : be.Debug.checkDefined(g.weakSetName, "weakSetName should be set in private identifier environment"), xe(g, p, { + kind: "a", + getterName: h, + setterName: v, + brandCheckIdentifier: f, + isStatic: m, + isValid: y + })) : be.isPropertyDeclaration(e) ? pe(0, t, r, n, i, a) : be.isMethodDeclaration(e) ? (g = r, p = n, h = i, v = a, m = j(f = t), g = h ? be.Debug.checkDefined(g.classConstructor, "classConstructor should be set in private identifier environment") : be.Debug.checkDefined(p.weakSetName, "weakSetName should be set in private identifier environment"), xe(p, f, { + kind: "m", + methodName: m, + brandCheckIdentifier: g, + isStatic: h, + isValid: v + })) : be.isGetAccessorDeclaration(e) ? (y = r, c = n, l = i, u = a, _ = o, d = j(s = t, "_get"), y = l ? be.Debug.checkDefined(y.classConstructor, "classConstructor should be set in private identifier environment") : be.Debug.checkDefined(c.weakSetName, "weakSetName should be set in private identifier environment"), "a" !== (null == _ ? void 0 : _.kind) || _.isStatic !== l || _.getterName ? xe(c, s, { + kind: "a", + getterName: d, + setterName: void 0, + brandCheckIdentifier: y, + isStatic: l, + isValid: u + }) : _.getterName = d) : be.isSetAccessorDeclaration(e) && (c = r, s = n, l = i, u = a, _ = o, e = j(d = t, "_set"), c = l ? be.Debug.checkDefined(c.classConstructor, "classConstructor should be set in private identifier environment") : be.Debug.checkDefined(s.weakSetName, "weakSetName should be set in private identifier environment"), "a" !== (null == _ ? void 0 : _.kind) || _.isStatic !== l || _.setterName ? xe(s, d, { + kind: "a", + getterName: void 0, + setterName: e, + brandCheckIdentifier: c, + isStatic: l, + isValid: u + }) : _.setterName = e) + } + + function pe(e, t, r, n, i, a, o) { + i ? (be.Debug.assert(r.classConstructor, "classConstructor should be set in private identifier environment"), i = j(t), xe(n, t, { + kind: "f", + brandCheckIdentifier: r.classConstructor, + variableName: i, + isStatic: !0, + isValid: a + })) : (xe(n, t, { + kind: "f", + brandCheckIdentifier: r = j(t), + variableName: void 0, + isStatic: !1, + isValid: a + }), B().push(y.createAssignment(r, y.createNewExpression(y.createIdentifier("WeakMap"), void 0, [])))) + } + + function fe(e, t, r) { + var n = L(), + i = R(), + a = (a = i, o = t, be.isGeneratedPrivateIdentifier(o) ? Se(a, be.getNodeForGeneratedName(o)) : De(a, o.escapedText)), + o = be.hasStaticModifier(e); + r(e, r = t, n, i, o, !(!be.isGeneratedPrivateIdentifier(r) && "#constructor" === r.escapedText) && void 0 === a, a) + } + + function ge(e, t, r) { + var n = R().className, + n = n ? { + prefix: "_", + node: n, + suffix: "_" + } : "_", + e = "object" == typeof e ? y.getGeneratedNameForNode(e, 24, n, r) : "string" == typeof e ? y.createUniqueName(e, 16, n, r) : y.createTempVariable(void 0, !0, n, r); + return (524288 & b.getNodeCheckFlags(t) ? v : h)(e), e + } + + function j(e, t) { + var r = be.tryGetTextOfPropertyName(e); + return ge(null != (r = null == r ? void 0 : r.substring(1)) ? r : e, e, t) + } + + function J(e) { + return be.isGeneratedPrivateIdentifier(e) ? me(Se, be.getNodeForGeneratedName(e)) : me(De, e.escapedText) + } + + function me(e, t) { + if (null != g && g.privateIdentifierEnvironment && (n = e(g.privateIdentifierEnvironment, t))) return n; + for (var r = l.length - 1; 0 <= r; --r) { + var n, i = l[r]; + if (i) + if (i.privateIdentifierEnvironment) + if (n = e(i.privateIdentifierEnvironment, t)) return n + } + } + + function ye(e) { + var t, r = y.getGeneratedNameForNode(e), + n = J(e.name); + return n ? (t = e.expression, !be.isThisProperty(e) && !be.isSuperProperty(e) && be.isSimpleCopiableExpression(e.expression) || (t = y.createTempVariable(h, !0), B().push(y.createBinaryExpression(t, 63, be.visitNode(e.expression, N, be.isExpression)))), y.createAssignmentTargetWrapper(r, te(n, t, r, 63))) : be.visitEachChild(e, N, f) + } + + function he(e) { + var t = be.getTargetOfBindingOrAssignmentElement(e); + if (t) { + var r, n, i, a = void 0; + if (be.isPrivateIdentifierPropertyAccessExpression(t) ? a = ye(t) : E && be.isSuperProperty(t) && m && g && (r = g.classConstructor, n = g.superClassReference, 1 & g.facts ? a = M(t) : r && n && (t = be.isElementAccessExpression(t) ? be.visitNode(t.argumentExpression, N, be.isExpression) : be.isIdentifier(t.name) ? y.createStringLiteralFromNode(t.name) : void 0) && (i = y.createTempVariable(void 0), a = y.createAssignmentTargetWrapper(i, y.createReflectSetCall(n, t, i, r)))), a) return be.isAssignmentExpression(e) ? y.updateBinaryExpression(e, a, e.operatorToken, be.visitNode(e.right, N, be.isExpression)) : be.isSpreadElement(e) ? y.updateSpreadElement(e, a) : a + } + return be.visitNode(e, w) + } + + function ve(e) { + if (be.isObjectBindingOrAssignmentElement(e) && !be.isShorthandPropertyAssignment(e)) { + var t, r, n, i = be.getTargetOfBindingOrAssignmentElement(e), + a = void 0; + if (i && (be.isPrivateIdentifierPropertyAccessExpression(i) ? a = ye(i) : E && be.isSuperProperty(i) && m && g && (t = g.classConstructor, n = g.superClassReference, 1 & g.facts ? a = M(i) : t && n && (i = be.isElementAccessExpression(i) ? be.visitNode(i.argumentExpression, N, be.isExpression) : be.isIdentifier(i.name) ? y.createStringLiteralFromNode(i.name) : void 0) && (r = y.createTempVariable(void 0), a = y.createAssignmentTargetWrapper(r, y.createReflectSetCall(n, i, r, t))))), be.isPropertyAssignment(e)) return n = be.getInitializerOfBindingOrAssignmentElement(e), y.updatePropertyAssignment(e, be.visitNode(e.name, N, be.isPropertyName), a ? n ? y.createAssignment(a, be.visitNode(n, N)) : a : be.visitNode(e.initializer, w, be.isExpression)); + if (be.isSpreadAssignment(e)) return y.updateSpreadAssignment(e, a || be.visitNode(e.expression, w, be.isExpression)); + be.Debug.assert(void 0 === a, "Should not have generated a wrapped target") + } + return be.visitNode(e, N) + } + } + }(ts = ts || {}), ! function(y) { + y.createRuntimeTypeSerializer = function(e) { + var o, s, a = e.hoistVariableDeclaration, + c = e.getEmitResolver(), + e = e.getCompilerOptions(), + r = y.getEmitScriptTarget(e), + l = y.getStrictOptionValue(e, "strictNullChecks"); + return { + serializeTypeNode: function(e, t) { + return n(e, d, t) + }, + serializeTypeOfNode: function(e, t) { + return n(e, u, t) + }, + serializeParameterTypesOfNode: function(e, t, r) { + return n(e, i, t, r) + }, + serializeReturnTypeOfNode: function(e, t) { + return n(e, _, t) + } + }; + + function n(e, t, r, n) { + var i = o, + a = s, + e = (o = e.currentLexicalScope, s = e.currentNameScope, void 0 === n ? t(r) : t(r, n)); + return o = i, s = a, e + } + + function u(e) { + switch (e.kind) { + case 169: + case 166: + return d(e.type); + case 175: + case 174: + return d((t = e, (t = c.getAllAccessorDeclarations(t)).setAccessor && y.getSetAccessorTypeAnnotationNode(t.setAccessor) || t.getAccessor && y.getEffectiveReturnTypeNode(t.getAccessor))); + case 260: + case 228: + case 171: + return y.factory.createIdentifier("Function"); + default: + return y.factory.createVoidZero() + } + var t + } + + function i(e, t) { + var e = y.isClassLike(e) ? y.getFirstConstructorWithBody(e) : y.isFunctionLike(e) && y.nodeIsPresent(e.body) ? e : void 0, + r = []; + if (e) + for (var n = function(e, t) { + if (t && 174 === e.kind) { + t = y.getAllAccessorDeclarations(t.members, e).setAccessor; + if (t) return t.parameters + } + return e.parameters + }(e, t), i = n.length, a = 0; a < i; a++) { + var o = n[a]; + 0 === a && y.isIdentifier(o.name) && "this" === o.name.escapedText || (o.dotDotDotToken ? r.push(d(y.getRestParameterElementType(o.type))) : r.push(u(o))) + } + return y.factory.createArrayLiteralExpression(r) + } + + function _(e) { + return y.isFunctionLike(e) && e.type ? d(e.type) : y.isAsyncFunction(e) ? y.factory.createIdentifier("Promise") : y.factory.createVoidZero() + } + + function d(e) { + if (void 0 !== e) switch ((e = y.skipTypeParentheses(e)).kind) { + case 114: + case 155: + case 144: + return y.factory.createVoidZero(); + case 181: + case 182: + return y.factory.createIdentifier("Function"); + case 185: + case 186: + return y.factory.createIdentifier("Array"); + case 179: + return e.assertsModifier ? y.factory.createVoidZero() : y.factory.createIdentifier("Boolean"); + case 134: + return y.factory.createIdentifier("Boolean"); + case 200: + case 152: + return y.factory.createIdentifier("String"); + case 149: + return y.factory.createIdentifier("Object"); + case 198: + return function e(t) { + switch (t.kind) { + case 10: + case 14: + return y.factory.createIdentifier("String"); + case 221: + var r = t.operand; + switch (r.kind) { + case 8: + case 9: + return e(r); + default: + return y.Debug.failBadSyntaxKind(r) + } + case 8: + return y.factory.createIdentifier("Number"); + case 9: + return m("BigInt", 7); + case 110: + case 95: + return y.factory.createIdentifier("Boolean"); + case 104: + return y.factory.createVoidZero(); + default: + return y.Debug.failBadSyntaxKind(t) + } + }(e.literal); + case 148: + return y.factory.createIdentifier("Number"); + case 160: + return m("BigInt", 7); + case 153: + return m("Symbol", 2); + case 180: + var t, r, n = e, + i = c.getTypeReferenceSerializationKind(n.typeName, null != s ? s : o); + switch (i) { + case y.TypeReferenceSerializationKind.Unknown: + return y.findAncestor(n, function(e) { + return e.parent && y.isConditionalTypeNode(e.parent) && (e.parent.trueType === e || e.parent.falseType === e) + }) ? y.factory.createIdentifier("Object") : (t = function e(t) { + if (79 === t.kind) return f(r = g(t), r); + if (79 === t.left.kind) return f(g(t.left), g(t)); + var r = e(t.left); + var n = y.factory.createTempVariable(a); + return y.factory.createLogicalAnd(y.factory.createLogicalAnd(r.left, y.factory.createStrictInequality(y.factory.createAssignment(n, r.right), y.factory.createVoidZero())), y.factory.createPropertyAccessExpression(n, t.right)) + }(n.typeName), r = y.factory.createTempVariable(a), y.factory.createConditionalExpression(y.factory.createTypeCheck(y.factory.createAssignment(r, t), "function"), void 0, r, void 0, y.factory.createIdentifier("Object"))); + case y.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue: + return g(n.typeName); + case y.TypeReferenceSerializationKind.VoidNullableOrNeverType: + return y.factory.createVoidZero(); + case y.TypeReferenceSerializationKind.BigIntLikeType: + return m("BigInt", 7); + case y.TypeReferenceSerializationKind.BooleanType: + return y.factory.createIdentifier("Boolean"); + case y.TypeReferenceSerializationKind.NumberLikeType: + return y.factory.createIdentifier("Number"); + case y.TypeReferenceSerializationKind.StringLikeType: + return y.factory.createIdentifier("String"); + case y.TypeReferenceSerializationKind.ArrayLikeType: + return y.factory.createIdentifier("Array"); + case y.TypeReferenceSerializationKind.ESSymbolType: + return m("Symbol", 2); + case y.TypeReferenceSerializationKind.TypeWithCallSignature: + return y.factory.createIdentifier("Function"); + case y.TypeReferenceSerializationKind.Promise: + return y.factory.createIdentifier("Promise"); + case y.TypeReferenceSerializationKind.ObjectType: + return y.factory.createIdentifier("Object"); + default: + return y.Debug.assertNever(i) + } + return; + case 190: + return p(e.types, !0); + case 189: + return p(e.types, !1); + case 191: + return p([e.trueType, e.falseType], !1); + case 195: + if (146 === e.operator) return d(e.type); + break; + case 183: + case 196: + case 197: + case 184: + case 131: + case 157: + case 194: + case 202: + break; + case 315: + case 316: + case 320: + case 321: + case 322: + break; + case 317: + case 318: + case 319: + return d(e.type); + default: + return y.Debug.failBadSyntaxKind(e) + } + return y.factory.createIdentifier("Object") + } + + function p(e, t) { + for (var r, n = 0, i = e; n < i.length; n++) { + var a = i[n]; + if (144 === (a = y.skipTypeParentheses(a)).kind) { + if (t) return y.factory.createVoidZero() + } else { + if (157 === a.kind) { + if (t) continue; + return y.factory.createIdentifier("Object") + } + if (131 === a.kind) return y.factory.createIdentifier("Object"); + if (l || !(y.isLiteralTypeNode(a) && 104 === a.literal.kind || 155 === a.kind)) { + a = d(a); + if (y.isIdentifier(a) && "Object" === a.escapedText) return a; + if (r) { + if (! function e(t, r) { + return y.isGeneratedIdentifier(t) ? y.isGeneratedIdentifier(r) : y.isIdentifier(t) ? y.isIdentifier(r) && t.escapedText === r.escapedText : y.isPropertyAccessExpression(t) ? y.isPropertyAccessExpression(r) && e(t.expression, r.expression) && e(t.name, r.name) : y.isVoidExpression(t) ? y.isVoidExpression(r) && y.isNumericLiteral(t.expression) && "0" === t.expression.text && y.isNumericLiteral(r.expression) && "0" === r.expression.text : y.isStringLiteral(t) ? y.isStringLiteral(r) && t.text === r.text : y.isTypeOfExpression(t) ? y.isTypeOfExpression(r) && e(t.expression, r.expression) : y.isParenthesizedExpression(t) ? y.isParenthesizedExpression(r) && e(t.expression, r.expression) : y.isConditionalExpression(t) ? y.isConditionalExpression(r) && e(t.condition, r.condition) && e(t.whenTrue, r.whenTrue) && e(t.whenFalse, r.whenFalse) : !!y.isBinaryExpression(t) && y.isBinaryExpression(r) && t.operatorToken.kind === r.operatorToken.kind && e(t.left, r.left) && e(t.right, r.right) + }(r, a)) return y.factory.createIdentifier("Object") + } else r = a + } + } + } + return null != r ? r : y.factory.createVoidZero() + } + + function f(e, t) { + return y.factory.createLogicalAnd(y.factory.createStrictInequality(y.factory.createTypeOfExpression(e), y.factory.createStringLiteral("undefined")), t) + } + + function g(e) { + switch (e.kind) { + case 79: + var t = y.setParent(y.setTextRange(y.parseNodeFactory.cloneNode(e), e), e.parent); + return t.original = void 0, y.setParent(t, y.getParseTreeNode(o)), t; + case 163: + return t = e, y.factory.createPropertyAccessExpression(g(t.left), t.right) + } + } + + function m(e, t) { + return r < t ? (t = e, y.factory.createConditionalExpression(y.factory.createTypeCheck(y.factory.createIdentifier(t), "function"), void 0, y.factory.createIdentifier(t), void 0, y.factory.createIdentifier("Object"))) : y.factory.createIdentifier(e) + } + } + }(ts = ts || {}), ! function(b) { + b.transformLegacyDecorators = function(l) { + var u, _ = l.factory, + d = l.getEmitHelperFactory, + p = l.hoistVariableDeclaration, + f = l.getEmitResolver(), + e = l.getCompilerOptions(), + g = b.getEmitScriptTarget(e), + r = l.onSubstituteNode; + return l.onSubstituteNode = function(e, t) { + return t = r(e, t), 1 !== e ? t : 79 !== (e = t).kind ? e : null != (e = function(e) { + if (u && 33554432 & f.getNodeCheckFlags(e)) { + var t = f.getReferencedValueDeclaration(e); + if (t) { + var t = u[t.id]; + if (t) return t = _.cloneNode(t), b.setSourceMapRange(t, e), b.setCommentRange(t, e), t + } + } + return + }(t = e)) ? e : t + }, b.chainBundle(l, function(e) { + e = b.visitEachChild(e, m, l); + return b.addEmitHelpers(e, l.readEmitHelpers()), e + }); + + function s(e) { + return b.isDecorator(e) ? void 0 : e + } + + function m(e) { + if (!(33554432 & e.transformFlags)) return e; + switch (e.kind) { + case 167: + return; + case 260: + var t = e; + return b.classOrConstructorParameterIsDecorated(t) || b.childIsDecorated(t) ? (1 < (o = (b.hasDecorators(t) ? function(e, t) { + var r = b.moveRangePastModifiers(e), + n = function(e) { + { + var t; + if (16777216 & f.getNodeCheckFlags(e)) return u || (l.enableSubstitution(79), u = []), t = _.createUniqueName(e.name && !b.isGeneratedIdentifier(e.name) ? b.idText(e.name) : "default"), u[b.getOriginalNodeId(e)] = t, p(t), t + } + }(e), + i = g <= 2 ? _.getInternalName(e, !1, !0) : _.getLocalName(e, !1, !0), + a = b.visitNodes(e.heritageClauses, m, b.isHeritageClause), + o = b.visitNodes(e.members, m, b.isClassElement), + s = [], + c = (c = y(e, o), o = c.members, s = c.decorationStatements, _.createClassExpression(void 0, t, void 0, a, o)), + t = (b.setOriginalNode(c, e), b.setTextRange(c, r), _.createVariableStatement(void 0, _.createVariableDeclarationList([_.createVariableDeclaration(i, void 0, void 0, n ? _.createAssignment(n, c) : c)], 1))), + a = (b.setOriginalNode(t, e), b.setTextRange(t, r), b.setCommentRange(t, e), [t]); + return b.addRange(a, s), + function(e, t) { + var r = function(e) { + var t, r, n = h(b.getAllDecoratorsOfClass(e)); + if (n) return t = u && u[b.getOriginalNodeId(e)], r = g <= 2 ? _.getInternalName(e, !1, !0) : _.getLocalName(e, !1, !0), n = d().createDecorateHelper(n, r), r = _.createAssignment(r, t ? _.createAssignment(t, n) : n), b.setEmitFlags(r, 1536), b.setSourceMapRange(r, b.moveRangePastModifiers(e)), r + }(t); + r && e.push(b.setOriginalNode(_.createExpressionStatement(r), t)) + }(a, e), a + } : function(e, t) { + var r = b.visitNodes(e.modifiers, s, b.isModifier), + n = b.visitNodes(e.heritageClauses, m, b.isHeritageClause), + i = b.visitNodes(e.members, m, b.isClassElement), + a = [], + o = (o = y(e, i), i = o.members, a = o.decorationStatements, _.updateClassDeclaration(e, r, t, void 0, n, i)); + return b.addRange([o], a) + })(t, t.name)).length && (o.push(_.createEndOfDeclarationMarker(t)), b.setEmitFlags(o[0], 4194304 | b.getEmitFlags(o[0]))), b.singleOrMany(o)) : b.visitEachChild(t, m, l); + case 228: + return o = e, _.updateClassExpression(o, b.visitNodes(o.modifiers, s, b.isModifier), o.name, void 0, b.visitNodes(o.heritageClauses, m, b.isHeritageClause), b.visitNodes(o.members, m, b.isClassElement)); + case 173: + return t = e, _.updateConstructorDeclaration(t, b.visitNodes(t.modifiers, s, b.isModifier), b.visitNodes(t.parameters, m, b.isParameterDeclaration), b.visitNode(t.body, m, b.isBlock)); + case 171: + return a = e, c(_.updateMethodDeclaration(a, b.visitNodes(a.modifiers, s, b.isModifier), a.asteriskToken, b.visitNode(a.name, m, b.isPropertyName), void 0, void 0, b.visitNodes(a.parameters, m, b.isParameterDeclaration), void 0, b.visitNode(a.body, m, b.isBlock)), a); + case 175: + return a = e, c(_.updateSetAccessorDeclaration(a, b.visitNodes(a.modifiers, s, b.isModifier), b.visitNode(a.name, m, b.isPropertyName), b.visitNodes(a.parameters, m, b.isParameterDeclaration), b.visitNode(a.body, m, b.isBlock)), a); + case 174: + return i = e, c(_.updateGetAccessorDeclaration(i, b.visitNodes(i.modifiers, s, b.isModifier), b.visitNode(i.name, m, b.isPropertyName), b.visitNodes(i.parameters, m, b.isParameterDeclaration), void 0, b.visitNode(i.body, m, b.isBlock)), i); + case 169: + i = e; + return 16777216 & i.flags || b.hasSyntacticModifier(i, 2) ? void 0 : c(_.updatePropertyDeclaration(i, b.visitNodes(i.modifiers, s, b.isModifier), b.visitNode(i.name, m, b.isPropertyName), void 0, void 0, b.visitNode(i.initializer, m, b.isExpression)), i); + case 166: + var r = e, + n = _.updateParameterDeclaration(r, b.elideNodes(_, r.modifiers), r.dotDotDotToken, b.visitNode(r.name, m, b.isBindingName), void 0, void 0, b.visitNode(r.initializer, m, b.isExpression)); + return n !== r && (b.setCommentRange(n, r), b.setTextRange(n, b.moveRangePastModifiers(r)), b.setSourceMapRange(n, b.moveRangePastModifiers(r)), b.setEmitFlags(n.name, 32)), n; + default: + return b.visitEachChild(e, m, l) + } + var i, a, o + } + + function i(e) { + return !!(536870912 & e.transformFlags) + } + + function a(e) { + return b.some(e, i) + } + + function y(e, t) { + var r = []; + return n(r, e, !1), n(r, e, !0), + function(e) { + for (var t = 0, r = e.members; t < r.length; t++) { + var n = r[t]; + if (b.canHaveDecorators(n)) { + n = b.getAllDecoratorsOfClassElement(n, e); + if (b.some(null == n ? void 0 : n.decorators, i)) return 1; + if (b.some(null == n ? void 0 : n.parameters, a)) return 1 + } + } + }(e) && (t = b.setTextRange(_.createNodeArray(__spreadArray(__spreadArray([], t, !0), [_.createClassStaticBlockDeclaration(_.createBlock(r, !0))], !1)), t), r = void 0), { + decorationStatements: r, + members: t + } + } + + function c(e, t) { + return e !== t && (b.setCommentRange(e, t), b.setSourceMapRange(e, b.moveRangePastModifiers(t))), e + } + + function h(e) { + var t; + if (e) return b.addRange(t = [], b.map(e.decorators, v)), b.addRange(t, b.flatMap(e.parameters, o)), t + } + + function n(e, t, r) { + b.addRange(e, b.map(function(e, t) { + for (var r, t = function(r, n) { + return b.filter(r.members, function(e) { + return e = e, t = n, b.nodeOrChildIsDecorated(e, r) && t === b.isStatic(e); + var t + }) + }(e, t), n = 0, i = t; n < i.length; n++) { + var a = i[n]; + r = b.append(r, function(e, t) { + var r, n, i = h(b.getAllDecoratorsOfClassElement(t, e)); + if (i) return e = function(e, t) { + return b.isStatic(t) ? _.getDeclarationName(e) : function(e) { + return _.createPropertyAccessExpression(_.getDeclarationName(e), "prototype") + }(e) + }(e, t), r = function(e, t) { + e = e.name; + return b.isPrivateIdentifier(e) ? _.createIdentifier("") : b.isComputedPropertyName(e) ? t && !b.isSimpleInlineableExpression(e.expression) ? _.getGeneratedNameForNode(e) : e.expression : b.isIdentifier(e) ? _.createStringLiteral(b.idText(e)) : _.cloneNode(e) + }(t, !b.hasSyntacticModifier(t, 2)), n = 0 < g ? b.isPropertyDeclaration(t) && !b.hasAccessorModifier(t) ? _.createVoidZero() : _.createNull() : void 0, i = d().createDecorateHelper(i, e, r, n), b.setEmitFlags(i, 1536), b.setSourceMapRange(i, b.moveRangePastModifiers(t)), i + }(e, a)) + } + return r + }(t, r), function(e) { + return _.createExpressionStatement(e) + })) + } + + function v(e) { + return b.visitNode(e.expression, m, b.isExpression) + } + + function o(e, t) { + if (e) + for (var r = [], n = 0, i = e; n < i.length; n++) { + var a = i[n], + o = d().createParamHelper(v(a), t); + b.setTextRange(o, a.expression), b.setEmitFlags(o, 1536), r.push(o) + } + return r + } + } + }(ts = ts || {}), ! function(q) { + function W(n, e, t, r) { + var i = 0 != (4096 & e.getNodeCheckFlags(t)), + a = []; + return r.forEach(function(e, t) { + var t = q.unescapeLeadingUnderscores(t), + r = []; + r.push(n.createPropertyAssignment("get", n.createArrowFunction(void 0, void 0, [], void 0, void 0, q.setEmitFlags(n.createPropertyAccessExpression(q.setEmitFlags(n.createSuper(), 4), t), 4)))), i && r.push(n.createPropertyAssignment("set", n.createArrowFunction(void 0, void 0, [n.createParameterDeclaration(void 0, void 0, "v", void 0, void 0, void 0)], void 0, void 0, n.createAssignment(q.setEmitFlags(n.createPropertyAccessExpression(q.setEmitFlags(n.createSuper(), 4), t), 4), n.createIdentifier("v"))))), a.push(n.createPropertyAssignment(t, n.createObjectLiteralExpression(r))) + }), n.createVariableStatement(void 0, n.createVariableDeclarationList([n.createVariableDeclaration(n.createUniqueName("_super", 48), void 0, void 0, n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"), "create"), void 0, [n.createNull(), n.createObjectLiteralExpression(a, !0)]))], 2)) + } + q.transformES2017 = function(c) { + var a, d, p, f, g = c.factory, + m = c.getEmitHelperFactory, + y = c.resumeLexicalEnvironment, + h = c.endLexicalEnvironment, + i = c.hoistVariableDeclaration, + v = c.getEmitResolver(), + t = c.getCompilerOptions(), + b = q.getEmitScriptTarget(t), + o = 0, + x = [], + s = 0, + l = c.onEmitNode, + r = c.onSubstituteNode; + return c.onEmitNode = function(e, t, r) { + if (1 & a && function(e) { + e = e.kind; + return 260 === e || 173 === e || 171 === e || 174 === e || 175 === e + }(t)) { + var n = 6144 & v.getNodeCheckFlags(t); + if (n !== o) return i = o, o = n, l(e, t, r), void(o = i) + } else { + var i; + if (a && x[q.getNodeId(t)]) return i = o, o = 0, l(e, t, r), void(o = i) + } + l(e, t, r) + }, c.onSubstituteNode = function(e, t) { + if (t = r(e, t), 1 === e && o) return function(e) { + switch (e.kind) { + case 208: + return M(e); + case 209: + return L(e); + case 210: + return function(e) { + var t = e.expression; + if (q.isSuperProperty(t)) return t = (q.isPropertyAccessExpression(t) ? M : L)(t), g.createCallExpression(g.createPropertyAccessExpression(t, "call"), void 0, __spreadArray([g.createThis()], e.arguments, !0)); + return e + }(e) + } + return e + }(t); + return t + }, q.chainBundle(c, function(e) { + if (e.isDeclarationFile) return e; + u(1, !1), u(2, !q.isEffectiveStrictModeSourceFile(e, t)); + e = q.visitEachChild(e, T, c); + return q.addEmitHelpers(e, c.readEmitHelpers()), e + }); + + function u(e, t) { + s = t ? s | e : s & ~e + } + + function n(e) { + return 0 != (s & e) + } + + function D() { + return n(2) + } + + function _(e, t, r) { + var n, e = e & ~s; + return e ? (u(e, !0), n = t(r), u(e, !1), n) : t(r) + } + + function S(e) { + return q.visitEachChild(e, T, c) + } + + function T(e) { + if (0 == (256 & e.transformFlags)) return e; + switch (e.kind) { + case 132: + return; + case 220: + var t = e; + return n(1) ? q.setOriginalNode(q.setTextRange(g.createYieldExpression(void 0, q.visitNode(t.expression, T, q.isExpression)), t), t) : q.visitEachChild(t, T, c); + case 171: + return _(3, B, e); + case 259: + return _(3, z, e); + case 215: + return _(3, U, e); + case 216: + return _(1, K, e); + case 208: + return p && q.isPropertyAccessExpression(e) && 106 === e.expression.kind && p.add(e.name.escapedText), q.visitEachChild(e, T, c); + case 209: + return p && 106 === e.expression.kind && (f = !0), q.visitEachChild(e, T, c); + case 174: + return _(3, j, e); + case 175: + return _(3, J, e); + case 173: + return _(3, R, e); + case 260: + case 228: + return _(3, S, e); + default: + return q.visitEachChild(e, T, c) + } + } + + function C(e) { + if (q.isNodeWithPossibleHoistedDeclaration(e)) switch (e.kind) { + case 240: + var t = e; + return k(t.declarationList) ? (s = N(t.declarationList, !1)) ? g.createExpressionStatement(s) : void 0 : q.visitEachChild(t, T, c); + case 245: + return t = (s = e).initializer, g.updateForStatement(s, k(t) ? N(t, !1) : q.visitNode(s.initializer, T, q.isForInitializer), q.visitNode(s.condition, T, q.isExpression), q.visitNode(s.incrementor, T, q.isExpression), q.visitIterationBody(s.statement, C, c)); + case 246: + return o = e, g.updateForInStatement(o, k(o.initializer) ? N(o.initializer, !0) : q.visitNode(o.initializer, T, q.isForInitializer), q.visitNode(o.expression, T, q.isExpression), q.visitIterationBody(o.statement, C, c)); + case 247: + return o = e, g.updateForOfStatement(o, q.visitNode(o.awaitModifier, T, q.isToken), k(o.initializer) ? N(o.initializer, !0) : q.visitNode(o.initializer, T, q.isForInitializer), q.visitNode(o.expression, T, q.isExpression), q.visitIterationBody(o.statement, C, c)); + case 295: + var r, n, i = e, + a = new q.Set; + return E(i.variableDeclaration, a), a.forEach(function(e, t) { + d.has(t) && (r = r || new q.Set(d)).delete(t) + }), r ? (a = d, d = r, n = q.visitEachChild(i, C, c), d = a, n) : q.visitEachChild(i, C, c); + case 238: + case 252: + case 266: + case 292: + case 293: + case 255: + case 243: + case 244: + case 242: + case 251: + case 253: + return q.visitEachChild(e, C, c); + default: + return q.Debug.assertNever(e, "Unhandled node.") + } + var o, s; + return T(e) + } + + function R(e) { + return g.updateConstructorDeclaration(e, q.visitNodes(e.modifiers, T, q.isModifierLike), q.visitParameterList(e.parameters, T, c), P(e)) + } + + function B(e) { + return g.updateMethodDeclaration(e, q.visitNodes(e.modifiers, T, q.isModifierLike), e.asteriskToken, e.name, void 0, void 0, q.visitParameterList(e.parameters, T, c), void 0, (2 & q.getFunctionFlags(e) ? w : P)(e)) + } + + function j(e) { + return g.updateGetAccessorDeclaration(e, q.visitNodes(e.modifiers, T, q.isModifierLike), e.name, q.visitParameterList(e.parameters, T, c), void 0, P(e)) + } + + function J(e) { + return g.updateSetAccessorDeclaration(e, q.visitNodes(e.modifiers, T, q.isModifierLike), e.name, q.visitParameterList(e.parameters, T, c), P(e)) + } + + function z(e) { + return g.updateFunctionDeclaration(e, q.visitNodes(e.modifiers, T, q.isModifierLike), e.asteriskToken, e.name, void 0, q.visitParameterList(e.parameters, T, c), void 0, 2 & q.getFunctionFlags(e) ? w(e) : q.visitFunctionBody(e.body, T, c)) + } + + function U(e) { + return g.updateFunctionExpression(e, q.visitNodes(e.modifiers, T, q.isModifierLike), e.asteriskToken, e.name, void 0, q.visitParameterList(e.parameters, T, c), void 0, 2 & q.getFunctionFlags(e) ? w(e) : q.visitFunctionBody(e.body, T, c)) + } + + function K(e) { + return g.updateArrowFunction(e, q.visitNodes(e.modifiers, T, q.isModifierLike), void 0, q.visitParameterList(e.parameters, T, c), void 0, e.equalsGreaterThanToken, 2 & q.getFunctionFlags(e) ? w(e) : q.visitFunctionBody(e.body, T, c)) + } + + function E(e, t) { + e = e.name; + if (q.isIdentifier(e)) t.add(e.escapedText); + else + for (var r = 0, n = e.elements; r < n.length; r++) { + var i = n[r]; + q.isOmittedExpression(i) || E(i, t) + } + } + + function k(e) { + return e && q.isVariableDeclarationList(e) && !(3 & e.flags) && e.declarations.some(F) + } + + function N(e, t) { + q.forEach(e.declarations, A); + var r = q.getInitializedVariables(e); + return 0 === r.length ? t ? q.visitNode(g.converters.convertToAssignmentElementTarget(e.declarations[0].name), T, q.isExpression) : void 0 : g.inlineExpressions(q.map(r, V)) + } + + function A(e) { + e = e.name; + if (q.isIdentifier(e)) i(e); + else + for (var t = 0, r = e.elements; t < r.length; t++) { + var n = r[t]; + q.isOmittedExpression(n) || A(n) + } + } + + function V(e) { + e = q.setSourceMapRange(g.createAssignment(g.converters.convertToAssignmentElementTarget(e.name), e.initializer), e); + return q.visitNode(e, T, q.isExpression) + } + + function F(e) { + e = e.name; + if (q.isIdentifier(e)) return d.has(e.escapedText); + for (var t = 0, r = e.elements; t < r.length; t++) { + var n = r[t]; + if (!q.isOmittedExpression(n) && F(n)) return !0 + } + return !1 + } + + function P(e) { + q.Debug.assertIsDefined(e.body); + var t, r = p, + n = f, + i = (p = new q.Set, f = !1, q.visitFunctionBody(e.body, T, c)), + a = q.getOriginalNode(e, q.isFunctionLikeDeclaration); + return 2 <= b && 6144 & v.getNodeCheckFlags(e) && 3 != (3 & q.getFunctionFlags(a)) && (O(), p.size && (a = W(g, v, e, p), x[q.getNodeId(a)] = !0, t = i.statements.slice(), q.insertStatementsAfterStandardPrologue(t, [a]), i = g.updateBlock(i, t)), f) && (4096 & v.getNodeCheckFlags(e) ? q.addEmitHelper(i, q.advancedAsyncSuperHelper) : 2048 & v.getNodeCheckFlags(e) && q.addEmitHelper(i, q.asyncSuperHelper)), p = r, f = n, i + } + + function w(e) { + y(); + var t = q.getOriginalNode(e, q.isFunctionLike).type, + t = b < 2 ? function(e) { + e = e && q.getEntityNameFromTypeNode(e); + if (e && q.isEntityName(e)) { + var t = v.getTypeReferenceSerializationKind(e); + if (t === q.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue || t === q.TypeReferenceSerializationKind.Unknown) return e + } + return + }(t) : void 0, + r = 216 === e.kind, + n = 0 != (8192 & v.getNodeCheckFlags(e)), + i = d; + d = new q.Set; + for (var a = 0, o = e.parameters; a < o.length; a++) E(o[a], d); + var s, c, l, u = p, + _ = f; + return r || (p = new q.Set, f = !1), c = r ? (c = m().createAwaiterHelper(D(), n, t, I(e.body)), s = h(), q.some(s) ? (l = g.converters.convertToFunctionBlock(c), g.updateBlock(l, q.setTextRange(g.createNodeArray(q.concatenate(s, l.statements)), l.statements))) : c) : (c = g.copyPrologue(e.body.statements, s = [], !1, T), s.push(g.createReturnStatement(m().createAwaiterHelper(D(), n, t, I(e.body, c)))), q.insertStatementsAfterStandardPrologue(s, h()), (n = 2 <= b && 6144 & v.getNodeCheckFlags(e)) && (O(), p.size) && (t = W(g, v, e, p), x[q.getNodeId(t)] = !0, q.insertStatementsAfterStandardPrologue(s, [t])), l = g.createBlock(s, !0), q.setTextRange(l, e.body), n && f && (4096 & v.getNodeCheckFlags(e) ? q.addEmitHelper(l, q.advancedAsyncSuperHelper) : 2048 & v.getNodeCheckFlags(e) && q.addEmitHelper(l, q.asyncSuperHelper)), l), d = i, r || (p = u, f = _), c + } + + function I(e, t) { + return q.isBlock(e) ? g.updateBlock(e, q.visitNodes(e.statements, C, q.isStatement, t)) : g.converters.convertToFunctionBlock(q.visitNode(e, C, q.isConciseBody)) + } + + function O() { + 0 == (1 & a) && (a |= 1, c.enableSubstitution(210), c.enableSubstitution(208), c.enableSubstitution(209), c.enableEmitNotification(260), c.enableEmitNotification(171), c.enableEmitNotification(174), c.enableEmitNotification(175), c.enableEmitNotification(173), c.enableEmitNotification(240)) + } + + function M(e) { + return 106 === e.expression.kind ? q.setTextRange(g.createPropertyAccessExpression(g.createUniqueName("_super", 48), e.name), e) : e + } + + function L(e) { + var t, r; + return 106 === e.expression.kind ? (t = e.argumentExpression, r = e, 4096 & o ? q.setTextRange(g.createPropertyAccessExpression(g.createCallExpression(g.createUniqueName("_superIndex", 48), void 0, [t]), "value"), r) : q.setTextRange(g.createCallExpression(g.createUniqueName("_superIndex", 48), void 0, [t]), r)) : e + } + }, q.createSuperAccessVariableStatement = W + }(ts = ts || {}), ! function(Y) { + var e; + (e = { + None: 0, + 0: "None", + HasLexicalThis: 1, + 1: "HasLexicalThis", + IterationContainer: 2, + 2: "IterationContainer", + AncestorFactsMask: 3, + 3: "AncestorFactsMask", + SourceFileIncludes: 1 + })[1] = "SourceFileIncludes", e[e.SourceFileExcludes = 2] = "SourceFileExcludes", e[e.StrictModeSourceFileIncludes = 0] = "StrictModeSourceFileIncludes", e[e.ClassOrFunctionIncludes = 1] = "ClassOrFunctionIncludes", e[e.ClassOrFunctionExcludes = 2] = "ClassOrFunctionExcludes", e[e.ArrowFunctionIncludes = 0] = "ArrowFunctionIncludes", e[e.ArrowFunctionExcludes = 2] = "ArrowFunctionExcludes", e[e.IterationStatementIncludes = 2] = "IterationStatementIncludes", e[e.IterationStatementExcludes = 0] = "IterationStatementExcludes", Y.transformES2018 = function(x) { + var s, D, n, S, i, T, C, E = x.factory, + k = x.getEmitHelperFactory, + c = x.resumeLexicalEnvironment, + l = x.endLexicalEnvironment, + h = x.hoistVariableDeclaration, + u = x.getEmitResolver(), + a = x.getCompilerOptions(), + B = Y.getEmitScriptTarget(a), + o = x.onEmitNode, + r = (x.onEmitNode = function(e, t, r) { + if (1 & s && function(e) { + e = e.kind; + return 260 === e || 173 === e || 171 === e || 174 === e || 175 === e + }(t)) { + var n = 6144 & u.getNodeCheckFlags(t); + if (n !== _) return i = _, _ = n, o(e, t, r), void(_ = i) + } else { + var i; + if (s && p[Y.getNodeId(t)]) return i = _, _ = 0, o(e, t, r), void(_ = i) + } + o(e, t, r) + }, x.onSubstituteNode), + N = !(x.onSubstituteNode = function(e, t) { + if (t = r(e, t), 1 === e && _) return function(e) { + switch (e.kind) { + case 208: + return Q(e); + case 209: + return X(e); + case 210: + return function(e) { + var t = e.expression; + if (Y.isSuperProperty(t)) return t = (Y.isPropertyAccessExpression(t) ? Q : X)(t), E.createCallExpression(E.createPropertyAccessExpression(t, "call"), void 0, __spreadArray([E.createThis()], e.arguments, !0)); + return e + }(e) + } + return e + }(t); + return t + }), + _ = 0, + d = 0, + p = []; + return Y.chainBundle(x, function(e) { + if (e.isDeclarationFile) return e; + e = function(e) { + var t = v(2, Y.isEffectiveStrictModeSourceFile(e, a) ? 0 : 1), + r = (N = !1, Y.visitEachChild(e, A, x)), + n = Y.concatenate(r.statements, i && [E.createVariableStatement(void 0, E.createVariableDeclarationList(i))]), + r = E.updateSourceFile(r, Y.setTextRange(E.createNodeArray(n), e.statements)); + return b(t), r + }(S = e); + return Y.addEmitHelpers(e, x.readEmitHelpers()), S = void 0, i = void 0, e + }); + + function v(e, t) { + var r = d; + return d = 3 & (d & ~e | t), r + } + + function b(e) { + d = e + } + + function j(e) { + i = Y.append(i, E.createVariableDeclaration(e)) + } + + function A(e) { + return t(e, !1) + } + + function F(e) { + return t(e, !0) + } + + function f(e) { + if (132 !== e.kind) return e + } + + function P(e, t, r, n) { + return d !== (d & ~r | n) ? (r = v(r, n), n = e(t), b(r), n) : e(t) + } + + function w(e) { + return Y.visitEachChild(e, A, x) + } + + function t(e, t) { + if (0 == (128 & e.transformFlags)) return e; + switch (e.kind) { + case 220: + var r = e; + return 2 & D && 1 & D ? Y.setOriginalNode(Y.setTextRange(E.createYieldExpression(void 0, k().createAwaitHelper(Y.visitNode(r.expression, A, Y.isExpression))), r), r) : Y.visitEachChild(r, A, x); + case 226: + r = e; + return 2 & D && 1 & D ? r.asteriskToken ? (n = Y.visitNode(Y.Debug.checkDefined(r.expression), A, Y.isExpression), Y.setOriginalNode(Y.setTextRange(E.createYieldExpression(void 0, k().createAwaitHelper(E.updateYieldExpression(r, r.asteriskToken, Y.setTextRange(k().createAsyncDelegatorHelper(Y.setTextRange(k().createAsyncValuesHelper(n), n)), n)))), r), r)) : Y.setOriginalNode(Y.setTextRange(E.createYieldExpression(void 0, M(r.expression ? Y.visitNode(r.expression, A, Y.isExpression) : E.createVoidZero())), r), r) : Y.visitEachChild(r, A, x); + case 250: + var n = e; + return 2 & D && 1 & D ? E.updateReturnStatement(n, M(n.expression ? Y.visitNode(n.expression, A, Y.isExpression) : E.createVoidZero())) : Y.visitEachChild(n, A, x); + case 253: + var i = e; + return 2 & D ? 247 === (a = Y.unwrapInnermostStatementOfLabel(i)).kind && a.awaitModifier ? O(a, i) : E.restoreEnclosingLabel(Y.visitNode(a, A, Y.isStatement, E.liftToBlock), i) : Y.visitEachChild(i, A, x); + case 207: + var a = e; + if (65536 & a.transformFlags) { + var o = function(e) { + for (var t, r = [], n = 0, i = e; n < i.length; n++) { + var a, o = i[n]; + 301 === o.kind ? (t && (r.push(E.createObjectLiteralExpression(t)), t = void 0), a = o.expression, r.push(Y.visitNode(a, A, Y.isExpression))) : t = Y.append(t, 299 === o.kind ? E.createPropertyAssignment(o.name, Y.visitNode(o.initializer, A, Y.isExpression)) : Y.visitNode(o, A, Y.isObjectLiteralElementLike)) + } + t && r.push(E.createObjectLiteralExpression(t)); + return r + }(a.properties), + s = (o.length && 207 !== o[0].kind && o.unshift(E.createObjectLiteralExpression()), o[0]); + if (1 < o.length) { + for (var c = 1; c < o.length; c++) s = k().createAssignHelper([s, o[c]]); + return s + } + return k().createAssignHelper(o) + } + return Y.visitEachChild(a, A, x); + case 223: + var i = e, + l = t; + return Y.isDestructuringAssignment(i) && 65536 & i.left.transformFlags ? Y.flattenDestructuringAssignment(i, A, x, 1, !l) : 27 !== i.operatorToken.kind ? Y.visitEachChild(i, A, x) : E.updateBinaryExpression(i, Y.visitNode(i.left, F, Y.isExpression), i.operatorToken, Y.visitNode(i.right, l ? F : A, Y.isExpression)); + case 354: + var u = e, + l = t; + if (l) return Y.visitEachChild(u, F, x); + for (var _, d = 0; d < u.elements.length; d++) { + var p = u.elements[d], + f = Y.visitNode(p, d < u.elements.length - 1 ? F : A, Y.isExpression); + !_ && f === p || (_ = _ || u.elements.slice(0, d)).push(f) + } + return l = _ ? Y.setTextRange(E.createNodeArray(_), u.elements) : u.elements, E.updateCommaListExpression(u, l); + case 295: + var g = e; + return g.variableDeclaration && Y.isBindingPattern(g.variableDeclaration.name) && 65536 & g.variableDeclaration.name.transformFlags ? (m = E.getGeneratedNameForNode(g.variableDeclaration.name), h = E.updateVariableDeclaration(g.variableDeclaration, g.variableDeclaration.name, void 0, void 0, m), h = Y.flattenDestructuringBinding(h, A, x, 1), y = Y.visitNode(g.block, A, Y.isBlock), Y.some(h) && (y = E.updateBlock(y, __spreadArray([E.createVariableStatement(void 0, h)], y.statements, !0))), E.updateCatchClause(g, E.updateVariableDeclaration(g.variableDeclaration, m, void 0, void 0, void 0), y)) : Y.visitEachChild(g, A, x); + case 240: + var m, y, h = e; + return Y.hasSyntacticModifier(h, 1) ? (m = N, N = !0, y = Y.visitEachChild(h, A, x), N = m, y) : Y.visitEachChild(h, A, x); + case 257: + var v, b, g = e; + return N ? (v = N, b = I(g, !(N = !1)), N = v, b) : I(g, !1); + case 243: + case 244: + case 246: + return P(w, e, 0, 2); + case 247: + return O(e, void 0); + case 245: + return P(J, e, 0, 2); + case 219: + return Y.visitEachChild(e, F, x); + case 173: + return P(z, e, 2, 1); + case 171: + return P(V, e, 2, 1); + case 174: + return P(U, e, 2, 1); + case 175: + return P(K, e, 2, 1); + case 259: + return P(q, e, 2, 1); + case 215: + return P(H, e, 2, 1); + case 216: + return P(W, e, 2, 0); + case 166: + return L(e); + case 241: + return Y.visitEachChild(e, F, x); + case 214: + return Y.visitEachChild(e, t ? F : A, x); + case 212: + return Y.processTaggedTemplateExpression(x, e, A, S, j, Y.ProcessLevel.LiftRestriction); + case 208: + return T && Y.isPropertyAccessExpression(e) && 106 === e.expression.kind && T.add(e.name.escapedText), Y.visitEachChild(e, A, x); + case 209: + return T && 106 === e.expression.kind && (C = !0), Y.visitEachChild(e, A, x); + case 260: + case 228: + return P(w, e, 2, 1); + default: + return Y.visitEachChild(e, A, x) + } + } + + function I(e, t) { + return Y.isBindingPattern(e.name) && 65536 & e.name.transformFlags ? Y.flattenDestructuringBinding(e, A, x, 1, void 0, t) : Y.visitEachChild(e, A, x) + } + + function J(e) { + return E.updateForStatement(e, Y.visitNode(e.initializer, F, Y.isForInitializer), Y.visitNode(e.condition, A, Y.isExpression), Y.visitNode(e.incrementor, F, Y.isExpression), Y.visitIterationBody(e.statement, A, x)) + } + + function O(e, t) { + var r, n, i, a, o, s, c, l, u, _, d, p, f, g, m = v(0, 2), + y = (e = 65536 & e.initializer.transformFlags ? function(e) { + var t = Y.skipParentheses(e.initializer); { + var r, n, i; + if (Y.isVariableDeclarationList(t) || Y.isAssignmentPattern(t)) return n = r = void 0, i = E.createTempVariable(void 0), t = [Y.createForOfBindingStatement(E, t, i)], Y.isBlock(e.statement) ? (Y.addRange(t, e.statement.statements), r = e.statement, n = e.statement.statements) : e.statement && (Y.append(t, e.statement), r = e.statement, n = e.statement), E.updateForOfStatement(e, e.awaitModifier, Y.setTextRange(E.createVariableDeclarationList([Y.setTextRange(E.createVariableDeclaration(i), e.initializer)], 1), e.initializer), e.expression, Y.setTextRange(E.createBlock(Y.setTextRange(E.createNodeArray(t), n), !0), r)) + } + return e + }(e) : e).awaitModifier ? (r = e, n = t, y = m, i = Y.visitNode(r.expression, A, Y.isExpression), a = Y.isIdentifier(i) ? E.getGeneratedNameForNode(i) : E.createTempVariable(void 0), o = Y.isIdentifier(i) ? E.getGeneratedNameForNode(a) : E.createTempVariable(void 0), s = E.createTempVariable(void 0), c = E.createTempVariable(h), l = E.createUniqueName("e"), u = E.getGeneratedNameForNode(l), _ = E.createTempVariable(void 0), i = Y.setTextRange(k().createAsyncValuesHelper(i), r.expression), d = E.createCallExpression(E.createPropertyAccessExpression(a, "next"), void 0, []), p = E.createPropertyAccessExpression(o, "done"), f = E.createPropertyAccessExpression(o, "value"), g = E.createFunctionCallCall(_, a, []), h(l), h(_), y = 2 & y ? E.inlineExpressions([E.createAssignment(l, E.createVoidZero()), i]) : i, i = Y.setEmitFlags(Y.setTextRange(E.createForStatement(Y.setEmitFlags(Y.setTextRange(E.createVariableDeclarationList([E.createVariableDeclaration(s, void 0, void 0, E.createTrue()), Y.setTextRange(E.createVariableDeclaration(a, void 0, void 0, y), r.expression), E.createVariableDeclaration(o)]), r.expression), 2097152), E.inlineExpressions([E.createAssignment(o, M(d)), E.createAssignment(c, p), E.createLogicalNot(c)]), void 0, function(e, t, r) { + var n, i, a = E.createTempVariable(h), + t = E.createAssignment(a, t), + t = E.createExpressionStatement(t), + o = (Y.setSourceMapRange(t, e.expression), E.createAssignment(r, E.createFalse())), + o = E.createExpressionStatement(o), + r = (Y.setSourceMapRange(o, e.expression), E.createAssignment(r, E.createTrue())), + r = E.createExpressionStatement(r), + s = (Y.setSourceMapRange(o, e.expression), []), + a = Y.createForOfBindingStatement(E, e.initializer, a), + a = (s.push(Y.visitNode(a, A, Y.isStatement)), Y.visitIterationBody(e.statement, A, x)); + Y.isBlock(a) ? (Y.addRange(s, a.statements), i = (n = a).statements) : s.push(a); + e = Y.setEmitFlags(Y.setTextRange(E.createBlock(Y.setTextRange(E.createNodeArray(s), i), !0), n), 432); + return E.createBlock([t, o, E.createTryStatement(e, void 0, E.createBlock([r]))]) + }(r, f, s)), r), 256), Y.setOriginalNode(i, r), E.createTryStatement(E.createBlock([E.restoreEnclosingLabel(i, n)]), E.createCatchClause(E.createVariableDeclaration(u), Y.setEmitFlags(E.createBlock([E.createExpressionStatement(E.createAssignment(l, E.createObjectLiteralExpression([E.createPropertyAssignment("error", u)])))]), 1)), E.createBlock([E.createTryStatement(E.createBlock([Y.setEmitFlags(E.createIfStatement(E.createLogicalAnd(E.createLogicalAnd(E.createLogicalNot(s), E.createLogicalNot(c)), E.createAssignment(_, E.createPropertyAccessExpression(a, "return"))), E.createExpressionStatement(M(g))), 1)]), void 0, Y.setEmitFlags(E.createBlock([Y.setEmitFlags(E.createIfStatement(l, E.createThrowStatement(E.createPropertyAccessExpression(l, "error"))), 1)]), 1))]))) : E.restoreEnclosingLabel(Y.visitEachChild(e, A, x), t); + return b(m), y + } + + function M(e) { + return 1 & D ? E.createYieldExpression(void 0, k().createAwaitHelper(e)) : E.createAwaitExpression(e) + } + + function g(e) { + return Y.Debug.assertNode(e, Y.isParameter), L(e) + } + + function L(e) { + return null != n && n.has(e) ? E.updateParameterDeclaration(e, void 0, e.dotDotDotToken, Y.isBindingPattern(e.name) ? E.getGeneratedNameForNode(e) : e.name, void 0, void 0, void 0) : 65536 & e.transformFlags ? E.updateParameterDeclaration(e, void 0, e.dotDotDotToken, E.getGeneratedNameForNode(e), void 0, void 0, Y.visitNode(e.initializer, A, Y.isExpression)) : Y.visitEachChild(e, A, x) + } + + function m(e) { + for (var t, r = 0, n = e.parameters; r < n.length; r++) { + var i = n[r]; + t ? t.add(i) : 65536 & i.transformFlags && (t = new Y.Set) + } + return t + } + + function z(e) { + var t = D, + r = n, + e = (D = Y.getFunctionFlags(e), n = m(e), E.updateConstructorDeclaration(e, e.modifiers, Y.visitParameterList(e.parameters, g, x), R(e))); + return D = t, n = r, e + } + + function U(e) { + var t = D, + r = n, + e = (D = Y.getFunctionFlags(e), n = m(e), E.updateGetAccessorDeclaration(e, e.modifiers, Y.visitNode(e.name, A, Y.isPropertyName), Y.visitParameterList(e.parameters, g, x), void 0, R(e))); + return D = t, n = r, e + } + + function K(e) { + var t = D, + r = n, + e = (D = Y.getFunctionFlags(e), n = m(e), E.updateSetAccessorDeclaration(e, e.modifiers, Y.visitNode(e.name, A, Y.isPropertyName), Y.visitParameterList(e.parameters, g, x), R(e))); + return D = t, n = r, e + } + + function V(e) { + var t = D, + r = n, + e = (D = Y.getFunctionFlags(e), n = m(e), E.updateMethodDeclaration(e, 1 & D ? Y.visitNodes(e.modifiers, f, Y.isModifierLike) : e.modifiers, 2 & D ? void 0 : e.asteriskToken, Y.visitNode(e.name, A, Y.isPropertyName), Y.visitNode(void 0, A, Y.isToken), void 0, Y.visitParameterList(e.parameters, g, x), void 0, (2 & D && 1 & D ? y : R)(e))); + return D = t, n = r, e + } + + function q(e) { + var t = D, + r = n, + e = (D = Y.getFunctionFlags(e), n = m(e), E.updateFunctionDeclaration(e, 1 & D ? Y.visitNodes(e.modifiers, f, Y.isModifier) : e.modifiers, 2 & D ? void 0 : e.asteriskToken, e.name, void 0, Y.visitParameterList(e.parameters, g, x), void 0, (2 & D && 1 & D ? y : R)(e))); + return D = t, n = r, e + } + + function W(e) { + var t = D, + r = n, + e = (D = Y.getFunctionFlags(e), n = m(e), E.updateArrowFunction(e, e.modifiers, void 0, Y.visitParameterList(e.parameters, g, x), void 0, e.equalsGreaterThanToken, R(e))); + return D = t, n = r, e + } + + function H(e) { + var t = D, + r = n, + e = (D = Y.getFunctionFlags(e), n = m(e), E.updateFunctionExpression(e, 1 & D ? Y.visitNodes(e.modifiers, f, Y.isModifier) : e.modifiers, 2 & D ? void 0 : e.asteriskToken, e.name, void 0, Y.visitParameterList(e.parameters, g, x), void 0, (2 & D && 1 & D ? y : R)(e))); + return D = t, n = r, e + } + + function y(e) { + c(); + var t = [], + r = E.copyPrologue(e.body.statements, t, !1, A), + n = (G(t, e), T), + i = C, + r = (T = new Y.Set, C = !1, E.createReturnStatement(k().createAsyncGeneratorHelper(E.createFunctionExpression(void 0, E.createToken(41), e.name && E.getGeneratedNameForNode(e.name), void 0, [], void 0, E.updateBlock(e.body, Y.visitLexicalEnvironment(e.body.statements, A, x, r))), !!(1 & d)))), + a = 2 <= B && 6144 & u.getNodeCheckFlags(e), + o = (a && (0 == (1 & s) && (s |= 1, x.enableSubstitution(210), x.enableSubstitution(208), x.enableSubstitution(209), x.enableEmitNotification(260), x.enableEmitNotification(171), x.enableEmitNotification(174), x.enableEmitNotification(175), x.enableEmitNotification(173), x.enableEmitNotification(240)), o = Y.createSuperAccessVariableStatement(E, u, e, T), p[Y.getNodeId(o)] = !0, Y.insertStatementsAfterStandardPrologue(t, [o])), t.push(r), Y.insertStatementsAfterStandardPrologue(t, l()), E.updateBlock(e.body, t)); + return a && C && (4096 & u.getNodeCheckFlags(e) ? Y.addEmitHelper(o, Y.advancedAsyncSuperHelper) : 2048 & u.getNodeCheckFlags(e) && Y.addEmitHelper(o, Y.asyncSuperHelper)), T = n, C = i, o + } + + function R(e) { + c(); + var t, r = 0, + n = [], + i = null != (i = Y.visitNode(e.body, A, Y.isConciseBody)) ? i : E.createBlock([]), + e = (Y.isBlock(i) && (r = E.copyPrologue(i.statements, n, !1, A)), Y.addRange(n, G(void 0, e)), l()); + return 0 < r || Y.some(n) || Y.some(e) ? (t = E.converters.convertToFunctionBlock(i, !0), Y.insertStatementsAfterStandardPrologue(n, e), Y.addRange(n, t.statements.slice(r)), E.updateBlock(t, Y.setTextRange(E.createNodeArray(n), t.statements))) : i + } + + function G(e, t) { + for (var r = !1, n = 0, i = t.parameters; n < i.length; n++) { + var a, o, s, c, l, u, _, d, p = i[n]; + r ? Y.isBindingPattern(p.name) ? 0 < p.name.elements.length ? (u = Y.flattenDestructuringBinding(p, A, x, 0, E.getGeneratedNameForNode(p)), Y.some(u) && (_ = E.createVariableDeclarationList(u), d = E.createVariableStatement(void 0, _), Y.setEmitFlags(d, 1048576), e = Y.append(e, d))) : p.initializer && (a = E.getGeneratedNameForNode(p), o = Y.visitNode(p.initializer, A, Y.isExpression), s = E.createAssignment(a, o), d = E.createExpressionStatement(s), Y.setEmitFlags(d, 1048576), e = Y.append(e, d)) : p.initializer && (a = E.cloneNode(p.name), Y.setTextRange(a, p.name), Y.setEmitFlags(a, 48), o = Y.visitNode(p.initializer, A, Y.isExpression), Y.addEmitFlags(o, 1584), s = E.createAssignment(a, o), Y.setTextRange(s, p), Y.setEmitFlags(s, 1536), c = E.createBlock([E.createExpressionStatement(s)]), Y.setTextRange(c, p), Y.setEmitFlags(c, 1953), l = E.createTypeCheck(E.cloneNode(p.name), "undefined"), d = E.createIfStatement(l, c), Y.startOnNewLine(d), Y.setTextRange(d, p), Y.setEmitFlags(d, 1050528), e = Y.append(e, d)) : 65536 & p.transformFlags && (r = !0, u = Y.flattenDestructuringBinding(p, A, x, 1, E.getGeneratedNameForNode(p), !1, !0), Y.some(u)) && (_ = E.createVariableDeclarationList(u), d = E.createVariableStatement(void 0, _), Y.setEmitFlags(d, 1048576), e = Y.append(e, d)) + } + return e + } + + function Q(e) { + return 106 === e.expression.kind ? Y.setTextRange(E.createPropertyAccessExpression(E.createUniqueName("_super", 48), e.name), e) : e + } + + function X(e) { + var t, r; + return 106 === e.expression.kind ? (t = e.argumentExpression, r = e, 4096 & _ ? Y.setTextRange(E.createPropertyAccessExpression(E.createCallExpression(E.createIdentifier("_superIndex"), void 0, [t]), "value"), r) : Y.setTextRange(E.createCallExpression(E.createIdentifier("_superIndex"), void 0, [t]), r)) : e + } + } + }(ts = ts || {}), ! function(i) { + i.transformES2019 = function(t) { + var r = t.factory; + return i.chainBundle(t, function(e) { + if (e.isDeclarationFile) return e; + return i.visitEachChild(e, n, t) + }); + + function n(e) { + return 0 == (64 & e.transformFlags) ? e : 295 !== e.kind ? i.visitEachChild(e, n, t) : (e = e).variableDeclaration ? i.visitEachChild(e, n, t) : r.updateCatchClause(e, r.createVariableDeclaration(r.createTempVariable(void 0)), i.visitNode(e.block, n, i.isBlock)) + } + } + }(ts = ts || {}), ! function(m) { + m.transformES2020 = function(i) { + var _ = i.factory, + d = i.hoistVariableDeclaration; + return m.chainBundle(i, function(e) { + if (e.isDeclarationFile) return e; + return m.visitEachChild(e, p, i) + }); + + function p(e) { + if (0 == (32 & e.transformFlags)) return e; + switch (e.kind) { + case 210: + var t = c(e, !1); + return m.Debug.assertNotNode(t, m.isSyntheticReference), t; + case 208: + case 209: + return m.isOptionalChain(e) ? (t = l(e, !1, !1), m.Debug.assertNotNode(t, m.isSyntheticReference), t) : m.visitEachChild(e, p, i); + case 223: + var r; + return 60 === e.operatorToken.kind ? (t = e, n = m.visitNode(t.left, p, m.isExpression), r = n, m.isSimpleCopiableExpression(n) || (r = _.createTempVariable(d), n = _.createAssignment(r, n)), m.setTextRange(_.createConditionalExpression(g(n, r), void 0, r, void 0, m.visitNode(t.right, p, m.isExpression)), t)) : m.visitEachChild(e, p, i); + case 217: + return n = e, m.isOptionalChain(m.skipParentheses(n.expression)) ? m.setOriginalNode(f(n.expression, !1, !0), n) : _.updateDeleteExpression(n, m.visitNode(n.expression, p, m.isExpression)); + default: + return m.visitEachChild(e, p, i) + } + var n + } + + function s(e, t, r) { + t = f(e.expression, t, r); + return m.isSyntheticReference(t) ? _.createSyntheticReferenceExpression(_.updateParenthesizedExpression(e, t.expression), t.thisArg) : _.updateParenthesizedExpression(e, t) + } + + function c(e, t) { + var r; + return m.isOptionalChain(e) ? l(e, t, !1) : m.isParenthesizedExpression(e.expression) && m.isOptionalChain(m.skipParentheses(e.expression)) ? (t = s(e.expression, !0, !1), r = m.visitNodes(e.arguments, p, m.isExpression), m.isSyntheticReference(t) ? m.setTextRange(_.createFunctionCallCall(t.expression, t.thisArg, r), e) : _.updateCallExpression(e, t, void 0, r)) : m.visitEachChild(e, p, i) + } + + function f(e, t, r) { + switch (e.kind) { + case 214: + return s(e, t, r); + case 208: + case 209: + return n = e, i = t, a = r, m.isOptionalChain(n) ? l(n, i, a) : (a = m.visitNode(n.expression, p, m.isExpression), m.Debug.assertNotNode(a, m.isSyntheticReference), i && (m.isSimpleCopiableExpression(a) ? o = a : (o = _.createTempVariable(d), a = _.createAssignment(o, a))), a = 208 === n.kind ? _.updatePropertyAccessExpression(n, a, m.visitNode(n.name, p, m.isIdentifier)) : _.updateElementAccessExpression(n, a, m.visitNode(n.argumentExpression, p, m.isExpression)), o ? _.createSyntheticReferenceExpression(a, o) : a); + case 210: + return c(e, t); + default: + return m.visitNode(e, p, m.isExpression) + } + var n, i, a, o + } + + function l(e, t, r) { + for (var n, i = function(e) { + m.Debug.assertNotNode(e, m.isNonNullChain); + for (var t = [e]; !e.questionDotToken && !m.isTaggedTemplateExpression(e);) e = m.cast(m.skipPartiallyEmittedExpressions(e.expression), m.isOptionalChain), m.Debug.assertNotNode(e, m.isNonNullChain), t.unshift(e); + return { + expression: e.expression, + chain: t + } + }(e), a = i.expression, o = i.chain, i = f(m.skipPartiallyEmittedExpressions(a), m.isCallChain(o[0]), !1), s = m.isSyntheticReference(i) ? i.thisArg : void 0, i = m.isSyntheticReference(i) ? i.expression : i, a = _.restoreOuterExpressions(a, i, 8), c = (m.isSimpleCopiableExpression(i) || (i = _.createTempVariable(d), a = _.createAssignment(i, a)), i), l = 0; l < o.length; l++) { + var u = o[l]; + switch (u.kind) { + case 208: + case 209: + l === o.length - 1 && t && (m.isSimpleCopiableExpression(c) ? n = c : (n = _.createTempVariable(d), c = _.createAssignment(n, c))), c = 208 === u.kind ? _.createPropertyAccessExpression(c, m.visitNode(u.name, p, m.isIdentifier)) : _.createElementAccessExpression(c, m.visitNode(u.argumentExpression, p, m.isExpression)); + break; + case 210: + c = 0 === l && s ? (m.isGeneratedIdentifier(s) || (s = _.cloneNode(s), m.addEmitFlags(s, 1536)), _.createFunctionCallCall(c, 106 === s.kind ? _.createThis() : s, m.visitNodes(u.arguments, p, m.isExpression))) : _.createCallExpression(c, void 0, m.visitNodes(u.arguments, p, m.isExpression)) + } + m.setOriginalNode(c, u) + } + r = r ? _.createConditionalExpression(g(a, i, !0), void 0, _.createTrue(), void 0, _.createDeleteExpression(c)) : _.createConditionalExpression(g(a, i, !0), void 0, _.createVoidZero(), void 0, c); + return m.setTextRange(r, e), n ? _.createSyntheticReferenceExpression(r, n) : r + } + + function g(e, t, r) { + return _.createBinaryExpression(_.createBinaryExpression(e, _.createToken(r ? 36 : 37), _.createNull()), _.createToken(r ? 56 : 55), _.createBinaryExpression(t, _.createToken(r ? 36 : 37), _.createVoidZero())) + } + } + }(ts = ts || {}), ! function(p) { + p.transformES2021 = function(l) { + var u = l.hoistVariableDeclaration, + _ = l.factory; + return p.chainBundle(l, function(e) { + if (e.isDeclarationFile) return e; + return p.visitEachChild(e, d, l) + }); + + function d(e) { + if (0 == (16 & e.transformFlags)) return e; + if (223 === e.kind) { + var t, r, n, i, a, o, s, c = e; + if (p.isLogicalOrCoalescingAssignmentExpression(c)) return t = (c = c).operatorToken, t = p.getNonAssignmentOperatorForCompoundAssignment(t.kind), r = p.skipParentheses(p.visitNode(c.left, d, p.isLeftHandSideExpression)), n = r, c = p.skipParentheses(p.visitNode(c.right, d, p.isExpression)), p.isAccessExpression(r) && (a = p.isSimpleCopiableExpression(r.expression), i = a ? r.expression : _.createTempVariable(u), a = a ? r.expression : _.createAssignment(i, r.expression), r = p.isPropertyAccessExpression(r) ? (n = _.createPropertyAccessExpression(i, r.name), _.createPropertyAccessExpression(a, r.name)) : (o = p.isSimpleCopiableExpression(r.argumentExpression), s = o ? r.argumentExpression : _.createTempVariable(u), n = _.createElementAccessExpression(i, s), _.createElementAccessExpression(a, o ? r.argumentExpression : _.createAssignment(s, r.argumentExpression)))), _.createBinaryExpression(r, t, _.createParenthesizedExpression(_.createAssignment(n, c))) + } + return p.visitEachChild(e, d, l) + } + } + }(ts = ts || {}), ! function(n) { + n.transformESNext = function(t) { + return n.chainBundle(t, function(e) { + if (e.isDeclarationFile) return e; + return n.visitEachChild(e, r, t) + }); + + function r(e) { + return 0 == (4 & e.transformFlags) ? e : (e.kind, n.visitEachChild(e, r, t)) + } + } + }(ts = ts || {}), ! function(F) { + F.transformJsx = function(c) { + var l, u, _ = c.factory, + n = c.getEmitHelperFactory, + d = c.getCompilerOptions(); + return F.chainBundle(c, function(e) { + if (e.isDeclarationFile) return e; + l = e, (u = {}).importSpecifier = F.getJSXImplicitImportBase(d, e); + var t = F.visitEachChild(e, p, c), + r = (F.addEmitHelpers(t, c.readEmitHelpers()), t.statements); + u.filenameDeclaration && (r = F.insertStatementAfterCustomPrologue(r.slice(), _.createVariableStatement(void 0, _.createVariableDeclarationList([u.filenameDeclaration], 2)))); + if (u.utilizedImplicitRuntimeImports) + for (var n = 0, i = F.arrayFrom(u.utilizedImplicitRuntimeImports.entries()); n < i.length; n++) { + var a, o = i[n], + s = o[0], + o = o[1]; + F.isExternalModule(e) ? (a = _.createImportDeclaration(void 0, _.createImportClause(!1, void 0, _.createNamedImports(F.arrayFrom(o.values()))), _.createStringLiteral(s), void 0), F.setParentRecursive(a, !1), r = F.insertStatementAfterCustomPrologue(r.slice(), a)) : F.isExternalOrCommonJsModule(e) && (a = _.createVariableStatement(void 0, _.createVariableDeclarationList([_.createVariableDeclaration(_.createObjectBindingPattern(F.map(F.arrayFrom(o.values()), function(e) { + return _.createBindingElement(void 0, e.propertyName, e.name) + })), void 0, void 0, _.createCallExpression(_.createIdentifier("require"), void 0, [_.createStringLiteral(s)]))], 2)), F.setParentRecursive(a, !1), r = F.insertStatementAfterCustomPrologue(r.slice(), a)) + } + r !== t.statements && (t = _.updateSourceFile(t, r)); + return u = void 0, t + }); + + function o(e) { + return e = e, s(5 === d.jsx ? "jsxDEV" : e ? "jsxs" : "jsx") + } + + function s(e) { + var t = "createElement" === e ? u.importSpecifier : F.getJSXRuntimeImport(u.importSpecifier, d), + r = null == (r = null == (r = u.utilizedImplicitRuntimeImports) ? void 0 : r.get(t)) ? void 0 : r.get(e); + if (r) return r.name; + u.utilizedImplicitRuntimeImports || (u.utilizedImplicitRuntimeImports = new F.Map); + var r = u.utilizedImplicitRuntimeImports.get(t), + t = (r || (r = new F.Map, u.utilizedImplicitRuntimeImports.set(t, r)), _.createUniqueName("_".concat(e), 112)), + n = _.createImportSpecifier(!1, _.createIdentifier(e), t); + return t.generatedImportReference = n, r.set(e, n), t + } + + function p(e) { + if (!(2 & e.transformFlags)) return e; + var t = e; + switch (t.kind) { + case 281: + return i(t, !1); + case 282: + return a(t, !1); + case 285: + return g(t, !1); + case 291: + return A(t); + default: + return F.visitEachChild(t, p, c) + } + } + + function f(e) { + switch (e.kind) { + case 11: + var t = e; + return void 0 === (t = function(e) { + for (var t, r = 0, n = -1, i = 0; i < e.length; i++) { + var a = e.charCodeAt(i); + F.isLineBreak(a) ? (-1 !== r && -1 !== n && (t = E(t, e.substr(r, n - r + 1))), r = -1) : F.isWhiteSpaceSingleLine(a) || (n = i, -1 === r && (r = i)) + } + return -1 !== r ? E(t, e.substr(r)) : t + }(t.text)) ? void 0 : _.createStringLiteral(t); + case 291: + return A(e); + case 281: + return i(e, !0); + case 282: + return a(e, !0); + case 285: + return g(e, !0); + default: + return F.Debug.failBadSyntaxKind(e) + } + } + + function r(e) { + return void 0 === u.importSpecifier || function(e) { + for (var t = !1, r = 0, n = e.attributes.properties; r < n.length; r++) { + var i = n[r]; + if (F.isJsxSpreadAttribute(i)) t = !0; + else if (t && F.isJsxAttribute(i) && "key" === i.name.escapedText) return 1 + } + return + }(e) + } + + function i(e, t) { + return (r(e.openingElement) ? v : y)(e.openingElement, e.children, t, e) + } + + function a(e, t) { + return (r(e) ? v : y)(e, void 0, t, e) + } + + function g(e, t) { + return (void 0 === u.importSpecifier ? x : b)(e.openingFragment, e.children, t, e) + } + + function m(e) { + var t = F.getSemanticJsxChildren(e); + return 1 !== F.length(t) || t[0].dotDotDotToken ? (e = F.mapDefined(e, f), F.length(e) ? _.createPropertyAssignment("children", _.createArrayLiteralExpression(e)) : void 0) : (e = f(t[0])) && _.createPropertyAssignment("children", e) + } + + function y(e, t, r, n) { + var i = N(e), + a = t && t.length ? m(t) : void 0, + o = F.find(e.attributes.properties, function(e) { + return !!e.name && F.isIdentifier(e.name) && "key" === e.name.escapedText + }), + e = o ? F.filter(e.attributes.properties, function(e) { + return e !== o + }) : e.attributes.properties; + return h(i, F.length(e) ? D(e, a) : _.createObjectLiteralExpression(a ? [a] : F.emptyArray), o, t || F.emptyArray, r, n) + } + + function h(e, t, r, n, i, a) { + var n = F.getSemanticJsxChildren(n), + n = 1 < F.length(n) || !(null == (n = n[0]) || !n.dotDotDotToken), + e = [e, t], + t = (r && e.push(C(r.initializer)), 5 === d.jsx && (t = F.getOriginalNode(l)) && F.isSourceFile(t) && (void 0 === r && e.push(_.createVoidZero()), e.push(n ? _.createTrue() : _.createFalse()), r = F.getLineAndCharacterOfPosition(t, a.pos), e.push(_.createObjectLiteralExpression([_.createPropertyAssignment("fileName", (u.filenameDeclaration || (t = _.createVariableDeclaration(_.createUniqueName("_jsxFileName", 48), void 0, void 0, _.createStringLiteral(l.fileName)), u.filenameDeclaration = t), u.filenameDeclaration.name)), _.createPropertyAssignment("lineNumber", _.createNumericLiteral(r.line + 1)), _.createPropertyAssignment("columnNumber", _.createNumericLiteral(r.character + 1))])), e.push(_.createThis())), F.setTextRange(_.createCallExpression(o(n), void 0, e), a)); + return i && F.startOnNewLine(t), t + } + + function v(e, t, r, n) { + var i = N(e), + a = e.attributes.properties, + a = F.length(a) ? D(a) : _.createNull(), + e = void 0 === u.importSpecifier ? F.createJsxFactoryExpression(_, c.getEmitResolver().getJsxFactoryEntity(l), d.reactNamespace, e) : s("createElement"), + e = F.createExpressionForJsxElement(_, e, i, a, F.mapDefined(t, f), n); + return r && F.startOnNewLine(e), e + } + + function b(e, t, r, n) { + var i, a; + return t && t.length && (a = (a = m(a = t)) && _.createObjectLiteralExpression([a])) && (i = a), h(s("Fragment"), i || _.createObjectLiteralExpression([]), void 0, t, r, n) + } + + function x(e, t, r, n) { + t = F.createExpressionForJsxFragment(_, c.getEmitResolver().getJsxFactoryEntity(l), c.getEmitResolver().getJsxFragmentFactoryEntity(l), d.reactNamespace, F.mapDefined(t, f), e, n); + return r && F.startOnNewLine(t), t + } + + function D(e, t) { + var r = F.getEmitScriptTarget(d); + return r && 5 <= r ? _.createObjectLiteralExpression(function(e, t) { + e = F.flatten(F.spanMap(e, F.isJsxSpreadAttribute, function(e, t) { + return F.map(e, function(e) { + return t ? _.createSpreadAssignment(F.visitNode(e.expression, p, F.isExpression)) : T(e) + }) + })); + t && e.push(t); + return e + }(e, t)) : (r = e, e = t, t = F.flatten(F.spanMap(r, F.isJsxSpreadAttribute, function(e, t) { + return t ? F.map(e, S) : _.createObjectLiteralExpression(F.map(e, T)) + })), F.isJsxSpreadAttribute(r[0]) && t.unshift(_.createObjectLiteralExpression()), e && t.push(_.createObjectLiteralExpression([e])), F.singleOrUndefined(t) || n().createAssignHelper(t)) + } + + function S(e) { + return F.visitNode(e.expression, p, F.isExpression) + } + + function T(e) { + t = (t = e).name, r = F.idText(t); + var t = /^[A-Za-z_]\w*$/.test(r) ? t : _.createStringLiteral(r), + r = C(e.initializer); + return _.createPropertyAssignment(t, r) + } + + function C(e) { + var t, r, n; + return void 0 === e ? _.createTrue() : 10 === e.kind ? (t = void 0 !== e.singleQuote ? e.singleQuote : !F.isStringDoubleQuoted(e, l), r = _.createStringLiteral((r = e.text, ((n = k(r)) === r ? void 0 : n) || e.text), t), F.setTextRange(r, e)) : 291 === e.kind ? void 0 === e.expression ? _.createTrue() : F.visitNode(e.expression, p, F.isExpression) : F.isJsxElement(e) ? i(e, !1) : F.isJsxSelfClosingElement(e) ? a(e, !1) : F.isJsxFragment(e) ? g(e, !1) : F.Debug.failBadSyntaxKind(e) + } + + function E(e, t) { + t = k(t); + return void 0 === e ? t : e + " " + t + } + + function k(e) { + return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g, function(e, t, r, n, i, a, o) { + return i ? F.utf16EncodeAsString(parseInt(i, 10)) : a ? F.utf16EncodeAsString(parseInt(a, 16)) : (i = P.get(o)) ? F.utf16EncodeAsString(i) : e + }) + } + + function N(e) { + return 281 === e.kind ? N(e.openingElement) : (e = e.tagName, F.isIdentifier(e) && F.isIntrinsicJsxName(e.escapedText) ? _.createStringLiteral(F.idText(e)) : F.createExpressionFromEntityName(_, e)) + } + + function A(e) { + var t = F.visitNode(e.expression, p, F.isExpression); + return e.dotDotDotToken ? _.createSpreadElement(t) : t + } + }; + var P = new F.Map(F.getEntries({ + quot: 34, + amp: 38, + apos: 39, + lt: 60, + gt: 62, + nbsp: 160, + iexcl: 161, + cent: 162, + pound: 163, + curren: 164, + yen: 165, + brvbar: 166, + sect: 167, + uml: 168, + copy: 169, + ordf: 170, + laquo: 171, + not: 172, + shy: 173, + reg: 174, + macr: 175, + deg: 176, + plusmn: 177, + sup2: 178, + sup3: 179, + acute: 180, + micro: 181, + para: 182, + middot: 183, + cedil: 184, + sup1: 185, + ordm: 186, + raquo: 187, + frac14: 188, + frac12: 189, + frac34: 190, + iquest: 191, + Agrave: 192, + Aacute: 193, + Acirc: 194, + Atilde: 195, + Auml: 196, + Aring: 197, + AElig: 198, + Ccedil: 199, + Egrave: 200, + Eacute: 201, + Ecirc: 202, + Euml: 203, + Igrave: 204, + Iacute: 205, + Icirc: 206, + Iuml: 207, + ETH: 208, + Ntilde: 209, + Ograve: 210, + Oacute: 211, + Ocirc: 212, + Otilde: 213, + Ouml: 214, + times: 215, + Oslash: 216, + Ugrave: 217, + Uacute: 218, + Ucirc: 219, + Uuml: 220, + Yacute: 221, + THORN: 222, + szlig: 223, + agrave: 224, + aacute: 225, + acirc: 226, + atilde: 227, + auml: 228, + aring: 229, + aelig: 230, + ccedil: 231, + egrave: 232, + eacute: 233, + ecirc: 234, + euml: 235, + igrave: 236, + iacute: 237, + icirc: 238, + iuml: 239, + eth: 240, + ntilde: 241, + ograve: 242, + oacute: 243, + ocirc: 244, + otilde: 245, + ouml: 246, + divide: 247, + oslash: 248, + ugrave: 249, + uacute: 250, + ucirc: 251, + uuml: 252, + yacute: 253, + thorn: 254, + yuml: 255, + OElig: 338, + oelig: 339, + Scaron: 352, + scaron: 353, + Yuml: 376, + fnof: 402, + circ: 710, + tilde: 732, + Alpha: 913, + Beta: 914, + Gamma: 915, + Delta: 916, + Epsilon: 917, + Zeta: 918, + Eta: 919, + Theta: 920, + Iota: 921, + Kappa: 922, + Lambda: 923, + Mu: 924, + Nu: 925, + Xi: 926, + Omicron: 927, + Pi: 928, + Rho: 929, + Sigma: 931, + Tau: 932, + Upsilon: 933, + Phi: 934, + Chi: 935, + Psi: 936, + Omega: 937, + alpha: 945, + beta: 946, + gamma: 947, + delta: 948, + epsilon: 949, + zeta: 950, + eta: 951, + theta: 952, + iota: 953, + kappa: 954, + lambda: 955, + mu: 956, + nu: 957, + xi: 958, + omicron: 959, + pi: 960, + rho: 961, + sigmaf: 962, + sigma: 963, + tau: 964, + upsilon: 965, + phi: 966, + chi: 967, + psi: 968, + omega: 969, + thetasym: 977, + upsih: 978, + piv: 982, + ensp: 8194, + emsp: 8195, + thinsp: 8201, + zwnj: 8204, + zwj: 8205, + lrm: 8206, + rlm: 8207, + ndash: 8211, + mdash: 8212, + lsquo: 8216, + rsquo: 8217, + sbquo: 8218, + ldquo: 8220, + rdquo: 8221, + bdquo: 8222, + dagger: 8224, + Dagger: 8225, + bull: 8226, + hellip: 8230, + permil: 8240, + prime: 8242, + Prime: 8243, + lsaquo: 8249, + rsaquo: 8250, + oline: 8254, + frasl: 8260, + euro: 8364, + image: 8465, + weierp: 8472, + real: 8476, + trade: 8482, + alefsym: 8501, + larr: 8592, + uarr: 8593, + rarr: 8594, + darr: 8595, + harr: 8596, + crarr: 8629, + lArr: 8656, + uArr: 8657, + rArr: 8658, + dArr: 8659, + hArr: 8660, + forall: 8704, + part: 8706, + exist: 8707, + empty: 8709, + nabla: 8711, + isin: 8712, + notin: 8713, + ni: 8715, + prod: 8719, + sum: 8721, + minus: 8722, + lowast: 8727, + radic: 8730, + prop: 8733, + infin: 8734, + ang: 8736, + and: 8743, + or: 8744, + cap: 8745, + cup: 8746, + int: 8747, + there4: 8756, + sim: 8764, + cong: 8773, + asymp: 8776, + ne: 8800, + equiv: 8801, + le: 8804, + ge: 8805, + sub: 8834, + sup: 8835, + nsub: 8836, + sube: 8838, + supe: 8839, + oplus: 8853, + otimes: 8855, + perp: 8869, + sdot: 8901, + lceil: 8968, + rceil: 8969, + lfloor: 8970, + rfloor: 8971, + lang: 9001, + rang: 9002, + loz: 9674, + spades: 9824, + clubs: 9827, + hearts: 9829, + diams: 9830 + })) + }(ts = ts || {}), ! function(l) { + l.transformES2016 = function(r) { + var o = r.factory, + s = r.hoistVariableDeclaration; + return l.chainBundle(r, function(e) { + if (e.isDeclarationFile) return e; + return l.visitEachChild(e, c, r) + }); + + function c(e) { + if (0 == (512 & e.transformFlags)) return e; + if (223 !== e.kind) return l.visitEachChild(e, c, r); + var t = e; + switch (t.operatorToken.kind) { + case 67: + return function(e) { + var t, r = l.visitNode(e.left, c, l.isExpression), + n = l.visitNode(e.right, c, l.isExpression); { + var i, a; + i = l.isElementAccessExpression(r) ? (a = o.createTempVariable(s), i = o.createTempVariable(s), t = l.setTextRange(o.createElementAccessExpression(l.setTextRange(o.createAssignment(a, r.expression), r.expression), l.setTextRange(o.createAssignment(i, r.argumentExpression), r.argumentExpression)), r), l.setTextRange(o.createElementAccessExpression(a, i), r)) : l.isPropertyAccessExpression(r) ? (a = o.createTempVariable(s), t = l.setTextRange(o.createPropertyAccessExpression(l.setTextRange(o.createAssignment(a, r.expression), r.expression), r.name), r), l.setTextRange(o.createPropertyAccessExpression(a, r.name), r)) : t = r + } + return l.setTextRange(o.createAssignment(t, l.setTextRange(o.createGlobalMethodCall("Math", "pow", [i, n]), e)), e) + }(t); + case 42: + return function(e) { + var t = l.visitNode(e.left, c, l.isExpression), + r = l.visitNode(e.right, c, l.isExpression); + return l.setTextRange(o.createGlobalMethodCall("Math", "pow", [t, r]), e) + }(t); + default: + return l.visitEachChild(t, c, r) + } + } + } + }(ts = ts || {}), ! function(ot) { + var e; + + function K(e, t) { + return { + kind: e, + expression: t + } + }(e = { + None: 0, + 0: "None", + Function: 1, + 1: "Function", + ArrowFunction: 2, + 2: "ArrowFunction", + AsyncFunctionBody: 4, + 4: "AsyncFunctionBody", + NonStaticClassElement: 8, + 8: "NonStaticClassElement", + CapturesThis: 16, + 16: "CapturesThis", + ExportedVariableStatement: 32, + 32: "ExportedVariableStatement", + TopLevel: 64, + 64: "TopLevel", + Block: 128, + 128: "Block", + IterationStatement: 256, + 256: "IterationStatement", + IterationStatementBlock: 512, + 512: "IterationStatementBlock", + IterationContainer: 1024, + 1024: "IterationContainer", + ForStatement: 2048, + 2048: "ForStatement", + ForInOrForOfStatement: 4096, + 4096: "ForInOrForOfStatement", + ConstructorWithCapturedSuper: 8192, + 8192: "ConstructorWithCapturedSuper", + StaticInitializer: 16384, + 16384: "StaticInitializer", + AncestorFactsMask: 32767, + 32767: "AncestorFactsMask", + BlockScopeIncludes: 0 + })[0] = "BlockScopeIncludes", e[e.BlockScopeExcludes = 7104] = "BlockScopeExcludes", e[e.SourceFileIncludes = 64] = "SourceFileIncludes", e[e.SourceFileExcludes = 8064] = "SourceFileExcludes", e[e.FunctionIncludes = 65] = "FunctionIncludes", e[e.FunctionExcludes = 32670] = "FunctionExcludes", e[e.AsyncFunctionBodyIncludes = 69] = "AsyncFunctionBodyIncludes", e[e.AsyncFunctionBodyExcludes = 32662] = "AsyncFunctionBodyExcludes", e[e.ArrowFunctionIncludes = 66] = "ArrowFunctionIncludes", e[e.ArrowFunctionExcludes = 15232] = "ArrowFunctionExcludes", e[e.ConstructorIncludes = 73] = "ConstructorIncludes", e[e.ConstructorExcludes = 32662] = "ConstructorExcludes", e[e.DoOrWhileStatementIncludes = 1280] = "DoOrWhileStatementIncludes", e[e.DoOrWhileStatementExcludes = 0] = "DoOrWhileStatementExcludes", e[e.ForStatementIncludes = 3328] = "ForStatementIncludes", e[e.ForStatementExcludes = 5056] = "ForStatementExcludes", e[e.ForInOrForOfStatementIncludes = 5376] = "ForInOrForOfStatementIncludes", e[e.ForInOrForOfStatementExcludes = 3008] = "ForInOrForOfStatementExcludes", e[e.BlockIncludes = 128] = "BlockIncludes", e[e.BlockExcludes = 6976] = "BlockExcludes", e[e.IterationStatementBlockIncludes = 512] = "IterationStatementBlockIncludes", e[e.IterationStatementBlockExcludes = 7104] = "IterationStatementBlockExcludes", e[e.StaticInitializerIncludes = 16449] = "StaticInitializerIncludes", e[e.StaticInitializerExcludes = 32670] = "StaticInitializerExcludes", e[e.NewTarget = 32768] = "NewTarget", e[e.CapturedLexicalThis = 65536] = "CapturedLexicalThis", e[e.SubtreeFactsMask = -32768] = "SubtreeFactsMask", e[e.ArrowFunctionSubtreeExcludes = 0] = "ArrowFunctionSubtreeExcludes", e[e.FunctionSubtreeExcludes = 98304] = "FunctionSubtreeExcludes", ot.transformES2015 = function(Ce) { + var Ee, o, ke, a, Ne, i, Ae = Ce.factory, + _ = Ce.getEmitHelperFactory, + l = Ce.startLexicalEnvironment, + d = Ce.resumeLexicalEnvironment, + p = Ce.endLexicalEnvironment, + Fe = Ce.hoistVariableDeclaration, + u = Ce.getCompilerOptions(), + f = Ce.getEmitResolver(), + x = Ce.onSubstituteNode, + D = Ce.onEmitNode; + + function Ue(e) { + a = ot.append(a, Ae.createVariableDeclaration(e)) + } + return Ce.onEmitNode = function(e, t, r) { + var n; + 1 & i && ot.isFunctionLike(t) ? (n = Pe(32670, 8 & ot.getEmitFlags(t) ? 81 : 65), D(e, t, r), we(n, 0, 0)) : D(e, t, r) + }, Ce.onSubstituteNode = function(e, t) { + if (t = x(e, t), 1 === e) return function(e) { + switch (e.kind) { + case 79: + return function(e) { + if (2 & i && !ot.isInternalName(e)) { + var t = f.getReferencedDeclarationWithCollidingName(e); + if (t && (!ot.isClassLike(t) || ! function(e, t) { + var r = ot.getParseTreeNode(t); + if (!(!r || r === e || r.end <= e.pos || r.pos >= e.end)) + for (var n = ot.getEnclosingBlockScopeContainer(e); r;) { + if (r === n || r === e) return; + if (ot.isClassElement(r) && r.parent === e) return 1; + r = r.parent + } + return + }(t, e))) return ot.setTextRange(Ae.getGeneratedNameForNode(ot.getNameOfDeclaration(t)), e) + } + return e + }(e); + case 108: + return function(e) { + if (1 & i && 16 & ke) return ot.setTextRange(Ae.createUniqueName("_this", 48), e); + return e + }(e) + } + return e + }(t); + if (ot.isIdentifier(t)) return function(e) { + if (2 & i && !ot.isInternalName(e)) { + var t = ot.getParseTreeNode(e, ot.isIdentifier); + if (t && function(e) { + switch (e.parent.kind) { + case 205: + case 260: + case 263: + case 257: + return e.parent.name === e && f.isDeclarationWithCollidingName(e.parent) + } + return + }(t)) return ot.setTextRange(Ae.getGeneratedNameForNode(t), e) + } + return e + }(t); + return t + }, ot.chainBundle(Ce, function(e) { + if (e.isDeclarationFile) return e; + o = (Ee = e).text; + e = function(e) { + var t = Pe(8064, 64), + r = [], + n = [], + i = (l(), Ae.copyPrologue(e.statements, r, !1, Ie)); + ot.addRange(n, ot.visitNodes(e.statements, Ie, ot.isStatement, i)), a && n.push(Ae.createVariableStatement(void 0, Ae.createVariableDeclarationList(a))); + return Ae.mergeLexicalEnvironment(r, p()), m(r, e), we(t, 0, 0), Ae.updateSourceFile(e, ot.setTextRange(Ae.createNodeArray(ot.concatenate(r, n)), e.statements)) + }(e); + return ot.addEmitHelpers(e, Ce.readEmitHelpers()), Ee = void 0, o = void 0, a = void 0, ke = 0, e + }); + + function Pe(e, t) { + var r = ke; + return ke = 32767 & (ke & ~e | t), r + } + + function we(e, t, r) { + ke = -32768 & (ke & ~t | r) | e + } + + function Ke(e) { + return 0 != (8192 & ke) && 250 === e.kind && !e.expression + } + + function n(e) { + return 0 != (1024 & e.transformFlags) || void 0 !== Ne || 8192 & ke && 4194304 & (t = e).transformFlags && (ot.isReturnStatement(t) || ot.isIfStatement(t) || ot.isWithStatement(t) || ot.isSwitchStatement(t) || ot.isCaseBlock(t) || ot.isCaseClause(t) || ot.isDefaultClause(t) || ot.isTryStatement(t) || ot.isCatchClause(t) || ot.isLabeledStatement(t) || ot.isIterationStatement(t, !1) || ot.isBlock(t)) || ot.isIterationStatement(e, !1) && I(e) || 0 != (33554432 & ot.getEmitFlags(e)); + var t + } + + function Ie(e) { + return n(e) ? s(e, !1) : e + } + + function Oe(e) { + return n(e) ? s(e, !0) : e + } + + function Ve(e) { + var t, r; + return n(e) ? (t = ot.getOriginalNode(e), ot.isPropertyDeclaration(t) && ot.hasStaticModifier(t) ? (t = Pe(32670, 16449), r = s(e, !1), we(t, 98304, 0), r) : s(e, !1)) : e + } + + function Me(e) { + return 106 === e.kind ? it(!0) : Ie(e) + } + + function s(e, L) { + switch (e.kind) { + case 124: + return; + case 260: + var t = e, + r = Ae.createVariableDeclaration(Ae.getLocalName(t, !0), void 0, void 0, He(t)), + n = (ot.setOriginalNode(r, t), []), + r = Ae.createVariableStatement(void 0, Ae.createVariableDeclarationList([r])), + i = (ot.setOriginalNode(r, t), ot.setTextRange(r, t), ot.startOnNewLine(r), n.push(r), ot.hasSyntacticModifier(t, 1) && (i = ot.hasSyntacticModifier(t, 1024) ? Ae.createExportDefault(Ae.getLocalName(t)) : Ae.createExternalModuleExport(Ae.getLocalName(t)), ot.setOriginalNode(i, r), n.push(i)), ot.getEmitFlags(t)); + return 0 == (4194304 & i) && (n.push(Ae.createEndOfDeclarationMarker(t)), ot.setEmitFlags(r, 4194304 | i)), ot.singleOrMany(n); + case 228: + return He(e); + case 166: + t = e; + return t.dotDotDotToken ? void 0 : ot.isBindingPattern(t.name) ? ot.setOriginalNode(ot.setTextRange(Ae.createParameterDeclaration(void 0, void 0, Ae.getGeneratedNameForNode(t), void 0, void 0, void 0), t), t) : t.initializer ? ot.setOriginalNode(ot.setTextRange(Ae.createParameterDeclaration(void 0, void 0, t.name, void 0, void 0, void 0), t), t) : t; + case 259: + return r = e, i = Ne, Ne = void 0, n = Pe(32670, 65), Se = ot.visitParameterList(r.parameters, Ie, Ce), Te = Re(r), M = 32768 & ke ? Ae.getLocalName(r) : r.name, we(n, 98304, 0), Ne = i, Ae.updateFunctionDeclaration(r, ot.visitNodes(r.modifiers, Ie, ot.isModifier), r.asteriskToken, M, void 0, Se, void 0, Te); + case 216: + return 16384 & (M = e).transformFlags && !(16384 & ke) && (ke |= 65536), Se = Ne, Ne = void 0, Te = Pe(15232, 66), O = Ae.createFunctionExpression(void 0, void 0, void 0, void 0, ot.visitParameterList(M.parameters, Ie, Ce), void 0, Re(M)), ot.setTextRange(O, M), ot.setOriginalNode(O, M), ot.setEmitFlags(O, 8), we(Te, 0, 0), Ne = Se, O; + case 215: + return O = e, P = 262144 & ot.getEmitFlags(O) ? Pe(32662, 69) : Pe(32670, 65), xe = Ne, Ne = void 0, w = ot.visitParameterList(O.parameters, Ie, Ce), De = Re(O), I = 32768 & ke ? Ae.getLocalName(O) : O.name, we(P, 98304, 0), Ne = xe, Ae.updateFunctionExpression(O, void 0, O.asteriskToken, I, void 0, w, void 0, De); + case 257: + return Be(e); + case 79: + return We(e); + case 258: + P = e; + return 3 & P.flags || 524288 & P.transformFlags ? (3 & P.flags && at(), xe = ot.flatMap(P.declarations, 1 & P.flags ? Xe : Be), I = Ae.createVariableDeclarationList(xe), ot.setOriginalNode(I, P), ot.setTextRange(I, P), ot.setCommentRange(I, P), 524288 & P.transformFlags && (ot.isBindingPattern(P.declarations[0].name) || ot.isBindingPattern(ot.last(P.declarations).name)) && ot.setSourceMapRange(I, function(e) { + for (var t = -1, r = -1, n = 0, i = e; n < i.length; n++) { + var a = i[n]; + t = -1 === t ? a.pos : -1 === a.pos ? t : Math.min(t, a.pos), r = Math.max(r, a.end) + } + return ot.createRange(t, r) + }(xe)), I) : ot.visitEachChild(P, Ie, Ce); + case 252: + return w = e, void 0 === Ne ? ot.visitEachChild(w, Ie, Ce) : (De = Ne.allowedNonLabeledJumps, Ne.allowedNonLabeledJumps |= 2, w = ot.visitEachChild(w, Ie, Ce), Ne.allowedNonLabeledJumps = De, w); + case 266: + return A = e, F = Pe(7104, 0), A = ot.visitEachChild(e, Ie, Ce), we(F, 0, 0), A; + case 238: + F = e, A = !1; + return A ? ot.visitEachChild(F, Ie, Ce) : (A = 256 & ke ? Pe(7104, 512) : Pe(6976, 128), F = ot.visitEachChild(F, Ie, Ce), we(A, 0, 0), F); + case 249: + case 248: + var a = e; + if (Ne) { + var o = 249 === a.kind ? 2 : 4; + if (!(a.label && Ne.labels && Ne.labels.get(ot.idText(a.label)) || !a.label && Ne.allowedNonLabeledJumps & o)) { + var o = void 0, + s = a.label, + s = (s ? 249 === a.kind ? (o = "break-".concat(s.escapedText), Je(Ne, !0, ot.idText(s), o)) : (o = "continue-".concat(s.escapedText), Je(Ne, !1, ot.idText(s), o)) : o = 249 === a.kind ? (Ne.nonLocalJumps |= 2, "break") : (Ne.nonLocalJumps |= 4, "continue"), Ae.createStringLiteral(o)); + if (Ne.loopOutParameters.length) { + for (var R = Ne.loopOutParameters, B = void 0, j = 0; j < R.length; j++) { + var J = rt(R[j], 1); + B = 0 === j ? J : Ae.createBinaryExpression(B, 27, J) + } + s = Ae.createBinaryExpression(B, 27, s) + } + return Ae.createReturnStatement(s) + } + } + return ot.visitEachChild(a, Ie, Ce); + case 253: + if (o = e, Ne && !Ne.labels && (Ne.labels = new ot.Map), s = ot.unwrapInnermostStatementOfLabel(o, Ne && Ye), ot.isIterationStatement(s, !1)) { + var c = s; + var z = o; + switch (c.kind) { + case 243: + case 244: + return Ze(c, z); + case 245: + return $e(c, z); + case 246: + return et(c, z); + case 247: + return tt(c, z) + } + return + } else return Ae.restoreEnclosingLabel(ot.visitNode(s, Ie, ot.isStatement, Ae.liftToBlock), o, Ne && je); + case 243: + case 244: + return Ze(e, void 0); + case 245: + return $e(e, void 0); + case 246: + return et(e, void 0); + case 247: + return tt(e, void 0); + case 241: + return ot.visitEachChild(e, Oe, Ce); + case 207: + for (var a = e, U = a.properties, K = -1, V = !1, q = 0; q < U.length; q++) { + var W = U[q]; + if (1048576 & W.transformFlags && 4 & ke || (V = 164 === ot.Debug.checkDefined(W.name).kind)) { + K = q; + break + } + } + if (K < 0) return ot.visitEachChild(a, Ie, Ce); + for (var l = Ae.createTempVariable(Fe), u = [], _ = Ae.createAssignment(l, ot.setEmitFlags(Ae.createObjectLiteralExpression(ot.visitNodes(U, Ie, ot.isObjectLiteralElementLike, 0, K), a.multiLine), V ? 65536 : 0)), H = (a.multiLine && ot.startOnNewLine(_), u.push(_), u), d = a, G = l, _ = K, Q = d.properties, X = Q.length, Y = _; Y < X; Y++) { + var p = Q[Y]; + switch (p.kind) { + case 174: + case 175: + var Z = ot.getAllAccessorDeclarations(d.properties, p); + p === Z.firstAccessor && H.push(Ge(G, Z, d, !!d.multiLine)); + break; + case 171: + H.push(function(e, t, r, n) { + t = Ae.createAssignment(ot.createMemberAccessForPropertyName(Ae, t, ot.visitNode(e.name, Ie, ot.isPropertyName)), Le(e, e, void 0, r)); + ot.setTextRange(t, e), n && ot.startOnNewLine(t); + return t + }(p, G, d, d.multiLine)); + break; + case 299: + H.push(function(e, t, r) { + t = Ae.createAssignment(ot.createMemberAccessForPropertyName(Ae, t, ot.visitNode(e.name, Ie, ot.isPropertyName)), ot.visitNode(e.initializer, Ie, ot.isExpression)); + ot.setTextRange(t, e), r && ot.startOnNewLine(t); + return t + }(p, G, d.multiLine)); + break; + case 300: + H.push(function(e, t, r) { + t = Ae.createAssignment(ot.createMemberAccessForPropertyName(Ae, t, ot.visitNode(e.name, Ie, ot.isPropertyName)), Ae.cloneNode(e.name)); + ot.setTextRange(t, e), r && ot.startOnNewLine(t); + return t + }(p, G, d.multiLine)); + break; + default: + ot.Debug.failBadSyntaxKind(d) + } + } + return u.push(a.multiLine ? ot.startOnNewLine(ot.setParent(ot.setTextRange(Ae.cloneNode(l), l), l.parent)) : l), Ae.inlineExpressions(u); + case 295: + _ = e, l = Pe(7104, 0); + return ot.Debug.assert(!!_.variableDeclaration, "Catch clause variable should always be present when downleveling ES2015."), N = ot.isBindingPattern(_.variableDeclaration.name) ? (u = Ae.createTempVariable(void 0), N = Ae.createVariableDeclaration(u), ot.setTextRange(N, _.variableDeclaration), u = ot.flattenDestructuringBinding(_.variableDeclaration, Ie, Ce, 0, u), u = Ae.createVariableDeclarationList(u), ot.setTextRange(u, _.variableDeclaration), u = Ae.createVariableStatement(void 0, u), Ae.updateCatchClause(_, N, function(e, t) { + var r = ot.visitNodes(e.statements, Ie, ot.isStatement); + return Ae.updateBlock(e, __spreadArray([t], r, !0)) + }(_.block, u))) : ot.visitEachChild(_, Ie, Ce), we(l, 0, 0), N; + case 300: + return N = e, ot.setTextRange(Ae.createPropertyAssignment(N.name, We(Ae.cloneNode(N.name))), N); + case 164: + return ot.visitEachChild(e, Ie, Ce); + case 206: + var f = e; + return ot.some(f.elements, ot.isSpreadElement) ? ze(f.elements, !1, !!f.multiLine, !!f.elements.hasTrailingComma) : ot.visitEachChild(f, Ie, Ce); + case 210: + var $, f = e; + if (33554432 & ot.getEmitFlags(f)) { + var ee = f; + + function te(e) { + return ot.isVariableStatement(e) && !!ot.first(e.declarationList.declarations).initializer + } + var g = ot.cast(ot.cast(ot.skipOuterExpressions(ee.expression), ot.isArrowFunction).body, ot.isBlock), + re = Ne, + g = (Ne = void 0, ot.visitNodes(g.statements, Ve, ot.isStatement)), + re = (Ne = re, ot.filter(g, te)), + g = ot.filter(g, function(e) { + return !te(e) + }), + m = ot.cast(ot.first(re), ot.isVariableStatement).declarationList.declarations[0], + y = ot.skipOuterExpressions(m.initializer), + h = ot.tryCast(y, ot.isAssignmentExpression); + !h && ot.isBinaryExpression(y) && 27 === y.operatorToken.kind && (h = ot.tryCast(y.left, ot.isAssignmentExpression)); + var y = ot.cast(h ? ot.skipOuterExpressions(h.right) : y, ot.isCallExpression), + v = ot.cast(ot.skipOuterExpressions(y.expression), ot.isFunctionExpression), + ne = v.body.statements, + b = 0, + ie = -1, + x = []; + h && (($ = ot.tryCast(ne[b], ot.isExpressionStatement)) && (x.push($), b++), x.push(ne[b]), b++, x.push(Ae.createExpressionStatement(Ae.createAssignment(h.left, ot.cast(m.name, ot.isIdentifier))))); + for (; !ot.isReturnStatement(ot.elementAt(ne, ie));) ie--; + ot.addRange(x, ne, b, ie), ie < -1 && ot.addRange(x, ne, ie + 1); + return ot.addRange(x, g), ot.addRange(x, re, 1), Ae.restoreOuterExpressions(ee.expression, Ae.restoreOuterExpressions(m.initializer, Ae.restoreOuterExpressions(h && h.right, Ae.updateCallExpression(y, Ae.restoreOuterExpressions(y.expression, Ae.updateFunctionExpression(v, void 0, void 0, void 0, void 0, v.parameters, void 0, Ae.updateBlock(v.body, x))), void 0, y.arguments)))); + return + } else return 106 === ($ = ot.skipOuterExpressions(f.expression)).kind || ot.isSuperProperty($) || ot.some(f.arguments, ot.isSpreadElement) ? nt(f, !0) : Ae.updateCallExpression(f, ot.visitNode(f.expression, Me, ot.isExpression), void 0, ot.visitNodes(f.arguments, Ie, ot.isExpression)); + case 211: + b = e; + return ot.some(b.arguments, ot.isSpreadElement) ? (g = Ae.createCallBinding(Ae.createPropertyAccessExpression(b.expression, "bind"), Fe), re = g.target, g = g.thisArg, Ae.createNewExpression(Ae.createFunctionApplyCall(ot.visitNode(re, Ie, ot.isExpression), g, ze(Ae.createNodeArray(__spreadArray([Ae.createVoidZero()], b.arguments, !0)), !0, !1, !1)), void 0, [])) : ot.visitEachChild(b, Ie, Ce); + case 214: + return ot.visitEachChild(e, L ? Oe : Ie, Ce); + case 223: + return Qe(e, L); + case 354: + var D = e, + ee = L; + if (ee) return ot.visitEachChild(D, Oe, Ce); + for (var ae, oe = 0; oe < D.elements.length; oe++) { + var se = D.elements[oe], + ce = ot.visitNode(se, oe < D.elements.length - 1 ? Oe : Ie, ot.isExpression); + !ae && ce === se || (ae = ae || D.elements.slice(0, oe)).push(ce) + } + return ee = ae ? ot.setTextRange(Ae.createNodeArray(ae), D.elements) : D.elements, Ae.updateCommaListExpression(D, ee); + case 14: + case 15: + case 16: + case 17: + return m = e, ot.setTextRange(Ae.createStringLiteral(m.text), m); + case 10: + h = e; + return h.hasExtendedUnicodeEscape ? ot.setTextRange(Ae.createStringLiteral(h.text), h) : h; + case 8: + v = e; + return 384 & v.numericLiteralFlags ? ot.setTextRange(Ae.createNumericLiteral(v.text), v) : v; + case 212: + return ot.processTaggedTemplateExpression(Ce, e, Ie, Ee, Ue, ot.ProcessLevel.All); + case 225: + for (var x = e, le = Ae.createStringLiteral(x.head.text), ue = 0, _e = x.templateSpans; ue < _e.length; ue++) { + var de = _e[ue], + pe = [ot.visitNode(de.expression, Ie, ot.isExpression)]; + 0 < de.literal.text.length && pe.push(Ae.createStringLiteral(de.literal.text)), le = Ae.createCallExpression(Ae.createPropertyAccessExpression(le, "concat"), void 0, pe) + } + return ot.setTextRange(le, x); + case 226: + return ot.visitEachChild(e, Ie, Ce); + case 227: + return ot.visitNode(e.expression, Ie, ot.isExpression); + case 106: + return it(!1); + case 108: + y = e; + return 2 & ke && !(16384 & ke) && (ke |= 65536), Ne ? 2 & ke ? (Ne.containsLexicalThis = !0, y) : Ne.thisName || (Ne.thisName = Ae.createUniqueName("this")) : y; + case 233: + return 103 !== (k = e).keywordToken || "target" !== k.name.escapedText ? k : (ke |= 32768, Ae.createUniqueName("_newTarget", 48)); + case 171: + return k = e, ot.Debug.assert(!ot.isComputedPropertyName(k.name)), S = Le(k, ot.moveRangePos(k, -1), void 0, void 0), ot.setEmitFlags(S, 512 | ot.getEmitFlags(S)), ot.setTextRange(Ae.createPropertyAssignment(k.name, S), k); + case 174: + case 175: + var S = e, + fe = (ot.Debug.assert(!ot.isComputedPropertyName(S.name)), Ne), + T = (Ne = void 0, Pe(32670, 65)), + C = ot.visitParameterList(S.parameters, Ie, Ce), + ge = Re(S); + return S = 174 === S.kind ? Ae.updateGetAccessorDeclaration(S, S.modifiers, S.name, C, S.type, ge) : Ae.updateSetAccessorDeclaration(S, S.modifiers, S.name, C, ge), we(T, 98304, 0), Ne = fe, S; + case 240: + var me, C = e, + ge = Pe(0, ot.hasSyntacticModifier(C, 1) ? 32 : 0); + if (Ne && 0 == (3 & C.declarationList.flags) && ! function(e) { + return 1 === e.declarationList.declarations.length && e.declarationList.declarations[0].initializer && 33554432 & ot.getEmitFlags(e.declarationList.declarations[0].initializer) + }(C)) { + for (var ye = void 0, he = 0, ve = C.declarationList.declarations; he < ve.length; he++) { + var be, E = ve[he]; + ! function(a, e) { + a.hoistedLocalVariables || (a.hoistedLocalVariables = []); + ! function e(t) { + if (79 === t.kind) a.hoistedLocalVariables.push(t); + else + for (var r = 0, n = t.elements; r < n.length; r++) { + var i = n[r]; + ot.isOmittedExpression(i) || e(i.name) + } + }(e.name) + }(Ne, E), E.initializer && (be = void 0, ot.isBindingPattern(E.name) ? be = ot.flattenDestructuringAssignment(E, Ie, Ce, 0) : (be = Ae.createBinaryExpression(E.name, 63, ot.visitNode(E.initializer, Ie, ot.isExpression)), ot.setTextRange(be, E)), ye = ot.append(ye, be)) + } + me = ye ? ot.setTextRange(Ae.createExpressionStatement(Ae.inlineExpressions(ye)), C) : void 0 + } else me = ot.visitEachChild(C, Ie, Ce); + return we(ge, 0, 0), me; + case 250: + T = e; + return Ne ? (Ne.nonLocalJumps |= 8, Ke(T) && (T = qe(T)), Ae.createReturnStatement(Ae.createObjectLiteralExpression([Ae.createPropertyAssignment(Ae.createIdentifier("value"), T.expression ? ot.visitNode(T.expression, Ie, ot.isExpression) : Ae.createVoidZero())]))) : Ke(T) ? qe(T) : ot.visitEachChild(T, Ie, Ce); + case 219: + return ot.visitEachChild(e, Oe, Ce); + default: + return ot.visitEachChild(e, Ie, Ce) + } + var S, k, N, A, F, P, xe, w, De, I, O, Se, Te, M + } + + function qe(e) { + return ot.setOriginalNode(Ae.createReturnStatement(Ae.createUniqueName("_this", 48)), e) + } + + function We(e) { + return Ne && f.isArgumentsLocalBinding(e) ? Ne.argumentsName || (Ne.argumentsName = Ae.createUniqueName("arguments")) : e.hasExtendedUnicodeEscape ? ot.setOriginalNode(ot.setTextRange(Ae.createIdentifier(ot.unescapeLeadingUnderscores(e.escapedText)), e), e) : e + } + + function He(e) { + e.name && at(); + var t = ot.getClassExtendsHeritageElement(e), + r = Ae.createFunctionExpression(void 0, void 0, void 0, void 0, t ? [Ae.createParameterDeclaration(void 0, void 0, Ae.createUniqueName("_super", 48))] : [], void 0, (i = e, a = t, n = [], r = Ae.getInternalName(i), r = ot.isIdentifierANonContextualKeyword(r) ? Ae.getGeneratedNameForNode(r) : r, l(), function(e, t, r) { + r && e.push(ot.setTextRange(Ae.createExpressionStatement(_().createExtendsHelper(Ae.getInternalName(t))), r)) + }(n, i, a), function(e, t, r, n) { + var i = Ne, + a = (Ne = void 0, Pe(32662, 73)), + o = ot.getFirstConstructorWithBody(t), + s = function(e, t) { + if (!e || !t) return !1; + if (ot.some(e.parameters)) return !1; + var t = ot.firstOrUndefined(e.body.statements); + return !(!t || !ot.nodeIsSynthesized(t) || 241 !== t.kind) && (e = t.expression, !(!ot.nodeIsSynthesized(e) || 210 !== e.kind)) && (t = e.expression, !(!ot.nodeIsSynthesized(t) || 106 !== t.kind)) && !(!(t = ot.singleOrUndefined(e.arguments)) || !ot.nodeIsSynthesized(t) || 227 !== t.kind) && (e = t.expression, ot.isIdentifier(e)) && "arguments" === e.escapedText + }(o, void 0 !== n), + r = Ae.createFunctionDeclaration(void 0, void 0, r, void 0, function(e, t) { + return ot.visitParameterList(e && !t ? e.parameters : void 0, Ie, Ce) || [] + }(o, s), void 0, function(e, t, r, n) { + r = !!r && 104 !== ot.skipOuterExpressions(r.expression).kind; + if (!e) return function(e, t) { + var r = []; + d(), Ae.mergeLexicalEnvironment(r, p()), t && r.push(Ae.createReturnStatement(S())); + t = Ae.createNodeArray(r), ot.setTextRange(t, e.members), r = Ae.createBlock(t, !0); + return ot.setTextRange(r, e), ot.setEmitFlags(r, 1536), r + }(t, r); + var i, t = [], + a = [], + o = (d(), ot.takeWhile(e.body.statements, ot.isPrologueDirective)), + s = function(e, t) { + for (var r = t.length; r < e.length; r += 1) { + var n = ot.getSuperCallFromStatement(e[r]); + if (n) return { + superCall: n, + superStatementIndex: r + } + } + return { + superStatementIndex: -1 + } + }(e.body.statements, o), + c = s.superCall, + s = s.superStatementIndex, + l = -1 === s ? o.length : s + 1, + u = l; + n || (u = Ae.copyStandardPrologue(e.body.statements, t, u, !1)); + n || (u = Ae.copyCustomPrologue(e.body.statements, a, u, Ie, void 0)); + n ? i = S() : c && (i = function(e) { + return nt(e, !1) + }(c)); + i && (ke |= 8192); + C(t, e), E(t, e, n), ot.addRange(a, ot.visitNodes(e.body.statements, Ie, ot.isStatement, u)), Ae.mergeLexicalEnvironment(t, p()), k(t, e, !1), r || i ? !i || l !== e.body.statements.length || 16384 & e.body.transformFlags ? (s <= o.length ? y(a, e, i || g()) : (y(t, e, g()), i && function(e, t) { + z(); + var r = Ae.createExpressionStatement(Ae.createBinaryExpression(Ae.createThis(), 63, t)); + ot.insertStatementAfterCustomPrologue(e, r), ot.setCommentRange(r, ot.getOriginalNode(t).parent) + }(a, i)), function e(t) { + { + if (250 === t.kind) return !0; + if (242 === t.kind) { + var r = t; + if (r.elseStatement) return e(r.thenStatement) && e(r.elseStatement) + } else if (238 === t.kind) { + r = ot.lastOrUndefined(t.statements); + if (r && e(r)) return !0 + } + } + return !1 + }(e.body) || a.push(Ae.createReturnStatement(Ae.createUniqueName("_this", 48)))) : (c = ot.cast(ot.cast(i, ot.isBinaryExpression).left, ot.isCallExpression), n = Ae.createReturnStatement(i), ot.setCommentRange(n, ot.getCommentRange(c)), ot.setEmitFlags(c, 1536), a.push(n)) : m(t, e); + u = Ae.createBlock(ot.setTextRange(Ae.createNodeArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], o, !0), t, !0), s <= o.length ? ot.emptyArray : ot.visitNodes(e.body.statements, Ie, ot.isStatement, o.length, s - o.length), !0), a, !0)), e.body.statements), !0); + return ot.setTextRange(u, e.body), u + }(o, t, n, s)); + ot.setTextRange(r, o || t), n && ot.setEmitFlags(r, 8); + e.push(r), we(a, 98304, 0), Ne = i + }(n, i, r, a), function(e, t) { + for (var r = 0, n = t.members; r < n.length; r++) { + var i = n[r]; + switch (i.kind) { + case 237: + e.push(function(e) { + return ot.setTextRange(Ae.createEmptyStatement(), e) + }(i)); + break; + case 171: + e.push(function(e, t, r) { + var n = ot.getCommentRange(t), + i = ot.getSourceMapRange(t), + r = Le(t, t, void 0, r), + a = ot.visitNode(t.name, Ie, ot.isPropertyName); { + var o; + e = !ot.isPrivateIdentifier(a) && ot.getUseDefineForClassFields(Ce.getCompilerOptions()) ? (o = ot.isComputedPropertyName(a) ? a.expression : ot.isIdentifier(a) ? Ae.createStringLiteral(ot.unescapeLeadingUnderscores(a.escapedText)) : a, Ae.createObjectDefinePropertyCall(e, o, Ae.createPropertyDescriptor({ + value: r, + enumerable: !1, + writable: !0, + configurable: !0 + }))) : (o = ot.createMemberAccessForPropertyName(Ae, e, a, t.name), Ae.createAssignment(o, r)) + } + ot.setEmitFlags(r, 1536), ot.setSourceMapRange(r, i); + a = ot.setTextRange(Ae.createExpressionStatement(e), t); + return ot.setOriginalNode(a, t), ot.setCommentRange(a, n), ot.setEmitFlags(a, 48), a + }(U(t, i), i, t)); + break; + case 174: + case 175: + var a = ot.getAllAccessorDeclarations(t.members, i); + i === a.firstAccessor && e.push(function(e, t, r) { + e = Ae.createExpressionStatement(Ge(e, t, r, !1)); + return ot.setEmitFlags(e, 1536), ot.setSourceMapRange(e, ot.getSourceMapRange(t.firstAccessor)), e + }(U(t, i), a, t)); + break; + case 173: + case 172: + break; + default: + ot.Debug.failBadSyntaxKind(i, Ee && Ee.fileName) + } + } + }(n, i), a = ot.createTokenRange(ot.skipTrivia(o, i.members.end), 19), r = Ae.createPartiallyEmittedExpression(r), ot.setTextRangeEnd(r, a.end), ot.setEmitFlags(r, 1536), r = Ae.createReturnStatement(r), ot.setTextRangePos(r, a.pos), ot.setEmitFlags(r, 1920), n.push(r), ot.insertStatementsAfterStandardPrologue(n, p()), a = Ae.createBlock(ot.setTextRange(Ae.createNodeArray(n), i.members), !0), ot.setEmitFlags(a, 1536), a)), + n = (ot.setEmitFlags(r, 65536 & ot.getEmitFlags(e) | 524288), Ae.createPartiallyEmittedExpression(r)), + i = (ot.setTextRangeEnd(n, e.end), ot.setEmitFlags(n, 1536), Ae.createPartiallyEmittedExpression(n)), + a = (ot.setTextRangeEnd(i, ot.skipTrivia(o, e.pos)), ot.setEmitFlags(i, 1536), Ae.createParenthesizedExpression(Ae.createCallExpression(i, void 0, t ? [ot.visitNode(t.expression, Ie, ot.isExpression)] : []))); + return ot.addSyntheticLeadingComment(a, 3, "* @class "), a + } + + function g() { + return ot.setEmitFlags(Ae.createThis(), 4) + } + + function S() { + return Ae.createLogicalOr(Ae.createLogicalAnd(Ae.createStrictInequality(Ae.createUniqueName("_super", 48), Ae.createNull()), Ae.createFunctionApplyCall(Ae.createUniqueName("_super", 48), g(), Ae.createIdentifier("arguments"))), g()) + } + + function T(e) { + return void 0 !== e.initializer || ot.isBindingPattern(e.name) + } + + function C(e, t) { + if (!ot.some(t.parameters, T)) return !1; + for (var r = !1, n = 0, i = t.parameters; n < i.length; n++) { + var a, o, s, c, l = i[n], + u = l.name, + _ = l.initializer; + l.dotDotDotToken || (ot.isBindingPattern(u) ? r = function(e, t, r, n) { + { + if (0 < r.elements.length) return ot.insertStatementAfterCustomPrologue(e, ot.setEmitFlags(Ae.createVariableStatement(void 0, Ae.createVariableDeclarationList(ot.flattenDestructuringBinding(t, Ie, Ce, 0, Ae.getGeneratedNameForNode(t)))), 1048576)), !0; + if (n) return ot.insertStatementAfterCustomPrologue(e, ot.setEmitFlags(Ae.createExpressionStatement(Ae.createAssignment(Ae.getGeneratedNameForNode(t), ot.visitNode(n, Ie, ot.isExpression))), 1048576)), !0 + } + return !1 + }(e, l, u, _) || r : _ && (c = s = o = a = void 0, a = e, o = l, s = u, c = _, c = ot.visitNode(c, Ie, ot.isExpression), s = Ae.createIfStatement(Ae.createTypeCheck(Ae.cloneNode(s), "undefined"), ot.setEmitFlags(ot.setTextRange(Ae.createBlock([Ae.createExpressionStatement(ot.setEmitFlags(ot.setTextRange(Ae.createAssignment(ot.setEmitFlags(ot.setParent(ot.setTextRange(Ae.cloneNode(s), s), s.parent), 48), ot.setEmitFlags(c, 1584 | ot.getEmitFlags(c))), o), 1536))]), o), 1953)), ot.startOnNewLine(s), ot.setTextRange(s, o), ot.setEmitFlags(s, 1050528), ot.insertStatementAfterCustomPrologue(a, s), r = !0)) + } + return r + } + + function E(e, t, r) { + var n, i, a = [], + o = ot.lastOrUndefined(t.parameters); + return r = r, !(!(i = o) || !i.dotDotDotToken || r || (i = 79 === o.name.kind ? ot.setParent(ot.setTextRange(Ae.cloneNode(o.name), o.name), o.name.parent) : Ae.createTempVariable(void 0), ot.setEmitFlags(i, 48), r = 79 === o.name.kind ? Ae.cloneNode(o.name) : i, t = t.parameters.length - 1, n = Ae.createLoopVariable(), a.push(ot.setEmitFlags(ot.setTextRange(Ae.createVariableStatement(void 0, Ae.createVariableDeclarationList([Ae.createVariableDeclaration(i, void 0, void 0, Ae.createArrayLiteralExpression([]))])), o), 1048576)), i = Ae.createForStatement(ot.setTextRange(Ae.createVariableDeclarationList([Ae.createVariableDeclaration(n, void 0, void 0, Ae.createNumericLiteral(t))]), o), ot.setTextRange(Ae.createLessThan(n, Ae.createPropertyAccessExpression(Ae.createIdentifier("arguments"), "length")), o), ot.setTextRange(Ae.createPostfixIncrement(n), o), Ae.createBlock([ot.startOnNewLine(ot.setTextRange(Ae.createExpressionStatement(Ae.createAssignment(Ae.createElementAccessExpression(r, 0 == t ? n : Ae.createSubtract(n, Ae.createNumericLiteral(t))), Ae.createElementAccessExpression(Ae.createIdentifier("arguments"), n))), o))])), ot.setEmitFlags(i, 1048576), ot.startOnNewLine(i), a.push(i), 79 !== o.name.kind && a.push(ot.setEmitFlags(ot.setTextRange(Ae.createVariableStatement(void 0, Ae.createVariableDeclarationList(ot.flattenDestructuringBinding(o, Ie, Ce, 0, r))), o), 1048576)), ot.insertStatementsAfterCustomPrologue(e, a), 0)) + } + + function m(e, t) { + 65536 & ke && 216 !== t.kind && y(e, t, Ae.createThis()) + } + + function y(e, t, r) { + z(); + r = Ae.createVariableStatement(void 0, Ae.createVariableDeclarationList([Ae.createVariableDeclaration(Ae.createUniqueName("_this", 48), void 0, void 0, r)])); + ot.setEmitFlags(r, 1050112), ot.setSourceMapRange(r, t), ot.insertStatementAfterCustomPrologue(e, r) + } + + function k(e, t, r) { + if (32768 & ke) { + var n = void 0; + switch (t.kind) { + case 216: + return; + case 171: + case 174: + case 175: + n = Ae.createVoidZero(); + break; + case 173: + n = Ae.createPropertyAccessExpression(ot.setEmitFlags(Ae.createThis(), 4), "constructor"); + break; + case 259: + case 215: + n = Ae.createConditionalExpression(Ae.createLogicalAnd(ot.setEmitFlags(Ae.createThis(), 4), Ae.createBinaryExpression(ot.setEmitFlags(Ae.createThis(), 4), 102, Ae.getLocalName(t))), void 0, Ae.createPropertyAccessExpression(ot.setEmitFlags(Ae.createThis(), 4), "constructor"), void 0, Ae.createVoidZero()); + break; + default: + return ot.Debug.failBadSyntaxKind(t) + } + var i = Ae.createVariableStatement(void 0, Ae.createVariableDeclarationList([Ae.createVariableDeclaration(Ae.createUniqueName("_newTarget", 48), void 0, void 0, n)])); + ot.setEmitFlags(i, 1050112), r && (e = e.slice()), ot.insertStatementAfterCustomPrologue(e, i) + } + } + + function Ge(e, t, r, n) { + var i, a = t.firstAccessor, + o = t.getAccessor, + t = t.setAccessor, + e = ot.setParent(ot.setTextRange(Ae.cloneNode(e), e), e.parent), + s = (ot.setEmitFlags(e, 1568), ot.setSourceMapRange(e, a.name), ot.visitNode(a.name, Ie, ot.isPropertyName)); + return ot.isPrivateIdentifier(s) ? ot.Debug.failBadSyntaxKind(s, "Encountered unhandled private identifier while transforming ES2015.") : (s = ot.createExpressionForPropertyName(Ae, s), ot.setEmitFlags(s, 1552), ot.setSourceMapRange(s, a.name), a = [], o && (i = Le(o, void 0, void 0, r), ot.setSourceMapRange(i, ot.getSourceMapRange(o)), ot.setEmitFlags(i, 512), i = Ae.createPropertyAssignment("get", i), ot.setCommentRange(i, ot.getCommentRange(o)), a.push(i)), t && (i = Le(t, void 0, void 0, r), ot.setSourceMapRange(i, ot.getSourceMapRange(t)), ot.setEmitFlags(i, 512), r = Ae.createPropertyAssignment("set", i), ot.setCommentRange(r, ot.getCommentRange(t)), a.push(r)), a.push(Ae.createPropertyAssignment("enumerable", o || t ? Ae.createFalse() : Ae.createTrue()), Ae.createPropertyAssignment("configurable", Ae.createTrue())), i = Ae.createCallExpression(Ae.createPropertyAccessExpression(Ae.createIdentifier("Object"), "defineProperty"), void 0, [e, s, Ae.createObjectLiteralExpression(a, !0)]), n && ot.startOnNewLine(i), i) + } + + function Le(e, t, r, n) { + var i = Ne, + n = (Ne = void 0, n && ot.isClassLike(n) && !ot.isStatic(e) ? Pe(32670, 73) : Pe(32670, 65)), + a = ot.visitParameterList(e.parameters, Ie, Ce), + o = Re(e); + return 32768 & ke && !r && (259 === e.kind || 215 === e.kind) && (r = Ae.getGeneratedNameForNode(e)), we(n, 98304, 0), Ne = i, ot.setOriginalNode(ot.setTextRange(Ae.createFunctionExpression(void 0, e.asteriskToken, r, void 0, a, void 0, o), t), e) + } + + function Re(e) { + var t, r, n, i = !1, + a = !1, + o = [], + s = [], + c = e.body; + return d(), ot.isBlock(c) && (n = Ae.copyStandardPrologue(c.statements, o, 0, !1), n = Ae.copyCustomPrologue(c.statements, s, n, Ie, ot.isHoistedFunction), n = Ae.copyCustomPrologue(c.statements, s, n, Ie, ot.isHoistedVariableStatement)), i = C(s, e) || i, i = E(s, e, !1) || i, ot.isBlock(c) ? (n = Ae.copyCustomPrologue(c.statements, s, n, Ie), r = c.statements, ot.addRange(s, ot.visitNodes(c.statements, Ie, ot.isStatement, n)), !i && c.multiLine && (i = !0)) : (ot.Debug.assert(216 === e.kind), r = ot.moveRangeEnd(c, -1), n = e.equalsGreaterThanToken, ot.nodeIsSynthesized(n) || ot.nodeIsSynthesized(c) || (ot.rangeEndIsOnSameLineAsRangeStart(n, c, Ee) ? a = !0 : i = !0), n = ot.visitNode(c, Ie, ot.isExpression), n = Ae.createReturnStatement(n), ot.setTextRange(n, c), ot.moveSyntheticComments(n, c), ot.setEmitFlags(n, 1440), s.push(n), t = c), Ae.mergeLexicalEnvironment(o, p()), k(o, e, !1), m(o, e), ot.some(o) && (i = !0), s.unshift.apply(s, o), ot.isBlock(c) && ot.arrayIsEqualTo(s, c.statements) ? c : (n = Ae.createBlock(ot.setTextRange(Ae.createNodeArray(s), r), i), ot.setTextRange(n, e.body), !i && a && ot.setEmitFlags(n, 1), t && ot.setTokenSourceMapRange(n, 19, t), ot.setOriginalNode(n, e.body), n) + } + + function Qe(e, t) { + return ot.isDestructuringAssignment(e) ? ot.flattenDestructuringAssignment(e, Ie, Ce, 0, !t) : 27 === e.operatorToken.kind ? Ae.updateBinaryExpression(e, ot.visitNode(e.left, Oe, ot.isExpression), e.operatorToken, ot.visitNode(e.right, t ? Oe : Ie, ot.isExpression)) : ot.visitEachChild(e, Ie, Ce) + } + + function Xe(e) { + var t, r, n = e.name; + return ot.isBindingPattern(n) ? Be(e) : e.initializer || (n = e, t = 262144 & (r = f.getNodeCheckFlags(n)), r &= 524288, 0 != (64 & ke)) || t && r && 0 != (512 & ke) || 0 != (4096 & ke) || f.isDeclarationWithCollidingName(n) && (!r || t || 0 != (6144 & ke)) ? ot.visitEachChild(e, Ie, Ce) : Ae.updateVariableDeclaration(e, e.name, void 0, void 0, Ae.createVoidZero()) + } + + function Be(e) { + var t = Pe(32, 0), + e = ot.isBindingPattern(e.name) ? ot.flattenDestructuringBinding(e, Ie, Ce, 0, void 0, 0 != (32 & t)) : ot.visitEachChild(e, Ie, Ce); + return we(t, 0, 0), e + } + + function Ye(e) { + Ne.labels.set(ot.idText(e.label), !0) + } + + function je(e) { + Ne.labels.set(ot.idText(e.label), !1) + } + + function r(e, t, r, n, i) { + e = Pe(e, t), t = function(e, t, r, n) { + if (!I(e)) return i = void 0, Ne && (i = Ne.allowedNonLabeledJumps, Ne.allowedNonLabeledJumps = 6), a = n ? n(e, t, void 0, r) : Ae.restoreEnclosingLabel(ot.isForStatement(e) ? function(e) { + return Ae.updateForStatement(e, ot.visitNode(e.initializer, Oe, ot.isForInitializer), ot.visitNode(e.condition, Ie, ot.isExpression), ot.visitNode(e.incrementor, Oe, ot.isExpression), ot.visitNode(e.statement, Ie, ot.isStatement, Ae.liftToBlock)) + }(e) : ot.visitEachChild(e, Ie, Ce), t, Ne && je), Ne && (Ne.allowedNonLabeledJumps = i), a; + var i = function(e) { + var t; + switch (e.kind) { + case 245: + case 246: + case 247: + var r = e.initializer; + r && 258 === r.kind && (t = r) + } + var n = [], + i = []; + if (t && 3 & ot.getCombinedNodeFlags(t)) + for (var a = h(e) || v(e) || w(e), o = 0, s = t.declarations; o < s.length; o++) { + var c = s[o]; + ! function e(t, r, n, i, a) { + var o = r.name; + if (ot.isBindingPattern(o)) + for (var s = 0, c = o.elements; s < c.length; s++) { + var l = c[s]; + ot.isOmittedExpression(l) || e(t, l, n, i, a) + } else { + n.push(Ae.createParameterDeclaration(void 0, void 0, o)); + var u, _, d = f.getNodeCheckFlags(r); + (4194304 & d || a) && (u = Ae.createUniqueName("out_" + ot.idText(o)), _ = 0, 4194304 & d && (_ |= 1), ot.isForStatement(t) && (t.initializer && f.isBindingCapturedByNode(t.initializer, r) && (_ |= 2), t.condition && f.isBindingCapturedByNode(t.condition, r) || t.incrementor && f.isBindingCapturedByNode(t.incrementor, r)) && (_ |= 1), i.push({ + flags: _, + originalName: o, + outParamName: u + })) + } + }(e, c, n, i, a) + } + var l = { + loopParameters: n, + loopOutParameters: i + }; + Ne && (Ne.argumentsName && (l.argumentsName = Ne.argumentsName), Ne.thisName && (l.thisName = Ne.thisName), Ne.hoistedLocalVariables) && (l.hoistedLocalVariables = Ne.hoistedLocalVariables); + return l + }(e), + a = [], + o = Ne, + s = (Ne = i, h(e) ? function(e, t) { + var r = Ae.createUniqueName("_loop_init"), + n = 0 != (1048576 & e.initializer.transformFlags), + i = 0; + t.containsLexicalThis && (i |= 8); + n && 4 & ke && (i |= 262144); + var a = [], + e = (a.push(Ae.createVariableStatement(void 0, e.initializer)), b(t.loopOutParameters, 2, 1, a), Ae.createVariableStatement(void 0, ot.setEmitFlags(Ae.createVariableDeclarationList([Ae.createVariableDeclaration(r, void 0, void 0, ot.setEmitFlags(Ae.createFunctionExpression(void 0, n ? Ae.createToken(41) : void 0, void 0, void 0, void 0, void 0, ot.visitNode(Ae.createBlock(a, !0), Ie, ot.isBlock)), i))]), 2097152))), + a = Ae.createVariableDeclarationList(ot.map(t.loopOutParameters, L)); + return { + functionName: r, + containsYield: n, + functionDeclaration: e, + part: a + } + }(e, i) : void 0), + c = O(e) ? function(e, t, r) { + var n = Ae.createUniqueName("_loop"), + i = (l(), ot.visitNode(e.statement, Ie, ot.isStatement, Ae.liftToBlock)), + a = p(), + o = []; + (v(e) || w(e)) && (t.conditionVariable = Ae.createUniqueName("inc"), e.incrementor ? o.push(Ae.createIfStatement(t.conditionVariable, Ae.createExpressionStatement(ot.visitNode(e.incrementor, Ie, ot.isExpression)), Ae.createExpressionStatement(Ae.createAssignment(t.conditionVariable, Ae.createTrue())))) : o.push(Ae.createIfStatement(Ae.createLogicalNot(t.conditionVariable), Ae.createExpressionStatement(Ae.createAssignment(t.conditionVariable, Ae.createTrue())))), v(e)) && o.push(Ae.createIfStatement(Ae.createPrefixUnaryExpression(53, ot.visitNode(e.condition, Ie, ot.isExpression)), ot.visitNode(Ae.createBreakStatement(), Ie, ot.isStatement))); + ot.isBlock(i) ? ot.addRange(o, i.statements) : o.push(i); + b(t.loopOutParameters, 1, 1, o), ot.insertStatementsAfterStandardPrologue(o, a); + a = Ae.createBlock(o, !0); + ot.isBlock(i) && ot.setOriginalNode(a, i); + o = 0 != (1048576 & e.statement.transformFlags), i = 524288; + t.containsLexicalThis && (i |= 8); + o && 0 != (4 & ke) && (i |= 262144); + e = Ae.createVariableStatement(void 0, ot.setEmitFlags(Ae.createVariableDeclarationList([Ae.createVariableDeclaration(n, void 0, void 0, ot.setEmitFlags(Ae.createFunctionExpression(void 0, o ? Ae.createToken(41) : void 0, void 0, void 0, t.loopParameters, void 0, a), i))]), 2097152)), a = function(e, t, r, n) { + var i = [], + a = !(-5 & t.nonLocalJumps || t.labeledNonLocalBreaks || t.labeledNonLocalContinues), + e = Ae.createCallExpression(e, void 0, ot.map(t.loopParameters, function(e) { + return e.name + })), + n = n ? Ae.createYieldExpression(Ae.createToken(41), ot.setEmitFlags(e, 8388608)) : e; + a ? (i.push(Ae.createExpressionStatement(n)), b(t.loopOutParameters, 1, 0, i)) : (e = Ae.createUniqueName("state"), a = Ae.createVariableStatement(void 0, Ae.createVariableDeclarationList([Ae.createVariableDeclaration(e, void 0, void 0, n)])), i.push(a), b(t.loopOutParameters, 1, 0, i), 8 & t.nonLocalJumps && (n = void 0, n = r ? (r.nonLocalJumps |= 8, Ae.createReturnStatement(e)) : Ae.createReturnStatement(Ae.createPropertyAccessExpression(e, "value")), i.push(Ae.createIfStatement(Ae.createTypeCheck(e, "object"), n))), 2 & t.nonLocalJumps && i.push(Ae.createIfStatement(Ae.createStrictEquality(e, Ae.createStringLiteral("break")), Ae.createBreakStatement())), (t.labeledNonLocalBreaks || t.labeledNonLocalContinues) && (a = [], R(t.labeledNonLocalBreaks, !0, e, r, a), R(t.labeledNonLocalContinues, !1, e, r, a), i.push(Ae.createSwitchStatement(e, Ae.createCaseBlock(a))))); + return i + }(n, t, r, o); + return { + functionName: n, + containsYield: o, + functionDeclaration: e, + part: a + } + }(e, i, o) : void 0; + Ne = o, s && a.push(s.functionDeclaration); + c && a.push(c.functionDeclaration); + (function(e, t, r) { + var n; + t.argumentsName && (r ? r.argumentsName = t.argumentsName : (n = n || []).push(Ae.createVariableDeclaration(t.argumentsName, void 0, void 0, Ae.createIdentifier("arguments")))); + t.thisName && (r ? r.thisName = t.thisName : (n = n || []).push(Ae.createVariableDeclaration(t.thisName, void 0, void 0, Ae.createIdentifier("this")))); + if (t.hoistedLocalVariables) + if (r) r.hoistedLocalVariables = t.hoistedLocalVariables; + else { + n = n || []; + for (var i = 0, a = t.hoistedLocalVariables; i < a.length; i++) { + var o = a[i]; + n.push(Ae.createVariableDeclaration(o)) + } + } + if (t.loopOutParameters.length) { + n = n || []; + for (var s = 0, c = t.loopOutParameters; s < c.length; s++) { + var l = c[s]; + n.push(Ae.createVariableDeclaration(l.outParamName)) + } + } + t.conditionVariable && (n = n || []).push(Ae.createVariableDeclaration(t.conditionVariable, void 0, void 0, Ae.createFalse())); + n && e.push(Ae.createVariableStatement(void 0, Ae.createVariableDeclarationList(n))) + })(a, i, o), s && a.push(function(e, t) { + e = Ae.createCallExpression(e, void 0, []), t = t ? Ae.createYieldExpression(Ae.createToken(41), ot.setEmitFlags(e, 8388608)) : e; + return Ae.createExpressionStatement(t) + }(s.functionName, s.containsYield)); + n = c ? n ? n(e, t, c.part, r) : (i = M(e, s, Ae.createBlock(c.part, !0)), Ae.restoreEnclosingLabel(i, t, Ne && je)) : (o = M(e, s, ot.visitNode(e.statement, Ie, ot.isStatement, Ae.liftToBlock)), Ae.restoreEnclosingLabel(o, t, Ne && je)); + return a.push(n), a + }(r, n, e, i); + return we(e, 0, 0), t + } + + function Ze(e, t) { + return r(0, 1280, e, t) + } + + function $e(e, t) { + return r(5056, 3328, e, t) + } + + function et(e, t) { + return r(3008, 5376, e, t) + } + + function tt(e, t) { + return r(3008, 5376, e, t, u.downlevelIteration ? P : F) + } + + function N(e, t, r) { + var n, i, a, o = [], + s = e.initializer; + return ot.isVariableDeclarationList(s) ? (3 & e.initializer.flags && at(), (n = ot.firstOrUndefined(s.declarations)) && ot.isBindingPattern(n.name) ? (i = ot.flattenDestructuringBinding(n, Ie, Ce, 0, t), a = ot.setTextRange(Ae.createVariableDeclarationList(i), e.initializer), ot.setOriginalNode(a, e.initializer), ot.setSourceMapRange(a, ot.createRange(i[0].pos, ot.last(i).end)), o.push(Ae.createVariableStatement(void 0, a))) : o.push(ot.setTextRange(Ae.createVariableStatement(void 0, ot.setOriginalNode(ot.setTextRange(Ae.createVariableDeclarationList([Ae.createVariableDeclaration(n ? n.name : Ae.createTempVariable(void 0), void 0, void 0, t)]), ot.moveRangePos(s, -1)), s)), ot.moveRangeEnd(s, -1)))) : (i = Ae.createAssignment(s, t), ot.isDestructuringAssignment(i) ? o.push(Ae.createExpressionStatement(Qe(i, !0))) : (ot.setTextRangeEnd(i, s.end), o.push(ot.setTextRange(Ae.createExpressionStatement(ot.visitNode(i, Ie, ot.isExpression)), ot.moveRangeEnd(s, -1))))), r ? A(ot.addRange(o, r)) : (a = ot.visitNode(e.statement, Ie, ot.isStatement, Ae.liftToBlock), ot.isBlock(a) ? Ae.updateBlock(a, ot.setTextRange(Ae.createNodeArray(ot.concatenate(o, a.statements)), a.statements)) : (o.push(a), A(o))) + } + + function A(e) { + return ot.setEmitFlags(Ae.createBlock(Ae.createNodeArray(e), !0), 432) + } + + function F(e, t, r) { + var n = ot.visitNode(e.expression, Ie, ot.isExpression), + i = Ae.createLoopVariable(), + a = ot.isIdentifier(n) ? Ae.getGeneratedNameForNode(n) : Ae.createTempVariable(void 0), + n = (ot.setEmitFlags(n, 48 | ot.getEmitFlags(n)), ot.setTextRange(Ae.createForStatement(ot.setEmitFlags(ot.setTextRange(Ae.createVariableDeclarationList([ot.setTextRange(Ae.createVariableDeclaration(i, void 0, void 0, Ae.createNumericLiteral(0)), ot.moveRangePos(e.expression, -1)), ot.setTextRange(Ae.createVariableDeclaration(a, void 0, void 0, n), e.expression)]), e.expression), 2097152), ot.setTextRange(Ae.createLessThan(i, Ae.createPropertyAccessExpression(a, "length")), e.expression), ot.setTextRange(Ae.createPostfixIncrement(i), e.expression), N(e, Ae.createElementAccessExpression(a, i), r)), e)); + return ot.setEmitFlags(n, 256), ot.setTextRange(n, e), Ae.restoreEnclosingLabel(n, t, Ne && je) + } + + function P(e, t, r, n) { + var i = ot.visitNode(e.expression, Ie, ot.isExpression), + a = ot.isIdentifier(i) ? Ae.getGeneratedNameForNode(i) : Ae.createTempVariable(void 0), + o = ot.isIdentifier(i) ? Ae.getGeneratedNameForNode(a) : Ae.createTempVariable(void 0), + s = Ae.createUniqueName("e"), + c = Ae.getGeneratedNameForNode(s), + l = Ae.createTempVariable(void 0), + i = ot.setTextRange(_().createValuesHelper(i), e.expression), + u = Ae.createCallExpression(Ae.createPropertyAccessExpression(a, "next"), void 0, []), + n = (Fe(s), Fe(l), 1024 & n ? Ae.inlineExpressions([Ae.createAssignment(s, Ae.createVoidZero()), i]) : i), + i = ot.setEmitFlags(ot.setTextRange(Ae.createForStatement(ot.setEmitFlags(ot.setTextRange(Ae.createVariableDeclarationList([ot.setTextRange(Ae.createVariableDeclaration(a, void 0, void 0, n), e.expression), Ae.createVariableDeclaration(o, void 0, void 0, u)]), e.expression), 2097152), Ae.createLogicalNot(Ae.createPropertyAccessExpression(o, "done")), Ae.createAssignment(o, u), N(e, Ae.createPropertyAccessExpression(o, "value"), r)), e), 256); + return Ae.createTryStatement(Ae.createBlock([Ae.restoreEnclosingLabel(i, t, Ne && je)]), Ae.createCatchClause(Ae.createVariableDeclaration(c), ot.setEmitFlags(Ae.createBlock([Ae.createExpressionStatement(Ae.createAssignment(s, Ae.createObjectLiteralExpression([Ae.createPropertyAssignment("error", c)])))]), 1)), Ae.createBlock([Ae.createTryStatement(Ae.createBlock([ot.setEmitFlags(Ae.createIfStatement(Ae.createLogicalAnd(Ae.createLogicalAnd(o, Ae.createLogicalNot(Ae.createPropertyAccessExpression(o, "done"))), Ae.createAssignment(l, Ae.createPropertyAccessExpression(a, "return"))), Ae.createExpressionStatement(Ae.createFunctionCallCall(l, a, []))), 1)]), void 0, ot.setEmitFlags(Ae.createBlock([ot.setEmitFlags(Ae.createIfStatement(s, Ae.createThrowStatement(Ae.createPropertyAccessExpression(s, "error"))), 1)]), 1))])) + } + + function c(e) { + return 0 != (131072 & f.getNodeCheckFlags(e)) + } + + function h(e) { + return ot.isForStatement(e) && !!e.initializer && c(e.initializer) + } + + function v(e) { + return ot.isForStatement(e) && !!e.condition && c(e.condition) + } + + function w(e) { + return ot.isForStatement(e) && !!e.incrementor && c(e.incrementor) + } + + function I(e) { + return O(e) || h(e) + } + + function O(e) { + return 0 != (65536 & f.getNodeCheckFlags(e)) + } + + function M(e, t, r) { + switch (e.kind) { + case 245: + return i = t, a = r, o = (n = e).condition && c(n.condition), s = o || n.incrementor && c(n.incrementor), Ae.updateForStatement(n, ot.visitNode(i ? i.part : n.initializer, Oe, ot.isForInitializer), ot.visitNode(o ? void 0 : n.condition, Ie, ot.isExpression), ot.visitNode(s ? void 0 : n.incrementor, Oe, ot.isExpression), a); + case 246: + return i = e, o = r, Ae.updateForInStatement(i, ot.visitNode(i.initializer, Ie, ot.isForInitializer), ot.visitNode(i.expression, Ie, ot.isExpression), o); + case 247: + return s = e, n = r, Ae.updateForOfStatement(s, void 0, ot.visitNode(s.initializer, Ie, ot.isForInitializer), ot.visitNode(s.expression, Ie, ot.isExpression), n); + case 243: + return Ae.updateDoStatement(e, r, ot.visitNode(e.expression, Ie, ot.isExpression)); + case 244: + return a = r, Ae.updateWhileStatement(e, ot.visitNode(e.expression, Ie, ot.isExpression), a); + default: + return ot.Debug.failBadSyntaxKind(e, "IterationStatement expected") + } + var n, i, a, o, s + } + + function L(e) { + return Ae.createVariableDeclaration(e.originalName, void 0, void 0, e.outParamName) + } + + function rt(e, t) { + var r = 0 === t ? e.outParamName : e.originalName, + t = 0 === t ? e.originalName : e.outParamName; + return Ae.createBinaryExpression(t, 63, r) + } + + function b(e, t, r, n) { + for (var i = 0, a = e; i < a.length; i++) { + var o = a[i]; + o.flags & t && n.push(Ae.createExpressionStatement(rt(o, r))) + } + } + + function Je(e, t, r, n) { + (t ? (e.labeledNonLocalBreaks || (e.labeledNonLocalBreaks = new ot.Map), e.labeledNonLocalBreaks) : (e.labeledNonLocalContinues || (e.labeledNonLocalContinues = new ot.Map), e.labeledNonLocalContinues)).set(r, n) + } + + function R(e, i, a, o, s) { + e && e.forEach(function(e, t) { + var r, n = []; + !o || o.labels && o.labels.get(t) ? (r = Ae.createIdentifier(t), n.push(i ? Ae.createBreakStatement(r) : Ae.createContinueStatement(r))) : (Je(o, i, t, e), n.push(Ae.createReturnStatement(a))), s.push(Ae.createCaseClause(Ae.createStringLiteral(e), n)) + }) + } + + function nt(e, t) { + var r, n, i; + return 32768 & e.transformFlags || 106 === e.expression.kind || ot.isSuperProperty(ot.skipOuterExpressions(e.expression)) ? (n = (r = Ae.createCallBinding(e.expression, Fe)).target, r = r.thisArg, i = void(106 === e.expression.kind && ot.setEmitFlags(r, 4)), i = 32768 & e.transformFlags ? Ae.createFunctionApplyCall(ot.visitNode(n, Me, ot.isExpression), 106 === e.expression.kind ? r : ot.visitNode(r, Ie, ot.isExpression), ze(e.arguments, !0, !1, !1)) : ot.setTextRange(Ae.createFunctionCallCall(ot.visitNode(n, Me, ot.isExpression), 106 === e.expression.kind ? r : ot.visitNode(r, Ie, ot.isExpression), ot.visitNodes(e.arguments, Ie, ot.isExpression)), e), 106 === e.expression.kind && (n = Ae.createLogicalOr(i, g()), i = t ? Ae.createAssignment(Ae.createUniqueName("_this", 48), n) : n), ot.setOriginalNode(i, e)) : ot.visitEachChild(e, Ie, Ce) + } + + function ze(e, t, i, a) { + var o = e.length, + r = ot.flatten(ot.spanMap(e, B, function(e, t, r, n) { + return t(e, i, a && n === o) + })); + if (1 === r.length) { + e = r[0]; + if (t && !u.downlevelIteration || ot.isPackedArrayLiteral(e.expression) || ot.isCallToHelper(e.expression, "___spreadArray")) return e.expression + } + for (var n = _(), e = 0 !== r[0].kind, s = e ? Ae.createArrayLiteralExpression() : r[0].expression, c = e ? 0 : 1; c < r.length; c++) var l = r[c], + s = n.createSpreadArrayHelper(s, l.expression, 1 === l.kind && !t); + return s + } + + function B(e) { + return ot.isSpreadElement(e) ? t : J + } + + function t(e) { + return ot.map(e, j) + } + + function j(e) { + var e = ot.visitNode(e.expression, Ie, ot.isExpression), + t = ot.isCallToHelper(e, "___read"), + r = t || ot.isPackedArrayLiteral(e) ? 2 : 1; + return !u.downlevelIteration || 1 !== r || ot.isArrayLiteralExpression(e) || t || (e = _().createReadHelper(e, void 0), r = 2), K(r, e) + } + + function J(e, t, r) { + return K(0, Ae.createArrayLiteralExpression(ot.visitNodes(Ae.createNodeArray(e, r), Ie, ot.isExpression), t)) + } + + function it(e) { + return 8 & ke && !e ? Ae.createPropertyAccessExpression(Ae.createUniqueName("_super", 48), "prototype") : Ae.createUniqueName("_super", 48) + } + + function at() { + 0 == (2 & i) && (i |= 2, Ce.enableSubstitution(79)) + } + + function z() { + 0 == (1 & i) && (i |= 1, Ce.enableSubstitution(108), Ce.enableEmitNotification(173), Ce.enableEmitNotification(171), Ce.enableEmitNotification(174), Ce.enableEmitNotification(175), Ce.enableEmitNotification(216), Ce.enableEmitNotification(215), Ce.enableEmitNotification(259)) + } + + function U(e, t) { + return ot.isStatic(t) ? Ae.getInternalName(e) : Ae.createPropertyAccessExpression(Ae.getInternalName(e), "prototype") + } + } + }(ts = ts || {}), ! function(s) { + s.transformES5 = function(e) { + var i, a, r = e.factory, + t = e.getCompilerOptions(), + n = (1 !== t.jsx && 3 !== t.jsx || (i = e.onEmitNode, e.onEmitNode = function(e, t, r) { + switch (t.kind) { + case 283: + case 284: + case 282: + var n = t.tagName; + a[s.getOriginalNodeId(n)] = !0 + } + i(e, t, r) + }, e.enableEmitNotification(283), e.enableEmitNotification(284), e.enableEmitNotification(282), a = []), e.onSubstituteNode); + return e.onSubstituteNode = function(e, t) { + if (t.id && a && a[t.id]) return n(e, t); { + if (t = n(e, t), s.isPropertyAccessExpression(t)) return function(e) { + if (!s.isPrivateIdentifier(e.name)) { + var t = o(e.name); + if (t) return s.setTextRange(r.createElementAccessExpression(e.expression, t), e) + } + return e + }(t); + if (s.isPropertyAssignment(t)) return function(e) { + var t = s.isIdentifier(e.name) && o(e.name); + if (t) return r.updatePropertyAssignment(e, t, e.initializer); + return e + }(t) + } + return t + }, e.enableSubstitution(208), e.enableSubstitution(299), s.chainBundle(e, function(e) { + return e + }); + + function o(e) { + var t = e.originalKeywordKind || (s.nodeIsSynthesized(e) ? s.stringToToken(s.idText(e)) : void 0); + if (void 0 !== t && 81 <= t && t <= 116) return s.setTextRange(r.createStringLiteralFromNode(e), e) + } + } + }(ts = ts || {}), ! function(Pe) { + Pe.transformGenerators = function(b) { + var n, i, x, D, m, y, h, v, S, T, C, X, Y, E, k, N, Z, A, F, $, P, w, I = b.factory, + ee = b.getEmitHelperFactory, + te = b.resumeLexicalEnvironment, + re = b.endLexicalEnvironment, + a = b.hoistFunctionDeclaration, + O = b.hoistVariableDeclaration, + e = b.getCompilerOptions(), + ne = Pe.getEmitScriptTarget(e), + o = b.getEmitResolver(), + s = b.onSubstituteNode, + ie = (b.onSubstituteNode = function(e, t) { + if (t = s(e, t), 1 !== e) return t; + e = t; + if (Pe.isIdentifier(e)) { + t = e; + if (!Pe.isGeneratedIdentifier(t) && n && n.has(Pe.idText(t))) { + var r = Pe.getOriginalNode(t); + if (Pe.isIdentifier(r) && r.parent) { + r = o.getReferencedValueDeclaration(r); + if (r) { + var r = i[Pe.getOriginalNodeId(r)]; + if (r) return r = Pe.setParent(Pe.setTextRange(I.cloneNode(r), r), r.parent), Pe.setSourceMapRange(r, t), Pe.setCommentRange(r, t), r + } + } + } + return t + } + return e + }, 1), + ae = 0, + M = 0; + return Pe.chainBundle(b, function(e) { + if (e.isDeclarationFile || 0 == (2048 & e.transformFlags)) return e; + e = Pe.visitEachChild(e, L, b); + return Pe.addEmitHelpers(e, b.readEmitHelpers()), e + }); + + function L(e) { + var t = e.transformFlags; + if (D) { + var r = e; + switch (r.kind) { + case 243: + return function(e) { + return D ? (fe(), e = Pe.visitEachChild(e, L, b), U(), e) : Pe.visitEachChild(e, L, b) + }(r); + case 244: + return function(e) { + return D ? (fe(), e = Pe.visitEachChild(e, L, b), U(), e) : Pe.visitEachChild(e, L, b) + }(r); + case 252: + return function(e) { + D && p({ + kind: 2, + isScript: !0, + breakLabel: -1 + }); + e = Pe.visitEachChild(e, L, b), D && ge(); + return e + }(r); + case 253: + return function(e) { + D && ! function(e) { + p({ + kind: 4, + isScript: !0, + labelText: e, + breakLabel: -1 + }) + }(Pe.idText(e.label)); + e = Pe.visitEachChild(e, L, b), D && me(); + return e + }(r); + default: + return c(r) + } + } else { + if (x) return c(e); + if (!Pe.isFunctionLikeDeclaration(e) || !e.asteriskToken) return 2048 & t ? Pe.visitEachChild(e, L, b) : e; + var n = e; + switch (n.kind) { + case 259: + return oe(n); + case 215: + return se(n); + default: + return Pe.Debug.failBadSyntaxKind(n) + } + } + } + + function c(e) { + switch (e.kind) { + case 259: + return oe(e); + case 215: + return se(e); + case 174: + case 175: + return i = e, h = x, v = D, D = x = !1, i = Pe.visitEachChild(e, L, b), x = h, D = v, i; + case 240: + h = e; + if (1048576 & h.transformFlags) return void _e(h.declarationList); + if (1048576 & Pe.getEmitFlags(h)) return h; + for (var t = 0, r = h.declarationList.declarations; t < r.length; t++) { + var n = r[t]; + O(n.name) + } + v = Pe.getInitializedVariables(h.declarationList); + return 0 !== v.length ? Pe.setSourceMapRange(I.createExpressionStatement(I.inlineExpressions(Pe.map(v, de))), h) : void 0; + case 245: + var i = e, + a = (D && fe(), i.initializer); + if (a && Pe.isVariableDeclarationList(a)) { + for (var o = 0, s = a.declarations; o < s.length; o++) { + var c = s[o]; + O(c.name) + } + a = Pe.getInitializedVariables(a); + i = I.updateForStatement(i, 0 < a.length ? I.inlineExpressions(Pe.map(a, de)) : void 0, Pe.visitNode(i.condition, L, Pe.isExpression), Pe.visitNode(i.incrementor, L, Pe.isExpression), Pe.visitIterationBody(i.statement, L, b)) + } else i = Pe.visitEachChild(i, L, b); + return D && U(), i; + case 246: + var a = e, + l = (D && fe(), a.initializer); + if (Pe.isVariableDeclarationList(l)) { + for (var u = 0, _ = l.declarations; u < _.length; u++) { + var d = _[u]; + O(d.name) + } + a = I.updateForInStatement(a, l.declarations[0].name, Pe.visitNode(a.expression, L, Pe.isExpression), Pe.visitNode(a.statement, L, Pe.isStatement, I.liftToBlock)) + } else a = Pe.visitEachChild(a, L, b); + return D && U(), a; + case 249: + l = e; + if (D) { + var p = xe(l.label && Pe.idText(l.label)); + if (0 < p) return Se(p, l) + } + return Pe.visitEachChild(l, L, b); + case 248: + p = e; + if (D) { + var f = De(p.label && Pe.idText(p.label)); + if (0 < f) return Se(f, p) + } + return Pe.visitEachChild(p, L, b); + case 250: + f = e; + var g = Pe.visitNode(f.expression, L, Pe.isExpression), + m = f; + return Pe.setTextRange(I.createReturnStatement(I.createArrayLiteralExpression(g ? [V(2), g] : [V(2)])), m); + default: + if (!(1048576 & e.transformFlags)) return 4196352 & e.transformFlags ? Pe.visitEachChild(e, L, b) : e; + var y = e; + switch (y.kind) { + case 223: + return function(e) { + var t = Pe.getExpressionAssociativity(e); + switch (t) { + case 0: + return function(e) { + if (R(e.right)) return Pe.isLogicalOperator(e.operatorToken.kind) ? function(e) { + var t = J(), + r = j(); + W(r, Pe.visitNode(e.left, L, Pe.isExpression), e.left), (55 === e.operatorToken.kind ? Ee : Ce)(t, r, e.left); + return W(r, Pe.visitNode(e.right, L, Pe.isExpression), e.right), z(t), r + }(e) : 27 === e.operatorToken.kind ? ce(e) : I.updateBinaryExpression(e, B(Pe.visitNode(e.left, L, Pe.isExpression)), e.operatorToken, Pe.visitNode(e.right, L, Pe.isExpression)); + return Pe.visitEachChild(e, L, b) + }(e); + case 1: + return function(e) { + var t = e.left, + r = e.right; + if (R(r)) { + var n = void 0; + switch (t.kind) { + case 208: + n = I.updatePropertyAccessExpression(t, B(Pe.visitNode(t.expression, L, Pe.isLeftHandSideExpression)), t.name); + break; + case 209: + n = I.updateElementAccessExpression(t, B(Pe.visitNode(t.expression, L, Pe.isLeftHandSideExpression)), B(Pe.visitNode(t.argumentExpression, L, Pe.isExpression))); + break; + default: + n = Pe.visitNode(t, L, Pe.isExpression) + } + var i = e.operatorToken.kind; + return Pe.isCompoundAssignment(i) ? Pe.setTextRange(I.createAssignment(n, Pe.setTextRange(I.createBinaryExpression(B(n), Pe.getNonAssignmentOperatorForCompoundAssignment(i), Pe.visitNode(r, L, Pe.isExpression)), e)), e) : I.updateBinaryExpression(e, n, e.operatorToken, Pe.visitNode(r, L, Pe.isExpression)) + } + return Pe.visitEachChild(e, L, b) + }(e); + default: + return Pe.Debug.assertNever(t) + } + }(y); + case 354: + return function(e) { + for (var t = [], r = 0, n = e.elements; r < n.length; r++) { + var i = n[r]; + Pe.isBinaryExpression(i) && 27 === i.operatorToken.kind ? t.push(ce(i)) : (R(i) && 0 < t.length && (G(1, [I.createExpressionStatement(I.inlineExpressions(t))]), t = []), t.push(Pe.visitNode(i, L, Pe.isExpression))) + } + return I.inlineExpressions(t) + }(y); + case 224: + return function(e) { + { + var t, r, n; + if (R(e.whenTrue) || R(e.whenFalse)) return t = J(), r = J(), n = j(), Ee(t, Pe.visitNode(e.condition, L, Pe.isExpression), e.condition), W(n, Pe.visitNode(e.whenTrue, L, Pe.isExpression), e.whenTrue), H(r), z(t), W(n, Pe.visitNode(e.whenFalse, L, Pe.isExpression), e.whenFalse), z(r), n + } + return Pe.visitEachChild(e, L, b) + }(y); + case 226: + return function(e) { + var t = J(), + r = Pe.visitNode(e.expression, L, Pe.isExpression); + e.asteriskToken ? function(e, t) { + G(7, [e], t) + }(0 == (8388608 & Pe.getEmitFlags(e.expression)) ? Pe.setTextRange(ee().createValuesHelper(r), e) : r, e) : function(e, t) { + G(6, [e], t) + }(r, e); + return z(t), + function(e) { + return Pe.setTextRange(I.createCallExpression(I.createPropertyAccessExpression(E, "sent"), void 0, []), e) + }(e) + }(y); + case 206: + return function(e) { + return le(e.elements, void 0, void 0, e.multiLine) + }(y); + case 207: + return function(r) { + var e = r.properties, + n = r.multiLine, + t = pe(e), + i = j(), + e = (W(i, I.createObjectLiteralExpression(Pe.visitNodes(e, L, Pe.isObjectLiteralElementLike, 0, t), n)), Pe.reduceLeft(e, function(e, t) { + R(t) && 0 < e.length && (q(I.createExpressionStatement(I.inlineExpressions(e))), e = []); + t = Pe.createExpressionForObjectLiteralElementLike(I, r, t, i), t = Pe.visitNode(t, L, Pe.isExpression); + t && (n && Pe.startOnNewLine(t), e.push(t)); + return e + }, [], t)); + return e.push(n ? Pe.startOnNewLine(Pe.setParent(Pe.setTextRange(I.cloneNode(i), i), i.parent)) : i), I.inlineExpressions(e) + }(y); + case 209: + return function(e) { + if (R(e.argumentExpression)) return I.updateElementAccessExpression(e, B(Pe.visitNode(e.expression, L, Pe.isLeftHandSideExpression)), Pe.visitNode(e.argumentExpression, L, Pe.isExpression)); + return Pe.visitEachChild(e, L, b) + }(y); + case 210: + return function(e) { + var t, r; + return Pe.isImportCall(e) || !Pe.forEach(e.arguments, R) ? Pe.visitEachChild(e, L, b) : (r = I.createCallBinding(e.expression, O, ne, !0), t = r.target, r = r.thisArg, Pe.setOriginalNode(Pe.setTextRange(I.createFunctionApplyCall(B(Pe.visitNode(t, L, Pe.isLeftHandSideExpression)), r, le(e.arguments)), e), e)) + }(y); + case 211: + return function(e) { + { + var t, r; + if (Pe.forEach(e.arguments, R)) return r = I.createCallBinding(I.createPropertyAccessExpression(e.expression, "bind"), O), t = r.target, r = r.thisArg, Pe.setOriginalNode(Pe.setTextRange(I.createNewExpression(I.createFunctionApplyCall(B(Pe.visitNode(t, L, Pe.isExpression)), r, le(e.arguments, I.createVoidZero())), void 0, []), e), e) + } + return Pe.visitEachChild(e, L, b) + }(y); + default: + return Pe.visitEachChild(y, L, b) + } + } + var i, h, v + } + + function oe(e) { + var t, r; + if (e.asteriskToken ? e = Pe.setOriginalNode(Pe.setTextRange(I.createFunctionDeclaration(e.modifiers, void 0, e.name, void 0, Pe.visitParameterList(e.parameters, L, b), void 0, l(e.body)), e), e) : (t = x, r = D, D = x = !1, e = Pe.visitEachChild(e, L, b), x = t, D = r), !x) return e; + a(e) + } + + function se(e) { + var t, r; + return e.asteriskToken ? e = Pe.setOriginalNode(Pe.setTextRange(I.createFunctionExpression(void 0, void 0, e.name, void 0, Pe.visitParameterList(e.parameters, L, b), void 0, l(e.body)), e), e) : (t = x, r = D, D = x = !1, e = Pe.visitEachChild(e, L, b), x = t, D = r), e + } + + function l(e) { + var t = [], + r = x, + n = D, + i = m, + a = y, + o = h, + s = v, + c = S, + l = T, + u = ie, + _ = C, + d = X, + p = Y, + f = E, + g = (D = !(x = !0), ie = 1, Y = X = C = T = S = v = h = y = m = void 0, E = I.createTempVariable(void 0), te(), I.copyPrologue(e.statements, t, !1, L)), + g = (ue(e.statements, g), M = ae = 0, Z = N = !1, w = P = $ = F = A = k = void 0, g = function() { + if (C) { + for (var e = 0; e < C.length; e++) ! function(e) { + if (Ae(e), function(e) { + if (m) + for (; ae < h.length && y[ae] <= e; ae++) { + var t = m[ae], + r = h[ae]; + switch (t.kind) { + case 0: + 0 === r ? (F = F || [], ($ = $ || []).push(P), P = t) : 1 === r && (P = $.pop()); + break; + case 1: + 0 === r ? (w = w || []).push(t) : 1 === r && w.pop() + } + } + }(e), !N) { + Z = N = !1; + var t = C[e]; + if (0 !== t) + if (10 === t) N = !0, Q(I.createReturnStatement(I.createArrayLiteralExpression([V(7)]))); + else { + var r = X[e]; + if (1 === t) return Q(r[0]); + var n = Y[e]; + switch (t) { + case 2: + return function(e, t, r) { + Q(Pe.setTextRange(I.createExpressionStatement(I.createAssignment(e, t)), r)) + }(r[0], r[1], n); + case 3: + return function(e, t) { + N = !0, Q(Pe.setEmitFlags(Pe.setTextRange(I.createReturnStatement(I.createArrayLiteralExpression([V(3), K(e)])), t), 384)) + }(r[0], n); + case 4: + return function(e, t, r) { + Q(Pe.setEmitFlags(I.createIfStatement(t, Pe.setEmitFlags(Pe.setTextRange(I.createReturnStatement(I.createArrayLiteralExpression([V(3), K(e)])), r), 384)), 1)) + }(r[0], r[1], n); + case 5: + return function(e, t, r) { + Q(Pe.setEmitFlags(I.createIfStatement(I.createLogicalNot(t), Pe.setEmitFlags(Pe.setTextRange(I.createReturnStatement(I.createArrayLiteralExpression([V(3), K(e)])), r), 384)), 1)) + }(r[0], r[1], n); + case 6: + return function(e, t) { + N = !0, Q(Pe.setEmitFlags(Pe.setTextRange(I.createReturnStatement(I.createArrayLiteralExpression(e ? [V(4), e] : [V(4)])), t), 384)) + }(r[0], n); + case 7: + return function(e, t) { + N = !0, Q(Pe.setEmitFlags(Pe.setTextRange(I.createReturnStatement(I.createArrayLiteralExpression([V(5), e])), t), 384)) + }(r[0], n); + case 8: + return Fe(r[0], n); + case 9: + (function(e, t) { + Z = N = !0, Q(Pe.setTextRange(I.createThrowStatement(e), t)) + })(r[0], n) + } + } + } + }(e); + ke(C.length) + } else ke(0); { + var t; + if (A) return t = I.createPropertyAccessExpression(E, "label"), t = I.createSwitchStatement(t, I.createCaseBlock(A)), [Pe.startOnNewLine(t)] + } + if (F) return F; + return [] + }(), ee().createGeneratorHelper(Pe.setEmitFlags(I.createFunctionExpression(void 0, void 0, void 0, void 0, [I.createParameterDeclaration(void 0, void 0, E)], void 0, I.createBlock(g, 0 < g.length)), 524288))); + return Pe.insertStatementsAfterStandardPrologue(t, re()), t.push(I.createReturnStatement(g)), x = r, D = n, m = i, y = a, h = o, v = s, S = c, T = l, ie = u, C = _, X = d, Y = p, E = f, Pe.setTextRange(I.createBlock(t, e.multiLine), e) + } + + function ce(e) { + var t = []; + return r(e.left), r(e.right), I.inlineExpressions(t); + + function r(e) { + Pe.isBinaryExpression(e) && 27 === e.operatorToken.kind ? (r(e.left), r(e.right)) : (R(e) && 0 < t.length && (G(1, [I.createExpressionStatement(I.inlineExpressions(t))]), t = []), t.push(Pe.visitNode(e, L, Pe.isExpression))) + } + } + + function le(e, n, t, i) { + var a, r = pe(e), + o = (0 < r && (a = j(), o = Pe.visitNodes(e, L, Pe.isExpression, 0, r), W(a, I.createArrayLiteralExpression(n ? __spreadArray([n], o, !0) : o)), n = void 0), Pe.reduceLeft(e, function(e, t) { + { + var r; + R(t) && 0 < e.length && (r = void 0 !== a, W(a = a || j(), r ? I.createArrayConcatCall(a, [I.createArrayLiteralExpression(e, i)]) : I.createArrayLiteralExpression(n ? __spreadArray([n], e, !0) : e, i)), n = void 0, e = []) + } + return e.push(Pe.visitNode(t, L, Pe.isExpression)), e + }, [], r)); + return a ? I.createArrayConcatCall(a, [I.createArrayLiteralExpression(o, i)]) : Pe.setTextRange(I.createArrayLiteralExpression(n ? __spreadArray([n], o, !0) : o, i), t) + } + + function ue(e, t) { + for (var r = e.length, n = t = void 0 === t ? 0 : t; n < r; n++) u(e[n]) + } + + function d(e) { + Pe.isBlock(e) ? ue(e.statements) : u(e) + } + + function u(e) { + var t = D; + D = D || R(e), + function(e) { + switch (e.kind) { + case 238: + return function(e) { + R(e) ? ue(e.statements) : q(Pe.visitNode(e, L, Pe.isStatement)) + }(e); + case 241: + return function(e) { + q(Pe.visitNode(e, L, Pe.isStatement)) + }(e); + case 242: + return function(e) { + { + var t, r; + R(e) && (R(e.thenStatement) || R(e.elseStatement)) ? (t = J(), r = e.elseStatement ? J() : void 0, Ee(e.elseStatement ? r : t, Pe.visitNode(e.expression, L, Pe.isExpression), e.expression), d(e.thenStatement), e.elseStatement && (H(t), z(r), d(e.elseStatement)), z(t)) : q(Pe.visitNode(e, L, Pe.isStatement)) + } + }(e); + case 243: + return function(e) { + { + var t, r; + R(e) ? (t = J(), r = J(), g(t), z(r), d(e.statement), z(t), Ce(r, Pe.visitNode(e.expression, L, Pe.isExpression)), U()) : q(Pe.visitNode(e, L, Pe.isStatement)) + } + }(e); + case 244: + return function(e) { + { + var t, r; + R(e) ? (t = J(), r = g(t), z(t), Ee(r, Pe.visitNode(e.expression, L, Pe.isExpression)), d(e.statement), H(t), U()) : q(Pe.visitNode(e, L, Pe.isStatement)) + } + }(e); + case 245: + return function(e) { + { + var t, r, n, i; + R(e) ? (t = J(), r = J(), n = g(r), e.initializer && (i = e.initializer, Pe.isVariableDeclarationList(i) ? _e(i) : q(Pe.setTextRange(I.createExpressionStatement(Pe.visitNode(i, L, Pe.isExpression)), i))), z(t), e.condition && Ee(n, Pe.visitNode(e.condition, L, Pe.isExpression)), d(e.statement), z(r), e.incrementor && q(Pe.setTextRange(I.createExpressionStatement(Pe.visitNode(e.incrementor, L, Pe.isExpression)), e.incrementor)), H(t), U()) : q(Pe.visitNode(e, L, Pe.isStatement)) + } + }(e); + case 246: + return function(e) { + if (R(e)) { + var t = j(), + r = j(), + n = j(), + i = I.createLoopVariable(), + a = e.initializer, + o = (O(i), W(t, Pe.visitNode(e.expression, L, Pe.isExpression)), W(r, I.createArrayLiteralExpression()), q(I.createForInStatement(n, t, I.createExpressionStatement(I.createCallExpression(I.createPropertyAccessExpression(r, "push"), void 0, [n])))), W(i, I.createNumericLiteral(0)), J()), + s = J(), + c = g(s), + c = (z(o), Ee(c, I.createLessThan(i, I.createPropertyAccessExpression(r, "length"))), W(n, I.createElementAccessExpression(r, i)), Ee(s, I.createBinaryExpression(n, 101, t)), void 0); + if (Pe.isVariableDeclarationList(a)) { + for (var l = 0, u = a.declarations; l < u.length; l++) { + var _ = u[l]; + O(_.name) + } + c = I.cloneNode(a.declarations[0].name) + } else c = Pe.visitNode(a, L, Pe.isExpression), Pe.Debug.assert(Pe.isLeftHandSideExpression(c)); + W(c, n), d(e.statement), z(s), q(I.createExpressionStatement(I.createPostfixIncrement(i))), H(o), U() + } else q(Pe.visitNode(e, L, Pe.isStatement)) + }(e); + case 248: + return function(e) { + var t = De(e.label ? Pe.idText(e.label) : void 0); + 0 < t ? H(t, e) : q(e) + }(e); + case 249: + return function(e) { + var t = xe(e.label ? Pe.idText(e.label) : void 0); + 0 < t ? H(t, e) : q(e) + }(e); + case 250: + return function(e) { + ! function(e, t) { + G(8, [e], t) + }(Pe.visitNode(e.expression, L, Pe.isExpression), e) + }(e); + case 251: + return function(e) { + R(e) ? (function(e) { + var t = J(), + r = J(); + z(t), p({ + kind: 1, + expression: e, + startLabel: t, + endLabel: r + }) + }(B(Pe.visitNode(e.expression, L, Pe.isExpression))), d(e.statement), Pe.Debug.assert(1 === f()), z(r().endLabel)) : q(Pe.visitNode(e, L, Pe.isStatement)) + }(e); + case 252: + return function(e) { + if (R(e.caseBlock)) { + for (var t = e.caseBlock, r = t.clauses.length, n = function() { + var e = J(); + return p({ + kind: 2, + isScript: !1, + breakLabel: e + }), e + }(), i = B(Pe.visitNode(e.expression, L, Pe.isExpression)), a = [], o = -1, s = 0; s < r; s++) { + var c = t.clauses[s]; + a.push(J()), 293 === c.kind && -1 === o && (o = s) + } + for (var l = 0, u = []; l < r;) { + for (var _ = 0, s = l; s < r; s++) + if (292 === (c = t.clauses[s]).kind) { + if (R(c.expression) && 0 < u.length) break; + u.push(I.createCaseClause(Pe.visitNode(c.expression, L, Pe.isExpression), [Se(a[s], c.expression)])) + } else _++; + u.length && (q(I.createSwitchStatement(i, I.createCaseBlock(u))), l += u.length, u = []), 0 < _ && (l += _, _ = 0) + } + H(0 <= o ? a[o] : n); + for (s = 0; s < r; s++) z(a[s]), ue(t.clauses[s].statements); + ge() + } else q(Pe.visitNode(e, L, Pe.isStatement)) + }(e); + case 253: + return function(e) { + R(e) ? (function(e) { + var t = J(); + p({ + kind: 4, + isScript: !1, + labelText: e, + breakLabel: t + }) + }(Pe.idText(e.label)), d(e.statement), me()) : q(Pe.visitNode(e, L, Pe.isStatement)) + }(e); + case 254: + return function(e) { + var t; + ! function(e, t) { + G(9, [e], t) + }(Pe.visitNode(null != (t = e.expression) ? t : I.createVoidZero(), L, Pe.isExpression), e) + }(e); + case 255: + return function(e) { + R(e) ? (function() { + var e = J(), + t = J(); + z(e), p({ + kind: 0, + state: 0, + startLabel: e, + endLabel: t + }), Te() + }(), d(e.tryBlock), e.catchClause && (function(e) { + var t; + Pe.Debug.assert(0 === f()), Pe.isGeneratedIdentifier(e.name) ? (t = e.name, O(e.name)) : (r = Pe.idText(e.name), t = j(r), n || (n = new Pe.Map, i = [], b.enableSubstitution(79)), n.set(r, !0), i[Pe.getOriginalNodeId(e)] = t); + var r = _(); + Pe.Debug.assert(r.state < 1); + H(r.endLabel); + e = J(); + z(e), r.state = 1, r.catchVariable = t, r.catchLabel = e, W(t, I.createCallExpression(I.createPropertyAccessExpression(E, "sent"), void 0, [])), Te() + }(e.catchClause.variableDeclaration), d(e.catchClause.block)), e.finallyBlock && (function() { + Pe.Debug.assert(0 === f()); + var e = _(); + Pe.Debug.assert(e.state < 2); + H(e.endLabel); + var t = J(); + z(t), e.state = 2, e.finallyLabel = t + }(), d(e.finallyBlock)), function() { + Pe.Debug.assert(0 === f()); + var e = r(); + e.state < 2 ? H(e.endLabel) : G(10); + z(e.endLabel), Te(), e.state = 3 + }()) : q(Pe.visitEachChild(e, L, b)) + }(e); + default: + q(Pe.visitNode(e, L, Pe.isStatement)) + } + }(e), D = t + } + + function _e(e) { + for (var t = 0, r = e.declarations; t < r.length; t++) { + var n = r[t], + i = I.cloneNode(n.name); + Pe.setCommentRange(i, n.name), O(i) + } + for (var a = Pe.getInitializedVariables(e), o = a.length, s = 0, c = []; s < o;) { + for (var l = s; l < o; l++) { + if (R((n = a[l]).initializer) && 0 < c.length) break; + c.push(de(n)) + } + c.length && (q(I.createExpressionStatement(I.inlineExpressions(c))), s += c.length, c = []) + } + } + + function de(e) { + return Pe.setSourceMapRange(I.createAssignment(Pe.setSourceMapRange(I.cloneNode(e.name), e.name), Pe.visitNode(e.initializer, L, Pe.isExpression)), e) + } + + function R(e) { + return !!e && 0 != (1048576 & e.transformFlags) + } + + function pe(e) { + for (var t = e.length, r = 0; r < t; r++) + if (R(e[r])) return r; + return -1 + } + + function B(e) { + var t; + return Pe.isGeneratedIdentifier(e) || 4096 & Pe.getEmitFlags(e) ? e : (W(t = I.createTempVariable(O), e, e), t) + } + + function j(e) { + e = e ? I.createUniqueName(e) : I.createTempVariable(void 0); + return O(e), e + } + + function J() { + var e = ie; + return ie++, (S = S || [])[e] = -1, e + } + + function z(e) { + Pe.Debug.assert(void 0 !== S, "No labels were defined."), S[e] = C ? C.length : 0 + } + + function p(e) { + m || (m = [], h = [], y = [], v = []); + var t = h.length; + h[t] = 0, y[t] = C ? C.length : 0, m[t] = e, v.push(e) + } + + function r() { + var e, t = _(); + return void 0 === t ? Pe.Debug.fail("beginBlock was never called.") : (e = h.length, h[e] = 1, y[e] = C ? C.length : 0, m[e] = t, v.pop(), t) + } + + function _() { + return Pe.lastOrUndefined(v) + } + + function f() { + var e = _(); + return e && e.kind + } + + function fe() { + p({ + kind: 3, + isScript: !0, + breakLabel: -1, + continueLabel: -1 + }) + } + + function g(e) { + var t = J(); + return p({ + kind: 3, + isScript: !1, + breakLabel: t, + continueLabel: e + }), t + } + + function U() { + Pe.Debug.assert(3 === f()); + var e = r(), + t = e.breakLabel; + e.isScript || z(t) + } + + function ge() { + Pe.Debug.assert(2 === f()); + var e = r(), + t = e.breakLabel; + e.isScript || z(t) + } + + function me() { + Pe.Debug.assert(4 === f()); + var e = r(); + e.isScript || z(e.breakLabel) + } + + function ye(e) { + return 2 === e.kind || 3 === e.kind + } + + function he(e) { + return 4 === e.kind + } + + function ve(e) { + return 3 === e.kind + } + + function be(e, t) { + for (var r = t; 0 <= r; r--) { + var n = v[r]; + if (!he(n)) break; + if (n.labelText === e) return 1 + } + } + + function xe(e) { + if (v) + if (e) + for (var t = v.length - 1; 0 <= t; t--) { + if (he(r = v[t]) && r.labelText === e) return r.breakLabel; + if (ye(r) && be(e, t - 1)) return r.breakLabel + } else + for (var r, t = v.length - 1; 0 <= t; t--) + if (ye(r = v[t])) return r.breakLabel; + return 0 + } + + function De(e) { + if (v) + if (e) { + for (var t = v.length - 1; 0 <= t; t--) + if (ve(r = v[t]) && be(e, t - 1)) return r.continueLabel + } else + for (var r, t = v.length - 1; 0 <= t; t--) + if (ve(r = v[t])) return r.continueLabel; + return 0 + } + + function K(e) { + var t; + return void 0 !== e && 0 < e ? (void 0 === T && (T = []), t = I.createNumericLiteral(-1), void 0 === T[e] ? T[e] = [t] : T[e].push(t), t) : I.createOmittedExpression() + } + + function V(e) { + var t = I.createNumericLiteral(e); + return Pe.addSyntheticTrailingComment(t, 3, function(e) { + switch (e) { + case 2: + return "return"; + case 3: + return "break"; + case 4: + return "yield"; + case 5: + return "yield*"; + case 7: + return "endfinally"; + default: + return + } + }(e)), t + } + + function Se(e, t) { + return Pe.Debug.assertLessThan(0, e, "Invalid label"), Pe.setTextRange(I.createReturnStatement(I.createArrayLiteralExpression([V(3), K(e)])), t) + } + + function Te() { + G(0) + } + + function q(e) { + e ? G(1, [e]) : Te() + } + + function W(e, t, r) { + G(2, [e, t], r) + } + + function H(e, t) { + G(3, [e], t) + } + + function Ce(e, t, r) { + G(4, [e, t], r) + } + + function Ee(e, t, r) { + G(5, [e, t], r) + } + + function G(e, t, r) { + void 0 === C && (C = [], X = [], Y = []), void 0 === S && z(J()); + var n = C.length; + C[n] = e, X[n] = t, Y[n] = r + } + + function ke(e) { + if (! function(e) { + if (!Z) return 1; + if (S && T) + for (var t = 0; t < S.length; t++) + if (S[t] === e && T[t]) return 1; + return + }(e) || (Ae(e), Fe(w = void 0, void 0)), F && A && Ne(!1), void 0 !== T && void 0 !== k) + for (var t = 0; t < k.length; t++) { + var r = k[t]; + if (void 0 !== r) + for (var n = 0, i = r; n < i.length; n++) { + var a = i[n], + a = T[a]; + if (void 0 !== a) + for (var o = 0, s = a; o < s.length; o++) s[o].text = String(t) + } + } + } + + function Ne(e) { + if (A = A || [], F) { + if (w) + for (var t = w.length - 1; 0 <= t; t--) { + var r = w[t]; + F = [I.createWithStatement(r.expression, I.createBlock(F))] + } + var n, i, a, o; + P && (n = P.startLabel, i = P.catchLabel, a = P.finallyLabel, o = P.endLabel, F.unshift(I.createExpressionStatement(I.createCallExpression(I.createPropertyAccessExpression(I.createPropertyAccessExpression(E, "trys"), "push"), void 0, [I.createArrayLiteralExpression([K(n), K(i), K(a), K(o)])]))), P = void 0), e && F.push(I.createExpressionStatement(I.createAssignment(I.createPropertyAccessExpression(E, "label"), I.createNumericLiteral(M + 1)))) + } + A.push(I.createCaseClause(I.createNumericLiteral(M), F || [])), F = void 0 + } + + function Ae(e) { + if (S) + for (var t = 0; t < S.length; t++) S[t] === e && (F && (Ne(!N), Z = N = !1, M++), void 0 === (k = void 0 === k ? [] : k)[M] ? k[M] = [t] : k[M].push(t)) + } + + function Q(e) { + e && (F ? F.push(e) : F = [e]) + } + + function Fe(e, t) { + Z = N = !0, Q(Pe.setEmitFlags(Pe.setTextRange(I.createReturnStatement(I.createArrayLiteralExpression(e ? [V(2), e] : [V(2)])), t), 384)) + } + } + }(ts = ts || {}), ! function($) { + $.transformModule = function(O) { + var g, d, m, M = O.factory, + L = O.getEmitHelperFactory, + i = O.startLexicalEnvironment, + a = O.endLexicalEnvironment, + y = O.hoistVariableDeclaration, + R = O.getCompilerOptions(), + h = O.getEmitResolver(), + v = O.getEmitHost(), + B = $.getEmitScriptTarget(R), + j = $.getEmitModuleKind(R), + r = O.onSubstituteNode, + n = O.onEmitNode, + o = (O.onSubstituteNode = function(e, t) { + if (!(t = r(e, t)).id || !b[t.id]) { + if (1 === e) return function(e) { + switch (e.kind) { + case 79: + return _(e); + case 210: + return function(e) { + if ($.isIdentifier(e.expression)) { + var t = _(e.expression); + if (b[$.getNodeId(t)] = !0, !($.isIdentifier(t) || 4096 & $.getEmitFlags(e.expression))) return $.addEmitFlags(M.updateCallExpression(e, t, void 0, e.arguments), 536870912) + } + return e + }(e); + case 212: + return function(e) { + if ($.isIdentifier(e.tag)) { + var t = _(e.tag); + if (b[$.getNodeId(t)] = !0, !($.isIdentifier(t) || 4096 & $.getEmitFlags(e.tag))) return $.addEmitFlags(M.updateTaggedTemplateExpression(e, t, void 0, e.template), 536870912) + } + return e + }(e); + case 223: + return function(e) { + if ($.isAssignmentOperator(e.operatorToken.kind) && $.isIdentifier(e.left) && !$.isGeneratedIdentifier(e.left) && !$.isLocalName(e.left) && !$.isDeclarationNameOfEnumOrNamespace(e.left)) { + var t = T(e.left); + if (t) { + for (var r = e, n = 0, i = t; n < i.length; n++) { + var a = i[n]; + b[$.getNodeId(r)] = !0, r = G(a, r, e) + } + return r + } + } + return e + }(e) + } + return e + }(t); + if ($.isShorthandPropertyAssignment(t)) return function(e) { + var t = e.name, + r = _(t); + if (r === t) return e; { + var n; + if (e.objectAssignmentInitializer) return n = M.createAssignment(r, e.objectAssignmentInitializer), $.setTextRange(M.createPropertyAssignment(t, n), e) + } + return $.setTextRange(M.createPropertyAssignment(t, r), e) + }(t) + } + return t + }, O.onEmitNode = function(e, t, r) { + 308 === t.kind ? (g = t, d = o[$.getOriginalNodeId(g)], n(e, t, r), d = g = void 0) : n(e, t, r) + }, O.enableSubstitution(210), O.enableSubstitution(212), O.enableSubstitution(79), O.enableSubstitution(223), O.enableSubstitution(300), O.enableEmitNotification(308), []), + J = [], + b = []; + return $.chainBundle(O, function(e) { + if (e.isDeclarationFile || !($.isEffectiveExternalModule(e, R) || 8388608 & e.transformFlags || $.isJsonSourceFile(e) && $.hasJsonModuleEmitEnabled(R) && $.outFile(R))) return e; + g = e, d = $.collectExternalModuleInfo(O, e, h, R), o[$.getOriginalNodeId(e)] = d; + e = function(e) { + switch (e) { + case $.ModuleKind.AMD: + return p; + case $.ModuleKind.UMD: + return f; + default: + return t + } + }(j)(e); + return g = void 0, d = void 0, m = !1, e + }); + + function s() { + return !(d.exportEquals || !$.isExternalModule(g)) + } + + function t(e) { + i(); + var t = [], + r = $.getStrictOptionValue(R, "alwaysStrict") || !R.noImplicitUseStrict && $.isExternalModule(g), + r = M.copyPrologue(e.statements, t, r && !$.isJsonSourceFile(e), l); + if (s() && $.append(t, A()), $.length(d.exportedNames)) + for (var n = 0; n < d.exportedNames.length; n += 50) $.append(t, M.createExpressionStatement($.reduceLeft(d.exportedNames.slice(n, n + 50), function(e, t) { + return M.createAssignment(M.createPropertyAccessExpression(M.createIdentifier("exports"), M.createIdentifier($.idText(t))), e) + }, M.createVoidZero()))); + $.append(t, $.visitNode(d.externalHelpersImportDeclaration, l, $.isStatement)), $.addRange(t, $.visitNodes(e.statements, l, $.isStatement, r)), k(t, !1), $.insertStatementsAfterStandardPrologue(t, a()); + r = M.updateSourceFile(e, $.setTextRange(M.createNodeArray(t), e.statements)); + return $.addEmitHelpers(r, O.readEmitHelpers()), r + } + + function p(e) { + var t = M.createIdentifier("define"), + r = $.tryGetModuleNameFromFile(M, e, v, R), + n = $.isJsonSourceFile(e) && e, + i = c(e, !0), + a = i.aliasedModuleNames, + o = i.unaliasedModuleNames, + i = i.importAliasNames, + t = M.updateSourceFile(e, $.setTextRange(M.createNodeArray([M.createExpressionStatement(M.createCallExpression(t, void 0, __spreadArray(__spreadArray([], r ? [r] : [], !0), [M.createArrayLiteralExpression(n ? $.emptyArray : __spreadArray(__spreadArray([M.createStringLiteral("require"), M.createStringLiteral("exports")], a, !0), o, !0)), n ? n.statements.length ? n.statements[0].expression : M.createObjectLiteralExpression() : M.createFunctionExpression(void 0, void 0, void 0, void 0, __spreadArray([M.createParameterDeclaration(void 0, void 0, "require"), M.createParameterDeclaration(void 0, void 0, "exports")], i, !0), void 0, E(e))], !1)))]), e.statements)); + return $.addEmitHelpers(t, O.readEmitHelpers()), t + } + + function f(e) { + var t = c(e, !1), + r = t.aliasedModuleNames, + n = t.unaliasedModuleNames, + t = t.importAliasNames, + i = $.tryGetModuleNameFromFile(M, e, v, R), + i = M.createFunctionExpression(void 0, void 0, void 0, void 0, [M.createParameterDeclaration(void 0, void 0, "factory")], void 0, $.setTextRange(M.createBlock([M.createIfStatement(M.createLogicalAnd(M.createTypeCheck(M.createIdentifier("module"), "object"), M.createTypeCheck(M.createPropertyAccessExpression(M.createIdentifier("module"), "exports"), "object")), M.createBlock([M.createVariableStatement(void 0, [M.createVariableDeclaration("v", void 0, void 0, M.createCallExpression(M.createIdentifier("factory"), void 0, [M.createIdentifier("require"), M.createIdentifier("exports")]))]), $.setEmitFlags(M.createIfStatement(M.createStrictInequality(M.createIdentifier("v"), M.createIdentifier("undefined")), M.createExpressionStatement(M.createAssignment(M.createPropertyAccessExpression(M.createIdentifier("module"), "exports"), M.createIdentifier("v")))), 1)]), M.createIfStatement(M.createLogicalAnd(M.createTypeCheck(M.createIdentifier("define"), "function"), M.createPropertyAccessExpression(M.createIdentifier("define"), "amd")), M.createBlock([M.createExpressionStatement(M.createCallExpression(M.createIdentifier("define"), void 0, __spreadArray(__spreadArray([], i ? [i] : [], !0), [M.createArrayLiteralExpression(__spreadArray(__spreadArray([M.createStringLiteral("require"), M.createStringLiteral("exports")], r, !0), n, !0)), M.createIdentifier("factory")], !1)))])))], !0), void 0)), + r = M.updateSourceFile(e, $.setTextRange(M.createNodeArray([M.createExpressionStatement(M.createCallExpression(i, void 0, [M.createFunctionExpression(void 0, void 0, void 0, void 0, __spreadArray([M.createParameterDeclaration(void 0, void 0, "require"), M.createParameterDeclaration(void 0, void 0, "exports")], t, !0), void 0, E(e))]))]), e.statements)); + return $.addEmitHelpers(r, O.readEmitHelpers()), r + } + + function c(e, t) { + for (var r = [], n = [], i = [], a = 0, o = e.amdDependencies; a < o.length; a++) { + var s = o[a]; + s.name ? (r.push(M.createStringLiteral(s.path)), i.push(M.createParameterDeclaration(void 0, void 0, s.name))) : n.push(M.createStringLiteral(s.path)) + } + for (var c = 0, l = d.externalImports; c < l.length; c++) { + var u = l[c], + _ = $.getExternalModuleNameLiteral(M, u, g, v, h, R), + u = $.getLocalNameForExternalImport(M, u, g); + _ && (t && u ? ($.setEmitFlags(u, 4), r.push(_), i.push(M.createParameterDeclaration(void 0, void 0, u))) : n.push(_)) + } + return { + aliasedModuleNames: r, + unaliasedModuleNames: n, + importAliasNames: i + } + } + + function C(e) { + if (!$.isImportEqualsDeclaration(e) && !$.isExportDeclaration(e) && $.getExternalModuleNameLiteral(M, e, g, v, h, R)) { + var t = $.getLocalNameForExternalImport(M, e, g), + e = U(e, t); + if (e !== t) return M.createExpressionStatement(M.createAssignment(t, e)) + } + } + + function E(e) { + i(); + var t = [], + r = M.copyPrologue(e.statements, t, !R.noImplicitUseStrict, l), + e = (s() && $.append(t, A()), $.length(d.exportedNames) && $.append(t, M.createExpressionStatement($.reduceLeft(d.exportedNames, function(e, t) { + return M.createAssignment(M.createPropertyAccessExpression(M.createIdentifier("exports"), M.createIdentifier($.idText(t))), e) + }, M.createVoidZero()))), $.append(t, $.visitNode(d.externalHelpersImportDeclaration, l, $.isStatement)), j === $.ModuleKind.AMD && $.addRange(t, $.mapDefined(d.externalImports, C)), $.addRange(t, $.visitNodes(e.statements, l, $.isStatement, r)), k(t, !0), $.insertStatementsAfterStandardPrologue(t, a()), M.createBlock(t, !0)); + return m && $.addEmitHelper(e, F), e + } + + function k(e, t) { + var r, n; + d.exportEquals && (r = $.visitNode(d.exportEquals.expression, z)) && (t ? (n = M.createReturnStatement(r), $.setTextRange(n, d.exportEquals), $.setEmitFlags(n, 1920)) : (n = M.createExpressionStatement(M.createAssignment(M.createPropertyAccessExpression(M.createIdentifier("module"), "exports"), r)), $.setTextRange(n, d.exportEquals), $.setEmitFlags(n, 1536)), e.push(n)) + } + + function l(e) { + switch (e.kind) { + case 269: + var t, r = e, + n = $.getNamespaceDeclarationNode(r); + if (j !== $.ModuleKind.AMD) { + if (!r.importClause) return $.setOriginalNode($.setTextRange(M.createExpressionStatement(K(r)), r), r); + var i = []; + n && !$.isDefaultImport(r) ? i.push(M.createVariableDeclaration(M.cloneNode(n.name), void 0, void 0, U(r, K(r)))) : (i.push(M.createVariableDeclaration(M.getGeneratedNameForNode(r), void 0, void 0, U(r, K(r)))), n && $.isDefaultImport(r) && i.push(M.createVariableDeclaration(M.cloneNode(n.name), void 0, void 0, M.getGeneratedNameForNode(r)))), t = $.append(t, $.setOriginalNode($.setTextRange(M.createVariableStatement(void 0, M.createVariableDeclarationList(i, 2 <= B ? 2 : 0)), r), r)) + } else n && $.isDefaultImport(r) && (t = $.append(t, M.createVariableStatement(void 0, M.createVariableDeclarationList([$.setOriginalNode($.setTextRange(M.createVariableDeclaration(M.cloneNode(n.name), void 0, void 0, M.getGeneratedNameForNode(r)), r), r)], 2 <= B ? 2 : 0)))); + return V(r) ? (i = $.getOriginalNodeId(r), J[i] = Y(J[i], r)) : t = Y(t, r), $.singleOrMany(t); + case 268: + var a, n = e; + return $.Debug.assert($.isExternalModuleImportEqualsDeclaration(n), "import= for internal module references should be handled in an earlier transformer."), j !== $.ModuleKind.AMD ? a = $.hasSyntacticModifier(n, 1) ? $.append(a, $.setOriginalNode($.setTextRange(M.createExpressionStatement(G(n.name, K(n))), n), n)) : $.append(a, $.setOriginalNode($.setTextRange(M.createVariableStatement(void 0, M.createVariableDeclarationList([M.createVariableDeclaration(M.cloneNode(n.name), void 0, void 0, K(n))], 2 <= B ? 2 : 0)), n), n)) : $.hasSyntacticModifier(n, 1) && (a = $.append(a, $.setOriginalNode($.setTextRange(M.createExpressionStatement(G(M.getExportName(n), M.getLocalName(n))), n), n))), V(n) ? (i = $.getOriginalNodeId(n), J[i] = Z(J[i], n)) : a = Z(a, n), $.singleOrMany(a); + case 275: + var o = e; + if (!o.moduleSpecifier) return; + var s = M.getGeneratedNameForNode(o); + if (o.exportClause && $.isNamedExports(o.exportClause)) { + var c = []; + j !== $.ModuleKind.AMD && c.push($.setOriginalNode($.setTextRange(M.createVariableStatement(void 0, M.createVariableDeclarationList([M.createVariableDeclaration(s, void 0, void 0, K(o))])), o), o)); + for (var l = 0, u = o.exportClause.elements; l < u.length; l++) { + var _, d = u[l]; + 0 === B ? c.push($.setOriginalNode($.setTextRange(M.createExpressionStatement(L().createCreateBindingHelper(s, M.createStringLiteralFromNode(d.propertyName || d.name), d.propertyName ? M.createStringLiteralFromNode(d.name) : void 0)), d), d)) : (_ = !(!$.getESModuleInterop(R) || 67108864 & $.getEmitFlags(o) || "default" !== $.idText(d.propertyName || d.name)), _ = M.createPropertyAccessExpression(_ ? L().createImportDefaultHelper(s) : s, d.propertyName || d.name), c.push($.setOriginalNode($.setTextRange(M.createExpressionStatement(G(M.getExportName(d), _, void 0, !0)), d), d))) + } + return $.singleOrMany(c) + } + return o.exportClause ? ((c = []).push($.setOriginalNode($.setTextRange(M.createExpressionStatement(G(M.cloneNode(o.exportClause.name), function(e, t) { + return !$.getESModuleInterop(R) || 67108864 & $.getEmitFlags(e) || !$.getExportNeedsImportStarHelper(e) ? t : L().createImportStarHelper(t) + }(o, j !== $.ModuleKind.AMD ? K(o) : $.isExportNamespaceAsDefaultDeclaration(o) ? s : M.createIdentifier($.idText(o.exportClause.name))))), o), o)), $.singleOrMany(c)) : $.setOriginalNode($.setTextRange(M.createExpressionStatement(L().createExportStarHelper(j !== $.ModuleKind.AMD ? K(o) : s)), o), o); + case 274: + var p, r = e; + return r.isExportEquals ? void 0 : ((k = r.original) && V(k) ? (k = $.getOriginalNodeId(r), J[k] = H(J[k], M.createIdentifier("default"), $.visitNode(r.expression, z), r, !0)) : p = H(p, M.createIdentifier("default"), $.visitNode(r.expression, z), r, !0), $.singleOrMany(p)); + case 240: + var f, g, m, y = e; + if ($.hasSyntacticModifier(y, 1)) { + for (var h = void 0, v = !1, b = 0, x = y.declarationList.declarations; b < x.length; b++) { + var D, S, T = x[b]; + $.isIdentifier(T.name) && $.isLocalName(T.name) ? (h = h || $.visitNodes(y.modifiers, Q, $.isModifier), g = $.append(g, T)) : T.initializer && (!$.isBindingPattern(T.name) && ($.isArrowFunction(T.initializer) || $.isFunctionExpression(T.initializer) || $.isClassExpression(T.initializer)) ? (D = M.createAssignment($.setTextRange(M.createPropertyAccessExpression(M.createIdentifier("exports"), T.name), T.name), M.createIdentifier($.getTextOfIdentifierOrLiteral(T.name))), S = M.createVariableDeclaration(T.name, T.exclamationToken, T.type, $.visitNode(T.initializer, z)), g = $.append(g, S), m = $.append(m, D), v = !0) : m = $.append(m, function(e) { + return $.isBindingPattern(e.name) ? $.flattenDestructuringAssignment($.visitNode(e, z), void 0, O, 0, !1, X) : M.createAssignment($.setTextRange(M.createPropertyAccessExpression(M.createIdentifier("exports"), e.name), e.name), e.initializer ? $.visitNode(e.initializer, z) : M.createVoidZero()) + }(T))) + } + g && (f = $.append(f, M.updateVariableStatement(y, h, M.updateVariableDeclarationList(y.declarationList, g)))), m && (E = $.setOriginalNode($.setTextRange(M.createExpressionStatement(M.inlineExpressions(m)), y), y), v && $.removeAllComments(E), f = $.append(f, E)) + } else f = $.append(f, $.visitEachChild(y, z, O)); + return V(y) ? (E = $.getOriginalNodeId(y), J[E] = q(J[E], y)) : f = q(f, y), $.singleOrMany(f); + case 259: + var C, E, k = e; + return C = $.hasSyntacticModifier(k, 1) ? $.append(C, $.setOriginalNode($.setTextRange(M.createFunctionDeclaration($.visitNodes(k.modifiers, Q, $.isModifier), k.asteriskToken, M.getDeclarationName(k, !0, !0), void 0, $.visitNodes(k.parameters, z), void 0, $.visitEachChild(k.body, z, O)), k), k)) : $.append(C, $.visitEachChild(k, z, O)), V(k) ? (E = $.getOriginalNodeId(k), J[E] = W(J[E], k)) : C = W(C, k), $.singleOrMany(C); + case 260: + var N, A = e; + return N = $.hasSyntacticModifier(A, 1) ? $.append(N, $.setOriginalNode($.setTextRange(M.createClassDeclaration($.visitNodes(A.modifiers, Q, $.isModifierLike), M.getDeclarationName(A, !0, !0), void 0, $.visitNodes(A.heritageClauses, z), $.visitNodes(A.members, z)), A), A)) : $.append(N, $.visitEachChild(A, z, O)), V(A) ? (F = $.getOriginalNodeId(A), J[F] = W(J[F], A)) : N = W(N, A), $.singleOrMany(N); + case 355: + var F = e; + return V(F) && 240 === F.original.kind && (A = $.getOriginalNodeId(F), J[A] = q(J[A], F.original)), F; + case 356: + var P = e, + w = $.getOriginalNodeId(P), + I = J[w]; + return I ? (delete J[w], $.append(I, P)) : P; + default: + return z(e) + } + } + + function N(e, t) { + if (!(276828160 & e.transformFlags)) return e; + switch (e.kind) { + case 245: + return r = e, M.updateForStatement(r, $.visitNode(r.initializer, x, $.isForInitializer), $.visitNode(r.condition, z, $.isExpression), $.visitNode(r.incrementor, x, $.isExpression), $.visitIterationBody(r.statement, z, O)); + case 241: + return M.updateExpressionStatement(e, $.visitNode(e.expression, x, $.isExpression)); + case 214: + return M.updateParenthesizedExpression(e, $.visitNode(e.expression, t ? x : z, $.isExpression)); + case 353: + return M.updatePartiallyEmittedExpression(e, $.visitNode(e.expression, t ? x : z, $.isExpression)); + case 210: + if ($.isImportCall(e) && void 0 === g.impliedNodeFormat) { + var r = e, + n = $.getExternalModuleNameLiteral(M, r, g, v, h, R), + i = $.visitNode($.firstOrUndefined(r.arguments), z), + a = !n || i && $.isStringLiteral(i) && i.text === n.text ? i : n, + o = !!(16384 & r.transformFlags); + switch (R.module) { + case $.ModuleKind.AMD: + return D(a, o); + case $.ModuleKind.UMD: + return function(e, t) { + { + var r; + return m = !0, $.isSimpleCopiableExpression(e) ? (r = $.isGeneratedIdentifier(e) ? e : $.isStringLiteral(e) ? M.createStringLiteralFromNode(e) : $.setEmitFlags($.setTextRange(M.cloneNode(e), e), 1536), M.createConditionalExpression(M.createIdentifier("__syncRequire"), void 0, S(e), void 0, D(r, t))) : (r = M.createTempVariable(y), M.createComma(M.createAssignment(r, e), M.createConditionalExpression(M.createIdentifier("__syncRequire"), void 0, S(r, !0), void 0, D(r, t)))) + } + }(null != a ? a : M.createVoidZero(), o); + default: + $.ModuleKind.CommonJS; + return S(a) + } + return + } + break; + case 223: + if ($.isDestructuringAssignment(e)) return i = t, + function e(t) { + if ($.isObjectLiteralExpression(t)) + for (var r = 0, n = t.properties; r < n.length; r++) switch ((o = n[r]).kind) { + case 299: + if (e(o.initializer)) return !0; + break; + case 300: + if (e(o.name)) return !0; + break; + case 301: + if (e(o.expression)) return !0; + break; + case 171: + case 174: + case 175: + return !1; + default: + $.Debug.assertNever(o, "Unhandled object member kind") + } else if ($.isArrayLiteralExpression(t)) + for (var i = 0, a = t.elements; i < a.length; i++) { + var o = a[i]; + if ($.isSpreadElement(o)) { + if (e(o.expression)) return !0 + } else if (e(o)) return !0 + } else if ($.isIdentifier(t)) return $.length(T(t)) > ($.isExportName(t) ? 1 : 0); + return !1 + }((n = e).left) ? $.flattenDestructuringAssignment(n, z, O, 0, !i, X) : $.visitEachChild(n, z, O); + break; + case 221: + case 222: + var s = e, + c = t; + if ((45 === s.operator || 46 === s.operator) && $.isIdentifier(s.operand) && !$.isGeneratedIdentifier(s.operand) && !$.isLocalName(s.operand) && !$.isDeclarationNameOfEnumOrNamespace(s.operand)) { + var l = T(s.operand); + if (l) { + var u = void 0, + _ = $.visitNode(s.operand, z, $.isExpression); + $.isPrefixUnaryExpression(s) ? _ = M.updatePrefixUnaryExpression(s, _) : (_ = M.updatePostfixUnaryExpression(s, _), c || (u = M.createTempVariable(y), _ = M.createAssignment(u, _), $.setTextRange(_, s)), _ = M.createComma(_, M.cloneNode(s.operand)), $.setTextRange(_, s)); + for (var d = 0, p = l; d < p.length; d++) { + var f = p[d]; + b[$.getNodeId(_)] = !0, _ = G(f, _), $.setTextRange(_, s) + } + return u && (b[$.getNodeId(_)] = !0, _ = M.createComma(_, u), $.setTextRange(_, s)), _ + } + } + return $.visitEachChild(s, z, O) + } + var r; + return $.visitEachChild(e, z, O) + } + + function z(e) { + return N(e, !1) + } + + function x(e) { + return N(e, !0) + } + + function D(e, t) { + var r, n = M.createUniqueName("resolve"), + i = M.createUniqueName("reject"), + a = [M.createParameterDeclaration(void 0, void 0, n), M.createParameterDeclaration(void 0, void 0, i)], + e = M.createBlock([M.createExpressionStatement(M.createCallExpression(M.createIdentifier("require"), void 0, [M.createArrayLiteralExpression([e || M.createOmittedExpression()]), n, i]))]), + n = (2 <= B ? r = M.createArrowFunction(void 0, void 0, a, void 0, void 0, e) : (r = M.createFunctionExpression(void 0, void 0, void 0, void 0, a, void 0, e), t && $.setEmitFlags(r, 8)), M.createNewExpression(M.createIdentifier("Promise"), void 0, [r])); + return $.getESModuleInterop(R) ? M.createCallExpression(M.createPropertyAccessExpression(n, M.createIdentifier("then")), void 0, [L().createImportStarCallbackHelper()]) : n + } + + function S(e, t) { + var t = !e || $.isSimpleInlineableExpression(e) || t ? void 0 : M.createTempVariable(y), + r = M.createCallExpression(M.createPropertyAccessExpression(M.createIdentifier("Promise"), "resolve"), void 0, []), + n = M.createCallExpression(M.createIdentifier("require"), void 0, t ? [t] : e ? [e] : []), + r = ($.getESModuleInterop(R) && (n = L().createImportStarHelper(n)), n = 2 <= B ? M.createArrowFunction(void 0, void 0, [], void 0, void 0, n) : M.createFunctionExpression(void 0, void 0, void 0, void 0, [], void 0, M.createBlock([M.createReturnStatement(n)])), M.createCallExpression(M.createPropertyAccessExpression(r, "then"), void 0, [n])); + return void 0 === t ? r : M.createCommaListExpression([M.createAssignment(t, e), r]) + } + + function U(e, t) { + return !$.getESModuleInterop(R) || 67108864 & $.getEmitFlags(e) ? t : $.getImportNeedsImportStarHelper(e) ? L().createImportStarHelper(t) : $.getImportNeedsImportDefaultHelper(e) ? L().createImportDefaultHelper(t) : t + } + + function K(e) { + var e = $.getExternalModuleNameLiteral(M, e, g, v, h, R), + t = []; + return e && t.push(e), M.createCallExpression(M.createIdentifier("require"), void 0, t) + } + + function X(e, t, r) { + var n = T(e); + if (n) { + for (var i = $.isExportName(e) ? t : M.createAssignment(e, t), a = 0, o = n; a < o.length; a++) { + var s = o[a]; + $.setEmitFlags(i, 4), i = G(s, i, r) + } + return i + } + return M.createAssignment(e, t) + } + + function V(e) { + return 0 != (4194304 & $.getEmitFlags(e)) + } + + function Y(e, t) { + if (!d.exportEquals) { + t = t.importClause; + if (t) { + t.name && (e = u(e, t)); + var r = t.namedBindings; + if (r) switch (r.kind) { + case 271: + e = u(e, r); + break; + case 272: + for (var n = 0, i = r.elements; n < i.length; n++) e = u(e, i[n], !0) + } + } + } + return e + } + + function Z(e, t) { + return d.exportEquals ? e : u(e, t) + } + + function q(e, t) { + if (!d.exportEquals) + for (var r = 0, n = t.declarationList.declarations; r < n.length; r++) e = function e(t, r) { + if (d.exportEquals) return t; + if ($.isBindingPattern(r.name)) + for (var n = 0, i = r.name.elements; n < i.length; n++) { + var a = i[n]; + $.isOmittedExpression(a) || (t = e(t, a)) + } else $.isGeneratedIdentifier(r.name) || (t = u(t, r)); + return t + }(e, n[r]); + return e + } + + function W(e, t) { + return d.exportEquals || ($.hasSyntacticModifier(t, 1) && (e = H(e, $.hasSyntacticModifier(t, 1024) ? M.createIdentifier("default") : M.getDeclarationName(t), M.getLocalName(t), t)), t.name && (e = u(e, t))), e + } + + function u(e, t, r) { + var n = M.getDeclarationName(t), + t = d.exportSpecifiers.get($.idText(n)); + if (t) + for (var i = 0, a = t; i < a.length; i++) { + var o = a[i]; + e = H(e, o.name, n, o.name, void 0, r) + } + return e + } + + function H(e, t, r, n, i, a) { + return e = $.append(e, function(e, t, r, n, i) { + e = $.setTextRange(M.createExpressionStatement(G(e, t, void 0, i)), r); + $.startOnNewLine(e), n || $.setEmitFlags(e, 1536); + return e + }(t, r, n, i, a)) + } + + function A() { + var e = 0 === B ? M.createExpressionStatement(G(M.createIdentifier("__esModule"), M.createTrue())) : M.createExpressionStatement(M.createCallExpression(M.createPropertyAccessExpression(M.createIdentifier("Object"), "defineProperty"), void 0, [M.createIdentifier("exports"), M.createStringLiteral("__esModule"), M.createObjectLiteralExpression([M.createPropertyAssignment("value", M.createTrue())])])); + return $.setEmitFlags(e, 1048576), e + } + + function G(e, t, r, n) { + return $.setTextRange(n && 0 !== B ? M.createCallExpression(M.createPropertyAccessExpression(M.createIdentifier("Object"), "defineProperty"), void 0, [M.createIdentifier("exports"), M.createStringLiteralFromNode(e), M.createObjectLiteralExpression([M.createPropertyAssignment("enumerable", M.createTrue()), M.createPropertyAssignment("get", M.createFunctionExpression(void 0, void 0, void 0, void 0, [], void 0, M.createBlock([M.createReturnStatement(t)])))])]) : M.createAssignment(M.createPropertyAccessExpression(M.createIdentifier("exports"), M.cloneNode(e)), t), r) + } + + function Q(e) { + switch (e.kind) { + case 93: + case 88: + return + } + return e + } + + function _(e) { + var t; + if (4096 & $.getEmitFlags(e)) return (r = $.getExternalHelpersModuleName(g)) ? M.createPropertyAccessExpression(r, e) : e; + if ((!$.isGeneratedIdentifier(e) || 64 & e.autoGenerateFlags) && !$.isLocalName(e)) { + var r = h.getReferencedExportContainer(e, $.isExportName(e)); + if (r && 308 === r.kind) return $.setTextRange(M.createPropertyAccessExpression(M.createIdentifier("exports"), M.cloneNode(e)), e); + var n, r = h.getReferencedImportDeclaration(e); + if (r) { + if ($.isImportClause(r)) return $.setTextRange(M.createPropertyAccessExpression(M.getGeneratedNameForNode(r.parent), M.createIdentifier("default")), e); + if ($.isImportSpecifier(r)) return n = r.propertyName || r.name, $.setTextRange(M.createPropertyAccessExpression(M.getGeneratedNameForNode((null == (t = null == (t = r.parent) ? void 0 : t.parent) ? void 0 : t.parent) || r), M.cloneNode(n)), e) + } + } + return e + } + + function T(e) { + if (!$.isGeneratedIdentifier(e)) { + e = h.getReferencedImportDeclaration(e) || h.getReferencedValueDeclaration(e); + if (e) return d && d.exportedBindings[$.getOriginalNodeId(e)] + } + } + }; + var F = { + name: "typescript:dynamicimport-sync-require", + scoped: !0, + text: '\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";' + } + }(ts = ts || {}), ! function(X) { + X.transformSystemModule = function(S) { + var y, u, h, d, T, C, o, E = S.factory, + z = S.startLexicalEnvironment, + U = S.endLexicalEnvironment, + k = S.hoistVariableDeclaration, + p = S.getCompilerOptions(), + f = S.getEmitResolver(), + g = S.getEmitHost(), + r = S.onSubstituteNode, + i = S.onEmitNode, + s = (S.onSubstituteNode = function(e, t) { + if (! function(e) { + return o && e.id && o[e.id] + }(t = r(e, t))) { + if (1 === e) return function(e) { + switch (e.kind) { + case 79: + return function(e) { + var t; + if (4096 & X.getEmitFlags(e)) { + var r = X.getExternalHelpersModuleName(y); + if (r) return E.createPropertyAccessExpression(r, e) + } else if (!X.isGeneratedIdentifier(e) && !X.isLocalName(e)) { + r = f.getReferencedImportDeclaration(e); + if (r) { + if (X.isImportClause(r)) return X.setTextRange(E.createPropertyAccessExpression(E.getGeneratedNameForNode(r.parent), E.createIdentifier("default")), e); + if (X.isImportSpecifier(r)) return X.setTextRange(E.createPropertyAccessExpression(E.getGeneratedNameForNode((null == (t = null == (t = r.parent) ? void 0 : t.parent) ? void 0 : t.parent) || r), E.cloneNode(r.propertyName || r.name)), e) + } + } + return e + }(e); + case 223: + return function(e) { + if (X.isAssignmentOperator(e.operatorToken.kind) && X.isIdentifier(e.left) && !X.isGeneratedIdentifier(e.left) && !X.isLocalName(e.left) && !X.isDeclarationNameOfEnumOrNamespace(e.left)) { + var t = Q(e.left); + if (t) { + for (var r = e, n = 0, i = t; n < i.length; n++) { + var a = i[n]; + r = x(a, J(r)) + } + return r + } + } + return e + }(e); + case 233: + return function(e) { + if (X.isImportMeta(e)) return E.createPropertyAccessExpression(d, E.createIdentifier("meta")); + return e + }(e) + } + return e + }(t); + if (4 === e) return function(e) { + if (300 === e.kind) { + var t = e, + r = t.name; + if (!X.isGeneratedIdentifier(r) && !X.isLocalName(r)) { + var n = f.getReferencedImportDeclaration(r); + if (n) { + if (X.isImportClause(n)) return X.setTextRange(E.createPropertyAssignment(E.cloneNode(r), E.createPropertyAccessExpression(E.getGeneratedNameForNode(n.parent), E.createIdentifier("default"))), t); + if (X.isImportSpecifier(n)) return X.setTextRange(E.createPropertyAssignment(E.cloneNode(r), E.createPropertyAccessExpression(E.getGeneratedNameForNode((null == (r = null == (r = n.parent) ? void 0 : r.parent) ? void 0 : r.parent) || n), E.cloneNode(n.propertyName || n.name))), t) + } + } + return t + } + return e + }(t) + } + return t + }, S.onEmitNode = function(e, t, r) { + { + var n; + 308 === t.kind ? (n = X.getOriginalNodeId(t), y = t, u = s[n], h = c[n], o = l[n], d = _[n], o && delete l[n], i(e, t, r), o = d = h = u = y = void 0) : i(e, t, r) + } + }, S.enableSubstitution(79), S.enableSubstitution(300), S.enableSubstitution(223), S.enableSubstitution(233), S.enableEmitNotification(308), []), + N = [], + c = [], + l = [], + _ = []; + return X.chainBundle(S, function(e) { + if (e.isDeclarationFile || !(X.isEffectiveExternalModule(e, p) || 8388608 & e.transformFlags)) return e; + var t = X.getOriginalNodeId(e), + r = (C = y = e, u = s[t] = X.collectExternalModuleInfo(S, e, f, p), h = E.createUniqueName("exports"), c[t] = h, d = _[t] = E.createUniqueName("context"), function(e) { + for (var t = new X.Map, r = [], n = 0, i = e; n < i.length; n++) { + var a, o, s = i[n], + c = X.getExternalModuleNameLiteral(E, s, y, g, f, p); + c && (a = c.text, void 0 !== (o = t.get(a)) ? r[o].externalImports.push(s) : (t.set(a, r.length), r.push({ + name: c, + externalImports: [s] + }))) + } + return r + }(u.externalImports)), + n = function(e, t) { + var r = [], + n = (z(), X.getStrictOptionValue(p, "alwaysStrict") || !p.noImplicitUseStrict && X.isExternalModule(y)), + n = E.copyPrologue(e.statements, r, n, v), + n = (r.push(E.createVariableStatement(void 0, E.createVariableDeclarationList([E.createVariableDeclaration("__moduleName", void 0, void 0, E.createLogicalAnd(d, E.createPropertyAccessExpression(d, "id")))]))), X.visitNode(u.externalHelpersImportDeclaration, v, X.isStatement), X.visitNodes(e.statements, v, X.isStatement, n)), + i = (X.addRange(r, T), X.insertStatementsAfterStandardPrologue(r, U()), function(e) { + if (u.hasExportStarsToExportValues) { + if (!u.exportedNames && 0 === u.exportSpecifiers.size) { + for (var t = !1, r = 0, n = u.externalImports; r < n.length; r++) { + var i = n[r]; + if (275 === i.kind && i.exportClause) { + t = !0; + break + } + } + if (!t) return l = m(void 0), e.push(l), l.name + } + var a = []; + if (u.exportedNames) + for (var o = 0, s = u.exportedNames; o < s.length; o++) { + var c = s[o]; + "default" !== c.escapedText && a.push(E.createPropertyAssignment(E.createStringLiteralFromNode(c), E.createTrue())) + } + var l = E.createUniqueName("exportedNames"), + l = (e.push(E.createVariableStatement(void 0, E.createVariableDeclarationList([E.createVariableDeclaration(l, void 0, void 0, E.createObjectLiteralExpression(a, !0))]))), m(l)); + return e.push(l), l.name + } + }(r)), + e = 2097152 & e.transformFlags ? E.createModifiersFromModifierFlags(512) : void 0, + i = E.createObjectLiteralExpression([E.createPropertyAssignment("setters", function(e, t) { + for (var r = [], n = 0, i = t; n < i.length; n++) { + for (var a = i[n], o = X.forEach(a.externalImports, function(e) { + return X.getLocalNameForExternalImport(E, e, y) + }), s = o ? E.getGeneratedNameForNode(o) : E.createUniqueName(""), c = [], l = 0, u = a.externalImports; l < u.length; l++) { + var _ = u[l], + d = X.getLocalNameForExternalImport(E, _, y); + switch (_.kind) { + case 269: + if (!_.importClause) break; + case 268: + X.Debug.assert(void 0 !== d), c.push(E.createExpressionStatement(E.createAssignment(d, s))), X.hasSyntacticModifier(_, 1) && c.push(E.createExpressionStatement(E.createCallExpression(h, void 0, [E.createStringLiteral(X.idText(d)), s]))); + break; + case 275: + if (X.Debug.assert(void 0 !== d), _.exportClause) + if (X.isNamedExports(_.exportClause)) { + for (var p = [], f = 0, g = _.exportClause.elements; f < g.length; f++) { + var m = g[f]; + p.push(E.createPropertyAssignment(E.createStringLiteral(X.idText(m.name)), E.createElementAccessExpression(s, E.createStringLiteral(X.idText(m.propertyName || m.name))))) + } + c.push(E.createExpressionStatement(E.createCallExpression(h, void 0, [E.createObjectLiteralExpression(p, !0)]))) + } else c.push(E.createExpressionStatement(E.createCallExpression(h, void 0, [E.createStringLiteral(X.idText(_.exportClause.name)), s]))); + else c.push(E.createExpressionStatement(E.createCallExpression(e, void 0, [s]))) + } + } + r.push(E.createFunctionExpression(void 0, void 0, void 0, void 0, [E.createParameterDeclaration(void 0, void 0, s)], void 0, E.createBlock(c, !0))) + } + return E.createArrayLiteralExpression(r, !0) + }(i, t)), E.createPropertyAssignment("execute", E.createFunctionExpression(e, void 0, void 0, void 0, [], void 0, E.createBlock(n, !0)))], !0); + return r.push(E.createReturnStatement(i)), E.createBlock(r, !0) + }(e, r), + i = E.createFunctionExpression(void 0, void 0, void 0, void 0, [E.createParameterDeclaration(void 0, void 0, h), E.createParameterDeclaration(void 0, void 0, d)], void 0, n), + a = X.tryGetModuleNameFromFile(E, e, g, p), + r = E.createArrayLiteralExpression(X.map(r, function(e) { + return e.name + })), + a = X.setEmitFlags(E.updateSourceFile(e, X.setTextRange(E.createNodeArray([E.createExpressionStatement(E.createCallExpression(E.createPropertyAccessExpression(E.createIdentifier("System"), "register"), void 0, a ? [a, r, i] : [r, i]))]), e.statements)), 1024); + X.outFile(p) || X.moveEmitHelpers(a, n, function(e) { + return !e.scoped + }); + o && (l[t] = o, o = void 0); + return y = void 0, u = void 0, h = void 0, d = void 0, T = void 0, C = void 0, a + }); + + function m(e) { + var t = E.createUniqueName("exportStar"), + r = E.createIdentifier("m"), + n = E.createIdentifier("n"), + i = E.createIdentifier("exports"), + a = E.createStrictInequality(n, E.createStringLiteral("default")); + return e && (a = E.createLogicalAnd(a, E.createLogicalNot(E.createCallExpression(E.createPropertyAccessExpression(e, "hasOwnProperty"), void 0, [n])))), E.createFunctionDeclaration(void 0, void 0, t, void 0, [E.createParameterDeclaration(void 0, void 0, r)], void 0, E.createBlock([E.createVariableStatement(void 0, E.createVariableDeclarationList([E.createVariableDeclaration(i, void 0, void 0, E.createObjectLiteralExpression([]))])), E.createForInStatement(E.createVariableDeclarationList([E.createVariableDeclaration(n)]), r, E.createBlock([X.setEmitFlags(E.createIfStatement(a, E.createExpressionStatement(E.createAssignment(E.createElementAccessExpression(i, n), E.createElementAccessExpression(r, n)))), 1)])), E.createExpressionStatement(E.createCallExpression(h, void 0, [i]))], !0)) + } + + function v(e) { + switch (e.kind) { + case 269: + var t, r = e; + return r.importClause && k(X.getLocalNameForExternalImport(E, r, y)), w(r) ? (i = X.getOriginalNodeId(r), N[i] = V(N[i], r)) : t = V(t, r), X.singleOrMany(t); + case 268: + var n, i = e; + return X.Debug.assert(X.isExternalModuleImportEqualsDeclaration(i), "import= for internal module references should be handled in an earlier transformer."), k(X.getLocalNameForExternalImport(E, i, y)), w(i) ? (r = X.getOriginalNodeId(i), N[r] = q(N[r], i)) : n = q(n, i), X.singleOrMany(n); + case 275: + return void X.Debug.assertIsDefined(e); + case 274: + var a, o, s = e; + return s.isExportEquals ? void 0 : (a = X.visitNode(s.expression, B, X.isExpression), (o = s.original) && w(o) ? (o = X.getOriginalNodeId(s), void(N[o] = b(N[o], E.createIdentifier("default"), a, !0))) : W(E.createIdentifier("default"), a, !0)); + default: + return L(e) + } + } + + function A(e) { + if (X.isBindingPattern(e.name)) + for (var t = 0, r = e.name.elements; t < r.length; t++) { + var n = r[t]; + X.isOmittedExpression(n) || A(n) + } else k(E.cloneNode(e.name)) + } + + function F(e) { + return 0 == (2097152 & X.getEmitFlags(e)) && (308 === C.kind || 0 == (3 & X.getOriginalNode(e).flags)) + } + + function P(e, t) { + t = t ? n : a; + return X.isBindingPattern(e.name) ? X.flattenDestructuringAssignment(e, B, S, 0, !1, t) : e.initializer ? t(e.name, X.visitNode(e.initializer, B, X.isExpression)) : e.name + } + + function n(e, t, r) { + return K(e, t, r, !0) + } + + function a(e, t, r) { + return K(e, t, r, !1) + } + + function K(e, t, r, n) { + return k(E.cloneNode(e)), n ? x(e, J(X.setTextRange(E.createAssignment(e, t), r))) : J(X.setTextRange(E.createAssignment(e, t), r)) + } + + function w(e) { + return 0 != (4194304 & X.getEmitFlags(e)) + } + + function V(e, t) { + if (!u.exportEquals) { + t = t.importClause; + if (t) { + t.name && (e = M(e, t)); + var r = t.namedBindings; + if (r) switch (r.kind) { + case 271: + e = M(e, r); + break; + case 272: + for (var n = 0, i = r.elements; n < i.length; n++) e = M(e, i[n]) + } + } + } + return e + } + + function q(e, t) { + return u.exportEquals ? e : M(e, t) + } + + function I(e, t, r) { + if (!u.exportEquals) + for (var n = 0, i = t.declarationList.declarations; n < i.length; n++) { + var a = i[n]; + (a.initializer || r) && (e = function e(t, r, n) { + if (u.exportEquals) return t; + if (X.isBindingPattern(r.name)) + for (var i = 0, a = r.name.elements; i < a.length; i++) { + var o = a[i]; + X.isOmittedExpression(o) || (t = e(t, o, n)) + } else { + var s; + X.isGeneratedIdentifier(r.name) || (s = void 0, n && (t = b(t, r.name, E.getLocalName(r)), s = X.idText(r.name)), t = M(t, r, s)) + } + return t + }(e, a, r)) + } + return e + } + + function O(e, t) { + var r; + return u.exportEquals || (X.hasSyntacticModifier(t, 1) && (e = b(e, r = X.hasSyntacticModifier(t, 1024) ? E.createStringLiteral("default") : t.name, E.getLocalName(t)), r = X.getTextOfIdentifierOrLiteral(r)), t.name && (e = M(e, t, r))), e + } + + function M(e, t, r) { + if (!u.exportEquals) { + var n = E.getDeclarationName(t), + t = u.exportSpecifiers.get(X.idText(n)); + if (t) + for (var i = 0, a = t; i < a.length; i++) { + var o = a[i]; + o.name.escapedText !== r && (e = b(e, o.name, n)) + } + } + return e + } + + function b(e, t, r, n) { + return e = X.append(e, W(t, r, n)) + } + + function W(e, t, r) { + e = E.createExpressionStatement(x(e, t)); + return X.startOnNewLine(e), r || X.setEmitFlags(e, 1536), e + } + + function x(e, t) { + e = X.isIdentifier(e) ? E.createStringLiteralFromNode(e) : e; + return X.setEmitFlags(t, 1536 | X.getEmitFlags(t)), X.setCommentRange(E.createCallExpression(h, void 0, [e, t]), t) + } + + function L(e) { + switch (e.kind) { + case 240: + var t = e; + if (!F(t.declarationList)) return X.visitNode(t, B, X.isStatement); + for (var r, n, i = X.hasSyntacticModifier(t, 1), a = w(t), o = 0, s = t.declarationList.declarations; o < s.length; o++) { + var c = s[o]; + c.initializer ? r = X.append(r, P(c, i && !a)) : A(c) + } + return r && (n = X.append(n, X.setTextRange(E.createExpressionStatement(E.inlineExpressions(r)), t))), a ? (D = X.getOriginalNodeId(t), N[D] = I(N[D], t, i)) : n = I(n, t, !1), X.singleOrMany(n); + case 259: + return D = e, T = X.hasSyntacticModifier(D, 1) ? X.append(T, E.updateFunctionDeclaration(D, X.visitNodes(D.modifiers, G, X.isModifierLike), D.asteriskToken, E.getDeclarationName(D, !0, !0), void 0, X.visitNodes(D.parameters, B, X.isParameterDeclaration), void 0, X.visitNode(D.body, B, X.isBlock))) : X.append(T, X.visitEachChild(D, B, S)), void(w(D) ? (t = X.getOriginalNodeId(D), N[t] = O(N[t], D)) : T = O(T, D)); + case 260: + return v = e, x = E.getLocalName(v), k(x), b = X.append(b, X.setTextRange(E.createExpressionStatement(E.createAssignment(x, X.setTextRange(E.createClassExpression(X.visitNodes(v.modifiers, G, X.isModifierLike), v.name, void 0, X.visitNodes(v.heritageClauses, B, X.isHeritageClause), X.visitNodes(v.members, B, X.isClassElement)), v))), v)), w(v) ? (x = X.getOriginalNodeId(v), N[x] = O(N[x], v)) : b = O(b, v), X.singleOrMany(b); + case 245: + return H(e, !0); + case 246: + return x = C, C = v = e, v = E.updateForInStatement(v, R(v.initializer), X.visitNode(v.expression, B, X.isExpression), X.visitIterationBody(v.statement, L, S)), C = x, v; + case 247: + return h = C, C = y = e, y = E.updateForOfStatement(y, y.awaitModifier, R(y.initializer), X.visitNode(y.expression, B, X.isExpression), X.visitIterationBody(y.statement, L, S)), C = h, y; + case 243: + return h = e, E.updateDoStatement(h, X.visitIterationBody(h.statement, L, S), X.visitNode(h.expression, B, X.isExpression)); + case 244: + return y = e, E.updateWhileStatement(y, X.visitNode(y.expression, B, X.isExpression), X.visitIterationBody(y.statement, L, S)); + case 253: + return E.updateLabeledStatement(e, e.label, X.visitNode(e.statement, L, X.isStatement, E.liftToBlock)); + case 251: + return m = e, E.updateWithStatement(m, X.visitNode(m.expression, B, X.isExpression), X.visitNode(m.statement, L, X.isStatement, E.liftToBlock)); + case 252: + return m = e, E.updateSwitchStatement(m, X.visitNode(m.expression, B, X.isExpression), X.visitNode(m.caseBlock, L, X.isCaseBlock)); + case 266: + return g = C, C = f = e, f = E.updateCaseBlock(e, X.visitNodes(e.clauses, L, X.isCaseOrDefaultClause)), C = g, f; + case 292: + return g = e, E.updateCaseClause(g, X.visitNode(g.expression, B, X.isExpression), X.visitNodes(g.statements, L, X.isStatement)); + case 293: + case 255: + return X.visitEachChild(e, L, S); + case 295: + return f = C, C = p = e, p = E.updateCatchClause(e, e.variableDeclaration, X.visitNode(e.block, L, X.isBlock)), C = f, p; + case 238: + return p = C, C = d = e, d = X.visitEachChild(e, L, S), C = p, d; + case 355: + return w(d = e) && 240 === d.original.kind && (u = X.getOriginalNodeId(d), _ = X.hasSyntacticModifier(d.original, 1), N[u] = I(N[u], d.original, _)), d; + case 356: + return u = e, _ = X.getOriginalNodeId(u), (l = N[_]) ? (delete N[_], X.append(l, u)) : (_ = X.getOriginalNode(u), X.isModuleOrEnumDeclaration(_) ? X.append(M(l, _), u) : u); + default: + return B(e) + } + var l, u, _, d, p, f, g, m, y, h, v, b, x, D + } + + function H(e, t) { + var r = C; + return C = e, e = E.updateForStatement(e, X.visitNode(e.initializer, t ? R : D, X.isForInitializer), X.visitNode(e.condition, B, X.isExpression), X.visitNode(e.incrementor, D, X.isExpression), X.visitIterationBody(e.statement, t ? L : B, S)), C = r, e + } + + function R(e) { + if (a = e, X.isVariableDeclarationList(a) && F(a)) { + for (var t = void 0, r = 0, n = e.declarations; r < n.length; r++) { + var i = n[r], + t = X.append(t, P(i, !1)); + i.initializer || A(i) + } + return t ? E.inlineExpressions(t) : E.createOmittedExpression() + } + return X.visitNode(e, D, X.isExpression); + var a + } + + function t(e, t) { + if (!(276828160 & e.transformFlags)) return e; + switch (e.kind) { + case 245: + return H(e, !1); + case 241: + return E.updateExpressionStatement(e, X.visitNode(e.expression, D, X.isExpression)); + case 214: + return E.updateParenthesizedExpression(e, X.visitNode(e.expression, t ? D : B, X.isExpression)); + case 353: + return E.updatePartiallyEmittedExpression(e, X.visitNode(e.expression, t ? D : B, X.isExpression)); + case 223: + if (X.isDestructuringAssignment(e)) return u = t, j((_ = e).left) ? X.flattenDestructuringAssignment(_, B, S, 0, !u) : X.visitEachChild(_, B, S); + break; + case 210: + if (X.isImportCall(e)) return u = e, _ = X.getExternalModuleNameLiteral(E, u, y, g, f, p), u = X.visitNode(X.firstOrUndefined(u.arguments), B), u = !_ || u && X.isStringLiteral(u) && u.text === _.text ? u : _, E.createCallExpression(E.createPropertyAccessExpression(d, E.createIdentifier("import")), void 0, u ? [u] : []); + break; + case 221: + case 222: + var r = e, + n = t; + if ((45 === r.operator || 46 === r.operator) && X.isIdentifier(r.operand) && !X.isGeneratedIdentifier(r.operand) && !X.isLocalName(r.operand) && !X.isDeclarationNameOfEnumOrNamespace(r.operand)) { + var i = Q(r.operand); + if (i) { + var a = void 0, + o = X.visitNode(r.operand, B, X.isExpression); + X.isPrefixUnaryExpression(r) ? o = E.updatePrefixUnaryExpression(r, o) : (o = E.updatePostfixUnaryExpression(r, o), n || (a = E.createTempVariable(k), o = E.createAssignment(a, o), X.setTextRange(o, r)), o = E.createComma(o, E.cloneNode(r.operand)), X.setTextRange(o, r)); + for (var s = 0, c = i; s < c.length; s++) { + var l = c[s]; + o = x(l, J(o)) + } + return a && (o = E.createComma(o, a), X.setTextRange(o, r)), o + } + } + return X.visitEachChild(r, B, S) + } + var u, _; + return X.visitEachChild(e, B, S) + } + + function B(e) { + return t(e, !1) + } + + function D(e) { + return t(e, !0) + } + + function j(e) { + return X.isAssignmentExpression(e, !0) ? j(e.left) : X.isSpreadElement(e) ? j(e.expression) : X.isObjectLiteralExpression(e) ? X.some(e.properties, j) : X.isArrayLiteralExpression(e) ? X.some(e.elements, j) : X.isShorthandPropertyAssignment(e) ? j(e.name) : X.isPropertyAssignment(e) ? j(e.initializer) : !!X.isIdentifier(e) && void 0 !== (e = f.getReferencedExportContainer(e)) && 308 === e.kind + } + + function G(e) { + switch (e.kind) { + case 93: + case 88: + return + } + return e + } + + function Q(e) { + var t, r; + return X.isGeneratedIdentifier(e) || (r = f.getReferencedImportDeclaration(e) || f.getReferencedValueDeclaration(e)) && ((e = f.getReferencedExportContainer(e, !1)) && 308 === e.kind && (t = X.append(t, E.getDeclarationName(r))), t = X.addRange(t, u && u.exportedBindings[X.getOriginalNodeId(r)])), t + } + + function J(e) { + return (o = void 0 === o ? [] : o)[X.getNodeId(e)] = !0, e + } + } + }(ts = ts || {}), ! function(g) { + g.transformECMAScriptModule = function(i) { + var n, o, s, c = i.factory, + a = i.getEmitHelperFactory, + l = i.getEmitHost(), + u = i.getEmitResolver(), + _ = i.getCompilerOptions(), + d = g.getEmitScriptTarget(_), + p = i.onEmitNode, + r = i.onSubstituteNode; + return i.onEmitNode = function(e, t, r) { + g.isSourceFile(t) ? ((g.isExternalModule(t) || _.isolatedModules) && _.importHelpers && (n = new g.Map), p(e, t, r), n = void 0) : p(e, t, r) + }, i.onSubstituteNode = function(e, t) { + if (t = r(e, t), n && g.isIdentifier(t) && 4096 & g.getEmitFlags(t)) return function(e) { + var e = g.idText(e), + t = n.get(e); + t || n.set(e, t = c.createUniqueName(e, 48)); + return t + }(t); + return t + }, i.enableEmitNotification(308), i.enableSubstitution(79), g.chainBundle(i, function(e) { + var t; + if (!e.isDeclarationFile && (g.isExternalModule(e) || _.isolatedModules)) return s = void 0, t = function(e) { + var t = g.createExternalHelpersImportDeclarationIfNeeded(c, a(), e, _); { + var r, n; + return t ? (r = [], n = c.copyPrologue(e.statements, r), g.append(r, t), g.addRange(r, g.visitNodes(e.statements, f, g.isStatement, n)), c.updateSourceFile(e, g.setTextRange(c.createNodeArray(r), e.statements))) : g.visitEachChild(e, f, i) + } + }(o = e), o = void 0, s && (t = c.updateSourceFile(t, g.setTextRange(c.createNodeArray(g.insertStatementsAfterCustomPrologue(t.statements.slice(), s)), t.statements))), !g.isExternalModule(e) || g.some(t.statements, g.isExternalModuleIndicator) ? t : c.updateSourceFile(t, g.setTextRange(c.createNodeArray(__spreadArray(__spreadArray([], t.statements, !0), [g.createEmptyExports(c)], !1)), t.statements)); + return e + }); + + function f(e) { + switch (e.kind) { + case 268: + return g.getEmitModuleKind(_) >= g.ModuleKind.Node16 ? (a = e, g.Debug.assert(g.isExternalModuleImportEqualsDeclaration(a), "import= for internal module references should be handled in an earlier transformer."), i = function(e, t) { + g.hasSyntacticModifier(t, 1) && (e = g.append(e, c.createExportDeclaration(void 0, t.isTypeOnly, c.createNamedExports([c.createExportSpecifier(!1, void 0, g.idText(t.name))])))); + return e + }(i = g.append(void 0, g.setOriginalNode(g.setTextRange(c.createVariableStatement(void 0, c.createVariableDeclarationList([c.createVariableDeclaration(c.cloneNode(a.name), void 0, void 0, function(e) { + var e = g.getExternalModuleNameLiteral(c, e, g.Debug.checkDefined(o), l, u, _), + t = []; + e && t.push(e); { + var r, n; + s || (e = c.createUniqueName("_createRequire", 48), r = c.createImportDeclaration(void 0, c.createImportClause(!1, void 0, c.createNamedImports([c.createImportSpecifier(!1, c.createIdentifier("createRequire"), e)])), c.createStringLiteral("module")), n = c.createUniqueName("__require", 48), n = c.createVariableStatement(void 0, c.createVariableDeclarationList([c.createVariableDeclaration(n, void 0, void 0, c.createCallExpression(c.cloneNode(e), void 0, [c.createPropertyAccessExpression(c.createMetaProperty(100, c.createIdentifier("meta")), c.createIdentifier("url"))]))], 2 <= d ? 2 : 0)), s = [r, n]) + } + e = s[1].declarationList.declarations[0].name; + return g.Debug.assertNode(e, g.isIdentifier), c.createCallExpression(c.cloneNode(e), void 0, t) + }(a))], 2 <= d ? 2 : 0)), a), a)), a), g.singleOrMany(i)) : void 0; + case 274: + return (a = e).isExportEquals ? void 0 : a; + case 275: + var t, r, n, i = e; + return void 0 !== _.module && _.module > g.ModuleKind.ES2015 ? i : i.exportClause && g.isNamespaceExport(i.exportClause) && i.moduleSpecifier ? (t = i.exportClause.name, n = c.getGeneratedNameForNode(t), r = c.createImportDeclaration(void 0, c.createImportClause(!1, void 0, c.createNamespaceImport(n)), i.moduleSpecifier, i.assertClause), g.setOriginalNode(r, i.exportClause), n = g.isExportNamespaceAsDefaultDeclaration(i) ? c.createExportDefault(n) : c.createExportDeclaration(void 0, !1, c.createNamedExports([c.createExportSpecifier(!1, n, t)])), g.setOriginalNode(n, i), [r, n]) : i + } + var a, i; + return e + } + } + }(ts = ts || {}), ! function(d) { + d.transformNodeModule = function(t) { + var n, r = t.onSubstituteNode, + i = t.onEmitNode, + a = d.transformECMAScriptModule(t), + o = t.onSubstituteNode, + s = t.onEmitNode, + c = (t.onSubstituteNode = r, t.onEmitNode = i, d.transformModule(t)), + l = t.onSubstituteNode, + u = t.onEmitNode; + return t.onSubstituteNode = function(e, t) { + return d.isSourceFile(t) ? r(e, n = t) : (n ? n.impliedNodeFormat === d.ModuleKind.ESNext ? o : l : r)(e, t) + }, t.onEmitNode = function(e, t, r) { + d.isSourceFile(t) && (n = t); + return (n ? n.impliedNodeFormat !== d.ModuleKind.ESNext ? u : s : i)(e, t, r) + }, t.enableSubstitution(308), t.enableEmitNotification(308), + function(e) { + return (308 === e.kind ? _ : function(e) { + return t.factory.createBundle(d.map(e.sourceFiles, _), e.prepends) + })(e) + }; + + function _(e) { + return e.isDeclarationFile || (e = ((n = e).impliedNodeFormat === d.ModuleKind.ESNext ? a : c)(e), n = void 0, d.Debug.assert(d.isSourceFile(e))), e + } + } + }(ts = ts || {}), ! function(n) { + function e(r) { + return n.isVariableDeclaration(r) || n.isPropertyDeclaration(r) || n.isPropertySignature(r) || n.isPropertyAccessExpression(r) || n.isBindingElement(r) || n.isConstructorDeclaration(r) ? e : n.isSetAccessor(r) || n.isGetAccessor(r) ? function(e) { + e = 175 === r.kind ? n.isStatic(r) ? e.errorModuleName ? n.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1 : e.errorModuleName ? n.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1 : n.isStatic(r) ? e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : n.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1 : e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : n.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1; + return { + diagnosticMessage: e, + errorNode: r.name, + typeName: r.name + } + } : n.isConstructSignatureDeclaration(r) || n.isCallSignatureDeclaration(r) || n.isMethodDeclaration(r) || n.isMethodSignature(r) || n.isFunctionDeclaration(r) || n.isIndexSignatureDeclaration(r) ? function(e) { + var t; + switch (r.kind) { + case 177: + t = e.errorModuleName ? n.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : n.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0; + break; + case 176: + t = e.errorModuleName ? n.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : n.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0; + break; + case 178: + t = e.errorModuleName ? n.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : n.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0; + break; + case 171: + case 170: + t = n.isStatic(r) ? e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : n.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : n.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0 : 260 === r.parent.kind ? e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : n.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : n.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0 : e.errorModuleName ? n.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : n.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0; + break; + case 259: + t = e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : n.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1 : n.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0; + break; + default: + return n.Debug.fail("This is unknown kind for signature: " + r.kind) + } + return { + diagnosticMessage: t, + errorNode: r.name || r + } + } : n.isParameter(r) ? n.isParameterPropertyDeclaration(r, r.parent) && n.hasSyntacticModifier(r.parent, 8) ? e : function(e) { + e = function(e) { + switch (r.parent.kind) { + case 173: + return e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : n.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1; + case 177: + case 182: + return e.errorModuleName ? n.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; + case 176: + return e.errorModuleName ? n.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; + case 178: + return e.errorModuleName ? n.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1; + case 171: + case 170: + return n.isStatic(r.parent) ? e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : n.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1 : 260 === r.parent.parent.kind ? e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : n.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1 : e.errorModuleName ? n.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; + case 259: + case 181: + return e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : n.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1; + case 175: + case 174: + return e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : n.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1; + default: + return n.Debug.fail("Unknown parent for parameter: ".concat(n.Debug.formatSyntaxKind(r.parent.kind))) + } + }(e); + return void 0 !== e ? { + diagnosticMessage: e, + errorNode: r, + typeName: r.name + } : void 0 + } : n.isTypeParameterDeclaration(r) ? function() { + var e; + switch (r.parent.kind) { + case 260: + e = n.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1; + break; + case 261: + e = n.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1; + break; + case 197: + e = n.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1; + break; + case 182: + case 177: + e = n.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; + break; + case 176: + e = n.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; + break; + case 171: + case 170: + e = n.isStatic(r.parent) ? n.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1 : 260 === r.parent.parent.kind ? n.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1 : n.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; + break; + case 181: + case 259: + e = n.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1; + break; + case 262: + e = n.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1; + break; + default: + return n.Debug.fail("This is unknown parent for type parameter: " + r.parent.kind) + } + return { + diagnosticMessage: e, + errorNode: r, + typeName: r.name + } + } : n.isExpressionWithTypeArguments(r) ? function() { + var e; + e = n.isClassDeclaration(r.parent.parent) ? n.isHeritageClause(r.parent) && 117 === r.parent.token ? n.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1 : r.parent.parent.name ? n.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1 : n.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0 : n.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1; + return { + diagnosticMessage: e, + errorNode: r, + typeName: n.getNameOfDeclaration(r.parent.parent) + } + } : n.isImportEqualsDeclaration(r) ? function() { + return { + diagnosticMessage: n.Diagnostics.Import_declaration_0_is_using_private_name_1, + errorNode: r, + typeName: r.name + } + } : n.isTypeAliasDeclaration(r) || n.isJSDocTypeAlias(r) ? function(e) { + return { + diagnosticMessage: e.errorModuleName ? n.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2 : n.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1, + errorNode: n.isJSDocTypeAlias(r) ? n.Debug.checkDefined(r.typeExpression) : r.type, + typeName: n.isJSDocTypeAlias(r) ? n.getNameOfDeclaration(r) : r.name + } + } : n.Debug.assertNever(r, "Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(n.Debug.formatSyntaxKind(r.kind))); + + function e(e) { + e = e; + e = 257 === r.kind || 205 === r.kind ? e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : n.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1 : 169 === r.kind || 208 === r.kind || 168 === r.kind || 166 === r.kind && n.hasSyntacticModifier(r.parent, 8) ? n.isStatic(r) ? e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1 : 260 === r.parent.kind || 166 === r.kind ? e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1 : e.errorModuleName ? n.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1 : void 0; + return void 0 !== e ? { + diagnosticMessage: e, + errorNode: r, + typeName: r.name + } : void 0 + } + } + n.canProduceDiagnostics = function(e) { + return n.isVariableDeclaration(e) || n.isPropertyDeclaration(e) || n.isPropertySignature(e) || n.isBindingElement(e) || n.isSetAccessor(e) || n.isGetAccessor(e) || n.isConstructSignatureDeclaration(e) || n.isCallSignatureDeclaration(e) || n.isMethodDeclaration(e) || n.isMethodSignature(e) || n.isFunctionDeclaration(e) || n.isParameter(e) || n.isTypeParameterDeclaration(e) || n.isExpressionWithTypeArguments(e) || n.isImportEqualsDeclaration(e) || n.isTypeAliasDeclaration(e) || n.isConstructorDeclaration(e) || n.isIndexSignatureDeclaration(e) || n.isPropertyAccessExpression(e) || n.isJSDocTypeAlias(e) + }, n.createGetSymbolAccessibilityDiagnosticForNodeName = function(t) { + return n.isSetAccessor(t) || n.isGetAccessor(t) ? function(e) { + e = function(e) { + return n.isStatic(t) ? e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1 : 260 === t.parent.kind ? e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1 : e.errorModuleName ? n.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1 + }(e); + return void 0 !== e ? { + diagnosticMessage: e, + errorNode: t, + typeName: t.name + } : void 0 + } : n.isMethodSignature(t) || n.isMethodDeclaration(t) ? function(e) { + e = function(e) { + return n.isStatic(t) ? e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : n.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1 : 260 === t.parent.kind ? e.errorModuleName ? 2 === e.accessibility ? n.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : n.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1 : e.errorModuleName ? n.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : n.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1 + }(e); + return void 0 !== e ? { + diagnosticMessage: e, + errorNode: t, + typeName: t.name + } : void 0 + } : e(t) + }, n.createGetSymbolAccessibilityDiagnosticForNode = e + }(ts = ts || {}), ! function(ce) { + function a(e, t) { + t = t.text.substring(e.pos, e.end); + return ce.stringContains(t, "@internal") + } + + function r(e, t) { + var r, n, i = ce.getParseTreeNode(e); + return i && 166 === i.kind ? (r = 0 < (r = i.parent.parameters.indexOf(i)) ? i.parent.parameters[r - 1] : void 0, n = t.text, (r = r ? ce.concatenate(ce.getTrailingCommentRanges(n, ce.skipTrivia(n, r.end + 1, !1, !0)), ce.getLeadingCommentRanges(n, e.pos)) : ce.getTrailingCommentRanges(n, ce.skipTrivia(n, e.pos, !1, !0))) && r.length && a(ce.last(r), t)) : (n = i && ce.getLeadingCommentRangesOfNode(i, t), !!ce.forEach(n, function(e) { + return a(e, t) + })) + } + ce.getDeclarationDiagnostics = function(e, t, r) { + var n = e.getCompilerOptions(); + return ce.transformNodes(t, e, ce.factory, n, r ? [r] : ce.filter(e.getSourceFiles(), ce.isSourceFileNotJson), [i], !1).diagnostics + }, ce.isInternalDeclaration = r; + var le = 531469; + + function i(d) { + function x() { + return ce.Debug.fail("Diagnostic emitted without context") + } + var S, u, T, C, p, _, E, k, f, g, m, y, N = x, + A = !0, + h = !1, + F = !1, + P = !1, + w = !1, + I = d.factory, + v = d.getEmitHost(), + O = { + trackSymbol: function(e, t, r) { + return !(262144 & e.flags) && (t = n(M.isSymbolAccessible(e, t, r, !0)), b(M.getTypeReferenceDirectivesForSymbol(e, r)), t) + }, + reportInaccessibleThisError: function() { + (E || k) && d.addDiagnostic(ce.createDiagnosticForNode(E || k, ce.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary, t(), "this")) + }, + reportInaccessibleUniqueSymbolError: function() { + (E || k) && d.addDiagnostic(ce.createDiagnosticForNode(E || k, ce.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary, t(), "unique symbol")) + }, + reportCyclicStructureError: function() { + (E || k) && d.addDiagnostic(ce.createDiagnosticForNode(E || k, ce.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary, t())) + }, + reportPrivateInBaseOfClassExpression: function(e) { + (E || k) && d.addDiagnostic(ce.createDiagnosticForNode(E || k, ce.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected, e)) + }, + reportLikelyUnsafeImportRequiredError: function(e) { + (E || k) && d.addDiagnostic(ce.createDiagnosticForNode(E || k, ce.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary, t(), e)) + }, + reportTruncationError: function() { + (E || k) && d.addDiagnostic(ce.createDiagnosticForNode(E || k, ce.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed)) + }, + moduleResolverHost: v, + trackReferencedAmbientModule: function(e, t) { + t = M.getTypeReferenceDirectivesForSymbol(t, 67108863); + if (ce.length(t)) return b(t); + t = ce.getSourceFileOfNode(e); + g.set(ce.getOriginalNodeId(t), t) + }, + trackExternalModuleSymbolOfImportTypeNode: function(e) { + h || (_ = _ || []).push(e) + }, + reportNonlocalAugmentation: function(t, e, r) { + var n = null == (e = e.declarations) ? void 0 : e.find(function(e) { + return ce.getSourceFileOfNode(e) === t + }), + e = ce.filter(r.declarations, function(e) { + return ce.getSourceFileOfNode(e) !== t + }); + if (n && e) + for (var i = 0, a = e; i < a.length; i++) { + var o = a[i]; + d.addDiagnostic(ce.addRelatedInfo(ce.createDiagnosticForNode(o, ce.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized), ce.createDiagnosticForNode(n, ce.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file))) + } + }, + reportNonSerializableProperty: function(e) { + (E || k) && d.addDiagnostic(ce.createDiagnosticForNode(E || k, ce.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized, e)) + }, + reportImportTypeNodeResolutionModeOverride: function() { + ce.isNightly() || !E && !k || d.addDiagnostic(ce.createDiagnosticForNode(E || k, ce.Diagnostics.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)) + } + }, + M = d.getEmitResolver(), + D = d.getCompilerOptions(), + e = D.noResolve, + H = D.stripInternal; + return function(a) { + if (308 === a.kind && a.isDeclarationFile) return a; { + var r; + if (309 === a.kind) return h = !0, g = new ce.Map, m = new ce.Map, r = !1, (n = I.createBundle(ce.map(a.sourceFiles, function(e) { + if (!e.isDeclarationFile) { + if (r = r || e.hasNoDefaultLib, S = f = e, T = void 0, p = !1, C = new ce.Map, N = x, w = P = !1, Q(e, g), X(e, m), ce.isExternalOrCommonJsModule(e) || ce.isJsonSourceFile(e)) return A = F = !1, t = ce.isSourceFileJS(e) ? I.createNodeArray(G(e, !0)) : ce.visitNodes(e.statements, V), I.updateSourceFile(e, [I.createModuleDeclaration([I.createModifier(136)], I.createStringLiteral(ce.getResolvedExternalModuleName(d.getEmitHost(), e)), I.createModuleBlock(ce.setTextRange(I.createNodeArray(re(t)), e.statements)))], !0, [], [], !1, []); + A = !0; + var t = ce.isSourceFileJS(e) ? I.createNodeArray(G(e)) : ce.visitNodes(e.statements, V); + return I.updateSourceFile(e, re(t), !0, [], [], !1, []) + } + }), ce.mapDefined(a.prepends, function(e) { + var t; + return 311 === e.kind ? (t = ce.createUnparsedSourceFile(e, "dts", H), r = r || !!t.hasNoDefaultLib, Q(t, g), b(ce.map(t.typeReferenceDirectives, function(e) { + return [e.fileName, e.resolutionMode] + })), X(t, m), t) : e + }))).syntheticFileReferences = [], n.syntheticTypeReferences = s(), n.syntheticLibReferences = o(), n.hasNoDefaultLib = r, t = ce.getDirectoryPath(ce.normalizeSlashes(ce.getOutputPathsFor(a, v, !0).declarationFilePath)), t = l(n.syntheticFileReferences, t), g.forEach(t), n + } + A = !0, f = S = a, N = x, p = F = h = w = P = !1, T = void 0, C = new ce.Map, u = void 0, g = Q(f, new ce.Map), m = X(f, new ce.Map); + var e, t = [], + n = ce.getDirectoryPath(ce.normalizeSlashes(ce.getOutputPathsFor(a, v, !0).declarationFilePath)), + n = l(t, n); + ce.isSourceFileJS(f) ? (e = I.createNodeArray(G(a)), g.forEach(n), y = ce.filter(e, ce.isAnyImportSyntax)) : (i = ce.visitNodes(a.statements, V), e = ce.setTextRange(I.createNodeArray(re(i)), a.statements), g.forEach(n), y = ce.filter(e, ce.isAnyImportSyntax), ce.isExternalModule(a) && (!F || P && !w) && (e = ce.setTextRange(I.createNodeArray(__spreadArray(__spreadArray([], e, !0), [ce.createEmptyExports(I)], !1)), e))); + var i = I.updateSourceFile(a, e, !0, t, s(), a.hasNoDefaultLib, o()); + return i.exportedModulesFromDeclarationEmit = _, i; + + function o() { + return ce.map(ce.arrayFrom(m.keys()), function(e) { + return { + fileName: e, + pos: -1, + end: -1 + } + }) + } + + function s() { + return u ? ce.mapDefined(ce.arrayFrom(u.keys()), c) : [] + } + + function c(e) { + var t = e[0], + e = e[1]; + if (y) + for (var r = 0, n = y; r < n.length; r++) { + var i = n[r]; + if (ce.isImportEqualsDeclaration(i) && ce.isExternalModuleReference(i.moduleReference)) { + var a = i.moduleReference.expression; + if (ce.isStringLiteralLike(a) && a.text === t) return + } else if (ce.isImportDeclaration(i) && ce.isStringLiteral(i.moduleSpecifier) && i.moduleSpecifier.text === t) return + } + return __assign({ + fileName: t, + pos: -1, + end: -1 + }, e ? { + resolutionMode: e + } : void 0) + } + + function l(n, i) { + return function(e) { + if (e.isDeclarationFile) r = e.fileName; + else { + if (h && ce.contains(a.sourceFiles, e)) return; + var t = ce.getOutputPathsFor(e, v, !0), + r = t.declarationFilePath || t.jsFilePath || e.fileName + } + r && (t = ce.moduleSpecifiers.getModuleSpecifier(D, f, ce.toPath(i, v.getCurrentDirectory(), v.getCanonicalFileName), ce.toPath(r, v.getCurrentDirectory(), v.getCanonicalFileName), v), ce.pathIsRelative(t) ? (e = ce.getRelativePathToDirectoryOrUrl(i, r, v.getCurrentDirectory(), v.getCanonicalFileName, !1), ce.startsWith(e, "./") && ce.hasExtension(e) && (e = e.substring(2)), ce.startsWith(e, "node_modules/") || ce.pathContainsNodeModules(e) || n.push({ + pos: -1, + end: -1, + fileName: e + })) : b([ + [t, void 0] + ])) + } + } + }; + + function b(e) { + if (e) { + u = u || new ce.Set; + for (var t = 0, r = e; t < r.length; t++) { + var n = r[t]; + u.add(n) + } + } + } + + function n(e) { + if (0 === e.accessibility) { + if (e && e.aliasesToMakeVisible) + if (T) + for (var t = 0, r = e.aliasesToMakeVisible; t < r.length; t++) { + var n = r[t]; + ce.pushIfUnique(T, n) + } else T = e.aliasesToMakeVisible + } else { + var i = N(e); + if (i) return i.typeName ? d.addDiagnostic(ce.createDiagnosticForNode(e.errorNode || i.errorNode, i.diagnosticMessage, ce.getTextOfNode(i.typeName), e.errorSymbolName, e.errorModuleName)) : d.addDiagnostic(ce.createDiagnosticForNode(e.errorNode || i.errorNode, i.diagnosticMessage, e.errorSymbolName, e.errorModuleName)), !0 + } + return !1 + } + + function t() { + return E ? ce.declarationNameToString(E) : k && ce.getNameOfDeclaration(k) ? ce.declarationNameToString(ce.getNameOfDeclaration(k)) : k && ce.isExportAssignment(k) ? k.isExportEquals ? "export=" : "default" : "(Missing)" + } + + function G(t, e) { + var r = N, + e = (N = function(e) { + return e.errorNode && ce.canProduceDiagnostics(e.errorNode) ? ce.createGetSymbolAccessibilityDiagnosticForNode(e.errorNode)(e) : { + diagnosticMessage: e.errorModuleName ? ce.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit : ce.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit, + errorNode: e.errorNode || t + } + }, M.getDeclarationStatementsForSourceFile(t, le, O, e)); + return N = r, e + } + + function Q(t, r) { + return e || !ce.isUnparsedSource(t) && ce.isSourceFileJS(t) || ce.forEach(t.referencedFiles, function(e) { + e = v.getSourceFileFromReference(t, e); + e && r.set(ce.getOriginalNodeId(e), e) + }), r + } + + function X(e, t) { + return ce.forEach(e.libReferenceDirectives, function(e) { + v.getLibFileFromReference(e) && t.set(ce.toFileNameLowerCase(e.fileName), !0) + }), t + } + + function i(e, t, r) { + p || (n = N, N = ce.createGetSymbolAccessibilityDiagnosticForNode(e)); + var n, i, t = I.updateParameterDeclaration(e, ce.factory.createModifiersFromModifierFlags(s(e, t, i)), e.dotDotDotToken, function t(e) { + return 79 === e.kind ? e : 204 === e.kind ? I.updateArrayBindingPattern(e, ce.visitNodes(e.elements, r)) : I.updateObjectBindingPattern(e, ce.visitNodes(e.elements, r)); + + function r(e) { + return 229 === e.kind ? e : e.propertyName && ce.isIdentifier(e.propertyName) && ce.isIdentifier(e.name) && !e.symbol.isReferenced ? I.updateBindingElement(e, e.dotDotDotToken, void 0, e.propertyName, a(e) ? e.initializer : void 0) : I.updateBindingElement(e, e.dotDotDotToken, e.propertyName, t(e.name), a(e) ? e.initializer : void 0) + } + }(e.name), M.isOptionalParameter(e) ? e.questionToken || I.createToken(57) : void 0, L(e, r || e.type, !0), Y(e)); + return p || (N = n), t + } + + function a(e) { + return function(e) { + switch (e.kind) { + case 169: + case 168: + return !ce.hasEffectiveModifier(e, 8); + case 166: + case 257: + return !0 + } + return !1 + }(e) && M.isLiteralConstDeclaration(ce.getParseTreeNode(e)) + } + + function Y(e) { + if (a(e)) return M.createLiteralConstValue(ce.getParseTreeNode(e), O) + } + + function L(e, t, r) { + var n; + if ((r || !ce.hasEffectiveModifier(e, 8)) && !a(e)) return r = 166 === e.kind && (M.isRequiredInitializedParameter(e) || M.isOptionalUninitializedParameterProperty(e)), t && !r ? ce.visitNode(t, K) : ce.getParseTreeNode(e) ? 175 === e.kind ? I.createKeywordTypeNode(131) : (E = e.name, p || (n = N, N = ce.createGetSymbolAccessibilityDiagnosticForNode(e)), 257 === e.kind || 205 === e.kind ? i(M.createTypeOfDeclaration(e, S, le, O)) : 166 === e.kind || 169 === e.kind || 168 === e.kind ? ce.isPropertySignature(e) || !e.initializer ? i(M.createTypeOfDeclaration(e, S, le, O, r)) : i(M.createTypeOfDeclaration(e, S, le, O, r) || M.createTypeOfExpression(e.initializer, S, le, O)) : i(M.createReturnTypeOfSignatureDeclaration(e, S, le, O))) : t ? ce.visitNode(t, K) : I.createKeywordTypeNode(131); + + function i(e) { + return E = void 0, p || (N = n), e || I.createKeywordTypeNode(131) + } + } + + function Z(e) { + switch ((e = ce.getParseTreeNode(e)).kind) { + case 259: + case 264: + case 261: + case 260: + case 262: + case 263: + return !M.isDeclarationVisible(e); + case 257: + return !$(e); + case 268: + case 269: + case 275: + case 274: + return; + case 172: + return 1 + } + } + + function $(e) { + return !ce.isOmittedExpression(e) && (ce.isBindingPattern(e.name) ? ce.some(e.name.elements, $) : M.isDeclarationVisible(e)) + } + + function R(e, t, r) { + if (!ce.hasEffectiveModifier(e, 8)) { + e = ce.map(t, function(e) { + return i(e, r) + }); + if (e) return I.createNodeArray(e, t.hasTrailingComma) + } + } + + function ee(e, t) { + var r, n; + return t || (n = ce.getThisParameter(e)) && (r = [i(n)]), ce.isSetAccessorDeclaration(e) && (n = void 0, t || (t = ce.getSetAccessorValueParameter(e)) && (n = i(t, void 0, oe(e, M.getAllAccessorDeclarations(e)))), n = n || I.createParameterDeclaration(void 0, void 0, "value"), r = ce.append(r, n)), I.createNodeArray(r || ce.emptyArray) + } + + function B(e, t) { + return ce.hasEffectiveModifier(e, 8) ? void 0 : ce.visitNodes(t, K) + } + + function te(e) { + return ce.isSourceFile(e) || ce.isTypeAliasDeclaration(e) || ce.isModuleDeclaration(e) || ce.isClassDeclaration(e) || ce.isInterfaceDeclaration(e) || ce.isFunctionLike(e) || ce.isIndexSignatureDeclaration(e) || ce.isMappedTypeNode(e) + } + + function j(e, t) { + n(M.isEntityNameVisible(e, t)), b(M.getTypeReferenceDirectivesForEntityName(e)) + } + + function J(e, t) { + return ce.hasJSDocNodes(e) && ce.hasJSDocNodes(t) && (e.jsDoc = t.jsDoc), ce.setCommentRange(e, ce.getCommentRange(t)) + } + + function z(e, t) { + if (t) { + if (F = F || 264 !== e.kind && 202 !== e.kind, ce.isStringLiteralLike(t)) + if (h) { + e = ce.getExternalModuleNameFromDeclaration(d.getEmitHost(), M, e); + if (e) return I.createStringLiteral(e) + } else { + e = M.getSymbolOfExternalModuleSpecifier(t); + e && (_ = _ || []).push(e) + } + return t + } + } + + function U(e) { + if (void 0 !== ce.getResolutionModeOverrideForClause(e)) return ce.isNightly() || d.addDiagnostic(ce.createDiagnosticForNode(e, ce.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)), e + } + + function re(e) { + for (; ce.length(T);) { + var t = T.shift(); + if (!ce.isLateVisibilityPaintedStatement(t)) return ce.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(ce.Debug.formatSyntaxKind(t.kind))); + var r = A, + n = (A = t.parent && ce.isSourceFile(t.parent) && !(ce.isExternalModule(t.parent) && h), o(t)); + A = r, C.set(ce.getOriginalNodeId(t), n) + } + return ce.visitNodes(e, function(e) { + if (ce.isLateVisibilityPaintedStatement(e)) { + var t, r = ce.getOriginalNodeId(e); + if (C.has(r)) return t = C.get(r), C.delete(r), t && ((ce.isArray(t) ? ce.some(t, ce.needsScopeMarker) : ce.needsScopeMarker(t)) && (P = !0), ce.isSourceFile(e.parent)) && (ce.isArray(t) ? ce.some(t, ce.isExternalModuleIndicator) : ce.isExternalModuleIndicator(t)) && (F = !0), t + } + return e + }) + } + + function K(n) { + if (!q(n)) { + if (ce.isDeclaration(n)) { + if (Z(n)) return; + if (ce.hasDynamicName(n) && !M.isLateBound(ce.getParseTreeNode(n))) return + } + if (!(ce.isFunctionLike(n) && M.isImplementationOfOverload(n) || ce.isSemicolonClassElement(n))) { + te(n) && (i = S, S = n); + var i, a = N, + o = ce.canProduceDiagnostics(n), + s = p, + c = (184 === n.kind || 197 === n.kind) && 262 !== n.parent.kind; + if ((ce.isMethodDeclaration(n) || ce.isMethodSignature(n)) && ce.hasEffectiveModifier(n, 8)) return n.symbol && n.symbol.declarations && n.symbol.declarations[0] !== n ? void 0 : _(I.createPropertyDeclaration(W(n), n.name, void 0, void 0, void 0)); + if (o && !p && (N = ce.createGetSymbolAccessibilityDiagnosticForNode(n)), ce.isTypeQueryNode(n) && j(n.exprName, S), c && (p = !0), function(e) { + switch (e.kind) { + case 177: + case 173: + case 171: + case 174: + case 175: + case 169: + case 168: + case 170: + case 176: + case 178: + case 257: + case 165: + case 230: + case 180: + case 191: + case 181: + case 182: + case 202: + return 1 + } + return + }(n)) switch (n.kind) { + case 230: + (ce.isEntityName(n.expression) || ce.isEntityNameExpression(n.expression)) && j(n.expression, S); + var e = ce.visitEachChild(n, K, d); + return _(I.updateExpressionWithTypeArguments(e, e.expression, e.typeArguments)); + case 180: + j(n.typeName, S); + e = ce.visitEachChild(n, K, d); + return _(I.updateTypeReferenceNode(e, e.typeName, e.typeArguments)); + case 177: + return _(I.updateConstructSignature(n, B(n, n.typeParameters), R(n, n.parameters), L(n, n.type))); + case 173: + return _(I.createConstructorDeclaration(W(n), R(n, n.parameters, 0), void 0)); + case 171: + return ce.isPrivateIdentifier(n.name) ? _(void 0) : _(I.createMethodDeclaration(W(n), void 0, n.name, n.questionToken, B(n, n.typeParameters), R(n, n.parameters), L(n, n.type), void 0)); + case 174: + return ce.isPrivateIdentifier(n.name) ? _(void 0) : (e = oe(n, M.getAllAccessorDeclarations(n)), _(I.updateGetAccessorDeclaration(n, W(n), n.name, ee(n, ce.hasEffectiveModifier(n, 8)), L(n, e), void 0))); + case 175: + return ce.isPrivateIdentifier(n.name) ? _(void 0) : _(I.updateSetAccessorDeclaration(n, W(n), n.name, ee(n, ce.hasEffectiveModifier(n, 8)), void 0)); + case 169: + return ce.isPrivateIdentifier(n.name) ? _(void 0) : _(I.updatePropertyDeclaration(n, W(n), n.name, n.questionToken, L(n, n.type), Y(n))); + case 168: + return ce.isPrivateIdentifier(n.name) ? _(void 0) : _(I.updatePropertySignature(n, W(n), n.name, n.questionToken, L(n, n.type))); + case 170: + return ce.isPrivateIdentifier(n.name) ? _(void 0) : _(I.updateMethodSignature(n, W(n), n.name, n.questionToken, B(n, n.typeParameters), R(n, n.parameters), L(n, n.type))); + case 176: + return _(I.updateCallSignature(n, B(n, n.typeParameters), R(n, n.parameters), L(n, n.type))); + case 178: + return _(I.updateIndexSignature(n, W(n), R(n, n.parameters), ce.visitNode(n.type, K) || I.createKeywordTypeNode(131))); + case 257: + return ce.isBindingPattern(n.name) ? ie(n.name) : (p = c = !0, _(I.updateVariableDeclaration(n, n.name, void 0, L(n, n.type), Y(n)))); + case 165: + return 171 === (e = n).parent.kind && ce.hasEffectiveModifier(e.parent, 8) && (n.default || n.constraint) ? _(I.updateTypeParameterDeclaration(n, n.modifiers, n.name, void 0, void 0)) : _(ce.visitEachChild(n, K, d)); + case 191: + var t = ce.visitNode(n.checkType, K), + r = ce.visitNode(n.extendsType, K), + l = S, + u = (S = n.trueType, ce.visitNode(n.trueType, K)), + l = (S = l, ce.visitNode(n.falseType, K)); + return _(I.updateConditionalTypeNode(n, t, r, u, l)); + case 181: + return _(I.updateFunctionTypeNode(n, ce.visitNodes(n.typeParameters, K), R(n, n.parameters), ce.visitNode(n.type, K))); + case 182: + return _(I.updateConstructorTypeNode(n, W(n), ce.visitNodes(n.typeParameters, K), R(n, n.parameters), ce.visitNode(n.type, K))); + case 202: + return ce.isLiteralImportTypeNode(n) ? _(I.updateImportTypeNode(n, I.updateLiteralTypeNode(n.argument, z(n, n.argument.literal)), n.assertions, n.qualifier, ce.visitNodes(n.typeArguments, K, ce.isTypeNode), n.isTypeOf)) : _(n); + default: + ce.Debug.assertNever(n, "Attempted to process unhandled node kind: ".concat(ce.Debug.formatSyntaxKind(n.kind))) + } + return ce.isTupleTypeNode(n) && ce.getLineAndCharacterOfPosition(f, n.pos).line === ce.getLineAndCharacterOfPosition(f, n.end).line && ce.setEmitFlags(n, 1), _(ce.visitEachChild(n, K, d)) + } + } + + function _(e) { + var t, r; + return e && o && ce.hasDynamicName(n) && (t = n, p || (r = N, N = ce.createGetSymbolAccessibilityDiagnosticForNodeName(t)), E = t.name, ce.Debug.assert(M.isLateBound(ce.getParseTreeNode(t))), j(t.name.expression, S), p || (N = r), E = void 0), te(n) && (S = i), o && !p && (N = a), c && (p = s), e === n ? e : e && ce.setOriginalNode(J(e, n), n) + } + } + + function V(e) { + if (function(e) { + switch (e.kind) { + case 259: + case 264: + case 268: + case 261: + case 260: + case 262: + case 263: + case 240: + case 269: + case 275: + case 274: + return 1 + } + return + }(e) && !q(e)) { + switch (e.kind) { + case 275: + return ce.isSourceFile(e.parent) && (F = !0), w = !0, I.updateExportDeclaration(e, e.modifiers, e.isTypeOnly, e.exportClause, z(e, e.moduleSpecifier), ce.getResolutionModeOverrideForClause(e.assertClause) ? e.assertClause : void 0); + case 274: + var t, r; + return ce.isSourceFile(e.parent) && (F = !0), w = !0, 79 === e.expression.kind ? e : (t = I.createUniqueName("_default", 16), N = function() { + return { + diagnosticMessage: ce.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0, + errorNode: e + } + }, k = e, r = I.createVariableDeclaration(t, void 0, M.createTypeOfExpression(e.expression, e, le, O), void 0), k = void 0, J(r = I.createVariableStatement(A ? [I.createModifier(136)] : [], I.createVariableDeclarationList([r], 2)), e), ce.removeAllComments(e), [r, I.updateExportAssignment(e, e.modifiers, t)]) + } + var n = o(e); + return C.set(ce.getOriginalNodeId(e), n), e + } + } + + function ne(e) { + var t; + return ce.isImportEqualsDeclaration(e) || ce.hasEffectiveModifier(e, 1024) || !ce.canHaveModifiers(e) ? e : (t = I.createModifiersFromModifierFlags(258046 & ce.getEffectiveModifierFlags(e)), I.updateModifiers(e, t)) + } + + function o(t) { + if (T) + for (; ce.orderedRemoveItem(T, t);); + if (!q(t)) { + switch (t.kind) { + case 268: + var e = t; + return M.isDeclarationVisible(e) ? 280 === e.moduleReference.kind ? (r = ce.getExternalModuleImportEqualsDeclarationExpression(e), I.updateImportEqualsDeclaration(e, e.modifiers, e.isTypeOnly, e.name, I.updateExternalModuleReference(e.moduleReference, z(e, r)))) : (r = N, N = ce.createGetSymbolAccessibilityDiagnosticForNode(e), j(e.moduleReference, S), N = r, e) : void 0; + case 269: + return (r = t).importClause ? (e = r.importClause && r.importClause.name && M.isDeclarationVisible(r.importClause) ? r.importClause.name : void 0, r.importClause.namedBindings ? 271 === r.importClause.namedBindings.kind ? (n = M.isDeclarationVisible(r.importClause.namedBindings) ? r.importClause.namedBindings : void 0, e || n ? I.updateImportDeclaration(r, r.modifiers, I.updateImportClause(r.importClause, r.importClause.isTypeOnly, e, n), z(r, r.moduleSpecifier), U(r.assertClause)) : void 0) : (n = ce.mapDefined(r.importClause.namedBindings.elements, function(e) { + return M.isDeclarationVisible(e) ? e : void 0 + })) && n.length || e ? I.updateImportDeclaration(r, r.modifiers, I.updateImportClause(r.importClause, r.importClause.isTypeOnly, e, n && n.length ? I.updateNamedImports(r.importClause.namedBindings, n) : void 0), z(r, r.moduleSpecifier), U(r.assertClause)) : M.isImportRequiredByAugmentation(r) ? I.updateImportDeclaration(r, r.modifiers, void 0, z(r, r.moduleSpecifier), U(r.assertClause)) : void 0 : e && I.updateImportDeclaration(r, r.modifiers, I.updateImportClause(r.importClause, r.importClause.isTypeOnly, e, void 0), z(r, r.moduleSpecifier), U(r.assertClause))) : I.updateImportDeclaration(r, r.modifiers, r.importClause, z(r, r.moduleSpecifier), U(r.assertClause)) + } + var r, n; + if (!(ce.isDeclaration(t) && Z(t) || ce.isFunctionLike(t) && M.isImplementationOfOverload(t))) { + te(t) && (i = S, S = t); + var i, a, o, s, c = ce.canProduceDiagnostics(t), + l = N, + u = (c && (N = ce.createGetSymbolAccessibilityDiagnosticForNode(t)), A); + switch (t.kind) { + case 262: + A = !1; + var _ = D(I.updateTypeAliasDeclaration(t, W(t), t.name, ce.visitNodes(t.typeParameters, K, ce.isTypeParameterDeclaration), ce.visitNode(t.type, K, ce.isTypeNode))); + return A = u, _; + case 261: + return D(I.updateInterfaceDeclaration(t, W(t), t.name, B(t, t.typeParameters), se(t.heritageClauses), ce.visitNodes(t.members, K))); + case 259: + return (_ = D(I.updateFunctionDeclaration(t, W(t), void 0, t.name, B(t, t.typeParameters), R(t, t.parameters), L(t, t.type), void 0))) && M.isExpandoFunctionDeclaration(t) && ((d = t).body || !(s = null == (s = d.symbol.declarations) ? void 0 : s.filter(function(e) { + return ce.isFunctionDeclaration(e) && !e.body + })) || s.indexOf(d) === s.length - 1) ? (d = M.getPropertiesOfContainerFunction(t), a = ce.parseNodeFactory.createModuleDeclaration(void 0, _.name || I.createIdentifier("_default"), I.createModuleBlock([]), 16), ce.setParent(a, S), a.locals = ce.createSymbolTable(d), a.symbol = d[0].parent, o = [], s = ce.mapDefined(d, function(e) { + var t, r, n; + if (e.valueDeclaration && ce.isPropertyAccessExpression(e.valueDeclaration)) return N = ce.createGetSymbolAccessibilityDiagnosticForNode(e.valueDeclaration), t = M.createTypeOfDeclaration(e.valueDeclaration, a, le, O), N = l, n = ce.unescapeLeadingUnderscores(e.escapedName), e = (r = ce.isStringANonContextualKeyword(n)) ? I.getGeneratedNameForNode(e.valueDeclaration) : I.createIdentifier(n), r && o.push([e, n]), n = I.createVariableDeclaration(e, void 0, t, void 0), I.createVariableStatement(r ? void 0 : [I.createToken(93)], I.createVariableDeclarationList([n])) + }), o.length ? s.push(I.createExportDeclaration(void 0, !1, I.createNamedExports(ce.map(o, function(e) { + var t = e[0], + e = e[1]; + return I.createExportSpecifier(!1, t, e) + })))) : s = ce.mapDefined(s, function(e) { + return I.updateModifiers(e, 0) + }), d = I.createModuleDeclaration(W(t), t.name, I.createModuleBlock(s), 16), ce.hasEffectiveModifier(_, 1024) ? (f = I.createModifiersFromModifierFlags(-1026 & ce.getEffectiveModifierFlags(_) | 2), p = I.updateFunctionDeclaration(_, f, void 0, _.name, _.typeParameters, _.parameters, _.type, void 0), m = I.updateModuleDeclaration(d, f, d.name, d.body), g = I.createExportAssignment(void 0, !1, d.name), ce.isSourceFile(t.parent) && (F = !0), w = !0, [p, m, g]) : [_, d]) : _; + case 264: + A = !1; + var d, p = t.body; + return p && 265 === p.kind ? (m = P, g = w, P = w = !1, d = re(ce.visitNodes(p.statements, V)), 16777216 & t.flags && (P = !1), ce.isGlobalScopeAugmentation(t) || (_ = d, ce.some(_, ae)) || w || (d = P ? I.createNodeArray(__spreadArray(__spreadArray([], d, !0), [ce.createEmptyExports(I)], !1)) : ce.visitNodes(d, ne)), v = I.updateModuleBlock(p, d), A = u, P = m, w = g, b = W(t), D(I.updateModuleDeclaration(t, b, ce.isExternalModuleAugmentation(t) ? z(t, t.name) : t.name, v))) : (A = u, b = W(t), A = !1, ce.visitNode(p, V), m = ce.getOriginalNodeId(p), v = C.get(m), C.delete(m), D(I.updateModuleDeclaration(t, b, t.name, v))); + case 260: + E = t.name, k = t; + var f = I.createNodeArray(W(t)), + g = B(t, t.typeParameters), + p = ce.getFirstConstructorWithBody(t), + m = void 0; + p && (b = N, m = ce.compact(ce.flatMap(p.parameters, function(o) { + if (ce.hasSyntacticModifier(o, 16476) && !q(o)) return N = ce.createGetSymbolAccessibilityDiagnosticForNode(o), 79 === o.name.kind ? J(I.createPropertyDeclaration(W(o), o.name, o.questionToken, L(o, o.type), Y(o)), o) : function e(t) { + var r; + for (var n = 0, i = t.elements; n < i.length; n++) { + var a = i[n]; + ce.isOmittedExpression(a) || (r = (r = ce.isBindingPattern(a.name) ? ce.concatenate(r, e(a.name)) : r) || []).push(I.createPropertyDeclaration(W(o), a.name, void 0, L(a, void 0), void 0)) + } + return r + }(o.name) + })), N = b); + var y, h, v = ce.some(t.members, function(e) { + return !!e.name && ce.isPrivateIdentifier(e.name) + }) ? [I.createPropertyDeclaration(void 0, I.createPrivateIdentifier("#private"), void 0, void 0, void 0)] : void 0, + p = ce.concatenate(ce.concatenate(v, m), ce.visitNodes(t.members, K)), + b = I.createNodeArray(p), + x = ce.getEffectiveBaseTypeNode(t); + return x && !ce.isEntityNameExpression(x.expression) && 104 !== x.expression.kind ? (v = t.name ? ce.unescapeLeadingUnderscores(t.name.escapedText) : "default", y = I.createUniqueName("".concat(v, "_base"), 16), N = function() { + return { + diagnosticMessage: ce.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1, + errorNode: x, + typeName: t.name + } + }, m = I.createVariableDeclaration(y, void 0, M.createTypeOfExpression(x.expression, t, le, O), void 0), p = I.createVariableStatement(A ? [I.createModifier(136)] : [], I.createVariableDeclarationList([m], 2)), h = I.createNodeArray(ce.map(t.heritageClauses, function(e) { + var t, r; + return 94 === e.token ? (t = N, N = ce.createGetSymbolAccessibilityDiagnosticForNode(e.types[0]), r = I.updateHeritageClause(e, ce.map(e.types, function(e) { + return I.updateExpressionWithTypeArguments(e, y, ce.visitNodes(e.typeArguments, K)) + })), N = t, r) : I.updateHeritageClause(e, ce.visitNodes(I.createNodeArray(ce.filter(e.types, function(e) { + return ce.isEntityNameExpression(e.expression) || 104 === e.expression.kind + })), K)) + })), [p, D(I.updateClassDeclaration(t, f, t.name, g, h, b))]) : (h = se(t.heritageClauses), D(I.updateClassDeclaration(t, f, t.name, g, h, b))); + case 240: + return D(function(e) { + if (ce.forEach(e.declarationList.declarations, $)) { + var t = ce.visitNodes(e.declarationList.declarations, K); + if (ce.length(t)) return I.updateVariableStatement(e, I.createNodeArray(W(e)), I.updateVariableDeclarationList(e.declarationList, t)) + } + }(t)); + case 263: + return D(I.updateEnumDeclaration(t, I.createNodeArray(W(t)), t.name, I.createNodeArray(ce.mapDefined(t.members, function(e) { + var t; + if (!q(e)) return t = M.getConstantValue(e), J(I.updateEnumMember(e, e.name, void 0 !== t ? "string" == typeof t ? I.createStringLiteral(t) : I.createNumericLiteral(t) : void 0), e) + })))) + } + return ce.Debug.assertNever(t, "Unhandled top-level node in declaration emit: ".concat(ce.Debug.formatSyntaxKind(t.kind))) + } + } + + function D(e) { + return te(t) && (S = i), c && (N = l), 264 === t.kind && (A = u), e === t ? e : (E = k = void 0, e && ce.setOriginalNode(J(e, t), t)) + } + } + + function ie(e) { + return ce.flatten(ce.mapDefined(e.elements, function(e) { + if (229 !== e.kind && e.name && $(e)) return ce.isBindingPattern(e.name) ? ie(e.name) : I.createVariableDeclaration(e.name, void 0, L(e, void 0), void 0) + })) + } + + function q(e) { + return H && e && r(e, f) + } + + function ae(e) { + return ce.isExportAssignment(e) || ce.isExportDeclaration(e) + } + + function W(e) { + var t = ce.getEffectiveModifierFlags(e), + r = function(e) { + var t = 241147, + r = A && 261 !== e.kind ? 2 : 0, + n = 308 === e.parent.kind; + (!n || h && n && ce.isExternalModule(e.parent)) && (t ^= 2, r = 0); + return s(e, t, r) + }(e); + return t === r ? ce.visitArray(e.modifiers, function(e) { + return ce.tryCast(e, ce.isModifier) + }, ce.isModifier) : I.createModifiersFromModifierFlags(r) + } + + function oe(e, t) { + var r = c(e); + return r || e === t.firstAccessor || (r = c(t.firstAccessor), N = ce.createGetSymbolAccessibilityDiagnosticForNode(t.firstAccessor)), !r && t.secondAccessor && e !== t.secondAccessor && (r = c(t.secondAccessor), N = ce.createGetSymbolAccessibilityDiagnosticForNode(t.secondAccessor)), r + } + + function se(e) { + return I.createNodeArray(ce.filter(ce.map(e, function(t) { + return I.updateHeritageClause(t, ce.visitNodes(I.createNodeArray(ce.filter(t.types, function(e) { + return ce.isEntityNameExpression(e.expression) || 94 === t.token && 104 === e.expression.kind + })), K)) + }), function(e) { + return e.types && !!e.types.length + })) + } + } + + function s(e, t, r) { + void 0 === t && (t = 258043), void 0 === r && (r = 0); + e = ce.getEffectiveModifierFlags(e) & t | r; + return 1024 & e && !(1 & e) && (e ^= 1), 1024 & e && 2 & e && (e ^= 2), e + } + + function c(e) { + if (e) return 174 === e.kind ? e.type : 0 < e.parameters.length ? e.parameters[0].type : void 0 + } + ce.transformDeclarations = i + }(ts = ts || {}), ! function(B) { + function t(n, i) { + return function(e) { + var t, r = n(e); + return "function" == typeof r ? i(e, r) : (t = r, function(e) { + return B.isBundle(e) ? t.transformBundle(e) : t.transformSourceFile(e) + }) + } + } + + function a(e) { + return t(e, B.chainBundle) + } + + function n(e) { + return t(e, function(e, t) { + return t + }) + } + + function j(e, t) { + return t + } + + function J(e, t, r) { + r(e, t) + } + B.noTransformers = { + scriptTransformers: B.emptyArray, + declarationTransformers: B.emptyArray + }, B.getTransformers = function(e, t, r) { + return { + scriptTransformers: function(e, t, r) { + if (r) return B.emptyArray; + var r = B.getEmitScriptTarget(e), + n = B.getEmitModuleKind(e), + i = []; + B.addRange(i, t && B.map(t.before, a)), i.push(B.transformTypeScript), i.push(B.transformLegacyDecorators), i.push(B.transformClassFields), B.getJSXTransformEnabled(e) && i.push(B.transformJsx); + r < 99 && i.push(B.transformESNext); + r < 8 && i.push(B.transformES2021); + r < 7 && i.push(B.transformES2020); + r < 6 && i.push(B.transformES2019); + r < 5 && i.push(B.transformES2018); + r < 4 && i.push(B.transformES2017); + r < 3 && i.push(B.transformES2016); + r < 2 && (i.push(B.transformES2015), i.push(B.transformGenerators)); + i.push(function(e) { + switch (e) { + case B.ModuleKind.ESNext: + case B.ModuleKind.ES2022: + case B.ModuleKind.ES2020: + case B.ModuleKind.ES2015: + return B.transformECMAScriptModule; + case B.ModuleKind.System: + return B.transformSystemModule; + case B.ModuleKind.Node16: + case B.ModuleKind.NodeNext: + return B.transformNodeModule; + default: + return B.transformModule + } + }(n)), r < 1 && i.push(B.transformES5); + return B.addRange(i, t && B.map(t.after, a)), i + }(e, t, r), + declarationTransformers: (e = t, (r = []).push(B.transformDeclarations), B.addRange(r, e && B.map(e.afterDeclarations, n)), r) + } + }, B.noEmitSubstitution = j, B.noEmitNotification = J, B.transformNodes = function(e, t, r, n, i, a, o) { + for (var s, c, l, u, _, d = new Array(358), p = 0, f = [], g = [], m = [], y = [], h = 0, v = !1, b = [], x = 0, D = j, S = J, T = 0, C = [], E = { + factory: r, + getCompilerOptions: function() { + return n + }, + getEmitResolver: function() { + return e + }, + getEmitHost: function() { + return t + }, + getEmitHelperFactory: B.memoize(function() { + return B.createEmitHelperFactory(E) + }), + startLexicalEnvironment: function() { + B.Debug.assert(0 < T, "Cannot modify the lexical environment during initialization."), B.Debug.assert(T < 2, "Cannot modify the lexical environment after transformation has completed."), B.Debug.assert(!v, "Lexical environment is suspended."), f[h] = s, g[h] = c, m[h] = l, y[h] = p, h++, s = void 0, c = void 0, l = void 0, p = 0 + }, + suspendLexicalEnvironment: function() { + B.Debug.assert(0 < T, "Cannot modify the lexical environment during initialization."), B.Debug.assert(T < 2, "Cannot modify the lexical environment after transformation has completed."), B.Debug.assert(!v, "Lexical environment is already suspended."), v = !0 + }, + resumeLexicalEnvironment: function() { + B.Debug.assert(0 < T, "Cannot modify the lexical environment during initialization."), B.Debug.assert(T < 2, "Cannot modify the lexical environment after transformation has completed."), B.Debug.assert(v, "Lexical environment is not suspended."), v = !1 + }, + endLexicalEnvironment: function() { + var e; { + var t; + B.Debug.assert(0 < T, "Cannot modify the lexical environment during initialization."), B.Debug.assert(T < 2, "Cannot modify the lexical environment after transformation has completed."), B.Debug.assert(!v, "Lexical environment is suspended."), (s || c || l) && (c && (e = __spreadArray([], c, !0)), s && (t = r.createVariableStatement(void 0, r.createVariableDeclarationList(s)), B.setEmitFlags(t, 1048576), e ? e.push(t) : e = [t]), l) && (e = __spreadArray(e ? __spreadArray([], e, !0) : [], l, !0)) + } + s = f[--h], c = g[h], l = m[h], p = y[h], 0 === h && (f = [], g = [], m = [], y = []); + return e + }, + setLexicalEnvironmentFlags: function(e, t) { + p = t ? p | e : p & ~e + }, + getLexicalEnvironmentFlags: function() { + return p + }, + hoistVariableDeclaration: function(e) { + B.Debug.assert(0 < T, "Cannot modify the lexical environment during initialization."), B.Debug.assert(T < 2, "Cannot modify the lexical environment after transformation has completed."); + e = B.setEmitFlags(r.createVariableDeclaration(e), 64); + s ? s.push(e) : s = [e]; + 1 & p && (p |= 2) + }, + hoistFunctionDeclaration: function(e) { + B.Debug.assert(0 < T, "Cannot modify the lexical environment during initialization."), B.Debug.assert(T < 2, "Cannot modify the lexical environment after transformation has completed."), B.setEmitFlags(e, 1048576), c ? c.push(e) : c = [e] + }, + addInitializationStatement: function(e) { + B.Debug.assert(0 < T, "Cannot modify the lexical environment during initialization."), B.Debug.assert(T < 2, "Cannot modify the lexical environment after transformation has completed."), B.setEmitFlags(e, 1048576), l ? l.push(e) : l = [e] + }, + startBlockScope: function() { + B.Debug.assert(0 < T, "Cannot start a block scope during initialization."), B.Debug.assert(T < 2, "Cannot start a block scope after transformation has completed."), b[x] = u, x++, u = void 0 + }, + endBlockScope: function() { + B.Debug.assert(0 < T, "Cannot end a block scope during initialization."), B.Debug.assert(T < 2, "Cannot end a block scope after transformation has completed."); + var e = B.some(u) ? [r.createVariableStatement(void 0, r.createVariableDeclarationList(u.map(function(e) { + return r.createVariableDeclaration(e) + }), 1))] : void 0; + u = b[--x], 0 === x && (b = []); + return e + }, + addBlockScopedVariable: function(e) { + B.Debug.assert(0 < x, "Cannot add a block scoped variable outside of an iteration body."), (u = u || []).push(e) + }, + requestEmitHelper: function e(t) { + B.Debug.assert(0 < T, "Cannot modify the transformation context during initialization."); + B.Debug.assert(T < 2, "Cannot modify the transformation context after transformation has completed."); + B.Debug.assert(!t.scoped, "Cannot request a scoped emit helper."); + if (t.dependencies) + for (var r = 0, n = t.dependencies; r < n.length; r++) { + var i = n[r]; + e(i) + } + _ = B.append(_, t) + }, + readEmitHelpers: function() { + B.Debug.assert(0 < T, "Cannot modify the transformation context during initialization."), B.Debug.assert(T < 2, "Cannot modify the transformation context after transformation has completed."); + var e = _; + return _ = void 0, e + }, + enableSubstitution: function(e) { + B.Debug.assert(T < 2, "Cannot modify the transformation context after transformation has completed."), d[e] |= 1 + }, + enableEmitNotification: function(e) { + B.Debug.assert(T < 2, "Cannot modify the transformation context after transformation has completed."), d[e] |= 2 + }, + isSubstitutionEnabled: O, + isEmitNotificationEnabled: M, + get onSubstituteNode() { + return D + }, + set onSubstituteNode(e) { + B.Debug.assert(T < 1, "Cannot modify transformation hooks after initialization has completed."), B.Debug.assert(void 0 !== e, "Value must not be 'undefined'"), D = e + }, + get onEmitNode() { + return S + }, + set onEmitNode(e) { + B.Debug.assert(T < 1, "Cannot modify transformation hooks after initialization has completed."), B.Debug.assert(void 0 !== e, "Value must not be 'undefined'"), S = e + }, + addDiagnostic: function(e) { + C.push(e) + } + }, k = 0, N = i; k < N.length; k++) { + var A = N[k]; + B.disposeEmitNodes(B.getSourceFileOfNode(B.getParseTreeNode(A))) + } + B.performance.mark("beforeTransform"); + for (var L = a.map(function(e) { + return e(E); + }), F = function(e) { + for (var t = 0, r = L; t < r.length; t++) e = (0, r[t])(e); + return e + }, T = 1, P = [], w = 0, I = i; w < I.length; w++) { + A = I[w]; + null !== B.tracing && void 0 !== B.tracing && B.tracing.push("emit", "transformNodes", 308 === A.kind ? { + path: A.path + } : { + kind: A.kind, + pos: A.pos, + end: A.end + }), P.push((o ? F : R)(A)), null !== B.tracing && void 0 !== B.tracing && B.tracing.pop() + } + return T = 2, B.performance.mark("afterTransform"), B.performance.measure("transformTime", "beforeTransform", "afterTransform"), { + transformed: P, + substituteNode: function(e, t) { + return B.Debug.assert(T < 3, "Cannot substitute a node after the result is disposed."), t && O(t) && D(e, t) || t + }, + emitNodeWithNotification: function(e, t, r) { + B.Debug.assert(T < 3, "Cannot invoke TransformationResult callbacks after the result is disposed."), t && (M(t) ? S(e, t, r) : r(e, t)) + }, + isEmitNotificationEnabled: M, + dispose: function() { + if (T < 3) { + for (var e = 0, t = i; e < t.length; e++) { + var r = t[e]; + B.disposeEmitNodes(B.getSourceFileOfNode(B.getParseTreeNode(r))) + } + _ = S = D = g = c = f = s = void 0, T = 3 + } + }, + diagnostics: C + }; + + function R(e) { + return !e || B.isSourceFile(e) && e.isDeclarationFile ? e : F(e) + } + + function O(e) { + return 0 != (1 & d[e.kind]) && 0 == (4 & B.getEmitFlags(e)) + } + + function M(e) { + return 0 != (2 & d[e.kind]) || 0 != (2 & B.getEmitFlags(e)) + } + }, B.nullTransformationContext = { + factory: B.factory, + getCompilerOptions: function() { + return {} + }, + getEmitResolver: B.notImplemented, + getEmitHost: B.notImplemented, + getEmitHelperFactory: B.notImplemented, + startLexicalEnvironment: B.noop, + resumeLexicalEnvironment: B.noop, + suspendLexicalEnvironment: B.noop, + endLexicalEnvironment: B.returnUndefined, + setLexicalEnvironmentFlags: B.noop, + getLexicalEnvironmentFlags: function() { + return 0 + }, + hoistVariableDeclaration: B.noop, + hoistFunctionDeclaration: B.noop, + addInitializationStatement: B.noop, + startBlockScope: B.noop, + endBlockScope: B.returnUndefined, + addBlockScopedVariable: B.noop, + requestEmitHelper: B.noop, + readEmitHelpers: B.notImplemented, + enableSubstitution: B.noop, + enableEmitNotification: B.noop, + isSubstitutionEnabled: B.notImplemented, + isEmitNotificationEnabled: B.notImplemented, + onSubstituteNode: j, + onEmitNode: J, + addDiagnostic: B.noop + } + }(ts = ts || {}), ! function(un) { + (e = [])[1024] = ["{", "}"], e[2048] = ["(", ")"], e[4096] = ["<", ">"], e[8192] = ["[", "]"]; + var e, _n = e; + + function n(e, t, r, n, i, a) { + void 0 === n && (n = !1); + var r = un.isArray(r) ? r : un.getSourceFilesToEmit(e, r, n), + o = e.getCompilerOptions(); + if (un.outFile(o)) { + var s = e.getPrependNodes(); + if (r.length || s.length) { + s = un.factory.createBundle(r, s); + if (u = t(p(s, e, n), s)) return u + } + } else { + if (!i) + for (var c = 0, l = r; c < l.length; c++) { + var u, _ = l[c]; + if (u = t(p(_, e, n), _)) return u + } + if (a) { + s = d(o); + if (s) return t({ + buildInfoPath: s + }, void 0) + } + } + } + + function d(e) { + var t = e.configFilePath; + if (un.isIncrementalCompilation(e)) { + if (e.tsBuildInfoFile) return e.tsBuildInfoFile; + var r = un.outFile(e); + if (r) n = un.removeFileExtension(r); + else { + if (!t) return; + var r = un.removeFileExtension(t), + n = e.outDir ? e.rootDir ? un.resolvePath(e.outDir, un.getRelativePathFromDirectory(e.rootDir, r, !0)) : un.combinePaths(e.outDir, un.getBaseFileName(r)) : r + } + return n + ".tsbuildinfo" + } + } + + function k(e, t) { + var r = un.outFile(e), + n = e.emitDeclarationOnly ? void 0 : r, + i = n && s(n, e), + t = t || un.getEmitDeclarations(e) ? un.removeFileExtension(r) + ".d.ts" : void 0; + return { + jsFilePath: n, + sourceMapFilePath: i, + declarationFilePath: t, + declarationMapPath: t && un.getAreDeclarationMapsEnabled(e) ? t + ".map" : void 0, + buildInfoPath: d(e) + } + } + + function p(e, t, r) { + var n, i, a, o = t.getCompilerOptions(); + return 309 === e.kind ? k(o, r) : (a = un.getOwnEmitOutputFilePath(e.fileName, t, c(e.fileName, o)), i = (n = un.isJsonSourceFile(e)) && 0 === un.comparePaths(e.fileName, a, t.getCurrentDirectory(), !t.useCaseSensitiveFileNames()), { + jsFilePath: i = o.emitDeclarationOnly || i ? void 0 : a, + sourceMapFilePath: !i || un.isJsonSourceFile(e) ? void 0 : s(i, o), + declarationFilePath: a = r || un.getEmitDeclarations(o) && !n ? un.getDeclarationEmitOutputFilePath(e.fileName, t) : void 0, + declarationMapPath: a && un.getAreDeclarationMapsEnabled(o) ? a + ".map" : void 0, + buildInfoPath: void 0 + }) + } + + function s(e, t) { + return t.sourceMap && !t.inlineSourceMap ? e + ".map" : void 0 + } + + function c(e, t) { + return un.fileExtensionIs(e, ".json") ? ".json" : 1 === t.jsx && un.fileExtensionIsOneOf(e, [".jsx", ".tsx"]) ? ".jsx" : un.fileExtensionIsOneOf(e, [".mts", ".mjs"]) ? ".mjs" : un.fileExtensionIsOneOf(e, [".cts", ".cjs"]) ? ".cjs" : ".js" + } + + function a(e, t, r, n, i) { + return n ? un.resolvePath(n, un.getRelativePathFromDirectory(i ? i() : m(t, r), e, r)) : e + } + + function l(e, t, r, n) { + return un.changeExtension(a(e, t, r, t.options.declarationDir || t.options.outDir, n), un.getDeclarationEmitExtensionForPath(e)) + } + + function u(e, t, r, n) { + var i; + if (!t.options.emitDeclarationOnly) return i = un.fileExtensionIs(e, ".json"), n = un.changeExtension(a(e, t, r, t.options.outDir, n), c(e, t.options)), i && 0 === un.comparePaths(e, n, un.Debug.checkDefined(t.options.configFilePath), r) ? void 0 : n + } + + function _() { + var t; + return { + addOutput: function(e) { + e && (t = t || []).push(e) + }, + getOutputs: function() { + return t || un.emptyArray + } + } + } + + function f(e, t) { + var e = k(e.options, !1), + r = e.jsFilePath, + n = e.sourceMapFilePath, + i = e.declarationFilePath, + a = e.declarationMapPath, + e = e.buildInfoPath; + t(r), t(n), t(i), t(a), t(e) + } + + function g(e, t, r, n, i) { + var a; + un.isDeclarationFileName(t) || (n(a = u(t, e, r, i)), un.fileExtensionIs(t, ".json")) || (a && e.options.sourceMap && n("".concat(a, ".map")), un.getEmitDeclarations(e.options) && (n(a = l(t, e, r, i)), e.options.declarationMap) && n("".concat(a, ".map"))) + } + + function i(e, t, r, n, i) { + var a; + return e.rootDir ? (a = un.getNormalizedAbsolutePath(e.rootDir, r), null != i && i(e.rootDir)) : e.composite && e.configFilePath ? (a = un.getDirectoryPath(un.normalizeSlashes(e.configFilePath)), null != i && i(a)) : a = un.computeCommonSourceDirectoryOfFilenames(t(), r, n), a && a[a.length - 1] !== un.directorySeparator && (a += un.directorySeparator), a + } + + function m(e, t) { + var r = e.options, + n = e.fileNames; + return i(r, function() { + return un.filter(n, function(e) { + return !(r.noEmitForJsFiles && un.fileExtensionIsOneOf(e, un.supportedJSExtensionsFlat) || un.isDeclarationFileName(e)) + }) + }, un.getDirectoryPath(un.normalizeSlashes(un.Debug.checkDefined(r.configFilePath))), un.createGetCanonicalFileName(!t)) + } + + function N(l, d, c, e, u, t, _) { + var p, f = e.scriptTransformers, + g = e.declarationTransformers, + m = d.getCompilerOptions(), + y = m.sourceMap || m.inlineSourceMap || un.getAreDeclarationMapsEnabled(m) ? [] : void 0, + h = m.listEmittedFiles ? [] : void 0, + v = un.createDiagnosticCollection(), + b = un.getNewLineCharacter(m, function() { + return d.getNewLine() + }), + x = un.createTextWriter(b), + e = un.performance.createTimer("printTime", "beforePrint", "afterPrint"), + r = e.enter, + e = e.exit, + D = !1; + return r(), n(d, function(e, t) { + var r, n = e.jsFilePath, + i = e.sourceMapFilePath, + a = e.declarationFilePath, + o = e.declarationMapPath, + e = e.buildInfoPath; + e && t && un.isBundle(t) && (r = un.getDirectoryPath(un.getNormalizedAbsolutePath(e, d.getCurrentDirectory())), p = { + commonSourceDirectory: s(d.getCommonSourceDirectory()), + sourceFiles: t.sourceFiles.map(function(e) { + return s(un.getNormalizedAbsolutePath(e.fileName, d.getCurrentDirectory())) + }) + }); + null !== un.tracing && void 0 !== un.tracing && un.tracing.push("emit", "emitJsFileOrBundle", { + jsFilePath: n + }), + function(e, t, r, n) { + e && !u && t && (d.isEmitBlocked(t) || m.noEmit ? D = !0 : (e = un.transformNodes(l, d, un.factory, m, [e], f, !1), n = C({ + removeComments: m.removeComments, + newLine: m.newLine, + noEmitHelpers: m.noEmitHelpers, + module: m.module, + target: m.target, + sourceMap: m.sourceMap, + inlineSourceMap: m.inlineSourceMap, + inlineSources: m.inlineSources, + extendedDiagnostics: m.extendedDiagnostics, + writeBundleFileInfo: !!p, + relativeToBuildInfo: n + }, { + hasGlobalName: l.hasGlobalName, + onEmitNode: e.emitNodeWithNotification, + isEmitNotificationEnabled: e.isEmitNotificationEnabled, + substituteNode: e.substituteNode + }), un.Debug.assert(1 === e.transformed.length, "Should only see one output from the transform"), T(t, r, e, n, m), e.dispose(), p && (p.js = n.bundleFileInfo))) + }(t, n, i, s), null !== un.tracing && void 0 !== un.tracing && un.tracing.pop(), null !== un.tracing && void 0 !== un.tracing && un.tracing.push("emit", "emitDeclarationFileOrBundle", { + declarationFilePath: a + }), + function(e, t, r, n) { + if (e) + if (t) { + var i = un.isSourceFile(e) ? [e] : e.sourceFiles, + i = _ ? i : un.filter(i, un.isSourceFileNotJson), + e = un.outFile(m) ? [un.factory.createBundle(i, un.isSourceFile(e) ? void 0 : e.prepends)] : i, + i = (u && !un.getEmitDeclarations(m) && i.forEach(S), un.transformNodes(l, d, un.factory, m, e, g, !1)); + if (un.length(i.diagnostics)) + for (var a = 0, o = i.diagnostics; a < o.length; a++) { + var s = o[a]; + v.add(s) + } + var e = { + removeComments: m.removeComments, + newLine: m.newLine, + noEmitHelpers: !0, + module: m.module, + target: m.target, + sourceMap: !_ && m.declarationMap, + inlineSourceMap: m.inlineSourceMap, + extendedDiagnostics: m.extendedDiagnostics, + onlyPrintJsDocStyle: !0, + writeBundleFileInfo: !!p, + recordInternalSection: !!p, + relativeToBuildInfo: n + }, + n = C(e, { + hasGlobalName: l.hasGlobalName, + onEmitNode: i.emitNodeWithNotification, + isEmitNotificationEnabled: i.isEmitNotificationEnabled, + substituteNode: i.substituteNode + }), + c = !!i.diagnostics && !!i.diagnostics.length || !!d.isEmitBlocked(t) || !!m.noEmit; + D = D || c, c && !_ || (un.Debug.assert(1 === i.transformed.length, "Should only see one output from the decl transform"), T(t, r, i, n, { + sourceMap: e.sourceMap, + sourceRoot: m.sourceRoot, + mapRoot: m.mapRoot, + extendedDiagnostics: m.extendedDiagnostics + })), i.dispose(), p && (p.dts = n.bundleFileInfo) + } else(u || m.emitDeclarationOnly) && (D = !0) + }(t, a, o, s), null !== un.tracing && void 0 !== un.tracing && un.tracing.pop(), null !== un.tracing && void 0 !== un.tracing && un.tracing.push("emit", "emitBuildInfo", { + buildInfoPath: e + }), + function(e, t) { + var r, n; + !t || c || D || (r = d.getProgramBuildInfo(), d.isEmitBlocked(t) ? D = !0 : (n = un.version, e = { + bundle: e, + program: r, + version: n + }, un.writeFile(d, v, t, A(e), !1, void 0, { + buildInfo: e + }))) + }(p, e), null !== un.tracing && void 0 !== un.tracing && un.tracing.pop(), !D && h && (u || (n && h.push(n), i && h.push(i), e && h.push(e)), a && h.push(a), o) && h.push(o); + + function s(e) { + return un.ensurePathIsNonModuleName(un.getRelativePathFromDirectory(r, e, d.getCanonicalFileName)) + } + }, un.getSourceFilesToEmit(d, c, _), _, t, !c), e(), { + emitSkipped: D, + diagnostics: v.getDiagnostics(), + emittedFiles: h, + sourceMaps: y + }; + + function S(e) { + un.isExportAssignment(e) ? 79 === e.expression.kind && l.collectLinkedAliases(e.expression, !0) : un.isExportSpecifier(e) ? l.collectLinkedAliases(e.propertyName || e.name, !0) : un.forEachChild(e, S) + } + + function T(e, t, r, n, i) { + var a, o, s, c = r.transformed[0], + l = 309 === c.kind ? c : void 0, + u = 308 === c.kind ? c : void 0, + _ = l ? l.sourceFiles : [u], + l = (c = c, !(s = i).sourceMap && !s.inlineSourceMap || 308 === c.kind && un.fileExtensionIs(c.fileName, ".json") || (a = un.createSourceMapGenerator(d, un.getBaseFileName(un.normalizeSlashes(e)), function(e) { + e = un.normalizeSlashes(e.sourceRoot || ""); + return e && un.ensureTrailingDirectorySeparator(e) + }(i), function(e, t, r) { + if (e.sourceRoot) return d.getCommonSourceDirectory(); + if (e.mapRoot) return e = un.normalizeSlashes(e.mapRoot), r && (e = un.getDirectoryPath(un.getSourceFilePathInNewDir(r.fileName, d, e))), e = 0 === un.getRootLength(e) ? un.combinePaths(d.getCommonSourceDirectory(), e) : e; + return un.getDirectoryPath(un.normalizePath(t)) + }(i, e, u), i)), l ? n.writeBundle(l, x, a) : n.writeFile(u, x, a), a ? (y && y.push({ + inputSourceFileNames: a.getSources(), + sourceMap: a.toJSON() + }), (s = function(e, t, r, n, i) { + if (e.inlineSourceMap) return t = t.toString(), t = un.base64encode(un.sys, t), "data:application/json;base64,".concat(t); + t = un.getBaseFileName(un.normalizeSlashes(un.Debug.checkDefined(n))); + if (e.mapRoot) return n = un.normalizeSlashes(e.mapRoot), i && (n = un.getDirectoryPath(un.getSourceFilePathInNewDir(i.fileName, d, n))), 0 === un.getRootLength(n) ? (n = un.combinePaths(d.getCommonSourceDirectory(), n), encodeURI(un.getRelativePathToDirectoryOrUrl(un.getDirectoryPath(un.normalizePath(r)), un.combinePaths(n, t), d.getCurrentDirectory(), d.getCanonicalFileName, !0))) : encodeURI(un.combinePaths(n, t)); + return encodeURI(t) + }(i, a, e, t, u)) && (x.isAtStartOfLine() || x.rawWrite(b), o = x.getTextPos(), x.writeComment("//# ".concat("sourceMappingURL", "=").concat(s))), t && (c = a.toString(), un.writeFile(d, v, t, c, !1, _), n.bundleFileInfo) && (n.bundleFileInfo.mapHash = un.computeSignature(c, un.maybeBind(d, d.createHash)))) : x.writeLine(), x.getText()); + un.writeFile(d, v, e, l, !!m.emitBOM, _, { + sourceMapUrlPos: o, + diagnostics: r.diagnostics + }), n.bundleFileInfo && (n.bundleFileInfo.hash = un.computeSignature(l, un.maybeBind(d, d.createHash))), x.clear() + } + } + + function A(e) { + return JSON.stringify(e) + } + + function F(e, t) { + return un.readJsonOrUndefined(e, t) + } + + function C(h, e) { + void 0 === h && (h = {}); + var Ze, d, r, p, i, u, a, f, g, m, y, t, v, $e, b, x, D, s, S, T, o, n, et, C = (e = void 0 === e ? {} : e).hasGlobalName, + E = e.onEmitNode, + k = void 0 === E ? un.noEmitNotification : E, + N = e.isEmitNotificationEnabled, + E = e.substituteNode, + Tt = void 0 === E ? un.noEmitSubstitution : E, + A = e.onBeforeEmitNode, + F = e.onAfterEmitNode, + P = e.onBeforeEmitNodeArray, + w = e.onAfterEmitNodeArray, + I = e.onBeforeEmitToken, + O = e.onAfterEmitToken, + E = !!h.extendedDiagnostics, + M = un.getNewLineCharacter(h), + L = un.getEmitModuleKind(h), + R = new un.Map, + tt = h.preserveSourceNewlines, + rt = function(e) { + $e.write(e) + }, + nt = h.writeBundleFileInfo ? { + sections: [] + } : void 0, + B = nt ? un.Debug.checkDefined(h.relativeToBuildInfo) : void 0, + j = h.recordInternalSection, + J = 0, + z = "text", + c = !0, + U = -1, + K = -1, + V = -1, + q = -1, + W = -1, + H = !1, + it = !!h.removeComments, + e = un.performance.createTimerIf(E, "commentTime", "beforeComment", "afterComment"), + G = e.enter, + Q = e.exit, + at = un.factory.parenthesizer, + X = { + select: function(e) { + return 0 === e ? at.parenthesizeLeadingTypeArgument : void 0 + } + }, + Ct = un.createBinaryExpressionTrampoline(function(e, t) { + { + var r, n; + t ? (t.stackIndex++, t.preserveSourceNewlinesStack[t.stackIndex] = tt, t.containerPosStack[t.stackIndex] = V, t.containerEndStack[t.stackIndex] = q, t.declarationListContainerEndStack[t.stackIndex] = W, r = t.shouldEmitCommentsStack[t.stackIndex] = ye(e), n = t.shouldEmitSourceMapsStack[t.stackIndex] = he(e), null != A && A(e), r && Mr(e), n && nn(e), ge(e)) : t = { + stackIndex: 0, + preserveSourceNewlinesStack: [void 0], + containerPosStack: [-1], + containerEndStack: [-1], + declarationListContainerEndStack: [-1], + shouldEmitCommentsStack: [!1], + shouldEmitSourceMapsStack: [!1] + } + } + return t + }, function(e, t, r) { + return Y(e, r, "left") + }, function(e, t, r) { + var n = 27 !== e.kind, + i = Dt(r, r.left, e), + r = Dt(r, e, r.right); + xt(i, n), Hr(e.pos), vr(e, 101 === e.kind ? mt : fr), Qr(e.end, !0), xt(r, !0) + }, function(e, t, r) { + return Y(e, r, "right") + }, function(e, t) { + var r = Dt(e, e.left, e.operatorToken), + n = Dt(e, e.operatorToken, e.right); { + var i, a, o, s; + Dr(r, n), 0 < t.stackIndex && (r = t.preserveSourceNewlinesStack[t.stackIndex], n = t.containerPosStack[t.stackIndex], i = t.containerEndStack[t.stackIndex], a = t.declarationListContainerEndStack[t.stackIndex], o = t.shouldEmitCommentsStack[t.stackIndex], s = t.shouldEmitSourceMapsStack[t.stackIndex], me(r), s && an(e), o && Lr(e, n, i, a), null != F && F(e), t.stackIndex--) + } + }, void 0); + + function Y(e, t, r) { + r = "left" === r ? at.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind) : at.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind), t = ve(0, 1, e); + if (t === Se && (un.Debug.assertIsDefined(n), t = be(1, 1, e = r(un.cast(n, un.isExpression))), n = void 0), (t === Or || t === rn || t === De) && un.isBinaryExpression(e)) return e; + et = r, t(1, e) + } + return de(), { + printNode: function(e, t, r) { + switch (e) { + case 0: + un.Debug.assert(un.isSourceFile(t), "Expected a SourceFile node."); + break; + case 2: + un.Debug.assert(un.isIdentifier(t), "Expected an Identifier node."); + break; + case 1: + un.Debug.assert(un.isExpression(t), "Expected an Expression node.") + } + switch (t.kind) { + case 308: + return $(t); + case 309: + return Z(t); + case 310: + return function(e) { + return function(e, t) { + var r = $e; + _e(t, void 0), le(4, e, void 0), de(), $e = r + }(e, se()), ce() + }(t) + } + return ee(e, t, r, se()), ce() + }, + printList: function(e, t, r) { + return te(e, t, r, se()), ce() + }, + printFile: $, + printBundle: Z, + writeNode: ee, + writeList: te, + writeFile: oe, + writeBundle: ae, + bundleFileInfo: nt + }; + + function Z(e) { + return ae(e, se(), void 0), ce() + } + + function $(e) { + return oe(e, se(), void 0), ce() + } + + function ee(e, t, r, n) { + var i = $e; + _e(n, void 0), le(e, t, r), de(), $e = i + } + + function te(e, t, r, n) { + var i = $e; + _e(n, void 0), r && ue(r), pt(void 0, t, e), de(), $e = i + } + + function Et() { + return $e.getTextPosWithWriteLine ? $e.getTextPosWithWriteLine() : $e.getTextPos() + } + + function kt(e, t, r) { + var n = un.lastOrUndefined(nt.sections); + n && n.kind === r ? n.end = t : nt.sections.push({ + pos: e, + end: t, + kind: r + }) + } + + function re(e) { + if (j && nt && Ze && (un.isDeclaration(e) || un.isVariableStatement(e)) && un.isInternalDeclaration(e, Ze) && "internal" !== z) return e = z, ie($e.getTextPos()), J = Et(), z = "internal", e + } + + function ne(e) { + e && (ie($e.getTextPos()), J = Et(), z = e) + } + + function ie(e) { + return J < e && (kt(J, e, z), 1) + } + + function ae(e, t, r) { + x = !1; + var n = $e, + t = (_e(t, r), Ie(e), we(e), Te(e), e); + Ae(!!t.hasNoDefaultLib, t.syntheticFileReferences || [], t.syntheticTypeReferences || [], t.syntheticLibReferences || []); + for (var i = 0, a = t.prepends; i < a.length; i++) { + var o = a[i]; + if (un.isUnparsedSource(o) && o.syntheticReferences) + for (var s = 0, c = o.syntheticReferences; s < c.length; s++) ot(c[s]), ht() + } + for (var l = 0, u = e.prepends; l < u.length; l++) { + var _, d = u[l], + p = (ht(), $e.getTextPos()), + f = nt && nt.sections; + f && (nt.sections = []), le(4, d, void 0), nt && (_ = nt.sections, nt.sections = f, d.oldFileOfCurrentEmit ? (f = nt.sections).push.apply(f, _) : (_.forEach(function(e) { + return un.Debug.assert(un.isBundleFileTextLike(e)) + }), nt.sections.push({ + pos: p, + end: $e.getTextPos(), + kind: "prepend", + data: B(d.fileName), + texts: _ + }))) + } + J = Et(); + for (var g = 0, m = e.sourceFiles; g < m.length; g++) { + var y = m[g]; + le(0, y, y) + } + nt && e.sourceFiles.length && ie($e.getTextPos()) && ((r = function(e) { + for (var t, r = new un.Set, n = 0; n < e.sourceFiles.length; n++) { + for (var i = e.sourceFiles[n], a = void 0, o = 0, s = 0, c = i.statements; s < c.length; s++) { + var l = c[s]; + if (!un.isPrologueDirective(l)) break; + r.has(l.expression.text) || (r.add(l.expression.text), (a = a || []).push({ + pos: l.pos, + end: l.end, + expression: { + pos: l.expression.pos, + end: l.expression.end, + text: l.expression.text + } + }), o = o < l.end ? l.end : o) + } + a && (t = t || []).push({ + file: n, + text: i.text.substring(0, o), + directives: a + }) + } + return t + }(e)) && (nt.sources || (nt.sources = {}), nt.sources.prologues = r), t = function(e) { + var t; + if (L === un.ModuleKind.None || h.noEmitHelpers) return; + for (var r = new un.Map, n = 0, i = e.sourceFiles; n < i.length; n++) { + var a = i[n], + o = void 0 !== un.getExternalHelpersModuleName(a), + a = Ce(a); + if (a) + for (var s = 0, c = a; s < c.length; s++) { + var l = c[s]; + l.scoped || o || r.get(l.name) || (r.set(l.name, !0), (t = t || []).push(l.name)) + } + } + return t + }(e)) && (nt.sources || (nt.sources = {}), nt.sources.helpers = t), de(), $e = n + } + + function oe(e, t, r) { + x = !0; + var n = $e; + _e(t, r), Ie(e), we(e), le(0, e, e), de(), $e = n + } + + function se() { + return b = b || un.createTextWriter(M) + } + + function ce() { + var e = b.getText(); + return b.clear(), e + } + + function le(e, t, r) { + r && ue(r), At(e, t, void 0) + } + + function ue(e) { + o = T = void 0, (Ze = e) && cn(e) + } + + function _e(e, t) { + e && h.omitTrailingSemicolon && (e = un.getTrailingSemicolonDeferringWriter(e)), D = t, c = !($e = e) || !D + } + + function de() { + d = [], r = [], p = new un.Set, i = [], u = new un.Map, a = [], g = [], y = [], _e(o = T = Ze = void(m = f = 0), void 0) + } + + function pe() { + return T = T || un.getLineStarts(un.Debug.checkDefined(Ze)) + } + + function ot(e, t) { + var r; + void 0 !== e && (r = re(e), At(4, e, t), ne(r)) + } + + function fe(e) { + void 0 !== e && At(2, e, void 0) + } + + function st(e, t) { + void 0 !== e && At(1, e, t) + } + + function Nt(e) { + At(un.isStringLiteral(e) ? 6 : 4, e) + } + + function ge(e) { + tt && 134217728 & un.getEmitFlags(e) && (tt = !1) + } + + function me(e) { + tt = e + } + + function At(e, t, r) { + et = r, ve(0, e, t)(e, t), et = void 0 + } + + function ye(e) { + return !it && !un.isSourceFile(e) + } + + function he(e) { + return !(c || un.isSourceFile(e) || un.isInJsonFile(e) || un.isUnparsedSource(e) || un.isUnparsedPrepend(e)) + } + + function ve(e, t, r) { + switch (e) { + case 0: + if (k !== un.noEmitNotification && (!N || N(r))) return xe; + case 1: + if (Tt !== un.noEmitSubstitution && (n = Tt(t, r) || r) !== r) return et && (n = et(n)), Se; + case 2: + if (ye(r)) return Or; + case 3: + if (he(r)) return rn; + case 4: + return De; + default: + return un.Debug.assertNever(e) + } + } + + function be(e, t, r) { + return ve(e + 1, t, r) + } + + function xe(e, t) { + var r = be(0, e, t); + log(t); + k(e, t, r) + } + + function De(e, t) { + var r; + null != A && A(t), tt ? (r = tt, ge(t), Ft(e, t), me(r)) : Ft(e, t), null != F && F(t), et = void 0 + } + + function Ft(e, t, L) { + if (L = void 0 === L ? !0 : L) { + L = un.getSnippetElement(t); + if (L) { + var R = e, + B = t, + j = L; + switch (j.kind) { + case 1: + ! function(e, t, r) { + yr("${".concat(r.order, ":")), Ft(e, t, !1), yr("}") + }(R, B, j); + break; + case 0: + ! function(e, t, r) { + un.Debug.assert(239 === t.kind, "A tab stop cannot be attached to a node of kind ".concat(un.Debug.formatSyntaxKind(t.kind), ".")), un.Debug.assert(5 !== e, "A tab stop cannot be attached to an embedded statement."), yr("$".concat(r.order)) + }(R, B, j) + } + return + } + } + if (0 === e) return nr(un.cast(t, un.isSourceFile)); + if (2 === e) return It(un.cast(t, un.isIdentifier)); + if (6 === e) return Pt(un.cast(t, un.isStringLiteral), !0); + if (3 === e) return ot((L = un.cast(t, un.isTypeParameterDeclaration)).name), yt(), mt("in"), yt(), ot(L.constraint); + var J, z, U, K, V, q, W, H, G, Q, r, n, i, a, X, Y, o, Z, s, c, l, u, $, ee, te, re, ne, ie, ae, _, d, p, oe, f, g, se, ce, le, ue, _e, de, pe, m, fe, y, ge, me, ye, he, ve; + if (5 === e) return un.Debug.assertNode(t, un.isEmptyStatement), Bt(!0); + if (4 === e) { + switch (t.kind) { + case 15: + case 16: + case 17: + return Pt(t, !1); + case 79: + return It(t); + case 80: + return Ot(t); + case 163: + var be = (xe = t).left; + return (79 === be.kind ? st : ot)(be), ft("."), ot(xe.right); + case 164: + return be = t, ft("["), st(be.expression, at.parenthesizeExpressionOfComputedPropertyName), ft("]"); + case 165: + var xe = t; + return lt(xe, xe.modifiers), ot(xe.name), xe.constraint && (yt(), mt("extends"), yt(), ot(xe.constraint)), void(xe.default && (yt(), fr("="), yt(), ot(xe.default))); + case 166: + var h = t; + return ar(h, h.modifiers), ot(h.dotDotDotToken), ir(h.name, gr), ot(h.questionToken), (h.parent && 320 === h.parent.kind && !h.name ? ot : ut)(h.type), void or(h.initializer, h.type ? h.type.end : h.questionToken ? h.questionToken.end : h.name ? h.name.end : h.modifiers ? h.modifiers.end : h.pos, h, at.parenthesizeExpressionForDisallowedComma); + case 167: + return h = t, ft("@"), st(h.expression, at.parenthesizeLeftSideOfAccess); + case 168: + return lt(g = t, g.modifiers), ir(g.name, mr), ot(g.questionToken), ut(g.type), gt(); + case 169: + return ar(g = t, g.modifiers), ot(g.name), ot(g.questionToken), ot(g.exclamationToken), ut(g.type), or(g.initializer, (g.type || g.questionToken || g.name).end, g), gt(); + case 170: + return kr(f = t), lt(f, f.modifiers), ot(f.name), ot(f.questionToken), dt(f, f.typeParameters), ur(f, f.parameters), ut(f.type), gt(), Nr(f); + case 171: + return ar(f = t, f.modifiers), ot(f.asteriskToken), ot(f.name), ot(f.questionToken), Vt(f, qt); + case 172: + return oe = t, mt("static"), Wt(oe.body); + case 173: + return lt(oe = t, oe.modifiers), mt("constructor"), Vt(oe, qt); + case 174: + case 175: + return ar(p = t, p.modifiers), mt(174 === p.kind ? "get" : "set"), yt(), ot(p.name), Vt(p, qt); + case 176: + return kr(p = t), dt(p, p.typeParameters), ur(p, p.parameters), ut(p.type), gt(), Nr(p); + case 177: + return kr(d = t), mt("new"), yt(), dt(d, d.typeParameters), ur(d, d.parameters), ut(d.type), gt(), Nr(d); + case 178: + lt(d = t, d.modifiers); + var De = d, + Se = d.parameters; + return pt(De, Se, 8848), ut(d.type), gt(); + case 179: + De = t; + return De.assertsModifier && (ot(De.assertsModifier), yt()), ot(De.parameterName), void(De.type && (yt(), mt("is"), yt(), ot(De.type))); + case 180: + return ot((Se = t).typeName), _t(Se, Se.typeArguments); + case 181: + return kr(_ = t), dt(_, _.typeParameters), _r(_, _.parameters), yt(), ft("=>"), yt(), ot(_.type), Nr(_); + case 182: + return kr(_ = t), lt(_, _.modifiers), mt("new"), yt(), dt(_, _.typeParameters), ur(_, _.parameters), yt(), ft("=>"), yt(), ot(_.type), Nr(_); + case 183: + return ae = t, mt("typeof"), yt(), ot(ae.exprName), _t(ae, ae.typeArguments); + case 184: + return ae = t, ft("{"), ie = 1 & un.getEmitFlags(ae) ? 768 : 32897, pt(ae, ae.members, 524288 | ie), ft("}"); + case 185: + return ot(t.elementType, at.parenthesizeNonArrayTypeOfPostfixType), ft("["), ft("]"); + case 186: + return ct(22, (ie = t).pos, ft, ie), ne = 1 & un.getEmitFlags(ie) ? 528 : 657, pt(ie, ie.elements, 524288 | ne, at.parenthesizeElementTypeOfTupleType), ct(23, ie.elements.end, ft, ie); + case 187: + return ot(t.type, at.parenthesizeTypeOfOptionalType), ft("?"); + case 189: + return pt(t, t.types, 516, at.parenthesizeConstituentTypeOfUnionType); + case 190: + return pt(t, t.types, 520, at.parenthesizeConstituentTypeOfIntersectionType); + case 191: + return ot((ne = t).checkType, at.parenthesizeCheckTypeOfConditionalType), yt(), mt("extends"), yt(), ot(ne.extendsType, at.parenthesizeExtendsTypeOfConditionalType), yt(), ft("?"), yt(), ot(ne.trueType), yt(), ft(":"), yt(), ot(ne.falseType); + case 192: + return re = t, mt("infer"), yt(), ot(re.typeParameter); + case 193: + return re = t, ft("("), ot(re.type), ft(")"); + case 230: + return Lt(t); + case 194: + return mt("this"); + case 195: + return br((te = t).operator, mt), yt(), v = 146 === te.operator ? at.parenthesizeOperandOfReadonlyTypeOperator : at.parenthesizeOperandOfTypeOperator, ot(te.type, v); + case 196: + return ot((te = t).objectType, at.parenthesizeNonArrayTypeOfPostfixType), ft("["), ot(te.indexType), ft("]"); + case 197: + var v = t, + Te = un.getEmitFlags(v); + return ft("{"), (1 & Te ? yt : (ht(), vt))(), v.readonlyToken && (ot(v.readonlyToken), 146 !== v.readonlyToken.kind && mt("readonly"), yt()), ft("["), At(3, v.typeParameter), v.nameType && (yt(), mt("as"), yt(), ot(v.nameType)), ft("]"), v.questionToken && (ot(v.questionToken), 57 !== v.questionToken.kind) && ft("?"), ft(":"), yt(), ot(v.type), gt(), (1 & Te ? yt : (ht(), bt))(), pt(v, v.members, 2), void ft("}"); + case 198: + return st(t.literal); + case 199: + return ot((Te = t).dotDotDotToken), ot(Te.name), ot(Te.questionToken), ct(58, Te.name.end, ft, Te), yt(), ot(Te.type); + case 200: + return ot((ee = t).head), pt(ee, ee.templateSpans, 262144); + case 201: + return ot((ee = t).type), ot(ee.literal); + case 202: + var Ce, b = t; + return b.isTypeOf && (mt("typeof"), yt()), mt("import"), ft("("), ot(b.argument), b.assertions && (ft(","), yt(), ft("{"), yt(), mt("assert"), ft(":"), yt(), Ce = b.assertions.assertClause.elements, pt(b.assertions.assertClause, Ce, 526226), yt(), ft("}")), ft(")"), b.qualifier && (ft("."), ot(b.qualifier)), void _t(b, b.typeArguments); + case 203: + return Ce = t, ft("{"), pt(Ce, Ce.elements, 525136), ft("}"); + case 204: + return b = t, ft("["), pt(b, b.elements, 524880), ft("]"); + case 205: + var Ee = t; + return ot(Ee.dotDotDotToken), Ee.propertyName && (ot(Ee.propertyName), ft(":"), yt()), ot(Ee.name), void or(Ee.initializer, Ee.name.end, Ee, at.parenthesizeExpressionForDisallowedComma); + case 236: + return st((Ee = t).expression), ot(Ee.literal); + case 237: + return gt(); + case 238: + return Rt($ = t, !$.multiLine && Cr($)); + case 240: + return lt($ = t, $.modifiers), ot($.declarationList), gt(); + case 239: + return Bt(!1); + case 241: + return st((u = t).expression, at.parenthesizeExpressionOfExpressionStatement), Ze && un.isJsonSourceFile(Ze) && !un.nodeIsSynthesized(u.expression) || gt(); + case 242: + return x = ct(99, (u = t).pos, mt, u), yt(), ct(20, x, ft, u), st(u.expression), ct(21, u.expression.end, ft, u), lr(u, u.thenStatement), u.elseStatement && (xr(u, u.thenStatement, u.elseStatement), ct(91, u.thenStatement.end, mt, u), 242 === u.elseStatement.kind ? (yt(), ot(u.elseStatement)) : lr(u, u.elseStatement)); + case 243: + var x = t; + return ct(90, x.pos, mt, x), lr(x, x.statement), un.isBlock(x.statement) && !tt ? yt() : xr(x, x.statement, x.expression), jt(x, x.statement.end), void gt(); + case 244: + return jt(l = t, l.pos), lr(l, l.statement); + case 245: + return c = ct(97, (l = t).pos, mt, l), yt(), c = ct(20, c, ft, l), Jt(l.initializer), c = ct(26, l.initializer ? l.initializer.end : c, ft, l), cr(l.condition), c = ct(26, l.condition ? l.condition.end : c, ft, l), cr(l.incrementor), ct(21, l.incrementor ? l.incrementor.end : c, ft, l), lr(l, l.statement); + case 246: + return s = ct(97, (c = t).pos, mt, c), yt(), ct(20, s, ft, c), Jt(c.initializer), yt(), ct(101, c.initializer.end, mt, c), yt(), st(c.expression), ct(21, c.expression.end, ft, c), lr(c, c.statement); + case 247: + Z = ct(97, (s = t).pos, mt, s), yt(); + var ke = s.awaitModifier; + return ke && (ot(ke), yt()), ct(20, Z, ft, s), Jt(s.initializer), yt(), ct(162, s.initializer.end, mt, s), yt(), st(s.expression), ct(21, s.expression.end, ft, s), lr(s, s.statement); + case 248: + return ct(86, (ke = t).pos, mt, ke), sr(ke.label), gt(); + case 249: + return ct(81, (Z = t).pos, mt, Z), sr(Z.label), gt(); + case 250: + return ct(105, (o = t).pos, mt, o), cr(o.expression && zt(o.expression), zt), gt(); + case 251: + return Y = ct(116, (o = t).pos, mt, o), yt(), ct(20, Y, ft, o), st(o.expression), ct(21, o.expression.end, ft, o), lr(o, o.statement); + case 252: + return X = ct(107, (Y = t).pos, mt, Y), yt(), ct(20, X, ft, Y), st(Y.expression), ct(21, Y.expression.end, ft, Y), yt(), ot(Y.caseBlock); + case 253: + return ot((X = t).label), ct(58, X.label.end, ft, X), yt(), ot(X.statement); + case 254: + return ct(109, (D = t).pos, mt, D), cr(zt(D.expression), zt), gt(); + case 255: + var D = t; + return ct(111, D.pos, mt, D), yt(), ot(D.tryBlock), D.catchClause && (xr(D, D.tryBlock, D.catchClause), ot(D.catchClause)), void(D.finallyBlock && (xr(D, D.catchClause || D.tryBlock, D.finallyBlock), ct(96, (D.catchClause || D.tryBlock).end, mt, D), yt(), ot(D.finallyBlock))); + case 256: + return hr(87, t.pos, mt), gt(); + case 257: + return ot((i = t).name), ot(i.exclamationToken), ut(i.type), or(i.initializer, null != (a = null != (a = null == (a = i.type) ? void 0 : a.end) ? a : null == (a = null == (a = i.name.emitNode) ? void 0 : a.typeNode) ? void 0 : a.end) ? a : i.name.end, i, at.parenthesizeExpressionForDisallowedComma); + case 258: + return a = t, mt(un.isLet(a) ? "let" : un.isVarConst(a) ? "const" : "var"), yt(), pt(a, a.declarations, 528); + case 259: + return Kt(t); + case 260: + return Ht(t); + case 261: + return lt(i = t, i.modifiers), mt("interface"), yt(), ot(i.name), dt(i, i.typeParameters), pt(i, i.heritageClauses, 512), yt(), ft("{"), pt(i, i.members, 129), ft("}"); + case 262: + return lt(n = t, n.modifiers), mt("type"), yt(), ot(n.name), dt(n, n.typeParameters), yt(), ft("="), yt(), ot(n.type), gt(); + case 263: + return lt(n = t, n.modifiers), mt("enum"), yt(), ot(n.name), yt(), ft("{"), pt(n, n.members, 145), ft("}"); + case 264: + var S = t, + Ne = (lt(S, S.modifiers), 1024 & ~S.flags && (mt(16 & S.flags ? "namespace" : "module"), yt()), ot(S.name), S.body); + if (!Ne) return gt(); + for (; Ne && un.isModuleDeclaration(Ne);) ft("."), ot(Ne.name), Ne = Ne.body; + return yt(), void ot(Ne); + case 265: + return kr(S = t), un.forEach(S.statements, St), Rt(S, Cr(S)), Nr(S); + case 266: + return ct(18, (r = t).pos, ft, r), pt(r, r.clauses, 129), ct(19, r.clauses.end, ft, r, !0); + case 267: + return T = ct(93, (r = t).pos, mt, r), yt(), T = ct(128, T, mt, r), yt(), T = ct(143, T, mt, r), yt(), ot(r.name), gt(); + case 268: + var T = t, + C = (lt(T, T.modifiers), ct(100, T.modifiers ? T.modifiers.end : T.pos, mt, T), yt(), T.isTypeOnly && (ct(154, T.pos, mt, T), yt()), ot(T.name), yt(), ct(63, T.name.end, ft, T), yt(), T.moduleReference); + return (79 === C.kind ? st : ot)(C), void gt(); + case 269: + C = t; + return lt(C, C.modifiers), ct(100, C.modifiers ? C.modifiers.end : C.pos, mt, C), yt(), C.importClause && (ot(C.importClause), yt(), ct(158, C.importClause.end, mt, C), yt()), st(C.moduleSpecifier), C.assertClause && sr(C.assertClause), void gt(); + case 270: + var E = t; + return E.isTypeOnly && (ct(154, E.pos, mt, E), yt()), ot(E.name), E.name && E.namedBindings && (ct(27, E.name.end, ft, E), yt()), void ot(E.namedBindings); + case 271: + return Q = ct(41, (E = t).pos, ft, E), yt(), ct(128, Q, mt, E), yt(), ot(E.name); + case 277: + return Ae = ct(41, (Q = t).pos, ft, Q), yt(), ct(128, Ae, mt, Q), yt(), ot(Q.name); + case 272: + return Gt(t); + case 273: + return Qt(t); + case 274: + var Ae = t, + k = ct(93, Ae.pos, mt, Ae); + return yt(), Ae.isExportEquals ? ct(63, k, fr, Ae) : ct(88, k, mt, Ae), yt(), st(Ae.expression, Ae.isExportEquals ? at.getParenthesizeRightSideOfBinaryForOperator(63) : at.parenthesizeExpressionOfExportDefault), void gt(); + case 275: + var k = t, + Fe = (lt(k, k.modifiers), ct(93, k.pos, mt, k)); + return yt(), k.isTypeOnly && (Fe = ct(154, Fe, mt, k), yt()), k.exportClause ? ot(k.exportClause) : Fe = ct(41, Fe, ft, k), k.moduleSpecifier && (yt(), ct(158, k.exportClause ? k.exportClause.end : Fe, mt, k), yt(), st(k.moduleSpecifier)), k.assertClause && sr(k.assertClause), void gt(); + case 276: + return Gt(t); + case 278: + return Qt(t); + case 296: + return ct(130, (Fe = t).pos, mt, Fe), yt(), Pe = Fe.elements, pt(Fe, Pe, 526226); + case 297: + var Pe = t; + return ot(Pe.name), ft(":"), yt(), Pe = Pe.value, 0 == (512 & un.getEmitFlags(Pe)) && Qr(un.getCommentRange(Pe).pos), void ot(Pe); + case 279: + return; + case 280: + return G = t, mt("require"), ft("("), st(G.expression), ft(")"); + case 11: + return G = t, $e.writeLiteral(G.text); + case 283: + case 286: + var we, N = t; + return ft("<"), un.isJsxOpeningElement(N) && (we = Sr(N.tagName, N), Xt(N.tagName), _t(N, N.typeArguments), N.attributes.properties && 0 < N.attributes.properties.length && yt(), ot(N.attributes), Tr(N.attributes, N), Dr(we)), void ft(">"); + case 284: + case 287: + N = t; + return ft(""); + case 288: + ot((we = t).name); + var A = "=", + Ie = ft, + Oe = we.initializer, + Me = Nt; + return void(Oe && (Ie(A), Me(Oe))); + case 289: + return pt(t, t.properties, 262656); + case 290: + return Ie = t, ft("{..."), st(Ie.expression), ft("}"); + case 291: + var Le, A = t; + return void((A.expression || !it && !un.nodeIsSynthesized(A) && function(e) { + return function(e) { + var t = !1; + return un.forEachTrailingCommentRange((null == Ze ? void 0 : Ze.text) || "", e + 1, function() { + return t = !0 + }), t + }(e) || function(e) { + var t = !1; + return un.forEachLeadingCommentRange((null == Ze ? void 0 : Ze.text) || "", e + 1, function() { + return t = !0 + }), t + }(e) + }(A.pos)) && ((Me = Ze && !un.nodeIsSynthesized(A) && un.getLineAndCharacterOfPosition(Ze, A.pos).line !== un.getLineAndCharacterOfPosition(Ze, A.end).line) && $e.increaseIndent(), Oe = ct(18, A.pos, ft, A), ot(A.dotDotDotToken), st(A.expression), ct(19, (null == (Le = A.expression) ? void 0 : Le.end) || Oe, ft, A), Me) && $e.decreaseIndent()); + case 292: + return ct(82, (Le = t).pos, mt, Le), yt(), st(Le.expression, at.parenthesizeExpressionForDisallowedComma), Yt(Le, Le.statements, Le.expression.end); + case 293: + return Re = ct(88, (H = t).pos, mt, H), Yt(H, H.statements, Re); + case 294: + return H = t, yt(), br(H.token, mt), yt(), pt(H, H.types, 528); + case 295: + var Re = t, + Be = ct(83, Re.pos, mt, Re); + return yt(), Re.variableDeclaration && (ct(20, Be, ft, Re), ot(Re.variableDeclaration), ct(21, Re.variableDeclaration.end, ft, Re), yt()), void ot(Re.block); + case 299: + Be = t; + return ot(Be.name), ft(":"), yt(), Be = Be.initializer, 0 == (512 & un.getEmitFlags(Be)) && Qr(un.getCommentRange(Be).pos), void st(Be, at.parenthesizeExpressionForDisallowedComma); + case 300: + return ot((W = t).name), W.objectAssignmentInitializer && (yt(), ft("="), yt(), st(W.objectAssignmentInitializer, at.parenthesizeExpressionForDisallowedComma)); + case 301: + return (W = t).expression && (ct(25, W.pos, ft, W), st(W.expression, at.parenthesizeExpressionForDisallowedComma)); + case 302: + return ot((q = t).name), or(q.initializer, q.name.end, q, at.parenthesizeExpressionForDisallowedComma); + case 303: + return wt(t); + case 310: + case 304: + for (var je = 0, Je = t.texts; je < Je.length; je++) { + var ze = Je[je]; + ht(), ot(ze) + } + return; + case 305: + case 306: + return q = t, V = Et(), wt(q), nt && kt(V, $e.getTextPos(), 305 === q.kind ? "text" : "internal"); + case 307: + return V = t, K = Et(), wt(V), nt && ((V = un.clone(V.section)).pos = K, V.end = $e.getTextPos(), nt.sections.push(V)); + case 308: + return nr(t); + case 309: + return un.Debug.fail("Bundles should be printed using printBundle"); + case 311: + return un.Debug.fail("InputFiles should not be printed"); + case 312: + return rr(t); + case 313: + return K = t, yt(), ft("{"), ot(K.name), ft("}"); + case 315: + return ft("*"); + case 316: + return ft("?"); + case 317: + return U = t, ft("?"), ot(U.type); + case 318: + return U = t, ft("!"), ot(U.type); + case 319: + return ot(t.type), ft("="); + case 320: + return z = t, mt("function"), ur(z, z.parameters), ft(":"), ot(z.type); + case 188: + case 321: + return z = t, ft("..."), ot(z.type); + case 322: + return; + case 323: + var F = t; + if (rt("/**"), F.comment) { + var Ue = un.getTextOfJSDocComment(F.comment); + if (Ue) + for (var Ue = Ue.split(/\r\n?|\n/g), Ke = 0, Ve = Ue; Ke < Ve.length; Ke++) { + var qe = Ve[Ke]; + ht(), yt(), ft("*"), yt(), rt(qe) + } + } + return F.tags && (1 !== F.tags.length || 346 !== F.tags[0].kind || F.comment ? pt(F, F.tags, 33) : (yt(), ot(F.tags[0]))), yt(), void rt("*/"); + case 325: + return Zt(t); + case 326: + return $t(t); + case 330: + case 335: + case 340: + return er((Ue = t).tagName), tr(Ue.comment); + case 331: + case 332: + return er((F = t).tagName), yt(), ft("{"), ot(F.class), ft("}"), tr(F.comment); + case 333: + case 334: + return; + case 336: + case 337: + case 338: + case 339: + return; + case 341: + var P = t; + return er(P.tagName), P.name && (yt(), ot(P.name)), tr(P.comment), void $t(P.typeExpression); + case 343: + case 350: + P = t; + return er(P.tagName), rr(P.typeExpression), yt(), P.isBracketed && ft("["), ot(P.name), P.isBracketed && ft("]"), void tr(P.comment); + case 342: + case 344: + case 345: + case 346: + return er((J = t).tagName), rr(J.typeExpression), tr(J.comment); + case 347: + return er((J = t).tagName), rr(J.constraint), yt(), pt(J, J.typeParameters, 528), tr(J.comment); + case 348: + var w = t; + return er(w.tagName), w.typeExpression && (312 === w.typeExpression.kind ? rr(w.typeExpression) : (yt(), ft("{"), rt("Object"), w.typeExpression.isArrayType && (ft("["), ft("]")), ft("}"))), w.fullName && (yt(), ot(w.fullName)), tr(w.comment), void(w.typeExpression && 325 === w.typeExpression.kind && Zt(w.typeExpression)); + case 349: + return er((w = t).tagName), ot(w.name), tr(w.comment); + case 352: + case 356: + case 355: + return + } + un.isExpression(t) && (e = 1, Tt !== un.noEmitSubstitution) && (L = Tt(e, t) || t) !== t && (t = L, et) && (t = et(t)) + } + if (1 === e) switch (t.kind) { + case 8: + case 9: + return Pt(t, !1); + case 10: + case 13: + case 14: + return Pt(t, !1); + case 79: + return It(t); + case 80: + return Ot(t); + case 206: + return he = (ye = t).elements, ve = ye.multiLine ? 65536 : 0, dr(ye, he, 8914 | ve, at.parenthesizeExpressionForDisallowedComma); + case 207: + return ye = t, un.forEach(ye.properties, Ar), (he = 65536 & un.getEmitFlags(ye)) && vt(), ve = ye.multiLine ? 65536 : 0, I = Ze && 1 <= Ze.languageVersion && !un.isJsonSourceFile(Ze) ? 64 : 0, pt(ye, ye.properties, 526226 | I | ve), he && bt(); + case 208: + var I = t, + O = (st(I.expression, at.parenthesizeLeftSideOfAccess), I.questionDotToken || un.setTextRangePosEnd(un.factory.createToken(24), I.expression.end, I.name.pos)), + We = Dt(I, I.expression, O), + He = Dt(I, O, I.name); + return xt(We, !1), 28 === O.kind || ! function(e) { + { + var t; + return e = un.skipPartiallyEmittedExpressions(e), un.isNumericLiteral(e) ? (t = Er(e, !0, !1), !e.numericLiteralFlags && !un.stringContains(t, un.tokenToString(24))) : un.isAccessExpression(e) ? "number" == typeof(t = un.getConstantValue(e)) && isFinite(t) && Math.floor(t) === t : void 0 + } + }(I.expression) || $e.hasTrailingComment() || $e.hasTrailingWhitespace() || ft("."), I.questionDotToken ? ot(O) : ct(O.kind, I.expression.end, ft, I), xt(He, !1), ot(I.name), void Dr(We, He); + case 209: + return st((O = t).expression, at.parenthesizeLeftSideOfAccess), ot(O.questionDotToken), ct(22, O.expression.end, ft, O), st(O.argumentExpression), ct(23, O.argumentExpression.end, ft, O); + case 210: + We = t, He = 536870912 & un.getEmitFlags(We); + return He && (ft("("), pr("0"), ft(","), yt()), st(We.expression, at.parenthesizeLeftSideOfAccess), He && ft(")"), ot(We.questionDotToken), _t(We, We.typeArguments), void dr(We, We.arguments, 2576, at.parenthesizeExpressionForDisallowedComma); + case 211: + return ct(103, (M = t).pos, mt, M), yt(), st(M.expression, at.parenthesizeExpressionOfNew), _t(M, M.typeArguments), dr(M, M.arguments, 18960, at.parenthesizeExpressionForDisallowedComma); + case 212: + var M = t, + Ge = 536870912 & un.getEmitFlags(M); + return Ge && (ft("("), pr("0"), ft(","), yt()), st(M.tag, at.parenthesizeLeftSideOfAccess), Ge && ft(")"), _t(M, M.typeArguments), yt(), void st(M.template); + case 213: + return Ge = t, ft("<"), ot(Ge.type), ft(">"), st(Ge.expression, at.parenthesizeOperandOfPrefixUnary); + case 214: + return ge = ct(20, (y = t).pos, ft, y), me = Sr(y.expression, y), st(y.expression, void 0), Tr(y.expression, y), Dr(me), ct(21, y.expression ? y.expression.end : ge, ft, y); + case 215: + return Fr((me = t).name), Kt(me); + case 216: + return lt(ge = t, ge.modifiers), Vt(ge, Mt); + case 217: + return ct(89, (y = t).pos, mt, y), yt(), st(y.expression, at.parenthesizeOperandOfPrefixUnary); + case 218: + return ct(112, (fe = t).pos, mt, fe), yt(), st(fe.expression, at.parenthesizeOperandOfPrefixUnary); + case 219: + return ct(114, (fe = t).pos, mt, fe), yt(), st(fe.expression, at.parenthesizeOperandOfPrefixUnary); + case 220: + return ct(133, (Qe = t).pos, mt, Qe), yt(), st(Qe.expression, at.parenthesizeOperandOfPrefixUnary); + case 221: + var Qe = t; + return br(Qe.operator, fr), + function(e) { + var t = e.operand; + return 221 === t.kind && (39 === e.operator && (39 === t.operator || 45 === t.operator) || 40 === e.operator && (40 === t.operator || 46 === t.operator)) + }(Qe) && yt(), void st(Qe.operand, at.parenthesizeOperandOfPrefixUnary); + case 222: + return st((m = t).operand, at.parenthesizeOperandOfPostfixUnary), br(m.operator, fr); + case 223: + return Ct(t); + case 224: + return ue = Dt(m = t, m.condition, m.questionToken), _e = Dt(m, m.questionToken, m.whenTrue), de = Dt(m, m.whenTrue, m.colonToken), pe = Dt(m, m.colonToken, m.whenFalse), st(m.condition, at.parenthesizeConditionOfConditionalExpression), xt(ue, !0), ot(m.questionToken), xt(_e, !0), st(m.whenTrue, at.parenthesizeBranchOfConditionalExpression), Dr(ue, _e), xt(de, !0), ot(m.colonToken), xt(pe, !0), st(m.whenFalse, at.parenthesizeBranchOfConditionalExpression), Dr(de, pe); + case 225: + return ot((ue = t).head), pt(ue, ue.templateSpans, 262144); + case 226: + return ct(125, (_e = t).pos, mt, _e), ot(_e.asteriskToken), cr(_e.expression && zt(_e.expression), Ut); + case 227: + return ct(25, (de = t).pos, ft, de), st(de.expression, at.parenthesizeExpressionForDisallowedComma); + case 228: + return Fr((pe = t).name), Ht(pe); + case 229: + return; + case 231: + return st((le = t).expression, void 0), le.type && (yt(), mt("as"), yt(), ot(le.type)); + case 232: + return st(t.expression, at.parenthesizeLeftSideOfAccess), fr("!"); + case 230: + return Lt(t); + case 235: + return st((le = t).expression, void 0), le.type && (yt(), mt("satisfies"), yt(), ot(le.type)); + case 233: + return hr((ce = t).keywordToken, ce.pos, ft), ft("."), ot(ce.name); + case 234: + return un.Debug.fail("SyntheticExpression should never be printed."); + case 281: + return ot((ce = t).openingElement), pt(ce, ce.children, 262144), ot(ce.closingElement); + case 282: + return se = t, ft("<"), Xt(se.tagName), _t(se, se.typeArguments), yt(), ot(se.attributes), ft("/>"); + case 285: + return ot((se = t).openingFragment), pt(se, se.children, 262144), ot(se.closingFragment); + case 351: + return un.Debug.fail("SyntaxList should not be printed"); + case 352: + return; + case 353: + var Xe = t, + Ye = un.getEmitFlags(Xe); + return 512 & Ye || Xe.pos === Xe.expression.pos || Qr(Xe.expression.pos), st(Xe.expression), void(1024 & Ye || Xe.end === Xe.expression.end || Hr(Xe.expression.end)); + case 354: + return dr(t, t.elements, 528, void 0); + case 355: + case 356: + return; + case 357: + return un.Debug.fail("SyntheticReferenceExpression should not be printed") + } + return un.isKeyword(t.kind) ? vr(t, mt) : un.isTokenKind(t.kind) ? vr(t, ft) : void un.Debug.fail("Unhandled SyntaxKind: ".concat(un.Debug.formatSyntaxKind(t.kind), ".")) + } + + function Se(e, t) { + var r = be(1, e, t); + un.Debug.assertIsDefined(n), t = n, n = void 0, r(e, t) + } + + function Te(e) { + var t = 309 === e.kind ? e : void 0; + if (!t || L !== un.ModuleKind.None) + for (var r = t ? t.prepends.length : 0, n = t ? t.sourceFiles.length + r : 1, i = 0; i < n; i++) { + var a = t ? i < r ? t.prepends[i] : t.sourceFiles[i - r] : e, + o = un.isSourceFile(a) ? a : un.isUnparsedSource(a) ? void 0 : Ze, + s = h.noEmitHelpers || !!o && un.hasRecordedExternalHelpers(o), + c = (un.isSourceFile(a) || un.isUnparsedSource(a)) && !x, + o = un.isUnparsedSource(a) ? a.helpers : Ce(a); + if (o) + for (var l = 0, u = o; l < u.length; l++) { + var _ = u[l]; + if (_.scoped) { + if (t) continue + } else { + if (s) continue; + if (c) { + if (R.get(_.name)) continue; + R.set(_.name, !0) + } + } + var d = Et(); + "string" == typeof _.text ? je(_.text) : je(_.text(Ir)), nt && nt.sections.push({ + pos: d, + end: $e.getTextPos(), + kind: "emitHelpers", + data: _.name + }), 0 + } + } + } + + function Ce(e) { + e = un.getEmitHelpers(e); + return e && un.stableSort(e, un.compareEmitHelpers) + } + + function Pt(e, t) { + t = Er(e, h.neverAsciiEscape, t); + !h.sourceMap && !h.inlineSourceMap || 10 !== e.kind && !un.isTemplateLiteralKind(e.kind) ? $e.writeStringLiteral(t) : pr(t) + } + + function wt(e) { + $e.rawWrite(e.parent.text.substring(e.pos, e.end)) + } + + function It(e) { + (e.symbol ? Re : rt)(We(e, !1), e.symbol), pt(e, e.typeArguments, 53776) + } + + function Ot(e) { + (e.symbol ? Re : rt)(We(e, !1), e.symbol) + } + + function Mt(e) { + dt(e, e.typeParameters), _r(e, e.parameters), ut(e.type), yt(), ot(e.equalsGreaterThanToken) + } + + function Lt(e) { + st(e.expression, at.parenthesizeLeftSideOfAccess), _t(e, e.typeArguments) + } + + function Rt(e, t) { + ct(18, e.pos, ft, e); + t = t || 1 & un.getEmitFlags(e) ? 768 : 129; + pt(e, e.statements, t), ct(19, e.statements.end, ft, e, !!(1 & t)) + } + + function Bt(e) { + e ? ft(";") : gt() + } + + function jt(e, t) { + t = ct(115, t, mt, e); + yt(), ct(20, t, ft, e), st(e.expression), ct(21, e.expression.end, ft, e) + } + + function Jt(e) { + void 0 !== e && (258 === e.kind ? ot : st)(e) + } + + function ct(e, t, r, n, i) { + var a = un.getParseTreeNode(n), + a = a && a.kind === n.kind, + o = t; + return a && Ze && (t = un.skipTrivia(Ze.text, t)), a && n.pos !== o && ((i = i && Ze && !un.positionsAreOnSameLine(o, t, Ze)) && vt(), Hr(o), i) && bt(), t = br(e, r, t), a && n.end !== t && Qr(t, !(o = 291 === n.kind), o), t + } + + function Ee(e) { + return 2 === e.kind || !!e.hasTrailingNewLine + } + + function zt(e) { + var t, r; + return !it && un.isPartiallyEmittedExpression(e) && function e(t) { + return !!Ze && (!!un.some(un.getLeadingCommentRanges(Ze.text, t.pos), Ee) || !!un.some(un.getSyntheticLeadingComments(t), Ee) || !!un.isPartiallyEmittedExpression(t) && (!(t.pos === t.expression.pos || !un.some(un.getTrailingCommentRanges(Ze.text, t.expression.pos), Ee)) || e(t.expression))) + }(e) ? (t = un.getParseTreeNode(e)) && un.isParenthesizedExpression(t) ? (r = un.factory.createParenthesizedExpression(e.expression), un.setOriginalNode(r, e), un.setTextRange(r, t), r) : un.factory.createParenthesizedExpression(e) : e + } + + function Ut(e) { + return zt(at.parenthesizeExpressionForDisallowedComma(e)) + } + + function Kt(e) { + lt(e, e.modifiers), mt("function"), ot(e.asteriskToken), yt(), fe(e.name), Vt(e, qt) + } + + function Vt(e, t) { + var r, n = e.body; + n ? un.isBlock(n) ? ((r = 65536 & un.getEmitFlags(e)) && vt(), kr(e), un.forEach(e.parameters, St), St(e.body), t(e), Wt(n), Nr(e), r && bt()) : (t(e), yt(), st(n, at.parenthesizeConciseBodyOfArrowFunction)) : (t(e), gt()) + } + + function qt(e) { + dt(e, e.typeParameters), ur(e, e.parameters), ut(e.type) + } + + function Wt(e) { + null != A && A(e), yt(), ft("{"), vt(); + var t = function(e) { + if (1 & un.getEmitFlags(e)) return 1; + if (!e.multiLine && (un.nodeIsSynthesized(e) || !Ze || un.rangeIsOnSingleLine(e, Ze)) && !Je(e, un.firstOrUndefined(e.statements), 2) && !Ue(e, un.lastOrUndefined(e.statements), 2, e.statements)) { + for (var t, r = 0, n = e.statements; r < n.length; r++) { + var i = n[r]; + if (0 < ze(t, i, 2)) return; + t = i + } + return 1 + } + }(e) ? ke : Ne; + zr(e, e.statements, t), bt(), hr(19, e.statements.end, ft, e), null != F && F(e) + } + + function ke(e) { + Ne(e, !0) + } + + function Ne(e, t) { + var r = Pe(e.statements), + n = $e.getTextPos(); + Te(e), 0 === r && n === $e.getTextPos() && t ? (bt(), pt(e, e.statements, 768), vt()) : pt(e, e.statements, 1, void 0, r) + } + + function Ht(e) { + un.forEach(e.members, Ar), ar(e, e.modifiers), mt("class"), e.name && (yt(), fe(e.name)); + var t = 65536 & un.getEmitFlags(e); + t && vt(), dt(e, e.typeParameters), pt(e, e.heritageClauses, 0), yt(), ft("{"), pt(e, e.members, 129), ft("}"), t && bt() + } + + function Gt(e) { + ft("{"), pt(e, e.elements, 525136), ft("}") + } + + function Qt(e) { + e.isTypeOnly && (mt("type"), yt()), e.propertyName && (ot(e.propertyName), yt(), ct(128, e.propertyName.end, mt, e), yt()), ot(e.name) + } + + function Xt(e) { + (79 === e.kind ? st : ot)(e) + } + + function Yt(e, t, r) { + var n = 163969; + 1 === t.length && (!Ze || un.nodeIsSynthesized(e) || un.nodeIsSynthesized(t[0]) || un.rangeStartPositionsAreOnSameLine(e, t[0], Ze)) ? (hr(58, r, ft, e), yt(), n &= -130) : ct(58, r, ft, e), pt(e, t, n) + } + + function Zt(e) { + pt(e, un.factory.createNodeArray(e.jsDocPropertyTags), 33) + } + + function $t(e) { + e.typeParameters && pt(e, un.factory.createNodeArray(e.typeParameters), 33), e.parameters && pt(e, un.factory.createNodeArray(e.parameters), 33), e.type && (ht(), yt(), ft("*"), yt(), ot(e.type)) + } + + function er(e) { + ft("@"), ot(e) + } + + function tr(e) { + e = un.getTextOfJSDocComment(e); + e && (yt(), rt(e)) + } + + function rr(e) { + e && (yt(), ft("{"), ot(e.type), ft("}")) + } + + function nr(e) { + ht(); + var t = e.statements; + 0 === t.length || !un.isPrologueDirective(t[0]) || un.nodeIsSynthesized(t[0]) ? zr(e, t, Fe) : Fe(e) + } + + function Ae(e, t, r, n) { + if (e && (u = $e.getTextPos(), Be('/// '), nt && nt.sections.push({ + pos: u, + end: $e.getTextPos(), + kind: "no-default-lib" + }), ht()), Ze && Ze.moduleName && (Be('/// ')), ht()), Ze && Ze.amdDependencies) + for (var i = 0, a = Ze.amdDependencies; i < a.length; i++) { + var o = a[i]; + o.name ? Be('/// ')) : Be('/// ')), ht() + } + for (var s = 0, c = t; s < c.length; s++) { + var l = c[s], + u = $e.getTextPos(); + Be('/// ')), nt && nt.sections.push({ + pos: u, + end: $e.getTextPos(), + kind: "reference", + data: l.fileName + }), ht() + } + for (var _ = 0, d = r; _ < d.length; _++) { + var l = d[_], + u = $e.getTextPos(), + p = l.resolutionMode && l.resolutionMode !== (null == Ze ? void 0 : Ze.impliedNodeFormat) ? 'resolution-mode="'.concat(l.resolutionMode === un.ModuleKind.ESNext ? "import" : "require", '"') : ""; + Be('/// ")), nt && nt.sections.push({ + pos: u, + end: $e.getTextPos(), + kind: l.resolutionMode ? l.resolutionMode === un.ModuleKind.ESNext ? "type-import" : "type-require" : "type", + data: l.fileName + }), ht() + } + for (var f = 0, g = n; f < g.length; f++) { + l = g[f], u = $e.getTextPos(); + Be('/// ')), nt && nt.sections.push({ + pos: u, + end: $e.getTextPos(), + kind: "lib", + data: l.fileName + }), ht() + } + } + + function Fe(e) { + var t, r = e.statements, + n = (kr(e), un.forEach(e.statements, St), Te(e), un.findIndex(r, function(e) { + return !un.isPrologueDirective(e) + })); + (t = e).isDeclarationFile && Ae(t.hasNoDefaultLib, t.referencedFiles, t.typeReferenceDirectives, t.libReferenceDirectives), pt(e, r, 1, void 0, -1 === n ? r.length : n), Nr(e) + } + + function Pe(e, t, r, n) { + for (var i = !!t, a = 0; a < e.length; a++) { + var o, s = e[a]; + if (!un.isPrologueDirective(s)) return a; + r && r.has(s.expression.text) || (i && (i = !1, ue(t)), ht(), o = $e.getTextPos(), ot(s), n && nt && nt.sections.push({ + pos: o, + end: $e.getTextPos(), + kind: "prologue", + data: s.expression.text + }), !r) || r.add(s.expression.text) + } + return e.length + } + + function we(e) { + if (un.isSourceFile(e)) Pe(e.statements, e); + else { + for (var t = new un.Set, r = 0, n = e.prepends; r < n.length; r++) + for (var i = n[r], a = (l = u = c = s = o = a = void 0, i.prologues), o = t, s = 0, c = a; s < c.length; s++) { + var l, u = c[s]; + o.has(u.data) || (ht(), l = $e.getTextPos(), ot(u), nt && nt.sections.push({ + pos: l, + end: $e.getTextPos(), + kind: "prologue", + data: u.data + }), o && o.add(u.data)) + } + for (var _ = 0, d = e.sourceFiles; _ < d.length; _++) { + var p = d[_]; + Pe(p.statements, p, t, !0) + } + ue(void 0) + } + } + + function Ie(e) { + var t; + if (un.isSourceFile(e) || un.isUnparsedSource(e)) return (t = un.getShebang(e.text)) ? (Be(t), ht(), 1) : void 0; + for (var r = 0, n = e.prepends; r < n.length; r++) { + var i = n[r]; + if (un.Debug.assertNode(i, un.isUnparsedSource), Ie(i)) return 1 + } + for (var a = 0, o = e.sourceFiles; a < o.length; a++) + if (Ie(o[a])) return 1 + } + + function ir(e, t) { + var r; + e && (r = rt, rt = t, ot(e), rt = r) + } + + function ar(e, t) { + if (null != t && t.length) { + if (un.every(t, un.isModifier)) return lt(e, t); + if (un.every(t, un.isDecorator)) return pt(e, t, 2146305); + null != P && P(t); + for (var r = void 0, n = void 0, i = 0, a = 0; i < t.length;) { + for (; a < t.length;) { + var o = t[a], + n = un.isDecorator(o) ? "decorators" : "modifiers"; + if (void 0 === r) r = n; + else if (n !== r) break; + a++ + } + var s = { + pos: -1, + end: -1 + }; + 0 === i && (s.pos = t.pos), a === t.length - 1 && (s.end = t.end), Le(ot, e, t, "modifiers" === r ? 2359808 : 2146305, void 0, i, a - i, !1, s), i = a, r = n, a++ + } + null != w && w(t) + } + } + + function lt(e, t) { + pt(e, t, 2359808) + } + + function ut(e) { + e && (ft(":"), yt(), ot(e)) + } + + function or(e, t, r, n) { + e && (yt(), ct(63, t, fr, r), yt(), st(e, n)) + } + + function sr(e) { + e && (yt(), ot(e)) + } + + function cr(e, t) { + e && (yt(), st(e, t)) + } + + function lr(e, t) { + un.isBlock(t) || 1 & un.getEmitFlags(e) ? (yt(), ot(t)) : (ht(), vt(), un.isEmptyStatement(t) ? At(5, t) : ot(t), bt()) + } + + function _t(e, t) { + pt(e, t, 53776, X) + } + + function dt(e, t) { + if (un.isFunctionLike(e) && e.typeArguments) return _t(e, e.typeArguments); + pt(e, t, 53776) + } + + function ur(e, t) { + pt(e, t, 2576) + } + + function _r(e, t) { + var r, n; + r = e, n = t, !(n = un.singleOrUndefined(n)) || n.pos !== r.pos || !un.isArrowFunction(r) || r.type || un.some(r.modifiers) || un.some(r.typeParameters) || un.some(n.modifiers) || n.dotDotDotToken || n.questionToken || n.type || n.initializer || !un.isIdentifier(n.name) ? ur(e, t) : pt(e, t, 528) + } + + function Oe(e) { + switch (60 & e) { + case 0: + break; + case 16: + ft(","); + break; + case 4: + yt(), ft("|"); + break; + case 32: + yt(), ft("*"), yt(); + break; + case 8: + yt(), ft("&") + } + } + + function pt(e, t, r, n, i, a) { + Me(ot, e, t, r, n, i, a) + } + + function dr(e, t, r, n, i, a) { + Me(st, e, t, r, n, i, a) + } + + function Me(e, t, r, n, i, a, o) { + var s; + void 0 === a && (a = 0), void 0 === o && (o = r ? r.length - a : 0), void 0 === r && 16384 & n || ((s = void 0 === r || a >= r.length || 0 === o) && 32768 & n ? (null != P && P(r), null != w && w(r)) : (15360 & n && (ft(_n[15360 & n][0]), s) && r && Qr(r.pos, !0), null != P && P(r), s ? !(1 & n) || tt && (!t || Ze && un.rangeIsOnSingleLine(t, Ze)) ? 256 & n && !(524288 & n) && yt() : ht() : Le(e, t, r, n, i, a, o, r.hasTrailingComma, r), null != w && w(r), 15360 & n && (s && r && Hr(r.end), ft(_n[15360 & n][1])))) + } + + function Le(e, t, r, n, i, a, o, s, c) { + for (var l, u, _ = 0 == (262144 & n), d = _, p = Je(t, r[a], n), f = (p ? (ht(p), d = !1) : 256 & n && yt(), 128 & n && vt(), p = i, 1 === e.length ? dn : "object" == typeof p ? pn : fn), g = !1, m = 0; m < o; m++) { + var y, h = r[a + m]; + 32 & n ? (ht(), Oe(n)) : l && (60 & n && l.end !== (t ? t.end : -1) && Hr(l.end), Oe(n), ne(u), 0 < (y = ze(l, h, n)) ? (0 == (131 & n) && (vt(), g = !0), ht(y), d = !1) : l && 512 & n && yt()), u = re(h), d ? Qr(un.getCommentRange(h).pos) : d = _, v = h.pos, f(h, e, i, m), g && (bt(), g = !1), l = h + } + p = l ? un.getEmitFlags(l) : 0, p = it || !!(1024 & p), s = s && 64 & n && 16 & n, s && (l && !p ? ct(27, l.end, ft, l) : ft(",")), l && (t ? t.end : -1) !== l.end && 60 & n && !p && Hr((s && null != c && c.end ? c : l).end), 128 & n && bt(), ne(u), p = Ue(t, r[a + o - 1], n, c); + p ? ht(p) : 2097408 & n && yt() + } + + function pr(e) { + $e.writeLiteral(e) + } + + function Re(e, t) { + $e.writeSymbol(e, t) + } + + function ft(e) { + $e.writePunctuation(e) + } + + function gt() { + $e.writeTrailingSemicolon(";") + } + + function mt(e) { + $e.writeKeyword(e) + } + + function fr(e) { + $e.writeOperator(e) + } + + function gr(e) { + $e.writeParameter(e) + } + + function Be(e) { + $e.writeComment(e) + } + + function yt() { + $e.writeSpace(" ") + } + + function mr(e) { + $e.writeProperty(e) + } + + function yr(e) { + $e.nonEscapingWrite ? $e.nonEscapingWrite(e) : $e.write(e) + } + + function ht(e) { + void 0 === e && (e = 1); + for (var t = 0; t < e; t++) $e.writeLine(0 < t) + } + + function vt() { + $e.increaseIndent() + } + + function bt() { + $e.decreaseIndent() + } + + function hr(e, t, r, n) { + var i, a, o; + c ? br(e, r, t) : (i = br, c || n && un.isInJsonFile(n) ? i(e, r, t) : (a = (n = n && n.emitNode) && n.flags || 0, o = (n = n && n.tokenSourceMapRanges && n.tokenSourceMapRanges[e]) && n.source || s, t = on(o, n ? n.pos : t), 0 == (128 & a) && 0 <= t && sn(o, t), t = i(e, r, t), n && (t = n.end), 0 == (256 & a) && 0 <= t && sn(o, t))) + } + + function vr(e, t) { + I && I(e), t(un.tokenToString(e.kind)), O && O(e) + } + + function br(e, t, r) { + e = un.tokenToString(e); + return t(e), r < 0 ? r : r + e.length + } + + function xr(e, t, r) { + 1 & un.getEmitFlags(e) ? yt() : tt ? (e = Dt(e, t, r)) ? ht(e) : yt() : ht() + } + + function je(e) { + for (var e = e.split(/\r\n?|\n/g), t = un.guessIndentation(e), r = 0, n = e; r < n.length; r++) { + var i = n[r], + i = t ? i.slice(t) : i; + i.length && (ht(), rt(i)) + } + } + + function xt(e, t) { + e ? (vt(), ht(e)) : t && yt() + } + + function Dr(e, t) { + e && bt(), t && bt() + } + + function Je(t, r, e) { + if (2 & e || tt) { + if (65536 & e) return 1; + if (void 0 === r) return !t || Ze && un.rangeIsOnSingleLine(t, Ze) ? 0 : 1; + if (r.pos === v) return 0; + if (11 === r.kind) return 0; + if (Ze && t && !un.positionIsSynthesized(t.pos) && !un.nodeIsSynthesized(r) && (!r.parent || un.getOriginalNode(r.parent) === un.getOriginalNode(t))) return tt ? Ke(function(e) { + return un.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(r.pos, t.pos, Ze, e) + }) : un.rangeStartPositionsAreOnSameLine(t, r, Ze) ? 0 : 1; + if (Ve(r, e)) return 1 + } + return 1 & e ? 1 : 0 + } + + function ze(t, r, e) { + if (2 & e || tt) { + if (void 0 === t || void 0 === r) return 0; + if (11 === r.kind) return 0; + if (Ze && !un.nodeIsSynthesized(t) && !un.nodeIsSynthesized(r)) return tt && function(e, t) { + if (t.pos < e.end) return; + e = un.getOriginalNode(e), t = un.getOriginalNode(t); + var r = e.parent; + return r && r === t.parent && (r = un.getContainingNodeArray(e), void 0 !== (e = null == r ? void 0 : r.indexOf(e))) && -1 < e && r.indexOf(t) === e + 1 + }(t, r) ? Ke(function(e) { + return un.getLinesBetweenRangeEndAndRangeStart(t, r, Ze, e) + }) : !tt && (n = t, i = r, (n = un.getOriginalNode(n)).parent) && n.parent === un.getOriginalNode(i).parent ? un.rangeEndIsOnSameLineAsRangeStart(t, r, Ze) ? 0 : 1 : 65536 & e ? 1 : 0; + if (Ve(t, e) || Ve(r, e)) return 1 + } else if (un.getStartsOnNewLine(r)) return 1; + var n, i; + return 1 & e ? 1 : 0 + } + + function Ue(t, e, r, n) { + if (2 & r || tt) { + if (65536 & r) return 1; + if (void 0 === e) return !t || Ze && un.rangeIsOnSingleLine(t, Ze) ? 0 : 1; + var i; + if (Ze && t && !un.positionIsSynthesized(t.pos) && !un.nodeIsSynthesized(e) && (!e.parent || e.parent === t)) return tt ? (i = (n && !un.positionIsSynthesized(n.end) ? n : e).end, Ke(function(e) { + return un.getLinesBetweenPositionAndNextNonWhitespaceCharacter(i, t.end, Ze, e) + })) : un.rangeEndPositionsAreOnSameLine(t, e, Ze) ? 0 : 1; + if (Ve(e, r)) return 1 + } + return 1 & r && !(131072 & r) ? 1 : 0 + } + + function Ke(e) { + un.Debug.assert(!!tt); + var t = e(!0); + return 0 === t ? e(!1) : t + } + + function Sr(e, t) { + t = tt && Je(t, e, 0); + return t && xt(t, !1), !!t + } + + function Tr(e, t) { + t = tt && Ue(t, e, 0, void 0); + t && ht(t) + } + + function Ve(e, t) { + return !un.nodeIsSynthesized(e) || void 0 === (e = un.getStartsOnNewLine(e)) ? 0 != (65536 & t) : e + } + + function Dt(e, t, r) { + return 131072 & un.getEmitFlags(e) ? 0 : (e = qe(e), t = qe(t), r = qe(r), un.getStartsOnNewLine(r) ? 1 : !Ze || un.nodeIsSynthesized(e) || un.nodeIsSynthesized(t) || un.nodeIsSynthesized(r) ? 0 : tt ? Ke(function(e) { + return un.getLinesBetweenRangeEndAndRangeStart(t, r, Ze, e) + }) : un.rangeEndIsOnSameLineAsRangeStart(t, r, Ze) ? 0 : 1) + } + + function Cr(e) { + return 0 === e.statements.length && (!Ze || un.rangeEndIsOnSameLineAsRangeStart(e, e, Ze)) + } + + function qe(e) { + for (; 214 === e.kind && un.nodeIsSynthesized(e);) e = e.expression; + return e + } + + function We(e, t) { + if (un.isGeneratedIdentifier(e) || un.isGeneratedPrivateIdentifier(e)) return Ge(e); + if (un.isStringLiteral(e) && e.textSourceNode) return We(e.textSourceNode, t); + var r = Ze, + n = !!r && !!e.parent && !un.nodeIsSynthesized(e); + if (un.isMemberName(e)) { + if (!n || un.getSourceFileOfNode(e) !== un.getOriginalNode(r)) return un.idText(e) + } else if (un.Debug.assertNode(e, un.isLiteralExpression), !n) return e.text; + return un.getSourceTextOfNodeFromSourceFile(r, e, t) + } + + function Er(e, t, r) { + var n, i; + return 10 === e.kind && e.textSourceNode ? (n = e.textSourceNode, un.isIdentifier(n) || un.isPrivateIdentifier(n) || un.isNumericLiteral(n) ? (i = un.isNumericLiteral(n) ? n.text : We(n), r ? '"'.concat(un.escapeJsxAttributeString(i), '"') : t || 16777216 & un.getEmitFlags(e) ? '"'.concat(un.escapeString(i), '"') : '"'.concat(un.escapeNonAsciiString(i), '"')) : Er(n, t, r)) : (i = (t ? 1 : 0) | (r ? 2 : 0) | (h.terminateUnterminatedLiterals ? 4 : 0) | (h.target && 99 === h.target ? 8 : 0), un.getLiteralText(e, Ze, i)) + } + + function kr(e) { + e && 524288 & un.getEmitFlags(e) || (g.push(m), m = 0, a.push(f), f = 0, i.push(u), u = void 0, y.push(t)) + } + + function Nr(e) { + e && 524288 & un.getEmitFlags(e) || (m = g.pop(), f = a.pop(), u = i.pop(), t = y.pop()) + } + + function He(e) { + (t = t && t !== un.lastOrUndefined(y) ? t : new un.Set).add(e) + } + + function St(e) { + if (e) switch (e.kind) { + case 238: + un.forEach(e.statements, St); + break; + case 253: + case 251: + case 243: + case 244: + St(e.statement); + break; + case 242: + St(e.thenStatement), St(e.elseStatement); + break; + case 245: + case 247: + case 246: + St(e.initializer), St(e.statement); + break; + case 252: + St(e.caseBlock); + break; + case 266: + un.forEach(e.clauses, St); + break; + case 292: + case 293: + un.forEach(e.statements, St); + break; + case 255: + St(e.tryBlock), St(e.catchClause), St(e.finallyBlock); + break; + case 295: + St(e.variableDeclaration), St(e.block); + break; + case 240: + St(e.declarationList); + break; + case 258: + un.forEach(e.declarations, St); + break; + case 257: + case 166: + case 205: + case 260: + Fr(e.name); + break; + case 259: + Fr(e.name), 524288 & un.getEmitFlags(e) && (un.forEach(e.parameters, St), St(e.body)); + break; + case 203: + case 204: + un.forEach(e.elements, St); + break; + case 269: + St(e.importClause); + break; + case 270: + Fr(e.name), St(e.namedBindings); + break; + case 271: + case 277: + Fr(e.name); + break; + case 272: + un.forEach(e.elements, St); + break; + case 273: + Fr(e.propertyName || e.name) + } + } + + function Ar(e) { + if (e) switch (e.kind) { + case 299: + case 300: + case 169: + case 171: + case 174: + case 175: + Fr(e.name) + } + } + + function Fr(e) { + e && (un.isGeneratedIdentifier(e) || un.isGeneratedPrivateIdentifier(e) ? Ge(e) : un.isBindingPattern(e) && St(e)) + } + + function Ge(e) { + var t; + return 4 == (7 & e.autoGenerateFlags) ? Qe(un.getNodeForGeneratedName(e), un.isPrivateIdentifier(e), e.autoGenerateFlags, e.autoGeneratePrefix, e.autoGenerateSuffix) : (t = e.autoGenerateId, r[t] || (r[t] = function(e) { + var t = un.formatGeneratedNamePart(e.autoGeneratePrefix, Ge), + r = un.formatGeneratedNamePart(e.autoGenerateSuffix); + switch (7 & e.autoGenerateFlags) { + case 1: + return Pr(0, !!(8 & e.autoGenerateFlags), un.isPrivateIdentifier(e), t, r); + case 2: + return un.Debug.assertNode(e, un.isIdentifier), Pr(268435456, !!(8 & e.autoGenerateFlags), !1, t, r); + case 3: + return wr(un.idText(e), 32 & e.autoGenerateFlags ? Xe : _, !!(16 & e.autoGenerateFlags), !!(8 & e.autoGenerateFlags), un.isPrivateIdentifier(e), t, r) + } + return un.Debug.fail("Unsupported GeneratedIdentifierKind: ".concat(un.Debug.formatEnum(7 & e.autoGenerateFlags, un.GeneratedIdentifierFlags, !0), ".")) + }(e))) + } + + function Qe(e, t, r, n, i) { + var a = un.getNodeId(e); + return d[a] || (d[a] = function(e, t, r, n, i) { + switch (e.kind) { + case 79: + case 80: + return wr(We(e), _, !!(16 & r), !!(8 & r), t, n, i); + case 264: + case 263: + return un.Debug.assert(!n && !i && !t), + function(e) { + var t = We(e.name); + return function(e, t) { + for (var r = t; un.isNodeDescendantOf(r, t); r = r.nextContainer) + if (r.locals) { + var n = r.locals.get(un.escapeLeadingUnderscores(e)); + if (n && 3257279 & n.flags) return + } + return 1 + }(t, e) ? t : wr(t, _, !1, !1, !1, "", "") + }(e); + case 269: + case 275: + return un.Debug.assert(!n && !i && !t), + function(e) { + e = un.getExternalModuleName(e); + return wr(un.isStringLiteral(e) ? un.makeIdentifierFromModuleName(e.text) : "module", _, !1, !1, !1, "", "") + }(e); + case 259: + case 260: + case 274: + return un.Debug.assert(!n && !i && !t), wr("default", _, !1, !1, !1, "", ""); + case 228: + return un.Debug.assert(!n && !i && !t), wr("class", _, !1, !1, !1, "", ""); + case 171: + case 174: + case 175: + return function(e, t, r, n) { + if (un.isIdentifier(e.name)) return Qe(e.name, t); + return Pr(0, !1, t, r, n) + }(e, t, n, i); + case 164: + return Pr(0, !0, t, n, i); + default: + return Pr(0, !1, t, n, i) + } + }(e, t, null != r ? r : 0, un.formatGeneratedNamePart(n, Ge), un.formatGeneratedNamePart(i))) + } + + function _(e) { + return Xe(e) && !p.has(e) && !(t && t.has(e)) + } + + function Xe(e) { + return !Ze || un.isFileLevelUniqueName(Ze, e, C) + } + + function Ye(e, t) { + switch (e) { + case "": + m = t; + break; + case "#": + f = t; + break; + default: + (u = null != u ? u : new un.Map).set(e, t) + } + } + + function Pr(e, t, r, n, i) { + 0 < n.length && 35 === n.charCodeAt(0) && (n = n.slice(1)); + var a = un.formatGeneratedName(r, n, "", i), + o = function(e) { + var t; + switch (e) { + case "": + return m; + case "#": + return f; + default: + return null != (t = null == u ? void 0 : u.get(e)) ? t : 0 + } + }(a); + if (e && !(o & e)) { + var s = 268435456 === e ? "_i" : "_n"; + if (_(l = un.formatGeneratedName(r, n, s, i))) return o |= e, t && He(l), Ye(a, o), l + } + for (;;) { + var c = 268435455 & o; + if (o++, 8 != c && 13 != c) { + var l, s = c < 26 ? "_" + String.fromCharCode(97 + c) : "_" + (c - 26); + if (_(l = un.formatGeneratedName(r, n, s, i))) return t && He(l), Ye(a, o), l + } + } + } + + function wr(e, t, r, n, i, a, o) { + if ((void 0 === t && (t = _), 0 < e.length && 35 === e.charCodeAt(0) && (e = e.slice(1)), 0 < a.length && 35 === a.charCodeAt(0) && (a = a.slice(1)), r) && t(s = un.formatGeneratedName(i, a, e, o))) return n ? He(s) : p.add(s), s; + 95 !== e.charCodeAt(e.length - 1) && (e += "_"); + for (var s, c = 1;;) { + if (t(s = un.formatGeneratedName(i, a, e + c, o))) return n ? He(s) : p.add(s), s; + c++ + } + } + + function Ir(e) { + return wr(e, Xe, !0, !1, !1, "", "") + } + + function Or(e, t) { + var r = be(2, e, t), + n = V, + i = q, + a = W; + Mr(t), r(e, t), Lr(t, n, i, a) + } + + function Mr(e) { + var t = un.getEmitFlags(e), + r = un.getCommentRange(e), + n = t, + i = r.pos, + r = r.end, + a = (G(), H = !1, i < 0 || 0 != (512 & n) || 11 === e.kind), + o = r < 0 || 0 != (1024 & n) || 11 === e.kind; + (0 < i || 0 < r) && i !== r && (a || Ur(i, 352 !== e.kind), (!a || 0 <= i && 0 != (512 & n)) && (V = i), !o || 0 <= r && 0 != (1024 & n)) && (q = r, 258 === e.kind) && (W = r), un.forEach(un.getSyntheticLeadingComments(e), Br), Q(), 2048 & t && (it = !0) + } + + function Lr(e, t, r, n) { + var i = un.getEmitFlags(e), + a = un.getCommentRange(e), + a = (2048 & i && (it = !1), Rr(e, i, a.pos, a.end, t, r, n), un.getTypeNode(e)); + a && Rr(e, i, a.pos, a.end, t, r, n) + } + + function Rr(e, t, r, n, i, a, o) { + G(); + t = n < 0 || 0 != (1024 & t) || 11 === e.kind; + un.forEach(un.getSyntheticTrailingComments(e), jr), (0 < r || 0 < n) && r !== n && (V = i, q = a, W = o, t || 352 === e.kind || $r(n, Gr)), Q() + } + + function Br(e) { + !e.hasLeadingNewline && 2 !== e.kind || $e.writeLine(), Jr(e), e.hasTrailingNewLine || 2 === e.kind ? $e.writeLine() : $e.writeSpace(" ") + } + + function jr(e) { + $e.isAtStartOfLine() || $e.writeSpace(" "), Jr(e), e.hasTrailingNewLine && $e.writeLine() + } + + function Jr(e) { + var t = 3 === (t = e).kind ? "/*".concat(t.text, "*/") : "//".concat(t.text), + e = 3 === e.kind ? un.computeLineStarts(t) : void 0; + un.writeCommentRange(t, e, $e, 0, t.length, M) + } + + function zr(e, t, r) { + G(); + var n = t.pos, + i = t.end, + a = un.getEmitFlags(e), + i = it || i < 0 || 0 != (1024 & a); + !(n < 0 || 0 != (512 & a)) && (n = t, n = Ze && un.emitDetachedComments(Ze.text, pe(), $e, en, n, M, it)) && (o ? o.push(n) : o = [n]), Q(), 2048 & a && !it ? (it = !0, r(e), it = !1) : r(e), G(), i || (Ur(t.end, !0), H && !$e.isAtStartOfLine() && $e.writeLine()), Q() + } + + function Ur(e, t) { + H = !1, t ? 0 === e && null != Ze && Ze.isDeclarationFile ? Zr(e, Vr) : Zr(e, Wr) : 0 === e && Zr(e, Kr) + } + + function Kr(e, t, r, n, i) { + tn(e, t) && Wr(e, t, r, n, i) + } + + function Vr(e, t, r, n, i) { + tn(e, t) || Wr(e, t, r, n, i) + } + + function qr(e, t) { + return !h.onlyPrintJsDocStyle || un.isJSDocLikeText(e, t) || un.isPinnedComment(e, t) + } + + function Wr(e, t, r, n, i) { + Ze && qr(Ze.text, e) && (H || (un.emitNewLineBeforeLeadingCommentOfPosition(pe(), $e, i, e), H = !0), l(e), un.writeCommentRange(Ze.text, pe(), $e, e, t, M), l(t), n ? $e.writeLine() : 3 === r && $e.writeSpace(" ")) + } + + function Hr(e) { + it || -1 === e || Ur(e, !0) + } + + function Gr(e, t, r, n) { + Ze && qr(Ze.text, e) && ($e.isAtStartOfLine() || $e.writeSpace(" "), l(e), un.writeCommentRange(Ze.text, pe(), $e, e, t, M), l(t), n) && $e.writeLine() + } + + function Qr(e, t, r) { + it || (G(), $r(e, t ? Gr : r ? Xr : Yr), Q()) + } + + function Xr(e, t, r) { + Ze && (l(e), un.writeCommentRange(Ze.text, pe(), $e, e, t, M), l(t), 2 === r) && $e.writeLine() + } + + function Yr(e, t, r, n) { + Ze && (l(e), un.writeCommentRange(Ze.text, pe(), $e, e, t, M), l(t), n ? $e.writeLine() : $e.writeSpace(" ")) + } + + function Zr(e, t) { + var r, n; + !Ze || -1 !== V && e === V || (n = e, void 0 !== o && un.last(o).nodePos === n ? (n = t, Ze && (r = un.last(o).detachedCommentEndPos, o.length - 1 ? o.pop() : o = void 0, un.forEachLeadingCommentRange(Ze.text, r, n, r))) : un.forEachLeadingCommentRange(Ze.text, e, t, e)) + } + + function $r(e, t) { + Ze && (-1 === q || e !== q && e !== W) && un.forEachTrailingCommentRange(Ze.text, e, t) + } + + function en(e, t, r, n, i, a) { + Ze && qr(Ze.text, n) && (l(n), un.writeCommentRange(e, t, r, n, i, a), l(i)) + } + + function tn(e, t) { + return Ze && un.isRecognizedTripleSlashComment(Ze.text, e, t) + } + + function rn(e, t) { + var r = be(3, e, t); + nn(t), r(e, t), an(t) + } + + function nn(e) { + var t, r = un.getEmitFlags(e), + n = un.getSourceMapRange(e); + un.isUnparsedNode(e) ? (un.Debug.assertIsDefined(e.parent, "UnparsedNodes must have parent pointers"), void 0 === (t = e.parent).parsedSourceMap && void 0 !== t.sourceMapText && (t.parsedSourceMap = un.tryParseRawSourceMap(t.sourceMapText) || !1), (t = t.parsedSourceMap || void 0) && D && D.appendSourceMap($e.getLine(), $e.getColumn(), t, e.parent.sourceMapPath, e.parent.getLineAndCharacterOfPosition(e.pos), e.parent.getLineAndCharacterOfPosition(e.end))) : (t = n.source || s, 352 !== e.kind && 0 == (16 & r) && 0 <= n.pos && sn(n.source || s, on(t, n.pos)), 64 & r && (c = !0)) + } + + function an(e) { + var t = un.getEmitFlags(e), + r = un.getSourceMapRange(e); + un.isUnparsedNode(e) || (64 & t && (c = !1), 352 !== e.kind && 0 == (32 & t) && 0 <= r.end && sn(r.source || s, r.end)) + } + + function on(e, t) { + return e.skipTrivia ? e.skipTrivia(t) : un.skipTrivia(e.text, t) + } + + function l(e) { + var t; + c || un.positionIsSynthesized(e) || ln(s) || (t = (e = un.getLineAndCharacterOfPosition(s, e)).line, e = e.character, D.addMapping($e.getLine(), $e.getColumn(), U, t, e, void 0)) + } + + function sn(e, t) { + var r, n; + e !== s ? (r = s, n = U, cn(e), l(t), s = r, U = n) : l(t) + } + + function cn(e) { + c || ((s = e) === S ? U = K : ln(e) || (U = D.addSource(e.fileName), h.inlineSources && D.setSourceContent(U, e.text), S = e, K = U)) + } + + function ln(e) { + return un.fileExtensionIs(e.fileName, ".json") + } + } + + function dn(e, t, r, n) { + t(e) + } + + function pn(e, t, r, n) { + t(e, r.select(n)) + } + + function fn(e, t, r, n) { + t(e, r) + } + un.isBuildInfoFile = function(e) { + return un.fileExtensionIs(e, ".tsbuildinfo") + }, un.forEachEmittedFile = n, un.getTsBuildInfoEmitOutputFilePath = d, un.getOutputPathsForBundle = k, un.getOutputPathsFor = p, un.getOutputExtension = c, un.getOutputDeclarationFileName = l, un.getCommonSourceDirectory = i, un.getCommonSourceDirectoryOfConfig = m, un.getAllProjectOutputs = function(e, t) { + var r = (n = _()).addOutput, + n = n.getOutputs; + if (un.outFile(e.options)) f(e, r); + else { + for (var i = un.memoize(function() { + return m(e, t) + }), a = 0, o = e.fileNames; a < o.length; a++) { + var s = o[a]; + g(e, s, t, r, i) + } + r(d(e.options)) + } + return n() + }, un.getOutputFileNames = function(e, t, r) { + t = un.normalizePath(t), un.Debug.assert(un.contains(e.fileNames, t), "Expected fileName to be present in command line"); + var n = (i = _()).addOutput, + i = i.getOutputs; + return un.outFile(e.options) ? f(e, n) : g(e, t, r, n), i() + }, un.getFirstProjectOutput = function(e, t) { + if (un.outFile(e.options)) return a = k(e.options, !1).jsFilePath, un.Debug.checkDefined(a, "project ".concat(e.options.configFilePath, " expected to have at least one output")); + for (var r = un.memoize(function() { + return m(e, t) + }), n = 0, i = e.fileNames; n < i.length; n++) { + var a, o = i[n]; + if (!un.isDeclarationFileName(o)) { + if (a = u(o, e, t, r)) return a; + if (!un.fileExtensionIs(o, ".json") && un.getEmitDeclarations(e.options)) return l(o, e, t, r) + } + } + var s = d(e.options); + return s || un.Debug.fail("project ".concat(e.options.configFilePath, " expected to have at least one output")) + }, un.emitFiles = N, un.getBuildInfoText = A, un.getBuildInfo = F, un.notImplementedResolver = { + hasGlobalName: un.notImplemented, + getReferencedExportContainer: un.notImplemented, + getReferencedImportDeclaration: un.notImplemented, + getReferencedDeclarationWithCollidingName: un.notImplemented, + isDeclarationWithCollidingName: un.notImplemented, + isValueAliasDeclaration: un.notImplemented, + isReferencedAliasDeclaration: un.notImplemented, + isTopLevelValueImportEqualsWithEntityName: un.notImplemented, + getNodeCheckFlags: un.notImplemented, + isDeclarationVisible: un.notImplemented, + isLateBound: function(e) { + return !1 + }, + collectLinkedAliases: un.notImplemented, + isImplementationOfOverload: un.notImplemented, + isRequiredInitializedParameter: un.notImplemented, + isOptionalUninitializedParameterProperty: un.notImplemented, + isExpandoFunctionDeclaration: un.notImplemented, + getPropertiesOfContainerFunction: un.notImplemented, + createTypeOfDeclaration: un.notImplemented, + createReturnTypeOfSignatureDeclaration: un.notImplemented, + createTypeOfExpression: un.notImplemented, + createLiteralConstValue: un.notImplemented, + isSymbolAccessible: un.notImplemented, + isEntityNameVisible: un.notImplemented, + getConstantValue: un.notImplemented, + getReferencedValueDeclaration: un.notImplemented, + getTypeReferenceSerializationKind: un.notImplemented, + isOptionalParameter: un.notImplemented, + moduleExportsSomeValue: un.notImplemented, + isArgumentsLocalBinding: un.notImplemented, + getExternalModuleFileFromDeclaration: un.notImplemented, + getTypeReferenceDirectivesForEntityName: un.notImplemented, + getTypeReferenceDirectivesForSymbol: un.notImplemented, + isLiteralConstDeclaration: un.notImplemented, + getJsxFactoryEntity: un.notImplemented, + getJsxFragmentFactoryEntity: un.notImplemented, + getAllAccessorDeclarations: un.notImplemented, + getSymbolOfExternalModuleSpecifier: un.notImplemented, + isBindingCapturedByNode: un.notImplemented, + getDeclarationStatementsForSourceFile: un.notImplemented, + isImportRequiredByAugmentation: un.notImplemented + }, un.emitUsingBuildInfo = function(u, t, e, r) { + var _, d, p, f, g, n, i, m, a, o, s, c, l, y, h, v, b = un.maybeBind(t, t.createHash), + x = (E = k(u.options, !1)).buildInfoPath, + D = E.jsFilePath, + S = E.sourceMapFilePath, + T = E.declarationFilePath, + C = E.declarationMapPath; + if (t.getBuildInfo) _ = t.getBuildInfo(x, u.options.configFilePath); + else { + var E = t.readFile(x); + if (!E) return x; + _ = F(x, E) + } + return !_ || !_.bundle || !_.bundle.js || T && !_.bundle.dts ? x : !(d = t.readFile(un.Debug.checkDefined(D))) || un.computeSignature(d, b) !== _.bundle.js.hash ? D : (p = S && t.readFile(S), S && !p || u.options.inlineSourceMap ? S || "inline sourcemap decoding" : S && un.computeSignature(p, b) !== _.bundle.js.mapHash ? S : (f = T && t.readFile(T), T && !f || T && un.computeSignature(f, b) !== _.bundle.dts.hash ? T : (g = C && t.readFile(C), C && !g || u.options.inlineSourceMap ? C || "inline sourcemap decoding" : C && un.computeSignature(g, b) !== _.bundle.dts.mapHash ? C : (n = un.getDirectoryPath(un.getNormalizedAbsolutePath(x, t.getCurrentDirectory())), i = un.createInputFiles(d, f, S, p, C, g, D, T, x, _, !0), m = [], a = un.createPrependNodes(u.projectReferences, e, function(e) { + return t.readFile(e) + }), E = _.bundle, s = n, c = t, e = un.Debug.checkDefined(E.js), l = (null == (v = e.sources) ? void 0 : v.prologues) && un.arrayToMap(e.sources.prologues, function(e) { + return e.file + }), o = E.sourceFiles.map(function(e, t) { + var t = null == l ? void 0 : l.get(t), + r = null == t ? void 0 : t.directives.map(function(e) { + var t = un.setTextRange(un.factory.createStringLiteral(e.expression.text), e.expression), + e = un.setTextRange(un.factory.createExpressionStatement(t), e); + return un.setParent(t, e), e + }), + n = un.factory.createToken(1), + r = un.factory.createSourceFile(null != r ? r : [], n, 0); + return r.fileName = un.getRelativePathFromDirectory(c.getCurrentDirectory(), un.getNormalizedAbsolutePath(e, s), !c.useCaseSensitiveFileNames()), r.text = null != (e = null == t ? void 0 : t.text) ? e : "", un.setTextRangePosWidth(r, 0, null != (e = null == t ? void 0 : t.text.length) ? e : 0), un.setEachParent(r.statements, r), un.setTextRangePosWidth(n, r.end, 0), un.setParent(n, r), r + }), v = { + getPrependNodes: un.memoize(function() { + return __spreadArray(__spreadArray([], a, !0), [i], !1) + }), + getCanonicalFileName: t.getCanonicalFileName, + getCommonSourceDirectory: function() { + return un.getNormalizedAbsolutePath(_.bundle.commonSourceDirectory, n) + }, + getCompilerOptions: function() { + return u.options + }, + getCurrentDirectory: function() { + return t.getCurrentDirectory() + }, + getNewLine: function() { + return t.getNewLine() + }, + getSourceFile: un.returnUndefined, + getSourceFileByPath: un.returnUndefined, + getSourceFiles: function() { + return o + }, + getLibFileFromReference: un.notImplemented, + isSourceFileFromExternalLibrary: un.returnFalse, + getResolvedProjectReferenceToRedirect: un.returnUndefined, + getProjectReferenceRedirect: un.returnUndefined, + isSourceOfProjectReferenceRedirect: un.returnFalse, + writeFile: function(e, t, r, n, i, a) { + switch (e) { + case D: + if (d === t) return; + break; + case S: + if (p === t) return; + break; + case x: + var o = a.buildInfo, + s = (o.program = _.program, o.program && void 0 !== y && u.options.composite && (o.program.outSignature = un.computeSignature(y, b, h)), _.bundle), + c = s.js, + l = s.dts, + s = s.sourceFiles; + return o.bundle.js.sources = c.sources, l && (o.bundle.dts.sources = l.sources), o.bundle.sourceFiles = s, void m.push({ + name: e, + text: A(o), + writeByteOrderMark: r, + buildInfo: o + }); + case T: + if (f === t) return; + y = t, h = a; + break; + case C: + if (g === t) return; + break; + default: + un.Debug.fail("Unexpected path: ".concat(e)) + } + m.push({ + name: e, + text: t, + writeByteOrderMark: r + }) + }, + isEmitBlocked: un.returnFalse, + readFile: function(e) { + return t.readFile(e) + }, + fileExists: function(e) { + return t.fileExists(e) + }, + useCaseSensitiveFileNames: function() { + return t.useCaseSensitiveFileNames() + }, + getProgramBuildInfo: un.returnUndefined, + getSourceFileFromReference: un.returnUndefined, + redirectTargetsMap: un.createMultiMap(), + getFileIncludeReasons: un.notImplemented, + createHash: b + }, N(un.notImplementedResolver, v, void 0, un.getTransformers(u.options, r)), m)))) + }, un.createPrinter = C + }(ts = ts || {}), ! function(y) { + var i, e; + + function t(e) { + e.watcher.close() + } + y.createCachedDirectoryStructureHost = function(l, u, _) { + var o, a; + if (l.getDirectories && l.readDirectory) return o = new y.Map, a = y.createGetCanonicalFileName(_), { + useCaseSensitiveFileNames: _, + fileExists: function(e) { + var t = c(d(e)); + return t && n(t.sortedAndCanonicalizedFiles, a(p(e))) || l.fileExists(e) + }, + readFile: function(e, t) { + return l.readFile(e, t) + }, + directoryExists: l.directoryExists && function(e) { + var t = d(e); + return o.has(y.ensureTrailingDirectorySeparator(t)) || l.directoryExists(e) + }, + getDirectories: function(e) { + var t = d(e), + t = f(e, t); + if (t) return t.directories.slice(); + return l.getDirectories(e) + }, + readDirectory: function(e, t, r, n, i) { + var a, o = d(e), + s = f(e, o); + return void 0 === s ? l.readDirectory(e, t, r, n, i) : y.matchFiles(e, t, r, n, _, u, i, function(e) { + var t = d(e); + if (t === o) return s || c(e, t); + var r = f(e, t); + return void 0 !== r ? r || c(e, t) : y.emptyFileSystemEntries + }, g); + + function c(e, t) { + return a && t === o ? a : (e = { + files: y.map(l.readDirectory(e, void 0, void 0, ["*.*"]), p) || y.emptyArray, + directories: l.getDirectories(e) || y.emptyArray + }, t === o && (a = e), e) + } + }, + createDirectory: l.createDirectory && function(e) { + var t = c(d(e)); { + var r, n, i; + t && (r = p(e), n = a(r), i = t.sortedAndCanonicalizedDirectories, y.insertSorted(i, n, y.compareStringsCaseSensitive)) && t.directories.push(r) + } + l.createDirectory(e) + }, + writeFile: l.writeFile && function(e, t, r) { + var n = c(d(e)); + n && i(n, p(e), !0); + return l.writeFile(e, t, r) + }, + addOrDeleteFileOrDirectory: function(e, t) { + if (void 0 !== s(t)) return void m(); + var r = c(t); + if (!r) return; + if (!l.directoryExists) return void m(); + e = p(e), t = { + fileExists: l.fileExists(t), + directoryExists: l.directoryExists(t) + }; + t.directoryExists || n(r.sortedAndCanonicalizedDirectories, a(e)) ? m() : i(r, e, t.fileExists); + return t + }, + addOrDeleteFile: function(e, t, r) { + r !== y.FileWatcherEventKind.Changed && (t = c(t)) && i(t, p(e), r === y.FileWatcherEventKind.Created) + }, + clearCache: m, + realpath: l.realpath && g + }; + + function d(e) { + return y.toPath(e, u, a) + } + + function s(e) { + return o.get(y.ensureTrailingDirectorySeparator(e)) + } + + function c(e) { + e = s(y.getDirectoryPath(e)); + return e && !e.sortedAndCanonicalizedFiles && (e.sortedAndCanonicalizedFiles = e.files.map(a).sort(), e.sortedAndCanonicalizedDirectories = e.directories.map(a).sort()), e + } + + function p(e) { + return y.getBaseFileName(y.normalizePath(e)) + } + + function f(e, t) { + var r, n, i, a = s(t = y.ensureTrailingDirectorySeparator(t)); + if (a) return a; + try { + return r = e, n = t, l.realpath && y.ensureTrailingDirectorySeparator(d(l.realpath(r))) !== n ? null != (i = l.directoryExists) && i.call(l, r) ? (o.set(n, !1), !1) : void 0 : (i = { + files: y.map(l.readDirectory(r, void 0, void 0, ["*.*"]), p) || [], + directories: l.getDirectories(r) || [] + }, o.set(y.ensureTrailingDirectorySeparator(n), i), i) + } catch (e) { + y.Debug.assert(!o.has(y.ensureTrailingDirectorySeparator(t))) + } + } + + function n(e, t) { + return 0 <= y.binarySearch(e, t, y.identity, y.compareStringsCaseSensitive) + } + + function g(e) { + return l.realpath ? l.realpath(e) : e + } + + function i(e, t, r) { + var n = e.sortedAndCanonicalizedFiles, + i = a(t); + r ? y.insertSorted(n, i, y.compareStringsCaseSensitive) && e.files.push(t) : 0 <= (r = y.binarySearch(n, i, y.identity, y.compareStringsCaseSensitive)) && (n.splice(r, 1), t = e.files.findIndex(function(e) { + return a(e) === i + }), e.files.splice(t, 1)) + } + + function m() { + o.clear() + } + }, (e = y.ConfigFileProgramReloadLevel || (y.ConfigFileProgramReloadLevel = {}))[e.None = 0] = "None", e[e.Partial = 1] = "Partial", e[e.Full = 2] = "Full", y.updateSharedExtendedConfigFileWatcher = function(n, e, i, a, t) { + var r = y.arrayToMap((null == (e = null == e ? void 0 : e.configFile) ? void 0 : e.extendedSourceFiles) || y.emptyArray, t); + i.forEach(function(e, t) { + r.has(t) || (e.projects.delete(n), e.close()) + }), r.forEach(function(e, t) { + var r = i.get(t); + r ? r.projects.add(n) : i.set(t, { + projects: new y.Set([n]), + watcher: a(e, t), + close: function() { + var e = i.get(t); + e && 0 === e.projects.size && (e.watcher.close(), i.delete(t)) + } + }) + }) + }, y.clearSharedExtendedConfigFileWatcher = function(t, e) { + e.forEach(function(e) { + e.projects.delete(t) && e.close() + }) + }, y.cleanExtendedConfigCache = function r(n, i, a) { + n.delete(i) && n.forEach(function(e, t) { + null != (e = e.extendedResult.extendedSourceFiles) && e.some(function(e) { + return a(e) === i + }) && r(n, t, a) + }) + }, y.updatePackageJsonWatch = function(e, t, r) { + e = new y.Map(e), y.mutateMap(t, e, { + createNewValue: r, + onDeleteValue: y.closeFileWatcher + }) + }, y.updateMissingFilePathsWatch = function(e, t, r) { + e = e.getMissingFilePaths(), e = y.arrayToMap(e, y.identity, y.returnTrue), y.mutateMap(t, e, { + createNewValue: r, + onDeleteValue: y.closeFileWatcher + }) + }, y.updateWatchingWildcardDirectories = function(n, e, r) { + function i(e, t) { + return { + watcher: r(e, t), + flags: t + } + } + y.mutateMap(n, e, { + createNewValue: i, + onDeleteValue: t, + onExistingValue: function(e, t, r) { + e.flags !== t && (e.watcher.close(), n.set(r, i(r, t))) + } + }) + }, y.isIgnoredFileFromWildCardWatching = function(e) { + var t = e.watchedDirPath, + r = e.fileOrDirectory, + n = e.fileOrDirectoryPath, + i = e.configFileName, + a = e.options, + o = e.program, + s = e.extraFileExtensions, + c = e.currentDirectory, + l = e.useCaseSensitiveFileNames, + u = e.writeLog, + _ = e.toPath; + if (!(e = y.removeIgnoredPath(n))) return u("Project: ".concat(i, " Detected ignored path: ").concat(r)), !0; + if ((n = e) === t) return !1; + if (y.hasExtension(n) && !y.isSupportedSourceFileName(r, a, s)) return u("Project: ".concat(i, " Detected file add/remove of non supported extension: ").concat(r)), !0; + if (y.isExcludedFile(r, a.configFile.configFileSpecs, y.getNormalizedAbsolutePath(y.getDirectoryPath(i), c), l, c)) return u("Project: ".concat(i, " Detected excluded file: ").concat(r)), !0; + if (!o) return !1; + if (y.outFile(a) || a.outDir) return !1; + if (y.isDeclarationFileName(n)) { + if (a.declarationDir) return !1 + } else if (!y.fileExtensionIsOneOf(n, y.supportedJSExtensionsFlat)) return !1; + var e = y.removeFileExtension(n), + d = y.isArray(o) ? void 0 : o.getState ? o.getProgramOrUndefined() : o, + p = d || y.isArray(o) ? void 0 : o; + return !(!f(e + ".ts") && !f(e + ".tsx") || (u("Project: ".concat(i, " Detected output file: ").concat(r)), 0)); + + function f(t) { + return d ? d.getSourceFileByPath(t) : p ? p.getState().fileInfos.has(t) : y.find(o, function(e) { + return _(e) === t + }) + } + }, y.isEmittedFileOfProgram = function(e, t) { + return !!e && e.isEmittedFile(t) + }, (e = i = y.WatchLogLevel || (y.WatchLogLevel = {}))[e.None = 0] = "None", e[e.TriggerOnly = 1] = "TriggerOnly", e[e.Verbose = 2] = "Verbose", y.getWatchFactory = function(c, e, _, d) { + y.setSysLog(e === i.Verbose ? _ : y.noop); + var t = { + watchFile: function(e, t, r, n) { + return c.watchFile(e, t, r, n) + }, + watchDirectory: function(e, t, r, n) { + return c.watchDirectory(e, t, 0 != (1 & r), n) + } + }, + l = e !== i.None ? { + watchFile: n("watchFile"), + watchDirectory: n("watchDirectory") + } : void 0, + u = e === i.Verbose ? { + watchFile: function(e, t, r, n, i, a) { + _("FileWatcher:: Added:: ".concat(f(e, r, n, i, a, d))); + var o = l.watchFile(e, t, r, n, i, a); + return { + close: function() { + _("FileWatcher:: Close:: ".concat(f(e, r, n, i, a, d))), o.close() + } + } + }, + watchDirectory: function(r, e, n, i, a, o) { + var t = "DirectoryWatcher:: Added:: ".concat(f(r, n, i, a, o, d)), + s = (_(t), y.timestamp()), + c = l.watchDirectory(r, e, n, i, a, o), + e = y.timestamp() - s; + return _("Elapsed:: ".concat(e, "ms ").concat(t)), { + close: function() { + var e = "DirectoryWatcher:: Close:: ".concat(f(r, n, i, a, o, d)), + t = (_(e), y.timestamp()), + t = (c.close(), y.timestamp() - t); + _("Elapsed:: ".concat(t, "ms ").concat(e)) + } + } + } + } : l || t, + p = e === i.Verbose ? function(e, t, r, n, i) { + return _("ExcludeWatcher:: Added:: ".concat(f(e, t, r, n, i, d))), { + close: function() { + return _("ExcludeWatcher:: Close:: ".concat(f(e, t, r, n, i, d))) + } + } + } : y.returnNoopFileWatcher; + return { + watchFile: r("watchFile"), + watchDirectory: r("watchDirectory") + }; + + function r(s) { + return function(e, t, r, n, i, a) { + var o; + return y.matchesExclude(e, "watchFile" === s ? null == n ? void 0 : n.excludeFiles : null == n ? void 0 : n.excludeDirectories, "boolean" == typeof c.useCaseSensitiveFileNames ? c.useCaseSensitiveFileNames : c.useCaseSensitiveFileNames(), (null == (o = c.getCurrentDirectory) ? void 0 : o.call(c)) || "") ? p(e, r, n, i, a) : u[s].call(void 0, e, t, r, n, i, a) + } + } + + function n(u) { + return function(i, a, o, s, c, l) { + return t[u].call(void 0, i, function() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + var r = "".concat("watchFile" === u ? "FileWatcher" : "DirectoryWatcher", ":: Triggered with ").concat(e[0], " ").concat(void 0 !== e[1] ? e[1] : "", ":: ").concat(f(i, o, s, c, l, d)), + n = (_(r), y.timestamp()), + n = (a.call.apply(a, __spreadArray([void 0], e, !1)), y.timestamp() - n); + _("Elapsed:: ".concat(n, "ms ").concat(r)) + }, o, s, c, l) + } + } + + function f(e, t, r, n, i, a) { + return "WatchInfo: ".concat(e, " ").concat(t, " ").concat(JSON.stringify(r), " ").concat(a ? a(n, i) : void 0 === i ? n : "".concat(n, " ").concat(i)) + } + }, y.getFallbackOptions = function(e) { + return { + watchFile: void 0 !== (e = null == e ? void 0 : e.fallbackPolling) ? e : y.WatchFileKind.PriorityPollingInterval + } + }, y.closeFileWatcherOf = t + }(ts = ts || {}), ! function(Zt) { + function $t(e, t) { + t = Zt.getDirectoryPath(t), t = Zt.isRootedDiskPath(e) ? e : Zt.combinePaths(t, e); + return Zt.normalizePath(t) + } + + function er(e, t) { + return r(e, t) + } + + function r(e, i, a) { + void 0 === a && (a = Zt.sys); + var o = new Zt.Map, + t = Zt.createGetCanonicalFileName(a.useCaseSensitiveFileNames); + + function r() { + return Zt.getDirectoryPath(Zt.normalizePath(a.getExecutingFilePath())) + } + var n = Zt.getNewLineCharacter(e, function() { + return a.newLine + }), + e = a.realpath && function(e) { + return a.realpath(e) + }, + s = { + getSourceFile: function(e, t, r) { + var n; + try { + Zt.performance.mark("beforeIORead"), n = s.readFile(e), Zt.performance.mark("afterIORead"), Zt.performance.measure("I/O Read", "beforeIORead", "afterIORead") + } catch (e) { + r && r(e.message), n = "" + } + return void 0 !== n ? Zt.createSourceFile(e, n, t, i) : void 0 + }, + getDefaultLibLocation: r, + getDefaultLibFileName: function(e) { + return Zt.combinePaths(r(), Zt.getDefaultLibFileName(e)) + }, + writeFile: function(e, t, r, n) { + try { + Zt.performance.mark("beforeIOWrite"), Zt.writeFileEnsuringDirectories(e, t, r, function(e, t, r) { + return a.writeFile(e, t, r) + }, function(e) { + return (s.createDirectory || a.createDirectory)(e) + }, function(e) { + return e = e, !!o.has(e) || !!(s.directoryExists || a.directoryExists)(e) && (o.set(e, !0), !0) + }), Zt.performance.mark("afterIOWrite"), Zt.performance.measure("I/O Write", "beforeIOWrite", "afterIOWrite") + } catch (e) { + n && n(e.message) + } + }, + getCurrentDirectory: Zt.memoize(function() { + return a.getCurrentDirectory() + }), + useCaseSensitiveFileNames: function() { + return a.useCaseSensitiveFileNames + }, + getCanonicalFileName: t, + getNewLine: function() { + return n + }, + fileExists: function(e) { + return a.fileExists(e) + }, + readFile: function(e) { + return a.readFile(e) + }, + trace: function(e) { + return a.write(e + n) + }, + directoryExists: function(e) { + return a.directoryExists(e) + }, + getEnvironmentVariable: function(e) { + return a.getEnvironmentVariable ? a.getEnvironmentVariable(e) : "" + }, + getDirectories: function(e) { + return a.getDirectories(e) + }, + realpath: e, + readDirectory: function(e, t, r, n, i) { + return a.readDirectory(e, t, r, n, i) + }, + createDirectory: function(e) { + return a.createDirectory(e) + }, + createHash: Zt.maybeBind(a, a.createHash) + }; + return s + } + + function a(e, t) { + var r, n, i = "".concat(Zt.diagnosticCategoryName(e), " TS").concat(e.code, ": ").concat(m(e.messageText, t.getNewLine())).concat(t.getNewLine()); + return e.file ? (r = (n = Zt.getLineAndCharacterOfPosition(e.file, e.start)).line, n = n.character, e = e.file.fileName, e = Zt.convertToRelativePath(e, t.getCurrentDirectory(), function(e) { + return t.getCanonicalFileName(e) + }), "".concat(e, "(").concat(r + 1, ",").concat(n + 1, "): ") + i) : i + } + Zt.findConfigFile = function(e, t, r) { + return void 0 === r && (r = "tsconfig.json"), Zt.forEachAncestorDirectory(e, function(e) { + e = Zt.combinePaths(e, r); + return t(e) ? e : void 0 + }) + }, Zt.resolveTripleslashReference = $t, Zt.computeCommonSourceDirectoryOfFilenames = function(e, i, a) { + var o; + return Zt.forEach(e, function(e) { + var t = Zt.getNormalizedPathComponents(e, i); + if (t.pop(), o) { + for (var r = Math.min(o.length, t.length), n = 0; n < r; n++) + if (a(o[n]) !== a(t[n])) { + if (0 === n) return !0; + o.length = n; + break + } + t.length < o.length && (o.length = t.length) + } else o = t + }) ? "" : o ? Zt.getPathFromPathComponents(o) : i + }, Zt.createCompilerHost = er, Zt.createCompilerHostWorker = r, Zt.changeCompilerHostLikeToUseCache = function(o, c, l) { + function n(e, t) { + return t = i.call(o, t), _.set(e, void 0 !== t && t), t + } + var i = o.readFile, + a = o.fileExists, + s = o.directoryExists, + r = o.createDirectory, + u = o.writeFile, + _ = new Zt.Map, + d = new Zt.Map, + p = new Zt.Map, + f = new Zt.Map, + g = (o.readFile = function(e) { + var t = c(e), + r = _.get(t); + return void 0 !== r ? !1 !== r ? r : void 0 : Zt.fileExtensionIs(e, ".json") || Zt.isBuildInfoFile(e) ? n(t, e) : i.call(o, e) + }, l ? function(e, t, r, n) { + var i = c(e), + a = "object" == typeof t ? t.impliedNodeFormat : void 0, + o = f.get(a), + s = null == o ? void 0 : o.get(i); + return s || ((s = l(e, t, r, n)) && (Zt.isDeclarationFileName(e) || Zt.fileExtensionIs(e, ".json")) && f.set(a, (o || new Zt.Map).set(i, s)), s) + } : void 0); + return o.fileExists = function(e) { + var t = c(e), + r = d.get(t); + return void 0 !== r || (r = a.call(o, e), d.set(t, !!r)), r + }, u && (o.writeFile = function(e, r) { + for (var t = [], n = 2; n < arguments.length; n++) t[n - 2] = arguments[n]; + var i = c(e), + a = (d.delete(i), _.get(i)); + void 0 !== a && a !== r ? (_.delete(i), f.forEach(function(e) { + return e.delete(i) + })) : g && f.forEach(function(e) { + var t = e.get(i); + t && t.text !== r && e.delete(i) + }), u.call.apply(u, __spreadArray([o, e, r], t, !1)) + }), s && (o.directoryExists = function(e) { + var t = c(e), + r = p.get(t); + return void 0 !== r || (r = s.call(o, e), p.set(t, !!r)), r + }, r) && (o.createDirectory = function(e) { + var t = c(e); + p.delete(t), r.call(o, e) + }), { + originalReadFile: i, + originalFileExists: a, + originalDirectoryExists: s, + originalCreateDirectory: r, + originalWriteFile: u, + getSourceFileWithCache: g, + readFileWithCache: function(e) { + var t = c(e), + r = _.get(t); + return void 0 !== r ? !1 !== r ? r : void 0 : n(t, e) + } + } + }, Zt.getPreEmitDiagnostics = function(e, t, r) { + var n = Zt.addRange(n, e.getConfigFileParsingDiagnostics()); + return n = Zt.addRange(n, e.getOptionsDiagnostics(r)), n = Zt.addRange(n, e.getSyntacticDiagnostics(t, r)), n = Zt.addRange(n, e.getGlobalDiagnostics(r)), n = Zt.addRange(n, e.getSemanticDiagnostics(t, r)), Zt.getEmitDeclarations(e.getCompilerOptions()) && (n = Zt.addRange(n, e.getDeclarationDiagnostics(t, r))), Zt.sortAndDeduplicateDiagnostics(n || Zt.emptyArray) + }, Zt.formatDiagnostics = function(e, t) { + for (var r = "", n = 0, i = e; n < i.length; n++) r += a(i[n], t); + return r + }, Zt.formatDiagnostic = a, (e = d = Zt.ForegroundColorEscapeSequences || (Zt.ForegroundColorEscapeSequences = {})).Grey = "", e.Red = "", e.Yellow = "", e.Blue = "", e.Cyan = ""; + var d, e, h = "", + v = " ", + b = "", + x = "..."; + + function p(e) { + switch (e) { + case Zt.DiagnosticCategory.Error: + return d.Red; + case Zt.DiagnosticCategory.Warning: + return d.Yellow; + case Zt.DiagnosticCategory.Suggestion: + return Zt.Debug.fail("Should never get an Info diagnostic on the command line."); + case Zt.DiagnosticCategory.Message: + return d.Blue + } + } + + function D(e, t) { + return t + e + b + } + + function f(e, t, r, n, i, a) { + for (var o = Zt.getLineAndCharacterOfPosition(e, t), s = o.line, c = o.character, o = Zt.getLineAndCharacterOfPosition(e, t + r), l = o.line, u = o.character, _ = Zt.getLineAndCharacterOfPosition(e, e.text.length).line, d = 4 <= l - s, p = (l + 1 + "").length, f = (d && (p = Math.max(x.length, p)), ""), g = s; g <= l; g++) { + f += a.getNewLine(), d && s + 1 < g && g < l - 1 && (f += n + D(Zt.padLeft(x, p), h) + v + a.getNewLine(), g = l - 1); + var m = Zt.getPositionOfLineAndCharacter(e, g, 0), + y = g < _ ? Zt.getPositionOfLineAndCharacter(e, g + 1, 0) : e.text.length, + m = e.text.slice(m, y); + m = (m = Zt.trimStringEnd(m)).replace(/\t/g, " "), f = (f = (f += n + D(Zt.padLeft(g + 1 + "", p), h) + v) + (m + a.getNewLine())) + (n + D(Zt.padLeft("", p), h) + v) + i, g === s ? (y = g === l ? u : void 0, f = (f += m.slice(0, c).replace(/\S/g, " ")) + m.slice(c, y).replace(/./g, "~")) : f += (g === l ? m.slice(0, u) : m).replace(/./g, "~"), f += b + } + return f + } + + function g(e, t, r, n) { + void 0 === n && (n = D); + var t = Zt.getLineAndCharacterOfPosition(e, t), + i = t.line, + t = t.character, + a = ""; + return a + n(r ? Zt.convertToRelativePath(e.fileName, r.getCurrentDirectory(), function(e) { + return r.getCanonicalFileName(e) + }) : e.fileName, d.Cyan) + ":" + n("".concat(i + 1), d.Yellow) + ":" + n("".concat(t + 1), d.Yellow) + } + + function m(e, t, r) { + if (void 0 === r && (r = 0), Zt.isString(e)) return e; + if (void 0 === e) return ""; + var n = ""; + if (r) { + n += t; + for (var i = 0; i < r; i++) n += " " + } + if (n += e.messageText, r++, e.next) + for (var a = 0, o = e.next; a < o.length; a++) n += m(o[a], t, r); + return n + } + + function tr(e, t, r, n, i) { + if (0 === e.length) return []; + for (var a = [], o = new Zt.Map, s = 0, c = e; s < c.length; s++) { + var l = c[s], + u = void 0, + _ = rr(l, n), + l = Zt.isString(l) ? l : l.fileName.toLowerCase(), + d = void 0 !== _ ? "".concat(_, "|").concat(l) : l; + o.has(d) ? u = o.get(d) : o.set(d, u = i(l, t, r, _)), a.push(u) + } + return a + } + + function rr(e, t) { + return (Zt.isString(e) ? t : e.resolutionMode) || t + } + + function nr(e, t) { + if (void 0 !== e.impliedNodeFormat) return n(e, u(e, t)) + } + + function i(e) { + return Zt.isExportDeclaration(e) ? e.isTypeOnly : !(null == (e = e.importClause) || !e.isTypeOnly) + } + + function n(e, t) { + if (void 0 !== e.impliedNodeFormat) { + if (Zt.isImportDeclaration(t.parent) || Zt.isExportDeclaration(t.parent)) { + var r, n = i(t.parent); + if (n) + if (r = o(t.parent.assertClause)) return r + } + if (t.parent.parent && Zt.isImportTypeNode(t.parent.parent)) + if (r = o(null == (n = t.parent.parent.assertions) ? void 0 : n.assertClause)) return r; + return e.impliedNodeFormat !== Zt.ModuleKind.ESNext ? Zt.isImportCall(Zt.walkUpParenthesizedExpressions(t.parent)) ? Zt.ModuleKind.ESNext : Zt.ModuleKind.CommonJS : (r = null == (n = Zt.walkUpParenthesizedExpressions(t.parent)) ? void 0 : n.parent) && Zt.isImportEqualsDeclaration(r) ? Zt.ModuleKind.CommonJS : Zt.ModuleKind.ESNext + } + } + + function o(e, t) { + if (e) + if (1 !== Zt.length(e.elements)) null != t && t(e, Zt.Diagnostics.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require); + else { + e = e.elements[0]; + if (Zt.isStringLiteralLike(e.name)) + if ("resolution-mode" !== e.name.text) null != t && t(e.name, Zt.Diagnostics.resolution_mode_is_the_only_valid_key_for_type_import_assertions); + else if (Zt.isStringLiteralLike(e.value)) { + if ("import" === e.value.text || "require" === e.value.text) return "import" === e.value.text ? Zt.ModuleKind.ESNext : Zt.ModuleKind.CommonJS; + null != t && t(e.value, Zt.Diagnostics.resolution_mode_should_be_either_require_or_import) + } + } + } + + function ir(e, t, r, n, i) { + if (0 === e.length) return []; + for (var a = [], o = new Zt.Map, s = 0, c = 0, l = e; c < l.length; c++) { + var u = l[c], + _ = void 0, + d = nr(t, s), + p = (s++, void 0 !== d ? "".concat(d, "|").concat(u) : u); + o.has(p) ? _ = o.get(p) : o.set(p, _ = i(u, d, r, n)), a.push(_) + } + return a + } + + function ar(e, t, i, a) { + var o; + return function r(e, t, n) { + if (a) { + e = a(e, n); + if (e) return e + } + return Zt.forEach(t, function(e, t) { + if (!e || null == o || !o.has(e.sourceFile.path)) return (t = i(e, n, t)) || !e ? t : ((o = o || new Zt.Set).add(e.sourceFile.path), r(e.commandLine.projectReferences, e.references, e)) + }) + }(e, t, void 0) + } + + function or(e) { + switch (null == e ? void 0 : e.kind) { + case Zt.FileIncludeKind.Import: + case Zt.FileIncludeKind.ReferenceFile: + case Zt.FileIncludeKind.TypeReferenceDirective: + case Zt.FileIncludeKind.LibReferenceDirective: + return !0; + default: + return !1 + } + } + + function sr(e) { + return void 0 !== e.pos + } + + function cr(e, t) { + var r, n, i, a = Zt.Debug.checkDefined(e(t.file)), + o = t.kind, + s = t.index; + switch (o) { + case Zt.FileIncludeKind.Import: + var c = u(a, s), + l = null == (i = null == (i = a.resolvedModules) ? void 0 : i.get(c.text, nr(a, s))) ? void 0 : i.packageId; + if (-1 === c.pos) return { + file: a, + packageId: l, + text: c.text + }; + r = Zt.skipTrivia(a.text, c.pos), n = c.end; + break; + case Zt.FileIncludeKind.ReferenceFile: + r = (i = a.referencedFiles[s]).pos, n = i.end; + break; + case Zt.FileIncludeKind.TypeReferenceDirective: + r = (c = a.typeReferenceDirectives[s]).pos, n = c.end, i = c.resolutionMode, l = null == (c = null == (c = a.resolvedTypeReferenceDirectiveNames) ? void 0 : c.get(Zt.toFileNameLowerCase(a.typeReferenceDirectives[s].fileName), i || a.impliedNodeFormat)) ? void 0 : c.packageId; + break; + case Zt.FileIncludeKind.LibReferenceDirective: + r = (i = a.libReferenceDirectives[s]).pos, n = i.end; + break; + default: + return Zt.Debug.assertNever(o) + } + return { + file: a, + pos: r, + end: n, + packageId: l + } + } + + function lr(e, t, r, n) { + switch (Zt.getEmitModuleResolutionKind(n)) { + case Zt.ModuleResolutionKind.Node16: + case Zt.ModuleResolutionKind.NodeNext: + return Zt.fileExtensionIsOneOf(e, [".d.mts", ".mts", ".mjs"]) ? Zt.ModuleKind.ESNext : Zt.fileExtensionIsOneOf(e, [".d.cts", ".cts", ".cjs"]) ? Zt.ModuleKind.CommonJS : Zt.fileExtensionIsOneOf(e, [".d.ts", ".ts", ".tsx", ".js", ".jsx"]) ? (i = Zt.getTemporaryModuleResolutionState(t, r, n), a = [], i.failedLookupLocations = a, i.affectingLocations = a, { + impliedNodeFormat: "module" === (null == (i = Zt.getPackageScopeForPath(e, i)) ? void 0 : i.contents.packageJsonContent.type) ? Zt.ModuleKind.ESNext : Zt.ModuleKind.CommonJS, + packageJsonLocations: a, + packageJsonScope: i + }) : void 0; + default: + return + } + var i, a + } + + function ur(e, t, r, n) { + var i = e.getCompilerOptions(); + if (i.noEmit) return e.getSemanticDiagnostics(t, n), t || Zt.outFile(i) ? Zt.emitSkippedWithNoDiagnostics : e.emitBuildInfo(r, n); + if (i.noEmitOnError) { + var a, o = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], e.getOptionsDiagnostics(n), !0), e.getSyntacticDiagnostics(t, n), !0), e.getGlobalDiagnostics(n), !0), e.getSemanticDiagnostics(t, n), !0); + if ((o = 0 === o.length && Zt.getEmitDeclarations(e.getCompilerOptions()) ? e.getDeclarationDiagnostics(void 0, n) : o).length) return t || Zt.outFile(i) || ((t = e.emitBuildInfo(r, n)).diagnostics && (o = __spreadArray(__spreadArray([], o, !0), t.diagnostics, !0)), a = t.emittedFiles), { + diagnostics: o, + sourceMaps: void 0, + emittedFiles: a, + emitSkipped: !0 + } + } + } + + function _r(e, t) { + return Zt.filter(e, function(e) { + return !e.skippedOn || !t[e.skippedOn] + }) + } + + function dr(t, a) { + return void 0 === a && (a = t), { + fileExists: function(e) { + return a.fileExists(e) + }, + readDirectory: function(e, t, r, n, i) { + return Zt.Debug.assertIsDefined(a.readDirectory, "'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"), a.readDirectory(e, t, r, n, i) + }, + readFile: function(e) { + return a.readFile(e) + }, + useCaseSensitiveFileNames: t.useCaseSensitiveFileNames(), + getCurrentDirectory: function() { + return t.getCurrentDirectory() + }, + onUnRecoverableConfigFileDiagnostic: t.onUnRecoverableConfigFileDiagnostic || Zt.returnUndefined, + trace: t.trace ? function(e) { + return t.trace(e) + } : void 0 + } + } + + function pr(e, t, r) { + if (!e) return Zt.emptyArray; + for (var n, i = 0; i < e.length; i++) { + var a, o, s, c = e[i], + l = t(c, i); + c.prepend && l && l.options && Zt.outFile(l.options) && (l = (c = Zt.getOutputPathsForBundle(l.options, !0)).jsFilePath, a = c.sourceMapFilePath, o = c.declarationFilePath, s = c.declarationMapPath, c = c.buildInfoPath, l = Zt.createInputFiles(r, l, a, o, s, c), (n = n || []).push(l)) + } + return n || Zt.emptyArray + } + + function fr(e, t) { + return Zt.resolveConfigFileProjectName((t || e).path) + } + + function gr(e, t) { + switch (t.extension) { + case ".ts": + case ".d.ts": + return; + case ".tsx": + return r(); + case ".jsx": + return r() || n(); + case ".js": + return n(); + case ".json": + return e.resolveJsonModule ? void 0 : Zt.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used + } + + function r() { + return e.jsx ? void 0 : Zt.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set + } + + function n() { + return Zt.getAllowJSCompilerOption(e) || !Zt.getStrictOptionValue(e, "noImplicitAny") ? void 0 : Zt.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type + } + } + + function mr(e) { + for (var t = e.imports, e = e.moduleAugmentations, r = t.map(function(e) { + return e.text + }), n = 0, i = e; n < i.length; n++) { + var a = i[n]; + 10 === a.kind && r.push(a.text) + } + return r + } + + function u(e, t) { + var r = e.imports, + e = e.moduleAugmentations; + if (t < r.length) return r[t]; + for (var n = r.length, i = 0, a = e; i < a.length; i++) { + var o = a[i]; + if (10 === o.kind) { + if (t === n) return o; + n++ + } + } + Zt.Debug.fail("should never ask for module name at index higher than possible module name") + } + Zt.formatColorAndReset = D, Zt.formatLocation = g, Zt.formatDiagnosticsWithColorAndContext = function(e, t) { + for (var r = "", n = 0, i = e; n < i.length; n++) { + var a = i[n]; + if (a.file && (r = r + g(l = a.file, u = a.start, t) + " - "), r = (r = (r += D(Zt.diagnosticCategoryName(a), p(a.category))) + D(" TS".concat(a.code, ": "), d.Grey)) + m(a.messageText, t.getNewLine()), a.file && (r = (r += t.getNewLine()) + f(a.file, a.start, a.length, "", p(a.category), t)), a.relatedInformation) { + r += t.getNewLine(); + for (var o = 0, s = a.relatedInformation; o < s.length; o++) { + var c = s[o], + l = c.file, + u = c.start, + _ = c.length, + c = c.messageText; + l && (r = (r = (r += t.getNewLine()) + (" " + g(l, u, t))) + f(l, u, _, " ", d.Cyan, t)), r = (r += t.getNewLine()) + (" " + m(c, t.getNewLine())) + } + } + r += t.getNewLine() + } + return r + }, Zt.flattenDiagnosticMessageText = m, Zt.loadWithTypeDirectiveCache = tr, Zt.getModeForFileReference = rr, Zt.getModeForResolutionAtIndex = nr, Zt.isExclusivelyTypeOnlyImportOrExport = i, Zt.getModeForUsageLocation = n, Zt.getResolutionModeOverrideForClause = o, Zt.loadWithModeAwareCache = ir, Zt.forEachResolvedProjectReference = function(e, r) { + return ar(void 0, e, function(e, t) { + return e && r(e, t) + }) + }, Zt.inferredTypesContainingFile = "__inferred type names__.ts", Zt.isReferencedFile = or, Zt.isReferenceFileLocation = sr, Zt.getReferencedFileLocation = cr, Zt.isProgramUptoDate = function(n, e, t, r, i, a, o, s, c) { + var l; + return !(!n || null != o && o() || !Zt.arrayIsEqualTo(n.getRootFileNames(), e) || !Zt.arrayIsEqualTo(n.getProjectReferences(), c, function(e, t, r) { + return Zt.projectReferenceIsEqualTo(e, t) && function r(n, e) { + if (n) return !(!Zt.contains(l, n) && (t = fr(e), !(t = s(t)) || n.commandLine.options.configFile !== t.options.configFile || !Zt.arrayIsEqualTo(n.commandLine.fileNames, t.fileNames) || ((l = l || []).push(n), Zt.forEach(n.references, function(e, t) { + return !r(e, n.commandLine.projectReferences[t]) + })))); + var t = fr(e); + return !s(t) + }(n.getResolvedProjectReferences()[r], e) + }) || n.getSourceFiles().some(function(e) { + return ! function(e) { + return e.version === r(e.resolvedPath, e.fileName) + }(e) || a(e.path) + }) || n.getMissingFilePaths().some(i) || (o = n.getCompilerOptions(), !Zt.compareDataObjects(o, t)) || o.configFile && t.configFile && o.configFile.text !== t.configFile.text) + }, Zt.getConfigFileParsingDiagnostics = function(e) { + return e.options.configFile ? __spreadArray(__spreadArray([], e.options.configFile.parseDiagnostics, !0), e.errors, !0) : e.errors + }, Zt.getImpliedNodeFormatForFile = function(e, t, r, n) { + return "object" == typeof(e = lr(e, t, r, n)) ? e.impliedNodeFormat : e + }, Zt.getImpliedNodeFormatForFileWorker = lr, Zt.plainJSErrors = new Zt.Set([Zt.Diagnostics.Cannot_redeclare_block_scoped_variable_0.code, Zt.Diagnostics.A_module_cannot_have_multiple_default_exports.code, Zt.Diagnostics.Another_export_default_is_here.code, Zt.Diagnostics.The_first_export_default_is_here.code, Zt.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code, Zt.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code, Zt.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code, Zt.Diagnostics.constructor_is_a_reserved_word.code, Zt.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode.code, Zt.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code, Zt.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code, Zt.Diagnostics.Invalid_use_of_0_in_strict_mode.code, Zt.Diagnostics.A_label_is_not_allowed_here.code, Zt.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode.code, Zt.Diagnostics.with_statements_are_not_allowed_in_strict_mode.code, Zt.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code, Zt.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code, Zt.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name.code, Zt.Diagnostics.A_class_member_cannot_have_the_0_keyword.code, Zt.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name.code, Zt.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code, Zt.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code, Zt.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code, Zt.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code, Zt.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code, Zt.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context.code, Zt.Diagnostics.A_destructuring_declaration_must_have_an_initializer.code, Zt.Diagnostics.A_get_accessor_cannot_have_parameters.code, Zt.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern.code, Zt.Diagnostics.A_rest_element_cannot_have_a_property_name.code, Zt.Diagnostics.A_rest_element_cannot_have_an_initializer.code, Zt.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern.code, Zt.Diagnostics.A_rest_parameter_cannot_have_an_initializer.code, Zt.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list.code, Zt.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code, Zt.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block.code, Zt.Diagnostics.A_set_accessor_cannot_have_rest_parameter.code, Zt.Diagnostics.A_set_accessor_must_have_exactly_one_parameter.code, Zt.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code, Zt.Diagnostics.An_export_declaration_cannot_have_modifiers.code, Zt.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code, Zt.Diagnostics.An_import_declaration_cannot_have_modifiers.code, Zt.Diagnostics.An_object_member_cannot_be_declared_optional.code, Zt.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element.code, Zt.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code, Zt.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause.code, Zt.Diagnostics.Catch_clause_variable_cannot_have_an_initializer.code, Zt.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code, Zt.Diagnostics.Classes_can_only_extend_a_single_class.code, Zt.Diagnostics.Classes_may_not_have_a_field_named_constructor.code, Zt.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code, Zt.Diagnostics.Duplicate_label_0.code, Zt.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code, Zt.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block.code, Zt.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code, Zt.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code, Zt.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code, Zt.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code, Zt.Diagnostics.Jump_target_cannot_cross_function_boundary.code, Zt.Diagnostics.Line_terminator_not_permitted_before_arrow.code, Zt.Diagnostics.Modifiers_cannot_appear_here.code, Zt.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code, Zt.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code, Zt.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code, Zt.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code, Zt.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code, Zt.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code, Zt.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code, Zt.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code, Zt.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code, Zt.Diagnostics.Trailing_comma_not_allowed.code, Zt.Diagnostics.Variable_declaration_list_cannot_be_empty.code, Zt.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses.code, Zt.Diagnostics._0_expected.code, Zt.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code, Zt.Diagnostics._0_list_cannot_be_empty.code, Zt.Diagnostics._0_modifier_already_seen.code, Zt.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration.code, Zt.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element.code, Zt.Diagnostics._0_modifier_cannot_appear_on_a_parameter.code, Zt.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code, Zt.Diagnostics._0_modifier_cannot_be_used_here.code, Zt.Diagnostics._0_modifier_must_precede_1_modifier.code, Zt.Diagnostics.const_declarations_can_only_be_declared_inside_a_block.code, Zt.Diagnostics.const_declarations_must_be_initialized.code, Zt.Diagnostics.extends_clause_already_seen.code, Zt.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code, Zt.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code, Zt.Diagnostics.Class_constructor_may_not_be_a_generator.code, Zt.Diagnostics.Class_constructor_may_not_be_an_accessor.code, Zt.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code]), Zt.createProgram = function(S, e, T, t, r) { + var C, E, J, k, z, U, K, V, N, q, A, W, H, G, Q, X, Y, F, a, Z, $, P, w = (e = Zt.isArray(S) ? { + rootNames: S, + options: e, + host: T, + oldProgram: t, + configFileParsingDiagnostics: r + } : S).rootNames, + I = e.options, + ee = e.configFileParsingDiagnostics, + O = e.projectReferences, + M = e.oldProgram, + te = new Zt.Map, + re = Zt.createMultiMap(), + ne = {}, + ie = {}, + L = Zt.createModeAwareCache(), + ae = "number" == typeof I.maxNodeModuleJsDepth ? I.maxNodeModuleJsDepth : 0, + p = 0, + oe = new Zt.Map, + R = new Zt.Map, + B = (null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.push("program", "createProgram", { + configFilePath: I.configFilePath, + rootDir: I.rootDir + }, !0), Zt.performance.mark("beforeProgram"), e.host || er(I)), + se = dr(B), + ce = I.noLib, + le = Zt.memoize(function() { + return B.getDefaultLibFileName(I) + }), + ue = B.getDefaultLibLocation ? B.getDefaultLibLocation() : Zt.getDirectoryPath(le()), + f = Zt.createDiagnosticCollection(), + m = B.getCurrentDirectory(), + _e = Zt.getSupportedExtensions(I), + de = Zt.getSupportedExtensionsWithJsonIfResolveJsonModule(I, _e), + pe = new Zt.Map, + fe = B.hasInvalidatedResolutions || Zt.returnFalse, + ge = (B.resolveModuleNames ? (H = function(e, t, r, n, i) { + return B.resolveModuleNames(Zt.Debug.checkEachDefined(e), r, n, i, I, t).map(function(e) { + var t; + return e && void 0 === e.extension ? ((t = Zt.clone(e)).extension = Zt.extensionFromPath(e.resolvedFileName), t) : e + }) + }, A = null == (T = B.getModuleResolutionCache) ? void 0 : T.call(B)) : (A = Zt.createModuleResolutionCache(m, It, I), W = function(e, t, r, n) { + return Zt.resolveModuleName(e, r, I, B, A, n, t).resolvedModule + }, H = function(e, t, r, n, i) { + return ir(Zt.Debug.checkEachDefined(e), t, r, i, W) + }), X = B.resolveTypeReferenceDirectives ? function(e, t, r, n) { + return B.resolveTypeReferenceDirectives(Zt.Debug.checkEachDefined(e), t, r, I, n) + } : (G = Zt.createTypeReferenceDirectiveResolutionCache(m, It, void 0, null == A ? void 0 : A.getPackageJsonInfoCache()), Q = function(e, t, r, n) { + return Zt.resolveTypeReferenceDirective(e, t, I, B, r, G, n).resolvedTypeReferenceDirective + }, function(e, t, r, n) { + return tr(Zt.Debug.checkEachDefined(e), t, r, n, Q) + }), new Zt.Map), + me = new Zt.Map, + ye = Zt.createMultiMap(), + he = !1, + j = new Zt.Map, + ve = B.useCaseSensitiveFileNames() ? new Zt.Map : void 0, + g = !(null == (t = B.useSourceOfProjectReferenceRedirect) || !t.call(B) || I.disableSourceOfProjectReferenceRedirect), + S = (r = function(l) { + var u, e, r = l.compilerHost.fileExists, + o = l.compilerHost.directoryExists, + t = l.compilerHost.getDirectories, + s = l.compilerHost.realpath; + if (!l.useSourceOfProjectReferenceRedirect) return { + onProgramCreateComplete: Zt.noop, + fileExists: n + }; + l.compilerHost.fileExists = n, o && (e = l.compilerHost.directoryExists = function(e) { + var t, r, n, i, a; + return o.call(l.compilerHost, e) ? (t = e, l.getResolvedProjectReferences() && !Zt.containsIgnoredPath(t) && s && Zt.stringContains(t, Zt.nodeModulesPathPart) && (r = l.getSymlinkCache(), n = Zt.ensureTrailingDirectorySeparator(l.toPath(t)), null != (i = r.getSymlinkedDirectories()) && i.has(n) || ((i = Zt.normalizePath(s.call(l.compilerHost, t))) === t || (a = Zt.ensureTrailingDirectorySeparator(l.toPath(i))) === n ? r.setSymlinkedDirectory(n, !1) : r.setSymlinkedDirectory(t, { + real: Zt.ensureTrailingDirectorySeparator(i), + realPath: a + }))), !0) : !!l.getResolvedProjectReferences() && (u || (u = new Zt.Set, l.forEachResolvedProjectReference(function(e) { + var t = Zt.outFile(e.commandLine.options); + t ? u.add(Zt.getDirectoryPath(l.toPath(t))) : (t = e.commandLine.options.declarationDir || e.commandLine.options.outDir) && u.add(l.toPath(t)) + })), c(e, !1)) + }); + t && (l.compilerHost.getDirectories = function(e) { + return !l.getResolvedProjectReferences() || o && o.call(l.compilerHost, e) ? t.call(l.compilerHost, e) : [] + }); + s && (l.compilerHost.realpath = function(e) { + var t; + return (null == (t = l.getSymlinkCache().getSymlinkedFiles()) ? void 0 : t.get(l.toPath(e))) || s.call(l.compilerHost, e) + }); + return { + onProgramCreateComplete: function() { + l.compilerHost.fileExists = r, l.compilerHost.directoryExists = o, l.compilerHost.getDirectories = t + }, + fileExists: n, + directoryExists: e + }; + + function n(e) { + return !!r.call(l.compilerHost, e) || !!l.getResolvedProjectReferences() && !!Zt.isDeclarationFileName(e) && c(e, !0) + } + + function c(i, a) { + var e, o, s, c = a ? function(e) { + return e = e, void 0 !== (e = l.getSourceOfProjectReferenceRedirect(l.toPath(e))) ? !Zt.isString(e) || r.call(l.compilerHost, e) : void 0 + } : function(e) { + return t = l.toPath(e), r = "".concat(t).concat(Zt.directorySeparator), Zt.forEachKey(u, function(e) { + return t === e || Zt.startsWith(e, r) || Zt.startsWith(t, "".concat(e, "/")) + }); + var t, r + }, + t = c(i); + return void 0 !== t ? t : (t = (o = l.getSymlinkCache()).getSymlinkedDirectories()) && (s = l.toPath(i), Zt.stringContains(s, Zt.nodeModulesPathPart)) && (!(!a || null == (e = o.getSymlinkedFiles()) || !e.has(s)) || Zt.firstDefinedIterator(t.entries(), function(e) { + var t, r, n = e[0], + e = e[1]; + if (e && Zt.startsWith(s, n)) return t = c(s.replace(n, e.realPath)), a && t && (r = Zt.getNormalizedAbsolutePath(i, l.compilerHost.getCurrentDirectory()), o.setSymlinkedFile(s, "".concat(e.real).concat(r.replace(new RegExp(n, "i"), "")))), t + })) || !1 + } + }({ + compilerHost: B, + getSymlinkCache: Yt, + useSourceOfProjectReferenceRedirect: g, + toPath: h, + getResolvedProjectReferences: We, + getSourceOfProjectReferenceRedirect: Ct, + forEachResolvedProjectReference: Tt + })).onProgramCreateComplete, + e = r.fileExists, + T = r.directoryExists, + t = B.readFile.bind(B), + be = (null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.push("program", "shouldProgramCreateNewSourceFiles", { + hasOldProgram: !!M + }), r = I, !!(xe = M) && Zt.optionsHaveChanges(xe.getCompilerOptions(), r, Zt.sourceFileAffectingCompilerOptions)); + if (null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.pop(), null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.push("program", "tryReuseStructureFromOldProgram", {}), P = function() { + if (!M) return 0; + var e = M.getCompilerOptions(); + if (Zt.changesAffectModuleResolution(e, I)) return 0; + var t = M.getRootFileNames(); + if (!Zt.arrayIsEqualTo(t, w)) return 0; + if (ar(M.getProjectReferences(), M.getResolvedProjectReferences(), function(e, t, r) { + t = Mt((t ? t.commandLine.projectReferences : O)[r]); + return e ? !t || t.sourceFile !== e.sourceFile || !Zt.arrayIsEqualTo(e.commandLine.fileNames, t.commandLine.fileNames) : void 0 !== t + }, function(e, t) { + t = t ? kt(t.sourceFile.path).commandLine.projectReferences : O; + return !Zt.arrayIsEqualTo(e, t, Zt.projectReferenceIsEqualTo) + })) return 0; + O && (F = O.map(Mt)); + var r = [], + n = []; + if (P = 2, M.getMissingFilePaths().some(function(e) { + return B.fileExists(e) + })) return 0; + var t = M.getSourceFiles(), + i = {}; + i[i.Exists = 0] = "Exists", i[i.Modified = 1] = "Modified"; + for (var a = new Zt.Map, o = 0, s = t; o < s.length; o++) { + var c = vt((D = s[o]).fileName, A, B, I); + if (!(E = B.getSourceFileByPath ? B.getSourceFileByPath(D.fileName, D.resolvedPath, c, void 0, be || c.impliedNodeFormat !== D.impliedNodeFormat) : B.getSourceFile(D.fileName, c, void 0, be || c.impliedNodeFormat !== D.impliedNodeFormat))) return 0; + E.packageJsonLocations = null != (l = c.packageJsonLocations) && l.length ? c.packageJsonLocations : void 0, E.packageJsonScope = c.packageJsonScope, Zt.Debug.assert(!E.redirectInfo, "Host should not return a redirect source file from `getSourceFile`"); + var l = void 0; + if (D.redirectInfo) { + if (E !== D.redirectInfo.unredirected) return 0; + l = !1, E = D + } else if (M.redirectTargetsMap.has(D.path)) { + if (E !== D) return 0; + l = !1 + } else l = E !== D; + E.path = D.path, E.originalFileName = D.originalFileName, E.resolvedPath = D.resolvedPath, E.fileName = D.fileName; + c = M.sourceFileToPackageName.get(D.path); + if (void 0 !== c) { + var u = a.get(c), + _ = l ? 1 : 0; + if (void 0 !== u && 1 == _ || 1 === u) return 0; + a.set(c, _) + } + l ? (D.impliedNodeFormat === E.impliedNodeFormat && Zt.arrayIsEqualTo(D.libReferenceDirectives, E.libReferenceDirectives, ut) && D.hasNoDefaultLib === E.hasNoDefaultLib && Zt.arrayIsEqualTo(D.referencedFiles, E.referencedFiles, ut) && (pt(E), Zt.arrayIsEqualTo(D.imports, E.imports, _t)) && Zt.arrayIsEqualTo(D.moduleAugmentations, E.moduleAugmentations, _t) && (6291456 & D.flags) == (6291456 & E.flags) && Zt.arrayIsEqualTo(D.typeReferenceDirectives, E.typeReferenceDirectives, ut) || (P = 1), n.push({ + oldFile: D, + newFile: E + })) : fe(D.path) && (P = 1, n.push({ + oldFile: D, + newFile: E + })), r.push(E) + } + if (2 !== P) return P; + for (var d = n.map(function(e) { + return e.oldFile + }), p = 0, f = t; p < f.length; p++) { + var g = f[p]; + if (!Zt.contains(d, g)) + for (var m = 0, y = g.ambientModuleNames; m < y.length; m++) { + var h = y[m]; + te.set(h, g.fileName) + } + } + for (var v = 0, b = n; v < b.length; v++) { + var x = b[v], + D = x.oldFile, + x = mr(E = x.newFile), + S = Ke(x, E), + x = (Zt.hasChangesInResolutions(x, S, D.resolvedModules, D, Zt.moduleResolutionIsEqualTo) ? (P = 1, E.resolvedModules = Zt.zipToModeAwareCache(E, x, S)) : E.resolvedModules = D.resolvedModules, E.typeReferenceDirectives), + S = Be(x, E); + Zt.hasChangesInResolutions(x, S, D.resolvedTypeReferenceDirectiveNames, D, Zt.typeDirectiveIsEqualTo) ? (P = 1, E.resolvedTypeReferenceDirectiveNames = Zt.zipToModeAwareCache(E, x, S)) : E.resolvedTypeReferenceDirectiveNames = D.resolvedTypeReferenceDirectiveNames + } + if (2 !== P) return P; + if (Zt.changesAffectingProgramStructure(e, I) || null != (i = B.hasChangedAutomaticTypeDirectiveNames) && i.call(B)) return 1; + Y = M.getMissingFilePaths(), Zt.Debug.assert(r.length === M.getSourceFiles().length); + for (var T = 0, C = r; T < C.length; T++) { + var E = C[T]; + j.set(E.path, E) + } + return M.getFilesByNameMap().forEach(function(e, t) { + e ? e.path === t ? M.isSourceFileFromExternalLibrary(e) && R.set(e.path, !0) : j.set(t, j.get(e.path)) : j.set(t, e) + }), k = r, re = M.getFileIncludeReasons(), N = M.getFileProcessingDiagnostics(), L = M.getResolvedTypeReferenceDirectives(), me = M.sourceFileToPackageName, ye = M.redirectTargetsMap, he = M.usesUriStyleNodeCoreModules, 2 + }(), null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.pop(), 2 !== P) { + E = [], J = [], O && (F = F || O.map(Mt), w.length) && null != F && F.forEach(function(e, t) { + if (e) { + var r = Zt.outFile(e.commandLine.options); + if (g) { + if (r || Zt.getEmitModuleKind(e.commandLine.options) === Zt.ModuleKind.None) + for (var n = 0, i = e.commandLine.fileNames; n < i.length; n++) mt(c = i[n], { + kind: Zt.FileIncludeKind.SourceFromProjectReference, + index: t + }) + } else if (r) mt(Zt.changeExtension(r, ".d.ts"), { + kind: Zt.FileIncludeKind.OutputFromProjectReference, + index: t + }); + else if (Zt.getEmitModuleKind(e.commandLine.options) === Zt.ModuleKind.None) + for (var a = Zt.memoize(function() { + return Zt.getCommonSourceDirectoryOfConfig(e.commandLine, !B.useCaseSensitiveFileNames()) + }), o = 0, s = e.commandLine.fileNames; o < s.length; o++) { + var c = s[o]; + Zt.isDeclarationFileName(c) || Zt.fileExtensionIs(c, ".json") || mt(Zt.getOutputDeclarationFileName(c, e.commandLine, !B.useCaseSensitiveFileNames(), a), { + kind: Zt.FileIncludeKind.OutputFromProjectReference, + index: t + }) + } + } + }), null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.push("program", "processRootFiles", { + count: w.length + }), Zt.forEach(w, function(e, t) { + return lt(e, !1, !1, { + kind: Zt.FileIncludeKind.RootFile, + index: t + }) + }), null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.pop(); + var n = w.length ? Zt.getAutomaticTypeDirectiveNames(I, B) : Zt.emptyArray; + if (n.length) { + null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.push("program", "processTypeReferences", { + count: n.length + }); + for (var xe = I.configFilePath ? Zt.getDirectoryPath(I.configFilePath) : B.getCurrentDirectory(), De = Be(n, Zt.combinePaths(xe, Zt.inferredTypesContainingFile)), i = 0; i < n.length; i++) Ft(n[i], void 0, De[i], { + kind: Zt.FileIncludeKind.AutomaticTypeDirectiveFile, + typeReference: n[i], + packageId: null == (C = De[i]) ? void 0 : C.packageId + }); + null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.pop() + } + w.length && !ce && (r = le(), !I.lib && r ? lt(r, !0, !1, { + kind: Zt.FileIncludeKind.LibFile + }) : Zt.forEach(I.lib, function(e, t) { + lt(Pt(e), !0, !1, { + kind: Zt.FileIncludeKind.LibFile, + index: t + }) + })), Y = Zt.arrayFrom(Zt.mapDefinedIterator(j.entries(), function(e) { + var t = e[0]; + return void 0 === e[1] ? t : void 0 + })), k = Zt.stableSort(E, function(e, t) { + return Zt.compareValues(ze(e), ze(t)) + }).concat(J), J = E = void 0 + } + if (Zt.Debug.assert(!!Y), M && B.onReleaseOldSourceFile) { + for (var Se = 0, Te = M.getSourceFiles(); Se < Te.length; Se++) { + var o = Te[Se], + Ce = d(o.resolvedPath); + (be || !Ce || Ce.impliedNodeFormat !== o.impliedNodeFormat || o.resolvedPath === o.path && Ce.resolvedPath !== o.path) && B.onReleaseOldSourceFile(o, M.getCompilerOptions(), !!d(o.path)) + } + B.getParsedCommandLine || M.forEachResolvedProjectReference(function(e) { + kt(e.sourceFile.path) || B.onReleaseOldSourceFile(e.sourceFile, M.getCompilerOptions(), !1) + }) + } + M && B.onReleaseParsedCommandLine && ar(M.getProjectReferences(), M.getResolvedProjectReferences(), function(e, t, r) { + t = fr((null == t ? void 0 : t.commandLine.projectReferences[r]) || M.getProjectReferences()[r]); + null != a && a.has(h(t)) || B.onReleaseParsedCommandLine(t, e, M.getCompilerOptions()) + }); + var s, Ee, M = G = void 0, + y = { + getRootFileNames: function() { + return w + }, + getSourceFile: Xe, + getSourceFileByPath: d, + getSourceFiles: function() { + return k + }, + getMissingFilePaths: function() { + return Y + }, + getModuleResolutionCache: function() { + return A + }, + getFilesByNameMap: function() { + return j + }, + getCompilerOptions: function() { + return I + }, + getSyntacticDiagnostics: function(e, t) { + return Ye(e, $e, t) + }, + getOptionsDiagnostics: function() { + return Zt.sortAndDeduplicateDiagnostics(Zt.concatenate(f.getGlobalDiagnostics(), function() { + var t; + return I.configFile ? (t = f.getDiagnostics(I.configFile.fileName), Tt(function(e) { + t = Zt.concatenate(t, f.getDiagnostics(e.sourceFile.fileName)) + }), t) : Zt.emptyArray + }())) + }, + getGlobalDiagnostics: function() { + return w.length ? Zt.sortAndDeduplicateDiagnostics(v().getGlobalDiagnostics().slice()) : Zt.emptyArray + }, + getSemanticDiagnostics: function(e, t) { + return Ye(e, tt, t) + }, + getCachedSemanticDiagnostics: function(e) { + var t; + return e ? null == (t = ne.perFile) ? void 0 : t.get(e.path) : ne.allDiagnostics + }, + getSuggestionDiagnostics: function(e, t) { + return et(function() { + return v().getSuggestionDiagnostics(e, t) + }) + }, + getDeclarationDiagnostics: function(e, t) { + var r = y.getCompilerOptions(); + return !e || Zt.outFile(r) ? at(e, t) : Ye(e, ct, t) + }, + getBindAndCheckDiagnostics: rt, + getProgramDiagnostics: Ze, + getTypeChecker: v, + getClassifiableNames: function() { + if (!V) { + v(), V = new Zt.Set; + for (var e = 0, t = k; e < t.length; e++) { + var r = t[e]; + null != (r = r.classifiableNames) && r.forEach(function(e) { + return V.add(e) + }) + } + } + return V + }, + getCommonSourceDirectory: Ue, + emit: function(s, c, l, u, _, d) { + null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.push("emit", "emit", { + path: null == s ? void 0 : s.path + }, !0); + var e = et(function() { + var e = y, + t = s, + r = c, + n = l, + i = u, + a = _, + o = d; + if (!o) { + e = ur(e, t, r, n); + if (e) return e + } + return e = v().getEmitResolver(Zt.outFile(I) ? void 0 : t, n), Zt.performance.mark("beforeEmit"), n = Zt.emitFiles(e, Ve(r), t, Zt.getTransformers(I, a, i), i, !1, o), Zt.performance.mark("afterEmit"), Zt.performance.measure("Emit", "beforeEmit", "afterEmit"), n + }); + return null === Zt.tracing || void 0 === Zt.tracing || Zt.tracing.pop(), e + }, + getCurrentDirectory: function() { + return m + }, + getNodeCount: function() { + return v().getNodeCount() + }, + getIdentifierCount: function() { + return v().getIdentifierCount() + }, + getSymbolCount: function() { + return v().getSymbolCount() + }, + getTypeCount: function() { + return v().getTypeCount() + }, + getInstantiationCount: function() { + return v().getInstantiationCount() + }, + getRelationCacheSizes: function() { + return v().getRelationCacheSizes() + }, + getFileProcessingDiagnostics: function() { + return N + }, + getResolvedTypeReferenceDirectives: function() { + return L + }, + isSourceFileFromExternalLibrary: Ge, + isSourceFileDefaultLibrary: function(t) { + if (!t.isDeclarationFile) return !1; + if (t.hasNoDefaultLib) return !0; + if (!I.noLib) return !1; + var r = B.useCaseSensitiveFileNames() ? Zt.equateStringsCaseSensitive : Zt.equateStringsCaseInsensitive; + return I.lib ? Zt.some(I.lib, function(e) { + return r(t.fileName, Pt(e)) + }) : r(t.fileName, le()) + }, + getSourceFileFromReference: function(e, t) { + return ft($t(t.fileName, e.fileName), Xe) + }, + getLibFileFromReference: function(e) { + e = Zt.toFileNameLowerCase(e.fileName), e = Zt.libMap.get(e); + if (e) return Xe(Pt(e)) + }, + sourceFileToPackageName: me, + redirectTargetsMap: ye, + usesUriStyleNodeCoreModules: he, + isEmittedFile: function(e) { + if (!I.noEmit) { + e = h(e); + if (!d(e)) { + var t = Zt.outFile(I); + if (t) return Xt(e, t) || Xt(e, Zt.removeFileExtension(t) + ".d.ts"); + if (I.declarationDir && Zt.containsPath(I.declarationDir, e, m, !B.useCaseSensitiveFileNames())) return !0; + if (I.outDir) return Zt.containsPath(I.outDir, e, m, !B.useCaseSensitiveFileNames()); + if (Zt.fileExtensionIsOneOf(e, Zt.supportedJSExtensionsFlat) || Zt.isDeclarationFileName(e)) return !!d((t = Zt.removeFileExtension(e)) + ".ts") || !!d(t + ".tsx") + } + } + return !1 + }, + getConfigFileParsingDiagnostics: function() { + return ee || Zt.emptyArray + }, + getResolvedModuleWithFailedLookupLocationsFromCache: function(e, t, r) { + return A && Zt.resolveModuleNameFromCache(e, t, A, r) + }, + getProjectReferences: function() { + return O + }, + getResolvedProjectReferences: We, + getProjectReferenceRedirect: xt, + getResolvedProjectReferenceToRedirect: x, + getResolvedProjectReferenceByPath: kt, + forEachResolvedProjectReference: Tt, + isSourceOfProjectReferenceRedirect: Et, + emitBuildInfo: function(e) { + Zt.Debug.assert(!Zt.outFile(I)), null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.push("emit", "emitBuildInfo", {}, !0), Zt.performance.mark("beforeEmit"); + e = Zt.emitFiles(Zt.notImplementedResolver, Ve(e), void 0, Zt.noTransformers, !1, !0); + return Zt.performance.mark("afterEmit"), Zt.performance.measure("Emit", "beforeEmit", "afterEmit"), null === Zt.tracing || void 0 === Zt.tracing || Zt.tracing.pop(), e + }, + fileExists: e, + readFile: t, + directoryExists: T, + getSymlinkCache: Yt, + realpath: null == (xe = B.realpath) ? void 0 : xe.bind(B), + useCaseSensitiveFileNames: function() { + return B.useCaseSensitiveFileNames() + }, + getFileIncludeReasons: function() { + return re + }, + structureIsReused: P, + writeFile: qe + }, + r = (S(), null != N && N.forEach(function(e) { + switch (e.kind) { + case 1: + return f.add(Lt(e.file && d(e.file), e.fileProcessingReason, e.diagnostic, e.args || Zt.emptyArray)); + case 0: + var t = cr(d, e.reason), + r = t.file, + n = t.pos, + t = t.end; + return f.add(Zt.createFileDiagnostic.apply(void 0, __spreadArray([r, Zt.Debug.checkDefined(n), Zt.Debug.checkDefined(t) - n, e.diagnostic], e.args || Zt.emptyArray, !1))); + default: + Zt.Debug.assertNever(e) + } + }), I.strictPropertyInitialization && !Zt.getStrictOptionValue(I, "strictNullChecks") && D(Zt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "strictPropertyInitialization", "strictNullChecks"), I.exactOptionalPropertyTypes && !Zt.getStrictOptionValue(I, "strictNullChecks") && D(Zt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "exactOptionalPropertyTypes", "strictNullChecks"), I.isolatedModules && (I.out && D(Zt.Diagnostics.Option_0_cannot_be_specified_with_option_1, "out", "isolatedModules"), I.outFile) && D(Zt.Diagnostics.Option_0_cannot_be_specified_with_option_1, "outFile", "isolatedModules"), I.inlineSourceMap && (I.sourceMap && D(Zt.Diagnostics.Option_0_cannot_be_specified_with_option_1, "sourceMap", "inlineSourceMap"), I.mapRoot) && D(Zt.Diagnostics.Option_0_cannot_be_specified_with_option_1, "mapRoot", "inlineSourceMap"), I.composite && (!1 === I.declaration && D(Zt.Diagnostics.Composite_projects_may_not_disable_declaration_emit, "declaration"), !1 === I.incremental) && D(Zt.Diagnostics.Composite_projects_may_not_disable_incremental_compilation, "declaration"), Zt.outFile(I)), + ke = (I.tsBuildInfoFile ? Zt.isIncrementalCompilation(I) || D(Zt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "tsBuildInfoFile", "incremental", "composite") : !I.incremental || r || I.configFilePath || f.add(Zt.createCompilerDiagnostic(Zt.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)), I.suppressOutputPathCheck ? void 0 : Zt.getTsBuildInfoEmitOutputFilePath(I)); + if (ar(O, F, function(e, t, r) { + var n, i = (t ? t.commandLine.projectReferences : O)[r], + a = t && t.sourceFile; + e ? ((e = e.commandLine.options).composite && !e.noEmit || (t ? t.commandLine.fileNames : w).length && (e.composite || qt(a, r, Zt.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true, i.path), e.noEmit) && qt(a, r, Zt.Diagnostics.Referenced_project_0_may_not_disable_emit, i.path), i.prepend && ((n = Zt.outFile(e)) ? B.fileExists(n) || qt(a, r, Zt.Diagnostics.Output_file_0_from_project_1_does_not_exist, n, i.path) : qt(a, r, Zt.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set, i.path)), !t && ke && ke === Zt.getTsBuildInfoEmitOutputFilePath(e) && (qt(a, r, Zt.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1, ke, i.path), pe.set(h(ke), !0))) : qt(a, r, Zt.Diagnostics.File_0_not_found, i.path) + }), I.composite) + for (var Ne = new Zt.Set(w.map(h)), Ae = 0, Fe = k; Ae < Fe.length; Ae++) { + var c = Fe[Ae]; + Zt.sourceFileMayBeEmitted(c, y) && !Ne.has(c.path) && Bt(c, Zt.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern, [c.fileName, I.configFilePath || ""]) + } + if (I.paths) + for (var l in I.paths) + if (Zt.hasProperty(I.paths, l)) + if (Zt.hasZeroOrOneAsteriskCharacter(l) || Jt(!0, l, Zt.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character, l), Zt.isArray(I.paths[l])) { + var Pe = I.paths[l].length; + 0 === Pe && Jt(!1, l, Zt.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array, l); + for (var u = 0; u < Pe; u++) { + var _ = I.paths[l][u], + we = typeof _; + "string" == we ? (Zt.hasZeroOrOneAsteriskCharacter(_) || jt(l, u, Zt.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character, _, l), I.baseUrl || Zt.pathIsRelative(_) || Zt.pathIsAbsolute(_) || jt(l, u, Zt.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)) : jt(l, u, Zt.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2, _, l, we) + } + } else Jt(!1, l, Zt.Diagnostics.Substitutions_for_pattern_0_should_be_an_array, l); + if (I.sourceMap || I.inlineSourceMap || (I.inlineSources && D(Zt.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided, "inlineSources"), I.sourceRoot && D(Zt.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided, "sourceRoot")), I.out && I.outFile && D(Zt.Diagnostics.Option_0_cannot_be_specified_with_option_1, "out", "outFile"), !I.mapRoot || I.sourceMap || I.declarationMap || D(Zt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "mapRoot", "sourceMap", "declarationMap"), I.declarationDir && (Zt.getEmitDeclarations(I) || D(Zt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "declarationDir", "declaration", "composite"), r) && D(Zt.Diagnostics.Option_0_cannot_be_specified_with_option_1, "declarationDir", I.out ? "out" : "outFile"), I.declarationMap && !Zt.getEmitDeclarations(I) && D(Zt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "declarationMap", "declaration", "composite"), I.lib && I.noLib && D(Zt.Diagnostics.Option_0_cannot_be_specified_with_option_1, "lib", "noLib"), I.noImplicitUseStrict && Zt.getStrictOptionValue(I, "alwaysStrict") && D(Zt.Diagnostics.Option_0_cannot_be_specified_with_option_1, "noImplicitUseStrict", "alwaysStrict"), e = Zt.getEmitScriptTarget(I), t = Zt.find(k, function(e) { + return Zt.isExternalModule(e) && !e.isDeclarationFile + }), I.isolatedModules) { + I.module === Zt.ModuleKind.None && e < 2 && D(Zt.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher, "isolatedModules", "target"), !1 === I.preserveConstEnums && D(Zt.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled, "preserveConstEnums", "isolatedModules"); + for (var Ie = 0, Oe = k; Ie < Oe.length; Ie++) { + c = Oe[Ie]; + Zt.isExternalModule(c) || Zt.isSourceFileJS(c) || c.isDeclarationFile || 6 === c.scriptKind || (s = Zt.getErrorSpanForNode(c, c), f.add(Zt.createFileDiagnostic(c, s.start, s.length, Zt.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module, Zt.getBaseFileName(c.fileName)))) + } + } else t && e < 2 && I.module === Zt.ModuleKind.None && (s = Zt.getErrorSpanForNode(t, "boolean" == typeof t.externalModuleIndicator ? t : t.externalModuleIndicator), f.add(Zt.createFileDiagnostic(t, s.start, s.length, Zt.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))); + + function Me(e, t) { + var r, n; + e && (r = h(e), j.has(r) && (n = void 0, I.configFilePath || (n = Zt.chainDiagnosticMessages(void 0, Zt.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)), n = Zt.chainDiagnosticMessages(n, Zt.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file, e), Qt(e, Zt.createCompilerDiagnosticFromMessageChain(n))), n = B.useCaseSensitiveFileNames() ? r : Zt.toFileNameLowerCase(r), t.has(n) ? Qt(e, Zt.createCompilerDiagnostic(Zt.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files, e)) : t.add(n)) + } + return r && !I.emitDeclarationOnly && (I.module && I.module !== Zt.ModuleKind.AMD && I.module !== Zt.ModuleKind.System ? D(Zt.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, I.out ? "out" : "outFile", "module") : void 0 === I.module && t && (s = Zt.getErrorSpanForNode(t, "boolean" == typeof t.externalModuleIndicator ? t : t.externalModuleIndicator), f.add(Zt.createFileDiagnostic(t, s.start, s.length, Zt.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, I.out ? "out" : "outFile")))), I.resolveJsonModule && (Zt.getEmitModuleResolutionKind(I) !== Zt.ModuleResolutionKind.NodeJs && Zt.getEmitModuleResolutionKind(I) !== Zt.ModuleResolutionKind.Node16 && Zt.getEmitModuleResolutionKind(I) !== Zt.ModuleResolutionKind.NodeNext ? D(Zt.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy, "resolveJsonModule") : Zt.hasJsonModuleEmitEnabled(I) || D(Zt.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext, "resolveJsonModule", "module")), (I.outDir || I.rootDir || I.sourceRoot || I.mapRoot) && (r = Ue(), I.outDir) && "" === r && k.some(function(e) { + return 1 < Zt.getRootLength(e.fileName) + }) && D(Zt.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files, "outDir"), I.useDefineForClassFields && 0 === e && D(Zt.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3, "useDefineForClassFields"), I.checkJs && !Zt.getAllowJSCompilerOption(I) && f.add(Zt.createCompilerDiagnostic(Zt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "checkJs", "allowJs")), I.emitDeclarationOnly && (Zt.getEmitDeclarations(I) || D(Zt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "emitDeclarationOnly", "declaration", "composite"), I.noEmit) && D(Zt.Diagnostics.Option_0_cannot_be_specified_with_option_1, "emitDeclarationOnly", "noEmit"), I.emitDecoratorMetadata && !I.experimentalDecorators && D(Zt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "emitDecoratorMetadata", "experimentalDecorators"), I.jsxFactory ? (I.reactNamespace && D(Zt.Diagnostics.Option_0_cannot_be_specified_with_option_1, "reactNamespace", "jsxFactory"), 4 !== I.jsx && 5 !== I.jsx || D(Zt.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, "jsxFactory", Zt.inverseJsxOptionMap.get("" + I.jsx)), Zt.parseIsolatedEntityName(I.jsxFactory, e) || Vt("jsxFactory", Zt.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name, I.jsxFactory)) : I.reactNamespace && !Zt.isIdentifierText(I.reactNamespace, e) && Vt("reactNamespace", Zt.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier, I.reactNamespace), I.jsxFragmentFactory && (I.jsxFactory || D(Zt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "jsxFragmentFactory", "jsxFactory"), 4 !== I.jsx && 5 !== I.jsx || D(Zt.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, "jsxFragmentFactory", Zt.inverseJsxOptionMap.get("" + I.jsx)), Zt.parseIsolatedEntityName(I.jsxFragmentFactory, e) || Vt("jsxFragmentFactory", Zt.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name, I.jsxFragmentFactory)), !I.reactNamespace || 4 !== I.jsx && 5 !== I.jsx || D(Zt.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, "reactNamespace", Zt.inverseJsxOptionMap.get("" + I.jsx)), I.jsxImportSource && 2 === I.jsx && D(Zt.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, "jsxImportSource", Zt.inverseJsxOptionMap.get("" + I.jsx)), I.preserveValueImports && Zt.getEmitModuleKind(I) < Zt.ModuleKind.ES2015 && Vt("importsNotUsedAsValues", Zt.Diagnostics.Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later), I.noEmit || I.suppressOutputPathCheck || (t = Ve(), Ee = new Zt.Set, Zt.forEachEmittedFile(t, function(e) { + I.emitDeclarationOnly || Me(e.jsFilePath, Ee), Me(e.declarationFilePath, Ee) + })), Zt.performance.mark("afterProgram"), Zt.performance.measure("Program", "beforeProgram", "afterProgram"), null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.pop(), y; + + function Le(e, t) { + if (A) + for (var r = Zt.getNormalizedAbsolutePath(t.originalFileName, m), n = Zt.isString(t) ? void 0 : t.impliedNodeFormat, i = Zt.getDirectoryPath(r), a = je(t), o = 0, s = 0, c = e; s < c.length; s++) { + var l = c[s], + u = "string" == typeof l ? nr(t, o) : rr(l, n), + l = "string" == typeof l ? l : l.fileName; + if (o++, !Zt.isExternalModuleNameRelative(l)) { + u = null == (l = A.getOrCreateCacheForModuleName(l, u, a).get(i)) ? void 0 : l.resolutionDiagnostics, l = (p = d = _ = l = void 0, u); + if (l) + for (var _ = 0, d = l; _ < d.length; _++) { + var p = d[_]; + f.add(p) + } + } + } + } + + function Re(e, t, r) { + var n, i; + return e.length ? (i = Zt.getNormalizedAbsolutePath(t.originalFileName, m), n = je(t), null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.push("program", "resolveModuleNamesWorker", { + containingFileName: i + }), Zt.performance.mark("beforeResolveModule"), i = H(e, t, i, r, n), Zt.performance.mark("afterResolveModule"), Zt.performance.measure("ResolveModule", "beforeResolveModule", "afterResolveModule"), null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.pop(), Le(e, t), i) : Zt.emptyArray + } + + function Be(e, t) { + var r, n; + return e.length ? (r = Zt.isString(t) ? t : Zt.getNormalizedAbsolutePath(t.originalFileName, m), n = Zt.isString(t) ? void 0 : je(t), t = Zt.isString(t) ? void 0 : t.impliedNodeFormat, null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.push("program", "resolveTypeReferenceDirectiveNamesWorker", { + containingFileName: r + }), Zt.performance.mark("beforeResolveTypeReference"), e = X(e, r, n, t), Zt.performance.mark("afterResolveTypeReference"), Zt.performance.measure("ResolveTypeReference", "beforeResolveTypeReference", "afterResolveTypeReference"), null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.pop(), e) : [] + } + + function je(e) { + var t = x(e.originalFileName); + return t || !Zt.isDeclarationFileName(e.originalFileName) ? t : Je(e.path) || (!(B.realpath && I.preserveSymlinks && Zt.stringContains(e.originalFileName, Zt.nodeModulesPathPart)) || (t = h(B.realpath(e.originalFileName))) === e.path ? void 0 : Je(t)) + } + + function Je(r) { + var e = Ct(r); + return Zt.isString(e) ? x(e) : e ? Tt(function(e) { + var t = Zt.outFile(e.commandLine.options); + return t && h(t) === r ? e : void 0 + }) : void 0 + } + + function ze(e) { + if (Zt.containsPath(ue, e.fileName, !1)) { + e = Zt.getBaseFileName(e.fileName); + if ("lib.d.ts" === e || "lib.es6.d.ts" === e) return 0; + e = Zt.removeSuffix(Zt.removePrefix(e, "lib."), ".d.ts"), e = Zt.libs.indexOf(e); + if (-1 !== e) return e + 1 + } + return Zt.libs.length + 2 + } + + function h(e) { + return Zt.toPath(e, m, It) + } + + function Ue() { + var c; + return void 0 === U && (c = Zt.filter(k, function(e) { + return Zt.sourceFileMayBeEmitted(e, y) + }), U = Zt.getCommonSourceDirectory(I, function() { + return Zt.mapDefined(c, function(e) { + return e.isDeclarationFile ? void 0 : e.fileName + }) + }, m, It, function(e) { + for (var t = c, r = e, n = !0, i = B.getCanonicalFileName(Zt.getNormalizedAbsolutePath(r, m)), a = 0, o = t; a < o.length; a++) { + var s = o[a]; + s.isDeclarationFile || 0 !== B.getCanonicalFileName(Zt.getNormalizedAbsolutePath(s.fileName, m)).indexOf(i) && (Bt(s, Zt.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files, [s.fileName, r]), n = !1) + } + return n + })), U + } + + function Ke(e, t) { + if (0 === P && !t.ambientModuleNames.length) return Re(e, t, void 0); + var r, n, i, a = M && M.getSourceFile(t.fileName); + if (a !== t && t.resolvedModules) { + for (var o = [], s = 0, c = 0, l = e; c < l.length; c++) { + var u = l[c], + _ = t.resolvedModules.get(u, nr(t, s)); + s++, o.push(_) + } + return o + } + for (var d = {}, s = 0; s < e.length; s++) { + u = e[s]; + if (t === a && !fe(a.path)) { + var p = Zt.getResolvedModule(a, u, nr(a, s)); + if (p) { + Zt.isTraceEnabled(I, B) && Zt.trace(B, p.packageId ? Zt.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Zt.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2, u, Zt.getNormalizedAbsolutePath(t.originalFileName, m), p.resolvedFileName, p.packageId && Zt.packageIdToString(p.packageId)), (n = n || new Array(e.length))[s] = p, (i = i || []).push(u); + continue + } + } + p = !1; + Zt.contains(t.ambientModuleNames, u) ? (p = !0, Zt.isTraceEnabled(I, B) && Zt.trace(B, Zt.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1, u, Zt.getNormalizedAbsolutePath(t.originalFileName, m))) : p = function(e, t) { + if (t >= Zt.length(null == a ? void 0 : a.imports) + Zt.length(null == a ? void 0 : a.moduleAugmentations)) return !1; + var t = Zt.getResolvedModule(a, e, a && nr(a, t)), + r = t && M.getSourceFile(t.resolvedFileName); + if (t && r) return !1; + t = te.get(e); + if (!t) return !1; + Zt.isTraceEnabled(I, B) && Zt.trace(B, Zt.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified, e, t); + return !0 + }(u, s), p ? (n = n || new Array(e.length))[s] = d : (r = r || []).push(u) + } + var f = r && r.length ? Re(r, t, i) : Zt.emptyArray; + if (!n) return Zt.Debug.assert(f.length === e.length), f; + for (var g = 0, s = 0; s < n.length; s++) n[s] ? n[s] === d && (n[s] = void 0) : (n[s] = f[g], g++); + return Zt.Debug.assert(g === f.length), n + } + + function Ve(e) { + return { + getPrependNodes: He, + getCanonicalFileName: It, + getCommonSourceDirectory: y.getCommonSourceDirectory, + getCompilerOptions: y.getCompilerOptions, + getCurrentDirectory: function() { + return m + }, + getNewLine: function() { + return B.getNewLine() + }, + getSourceFile: y.getSourceFile, + getSourceFileByPath: y.getSourceFileByPath, + getSourceFiles: y.getSourceFiles, + getLibFileFromReference: y.getLibFileFromReference, + isSourceFileFromExternalLibrary: Ge, + getResolvedProjectReferenceToRedirect: x, + getProjectReferenceRedirect: xt, + isSourceOfProjectReferenceRedirect: Et, + getSymlinkCache: Yt, + writeFile: e || qe, + isEmitBlocked: Qe, + readFile: function(e) { + return B.readFile(e) + }, + fileExists: function(e) { + var t = h(e); + return !!d(t) || !Zt.contains(Y, t) && B.fileExists(e) + }, + useCaseSensitiveFileNames: function() { + return B.useCaseSensitiveFileNames() + }, + getProgramBuildInfo: function() { + return y.getProgramBuildInfo && y.getProgramBuildInfo() + }, + getSourceFileFromReference: function(e, t) { + return y.getSourceFileFromReference(e, t) + }, + redirectTargetsMap: ye, + getFileIncludeReasons: y.getFileIncludeReasons, + createHash: Zt.maybeBind(B, B.createHash) + } + } + + function qe(e, t, r, n, i, a) { + B.writeFile(e, t, r, n, i, a) + } + + function We() { + return F + } + + function He() { + return pr(O, function(e, t) { + return null == (t = F[t]) ? void 0 : t.commandLine + }, function(e) { + var e = h(e), + t = d(e); + return t ? t.text : j.has(e) ? void 0 : B.readFile(e) + }) + } + + function Ge(e) { + return !!R.get(e.path) + } + + function v() { + return K = K || Zt.createTypeChecker(y) + } + + function Qe(e) { + return pe.has(h(e)) + } + + function Xe(e) { + return d(h(e)) + } + + function d(e) { + return j.get(e) || void 0 + } + + function Ye(e, t, r) { + return e ? t(e, r) : Zt.sortAndDeduplicateDiagnostics(Zt.flatMap(y.getSourceFiles(), function(e) { + return r && r.throwIfCancellationRequested(), t(e, r) + })) + } + + function Ze(e) { + var t, r; + return Zt.skipTypeChecking(e, I, y) ? Zt.emptyArray : (r = f.getDiagnostics(e.fileName), null != (t = e.commentDirectives) && t.length ? it(e, e.commentDirectives, r).diagnostics : r) + } + + function $e(e) { + var c; + return Zt.isSourceFileJS(e) ? (e.additionalSyntacticDiagnostics || (e.additionalSyntacticDiagnostics = (c = e, et(function() { + var a = []; + return e(c, c), Zt.forEachChildRecursively(c, e, function(e, t) { + Zt.canHaveModifiers(t) && t.modifiers === e && Zt.some(e, Zt.isDecorator) && !I.experimentalDecorators && a.push(s(t, Zt.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)); + switch (t.kind) { + case 260: + case 228: + case 171: + case 173: + case 174: + case 175: + case 215: + case 259: + case 216: + if (e === t.typeParameters) return a.push(o(e, Zt.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)), "skip"; + case 240: + if (e === t.modifiers) return function(e, t) { + for (var r = 0, n = e; r < n.length; r++) { + var i = n[r]; + switch (i.kind) { + case 85: + if (t) continue; + case 123: + case 121: + case 122: + case 146: + case 136: + case 126: + case 161: + case 101: + case 145: + a.push(s(i, Zt.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, Zt.tokenToString(i.kind))) + } + } + }(t.modifiers, 240 === t.kind), "skip"; + break; + case 169: + if (e !== t.modifiers) break; + for (var r = 0, n = e; r < n.length; r++) { + var i = n[r]; + Zt.isModifier(i) && 124 !== i.kind && 127 !== i.kind && a.push(s(i, Zt.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, Zt.tokenToString(i.kind))) + } + return "skip"; + case 166: + if (e === t.modifiers && Zt.some(e, Zt.isModifier)) return a.push(o(e, Zt.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)), "skip"; + break; + case 210: + case 211: + case 230: + case 282: + case 283: + case 212: + if (e === t.typeArguments) return a.push(o(e, Zt.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)), "skip" + } + }), a; + + function e(e, t) { + switch (t.kind) { + case 166: + case 169: + case 171: + if (t.questionToken === e) return a.push(s(e, Zt.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, "?")), "skip"; + case 170: + case 173: + case 174: + case 175: + case 215: + case 259: + case 216: + case 257: + if (t.type === e) return a.push(s(e, Zt.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)), "skip" + } + switch (e.kind) { + case 270: + if (e.isTypeOnly) return a.push(s(t, Zt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, "import type")), "skip"; + break; + case 275: + if (e.isTypeOnly) return a.push(s(e, Zt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, "export type")), "skip"; + break; + case 273: + case 278: + if (e.isTypeOnly) return a.push(s(e, Zt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, Zt.isImportSpecifier(e) ? "import...type" : "export...type")), "skip"; + break; + case 268: + return a.push(s(e, Zt.Diagnostics.import_can_only_be_used_in_TypeScript_files)), "skip"; + case 274: + if (e.isExportEquals) return a.push(s(e, Zt.Diagnostics.export_can_only_be_used_in_TypeScript_files)), "skip"; + break; + case 294: + if (117 === e.token) return a.push(s(e, Zt.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)), "skip"; + break; + case 261: + var r = Zt.tokenToString(118); + return Zt.Debug.assertIsDefined(r), a.push(s(e, Zt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, r)), "skip"; + case 264: + r = 16 & e.flags ? Zt.tokenToString(143) : Zt.tokenToString(142); + return Zt.Debug.assertIsDefined(r), a.push(s(e, Zt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, r)), "skip"; + case 262: + return a.push(s(e, Zt.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)), "skip"; + case 263: + r = Zt.Debug.checkDefined(Zt.tokenToString(92)); + return a.push(s(e, Zt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, r)), "skip"; + case 232: + return a.push(s(e, Zt.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)), "skip"; + case 231: + return a.push(s(e.type, Zt.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)), "skip"; + case 235: + return a.push(s(e.type, Zt.Diagnostics.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)), "skip"; + case 213: + Zt.Debug.fail() + } + } + + function o(e, t, r, n, i) { + var a = e.pos; + return Zt.createFileDiagnostic(c, a, e.end - a, t, r, n, i) + } + + function s(e, t, r, n, i) { + return Zt.createDiagnosticForNodeInSourceFile(c, e, t, r, n, i) + } + }))), Zt.concatenate(e.additionalSyntacticDiagnostics, e.parseDiagnostics)) : e.parseDiagnostics + } + + function et(e) { + try { + return e() + } catch (e) { + throw e instanceof Zt.OperationCanceledException && (K = void 0), e + } + } + + function tt(e, t) { + return Zt.concatenate(_r(rt(e, t), I), Ze(e)) + } + + function rt(e, t) { + return st(e, t, ne, nt) + } + + function nt(a, o) { + return et(function() { + if (Zt.skipTypeChecking(a, I, y)) return Zt.emptyArray; + var e = v(); + Zt.Debug.assert(!!a.bindDiagnostics); + var t = (1 === a.scriptKind || 2 === a.scriptKind) && Zt.isCheckJsEnabledForFile(a, I), + r = Zt.isPlainJsFile(a, I.checkJs), + n = !(!!a.checkJsDirective && !1 === a.checkJsDirective.enabled) && (3 === a.scriptKind || 4 === a.scriptKind || 5 === a.scriptKind || r || t || 7 === a.scriptKind), + i = n ? a.bindDiagnostics : Zt.emptyArray, + e = n ? e.getDiagnostics(a, o) : Zt.emptyArray; + return r && (i = Zt.filter(i, function(e) { + return Zt.plainJSErrors.has(e.code) + }), e = Zt.filter(e, function(e) { + return Zt.plainJSErrors.has(e.code) + })), + function(e, t) { + for (var r = [], n = 2; n < arguments.length; n++) r[n - 2] = arguments[n]; + var i = Zt.flatten(r); + if (!t || null == (t = e.commentDirectives) || !t.length) return i; + for (var t = it(e, e.commentDirectives, i), a = t.diagnostics, i = t.directives, o = 0, s = i.getUnusedExpectations(); o < s.length; o++) { + var c = s[o]; + a.push(Zt.createDiagnosticForRange(e, c.range, Zt.Diagnostics.Unused_ts_expect_error_directive)) + } + return a + }(a, n && !r, i, e, t ? a.jsDocDiagnostics : void 0) + }) + } + + function it(e, t, r) { + var n = Zt.createCommentDirectivesMap(e, t); + return { + diagnostics: r.filter(function(e) { + return -1 === function(e, t) { + var r = e.file, + e = e.start; + if (r) + for (var n = Zt.getLineStarts(r), i = Zt.computeLineAndCharacterOfPosition(n, e).line - 1; 0 <= i;) { + if (t.markUsed(i)) return i; + var a = r.text.slice(n[i], n[i + 1]).trim(); + if ("" !== a && !/^(\s*)\/\/(.*)$/.test(a)) return -1; + i-- + } + return -1 + }(e, n) + }), + directives: n + } + } + + function at(e, t) { + return st(e, t, ie, ot) + } + + function ot(t, r) { + return et(function() { + var e = v().getEmitResolver(t, r); + return Zt.getDeclarationDiagnostics(Ve(Zt.noop), e, t) || Zt.emptyArray + }) + } + + function st(e, t, r, n) { + var i = e ? null == (i = r.perFile) ? void 0 : i.get(e.path) : r.allDiagnostics; + return i || (i = n(e, t), e ? (r.perFile || (r.perFile = new Zt.Map)).set(e.path, i) : r.allDiagnostics = i, i) + } + + function ct(e, t) { + return e.isDeclarationFile ? [] : at(e, t) + } + + function lt(e, t, r, n) { + gt(Zt.normalizePath(e), t, r, void 0, n) + } + + function ut(e, t) { + return e.fileName === t.fileName + } + + function _t(e, t) { + return 79 === e.kind ? 79 === t.kind && e.escapedText === t.escapedText : 10 === t.kind && e.text === t.text + } + + function dt(e, t) { + var e = Zt.factory.createStringLiteral(e), + r = Zt.factory.createImportDeclaration(void 0, void 0, e, void 0); + return Zt.addEmitFlags(r, 67108864), Zt.setParent(e, r), Zt.setParent(r, t), e.flags &= -9, r.flags &= -9, e + } + + function pt(s) { + if (!s.imports) { + var c, l, u, e, a = Zt.isSourceFileJS(s), + _ = Zt.isExternalModule(s); + (I.isolatedModules || _) && !s.isDeclarationFile && (I.importHelpers && (c = [dt(Zt.externalHelpersModuleNameText, s)]), e = Zt.getJSXRuntimeImport(Zt.getJSXImplicitImportBase(I, s), I)) && (c = c || []).push(dt(e, s)); + for (var t = 0, r = s.statements; t < r.length; t++) ! function e(t, r) { + if (Zt.isAnyImportOrReExport(t)) { + var n = Zt.getExternalModuleName(t); + !(n && Zt.isStringLiteral(n) && n.text) || r && Zt.isExternalModuleNameRelative(n.text) || (Zt.setParentRecursive(t, !1), c = Zt.append(c, n), he) || 0 !== p || s.isDeclarationFile || (he = Zt.startsWith(n.text, "node:")) + } else if (Zt.isModuleDeclaration(t) && Zt.isAmbientModule(t) && (r || Zt.hasSyntacticModifier(t, 2) || s.isDeclarationFile)) { + t.name.parent = t; + n = Zt.getTextOfIdentifierOrLiteral(t.name); + if (_ || r && !Zt.isExternalModuleNameRelative(n))(l = l || []).push(t.name); + else if (!r) { + s.isDeclarationFile && (u = u || []).push(n); + r = t.body; + if (r) + for (var i = 0, a = r.statements; i < a.length; i++) { + var o = a[i]; + e(o, !0) + } + } + } + }(r[t], !1); + if (2097152 & s.flags || a) + for (var n = s, i = /import|require/g; null !== i.exec(n.text);) { + var o = function(e, t) { + function r(e) { + if (e.pos <= t && (t < e.end || t === e.end && 1 === e.kind)) return e + } + var n = e; + for (;;) { + var i = a && Zt.hasJSDocNodes(n) && Zt.forEach(n.jsDoc, r) || Zt.forEachChild(n, r); + if (!i) return n; + n = i + } + }(n, i.lastIndex); + a && Zt.isRequireCall(o, !0) || Zt.isImportCall(o) && 1 <= o.arguments.length && Zt.isStringLiteralLike(o.arguments[0]) ? (Zt.setParentRecursive(o, !1), c = Zt.append(c, o.arguments[0])) : Zt.isLiteralImportTypeNode(o) && (Zt.setParentRecursive(o, !1), c = Zt.append(c, o.argument.literal)) + } + s.imports = c || Zt.emptyArray, s.moduleAugmentations = l || Zt.emptyArray, s.ambientModuleNames = u || Zt.emptyArray + } + } + + function ft(t, r, e, n) { + var i, a; + return Zt.hasExtension(t) ? (i = B.getCanonicalFileName(t), I.allowNonTsExtensions || Zt.forEach(Zt.flatten(de), function(e) { + return Zt.fileExtensionIs(i, e) + }) ? (a = r(t), e && (a ? or(n) && i === B.getCanonicalFileName(d(n.file).fileName) && e(Zt.Diagnostics.A_file_cannot_have_a_reference_to_itself) : (n = xt(t)) ? e(Zt.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, n, t) : e(Zt.Diagnostics.File_0_not_found, t)), a) : void(e && (Zt.hasJSFileExtension(i) ? e(Zt.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option, t) : e(Zt.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1, t, "'" + Zt.flatten(_e).join("', '") + "'")))) : I.allowNonTsExtensions && r(t) || (e && I.allowNonTsExtensions ? void e(Zt.Diagnostics.File_0_not_found, t) : (n = Zt.forEach(_e[0], function(e) { + return r(t + e) + }), e && !n && e(Zt.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1, t, "'" + Zt.flatten(_e).join("', '") + "'"), n)) + } + + function gt(e, t, r, n, i) { + ft(e, function(e) { + return ht(e, t, r, i, n) + }, function(e) { + for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; + return Rt(void 0, i, e, t) + }, i) + } + + function mt(e, t) { + gt(e, !1, !1, void 0, t) + } + + function yt(e, t, r) { + !or(r) && Zt.some(re.get(t.path), or) ? Rt(t, r, Zt.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing, [t.fileName, e]) : Rt(t, r, Zt.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing, [e, t.fileName]) + } + + function ht(e, t, r, n, i) { + null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.push("program", "findSourceFile", { + fileName: e, + isDefaultLib: t || void 0, + fileIncludeKind: Zt.FileIncludeKind[n.kind] + }); + e = function(t, e, r, n, i) { + var a = h(t); + if (g) { + var o = Ct(a); + if (o = !o && B.realpath && I.preserveSymlinks && Zt.isDeclarationFileName(t) && Zt.stringContains(t, Zt.nodeModulesPathPart) && (u = h(B.realpath(t))) !== a ? Ct(u) : o) return (u = Zt.isString(o) ? ht(o, e, r, n, i) : void 0) && b(u, a, void 0), u + } + var s, o = t; + if (j.has(a)) return bt((u = j.get(a)) || void 0, n), u && I.forceConsistentCasingInFileNames && (h(c = u.fileName) !== h(t) && (t = xt(t) || t), c = Zt.getNormalizedAbsolutePathWithoutRoot(c, m), l = Zt.getNormalizedAbsolutePathWithoutRoot(t, m), c !== l) && yt(t, u, n), u && R.get(u.path) && 0 === p ? (R.set(u.path, !1), I.noResolve || (Nt(u, e), At(u)), I.noLib || wt(u), oe.set(u.path, !1), Ot(u)) : u && oe.get(u.path) && p < ae && (oe.set(u.path, !1), Ot(u)), u || void 0; + if (or(n) && !g) { + var c = Dt(t); + if (c) { + if (Zt.outFile(c.commandLine.options)) return; + var l = St(c, t); + s = h(t = l) + } + } + var u = vt(t, A, B, I), + l = B.getSourceFile(t, u, function(e) { + return Rt(void 0, n, Zt.Diagnostics.Cannot_read_file_0_Colon_1, [t, e]) + }, be || (null == (c = null == M ? void 0 : M.getSourceFileByPath(h(t))) ? void 0 : c.impliedNodeFormat) !== u.impliedNodeFormat); + if (i) { + var c = Zt.packageIdToString(i), + _ = ge.get(c); + if (_) return d = function(e, t, r, n, i, a, o) { + var s = Object.create(e); + return s.fileName = r, s.path = n, s.resolvedPath = i, s.originalFileName = a, s.redirectInfo = { + redirectTarget: e, + unredirected: t + }, s.packageJsonLocations = null != (r = o.packageJsonLocations) && r.length ? o.packageJsonLocations : void 0, s.packageJsonScope = o.packageJsonScope, R.set(n, 0 < p), Object.defineProperties(s, { + id: { + get: function() { + return this.redirectInfo.redirectTarget.id + }, + set: function(e) { + this.redirectInfo.redirectTarget.id = e + } + }, + symbol: { + get: function() { + return this.redirectInfo.redirectTarget.symbol + }, + set: function(e) { + this.redirectInfo.redirectTarget.symbol = e + } + } + }), s + }(_, l, t, a, h(t), o, u), ye.add(_.path, t), b(d, a, s), bt(d, n), me.set(a, Zt.packageIdToPackageName(i)), J.push(d), d; + l && (ge.set(c, l), me.set(a, Zt.packageIdToPackageName(i))) + } { + var d; + b(l, a, s), l && (R.set(a, 0 < p), l.fileName = t, l.path = a, l.resolvedPath = h(t), l.originalFileName = o, l.packageJsonLocations = null != (_ = u.packageJsonLocations) && _.length ? u.packageJsonLocations : void 0, l.packageJsonScope = u.packageJsonScope, bt(l, n), B.useCaseSensitiveFileNames() && (d = Zt.toFileNameLowerCase(a), (c = ve.get(d)) ? yt(t, c, n) : ve.set(d, l)), ce = ce || l.hasNoDefaultLib && !r, I.noResolve || (Nt(l, e), At(l)), I.noLib || wt(l), Ot(l), (e ? E : J).push(l)) + } + return l + }(e, t, r, n, i); + return null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.pop(), e + } + + function vt(e, t, r, n) { + e = lr(Zt.getNormalizedAbsolutePath(e, m), null == t ? void 0 : t.getPackageJsonInfoCache(), r, n), t = Zt.getEmitScriptTarget(n), r = Zt.getSetExternalModuleIndicator(n); + return "object" == typeof e ? __assign(__assign({}, e), { + languageVersion: t, + setExternalModuleIndicator: r + }) : { + languageVersion: t, + impliedNodeFormat: e, + setExternalModuleIndicator: r + } + } + + function bt(e, t) { + e && re.add(e.path, t) + } + + function b(e, t, r) { + r ? (j.set(r, e), j.set(t, e || !1)) : j.set(t, e) + } + + function xt(e) { + var t = Dt(e); + return t && St(t, e) + } + + function Dt(e) { + if (F && F.length && !Zt.isDeclarationFileName(e) && !Zt.fileExtensionIs(e, ".json")) return x(e) + } + + function St(e, t) { + var r = Zt.outFile(e.commandLine.options); + return r ? Zt.changeExtension(r, ".d.ts") : Zt.getOutputDeclarationFileName(t, e.commandLine, !B.useCaseSensitiveFileNames()) + } + + function x(e) { + void 0 === Z && (Z = new Zt.Map, Tt(function(t) { + h(I.configFilePath) !== t.sourceFile.path && t.commandLine.fileNames.forEach(function(e) { + return Z.set(h(e), t.sourceFile.path) + }) + })); + e = Z.get(h(e)); + return e && kt(e) + } + + function Tt(e) { + return Zt.forEachResolvedProjectReference(F, e) + } + + function Ct(e) { + if (Zt.isDeclarationFileName(e)) return void 0 === $ && ($ = new Zt.Map, Tt(function(r) { + var n, e = Zt.outFile(r.commandLine.options); + e ? (e = Zt.changeExtension(e, ".d.ts"), $.set(h(e), !0)) : (n = Zt.memoize(function() { + return Zt.getCommonSourceDirectoryOfConfig(r.commandLine, !B.useCaseSensitiveFileNames()) + }), Zt.forEach(r.commandLine.fileNames, function(e) { + var t; + Zt.isDeclarationFileName(e) || Zt.fileExtensionIs(e, ".json") || (t = Zt.getOutputDeclarationFileName(e, r.commandLine, !B.useCaseSensitiveFileNames(), n), $.set(h(t), e)) + })) + })), $.get(e) + } + + function Et(e) { + return g && !!x(e) + } + + function kt(e) { + if (a) return a.get(e) || void 0 + } + + function Nt(r, n) { + Zt.forEach(r.referencedFiles, function(e, t) { + gt($t(e.fileName, r.fileName), n, !1, void 0, { + kind: Zt.FileIncludeKind.ReferenceFile, + file: r.path, + index: t + }) + }) + } + + function At(e) { + var t = e.typeReferenceDirectives; + if (t) + for (var r = Be(t, e), n = 0; n < t.length; n++) { + var i = e.typeReferenceDirectives[n], + a = r[n], + o = Zt.toFileNameLowerCase(i.fileName), + s = (Zt.setResolvedTypeReferenceDirective(e, o, a), i.resolutionMode || e.impliedNodeFormat); + s && Zt.getEmitModuleResolutionKind(I) !== Zt.ModuleResolutionKind.Node16 && Zt.getEmitModuleResolutionKind(I) !== Zt.ModuleResolutionKind.NodeNext && f.add(Zt.createDiagnosticForRange(e, i, Zt.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)), Ft(o, s, a, { + kind: Zt.FileIncludeKind.TypeReferenceDirective, + file: e.path, + index: n + }) + } + } + + function Ft(e, t, r, n) { + var i, a, o, s; + null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.push("program", "processTypeReferenceDirective", { + directive: e, + hasResolved: !!r, + refKind: n.kind, + refPath: or(n) ? n.file : void 0 + }), e = e, t = t, r = r, n = n, (s = L.get(e, t)) && s.primary || (i = !0, r ? (r.isExternalLibraryImport && p++, !r.primary && s ? (r.resolvedFileName !== s.resolvedFileName && (a = B.readFile(r.resolvedFileName), o = Xe(s.resolvedFileName), a !== o.text) && Rt(o, n, Zt.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict, [e, r.resolvedFileName, s.resolvedFileName]), i = !1) : gt(r.resolvedFileName, !1, !1, r.packageId, n), r.isExternalLibraryImport && p--) : Rt(void 0, n, Zt.Diagnostics.Cannot_find_type_definition_file_for_0, [e]), i && L.set(e, t, r)), null !== Zt.tracing && void 0 !== Zt.tracing && Zt.tracing.pop() + } + + function Pt(e) { + for (var t = e.split("."), r = t[1], n = 2; t[n] && "d" !== t[n];) r += (2 === n ? "/" : "-") + t[n], n++; + var i = Zt.combinePaths(m, "__lib_node_modules_lookup_".concat(e, "__.ts")), + i = Zt.resolveModuleName("@typescript/lib-" + r, i, { + moduleResolution: Zt.ModuleResolutionKind.NodeJs + }, B, A); + return null != i && i.resolvedModule ? i.resolvedModule.resolvedFileName : Zt.combinePaths(ue, e) + } + + function wt(i) { + Zt.forEach(i.libReferenceDirectives, function(e, t) { + var r, e = Zt.toFileNameLowerCase(e.fileName), + n = Zt.libMap.get(e); + n ? lt(Pt(n), !0, !0, { + kind: Zt.FileIncludeKind.LibReferenceDirective, + file: i.path, + index: t + }) : (n = Zt.removeSuffix(Zt.removePrefix(e, "lib."), ".d.ts"), r = (n = Zt.getSpellingSuggestion(n, Zt.libs, Zt.identity)) ? Zt.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1 : Zt.Diagnostics.Cannot_find_lib_definition_for_0, (N = N || []).push({ + kind: 0, + reason: { + kind: Zt.FileIncludeKind.LibReferenceDirective, + file: i.path, + index: t + }, + diagnostic: r, + args: [e, n] + })) + }) + } + + function It(e) { + return B.getCanonicalFileName(e) + } + + function Ot(e) { + var t; + if (pt(e), e.imports.length || e.moduleAugmentations.length) + for (var r = mr(e), n = Ke(r, e), i = (Zt.Debug.assert(n.length === r.length), (!g || null == (t = je(e)) ? void 0 : t.commandLine.options) || I), a = 0; a < r.length; a++) { + var o, s, c, l, u = n[a]; + Zt.setResolvedModule(e, r[a], u, nr(e, a)), u && (o = u.isExternalLibraryImport, l = !Zt.resolutionExtensionIsTSOrJson(u.extension), s = u.resolvedFileName, o && p++, c = o && l && ae < p, l = s && !gr(i, u) && !i.noResolve && a < e.imports.length && !c && !(l && !Zt.getAllowJSCompilerOption(i)) && (Zt.isInJSFile(e.imports[a]) || !(8388608 & e.imports[a].flags)), c ? oe.set(e.path, !0) : l && ht(s, !1, !1, { + kind: Zt.FileIncludeKind.Import, + file: e.path, + index: a + }, u.packageId), o) && p-- + } else e.resolvedModules = void 0 + } + + function Mt(e) { + a = a || new Zt.Map; + var t, e = fr(e), + r = h(e), + n = a.get(r); + if (void 0 !== n) return n || void 0; + if (B.getParsedCommandLine) { + if (!(t = B.getParsedCommandLine(e))) return b(void 0, r, void 0), void a.set(r, !1); + i = Zt.Debug.checkDefined(t.options.configFile), Zt.Debug.assert(!i.path || i.path === r), b(i, r, void 0) + } else { + var i, n = Zt.getNormalizedAbsolutePath(Zt.getDirectoryPath(e), B.getCurrentDirectory()); + if (b(i = B.getSourceFile(e, 100), r, void 0), void 0 === i) return void a.set(r, !1); + t = Zt.parseJsonSourceFileConfigFileContent(i, se, n, void 0, e) + } + i.fileName = e, i.path = r, i.resolvedPath = r, i.originalFileName = e; + n = { + commandLine: t, + sourceFile: i + }; + return a.set(r, n), t.projectReferences && (n.references = t.projectReferences.map(Mt)), n + } + + function Lt(e, t, r, n) { + var i, a, o = or(t) ? t : void 0, + s = (e && null != (s = re.get(e.path)) && s.forEach(l), t && l(t), o && 1 === (null == i ? void 0 : i.length) && (i = void 0), o && cr(d, o)), + c = i && Zt.chainDiagnosticMessages(i, Zt.Diagnostics.The_file_is_in_the_program_because_Colon), + e = e && Zt.explainIfFileIsRedirectAndImpliedFormat(e), + e = Zt.chainDiagnosticMessages.apply(void 0, __spreadArray([e ? c ? __spreadArray([c], e, !0) : e : c, r], n || Zt.emptyArray, !1)); + return s && sr(s) ? Zt.createFileDiagnosticFromMessageChain(s.file, s.pos, s.end - s.pos, e, a) : Zt.createCompilerDiagnosticFromMessageChain(e, a); + + function l(e) { + (i = i || []).push(Zt.fileIncludeReasonToDiagnostics(y, e)), !o && or(e) ? o = e : o !== e && (a = Zt.append(a, function(e) { + if (or(e)) { + var t, r = cr(d, e); + switch (e.kind) { + case Zt.FileIncludeKind.Import: + t = Zt.Diagnostics.File_is_included_via_import_here; + break; + case Zt.FileIncludeKind.ReferenceFile: + t = Zt.Diagnostics.File_is_included_via_reference_here; + break; + case Zt.FileIncludeKind.TypeReferenceDirective: + t = Zt.Diagnostics.File_is_included_via_type_library_reference_here; + break; + case Zt.FileIncludeKind.LibReferenceDirective: + t = Zt.Diagnostics.File_is_included_via_library_reference_here; + break; + default: + Zt.Debug.assertNever(e) + } + return sr(r) ? Zt.createFileDiagnostic(r.file, r.pos, r.end - r.pos, t) : void 0 + } + if (!I.configFile) return; + var n, i; + switch (e.kind) { + case Zt.FileIncludeKind.RootFile: + if (!I.configFile.configFileSpecs) return; + var a = Zt.getNormalizedAbsolutePath(w[e.index], m), + o = Zt.getMatchedFileSpec(y, a); + if (o) n = Zt.getTsConfigPropArrayElementValue(I.configFile, "files", o), i = Zt.Diagnostics.File_is_matched_by_files_list_specified_here; + else { + o = Zt.getMatchedIncludeSpec(y, a); + if (!o || !Zt.isString(o)) return; + n = Zt.getTsConfigPropArrayElementValue(I.configFile, "include", o), i = Zt.Diagnostics.File_is_matched_by_include_pattern_specified_here + } + break; + case Zt.FileIncludeKind.SourceFromProjectReference: + case Zt.FileIncludeKind.OutputFromProjectReference: + var s, c = Zt.Debug.checkDefined(null == F ? void 0 : F[e.index]), + a = ar(O, F, function(e, t, r) { + return e === c ? { + sourceFile: (null == t ? void 0 : t.sourceFile) || I.configFile, + index: r + } : void 0 + }); + return a ? (o = a.sourceFile, a = a.index, (s = Zt.firstDefined(Zt.getTsConfigPropArray(o, "references"), function(e) { + return Zt.isArrayLiteralExpression(e.initializer) ? e.initializer : void 0 + })) && s.elements.length > a ? Zt.createDiagnosticForNodeInSourceFile(o, s.elements[a], e.kind === Zt.FileIncludeKind.OutputFromProjectReference ? Zt.Diagnostics.File_is_output_from_referenced_project_specified_here : Zt.Diagnostics.File_is_source_from_referenced_project_specified_here) : void 0) : void 0; + case Zt.FileIncludeKind.AutomaticTypeDirectiveFile: + if (!I.types) return; + n = Kt("types", e.typeReference), i = Zt.Diagnostics.File_is_entry_point_of_type_library_specified_here; + break; + case Zt.FileIncludeKind.LibFile: + void 0 !== e.index ? (n = Kt("lib", I.lib[e.index]), i = Zt.Diagnostics.File_is_library_specified_here) : (o = Zt.forEachEntry(Zt.targetOptionDeclaration.type, function(e, t) { + return e === Zt.getEmitScriptTarget(I) ? t : void 0 + }), n = o ? function(e, t) { + e = zt(e); + return e && Zt.firstDefined(e, function(e) { + return Zt.isStringLiteral(e.initializer) && e.initializer.text === t ? e.initializer : void 0 + }) + }("target", o) : void 0, i = Zt.Diagnostics.File_is_default_library_for_target_specified_here); + break; + default: + Zt.Debug.assertNever(e) + } + return n && Zt.createDiagnosticForNodeInSourceFile(I.configFile, n, i) + }(e))), e === t && (t = void 0) + } + } + + function Rt(e, t, r, n) { + (N = N || []).push({ + kind: 1, + file: e && e.path, + fileProcessingReason: t, + diagnostic: r, + args: n + }) + } + + function Bt(e, t, r) { + f.add(Lt(e, void 0, t, r)) + } + + function jt(e, t, r, n, i, a) { + for (var o = !0, s = 0, c = Ut(); s < c.length; s++) { + var l = c[s]; + if (Zt.isObjectLiteralExpression(l.initializer)) + for (var u = 0, _ = Zt.getPropertyAssignment(l.initializer, e); u < _.length; u++) { + var d = _[u].initializer; + Zt.isArrayLiteralExpression(d) && d.elements.length > t && (f.add(Zt.createDiagnosticForNodeInSourceFile(I.configFile, d.elements[t], r, n, i, a)), o = !1) + } + } + o && f.add(Zt.createCompilerDiagnostic(r, n, i, a)) + } + + function Jt(e, t, r, n) { + for (var i = !0, a = 0, o = Ut(); a < o.length; a++) { + var s = o[a]; + Zt.isObjectLiteralExpression(s.initializer) && Gt(s.initializer, e, t, void 0, r, n) && (i = !1) + } + i && f.add(Zt.createCompilerDiagnostic(r, n)) + } + + function zt(e) { + var t = Ht(); + return t && Zt.getPropertyAssignment(t, e) + } + + function Ut() { + return zt("paths") || Zt.emptyArray + } + + function Kt(e, t) { + var r = Ht(); + return r && Zt.getPropertyArrayElementValue(r, e, t) + } + + function D(e, t, r, n) { + Wt(!0, t, r, e, t, r, n) + } + + function Vt(e, t, r, n) { + Wt(!1, e, void 0, t, r, n) + } + + function qt(e, t, r, n, i) { + var a = Zt.firstDefined(Zt.getTsConfigPropArray(e || I.configFile, "references"), function(e) { + return Zt.isArrayLiteralExpression(e.initializer) ? e.initializer : void 0 + }); + a && a.elements.length > t ? f.add(Zt.createDiagnosticForNodeInSourceFile(e || I.configFile, a.elements[t], r, n, i)) : f.add(Zt.createCompilerDiagnostic(r, n, i)) + } + + function Wt(e, t, r, n, i, a, o) { + var s = Ht(); + s && Gt(s, e, t, r, n, i, a, o) || f.add(Zt.createCompilerDiagnostic(n, i, a, o)) + } + + function Ht() { + if (void 0 === q) { + q = !1; + var e = Zt.getTsConfigObjectLiteralExpression(I.configFile); + if (e) + for (var t = 0, r = Zt.getPropertyAssignment(e, "compilerOptions"); t < r.length; t++) { + var n = r[t]; + if (Zt.isObjectLiteralExpression(n.initializer)) { + q = n.initializer; + break + } + } + } + return q || void 0 + } + + function Gt(e, t, r, n, i, a, o, s) { + for (var e = Zt.getPropertyAssignment(e, r, n), c = 0, l = e; c < l.length; c++) { + var u = l[c]; + f.add(Zt.createDiagnosticForNodeInSourceFile(I.configFile, t ? u.name : u.initializer, i, a, o, s)) + } + return e.length + } + + function Qt(e, t) { + pe.set(h(e), !0), f.add(t) + } + + function Xt(e, t) { + return 0 === Zt.comparePaths(e, t, m, !B.useCaseSensitiveFileNames()) + } + + function Yt() { + return B.getSymlinkCache ? B.getSymlinkCache() : (z = z || Zt.createSymlinkCache(m, It), k && L && !z.hasProcessedResolutions() && z.setSymlinksFromResolutions(k, L), z) + } + }, Zt.emitSkippedWithNoDiagnostics = { + diagnostics: Zt.emptyArray, + sourceMaps: void 0, + emittedFiles: void 0, + emitSkipped: !0 + }, Zt.handleNoEmitOptions = ur, Zt.filterSemanticDiagnostics = _r, Zt.parseConfigHostFromCompilerHostLike = dr, Zt.createPrependNodes = pr, Zt.resolveProjectReferencePath = fr, Zt.getResolutionDiagnostic = gr, Zt.getModuleNameStringLiteralAt = u + }(ts = ts || {}), ! function(x) { + var e; + + function g() { + return r = new x.Map, o = new x.Map, n = void 0, e = { + getKeys: function(e) { + return o.get(e) + }, + getValues: function(e) { + return r.get(e) + }, + keys: function() { + return r.keys() + }, + deleteKey: function(t) { + (n = n || new x.Set).add(t); + var e = r.get(t); + return !!e && (e.forEach(function(e) { + return s(o, e, t) + }), r.delete(t), !0) + }, + set: function(i, t) { + null != n && n.delete(i); + var a = r.get(i); + return r.set(i, t), null != a && a.forEach(function(e) { + t.has(e) || s(o, e, i) + }), t.forEach(function(e) { + var t, r, n; + null != a && a.has(e) || (e = e, r = i, (n = (t = o).get(e)) || (n = new x.Set, t.set(e, n)), n.add(r)) + }), e + } + }; + var r, o, n, e + } + + function s(e, t, r) { + var n = e.get(t); + return !(null == n || !n.delete(r) || (n.size || e.delete(t), 0)) + } + + function D(e) { + return x.mapDefined(e.declarations, function(e) { + return null == (e = x.getSourceFileOfNode(e)) ? void 0 : e.resolvedPath + }) + } + + function S(e, t, r, n) { + return x.toPath(e.getProjectReferenceRedirect(t) || t, r, n) + } + + function m(t, i, r) { + var n, e; + if (i.imports && 0 < i.imports.length) + for (var a = t.getTypeChecker(), o = 0, s = i.imports; o < s.length; o++) { + var c = s[o], + c = (e = (e = a).getSymbolAtLocation(c)) && D(e); + null != c && c.forEach(b) + } + var l = x.getDirectoryPath(i.resolvedPath); + if (i.referencedFiles && 0 < i.referencedFiles.length) + for (var u = 0, _ = i.referencedFiles; u < _.length; u++) { + var d = _[u]; + b(S(t, d.fileName, l, r)) + } + if (i.resolvedTypeReferenceDirectiveNames && i.resolvedTypeReferenceDirectiveNames.forEach(function(e) { + e && (e = e.resolvedFileName, b(S(t, e, l, r))) + }), i.moduleAugmentations.length) + for (var a = t.getTypeChecker(), p = 0, f = i.moduleAugmentations; p < f.length; p++) { + var g = f[p]; + x.isStringLiteral(g) && (g = a.getSymbolAtLocation(g)) && v(g) + } + for (var m = 0, y = t.getTypeChecker().getAmbientModules(); m < y.length; m++) { + var h = y[m]; + h.declarations && 1 < h.declarations.length && v(h) + } + return n; + + function v(e) { + if (e.declarations) + for (var t = 0, r = e.declarations; t < r.length; t++) { + var n = r[t], + n = x.getSourceFileOfNode(n); + n && n !== i && b(n.resolvedPath) + } + } + + function b(e) { + (n = n || new x.Set).add(e) + } + } + + function y(e, t) { + return t && !t.referencedMap == !e + } + + function o(e, t, r, n, i, a) { + r = t.getSourceFileByPath(r); + return r ? _(e, t, r, n, i, a) ? (e.referencedMap ? function(e, t, r, n, i, a) { + if (h(r)) return f(e, t, r); + var o = t.getCompilerOptions(); + if (o && (o.isolatedModules || x.outFile(o))) return [r]; + var s = new x.Map, + c = (s.set(r.resolvedPath, r), p(e, r.resolvedPath)); + for (; 0 < c.length;) { + var l, u = c.pop(); + s.has(u) || (l = t.getSourceFileByPath(u), s.set(u, l), l && _(e, t, l, n, i, a) && c.push.apply(c, p(e, l.resolvedPath))) + } + return x.arrayFrom(x.mapDefinedIterator(s.values(), function(e) { + return e + })) + } : function(e, t, r) { + var n = t.getCompilerOptions(); + if (n && x.outFile(n)) return [r]; + return f(e, t, r) + })(e, t, r, n, i, a) : [r] : x.emptyArray + } + + function _(o, e, s, t, c, l, r) { + var n, u, _; + return void 0 === r && (r = o.useFileVersionAsSignature), (null == (n = o.hasCalledUpdateShapeSignature) || !n.has(s.resolvedPath)) && (n = o.fileInfos.get(s.resolvedPath), u = n.signature, s.isDeclarationFile || r || e.emit(s, function(e, t, r, n, i, a) { + x.Debug.assert(x.isDeclarationFileName(e), "File extension for signature expected to be dts: Got:: ".concat(e)), (_ = x.computeSignatureWithDiagnostics(s, t, c, l, a)) !== u && d(o, s, i[0].exportedModulesFromDeclarationEmit) + }, t, !0, void 0, !0), void 0 === _ && (_ = s.version, o.exportedModulesMap) && _ !== u && ((o.oldExportedModulesMap || (o.oldExportedModulesMap = new x.Map)).set(s.resolvedPath, o.exportedModulesMap.getValues(s.resolvedPath) || !1), (r = o.referencedMap ? o.referencedMap.getValues(s.resolvedPath) : void 0) ? o.exportedModulesMap.set(s.resolvedPath, r) : o.exportedModulesMap.deleteKey(s.resolvedPath)), (o.oldSignatures || (o.oldSignatures = new x.Map)).set(s.resolvedPath, u || !1), (o.hasCalledUpdateShapeSignature || (o.hasCalledUpdateShapeSignature = new x.Set)).add(s.resolvedPath), (n.signature = _) !== u) + } + + function d(e, t, r) { + var n; + e.exportedModulesMap && ((e.oldExportedModulesMap || (e.oldExportedModulesMap = new x.Map)).set(t.resolvedPath, e.exportedModulesMap.getValues(t.resolvedPath) || !1), r && (r.forEach(function(e) { + null != (e = D(e)) && e.length && (n = n || new x.Set, e.forEach(function(e) { + return n.add(e) + })) + }), n) ? e.exportedModulesMap.set(t.resolvedPath, n) : e.exportedModulesMap.deleteKey(t.resolvedPath)) + } + + function l(e, t) { + return e.allFileNames || (t = t.getSourceFiles(), e.allFileNames = t === x.emptyArray ? x.emptyArray : t.map(function(e) { + return e.fileName + })), e.allFileNames + } + + function p(e, t) { + e = e.referencedMap.getKeys(t); + return e ? x.arrayFrom(e.keys()) : [] + } + + function h(e) { + return x.some(e.moduleAugmentations, function(e) { + return x.isGlobalScopeAugmentation(e.parent) + }) || !x.isExternalOrCommonJsModule(e) && !x.isJsonSourceFile(e) && ! function(e) { + for (var t = 0, r = e.statements; t < r.length; t++) { + var n = r[t]; + if (!x.isModuleWithStringLiteralName(n)) return + } + return 1 + }(e) + } + + function f(e, t, r) { + if (!e.allFilesExcludingDefaultLibraryFile) { + var n; + r && s(r); + for (var i = 0, a = t.getSourceFiles(); i < a.length; i++) { + var o = a[i]; + o !== r && s(o) + } + e.allFilesExcludingDefaultLibraryFile = n || x.emptyArray + } + return e.allFilesExcludingDefaultLibraryFile; + + function s(e) { + t.isSourceFileDefaultLibrary(e) || (n = n || []).push(e) + } + } + x.getFileEmitOutput = function(e, t, r, n, i, a) { + var o = [], + t = (e = e.emit(t, function(e, t, r) { + o.push({ + name: e, + writeByteOrderMark: r, + text: t + }) + }, n, r, i, a)).emitSkipped, + n = e.diagnostics; + return { + outputFiles: o, + emitSkipped: t, + diagnostics: n + } + }, (e = x.BuilderState || (x.BuilderState = {})).createManyToManyPathMap = g, e.canReuseOldState = y, e.create = function(e, t, r, n) { + var i = new x.Map, + a = e.getCompilerOptions().module !== x.ModuleKind.None ? g() : void 0, + o = a ? g() : void 0, + s = y(a, r); + e.getTypeChecker(); + for (var c = 0, l = e.getSourceFiles(); c < l.length; c++) { + var u, _ = l[c], + d = x.Debug.checkDefined(_.version, "Program intended to be used with Builder should have source files with versions set"), + p = !s || null == (p = r.oldSignatures) ? void 0 : p.get(_.resolvedPath), + f = void 0 === p ? !s || null == (f = r.fileInfos.get(_.resolvedPath)) ? void 0 : f.signature : p || void 0; + a && ((u = m(e, _, t)) && a.set(_.resolvedPath, u), s) && (u = void 0 === (u = null == (u = r.oldExportedModulesMap) ? void 0 : u.get(_.resolvedPath)) ? r.exportedModulesMap.getValues(_.resolvedPath) : u || void 0) && o.set(_.resolvedPath, u), i.set(_.resolvedPath, { + version: d, + signature: f, + affectsGlobalScope: h(_) || void 0, + impliedFormat: _.impliedNodeFormat + }) + } + return { + fileInfos: i, + referencedMap: a, + exportedModulesMap: o, + useFileVersionAsSignature: !n && !s + } + }, e.releaseCache = function(e) { + e.allFilesExcludingDefaultLibraryFile = void 0, e.allFileNames = void 0 + }, e.getFilesAffectedBy = function(e, t, r, n, i, a) { + return t = o(e, t, r, n, i, a), null != (r = e.oldSignatures) && r.clear(), null != (n = e.oldExportedModulesMap) && n.clear(), t + }, e.getFilesAffectedByWithOldState = o, e.updateSignatureOfFile = function(e, t, r) { + e.fileInfos.get(r).signature = t, (e.hasCalledUpdateShapeSignature || (e.hasCalledUpdateShapeSignature = new x.Set)).add(r) + }, e.updateShapeSignature = _, e.updateExportedModules = d, e.getAllDependencies = function(e, r, t) { + var n = r.getCompilerOptions(); + if (x.outFile(n)) return l(e, r); + if (!e.referencedMap || h(t)) return l(e, r); + for (var i = new x.Set, a = [t.resolvedPath]; a.length;) { + var o = a.pop(); + if (!i.has(o)) { + i.add(o); + o = e.referencedMap.getValues(o); + if (o) + for (var s = o.keys(), c = s.next(); !c.done; c = s.next()) a.push(c.value) + } + } + return x.arrayFrom(x.mapDefinedIterator(i.keys(), function(e) { + var t; + return null != (t = null == (t = r.getSourceFileByPath(e)) ? void 0 : t.fileName) ? t : e + })) + }, e.getReferencedByPaths = p, e.getAllFilesExcludingDefaultLibraryFile = f + }(ts = ts || {}), ! function(I) { + var v, e; + + function i(c, l, u, e) { + var t, _ = I.BuilderState.create(c, l, u, e), + e = (_.program = c).getCompilerOptions(), + r = (_.compilerOptions = e, I.outFile(e)), + d = (r ? e.composite && null != u && u.outSignature && r === I.outFile(null == u ? void 0 : u.compilerOptions) && (_.outSignature = null == u ? void 0 : u.outSignature) : _.semanticDiagnosticsPerFile = new I.Map, _.changedFilesSet = new I.Set, _.latestChangedDtsFile = !e.composite || null == u ? void 0 : u.latestChangedDtsFile, I.BuilderState.canReuseOldState(_.referencedMap, u)), + n = d ? u.compilerOptions : void 0, + p = d && u.semanticDiagnosticsPerFile && !!_.semanticDiagnosticsPerFile && !I.compilerOptionsAffectSemanticDiagnostics(e, n), + f = e.composite && (null == u ? void 0 : u.emitSignatures) && !r && !I.compilerOptionsAffectDeclarationPath(e, u.compilerOptions), + g = (d && (null != (t = u.changedFilesSet) && t.forEach(function(e) { + return _.changedFilesSet.add(e) + }), !r) && u.affectedFilesPendingEmit && (_.affectedFilesPendingEmit = u.affectedFilesPendingEmit.slice(), _.affectedFilesPendingEmitKind = u.affectedFilesPendingEmitKind && new I.Map(u.affectedFilesPendingEmitKind), _.affectedFilesPendingEmitIndex = u.affectedFilesPendingEmitIndex, _.seenAffectedFiles = new I.Set), _.referencedMap), + m = d ? u.referencedMap : void 0, + y = p && !e.skipLibCheck == !n.skipLibCheck, + h = y && !e.skipDefaultLibCheck == !n.skipDefaultLibCheck; + return _.fileInfos.forEach(function(e, t) { + var r, n, i, a; + if (!d || !(o = u.fileInfos.get(t)) || o.version !== e.version || o.impliedFormat !== e.impliedFormat || (e = o = g && g.getValues(t), a = m && m.getValues(t), e !== a && (void 0 === e || void 0 === a || e.size !== a.size || I.forEachKey(e, function(e) { + return !a.has(e) + }))) || o && I.forEachKey(o, function(e) { + return !_.fileInfos.has(e) && u.fileInfos.has(e) + })) _.changedFilesSet.add(t); + else if (p) { + var e = c.getSourceFileByPath(t); + if (e.isDeclarationFile && !y) return; + if (e.hasNoDefaultLib && !h) return; + var o = u.semanticDiagnosticsPerFile.get(t); + o && (_.semanticDiagnosticsPerFile.set(t, u.hasReusableDiagnostic ? (r = c, n = l, (e = o).length ? (i = I.getDirectoryPath(I.getNormalizedAbsolutePath(I.getTsBuildInfoEmitOutputFilePath(r.getCompilerOptions()), r.getCurrentDirectory())), e.map(function(e) { + var t = b(e, r, s), + e = (t.reportsUnnecessary = e.reportsUnnecessary, t.reportsDeprecated = e.reportDeprecated, t.source = e.source, t.skippedOn = e.skippedOn, e.relatedInformation); + return t.relatedInformation = e ? e.length ? e.map(function(e) { + return b(e, r, s) + }) : [] : void 0, t + })) : I.emptyArray) : o), _.semanticDiagnosticsFromOldState || (_.semanticDiagnosticsFromOldState = new I.Set), _.semanticDiagnosticsFromOldState.add(t)) + } + + function s(e) { + return I.toPath(e, i, n) + } + f && (e = u.emitSignatures.get(t)) && (_.emitSignatures || (_.emitSignatures = new I.Map)).set(t, e) + }), d && I.forEachEntry(u.fileInfos, function(e, t) { + return e.affectsGlobalScope && !_.fileInfos.has(t) + }) ? I.BuilderState.getAllFilesExcludingDefaultLibraryFile(_, c, void 0).forEach(function(e) { + return _.changedFilesSet.add(e.resolvedPath) + }) : n && !r && I.compilerOptionsAffectEmit(e, n) && (c.getSourceFiles().forEach(function(e) { + return k(_, e.resolvedPath, 1) + }), I.Debug.assert(!_.seenAffectedFiles || !_.seenAffectedFiles.size), _.seenAffectedFiles = _.seenAffectedFiles || new I.Set), _.buildInfoEmitPending = !d || _.changedFilesSet.size !== ((null == (t = u.changedFilesSet) ? void 0 : t.size) || 0), _ + } + + function b(e, t, r) { + var n = e.file; + return __assign(__assign({}, e), { + file: n ? t.getSourceFileByPath(r(n)) : void 0 + }) + } + + function x(e, t) { + I.Debug.assert(!t || !e.affectedFiles || e.affectedFiles[e.affectedFilesIndex - 1] !== t || !e.semanticDiagnosticsPerFile.has(t.resolvedPath)) + } + + function l(e, t, r, n, i) { + for (;;) { + var a = e.affectedFiles; + if (a) { + for (var o = e.seenAffectedFiles, s = e.affectedFilesIndex; s < a.length;) { + var c = a[s]; + if (!o.has(c.resolvedPath)) return e.affectedFilesIndex = s, + function(e, t, r, n, i, a) { + if (y(e, t.resolvedPath), e.allFilesExcludingDefaultLibraryFile === e.affectedFiles) g(e), I.BuilderState.updateShapeSignature(e, I.Debug.checkDefined(e.program), t, r, n, i); + else if (!e.compilerOptions.assumeChangesOnlyAffectDirectDependencies) { + var o = e, + e = t, + s = r, + c = n, + l = i, + u = a; + if (o.exportedModulesMap && o.changedFilesSet.has(e.resolvedPath) && h(o, e.resolvedPath)) { + if (o.compilerOptions.isolatedModules) + for (var _ = new I.Map, d = (_.set(e.resolvedPath, !0), I.BuilderState.getReferencedByPaths(o, e.resolvedPath)); 0 < d.length;) { + var p = d.pop(); + if (!_.has(p)) { + if (_.set(p, !0), S(o, p, s, c, l, u)) return; + m(o, p, s, c, l, u), h(o, p) && (p = I.Debug.checkDefined(o.program).getSourceFileByPath(p), d.push.apply(d, I.BuilderState.getReferencedByPaths(o, p.resolvedPath))) + } + } + var f = new I.Set; + null != (e = o.exportedModulesMap.getKeys(e.resolvedPath)) && e.forEach(function(e) { + return !!S(o, e, s, c, l, u) || (e = o.referencedMap.getKeys(e)) && I.forEachKey(e, function(e) { + return function t(r, e, n, i, a, o, s) { + var c; + if (!I.tryAddToSet(n, e)) return; + if (S(r, e, i, a, o, s)) return !0; + m(r, e, i, a, o, s); + null != (c = r.exportedModulesMap.getKeys(e)) && c.forEach(function(e) { + return t(r, e, n, i, a, o, s) + }); + null != (c = r.referencedMap.getKeys(e)) && c.forEach(function(e) { + return !n.has(e) && m(r, e, i, a, o, s) + }); + return + }(o, e, f, s, c, l, u) + }) + }) + } + } + }(e, c, t, r, n, i), c; + s++ + } + e.changedFilesSet.delete(e.currentChangedFilePath), e.currentChangedFilePath = void 0, null != (l = e.oldSignatures) && l.clear(), null != (l = e.oldExportedModulesMap) && l.clear(), e.affectedFiles = void 0 + } + var l = e.changedFilesSet.keys().next(); + if (l.done) return; + var u = I.Debug.checkDefined(e.program), + _ = u.getCompilerOptions(); + if (I.outFile(_)) return I.Debug.assert(!e.semanticDiagnosticsPerFile), u; + e.affectedFiles = I.BuilderState.getFilesAffectedByWithOldState(e, u, l.value, t, r, n), e.currentChangedFilePath = l.value, e.affectedFilesIndex = 0, e.seenAffectedFiles || (e.seenAffectedFiles = new I.Set) + } + } + + function D(e) { + e.affectedFilesPendingEmit = void 0, e.affectedFilesPendingEmitKind = void 0, e.affectedFilesPendingEmitIndex = void 0 + } + + function g(t) { + var r, n; + t.cleanedDiagnosticsOfLibFiles || (t.cleanedDiagnosticsOfLibFiles = !0, r = I.Debug.checkDefined(t.program), n = r.getCompilerOptions(), I.forEach(r.getSourceFiles(), function(e) { + return r.isSourceFileDefaultLibrary(e) && !I.skipTypeChecking(e, n, r) && y(t, e.resolvedPath) + })) + } + + function m(e, t, r, n, i, a) { + var o, s; + y(e, t), e.changedFilesSet.has(t) || (s = (o = I.Debug.checkDefined(e.program)).getSourceFileByPath(t)) && (I.BuilderState.updateShapeSignature(e, o, s, r, n, i, !a.disableUseFileVersionAsSignature), I.getEmitDeclarations(e.compilerOptions)) && k(e, t, 0) + } + + function y(e, t) { + return !e.semanticDiagnosticsFromOldState || (e.semanticDiagnosticsFromOldState.delete(t), e.semanticDiagnosticsPerFile.delete(t), !e.semanticDiagnosticsFromOldState.size) + } + + function h(e, t) { + var r = I.Debug.checkDefined(e.oldSignatures).get(t) || void 0; + return I.Debug.checkDefined(e.fileInfos.get(t)).signature !== r + } + + function S(t, e, r, n, i, a) { + return !(null == (e = t.fileInfos.get(e)) || !e.affectsGlobalScope || (I.BuilderState.getAllFilesExcludingDefaultLibraryFile(t, t.program, void 0).forEach(function(e) { + return m(t, e.resolvedPath, r, n, i, a) + }), g(t), 0)) + } + + function o(e, t, r, n, i) { + i ? e.buildInfoEmitPending = !1 : t === e.program ? (e.changedFilesSet.clear(), e.programEmitComplete = !0) : (e.seenAffectedFiles.add(t.resolvedPath), e.buildInfoEmitPending = !0, void 0 !== r && (e.seenEmittedFiles || (e.seenEmittedFiles = new I.Map)).set(t.resolvedPath, r), n ? e.affectedFilesPendingEmitIndex++ : e.affectedFilesIndex++) + } + + function a(e, t, r) { + return o(e, r), { + result: t, + affected: r + } + } + + function u(e, t, r, n, i, a) { + return o(e, r, n, i, a), { + result: t, + affected: r + } + } + + function c(e, t, r) { + return I.concatenate(function(e, t, r) { + var n = t.resolvedPath; + if (e.semanticDiagnosticsPerFile) { + var i = e.semanticDiagnosticsPerFile.get(n); + if (i) return I.filterSemanticDiagnostics(i, e.compilerOptions) + } + i = I.Debug.checkDefined(e.program).getBindAndCheckDiagnostics(t, r); + e.semanticDiagnosticsPerFile && e.semanticDiagnosticsPerFile.set(n, i); + return I.filterSemanticDiagnostics(i, e.compilerOptions) + }(e, t, r), I.Debug.checkDefined(e.program).getProgramDiagnostics(t)) + } + + function p(e) { + return !!I.outFile(e.options || {}) + } + + function T(o, t) { + var e = I.outFile(o.compilerOptions); + if (!e || o.compilerOptions.composite) { + var r, n, i = I.Debug.checkDefined(o.program).getCurrentDirectory(), + a = I.getDirectoryPath(I.getNormalizedAbsolutePath(I.getTsBuildInfoEmitOutputFilePath(o.compilerOptions), i)), + s = o.latestChangedDtsFile ? N(o.latestChangedDtsFile) : void 0; + if (e) return r = [], n = [], o.program.getRootFileNames().forEach(function(e) { + e = o.program.getSourceFile(e); + e && (r.push(A(e.resolvedPath)), n.push(e.version)) + }), { + fileNames: r, + fileInfos: n, + options: w(o.compilerOptions, "affectsBundleEmitBuildInfo"), + outSignature: o.outSignature, + latestChangedDtsFile: s + }; + var c, l, u, _, d, p, f, g, m = [], + y = new I.Map, + e = I.arrayFrom(o.fileInfos.entries(), function(e) { + var t, r = e[0], + e = e[1], + n = F(r), + i = (I.Debug.assert(m[n - 1] === A(r)), null == (i = o.oldSignatures) ? void 0 : i.get(r)), + a = void 0 !== i ? i || void 0 : e.signature; + return o.compilerOptions.composite && (t = o.program.getSourceFileByPath(r), !I.isJsonSourceFile(t)) && I.sourceFileMayBeEmitted(t, o.program) && (t = null == (t = o.emitSignatures) ? void 0 : t.get(r)) !== a && (u = u || []).push(void 0 === t ? n : [n, t]), e.version === a ? e.affectsGlobalScope || e.impliedFormat ? { + version: e.version, + signature: void 0, + affectsGlobalScope: e.affectsGlobalScope, + impliedFormat: e.impliedFormat + } : e.version : void 0 !== a ? void 0 === i ? e : { + version: e.version, + signature: a, + affectsGlobalScope: e.affectsGlobalScope, + impliedFormat: e.impliedFormat + } : { + version: e.version, + signature: !1, + affectsGlobalScope: e.affectsGlobalScope, + impliedFormat: e.impliedFormat + } + }); + if (o.referencedMap && (_ = I.arrayFrom(o.referencedMap.keys()).sort(I.compareStringsCaseSensitive).map(function(e) { + return [F(e), P(o.referencedMap.getValues(e))] + })), o.exportedModulesMap && (d = I.mapDefined(I.arrayFrom(o.exportedModulesMap.keys()).sort(I.compareStringsCaseSensitive), function(e) { + var t = null == (t = o.oldExportedModulesMap) ? void 0 : t.get(e); + return void 0 === t ? [F(e), P(o.exportedModulesMap.getValues(e))] : t ? [F(e), P(t)] : void 0 + })), o.semanticDiagnosticsPerFile) + for (var h = 0, v = I.arrayFrom(o.semanticDiagnosticsPerFile.keys()).sort(I.compareStringsCaseSensitive); h < v.length; h++) { + var b = v[h], + x = o.semanticDiagnosticsPerFile.get(b); + (p = p || []).push(x.length ? [F(b), function(e, r) { + return I.Debug.assert(!!e.length), e.map(function(e) { + var t = O(e, r), + e = (t.reportsUnnecessary = e.reportsUnnecessary, t.reportDeprecated = e.reportsDeprecated, t.source = e.source, t.skippedOn = e.skippedOn, e.relatedInformation); + return t.relatedInformation = e ? e.length ? e.map(function(e) { + return O(e, r) + }) : [] : void 0, t + }) + }(x, A)] : F(b)) + } + if (o.affectedFilesPendingEmit) + for (var D = new I.Set, S = 0, T = o.affectedFilesPendingEmit.slice(o.affectedFilesPendingEmitIndex).sort(I.compareStringsCaseSensitive); S < T.length; S++) { + var C = T[S]; + I.tryAddToSet(D, C) && (f = f || []).push([F(C), o.affectedFilesPendingEmitKind.get(C)]) + } + if (o.changedFilesSet.size) + for (var E = 0, k = I.arrayFrom(o.changedFilesSet.keys()).sort(I.compareStringsCaseSensitive); E < k.length; E++) { + C = k[E]; + (g = g || []).push(F(C)) + } + return { + fileNames: m, + fileInfos: e, + options: w(o.compilerOptions, "affectsMultiFileEmitBuildInfo"), + fileIdsList: c, + referencedMap: _, + exportedModulesMap: d, + semanticDiagnosticsPerFile: p, + affectedFilesPendingEmit: f, + changeFileSet: g, + emitSignatures: u, + latestChangedDtsFile: s + } + } + + function N(e) { + return A(I.getNormalizedAbsolutePath(e, i)) + } + + function A(e) { + return I.ensurePathIsNonModuleName(I.getRelativePathFromDirectory(a, e, t)) + } + + function F(e) { + var t = y.get(e); + return void 0 === t && (m.push(A(e)), y.set(e, t = m.length)), t + } + + function P(e) { + var e = I.arrayFrom(e.keys(), F).sort(I.compareValues), + t = e.join(), + r = null == l ? void 0 : l.get(t); + return void 0 === r && ((c = c || []).push(e), (l = l || new I.Map).set(t, r = c.length)), r + } + + function w(e, t) { + for (var r, n = I.getOptionsNameMap().optionsNameMap, i = 0, a = I.getOwnKeys(e).sort(I.compareStringsCaseSensitive); i < a.length; i++) { + var o = a[i], + s = n.get(o.toLowerCase()); + null != s && s[t] && ((r = r || {})[o] = function(e, t, r) { + if (e) + if ("list" === e.type) { + var n = t; + if (e.element.isFilePath && n.length) return n.map(r) + } else if (e.isFilePath) return r(t); + return t + }(s, e[o], N)) + } + return r + } + } + + function O(e, t) { + var r = e.file; + return __assign(__assign({}, e), { + file: r ? t(r.resolvedPath) : void 0 + }) + } + + function _(e, t) { + return void 0 !== (null == t ? void 0 : t.sourceMapUrlPos) ? e.substring(0, t.sourceMapUrlPos) : e + } + + function C(t, e, r, n, i) { + var a, o; + return e = _(e, i), null != (a = null == i ? void 0 : i.diagnostics) && a.length && (e += i.diagnostics.map(function(e) { + return "".concat(function(e) { + if (e.file.resolvedPath === t.resolvedPath) return "(".concat(e.start, ",").concat(e.length, ")"); + void 0 === o && (o = I.getDirectoryPath(t.resolvedPath)); + return "".concat(I.ensurePathIsNonModuleName(I.getRelativePathFromDirectory(o, e.file.resolvedPath, n)), "(").concat(e.start, ",").concat(e.length, ")") + }(e)).concat(I.DiagnosticCategory[e.category]).concat(e.code, ": ").concat(s(e.messageText)) + }).join("\n")), (null != r ? r : I.generateDjb2Hash)(e); + + function s(e) { + return I.isString(e) ? e : void 0 === e ? "" : e.next ? e.messageText + e.next.map(s).join("\n") : e.messageText + } + } + + function E(e, t, r) { + return (null != t ? t : I.generateDjb2Hash)(_(e, r)) + } + + function k(e, t, r) { + e.affectedFilesPendingEmit || (e.affectedFilesPendingEmit = []), e.affectedFilesPendingEmitKind || (e.affectedFilesPendingEmitKind = new I.Map); + var n = e.affectedFilesPendingEmitKind.get(t); + e.affectedFilesPendingEmit.push(t), e.affectedFilesPendingEmitKind.set(t, n || r), void 0 === e.affectedFilesPendingEmitIndex && (e.affectedFilesPendingEmitIndex = 0) + } + + function f(e) { + return I.isString(e) ? { + version: e, + signature: e, + affectsGlobalScope: void 0, + impliedFormat: void 0 + } : I.isString(e.signature) ? e : { + version: e.version, + signature: !1 === e.signature ? void 0 : e.version, + affectsGlobalScope: e.affectsGlobalScope, + impliedFormat: e.impliedFormat + } + } + + function N(e, t) { + return { + getState: I.notImplemented, + saveEmitState: I.noop, + restoreEmitState: I.noop, + getProgram: a, + getProgramOrUndefined: function() { + return e().program + }, + releaseProgram: function() { + return e().program = void 0 + }, + getCompilerOptions: function() { + return e().compilerOptions + }, + getSourceFile: function(e) { + return a().getSourceFile(e) + }, + getSourceFiles: function() { + return a().getSourceFiles() + }, + getOptionsDiagnostics: function(e) { + return a().getOptionsDiagnostics(e) + }, + getGlobalDiagnostics: function(e) { + return a().getGlobalDiagnostics(e) + }, + getConfigFileParsingDiagnostics: function() { + return t + }, + getSyntacticDiagnostics: function(e, t) { + return a().getSyntacticDiagnostics(e, t) + }, + getDeclarationDiagnostics: function(e, t) { + return a().getDeclarationDiagnostics(e, t) + }, + getSemanticDiagnostics: function(e, t) { + return a().getSemanticDiagnostics(e, t) + }, + emit: function(e, t, r, n, i) { + return a().emit(e, t, r, n, i) + }, + emitBuildInfo: function(e, t) { + return a().emitBuildInfo(e, t) + }, + getAllDependencies: I.notImplemented, + getCurrentDirectory: function() { + return a().getCurrentDirectory() + }, + close: I.noop + }; + + function a() { + return I.Debug.checkDefined(e().program) + } + }(e = I.BuilderFileEmit || (I.BuilderFileEmit = {}))[e.DtsOnly = 0] = "DtsOnly", e[e.Full = 1] = "Full", I.isProgramBundleEmitBuildInfo = p, (e = v = I.BuilderProgramKind || (I.BuilderProgramKind = {}))[e.SemanticDiagnosticsBuilderProgram = 0] = "SemanticDiagnosticsBuilderProgram", e[e.EmitAndSemanticDiagnosticsBuilderProgram = 1] = "EmitAndSemanticDiagnosticsBuilderProgram", I.getBuilderCreationParameters = function(e, t, r, n, i, a) { + var o, s, c; + return void 0 === e ? (I.Debug.assert(void 0 === t), o = r, I.Debug.assert(!!(c = n)), s = c.getProgram()) : I.isArray(e) ? (s = I.createProgram({ + rootNames: e, + options: t, + host: r, + oldProgram: (c = n) && c.getProgramOrUndefined(), + configFileParsingDiagnostics: i, + projectReferences: a + }), o = r) : (s = e, o = t, c = r, i = n), { + host: o, + newProgram: s, + oldProgram: c, + configFileParsingDiagnostics: i || I.emptyArray + } + }, I.computeSignatureWithDiagnostics = C, I.computeSignature = E, I.createBuilderProgram = function(_, e) { + var p, f, g, d, t = e.newProgram, + m = e.host, + r = e.oldProgram, + e = e.configFileParsingDiagnostics, + n = r && r.getState(); + return n && t === n.program && e === t.getConfigFileParsingDiagnostics() ? (n = t = void 0, r) : (p = I.createGetCanonicalFileName(m.useCaseSensitiveFileNames()), f = I.maybeBind(m, m.createHash), g = i(t, p, n, m.disableUseFileVersionAsSignature), t.getProgramBuildInfo = function() { + return T(g, p) + }, n = r = t = void 0, (d = N(t = function() { + return g + }, e)).getState = t, d.saveEmitState = function() { + return e = g, t = I.outFile(e.compilerOptions), I.Debug.assert(!e.changedFilesSet.size || t), { + affectedFilesPendingEmit: e.affectedFilesPendingEmit && e.affectedFilesPendingEmit.slice(), + affectedFilesPendingEmitKind: e.affectedFilesPendingEmitKind && new I.Map(e.affectedFilesPendingEmitKind), + affectedFilesPendingEmitIndex: e.affectedFilesPendingEmitIndex, + seenEmittedFiles: e.seenEmittedFiles && new I.Map(e.seenEmittedFiles), + programEmitComplete: e.programEmitComplete, + emitSignatures: e.emitSignatures && new I.Map(e.emitSignatures), + outSignature: e.outSignature, + latestChangedDtsFile: e.latestChangedDtsFile, + hasChangedEmitSignature: e.hasChangedEmitSignature, + changedFilesSet: t ? new I.Set(e.changedFilesSet) : void 0 + }; + var e, t + }, d.restoreEmitState = function(e) { + return e = e, (t = g).affectedFilesPendingEmit = e.affectedFilesPendingEmit, t.affectedFilesPendingEmitKind = e.affectedFilesPendingEmitKind, t.affectedFilesPendingEmitIndex = e.affectedFilesPendingEmitIndex, t.seenEmittedFiles = e.seenEmittedFiles, t.programEmitComplete = e.programEmitComplete, t.emitSignatures = e.emitSignatures, t.outSignature = e.outSignature, t.latestChangedDtsFile = e.latestChangedDtsFile, t.hasChangedEmitSignature = e.hasChangedEmitSignature, void(e.changedFilesSet && (t.changedFilesSet = e.changedFilesSet)); + var t + }, d.hasChangedEmitSignature = function() { + return !!g.hasChangedEmitSignature + }, d.getAllDependencies = function(e) { + return I.BuilderState.getAllDependencies(g, I.Debug.checkDefined(g.program), e) + }, d.getSemanticDiagnostics = function(e, t) { + x(g, e); + var r, n = I.Debug.checkDefined(g.program).getCompilerOptions(); + if (I.outFile(n)) return I.Debug.assert(!g.semanticDiagnosticsPerFile), I.Debug.checkDefined(g.program).getSemanticDiagnostics(e, t); + if (e) return c(g, e, t); + for (; s(t);); + for (var i = 0, a = I.Debug.checkDefined(g.program).getSourceFiles(); i < a.length; i++) { + var o = a[i]; + r = I.addRange(r, c(g, o, t)) + } + return r || I.emptyArray + }, d.emit = function(e, t, r, n, i) { + _ === v.EmitAndSemanticDiagnosticsBuilderProgram && x(g, e); + var a = I.handleNoEmitOptions(d, e, t, r); + if (a) return a; + if (!e) { + if (_ === v.EmitAndSemanticDiagnosticsBuilderProgram) { + for (var o = [], s = !1, c = void 0, l = [], u = void 0; u = y(t, r, n, i);) s = s || u.result.emitSkipped, c = I.addRange(c, u.result.diagnostics), l = I.addRange(l, u.result.emittedFiles), o = I.addRange(o, u.result.sourceMaps); + return { + emitSkipped: s, + diagnostics: c || I.emptyArray, + emittedFiles: l, + sourceMaps: o + } + } + null != (a = g.affectedFilesPendingEmitKind) && a.size && (I.Debug.assert(_ === v.SemanticDiagnosticsBuilderProgram), n && !I.every(g.affectedFilesPendingEmit, function(e, t) { + return t < g.affectedFilesPendingEmitIndex || 0 === g.affectedFilesPendingEmitKind.get(e) + }) || D(g)) + } + return I.Debug.checkDefined(g.program).emit(e, I.getEmitDeclarations(g.compilerOptions) ? h(t, i) : t || I.maybeBind(m, m.writeFile), r, n, i) + }, d.releaseProgram = function() { + return e = g, I.BuilderState.releaseCache(e), void(e.program = void 0); + var e + }, _ === v.SemanticDiagnosticsBuilderProgram ? d.getSemanticDiagnosticsOfNextAffectedFile = s : _ === v.EmitAndSemanticDiagnosticsBuilderProgram ? (d.getSemanticDiagnosticsOfNextAffectedFile = s, d.emitNextAffectedFile = y, d.emitBuildInfo = function(e, t) { + if (g.buildInfoEmitPending) return e = I.Debug.checkDefined(g.program).emitBuildInfo(e || I.maybeBind(m, m.writeFile), t), g.buildInfoEmitPending = !1, e; + return I.emitSkippedWithNoDiagnostics + }) : I.notImplemented(), d); + + function y(e, t, r, n) { + var i = l(g, t, f, p, m), + a = 1, + o = !1; + if (!i) + if (I.outFile(g.compilerOptions)) { + var s = I.Debug.checkDefined(g.program); + if (g.programEmitComplete) return; + i = s + } else { + var c, s = function(e) { + var t = e.affectedFilesPendingEmit; + if (t) { + for (var r = e.seenEmittedFiles || (e.seenEmittedFiles = new I.Map), n = e.affectedFilesPendingEmitIndex; n < t.length; n++) { + var i = I.Debug.checkDefined(e.program).getSourceFileByPath(t[n]); + if (i) { + var a = r.get(i.resolvedPath), + o = I.Debug.checkDefined(I.Debug.checkDefined(e.affectedFilesPendingEmitKind).get(i.resolvedPath)); + if (void 0 === a || a < o) return e.affectedFilesPendingEmitIndex = n, { + affectedFile: i, + emitKind: o + } + } + } + D(e) + } + }(g); + if (!s) return g.buildInfoEmitPending ? (c = I.Debug.checkDefined(g.program), u(g, c.emitBuildInfo(e || I.maybeBind(m, m.writeFile), t), c, 1, !1, !0)) : void 0; + i = s.affectedFile, a = s.emitKind, o = !0 + } + return u(g, I.Debug.checkDefined(g.program).emit(i === g.program ? void 0 : i, I.getEmitDeclarations(g.compilerOptions) ? h(e, n) : e || I.maybeBind(m, m.writeFile), t, r || 0 === a, n), i, a, o) + } + + function h(_, d) { + return function(e, t, r, n, i, a) { + var o; + if (I.isDeclarationFileName(e)) + if (I.outFile(g.compilerOptions)) { + if (g.compilerOptions.composite) { + var s = E(t, f, a); + if (s === g.outSignature) return; + g.outSignature = s, g.hasChangedEmitSignature = !0, g.latestChangedDtsFile = e + } + } else { + I.Debug.assert(1 === (null == i ? void 0 : i.length)); + var c, s = void 0; + if (d || (l = i[0], (c = g.fileInfos.get(l.resolvedPath)).signature === l.version && (u = C(l, t, f, p, a), null != (o = null == a ? void 0 : a.diagnostics) && o.length || (s = u), u !== l.version) && (m.storeFilesChangingSignatureDuringEmit && (null != (o = g.filesChangingSignature) ? o : g.filesChangingSignature = new I.Set).add(l.resolvedPath), g.exportedModulesMap && I.BuilderState.updateExportedModules(g, l, l.exportedModulesFromDeclarationEmit), g.affectedFiles ? (void 0 === (null == (o = g.oldSignatures) ? void 0 : o.get(l.resolvedPath)) && (null != (o = g.oldSignatures) ? o : g.oldSignatures = new I.Map).set(l.resolvedPath, c.signature || !1), c.signature = u) : (c.signature = u, null != (o = g.oldExportedModulesMap) && o.clear()))), g.compilerOptions.composite) { + var l = i[0].resolvedPath, + u = null == (c = g.emitSignatures) ? void 0 : c.get(l); + if ((s = null != s ? s : E(t, f, a)) === u) return; + (null != (o = g.emitSignatures) ? o : g.emitSignatures = new I.Map).set(l, s), g.hasChangedEmitSignature = !0, g.latestChangedDtsFile = e + } + } + _ ? _(e, t, r, n, i, a) : (m.writeFile ? m : g.program).writeFile(e, t, r, n, i, a) + } + } + + function s(e, t) { + for (;;) { + var r = l(g, e, f, p, m); + if (!r) return; + if (r === g.program) return a(g, g.program.getSemanticDiagnostics(void 0, e), r); + if ((_ === v.EmitAndSemanticDiagnosticsBuilderProgram || g.compilerOptions.noEmit || g.compilerOptions.noEmitOnError) && k(g, r.resolvedPath, 1), !t || !t(r)) return a(g, c(g, r, e), r); + o(g, r) + } + } + }, I.toBuilderStateFileInfo = f, I.createBuilderProgramUsingProgramBuildInfo = function(e, t, r) { + var n, i, a, o, s = I.getDirectoryPath(I.getNormalizedAbsolutePath(t, r.getCurrentDirectory())), + c = I.createGetCanonicalFileName(r.useCaseSensitiveFileNames()), + t = e.latestChangedDtsFile ? u(e.latestChangedDtsFile) : void 0, + l = p(e) ? { + fileInfos: new I.Map, + compilerOptions: e.options ? I.convertToOptionsWithAbsolutePaths(e.options, u) : {}, + latestChangedDtsFile: t, + outSignature: e.outSignature + } : (n = null == (r = e.fileNames) ? void 0 : r.map(function(e) { + return I.toPath(e, s, c) + }), i = null == (r = e.fileIdsList) ? void 0 : r.map(function(e) { + return new I.Set(e.map(_)) + }), a = new I.Map, o = null != (r = e.options) && r.composite && !I.outFile(e.options) ? new I.Map : void 0, e.fileInfos.forEach(function(e, t) { + t = _(t + 1), e = f(e); + a.set(t, e), o && e.signature && o.set(t, e.signature) + }), null != (r = e.emitSignatures) && r.forEach(function(e) { + I.isNumber(e) ? o.delete(_(e)) : o.set(_(e[0]), e[1]) + }), { + fileInfos: a, + compilerOptions: e.options ? I.convertToOptionsWithAbsolutePaths(e.options, u) : {}, + referencedMap: d(e.referencedMap), + exportedModulesMap: d(e.exportedModulesMap), + semanticDiagnosticsPerFile: e.semanticDiagnosticsPerFile && I.arrayToMap(e.semanticDiagnosticsPerFile, function(e) { + return _(I.isNumber(e) ? e : e[0]) + }, function(e) { + return I.isNumber(e) ? I.emptyArray : e[1] + }), + hasReusableDiagnostic: !0, + affectedFilesPendingEmit: I.map(e.affectedFilesPendingEmit, function(e) { + return _(e[0]) + }), + affectedFilesPendingEmitKind: e.affectedFilesPendingEmit && I.arrayToMap(e.affectedFilesPendingEmit, function(e) { + return _(e[0]) + }, function(e) { + return e[1] + }), + affectedFilesPendingEmitIndex: e.affectedFilesPendingEmit && 0, + changedFilesSet: new I.Set(I.map(e.changeFileSet, _)), + latestChangedDtsFile: t, + emitSignatures: null != o && o.size ? o : void 0 + }); + return { + getState: function() { + return l + }, + saveEmitState: I.noop, + restoreEmitState: I.noop, + getProgram: I.notImplemented, + getProgramOrUndefined: I.returnUndefined, + releaseProgram: I.noop, + getCompilerOptions: function() { + return l.compilerOptions + }, + getSourceFile: I.notImplemented, + getSourceFiles: I.notImplemented, + getOptionsDiagnostics: I.notImplemented, + getGlobalDiagnostics: I.notImplemented, + getConfigFileParsingDiagnostics: I.notImplemented, + getSyntacticDiagnostics: I.notImplemented, + getDeclarationDiagnostics: I.notImplemented, + getSemanticDiagnostics: I.notImplemented, + emit: I.notImplemented, + getAllDependencies: I.notImplemented, + getCurrentDirectory: I.notImplemented, + emitNextAffectedFile: I.notImplemented, + getSemanticDiagnosticsOfNextAffectedFile: I.notImplemented, + emitBuildInfo: I.notImplemented, + close: I.noop, + hasChangedEmitSignature: I.returnFalse + }; + + function u(e) { + return I.getNormalizedAbsolutePath(e, s) + } + + function _(e) { + return n[e - 1] + } + + function d(e) { + var r; + if (e) return r = I.BuilderState.createManyToManyPathMap(), e.forEach(function(e) { + var t = e[0], + e = e[1]; + return r.set(_(t), i[e - 1]) + }), r + } + }, I.getBuildInfoFileVersionMap = function(r, e, t) { + var n = I.getDirectoryPath(I.getNormalizedAbsolutePath(e, t.getCurrentDirectory())), + i = I.createGetCanonicalFileName(t.useCaseSensitiveFileNames()), + a = new I.Map; + return r.fileInfos.forEach(function(e, t) { + t = I.toPath(r.fileNames[t], n, i), e = I.isString(e) ? e : e.version; + a.set(t, e) + }), a + }, I.createRedirectedBuilderProgram = N + }(ts = ts || {}), ! function(s) { + s.createSemanticDiagnosticsBuilderProgram = function(e, t, r, n, i, a) { + return s.createBuilderProgram(s.BuilderProgramKind.SemanticDiagnosticsBuilderProgram, s.getBuilderCreationParameters(e, t, r, n, i, a)) + }, s.createEmitAndSemanticDiagnosticsBuilderProgram = function(e, t, r, n, i, a) { + return s.createBuilderProgram(s.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram, s.getBuilderCreationParameters(e, t, r, n, i, a)) + }, s.createAbstractBuilder = function(e, t, r, n, i, a) { + var o = (e = s.getBuilderCreationParameters(e, t, r, n, i, a)).newProgram, + t = e.configFileParsingDiagnostics; + return s.createRedirectedBuilderProgram(function() { + return { + program: o, + compilerOptions: o.getCompilerOptions() + } + }, t) + } + }(ts = ts || {}), ! function(le) { + function ue(t) { + return le.endsWith(t, "/node_modules/.staging") ? le.removeSuffix(t, "/.staging") : le.some(le.ignoredPaths, function(e) { + return le.stringContains(t, e) + }) ? void 0 : t + } + + function _e(e) { + var t = le.getRootLength(e); + if (e.length === t) return !1; + var r = e.indexOf(le.directorySeparator, t); + if (-1 === r) return !1; + var n = e.substring(t, r + 1), + i = 1 < t || 47 !== e.charCodeAt(0); + if (i && 0 !== e.search(/[a-zA-Z]:/) && 0 === n.search(/[a-zA-Z]\$\//)) { + if (-1 === (r = e.indexOf(le.directorySeparator, r + 1))) return !1; + n = e.substring(t + n.length, r + 1) + } + if (!i || 0 === n.search(/users\//i)) + for (var a = r + 1, o = 2; 0 < o; o--) + if (0 === (a = e.indexOf(le.directorySeparator, a) + 1)) return !1; + return !0 + } + le.removeIgnoredPath = ue, le.canWatchDirectoryOrFile = _e, le.createResolutionCache = function(O, e, A) { + var M, l, t, s, c, n, i, a, L = le.createMultiMap(), + d = [], + p = [], + R = le.createMultiMap(), + o = new le.Map, + u = !1, + _ = le.memoize(function() { + return O.getCurrentDirectory() + }), + f = O.getCachedDirectoryStructureHost(), + g = new le.Map, + m = le.createCacheWithRedirects(), + F = le.createCacheWithRedirects(), + y = le.createModuleResolutionCache(_(), O.getCanonicalFileName, void 0, m, F), + h = new le.Map, + P = le.createCacheWithRedirects(), + v = le.createTypeReferenceDirectiveResolutionCache(_(), O.getCanonicalFileName, void 0, y.getPackageJsonInfoCache(), P), + w = [".ts", ".tsx", ".js", ".jsx", ".json"], + b = new le.Map, + x = new le.Map, + D = new le.Map, + S = e && le.removeTrailingDirectorySeparator(le.getNormalizedAbsolutePath(e, _())), + T = S && O.toPath(S), + C = void 0 !== T ? T.split(le.directorySeparator).length : 0, + I = new le.Map; + return { + getModuleResolutionCache: function() { + return y + }, + startRecordingFilesWithChangedResolutions: function() { + M = [] + }, + finishRecordingFilesWithChangedResolutions: function() { + var e = M; + return M = void 0, e + }, + startCachingPerDirectoryResolution: function() { + y.clearAllExceptPackageJsonInfoCache(), v.clearAllExceptPackageJsonInfoCache(), L.forEach(Z), L.clear() + }, + finishCachingPerDirectoryResolution: function(r, e) { + t = void 0, L.forEach(Z), L.clear(), r !== e && (null != r && r.getSourceFiles().forEach(function(e) { + for (var t, r = le.isExternalOrCommonJsModule(e) && null != (t = null == (t = e.packageJsonLocations) ? void 0 : t.length) ? t : 0, n = null != (t = o.get(e.path)) ? t : le.emptyArray, i = n.length; i < r; i++) Y(e.packageJsonLocations[i], !1); + if (n.length > r) + for (i = r; i < n.length; i++) D.get(n[i]).files--; + r ? o.set(e.path, e.packageJsonLocations) : o.delete(e.path) + }), o.forEach(function(e, t) { + null != r && r.getSourceFileByPath(t) || (e.forEach(function(e) { + return D.get(e).files-- + }), o.delete(t)) + })); + x.forEach(function(e, t) { + 0 === e.refCount && (x.delete(t), e.watcher.close()) + }), D.forEach(function(e, t) { + 0 === e.files && 0 === e.resolutions && (D.delete(t), e.watcher.close()) + }), u = !1 + }, + resolveModuleNames: function(e, t, r, n, i) { + return V({ + names: e, + containingFile: t, + redirectedReference: n, + cache: g, + perDirectoryCacheWithRedirects: m, + loader: j, + getResolutionWithResolvedFileName: z, + shouldRetryResolution: function(e) { + return !e.resolvedModule || !le.resolutionExtensionIsTSOrJson(e.resolvedModule.extension) + }, + reusedNames: r, + logChanges: A, + containingSourceFile: i + }) + }, + getResolvedModuleWithFailedLookupLocationsFromCache: function(e, t, r) { + t = g.get(O.toPath(t)); + if (t) return t.get(e, r) + }, + resolveTypeReferenceDirectives: function(e, t, r, n) { + return V({ + names: e, + containingFile: t, + redirectedReference: r, + cache: h, + perDirectoryCacheWithRedirects: P, + loader: K, + getResolutionWithResolvedFileName: U, + shouldRetryResolution: function(e) { + return void 0 === e.resolvedTypeReferenceDirective + }, + containingSourceFileMode: n + }) + }, + removeResolutionsFromProjectReferenceRedirects: function(e) { + var t; + le.fileExtensionIs(e, ".json") && (t = O.getCurrentProgram()) && (t = t.getResolvedProjectReferenceByPath(e)) && t.commandLine.fileNames.forEach(function(e) { + return r(O.toPath(e)) + }) + }, + removeResolutionsOfFile: r, + hasChangedAutomaticTypeDirectiveNames: function() { + return u + }, + invalidateResolutionOfFile: function(e) { + r(e); + var t = u; + k(R.get(e), le.returnTrue) && u && !t && O.onChangedAutomaticTypeDirectiveNames() + }, + invalidateResolutionsOfFailedLookupLocations: ne, + setFilesWithInvalidatedNonRelativeUnresolvedImports: function(e) { + le.Debug.assert(t === e || void 0 === t), t = e + }, + createHasInvalidatedResolutions: function(t) { + ne(); + var r = l; + return l = void 0, + function(e) { + return t(e) || !(null == r || !r.has(e)) || B(e) + } + }, + isFileWithInvalidatedNonRelativeUnresolvedImports: B, + updateTypeRootsWatch: function() { + var e = O.getCompilationSettings(); + !e.types && (e = le.getEffectiveTypeRoots(e, { + directoryExists: ce, + getCurrentDirectory: _ + })) ? le.mutateMap(I, le.arrayToMap(e, function(e) { + return O.toPath(e) + }), { + createNewValue: se, + onDeleteValue: le.closeFileWatcher + }) : N() + }, + closeTypeRootsWatch: N, + clear: function() { + le.clearMap(x, le.closeFileWatcherOf), le.clearMap(D, le.closeFileWatcherOf), b.clear(), L.clear(), N(), g.clear(), h.clear(), R.clear(), d.length = 0, p.length = 0, n = void 0, i = void 0, a = void 0, c = void 0, s = void 0, y.clear(), v.clear(), o.clear(), u = !1 + } + }; + + function z(e) { + return e.resolvedModule + } + + function U(e) { + return e.resolvedTypeReferenceDirective + } + + function E(e, t) { + return !(void 0 === e || t.length <= e.length) && le.startsWith(t, e) && t[e.length] === le.directorySeparator + } + + function B(e) { + return !!t && !!(e = t.get(e)) && !!e.length + } + + function j(e, t, r, n, i, a, o) { + t = le.resolveModuleName(e, t, r, n, y, i, o); + if (O.getGlobalCache) { + var i = O.getGlobalCache(); + if (!(void 0 === i || le.isExternalModuleNameRelative(e) || t.resolvedModule && le.extensionIsTS(t.resolvedModule.extension))) { + var o = le.loadModuleFromGlobalCache(le.Debug.checkDefined(O.globalCacheResolutionModuleName)(e), O.projectName, r, n, i, y), + e = o.resolvedModule, + r = o.failedLookupLocations, + n = o.affectingLocations; + if (e) t.resolvedModule = e, (i = t.failedLookupLocations).push.apply(i, r), (o = t.affectingLocations).push.apply(o, n) + } + } + return t + } + + function K(e, t, r, n, i, a, o) { + return le.resolveTypeReferenceDirective(e, t, r, n, i, v, o) + } + + function V(e) { + for (var t = e.names, r = e.containingFile, n = e.redirectedReference, i = e.cache, a = e.perDirectoryCacheWithRedirects, o = e.loader, s = e.getResolutionWithResolvedFileName, c = e.shouldRetryResolution, l = e.reusedNames, u = e.logChanges, _ = e.containingSourceFile, d = e.containingSourceFileMode, p = O.toPath(r), f = i.get(p) || i.set(p, le.createModeAwareCache()).get(p), e = le.getDirectoryPath(p), i = a.getOrCreateMapOfCacheRedirects(n), g = i.get(e), m = (g || (g = le.createModeAwareCache(), i.set(e, g)), []), y = O.getCompilationSettings(), h = u && B(p), a = O.getCurrentProgram(), i = a && a.getResolvedProjectReferenceToRedirect(r), v = i ? !n || n.sourceFile.path !== i.sourceFile.path : !!n, b = le.createModeAwareCache(), x = 0, D = 0, S = t; D < S.length; D++) { + var T, C, E, k, N, A, F, P = S[D], + w = le.isString(P) ? P : P.fileName.toLowerCase(), + P = le.isString(P) ? _ ? le.getModeForResolutionAtIndex(_, x) : void 0 : le.getModeForFileReference(P, d), + I = (x++, f.get(w, P)); + !b.has(w, P) && v || !I || I.isInvalidated || h && !le.isExternalModuleNameRelative(w) && c(I) ? (T = I, (E = g.get(w, P)) ? (I = E, A = (null == (E = O.getCompilerHost) ? void 0 : E.call(O)) || O, le.isTraceEnabled(y, A) && (F = s(I), le.trace(A, o === j ? null != F && F.resolvedFileName ? F.packagetId ? le.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4 : le.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3 : le.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved : null != F && F.resolvedFileName ? F.packagetId ? le.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4 : le.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3 : le.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved, w, r, le.getDirectoryPath(r), null == F ? void 0 : F.resolvedFileName, (null == F ? void 0 : F.packagetId) && le.packageIdToString(F.packagetId)))) : (I = o(w, r, y, (null == (E = O.getCompilerHost) ? void 0 : E.call(O)) || O, n, _, P), g.set(w, P, I), O.onDiscoveredSymlink && (E = void 0, null != (E = (C = I).resolvedModule) && E.originalPath || null != (E = C.resolvedTypeReferenceDirective) && E.originalPath) && O.onDiscoveredSymlink()), f.set(w, P, I), N = k = E = C = void 0, C = w, k = p, N = s, (E = I).refCount ? (E.refCount++, le.Debug.assertIsDefined(E.files)) : (E.refCount = 1, le.Debug.assert(0 === le.length(E.files)), le.isExternalModuleNameRelative(C) ? Q(E) : L.add(C, E), (C = N(E)) && C.resolvedFileName && R.add(O.toPath(C.resolvedFileName), E)), (E.files || (E.files = [])).push(k), T && J(T, p, s), u && M && ! function(e, t) { + if (e === t) return 1; + return !!(e && t && (e = s(e), t = s(t), e === t || e && t && e.resolvedFileName === t.resolvedFileName)) + }(T, I) && (M.push(p), u = !1)) : (A = (null == (N = O.getCompilerHost) ? void 0 : N.call(O)) || O, le.isTraceEnabled(y, A) && !b.has(w, P) && (F = s(I), le.trace(A, o === j ? null != F && F.resolvedFileName ? F.packagetId ? le.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : le.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : le.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved : null != F && F.resolvedFileName ? F.packagetId ? le.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : le.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : le.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved, w, r, null == F ? void 0 : F.resolvedFileName, (null == F ? void 0 : F.packagetId) && le.packageIdToString(F.packagetId)))), le.Debug.assert(void 0 !== I && !I.isInvalidated), b.set(w, P, !0), m.push(s(I)) + } + return f.forEach(function(e, t, r) { + b.has(t, r) || le.contains(l, t) || (J(e, p, s), f.delete(t, r)) + }), m + } + + function q(e) { + return le.endsWith(e, "/node_modules/@types") + } + + function W(e, t) { + var r, n; + return E(T, t) ? (e = le.isRootedDiskPath(e) ? le.normalizePath(e) : le.getNormalizedAbsolutePath(e, _()), r = t.split(le.directorySeparator), n = e.split(le.directorySeparator), le.Debug.assert(n.length === r.length, "FailedLookup: ".concat(e, " failedLookupLocationPath: ").concat(t)), r.length > C + 1 ? { + dir: n.slice(0, C + 1).join(le.directorySeparator), + dirPath: r.slice(0, C + 1).join(le.directorySeparator) + } : { + dir: S, + dirPath: T, + nonRecursive: !1 + }) : H(le.getDirectoryPath(le.getNormalizedAbsolutePath(e, _())), le.getDirectoryPath(t)) + } + + function H(e, t) { + for (; le.pathContainsNodeModules(t);) e = le.getDirectoryPath(e), t = le.getDirectoryPath(t); + if (le.isNodeModulesDirectory(t)) return _e(le.getDirectoryPath(t)) ? { + dir: e, + dirPath: t + } : void 0; + var r, n, i = !0; + if (void 0 !== T) + for (; !E(t, T);) { + var a = le.getDirectoryPath(t); + if (a === t) break; + i = !1, r = t, n = e, t = a, e = le.getDirectoryPath(e) + } + return _e(t) ? { + dir: n || e, + dirPath: r || t, + nonRecursive: i + } : void 0 + } + + function G(e) { + return le.fileExtensionIsOneOf(e, w) + } + + function Q(e) { + le.Debug.assert(!!e.refCount); + var t = e.failedLookupLocations, + r = e.affectingLocations; + if (t.length || r.length) { + t.length && d.push(e); + for (var n = !1, i = 0, a = t; i < a.length; i++) { + var o, s, c, l = a[i], + u = O.toPath(l), + l = W(l, u); + l && (o = l.dir, s = l.dirPath, l = l.nonRecursive, G(u) || (c = b.get(u) || 0, b.set(u, c + 1)), s === T ? (le.Debug.assert(!l), n = !0) : $(o, s, l)) + } + n && $(S, T, !0), X(e, !t.length) + } + } + + function X(e, t) { + le.Debug.assert(!!e.refCount); + var r = e.affectingLocations; + if (r.length) { + t && p.push(e); + for (var n = 0, i = r; n < i.length; n++) Y(i[n], !0) + } + } + + function Y(e, t) { + var r = D.get(e); + if (r) t ? r.resolutions++ : r.files++; + else { + var n = e; + if (O.realpath && e !== (n = O.realpath(e))) { + r = D.get(n); + if (r) return t ? r.resolutions++ : r.files++, r.paths.add(e), void D.set(e, r) + } + var i = new le.Set, + a = (i.add(n), _e(O.toPath(n)) ? O.watchAffectingFileLocation(n, function(e, t) { + null != f && f.addOrDeleteFile(e, O.toPath(n), t); + var r = y.getPackageJsonInfoCache().getInternalMap(); + i.forEach(function(e) { + o.resolutions && (null != c ? c : c = new le.Set).add(e), o.files && (null != s ? s : s = new le.Set).add(e), null != r && r.delete(O.toPath(e)) + }), O.scheduleInvalidateResolutionsOfFailedLookupLocations() + }) : le.noopFileWatcher), + o = { + watcher: a !== le.noopFileWatcher ? { + close: function() { + a.close(), a = le.noopFileWatcher + } + } : a, + resolutions: t ? 1 : 0, + files: t ? 0 : 1, + paths: i + }; + D.set(n, o), e !== n && (D.set(e, o), i.add(e)) + } + } + + function Z(e, t) { + var r = O.getCurrentProgram(); + r && r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t) ? e.forEach(function(e) { + return X(e, !0) + }) : e.forEach(Q) + } + + function $(e, t, r) { + var n, i = x.get(t); + i ? (le.Debug.assert(!!r == !!i.nonRecursive), i.refCount++) : x.set(t, { + watcher: (n = t, O.watchDirectoryOfFailedLookupLocation(e, function(e) { + var t = O.toPath(e); + f && f.addOrDeleteFileOrDirectory(e, t), re(t, n === t) + }, r ? 0 : 1)), + refCount: 1, + nonRecursive: r + }) + } + + function J(e, t, r) { + if (le.unorderedRemoveItem(le.Debug.checkDefined(e.files), t), e.refCount--, !e.refCount) { + t = r(e), r = (t && t.resolvedFileName && R.remove(O.toPath(t.resolvedFileName), e), e.failedLookupLocations), t = e.affectingLocations; + if (le.unorderedRemoveItem(d, e)) { + for (var n = !1, i = 0, a = r; i < a.length; i++) { + var o, s = a[i], + c = O.toPath(s), + s = W(s, c); + s && (s = s.dirPath, (o = b.get(c)) && (1 === o ? b.delete(c) : (le.Debug.assert(1 < o), b.set(c, o - 1))), s === T ? n = !0 : ee(s)) + } + n && ee(T) + } else t.length && le.unorderedRemoveItem(p, e); + for (var l = 0, u = t; l < u.length; l++) { + var _ = u[l]; + D.get(_).resolutions-- + } + } + } + + function ee(e) { + x.get(e).refCount-- + } + + function te(e, t, r) { + var n = e.get(t); + n && (n.forEach(function(e) { + return J(e, t, r) + }), e.delete(t)) + } + + function r(e) { + te(g, e, z), te(h, e, U) + } + + function k(e, t) { + if (!e) return !1; + for (var r = !1, n = 0, i = e; n < i.length; n++) { + var a = i[n]; + if (!a.isInvalidated && t(a)) { + a.isInvalidated = r = !0; + for (var o = 0, s = le.Debug.checkDefined(a.files); o < s.length; o++) { + var c = s[o]; + (null != l ? l : l = new le.Set).add(c), u = u || le.endsWith(c, le.inferredTypesContainingFile) + } + } + } + return r + } + + function re(e, t) { + if (t)(a = a || new le.Set).add(e); + else { + t = ue(e); + if (!t) return; + if (O.fileIsOpen(e = t)) return; + t = le.getDirectoryPath(e); + if (q(e) || le.isNodeModulesDirectory(e) || q(t) || le.isNodeModulesDirectory(t))(n = n || new le.Set).add(e), (i = i || new le.Set).add(e); + else { + if (!G(e) && !b.has(e)) return; + if (le.isEmittedFileOfProgram(O.getCurrentProgram(), e)) return; + (n = n || new le.Set).add(e); + t = le.parseNodeModuleFromPath(e); + t && (i = i || new le.Set).add(t) + } + } + O.scheduleInvalidateResolutionsOfFailedLookupLocations() + } + + function ne() { + var e, r, t = !1; + return s && (null != (e = O.getCurrentProgram()) && e.getSourceFiles().forEach(function(e) { + le.some(e.packageJsonLocations, function(e) { + return s.has(e) + }) && ((null != l ? l : l = new le.Set).add(e.path), t = !0) + }), s = void 0), (n || i || a || c) && (t = k(d, ie) || t, (r = y.getPackageJsonInfoCache().getInternalMap()) && (n || i || a) && r.forEach(function(e, t) { + return ae(t) ? r.delete(t) : void 0 + }), a = i = n = void 0, t = k(p, oe) || t, c = void 0), t + } + + function ie(e) { + return !!oe(e) || !!(n || i || a) && e.failedLookupLocations.some(function(e) { + return ae(O.toPath(e)) + }) + } + + function ae(t) { + return (null == n ? void 0 : n.has(t)) || le.firstDefinedIterator((null == i ? void 0 : i.keys()) || le.emptyIterator, function(e) { + return !!le.startsWith(t, e) || void 0 + }) || le.firstDefinedIterator((null == a ? void 0 : a.keys()) || le.emptyIterator, function(e) { + return !!E(e, t) || void 0 + }) + } + + function oe(e) { + return !!c && e.affectingLocations.some(function(e) { + return c.has(e) + }) + } + + function N() { + le.clearMap(I, le.closeFileWatcher) + } + + function se(n, i) { + return O.watchTypeRootsDirectory(i, function(e) { + var t = O.toPath(e), + r = (f && f.addOrDeleteFileOrDirectory(e, t), u = !0, O.onChangedAutomaticTypeDirectiveNames(), e = i, E(T, r = n) ? T : (e = H(e, r)) && x.has(e.dirPath) ? e.dirPath : void 0); + r && re(t, r === t) + }, 1) + } + + function ce(e) { + e = le.getDirectoryPath(le.getDirectoryPath(e)), e = O.toPath(e); + return e === T || _e(e) + } + } + }(ts = ts || {}), ! function(b) { + var e; + + function x(e, t, r, n) { + var i = t.importModuleSpecifierPreference, + a = t.importModuleSpecifierEnding; + return { + relativePreference: "relative" === i ? 0 : "non-relative" === i ? 1 : "project-relative" === i ? 3 : 2, + ending: function() { + switch (a) { + case "minimal": + return 0; + case "index": + return 1; + case "js": + return 2; + default: + return function(e) { + e = e.imports; + return b.firstDefined(e, function(e) { + e = e.text; + return b.pathIsRelative(e) ? b.hasJSFileExtension(e) : void 0 + }) + }(n) || s(r, n.path, e) ? 2 : b.getEmitModuleResolutionKind(r) !== b.ModuleResolutionKind.NodeJs ? 1 : 0 + } + }() + } + } + + function s(e, t, r) { + return (b.getEmitModuleResolutionKind(e) === b.ModuleResolutionKind.Node16 || b.getEmitModuleResolutionKind(e) === b.ModuleResolutionKind.NodeNext) && b.getImpliedNodeFormatForFile(t, null == (t = r.getPackageJsonInfoCache) ? void 0 : t.call(r), { + fileExists: (t = r).fileExists, + readFile: b.Debug.checkDefined(t.readFile), + directoryExists: t.directoryExists, + getCurrentDirectory: t.getCurrentDirectory, + realpath: t.realpath, + useCaseSensitiveFileNames: null == (r = t.useCaseSensitiveFileNames) ? void 0 : r.call(t) + }, e) !== b.ModuleKind.CommonJS + } + + function c(t, r, e, n, i, a, o, s) { + void 0 === s && (s = {}); + var c = y(e, i), + e = g(e, n, i, o, s); + return b.firstDefined(e, function(e) { + return v(e, c, r, i, t, o, void 0, s.overrideImportMode) + }) || h(n, c, t, i, s.overrideImportMode || r.impliedNodeFormat, a) + } + + function l(e, t, r, n, i) { + void 0 === i && (i = {}); + var a, e = b.getSourceFileOfModule(e); + return e ? [null == (r = null == (a = null == (a = r.getModuleSpecifierCache) ? void 0 : a.call(r)) ? void 0 : a.get(t.path, e.path, n, i)) ? void 0 : r.moduleSpecifiers, e, null == r ? void 0 : r.modulePaths, a] : b.emptyArray + } + + function u(e, t, r, n, i, a, o) { + void 0 === o && (o = {}); + var s, c, t = function(e, n) { + var t = null == (t = e.declarations) ? void 0 : t.find(function(e) { + return b.isNonGlobalAmbientModule(e) && (!b.isExternalModuleAugmentation(e) || !b.isExternalModuleNameRelative(b.getTextOfIdentifierOrLiteral(e.name))) + }); + if (t) return t.name.text; + t = b.mapDefined(e.declarations, function(e) { + var t, r; + return b.isModuleDeclaration(e) && null != (r = null == (t = function(e) { + for (; 4 & e.flags;) e = e.parent; + return e + }(e)) ? void 0 : t.parent) && r.parent && b.isModuleBlock(t.parent) && b.isAmbientModule(t.parent.parent) && b.isSourceFile(t.parent.parent.parent) && (r = null == (r = null == (r = null == (r = t.parent.parent.symbol.exports) ? void 0 : r.get("export=")) ? void 0 : r.valueDeclaration) ? void 0 : r.expression) && (r = n.getSymbolAtLocation(r)) && (2097152 & (null == r ? void 0 : r.flags) ? n.getAliasedSymbol(r) : r) === e.symbol ? t.parent.parent : void 0 + })[0]; + if (t) return t.name.text + }(e, t); + return t ? { + moduleSpecifiers: [t], + computedWithoutCache: !1 + } : (e = (t = l(e, n, i, a, o))[0], s = t[1], c = t[2], t = t[3], e ? { + moduleSpecifiers: e, + computedWithoutCache: !1 + } : s ? (e = function(e, t, r, n, i, a) { + void 0 === a && (a = {}); + var o = y(r.path, n), + s = x(n, i, t, r), + c = b.forEach(e, function(e) { + return b.forEach(n.getFileIncludeReasons().get(b.toPath(e.path, n.getCurrentDirectory(), o.getCanonicalFileName)), function(e) { + if (e.kind === b.FileIncludeKind.Import && e.file === r.path && (!r.impliedNodeFormat || r.impliedNodeFormat === b.getModeForResolutionAtIndex(r, e.index))) return e = b.getModuleNameStringLiteralAt(r, e.index).text, 1 === s.relativePreference && b.pathIsRelative(e) ? void 0 : e + }) + }); + if (c) return [c]; + for (var l, u, _, d = b.some(e, function(e) { + return e.isInNodeModules + }), p = 0, f = e; p < f.length; p++) { + var g = f[p], + m = v(g, o, r, n, t, i, void 0, a.overrideImportMode); + if (l = b.append(l, m), m && g.isRedirect) return l; + m || g.isRedirect || (m = h(g.path, o, t, n, a.overrideImportMode || r.impliedNodeFormat, s), b.pathIsBareSpecifier(m) ? u = b.append(u, m) : d && !g.isInNodeModules || (_ = b.append(_, m))) + } + return null != u && u.length ? u : null != l && l.length ? l : b.Debug.checkDefined(_) + }(c = c || m(n.path, s.originalFileName, i), r, n, i, a, o), null != t && t.set(n.path, s.path, a, o, c, e), { + moduleSpecifiers: e, + computedWithoutCache: !0 + }) : { + moduleSpecifiers: b.emptyArray, + computedWithoutCache: !1 + }) + } + + function y(e, t) { + return { + getCanonicalFileName: b.createGetCanonicalFileName(!t.useCaseSensitiveFileNames || t.useCaseSensitiveFileNames()), + importingSourceFileName: e, + sourceDirectory: b.getDirectoryPath(e) + } + } + + function h(e, t, r, n, i, a) { + var o, s = a.ending, + a = a.relativePreference, + c = r.baseUrl, + l = r.paths, + u = r.rootDirs, + _ = t.sourceDirectory, + d = t.getCanonicalFileName, + u = u && function(e, t, r, n, i, a) { + var o = T(t, e, n); + if (void 0 === o) return; + t = T(r, e, n), r = b.flatMap(t, function(t) { + return b.map(o, function(e) { + return b.ensurePathIsNonModuleName(b.getRelativePathFromDirectory(t, e, n)) + }) + }), e = b.min(r, b.compareNumberOfDirectorySeparators); + if (e) return b.getEmitModuleResolutionKind(a) === b.ModuleResolutionKind.NodeJs ? C(e, i, a) : b.removeFileExtension(e) + }(u, e, _, d, s, r) || C(b.ensurePathIsNonModuleName(b.getRelativePathFromDirectory(_, e, d)), s, r); + return (c || l) && 0 !== a && (o = k(e, b.getNormalizedAbsolutePath(b.getPathsBasePath(r, n) || c, n.getCurrentDirectory()), d)) && (i = void 0 === (l = l && S(o, l, D(s, r, i), n, r)) && void 0 !== c ? C(o, s, r) : l) ? 1 === a ? i : 3 === a ? (c = r.configFilePath ? b.toPath(b.getDirectoryPath(r.configFilePath), n.getCurrentDirectory(), t.getCanonicalFileName) : t.getCanonicalFileName(n.getCurrentDirectory()), o = b.toPath(e, c, d), s = b.startsWith(_, c), l = b.startsWith(o, c), s && !l || !s && l || (r = f(n, b.getDirectoryPath(o)), f(n, _) !== r) ? i : u) : (2 !== a && b.Debug.assertNever(a), N(i) || p(u) < p(i) ? u : i) : u + } + + function p(e) { + for (var t = 0, r = b.startsWith(e, "./") ? 2 : 0; r < e.length; r++) 47 === e.charCodeAt(r) && t++; + return t + } + + function _(e, t) { + return b.compareBooleans(t.isRedirect, e.isRedirect) || b.compareNumberOfDirectorySeparators(e.path, t.path) + } + + function f(t, e) { + return t.getNearestAncestorDirectoryWithPackageJson ? t.getNearestAncestorDirectoryWithPackageJson(e) : !!b.forEachAncestorDirectory(e, function(e) { + return !!t.fileExists(b.combinePaths(e, "package.json")) || void 0 + }) + } + + function d(e, t, r, n, s) { + var c = b.hostGetCanonicalFileName(r), + i = r.getCurrentDirectory(), + l = r.isSourceOfProjectReferenceRedirect(t) ? r.getProjectReferenceRedirect(t) : void 0, + a = b.toPath(t, i, c), + a = r.redirectTargetsMap.get(a) || b.emptyArray, + u = __spreadArray(__spreadArray(__spreadArray([], l ? [l] : b.emptyArray, !0), [t], !1), a, !0).map(function(e) { + return b.getNormalizedAbsolutePath(e, i) + }), + _ = !b.every(u, b.containsIgnoredPath); + if (!n) { + a = b.forEach(u, function(e) { + return !(_ && b.containsIgnoredPath(e)) && s(e, l === e) + }); + if (a) return a + } + var d = null == (a = r.getSymlinkCache) ? void 0 : a.call(r).getSymlinkedDirectoriesByRealpath(), + a = b.getNormalizedAbsolutePath(t, i); + return d && b.forEachAncestorDirectory(b.getDirectoryPath(a), function(a) { + var o = d.get(b.ensureTrailingDirectorySeparator(b.toPath(a, i, c))); + if (o) return !b.startsWithDirectory(e, a, c) && b.forEach(u, function(e) { + if (b.startsWithDirectory(e, a, c)) + for (var t = b.getRelativePathFromDirectory(a, e, c), r = 0, n = o; r < n.length; r++) { + var i = n[r], + i = b.resolvePath(i, t), + i = s(i, e === l); + if (_ = !0, i) return i + } + }) + }) || (n ? b.forEach(u, function(e) { + return _ && b.containsIgnoredPath(e) ? void 0 : s(e, e === l) + }) : void 0) + } + + function g(e, t, r, n, i) { + void 0 === i && (i = {}); + var a = b.toPath(t, r.getCurrentDirectory(), b.hostGetCanonicalFileName(r)), + o = null == (o = r.getModuleSpecifierCache) ? void 0 : o.call(r); + if (o) { + var s = o.get(e, a, n, i); + if (null != s && s.modulePaths) return s.modulePaths + } + s = m(e, t, r); + return o && o.setModulePaths(e, a, n, i, s), s + } + + function m(e, t, r) { + for (var n, i = b.hostGetCanonicalFileName(r), o = new b.Map, s = (d(e, t, r, !0, function(e, t) { + var r = b.pathContainsNodeModules(e); + o.set(e, { + path: i(e), + isRedirect: t, + isInNodeModules: r + }), 0 + }), []), a = b.getDirectoryPath(e); 0 !== o.size;) { + var c = function(e) { + var i, a = b.ensureTrailingDirectorySeparator(e), + t = (o.forEach(function(e, t) { + var r = e.path, + n = e.isRedirect, + e = e.isInNodeModules; + b.startsWith(r, a) && ((i = i || []).push({ + path: t, + isRedirect: n, + isInNodeModules: e + }), o.delete(t)) + }), i && (1 < i.length && i.sort(_), s.push.apply(s, i)), b.getDirectoryPath(e)); + if (t === e) return n = e, "break"; + n = e = t + }(a), + a = n; + if ("break" === c) break + } + return o.size && (1 < (t = b.arrayFrom(o.values())).length && t.sort(_), s.push.apply(s, t)), s + } + + function D(e, t, r) { + if (b.getEmitModuleResolutionKind(t) >= b.ModuleResolutionKind.Node16 && r === b.ModuleKind.ESNext) return [2]; + switch (e) { + case 2: + return [2, 0, 1]; + case 1: + return [1, 0, 2]; + case 0: + return [0, 1, 2]; + default: + b.Debug.assertNever(e) + } + } + + function S(l, e, u, r, _) { + for (var d in e) + for (var t = 0, n = e[d]; t < n.length; t++) { + var i = function(e) { + var t = b.normalizePath(e), + e = t.indexOf("*"), + r = u.map(function(e) { + return { + ending: e, + value: C(l, e, _) + } + }); + if (b.tryGetExtensionFromPath(t) && r.push({ + ending: void 0, + value: l + }), -1 !== e) + for (var n = t.substring(0, e), i = t.substring(e + 1), a = 0, o = r; a < o.length; a++) { + var s = o[a], + c = s.ending, + s = s.value; + if (s.length >= n.length + i.length && b.startsWith(s, n) && b.endsWith(s, i) && p({ + ending: c, + value: s + })) return c = s.substring(n.length, s.length - i.length), { + value: d.replace("*", c) + } + } else if (b.some(r, function(e) { + return 0 !== e.ending && t === e.value + }) || b.some(r, function(e) { + return 0 === e.ending && t === e.value && p(e) + })) return { + value: d + } + }(n[t]); + if ("object" == typeof i) return i.value + } + + function p(e) { + var t = e.ending, + e = e.value; + return 0 !== t || e === C(l, t, _, r) + } + } + + function v(e, t, o, s, c, r, n, l) { + var u = e.path, + e = e.isRedirect, + _ = t.getCanonicalFileName, + t = t.sourceDirectory; + if (s.fileExists && s.readFile) { + var d = b.getNodeModulePathParts(u); + if (d) { + var p = x(s, r, c, o), + i = u, + a = !1; + if (!n) + for (var f = d.packageRootIndex, g = void 0;;) { + var m = function(e) { + var e = u.substring(0, e), + t = b.combinePaths(e, "package.json"), + r = u, + n = !1, + i = null == (i = null == (i = s.getPackageJsonInfoCache) ? void 0 : i.call(s)) ? void 0 : i.getPackageJsonInfo(t); + if ("object" == typeof i || void 0 === i && s.fileExists(t)) { + i = (null == i ? void 0 : i.contents.packageJsonContent) || JSON.parse(s.readFile(t)), t = l || o.impliedNodeFormat; + if (b.getEmitModuleResolutionKind(c) === b.ModuleResolutionKind.Node16 || b.getEmitModuleResolutionKind(c) === b.ModuleResolutionKind.NodeNext) { + var a = ["node", t === b.ModuleKind.ESNext ? "import" : "require", "types"], + a = i.exports && "string" == typeof i.name ? function n(i, a, o, s, c, l, e) { + if (void 0 === e && (e = 0), "string" == typeof c) { + var t = b.getNormalizedAbsolutePath(b.combinePaths(o, c), void 0), + r = b.hasTSFileExtension(a) ? b.removeFileExtension(a) + E(a, i) : void 0; + switch (e) { + case 0: + if (0 === b.comparePaths(a, t) || r && 0 === b.comparePaths(r, t)) return { + moduleFileToTry: s + }; + break; + case 1: + if (b.containsPath(t, a)) return _ = b.getRelativePathFromDirectory(t, a, !1), { + moduleFileToTry: b.getNormalizedAbsolutePath(b.combinePaths(b.combinePaths(s, c), _), void 0) + }; + break; + case 2: + var u, _ = t.indexOf("*"), + d = t.slice(0, _), + _ = t.slice(_ + 1); + return b.startsWith(a, d) && b.endsWith(a, _) ? (u = a.slice(d.length, a.length - _.length), { + moduleFileToTry: s.replace("*", u) + }) : r && b.startsWith(r, d) && b.endsWith(r, _) ? (u = r.slice(d.length, r.length - _.length), { + moduleFileToTry: s.replace("*", u) + }) : void 0 + } + } else { + if (Array.isArray(c)) return b.forEach(c, function(e) { + return n(i, a, o, s, e, l) + }); + if ("object" == typeof c && null !== c) { + if (b.allKeysStartWithDot(c)) return b.forEach(b.getOwnKeys(c), function(e) { + var t = b.getNormalizedAbsolutePath(b.combinePaths(s, e), void 0), + r = b.endsWith(e, "/") ? 1 : b.stringContains(e, "*") ? 2 : 0; + return n(i, a, o, t, c[e], l, r) + }); + for (var p = 0, f = b.getOwnKeys(c); p < f.length; p++) { + var g = f[p]; + if (("default" === g || 0 <= l.indexOf(g) || b.isApplicableVersionedTypesKey(l, g)) && (g = c[g], g = n(i, a, o, s, g, l))) return g + } + } + } + }(c, u, e, b.getPackageNameFromTypesPackageName(i.name), i.exports, a) : void 0; + if (a) return a = b.hasTSFileExtension(a.moduleFileToTry) ? { + moduleFileToTry: b.removeFileExtension(a.moduleFileToTry) + E(a.moduleFileToTry, c) + } : a, __assign(__assign({}, a), { + verbatimFromExports: !0 + }); + if (i.exports) return { + moduleFileToTry: u, + blockedByExports: !0 + } + } + a = i.typesVersions ? b.getPackageJsonTypesVersionsPaths(i.typesVersions) : void 0, t = (a && (void 0 === (t = S(u.slice(e.length + 1), a.paths, D(p.ending, c, t), s, c)) ? n = !0 : r = b.combinePaths(e, t)), i.typings || i.types || i.main || "index.js"); + if (b.isString(t) && (!n || !b.matchPatternOrExact(b.tryParsePatterns(a.paths), t))) { + i = b.toPath(t, e, _); + if (b.removeFileExtension(i) === b.removeFileExtension(_(r))) return { + packageRootPath: e, + moduleFileToTry: r + } + } + } else { + n = _(r.substring(d.packageRootIndex + 1)); + if ("index.d.ts" === n || "index.js" === n || "index.ts" === n || "index.tsx" === n) return { + moduleFileToTry: r, + packageRootPath: e + } + } + return { + moduleFileToTry: r + } + }(f), + y = m.moduleFileToTry, + h = m.packageRootPath, + v = m.blockedByExports, + m = m.verbatimFromExports; + if (b.getEmitModuleResolutionKind(c) !== b.ModuleResolutionKind.Classic) { + if (v) return; + if (m) return y + } + if (h) { + i = h, a = !0; + break + } + if (g = g || y, -1 === (f = u.indexOf(b.directorySeparator, f + 1))) { + i = C(g, p.ending, c, s); + break + } + } + if (!e || a) { + r = s.getGlobalTypingsCacheLocation && s.getGlobalTypingsCacheLocation(), n = _(i.substring(0, d.topLevelNodeModulesIndex)); + if (b.startsWith(t, n) || r && b.startsWith(_(r), n)) return e = i.substring(d.topLevelPackageNameIndex + 1), t = b.getPackageNameFromTypesPackageName(e), b.getEmitModuleResolutionKind(c) === b.ModuleResolutionKind.Classic && t === e ? void 0 : t + } + } + } + } + + function T(t, e, r) { + return b.mapDefined(e, function(e) { + e = k(t, e, r); + return void 0 !== e && N(e) ? void 0 : e + }) + } + + function C(e, t, r, n) { + if (b.fileExtensionIsOneOf(e, [".json", ".mjs", ".cjs"])) return e; + var i = b.removeFileExtension(e); + if (e === i) return e; + if (b.fileExtensionIsOneOf(e, [".d.mts", ".mts", ".d.cts", ".cts"])) return i + o(e, r); + switch (t) { + case 0: + var a = b.removeSuffix(i, "/index"); + return n && a !== i && function(e, t) { + if (e.fileExists) + for (var r = 0, n = b.flatten(b.getSupportedExtensions({ + allowJs: !0 + }, [{ + extension: "node", + isMixedContent: !1 + }, { + extension: "json", + isMixedContent: !1, + scriptKind: 6 + }])); r < n.length; r++) { + var i = t + n[r]; + if (e.fileExists(i)) return i + } + }(n, a) ? i : a; + case 1: + return i; + case 2: + return i + o(e, r); + default: + return b.Debug.assertNever(t) + } + } + + function o(e, t) { + return null != (t = E(e, t)) ? t : b.Debug.fail("Extension ".concat(b.extensionFromPath(e), " is unsupported:: FileName:: ").concat(e)) + } + + function E(e, t) { + var r = b.tryGetExtensionFromPath(e); + switch (r) { + case ".ts": + case ".d.ts": + return ".js"; + case ".tsx": + return 1 === t.jsx ? ".jsx" : ".js"; + case ".js": + case ".jsx": + case ".json": + return r; + case ".d.mts": + case ".mts": + case ".mjs": + return ".mjs"; + case ".d.cts": + case ".cts": + case ".cjs": + return ".cjs"; + default: + return + } + } + + function k(e, t, r) { + e = b.getRelativePathToDirectoryOrUrl(t, e, t, r, !1); + return b.isRootedDiskPath(e) ? void 0 : e + } + + function N(e) { + return b.startsWith(e, "..") + }(e = b.moduleSpecifiers || (b.moduleSpecifiers = {})).updateModuleSpecifier = function(e, t, r, n, i, a, o) { + if (void 0 === o && (o = {}), (i = c(e, t, r, n, i, (t = e, n = a, e = r, r = i, { + relativePreference: b.isExternalModuleNameRelative(n) ? 0 : 1, + ending: b.hasJSFileExtension(n) || s(t, e, r) ? 2 : b.getEmitModuleResolutionKind(t) !== b.ModuleResolutionKind.NodeJs || b.endsWith(n, "index") ? 1 : 0 + }), {}, o)) !== a) return i + }, e.getModuleSpecifier = function(e, t, r, n, i, a) { + return void 0 === a && (a = {}), c(e, t, r, n, i, x(i, {}, e, t), {}, a) + }, e.getNodeModulesPackageName = function(t, r, e, n, i, a) { + void 0 === a && (a = {}); + var o = y(r.path, n), + e = g(r.path, e, n, i, a); + return b.firstDefined(e, function(e) { + return v(e, o, r, n, t, i, !0, a.overrideImportMode) + }) + }, e.tryGetModuleSpecifiersFromCache = function(e, t, r, n, i) { + return l(e, t, r, n, i = void 0 === i ? {} : i)[0] + }, e.getModuleSpecifiers = function(e, t, r, n, i, a, o) { + return u(e, t, r, n, i, a, o = void 0 === o ? {} : o).moduleSpecifiers + }, e.getModuleSpecifiersWithCacheInfo = u, e.countPathComponents = p, e.forEachFileNameOfModule = d, e.tryGetJSExtensionForFile = E + }(ts = ts || {}), ! function(d) { + var i = d.sys ? { + getCurrentDirectory: function() { + return d.sys.getCurrentDirectory() + }, + getNewLine: function() { + return d.sys.newLine + }, + getCanonicalFileName: d.createGetCanonicalFileName(d.sys.useCaseSensitiveFileNames) + } : void 0; + + function l(t, e) { + var r, n = t === d.sys && i ? i : { + getCurrentDirectory: function() { + return t.getCurrentDirectory() + }, + getNewLine: function() { + return t.newLine + }, + getCanonicalFileName: d.createGetCanonicalFileName(t.useCaseSensitiveFileNames) + }; + return e ? (r = new Array(1), function(e) { + r[0] = e, t.write(d.formatDiagnosticsWithColorAndContext(r, n) + n.getNewLine()), r[0] = void 0 + }) : function(e) { + return t.write(d.formatDiagnostic(e, n)) + } + } + + function a(e, t, r) { + return e.clearScreen && !r.preserveWatchOutput && !r.extendedDiagnostics && !r.diagnostics && d.contains(d.screenStartingMessageCodes, t.code) && (e.clearScreen(), 1) + } + + function o(e) { + return e.now ? e.now().toLocaleTimeString("en-US", { + timeZone: "UTC" + }) : (new Date).toLocaleTimeString() + } + + function r(i, e) { + return e ? function(e, t, r) { + a(i, e, r); + r = "[".concat(d.formatColorAndReset(o(i), d.ForegroundColorEscapeSequences.Grey), "] "); + r += "".concat(d.flattenDiagnosticMessageText(e.messageText, i.newLine)).concat(t + t), i.write(r) + } : function(e, t, r) { + var n = ""; + a(i, e, r) || (n += t), n = (n += "".concat(o(i), " - ")) + "".concat(d.flattenDiagnosticMessageText(e.messageText, i.newLine)).concat((r = t, d.contains(d.screenStartingMessageCodes, e.code) ? r + r : r)), i.write(n) + } + } + + function p(e) { + return d.countWhere(e, function(e) { + return e.category === d.DiagnosticCategory.Error + }) + } + + function f(r) { + return d.filter(r, function(e) { + return e.category === d.DiagnosticCategory.Error + }).map(function(e) { + if (void 0 !== e.file) return "".concat(e.file.fileName) + }).map(function(t) { + var e = d.find(r, function(e) { + return void 0 !== e.file && e.file.fileName === t + }); + if (void 0 !== e) return e = d.getLineAndCharacterOfPosition(e.file, e.start).line, { + fileName: t, + line: e + 1 + } + }) + } + + function s(e) { + return 1 === e ? d.Diagnostics.Found_1_error_Watching_for_file_changes : d.Diagnostics.Found_0_errors_Watching_for_file_changes + } + + function _(e, t) { + var r = d.formatColorAndReset(":" + e.line, d.ForegroundColorEscapeSequences.Grey); + return d.pathIsAbsolute(e.fileName) && d.pathIsAbsolute(t) ? d.getRelativePathFromDirectory(t, e.fileName, !1) + r : e.fileName + r + } + + function c(e, t, r, n) { + var i, a, o, s, c, l, u; + return 0 === e ? "" : (o = (s = t.filter(function(e) { + return void 0 !== e + })).map(function(e) { + return "".concat(e.fileName, ":").concat(e.line) + }).filter(function(e, t, r) { + return r.indexOf(e) === t + }), l = s[0] && _(s[0], n.getCurrentDirectory()), t = 1 === e ? d.createCompilerDiagnostic(void 0 !== t[0] ? d.Diagnostics.Found_1_error_in_1 : d.Diagnostics.Found_1_error, e, l) : d.createCompilerDiagnostic(0 === o.length ? d.Diagnostics.Found_0_errors : 1 === o.length ? d.Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1 : d.Diagnostics.Found_0_errors_in_1_files, e, 1 === o.length ? l : o.length), o = !(1 < o.length) || (a = n, 0 === (e = (i = s).filter(function(t, e, r) { + return e === r.findIndex(function(e) { + return (null == e ? void 0 : e.fileName) === (null == t ? void 0 : t.fileName) + }) + })).length) ? "" : (l = function(e) { + return Math.log(e) * Math.LOG10E + 1 + }, e = e.map(function(t) { + return [t, d.countWhere(i, function(e) { + return e.fileName === t.fileName + })] + }), o = e.reduce(function(e, t) { + return Math.max(e, t[1] || 0) + }, 0), n = d.Diagnostics.Errors_Files.message, s = n.split(" ")[0].length, c = Math.max(s, l(o)), l = Math.max(l(o) - s, 0), u = "", u += " ".repeat(l) + n + "\n", e.forEach(function(e) { + var t = e[0], + e = e[1], + r = Math.log(e) * Math.LOG10E + 1 | 0, + r = r < c ? " ".repeat(c - r) : "", + t = _(t, a.getCurrentDirectory()); + u += "".concat(r).concat(e, " ").concat(t, "\n") + }), u), "".concat(r).concat(d.flattenDiagnosticMessageText(t.messageText, r)).concat(r).concat(r).concat(o)) + } + + function n(e) { + return !!e.getState + } + + function g(e, t) { + var r = e.getCompilerOptions(); + r.explainFiles ? u(n(e) ? e.getProgram() : e, t) : (r.listFiles || r.listFilesOnly) && d.forEach(e.getSourceFiles(), function(e) { + t(e.fileName) + }) + } + + function u(t, r) { + for (var e, n = t.getFileIncludeReasons(), i = d.createGetCanonicalFileName(t.useCaseSensitiveFileNames()), a = function(e) { + return d.convertToRelativePath(e, t.getCurrentDirectory(), i) + }, o = 0, s = t.getSourceFiles(); o < s.length; o++) { + var c = s[o]; + r("".concat(b(c, a))), null != (e = n.get(c.path)) && e.forEach(function(e) { + return r(" ".concat(v(t, e, a).messageText)) + }), null != (e = m(c, a)) && e.forEach(function(e) { + return r(" ".concat(e.messageText)) + }) + } + } + + function m(e, t) { + var r, n; + if (e.path !== e.resolvedPath && (null != n ? n : n = []).push(d.chainDiagnosticMessages(void 0, d.Diagnostics.File_is_output_of_project_reference_source_0, b(e.originalFileName, t))), e.redirectInfo && (null != n ? n : n = []).push(d.chainDiagnosticMessages(void 0, d.Diagnostics.File_redirects_to_file_0, b(e.redirectInfo.redirectTarget, t))), d.isExternalOrCommonJsModule(e)) switch (e.impliedNodeFormat) { + case d.ModuleKind.ESNext: + e.packageJsonScope && (null != n ? n : n = []).push(d.chainDiagnosticMessages(void 0, d.Diagnostics.File_is_ECMAScript_module_because_0_has_field_type_with_value_module, b(d.last(e.packageJsonLocations), t))); + break; + case d.ModuleKind.CommonJS: + e.packageJsonScope ? (null != n ? n : n = []).push(d.chainDiagnosticMessages(void 0, e.packageJsonScope.contents.packageJsonContent.type ? d.Diagnostics.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module : d.Diagnostics.File_is_CommonJS_module_because_0_does_not_have_field_type, b(d.last(e.packageJsonLocations), t))) : null != (r = e.packageJsonLocations) && r.length && (null != n ? n : n = []).push(d.chainDiagnosticMessages(void 0, d.Diagnostics.File_is_CommonJS_module_because_package_json_was_not_found)) + } + return n + } + + function y(e, t) { + var r, n, i, a, o = e.getCompilerOptions().configFile; + if (null != (r = null == o ? void 0 : o.configFileSpecs) && r.validatedFilesSpec) return n = d.createGetCanonicalFileName(e.useCaseSensitiveFileNames()), i = n(t), a = d.getDirectoryPath(d.getNormalizedAbsolutePath(o.fileName, e.getCurrentDirectory())), d.find(o.configFileSpecs.validatedFilesSpec, function(e) { + return n(d.getNormalizedAbsolutePath(e, a)) === i + }) + } + + function h(e, t) { + var r, n, i, a, o = e.getCompilerOptions().configFile; + if (null != (r = null == o ? void 0 : o.configFileSpecs) && r.validatedIncludeSpecs) return !!o.configFileSpecs.isDefaultIncludeSpec || (n = d.fileExtensionIs(t, ".json"), i = d.getDirectoryPath(d.getNormalizedAbsolutePath(o.fileName, e.getCurrentDirectory())), a = e.useCaseSensitiveFileNames(), d.find(null == (r = null == o ? void 0 : o.configFileSpecs) ? void 0 : r.validatedIncludeSpecs, function(e) { + return !(n && !d.endsWith(e, ".json") || !(e = d.getPatternFromSpec(e, i, "files"))) && d.getRegexFromPattern("(".concat(e, ")$"), a).test(t) + })) + } + + function v(t, e, r) { + var n = t.getCompilerOptions(); + if (d.isReferencedFile(e)) { + var i = d.getReferencedFileLocation(function(e) { + return t.getSourceFileByPath(e) + }, e), + a = d.isReferenceFileLocation(i) ? i.file.text.substring(i.pos, i.end) : '"'.concat(i.text, '"'), + o = void 0; + switch (d.Debug.assert(d.isReferenceFileLocation(i) || e.kind === d.FileIncludeKind.Import, "Only synthetic references are imports"), e.kind) { + case d.FileIncludeKind.Import: + o = d.isReferenceFileLocation(i) ? i.packageId ? d.Diagnostics.Imported_via_0_from_file_1_with_packageId_2 : d.Diagnostics.Imported_via_0_from_file_1 : i.text === d.externalHelpersModuleNameText ? i.packageId ? d.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions : d.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions : i.packageId ? d.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions : d.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions; + break; + case d.FileIncludeKind.ReferenceFile: + d.Debug.assert(!i.packageId), o = d.Diagnostics.Referenced_via_0_from_file_1; + break; + case d.FileIncludeKind.TypeReferenceDirective: + o = i.packageId ? d.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2 : d.Diagnostics.Type_library_referenced_via_0_from_file_1; + break; + case d.FileIncludeKind.LibReferenceDirective: + d.Debug.assert(!i.packageId), o = d.Diagnostics.Library_referenced_via_0_from_file_1; + break; + default: + d.Debug.assertNever(e) + } + return d.chainDiagnosticMessages(void 0, o, a, b(i.file, r), i.packageId && d.packageIdToString(i.packageId)) + } + switch (e.kind) { + case d.FileIncludeKind.RootFile: + return null != (s = n.configFile) && s.configFileSpecs ? (s = d.getNormalizedAbsolutePath(t.getRootFileNames()[e.index], t.getCurrentDirectory()), y(t, s) ? d.chainDiagnosticMessages(void 0, d.Diagnostics.Part_of_files_list_in_tsconfig_json) : (s = h(t, s), d.isString(s) ? d.chainDiagnosticMessages(void 0, d.Diagnostics.Matched_by_include_pattern_0_in_1, s, b(n.configFile, r)) : d.chainDiagnosticMessages(void 0, s ? d.Diagnostics.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk : d.Diagnostics.Root_file_specified_for_compilation))) : d.chainDiagnosticMessages(void 0, d.Diagnostics.Root_file_specified_for_compilation); + case d.FileIncludeKind.SourceFromProjectReference: + case d.FileIncludeKind.OutputFromProjectReference: + var s = e.kind === d.FileIncludeKind.OutputFromProjectReference, + c = d.Debug.checkDefined(null == (c = t.getResolvedProjectReferences()) ? void 0 : c[e.index]); + return d.chainDiagnosticMessages(void 0, d.outFile(n) ? s ? d.Diagnostics.Output_from_referenced_project_0_included_because_1_specified : d.Diagnostics.Source_from_referenced_project_0_included_because_1_specified : s ? d.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none : d.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none, b(c.sourceFile.fileName, r), n.outFile ? "--outFile" : "--out"); + case d.FileIncludeKind.AutomaticTypeDirectiveFile: + return d.chainDiagnosticMessages(void 0, n.types ? e.packageId ? d.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1 : d.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions : e.packageId ? d.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1 : d.Diagnostics.Entry_point_for_implicit_type_library_0, e.typeReference, e.packageId && d.packageIdToString(e.packageId)); + case d.FileIncludeKind.LibFile: + return void 0 !== e.index ? d.chainDiagnosticMessages(void 0, d.Diagnostics.Library_0_specified_in_compilerOptions, n.lib[e.index]) : (s = d.forEachEntry(d.targetOptionDeclaration.type, function(e, t) { + return e === d.getEmitScriptTarget(n) ? t : void 0 + }), d.chainDiagnosticMessages(void 0, s ? d.Diagnostics.Default_library_for_target_0 : d.Diagnostics.Default_library, s)); + default: + d.Debug.assertNever(e) + } + } + + function b(e, t) { + e = d.isString(e) ? e : e.fileName; + return t ? t(e) : e + } + + function x(e, t, r, n, i, a, o, s) { + var c, l = !!e.getCompilerOptions().listFilesOnly, + u = e.getConfigFileParsingDiagnostics().slice(), + _ = u.length, + _ = (d.addRange(u, e.getSyntacticDiagnostics(void 0, a)), u.length === _ && (d.addRange(u, e.getOptionsDiagnostics(a)), l || (d.addRange(u, e.getGlobalDiagnostics(a)), u.length === _ && d.addRange(u, e.getSemanticDiagnostics(void 0, a)))), l ? { + emitSkipped: !0, + diagnostics: d.emptyArray + } : e.emit(void 0, i, a, o, s)), + l = _.emittedFiles, + i = _.diagnostics, + a = (d.addRange(u, i), d.sortAndDeduplicateDiagnostics(u)); + return a.forEach(t), r && (c = e.getCurrentDirectory(), d.forEach(l, function(e) { + e = d.getNormalizedAbsolutePath(e, c); + r("TSFILE: ".concat(e)) + }), g(e, r)), n && n(p(a), f(a)), { + emitResult: _, + diagnostics: a + } + } + + function D(e, t, r, n, i, a, o, s) { + e = x(e, t, r, n, i, a, o, s), t = e.emitResult, r = e.diagnostics; + return t.emitSkipped && 0 < r.length ? d.ExitStatus.DiagnosticsPresent_OutputsSkipped : 0 < r.length ? d.ExitStatus.DiagnosticsPresent_OutputsGenerated : d.ExitStatus.Success + } + + function S(e, t) { + return void 0 === e && (e = d.sys), { + onWatchStatusChange: t || r(e), + watchFile: d.maybeBind(e, e.watchFile) || d.returnNoopFileWatcher, + watchDirectory: d.maybeBind(e, e.watchDirectory) || d.returnNoopFileWatcher, + setTimeout: d.maybeBind(e, e.setTimeout) || d.noop, + clearTimeout: d.maybeBind(e, e.clearTimeout) || d.noop + } + } + + function T(a, e) { + var t = d.memoize(function() { + return d.getDirectoryPath(d.normalizePath(a.getExecutingFilePath())) + }); + return { + useCaseSensitiveFileNames: function() { + return a.useCaseSensitiveFileNames + }, + getNewLine: function() { + return a.newLine + }, + getCurrentDirectory: d.memoize(function() { + return a.getCurrentDirectory() + }), + getDefaultLibLocation: t, + getDefaultLibFileName: function(e) { + return d.combinePaths(t(), d.getDefaultLibFileName(e)) + }, + fileExists: function(e) { + return a.fileExists(e) + }, + readFile: function(e, t) { + return a.readFile(e, t) + }, + directoryExists: function(e) { + return a.directoryExists(e) + }, + getDirectories: function(e) { + return a.getDirectories(e) + }, + readDirectory: function(e, t, r, n, i) { + return a.readDirectory(e, t, r, n, i) + }, + realpath: d.maybeBind(a, a.realpath), + getEnvironmentVariable: d.maybeBind(a, a.getEnvironmentVariable), + trace: function(e) { + return a.write(e + a.newLine) + }, + createDirectory: function(e) { + return a.createDirectory(e) + }, + writeFile: function(e, t, r) { + return a.writeFile(e, t, r) + }, + createHash: d.maybeBind(a, a.createHash), + createProgram: e || d.createEmitAndSemanticDiagnosticsBuilderProgram, + disableUseFileVersionAsSignature: a.disableUseFileVersionAsSignature, + storeFilesChangingSignatureDuringEmit: a.storeFilesChangingSignatureDuringEmit, + now: d.maybeBind(a, a.now) + } + } + + function C(n, e, i, t) { + void 0 === n && (n = d.sys); + + function a(e) { + return n.write(e + n.newLine) + } + var o = T(n, e); + return d.copyProperties(o, S(n, t)), o.afterProgramCreate = function(e) { + var t = e.getCompilerOptions(), + r = d.getNewLineCharacter(t, function() { + return n.newLine + }); + x(e, i, a, function(e) { + return o.onWatchStatusChange(d.createCompilerDiagnostic(s(e), e), r, t, e) + }) + }, o + } + + function E(e, t, r) { + t(r), e.exit(d.ExitStatus.DiagnosticsPresent_OutputsSkipped) + } + d.createDiagnosticReporter = l, d.screenStartingMessageCodes = [d.Diagnostics.Starting_compilation_in_watch_mode.code, d.Diagnostics.File_change_detected_Starting_incremental_compilation.code], d.getLocaleTimeString = o, d.createWatchStatusReporter = r, d.parseConfigFileWithSystem = function(e, t, r, n, i, a) { + var o = i, + e = (o.onUnRecoverableConfigFileDiagnostic = function(e) { + return E(i, a, e) + }, d.getParsedCommandLineOfConfigFile(e, t, o, r, n)); + return o.onUnRecoverableConfigFileDiagnostic = void 0, e + }, d.getErrorCountForSummary = p, d.getFilesInErrorForSummary = f, d.getWatchErrorSummaryDiagnosticMessage = s, d.getErrorSummaryText = c, d.isBuilderProgram = n, d.listFiles = g, d.explainFiles = u, d.explainIfFileIsRedirectAndImpliedFormat = m, d.getMatchedFileSpec = y, d.getMatchedIncludeSpec = h, d.fileIncludeReasonToDiagnostics = v, d.emitFilesAndReportErrors = x, d.emitFilesAndReportErrorsAndGetExitStatus = D, d.noopFileWatcher = { + close: d.noop + }, d.returnNoopFileWatcher = function() { + return d.noopFileWatcher + }, d.createWatchHost = S, d.WatchType = { + ConfigFile: "Config file", + ExtendedConfigFile: "Extended config file", + SourceFile: "Source file", + MissingFile: "Missing file", + WildcardDirectory: "Wild card directory", + FailedLookupLocations: "Failed Lookup Locations", + AffectingFileLocation: "File location affecting resolution", + TypeRoots: "Type roots", + ConfigFileOfReferencedProject: "Config file of referened project", + ExtendedConfigOfReferencedProject: "Extended config file of referenced project", + WildcardDirectoryOfReferencedProject: "Wild card directory of referenced project", + PackageJson: "package.json file", + ClosedScriptInfo: "Closed Script info", + ConfigFileForInferredRoot: "Config file for the inferred project root", + NodeModules: "node_modules for closed script infos and package.jsons affecting module specifier cache", + MissingSourceMapFile: "Missing source map file", + NoopConfigFileForInferredRoot: "Noop Config file for the inferred project root", + MissingGeneratedFile: "Missing generated file", + NodeModulesForModuleSpecifierCache: "node_modules for module specifier cache invalidation" + }, d.createWatchFactory = function(t, e) { + var r = (e = t.trace ? e.extendedDiagnostics ? d.WatchLogLevel.Verbose : e.diagnostics ? d.WatchLogLevel.TriggerOnly : d.WatchLogLevel.None : d.WatchLogLevel.None) !== d.WatchLogLevel.None ? function(e) { + return t.trace(e) + } : d.noop; + return (e = d.getWatchFactory(t, e, r)).writeLog = r, e + }, d.createCompilerHostFromProgramHost = function(a, o, e) { + void 0 === e && (e = a); + var t = a.useCaseSensitiveFileNames(), + r = d.memoize(function() { + return a.getNewLine() + }), + s = { + getSourceFile: function(e, t, r) { + try { + d.performance.mark("beforeIORead"); + var n = o().charset, + i = n ? a.readFile(e, n) : s.readFile(e); + d.performance.mark("afterIORead"), d.performance.measure("I/O Read", "beforeIORead", "afterIORead") + } catch (e) { + r && r(e.message), i = "" + } + return void 0 !== i ? d.createSourceFile(e, i, t) : void 0 + }, + getDefaultLibLocation: d.maybeBind(a, a.getDefaultLibLocation), + getDefaultLibFileName: function(e) { + return a.getDefaultLibFileName(e) + }, + writeFile: function(e, t, r, n) { + try { + d.performance.mark("beforeIOWrite"), d.writeFileEnsuringDirectories(e, t, r, function(e, t, r) { + return a.writeFile(e, t, r) + }, function(e) { + return a.createDirectory(e) + }, function(e) { + return a.directoryExists(e) + }), d.performance.mark("afterIOWrite"), d.performance.measure("I/O Write", "beforeIOWrite", "afterIOWrite") + } catch (e) { + n && n(e.message) + } + }, + getCurrentDirectory: d.memoize(function() { + return a.getCurrentDirectory() + }), + useCaseSensitiveFileNames: function() { + return t + }, + getCanonicalFileName: d.createGetCanonicalFileName(t), + getNewLine: function() { + return d.getNewLineCharacter(o(), r) + }, + fileExists: function(e) { + return a.fileExists(e) + }, + readFile: function(e) { + return a.readFile(e) + }, + trace: d.maybeBind(a, a.trace), + directoryExists: d.maybeBind(e, e.directoryExists), + getDirectories: d.maybeBind(e, e.getDirectories), + realpath: d.maybeBind(a, a.realpath), + getEnvironmentVariable: d.maybeBind(a, a.getEnvironmentVariable) || function() { + return "" + }, + createHash: d.maybeBind(a, a.createHash), + readDirectory: d.maybeBind(a, a.readDirectory), + disableUseFileVersionAsSignature: a.disableUseFileVersionAsSignature, + storeFilesChangingSignatureDuringEmit: a.storeFilesChangingSignatureDuringEmit + }; + return s + }, d.setGetSourceFileAsHashVersioned = function(n) { + var i = n.getSourceFile, + a = d.maybeBind(n, n.createHash) || d.generateDjb2Hash; + n.getSourceFile = function() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + var r = i.call.apply(i, __spreadArray([n], e, !1)); + return r && (r.version = a(r.text)), r + } + }, d.createProgramHost = T, d.createWatchCompilerHostOfConfigFile = function(e) { + var t = e.configFileName, + r = e.optionsToExtend, + n = e.watchOptionsToExtend, + i = e.extraFileExtensions, + a = e.system, + o = e.createProgram, + s = e.reportDiagnostic, + e = e.reportWatchStatus, + c = s || l(a); + return (s = C(a, o, c, e)).onUnRecoverableConfigFileDiagnostic = function(e) { + return E(a, c, e) + }, s.configFileName = t, s.optionsToExtend = r, s.watchOptionsToExtend = n, s.extraFileExtensions = i, s + }, d.createWatchCompilerHostOfFilesAndCompilerOptions = function(e) { + var t = e.rootFiles, + r = e.options, + n = e.watchOptions, + i = e.projectReferences, + a = e.system, + o = e.createProgram, + s = e.reportDiagnostic, + e = e.reportWatchStatus; + return (o = C(a, o, s || l(a), e)).rootFiles = t, o.options = r, o.watchOptions = n, o.projectReferences = i, o + }, d.performIncrementalCompilation = function(e) { + var r = e.system || d.sys, + n = e.host || (e.host = d.createIncrementalCompilerHost(e.options, r)), + t = d.createIncrementalProgram(e), + i = D(t, e.reportDiagnostic || l(r), function(e) { + return n.trace && n.trace(e) + }, e.reportErrorSummary || e.options.pretty ? function(e, t) { + return r.write(c(e, t, r.newLine, n)) + } : void 0); + return e.afterProgramEmitAndDiagnostics && e.afterProgramEmitAndDiagnostics(t), i + } + }(ts = ts || {}), ! function(me) { + function ye(e, t) { + var r, n = me.getTsBuildInfoEmitOutputFilePath(e); + if (n) { + if (t.getBuildInfo) r = t.getBuildInfo(n, e.configFilePath); + else { + e = t.readFile(n); + if (!e) return; + r = me.getBuildInfo(n, e) + } + if (r && r.version === me.version && r.program) return me.createBuilderProgramUsingProgramBuildInfo(r.program, n, t) + } + } + + function o(e, t) { + void 0 === t && (t = me.sys); + var r = me.createCompilerHostWorker(e, void 0, t); + return r.createHash = me.maybeBind(t, t.createHash), r.disableUseFileVersionAsSignature = t.disableUseFileVersionAsSignature, r.storeFilesChangingSignatureDuringEmit = t.storeFilesChangingSignatureDuringEmit, me.setGetSourceFileAsHashVersioned(r), me.changeCompilerHostLikeToUseCache(r, function(e) { + return me.toPath(e, r.getCurrentDirectory(), r.getCanonicalFileName) + }), r + } + me.readBuilderProgram = ye, me.createIncrementalCompilerHost = o, me.createIncrementalProgram = function(e) { + var t = e.rootNames, + r = e.options, + n = e.configFileParsingDiagnostics, + i = e.projectReferences, + a = e.host, + e = e.createProgram, + a = a || o(r); + return (e = e || me.createEmitAndSemanticDiagnosticsBuilderProgram)(t, r, a, ye(r, a), n, i) + }, me.createWatchCompilerHost = function(e, t, r, n, i, a, o, s) { + return me.isArray(e) ? me.createWatchCompilerHostOfFilesAndCompilerOptions({ + rootFiles: e, + options: t, + watchOptions: s, + projectReferences: o, + system: r, + createProgram: n, + reportDiagnostic: i, + reportWatchStatus: a + }) : me.createWatchCompilerHostOfConfigFile({ + configFileName: e, + optionsToExtend: t, + watchOptionsToExtend: o, + extraFileExtensions: s, + system: r, + createProgram: n, + reportDiagnostic: i, + reportWatchStatus: a + }) + }, me.createWatchProgram = function(d) { + var o, p, e, t, r, l, s, f, L, g, n, u = d.extendedConfigCache, + m = !1, + y = new me.Map, + h = !1, + _ = d.useCaseSensitiveFileNames(), + v = d.getCurrentDirectory(), + c = d.configFileName, + i = d.optionsToExtend, + a = void 0 === i ? {} : i, + R = d.watchOptionsToExtend, + B = d.extraFileExtensions, + j = d.createProgram, + b = d.rootFiles, + x = d.options, + D = d.watchOptions, + S = d.projectReferences, + J = !1, + T = !1, + C = void 0 === c ? void 0 : me.createCachedDirectoryStructureHost(d, v, _), + z = C || d, + E = me.parseConfigHostFromCompilerHostLike(d, z), + k = Q(); + c && d.configFileParsingResult && (oe(d.configFileParsingResult), k = Q()), $(me.Diagnostics.Starting_compilation_in_watch_mode), c && !d.configFileParsingResult && (k = me.getNewLineCharacter(a, function() { + return d.getNewLine() + }), me.Debug.assert(!b), ae(), k = Q()); + var N = (i = me.createWatchFactory(d, x)).watchFile, + A = i.watchDirectory, + F = i.writeLog, + U = me.createGetCanonicalFileName(_), + P = (F("Current directory: ".concat(v, " CaseSensitiveFileNames: ").concat(_)), c && (n = N(c, function() { + me.Debug.assert(!!c), o = me.ConfigFileProgramReloadLevel.Full, M() + }, me.PollingInterval.High, D, me.WatchType.ConfigFile)), me.createCompilerHostFromProgramHost(d, function() { + return x + }, z)), + K = (me.setGetSourceFileAsHashVersioned(P), P.getSourceFile), + w = (P.getSourceFile = function(e) { + for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; + return Y.apply(void 0, __spreadArray([e, O(e)], t, !1)) + }, P.getSourceFileByPath = Y, P.getNewLine = function() { + return k + }, P.fileExists = function(e) { + var t = O(e); + if (X(y.get(t))) return !1; + return z.fileExists(e) + }, P.onReleaseOldSourceFile = function(e, t, r) { + var n = y.get(e.resolvedPath); + void 0 !== n && (X(n) ? (f = f || []).push(e.path) : n.sourceFile === e && (n.fileWatcher && n.fileWatcher.close(), y.delete(e.resolvedPath), r || w.removeResolutionsOfFile(e.path))) + }, P.onReleaseParsedCommandLine = function(e) { + var e = O(e), + t = null == l ? void 0 : l.get(e); + t && (l.delete(e), t.watchedDirectories && me.clearMap(t.watchedDirectories, me.closeFileWatcherOf), null != (t = t.watcher) && t.close(), me.clearSharedExtendedConfigFileWatcher(e, s)) + }, P.toPath = O, P.getCompilationSettings = function() { + return x + }, P.useSourceOfProjectReferenceRedirect = me.maybeBind(d, d.useSourceOfProjectReferenceRedirect), P.watchDirectoryOfFailedLookupLocation = function(e, t, r) { + return A(e, t, r, D, me.WatchType.FailedLookupLocations) + }, P.watchAffectingFileLocation = function(e, t) { + return N(e, t, me.PollingInterval.High, D, me.WatchType.AffectingFileLocation) + }, P.watchTypeRootsDirectory = function(e, t, r) { + return A(e, t, r, D, me.WatchType.TypeRoots) + }, P.getCachedDirectoryStructureHost = function() { + return C + }, P.scheduleInvalidateResolutionsOfFailedLookupLocations = function() { + if (!d.setTimeout || !d.clearTimeout) return w.invalidateResolutionsOfFailedLookupLocations(); + var e = te(); + F("Scheduling invalidateFailedLookup".concat(e ? ", Cancelled earlier one" : "")), r = d.setTimeout(re, 250) + }, P.onInvalidatedResolution = M, P.onChangedAutomaticTypeDirectiveNames = M, P.fileIsOpen = me.returnFalse, P.getCurrentProgram = H, P.writeLog = F, P.getParsedCommandLine = se, me.createResolutionCache(P, c ? me.getDirectoryPath(me.getNormalizedAbsolutePath(c, v)) : v, !1)), + V = (P.resolveModuleNames = d.resolveModuleNames ? function() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + return d.resolveModuleNames.apply(d, e) + } : function(e, t, r, n, i, a) { + return w.resolveModuleNames(e, t, r, n, a) + }, P.resolveTypeReferenceDirectives = d.resolveTypeReferenceDirectives ? function() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + return d.resolveTypeReferenceDirectives.apply(d, e) + } : function(e, t, r, n, i) { + return w.resolveTypeReferenceDirectives(e, t, r, i) + }, P.getModuleResolutionCache = d.resolveModuleNames ? me.maybeBind(d, d.getModuleResolutionCache) : function() { + return w.getModuleResolutionCache() + }, !!d.resolveModuleNames || !!d.resolveTypeReferenceDirectives ? me.maybeBind(d, d.hasInvalidatedResolutions) || me.returnTrue : me.returnFalse), + I = ye(x, P); + return G(), pe(), c && ge(O(c), x, D, me.WatchType.ExtendedConfigFile), c ? { + getCurrentProgram: W, + getProgram: ie, + close: q + } : { + getCurrentProgram: W, + getProgram: ie, + updateRootFileNames: function(e) { + me.Debug.assert(!c, "Cannot update root file names with config file watch mode"), b = e, M() + }, + close: q + }; + + function q() { + te(), w.clear(), me.clearMap(y, function(e) { + e && e.fileWatcher && (e.fileWatcher.close(), e.fileWatcher = void 0) + }), n && (n.close(), n = void 0), null != u && u.clear(), u = void 0, s && (me.clearMap(s, me.closeFileWatcherOf), s = void 0), e && (me.clearMap(e, me.closeFileWatcherOf), e = void 0), p && (me.clearMap(p, me.closeFileWatcher), p = void 0), l && (me.clearMap(l, function(e) { + var t; + null != (t = e.watcher) && t.close(), e.watcher = void 0, e.watchedDirectories && me.clearMap(e.watchedDirectories, me.closeFileWatcherOf), e.watchedDirectories = void 0 + }), l = void 0) + } + + function W() { + return I + } + + function H() { + return I && I.getProgramOrUndefined() + } + + function G() { + F("Synchronizing program"), te(); + var e = I, + t = (h && (k = Q(), e) && me.changesAffectModuleResolution(e.getCompilerOptions(), x) && w.clear(), w.createHasInvalidatedResolutions(V)), + r = me.changeCompilerHostLikeToUseCache(P, O), + n = r.originalReadFile, + i = r.originalFileExists, + a = r.originalDirectoryExists, + o = r.originalCreateDirectory, + s = r.originalWriteFile, + c = r.readFileWithCache; + if (me.isProgramUptoDate(H(), b, x, function(e) { + var t = c, + r = y.get(e); + if (r) return r.version || (void 0 !== (r = t(e)) ? (P.createHash || me.generateDjb2Hash)(r) : void 0) + }, function(e) { + return P.fileExists(e) + }, t, ee, se, S)) T && (m && $(me.Diagnostics.File_change_detected_Starting_incremental_compilation), I = j(void 0, void 0, P, I, g, S), T = !1); + else { + m && $(me.Diagnostics.File_change_detected_Starting_incremental_compilation); + r = t, t = (F("CreatingProgramWith::"), F(" roots: ".concat(JSON.stringify(b))), F(" options: ".concat(JSON.stringify(x))), S && F(" projectReferences: ".concat(JSON.stringify(S))), h || !H()), r = (T = h = !1, w.startCachingPerDirectoryResolution(), P.hasInvalidatedResolutions = r, P.hasChangedAutomaticTypeDirectiveNames = ee, H()); + if (I = j(b, x, P, I, g, S), w.finishCachingPerDirectoryResolution(I.getProgram(), r), me.updateMissingFilePathsWatch(I.getProgram(), p = p || new me.Map, _e), t && w.updateTypeRootsWatch(), f) { + for (var l = 0, u = f; l < u.length; l++) { + var _ = u[l]; + p.has(_) || y.delete(_) + } + f = void 0 + } + } + m = !1, d.afterProgramCreate && e !== I && d.afterProgramCreate(I), P.readFile = n, P.fileExists = i, P.directoryExists = a, P.createDirectory = o, P.writeFile = s + } + + function Q() { + return me.getNewLineCharacter(x || a, function() { + return d.getNewLine() + }) + } + + function O(e) { + return me.toPath(e, v, U) + } + + function X(e) { + return "boolean" == typeof e + } + + function Y(e, t, r, n, i) { + var a = y.get(t); + if (!X(a)) return void 0 === a || i || "boolean" == typeof a.version ? (i = K(e, r, n), a ? i ? (a.sourceFile = i, a.version = i.version, a.fileWatcher || (a.fileWatcher = ce(t, e, le, me.PollingInterval.Low, D, me.WatchType.SourceFile))) : (a.fileWatcher && a.fileWatcher.close(), y.set(t, !1)) : i ? (r = ce(t, e, le, me.PollingInterval.Low, D, me.WatchType.SourceFile), y.set(t, { + sourceFile: i, + version: i.version, + fileWatcher: r + })) : y.set(t, !1), i) : a.sourceFile + } + + function Z(e) { + var t = y.get(e); + void 0 !== t && (X(t) ? y.set(e, { + version: !1 + }) : t.version = !1) + } + + function $(e) { + d.onWatchStatusChange && d.onWatchStatusChange(me.createCompilerDiagnostic(e), k, x || a) + } + + function ee() { + return w.hasChangedAutomaticTypeDirectiveNames() + } + + function te() { + return !(!r || (d.clearTimeout(r), r = void 0)) + } + + function re() { + r = void 0, w.invalidateResolutionsOfFailedLookupLocations() && M() + } + + function M() { + d.setTimeout && d.clearTimeout && (t && d.clearTimeout(t), F("Scheduling update"), t = d.setTimeout(ne, 250)) + } + + function ne() { + m = !(t = void 0), ie() + } + + function ie() { + switch (o) { + case me.ConfigFileProgramReloadLevel.Partial: + me.perfLogger.logStartUpdateProgram("PartialConfigReload"), F("Reloading new file names and options"), o = me.ConfigFileProgramReloadLevel.None, b = me.getFileNamesFromConfigSpecs(x.configFile.configFileSpecs, me.getNormalizedAbsolutePath(me.getDirectoryPath(c), v), x, E, B), me.updateErrorForNoInputFiles(b, me.getNormalizedAbsolutePath(c, v), x.configFile.configFileSpecs, g, J) && (T = !0), G(); + break; + case me.ConfigFileProgramReloadLevel.Full: + me.perfLogger.logStartUpdateProgram("FullConfigReload"), F("Reloading config file: ".concat(c)), o = me.ConfigFileProgramReloadLevel.None, C && C.clearCache(), ae(), h = !0, G(), pe(), ge(O(c), x, D, me.WatchType.ExtendedConfigFile); + break; + default: + me.perfLogger.logStartUpdateProgram("SynchronizeProgram"), G() + } + return me.perfLogger.logStopUpdateProgram("Done"), I + } + + function ae() { + oe(me.getParsedCommandLineOfConfigFile(c, a, E, u = u || new me.Map, R, B)) + } + + function oe(e) { + b = e.fileNames, x = e.options, D = e.watchOptions, S = e.projectReferences, L = e.wildcardDirectories, g = me.getConfigFileParsingDiagnostics(e).slice(), J = me.canJsonReportNoInputFiles(e.raw), T = !0 + } + + function se(e) { + var t = O(e), + r = null == l ? void 0 : l.get(t); + if (r) { + if (!r.reloadLevel) return r.parsedCommandLine; + if (r.parsedCommandLine && r.reloadLevel === me.ConfigFileProgramReloadLevel.Partial && !d.getParsedCommandLine) return F("Reloading new file names and options"), n = me.getFileNamesFromConfigSpecs(r.parsedCommandLine.options.configFile.configFileSpecs, me.getNormalizedAbsolutePath(me.getDirectoryPath(e), v), x, E), r.parsedCommandLine = __assign(__assign({}, r.parsedCommandLine), { + fileNames: n + }), r.reloadLevel = void 0, r.parsedCommandLine + } + F("Loading config file: ".concat(e)); + var n, i, a = d.getParsedCommandLine ? d.getParsedCommandLine(e) : (n = e, a = E.onUnRecoverableConfigFileDiagnostic, E.onUnRecoverableConfigFileDiagnostic = me.noop, n = me.getParsedCommandLineOfConfigFile(n, void 0, E, u = u || new me.Map, R), E.onUnRecoverableConfigFileDiagnostic = a, n), + o = (r ? (r.parsedCommandLine = a, r.reloadLevel = void 0) : (l = l || new me.Map).set(t, r = { + parsedCommandLine: a + }), e), + s = t, + c = r; + return c.watcher || (c.watcher = N(o, function(e, t) { + ue(o, s, t); + t = null == l ? void 0 : l.get(s); + t && (t.reloadLevel = me.ConfigFileProgramReloadLevel.Full), w.removeResolutionsFromProjectReferenceRedirects(s), M() + }, me.PollingInterval.High, (null == (i = c.parsedCommandLine) ? void 0 : i.watchOptions) || D, me.WatchType.ConfigFileOfReferencedProject)), null != (i = c.parsedCommandLine) && i.wildcardDirectories ? me.updateWatchingWildcardDirectories(c.watchedDirectories || (c.watchedDirectories = new me.Map), new me.Map(me.getEntries(null == (i = c.parsedCommandLine) ? void 0 : i.wildcardDirectories)), function(n, e) { + return A(n, function(e) { + var t = O(e), + r = (C && C.addOrDeleteFileOrDirectory(e, t), Z(t), null == l ? void 0 : l.get(s)); + null != r && r.parsedCommandLine && !me.isIgnoredFileFromWildCardWatching({ + watchedDirPath: O(n), + fileOrDirectory: e, + fileOrDirectoryPath: t, + configFileName: o, + options: r.parsedCommandLine.options, + program: r.parsedCommandLine.fileNames, + currentDirectory: v, + useCaseSensitiveFileNames: _, + writeLog: F, + toPath: O + }) && r.reloadLevel !== me.ConfigFileProgramReloadLevel.Full && (r.reloadLevel = me.ConfigFileProgramReloadLevel.Partial, M()) + }, e, (null == (e = c.parsedCommandLine) ? void 0 : e.watchOptions) || D, me.WatchType.WildcardDirectoryOfReferencedProject) + }) : c.watchedDirectories && (me.clearMap(c.watchedDirectories, me.closeFileWatcherOf), c.watchedDirectories = void 0), ge(s, null == (i = c.parsedCommandLine) ? void 0 : i.options, (null == (i = c.parsedCommandLine) ? void 0 : i.watchOptions) || D, me.WatchType.ExtendedConfigOfReferencedProject), a + } + + function ce(r, e, n, t, i, a) { + return N(e, function(e, t) { + return n(e, t, r) + }, t, i, a) + } + + function le(e, t, r) { + ue(e, r, t), t === me.FileWatcherEventKind.Deleted && y.has(r) && w.invalidateResolutionOfFile(r), Z(r), M() + } + + function ue(e, t, r) { + C && C.addOrDeleteFile(e, t, r) + } + + function _e(e) { + return null != l && l.has(e) ? me.noopFileWatcher : ce(e, e, de, me.PollingInterval.Medium, D, me.WatchType.MissingFile) + } + + function de(e, t, r) { + ue(e, r, t), t === me.FileWatcherEventKind.Created && p.has(r) && (p.get(r).close(), p.delete(r), Z(r), M()) + } + + function pe() { + L ? me.updateWatchingWildcardDirectories(e = e || new me.Map, new me.Map(me.getEntries(L)), fe) : e && me.clearMap(e, me.closeFileWatcherOf) + } + + function fe(r, e) { + return A(r, function(e) { + me.Debug.assert(!!c); + var t = O(e); + C && C.addOrDeleteFileOrDirectory(e, t), Z(t), me.isIgnoredFileFromWildCardWatching({ + watchedDirPath: O(r), + fileOrDirectory: e, + fileOrDirectoryPath: t, + configFileName: c, + extraFileExtensions: B, + options: x, + program: I || b, + currentDirectory: v, + useCaseSensitiveFileNames: _, + writeLog: F, + toPath: O + }) || o !== me.ConfigFileProgramReloadLevel.Full && (o = me.ConfigFileProgramReloadLevel.Partial, M()) + }, e, D, me.WatchType.WildcardDirectory) + } + + function ge(e, t, i, a) { + me.updateSharedExtendedConfigFileWatcher(e, t, s = s || new me.Map, function(r, n) { + return N(r, function(e, t) { + ue(r, n, t), u && me.cleanExtendedConfigCache(u, n, O); + t = null == (t = s.get(n)) ? void 0 : t.projects; + null != t && t.size && t.forEach(function(e) { + var t; + O(c) === e ? o = me.ConfigFileProgramReloadLevel.Full : ((t = null == l ? void 0 : l.get(e)) && (t.reloadLevel = me.ConfigFileProgramReloadLevel.Full), w.removeResolutionsFromProjectReferenceRedirects(e)), M() + }) + }, me.PollingInterval.High, i, a) + }, O) + } + } + }(ts = ts || {}), ! function(t) { + var e; + (e = t.UpToDateStatusType || (t.UpToDateStatusType = {}))[e.Unbuildable = 0] = "Unbuildable", e[e.UpToDate = 1] = "UpToDate", e[e.UpToDateWithUpstreamTypes = 2] = "UpToDateWithUpstreamTypes", e[e.OutOfDateWithPrepend = 3] = "OutOfDateWithPrepend", e[e.OutputMissing = 4] = "OutputMissing", e[e.ErrorReadingFile = 5] = "ErrorReadingFile", e[e.OutOfDateWithSelf = 6] = "OutOfDateWithSelf", e[e.OutOfDateWithUpstream = 7] = "OutOfDateWithUpstream", e[e.OutOfDateBuildInfo = 8] = "OutOfDateBuildInfo", e[e.UpstreamOutOfDate = 9] = "UpstreamOutOfDate", e[e.UpstreamBlocked = 10] = "UpstreamBlocked", e[e.ComputingUpstream = 11] = "ComputingUpstream", e[e.TsVersionOutputOfDate = 12] = "TsVersionOutputOfDate", e[e.UpToDateWithInputFileText = 13] = "UpToDateWithInputFileText", e[e.ContainerOnly = 14] = "ContainerOnly", e[e.ForceBuild = 15] = "ForceBuild", t.resolveConfigFileProjectName = function(e) { + return t.fileExtensionIs(e, ".json") ? e : t.combinePaths(e, "tsconfig.json") + } + }(ts = ts || {}), ! function(V) { + var L, d, R, e, Z = new Date(-864e13), + $ = new Date(864e13); + + function t(e, t) { + return t = t, r = function() { + return new V.Map + }, (i = (e = e).get(t)) || (n = r(), e.set(t, n)), i || n; + var r, n, i + } + + function m(e) { + return e.now ? e.now() : new Date + } + + function f(e) { + return !!e && !!e.buildOrder + } + + function u(e) { + return f(e) ? e.buildOrder : e + } + + function i(r, n) { + return function(e) { + var t = n ? "[".concat(V.formatColorAndReset(V.getLocaleTimeString(r), V.ForegroundColorEscapeSequences.Grey), "] ") : "".concat(V.getLocaleTimeString(r), " - "); + t += "".concat(V.flattenDiagnosticMessageText(e.messageText, r.newLine)).concat(r.newLine + r.newLine), r.write(t) + } + } + + function a(r, e, t, n) { + e = V.createProgramHost(r, e); + return e.getModifiedTime = r.getModifiedTime ? function(e) { + return r.getModifiedTime(e) + } : V.returnUndefined, e.setModifiedTime = r.setModifiedTime ? function(e, t) { + return r.setModifiedTime(e, t) + } : V.noop, e.deleteFile = r.deleteFile ? function(e) { + return r.deleteFile(e) + } : V.noop, e.reportDiagnostic = t || V.createDiagnosticReporter(r), e.reportSolutionBuilderStatus = n || i(r), e.now = V.maybeBind(r, r.now), e + } + + function T(e, t, r, n, i) { + var a, o, s, c, l = t, + u = l.getCurrentDirectory(), + _ = V.createGetCanonicalFileName(l.useCaseSensitiveFileNames()), + d = (a = n, o = {}, V.commonOptionsWithBuild.forEach(function(e) { + V.hasProperty(a, e.name) && (o[e.name] = a[e.name]) + }), o), + p = V.createCompilerHostFromProgramHost(l, function() { + return v.projectCompilerOptions + }), + f = (V.setGetSourceFileAsHashVersioned(p), p.getParsedCommandLine = function(e) { + return H(v, e, W(v, e)) + }, p.resolveModuleNames = V.maybeBind(l, l.resolveModuleNames), p.resolveTypeReferenceDirectives = V.maybeBind(l, l.resolveTypeReferenceDirectives), p.getModuleResolutionCache = V.maybeBind(l, l.getModuleResolutionCache), p.resolveModuleNames ? void 0 : V.createModuleResolutionCache(u, _)), + g = p.resolveTypeReferenceDirectives ? void 0 : V.createTypeReferenceDirectiveResolutionCache(u, _, void 0, null == f ? void 0 : f.getPackageJsonInfoCache()), + m = (p.resolveModuleNames || (s = function(e, t, r, n) { + return V.resolveModuleName(e, r, v.projectCompilerOptions, p, f, n, t).resolvedModule + }, p.resolveModuleNames = function(e, t, r, n, i, a) { + return V.loadWithModeAwareCache(V.Debug.checkEachDefined(e), V.Debug.checkDefined(a), t, n, s) + }, p.getModuleResolutionCache = function() { + return f + }), p.resolveTypeReferenceDirectives || (c = function(e, t, r, n) { + return V.resolveTypeReferenceDirective(e, t, v.projectCompilerOptions, p, r, v.typeReferenceDirectiveResolutionCache, n).resolvedTypeReferenceDirective + }, p.resolveTypeReferenceDirectives = function(e, t, r, n, i) { + return V.loadWithTypeDirectiveCache(V.Debug.checkEachDefined(e), t, r, i, c) + }), p.getBuildInfo = function(e, t) { + return ae(v, e, W(v, t), void 0) + }, V.createWatchFactory(t, n)), + y = m.watchFile, + h = m.watchDirectory, + m = m.writeLog, + v = { + host: l, + hostWithWatch: t, + currentDirectory: u, + getCanonicalFileName: _, + parseConfigFileHost: V.parseConfigHostFromCompilerHostLike(l), + write: V.maybeBind(l, l.trace), + options: n, + baseCompilerOptions: d, + rootNames: r, + baseWatchOptions: i, + resolvedConfigFilePaths: new V.Map, + configFileCache: new V.Map, + projectStatus: new V.Map, + extendedConfigCache: new V.Map, + buildInfoCache: new V.Map, + outputTimeStamps: new V.Map, + builderPrograms: new V.Map, + diagnostics: new V.Map, + projectPendingBuild: new V.Map, + projectErrorsReported: new V.Map, + compilerHost: p, + moduleResolutionCache: f, + typeReferenceDirectiveResolutionCache: g, + buildOrder: void 0, + readFileWithCache: function(e) { + return l.readFile(e) + }, + projectCompilerOptions: d, + cache: void 0, + allProjectBuildPending: !0, + needsSummary: !0, + watchAllProjectsPending: e, + watch: e, + allWatchedWildcardDirectories: new V.Map, + allWatchedInputFiles: new V.Map, + allWatchedConfigFiles: new V.Map, + allWatchedExtendedConfigFiles: new V.Map, + allWatchedPackageJsonFiles: new V.Map, + filesWatched: new V.Map, + lastCachedPackageJsonLookups: new V.Map, + timerToBuildInvalidatedProject: void 0, + reportFileChangeDetected: !1, + watchFile: y, + watchDirectory: h, + writeLog: m + }; + return v + } + + function q(e, t) { + return V.toPath(t, e.currentDirectory, e.getCanonicalFileName) + } + + function W(e, t) { + var r = e.resolvedConfigFilePaths, + n = r.get(t); + return void 0 !== n || (n = q(e, t), r.set(t, n)), n + } + + function C(e) { + return e.options + } + + function H(e, t, r) { + var n, i = e.configFileCache, + a = i.get(r); + if (a) return C(a) ? a : void 0; + V.performance.mark("SolutionBuilder::beforeConfigFileParsing"); + var o, a = e.parseConfigFileHost, + s = e.baseCompilerOptions, + c = e.baseWatchOptions, + l = e.extendedConfigCache, + e = e.host; + return e.getParsedCommandLine ? (o = e.getParsedCommandLine(t)) || (n = V.createCompilerDiagnostic(V.Diagnostics.File_0_not_found, t)) : (a.onUnRecoverableConfigFileDiagnostic = function(e) { + return n = e + }, o = V.getParsedCommandLineOfConfigFile(t, s, a, l, c), a.onUnRecoverableConfigFileDiagnostic = V.noop), i.set(r, o || n), V.performance.mark("SolutionBuilder::afterConfigFileParsing"), V.performance.measure("SolutionBuilder::Config file parsing", "SolutionBuilder::beforeConfigFileParsing", "SolutionBuilder::afterConfigFileParsing"), o + } + + function B(e, t) { + return V.resolveConfigFileProjectName(V.resolvePath(e.currentDirectory, t)) + } + + function E(l, e) { + for (var u, _, d = new V.Map, p = new V.Map, f = [], t = 0, r = e; t < r.length; t++) ! function e(t, r) { + var n = W(l, t); + if (p.has(n)) return; + if (d.has(n)) return void(r || (_ = _ || []).push(V.createCompilerDiagnostic(V.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0, f.join("\r\n")))); + d.set(n, !0); + f.push(t); + var i = H(l, t, n); + if (i && i.projectReferences) + for (var a = 0, o = i.projectReferences; a < o.length; a++) { + var s = o[a], + c = B(l, s.path); + e(c, r || s.circular) + } + f.pop(); + p.set(n, !0); + (u = u || []).push(t) + }(r[t]); + return _ ? { + buildOrder: u || V.emptyArray, + circularDiagnostics: _ + } : u || V.emptyArray + } + + function o(e) { + return e.buildOrder || function(t) { + var e = E(t, t.rootNames.map(function(e) { + return B(t, e) + })), + r = (t.resolvedConfigFilePaths.clear(), new V.Map(u(e).map(function(e) { + return [W(t, e), !0] + }))), + n = { + onDeleteValue: V.noop + }; + V.mutateMapSkippingNewValues(t.configFileCache, r, n), V.mutateMapSkippingNewValues(t.projectStatus, r, n), V.mutateMapSkippingNewValues(t.builderPrograms, r, n), V.mutateMapSkippingNewValues(t.diagnostics, r, n), V.mutateMapSkippingNewValues(t.projectPendingBuild, r, n), V.mutateMapSkippingNewValues(t.projectErrorsReported, r, n), V.mutateMapSkippingNewValues(t.buildInfoCache, r, n), V.mutateMapSkippingNewValues(t.outputTimeStamps, r, n), t.watch && (V.mutateMapSkippingNewValues(t.allWatchedConfigFiles, r, { + onDeleteValue: V.closeFileWatcher + }), t.allWatchedExtendedConfigFiles.forEach(function(t) { + t.projects.forEach(function(e) { + r.has(e) || t.projects.delete(e) + }), t.close() + }), V.mutateMapSkippingNewValues(t.allWatchedWildcardDirectories, r, { + onDeleteValue: function(e) { + return e.forEach(V.closeFileWatcherOf) + } + }), V.mutateMapSkippingNewValues(t.allWatchedInputFiles, r, { + onDeleteValue: function(e) { + return e.forEach(V.closeFileWatcher) + } + }), V.mutateMapSkippingNewValues(t.allWatchedPackageJsonFiles, r, { + onDeleteValue: function(e) { + return e.forEach(V.closeFileWatcher) + } + })); + return t.buildOrder = e + }(e) + } + + function k(t, e, r) { + var e = e && B(t, e), + n = o(t); + if (f(n)) return n; + if (e) { + var i = W(t, e); + if (-1 === V.findIndex(n, function(e) { + return W(t, e) === i + })) return + } + n = e ? E(t, [e]) : n; + return V.Debug.assert(!f(n)), V.Debug.assert(!r || void 0 !== e), V.Debug.assert(!r || n[n.length - 1] === e), r ? n.slice(0, n.length - 1) : n + } + + function n(t) { + t.cache && _(t); + var r = t.compilerHost, + e = t.host, + n = t.readFileWithCache, + i = r.getSourceFile, + e = V.changeCompilerHostLikeToUseCache(e, function(e) { + return q(t, e) + }, function() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + return i.call.apply(i, __spreadArray([r], e, !1)) + }), + a = e.originalReadFile, + o = e.originalFileExists, + s = e.originalDirectoryExists, + c = e.originalCreateDirectory, + l = e.originalWriteFile, + u = e.getSourceFileWithCache, + e = e.readFileWithCache; + t.readFileWithCache = e, r.getSourceFile = u, t.cache = { + originalReadFile: a, + originalFileExists: o, + originalDirectoryExists: s, + originalCreateDirectory: c, + originalWriteFile: l, + originalReadFileWithCache: n, + originalGetSourceFile: i + } + } + + function _(e) { + var t, r, n, i, a, o; + e.cache && (t = e.cache, r = e.host, n = e.compilerHost, i = e.extendedConfigCache, a = e.moduleResolutionCache, o = e.typeReferenceDirectiveResolutionCache, r.readFile = t.originalReadFile, r.fileExists = t.originalFileExists, r.directoryExists = t.originalDirectoryExists, r.createDirectory = t.originalCreateDirectory, r.writeFile = t.originalWriteFile, n.getSourceFile = t.originalGetSourceFile, e.readFileWithCache = t.originalReadFileWithCache, i.clear(), null != a && a.clear(), null != o && o.clear(), e.cache = void 0) + } + + function K(e, t) { + e.projectStatus.delete(t), e.diagnostics.delete(t) + } + + function ee(e, t, r) { + var e = e.projectPendingBuild, + n = e.get(t); + (void 0 === n || n < r) && e.set(t, r) + } + + function N(t, e) { + t.allProjectBuildPending && (t.allProjectBuildPending = !1, t.options.watch && D(t, V.Diagnostics.Starting_compilation_in_watch_mode), n(t), u(o(t)).forEach(function(e) { + return t.projectPendingBuild.set(W(t, e), V.ConfigFileProgramReloadLevel.None) + }), e) && e.throwIfCancellationRequested() + } + + function te(e, t) { + return e.projectPendingBuild.delete(t), e.diagnostics.has(t) ? V.ExitStatus.DiagnosticsPresent_OutputsSkipped : V.ExitStatus.Success + } + + function re(n, x, D, S, T, C, E) { + var k, N, A, F = n === d.Build ? R.CreateProgram : R.EmitBundle; + return n === d.Build ? { + kind: n, + project: D, + projectPath: S, + buildOrder: E, + getCompilerOptions: function() { + return C.options + }, + getCurrentDirectory: function() { + return x.currentDirectory + }, + getBuilderProgram: function() { + return s(V.identity) + }, + getProgram: function() { + return s(function(e) { + return e.getProgramOrUndefined() + }) + }, + getSourceFile: function(t) { + return s(function(e) { + return e.getSourceFile(t) + }) + }, + getSourceFiles: function() { + return i(function(e) { + return e.getSourceFiles() + }) + }, + getOptionsDiagnostics: function(t) { + return i(function(e) { + return e.getOptionsDiagnostics(t) + }) + }, + getGlobalDiagnostics: function(t) { + return i(function(e) { + return e.getGlobalDiagnostics(t) + }) + }, + getConfigFileParsingDiagnostics: function() { + return i(function(e) { + return e.getConfigFileParsingDiagnostics() + }) + }, + getSyntacticDiagnostics: function(t, r) { + return i(function(e) { + return e.getSyntacticDiagnostics(t, r) + }) + }, + getAllDependencies: function(t) { + return i(function(e) { + return e.getAllDependencies(t) + }) + }, + getSemanticDiagnostics: function(t, r) { + return i(function(e) { + return e.getSemanticDiagnostics(t, r) + }) + }, + getSemanticDiagnosticsOfNextAffectedFile: function(t, r) { + return s(function(e) { + return e.getSemanticDiagnosticsOfNextAffectedFile && e.getSemanticDiagnosticsOfNextAffectedFile(t, r) + }) + }, + emit: function(r, n, i, a, o) { + return r || a ? s(function(e) { + var t; + return e.emit(r, n, i, a, o || (null == (t = (e = x.host).getCustomTransformers) ? void 0 : t.call(e, D))) + }) : (c(R.SemanticDiagnostics, i), F === R.EmitBuildInfo ? O(n, i) : F === R.Emit ? I(n, i, o) : void 0) + }, + done: e + } : { + kind: n, + project: D, + projectPath: S, + buildOrder: E, + getCompilerOptions: function() { + return C.options + }, + getCurrentDirectory: function() { + return x.currentDirectory + }, + emit: function(e, t) { + return F !== R.EmitBundle ? A : M(e, t) + }, + done: e + }; + + function e(e, t, r) { + return c(R.Done, e, t, r), n === d.Build ? V.performance.mark("SolutionBuilder::Projects built") : V.performance.mark("SolutionBuilder::Bundles updated"), te(x, S) + } + + function s(e) { + return c(R.CreateProgram), k && e(k) + } + + function i(e) { + return s(e) || V.emptyArray + } + + function P() { + var e, t, r, n, i; + V.Debug.assert(void 0 === k), x.options.dry ? (J(x, V.Diagnostics.A_non_dry_build_would_build_project_0, D), N = L.Success, F = R.QueueReferencingProjects) : (x.options.verbose && J(x, V.Diagnostics.Building_project_0, D), 0 === C.fileNames.length ? (U(x, S, V.getConfigFileParsingDiagnostics(C)), N = L.None, F = R.QueueReferencingProjects) : (r = x.host, e = x.compilerHost, x.projectCompilerOptions = C.options, null != (t = x.moduleResolutionCache) && t.update(C.options), null != (t = x.typeReferenceDirectiveResolutionCache) && t.update(C.options), k = r.createProgram(C.fileNames, C.options, e, (t = S, r = C, n = (e = x).options, i = x.builderPrograms, e = x.compilerHost, n.force ? void 0 : i.get(t) || V.readBuilderProgram(r.options, e)), V.getConfigFileParsingDiagnostics(C), C.projectReferences), x.watch && (x.lastCachedPackageJsonLookups.set(S, x.moduleResolutionCache && V.map(x.moduleResolutionCache.getPackageJsonInfoCache().entries(), function(e) { + var t = e[0], + e = e[1]; + return [x.host.realpath && e ? q(x, x.host.realpath(t)) : t, e] + })), x.builderPrograms.set(S, k)), F++)) + } + + function w(e, t, r) { + e.length ? (e = y(x, S, k, C, e, t, r), N = e.buildResult, F = e.step) : F++ + } + + function I(a, e, t) { + V.Debug.assertIsDefined(k), V.Debug.assert(F === R.Emit); + var r, o, s, c, l, u, _, d, p, n = k.saveEmitState(), + f = [], + t = V.emitFilesAndReportErrors(k, function(e) { + return (r = r || []).push(e) + }, void 0, void 0, function(e, t, r, n, i, a) { + return f.push({ + name: e, + text: t, + writeByteOrderMark: r, + buildInfo: null == a ? void 0 : a.buildInfo + }) + }, e, !1, t || (null == (t = (e = x.host).getCustomTransformers) ? void 0 : t.call(e, D))).emitResult; + return r ? (k.restoreEmitState(n), e = y(x, S, k, C, r, L.DeclarationEmitErrors, "Declaration file"), N = e.buildResult, F = e.step, { + emitSkipped: !0, + diagnostics: t.diagnostics + }) : (n = x.host, o = x.compilerHost, s = null != (e = k.hasChangedEmitSignature) && e.call(k) ? L.None : L.DeclarationOutputUnchanged, c = V.createDiagnosticCollection(), l = new V.Map, u = k.getCompilerOptions(), _ = V.isIncrementalCompilation(u), f.forEach(function(e) { + var t = e.name, + r = e.text, + n = e.writeByteOrderMark, + e = e.buildInfo, + i = q(x, t); + l.set(q(x, t), t), e && h(x, e, S, u, s), V.writeFile(a ? { + writeFile: a + } : o, c, t, r, n), !_ && x.watch && (d = d || G(x, S)).set(i, p = p || m(x.host)) + }), g(c, l, f.length ? f[0].name : V.getFirstProjectOutput(C, !n.useCaseSensitiveFileNames()), s), t) + } + + function O(o, e) { + V.Debug.assertIsDefined(k), V.Debug.assert(F === R.EmitBuildInfo); + e = k.emitBuildInfo(function(e, t, r, n, i, a) { + null != a && a.buildInfo && h(x, a.buildInfo, S, k.getCompilerOptions(), L.DeclarationOutputUnchanged), o ? o(e, t, r, n, i, a) : x.compilerHost.writeFile(e, t, r, n, i, a) + }, e); + return e.diagnostics.length && (z(x, e.diagnostics), x.diagnostics.set(S, __spreadArray(__spreadArray([], x.diagnostics.get(S), !0), e.diagnostics, !0)), N = L.EmitErrors & N), e.emittedFiles && x.write && e.emittedFiles.forEach(function(e) { + return ne(x, C, e) + }), l(x, k, C), F = R.QueueReferencingProjects, e + } + + function g(e, t, r, n) { + var i, e = e.getDiagnostics(); + return e.length ? (i = y(x, S, k, C, e, L.EmitErrors, "Emit"), N = i.buildResult, F = i.step) : (x.write && t.forEach(function(e) { + return ne(x, C, e) + }), oe(x, C, S, V.Diagnostics.Updating_unchanged_output_timestamps_of_project_0, t), x.diagnostics.delete(S), x.projectStatus.set(S, { + type: V.UpToDateStatusType.UpToDate, + oldestOutputFileName: r + }), l(x, k, C), F = R.QueueReferencingProjects, N = n), e + } + + function M(a, e) { + if (V.Debug.assert(n === d.UpdateBundle), !x.options.dry) { + x.options.verbose && J(x, V.Diagnostics.Updating_output_of_project_0, D); + var o = x.compilerHost, + t = (x.projectCompilerOptions = C.options, V.emitUsingBuildInfo(C, o, function(e) { + e = B(x, e.path); + return H(x, e, W(x, e)) + }, e || (null == (t = (e = x.host).getCustomTransformers) ? void 0 : t.call(e, D)))); + if (V.isString(t)) return J(x, V.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1, D, j(x, t)), F = R.BuildInvalidatedProjectOfBundle, A = re(d.Build, x, D, S, T, C, E); + V.Debug.assert(!!t.length); + var s = V.createDiagnosticCollection(), + c = new V.Map, + l = L.DeclarationOutputUnchanged, + u = x.buildInfoCache.get(S).buildInfo || void 0; + return t.forEach(function(e) { + var t, r = e.name, + n = e.text, + i = e.writeByteOrderMark, + e = e.buildInfo; + c.set(q(x, r), r), e && ((null == (t = e.program) ? void 0 : t.outSignature) !== (null == (t = null == u ? void 0 : u.program) ? void 0 : t.outSignature) && (l &= ~L.DeclarationOutputUnchanged), h(x, e, S, C.options, l)), V.writeFile(a ? { + writeFile: a + } : o, s, r, n, i) + }), { + emitSkipped: !1, + diagnostics: g(s, c, t[0].name, l) + } + } + J(x, V.Diagnostics.A_non_dry_build_would_update_output_of_project_0, D), N = L.Success, F = R.QueueReferencingProjects + } + + function c(e, t, r, n) { + for (; F <= e && F < R.Done;) { + var i = F; + switch (F) { + case R.CreateProgram: + P(); + break; + case R.SyntaxDiagnostics: + b = t, V.Debug.assertIsDefined(k), w(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], k.getConfigFileParsingDiagnostics(), !0), k.getOptionsDiagnostics(b), !0), k.getGlobalDiagnostics(b), !0), k.getSyntacticDiagnostics(void 0, b), !0), L.SyntaxErrors, "Syntactic"); + break; + case R.SemanticDiagnostics: + b = t, w(V.Debug.checkDefined(k).getSemanticDiagnostics(void 0, b), L.TypeErrors, "Semantic"); + break; + case R.Emit: + I(r, t, n); + break; + case R.EmitBuildInfo: + O(r, t); + break; + case R.EmitBundle: + M(r, n); + break; + case R.BuildInvalidatedProjectOfBundle: + V.Debug.checkDefined(A).done(t, r, n), F = R.Done; + break; + case R.QueueReferencingProjects: + v = h = y = m = g = f = p = d = _ = u = l = c = s = o = a = void 0; + var a = x, + o = D, + s = S, + c = T, + l = C, + u = E, + _ = V.Debug.checkDefined(N); + if (!(_ & L.AnyErrors) && l.options.composite) + for (var d = c + 1; d < u.length; d++) { + var p = u[d], + f = W(a, p); + if (!a.projectPendingBuild.has(f)) { + p = H(a, p, f); + if (p && p.projectReferences) + for (var g = 0, m = p.projectReferences; g < m.length; g++) { + var y = m[g], + h = B(a, y.path); + if (W(a, h) === s) { + var v = a.projectStatus.get(f); + if (v) switch (v.type) { + case V.UpToDateStatusType.UpToDate: + if (_ & L.DeclarationOutputUnchanged) { + y.prepend ? a.projectStatus.set(f, { + type: V.UpToDateStatusType.OutOfDateWithPrepend, + outOfDateOutputFileName: v.oldestOutputFileName, + newerProjectName: o + }) : v.type = V.UpToDateStatusType.UpToDateWithUpstreamTypes; + break + } + case V.UpToDateStatusType.UpToDateWithInputFileText: + case V.UpToDateStatusType.UpToDateWithUpstreamTypes: + case V.UpToDateStatusType.OutOfDateWithPrepend: + _ & L.DeclarationOutputUnchanged || a.projectStatus.set(f, { + type: V.UpToDateStatusType.OutOfDateWithUpstream, + outOfDateOutputFileName: v.type === V.UpToDateStatusType.OutOfDateWithPrepend ? v.outOfDateOutputFileName : v.oldestOutputFileName, + newerProjectName: o + }); + break; + case V.UpToDateStatusType.UpstreamBlocked: + W(a, B(a, v.upstreamProjectName)) === s && K(a, f) + } + ee(a, f, V.ConfigFileProgramReloadLevel.None); + break + } + } + } + } + F++; + break; + default: + R.Done; + V.assertType(F) + } + V.Debug.assert(i < F) + } + var b + } + } + + function A(e, t, r) { + if (e.projectPendingBuild.size && !f(t)) + for (var n, i, a = e.options, o = e.projectPendingBuild, s = 0; s < t.length; s++) { + var c = t[s], + l = W(e, c), + u = e.projectPendingBuild.get(l); + if (void 0 !== u) { + r && (r = !1, fe(e, t)); + var _ = H(e, c, l); + if (_) { + u === V.ConfigFileProgramReloadLevel.Full ? (ce(e, c, l, _), le(e, l, _), ue(e, c, l, _), b(e, c, l, _), x(e, c, l, _)) : u === V.ConfigFileProgramReloadLevel.Partial && (_.fileNames = V.getFileNamesFromConfigSpecs(_.options.configFile.configFileSpecs, V.getDirectoryPath(c), _.options, e.parseConfigFileHost), V.updateErrorForNoInputFiles(_.fileNames, c, _.options.configFile.configFileSpecs, _.errors, V.canJsonReportNoInputFiles(_.raw)), b(e, c, l, _), x(e, c, l, _)); + u = Y(e, _, l); + if (!a.force) { + if (u.type === V.UpToDateStatusType.UpToDate) { + S(e, c, u), U(e, l, V.getConfigFileParsingDiagnostics(_)), o.delete(l), a.dry && J(e, V.Diagnostics.Project_0_is_up_to_date, c); + continue + } + if (u.type === V.UpToDateStatusType.UpToDateWithUpstreamTypes || u.type === V.UpToDateStatusType.UpToDateWithInputFileText) return U(e, l, V.getConfigFileParsingDiagnostics(_)), { + kind: d.UpdateOutputFileStamps, + status: u, + project: c, + projectPath: l, + projectIndex: s, + config: _ + } + } + if (u.type === V.UpToDateStatusType.UpstreamBlocked) S(e, c, u), U(e, l, V.getConfigFileParsingDiagnostics(_)), o.delete(l), a.verbose && J(e, u.upstreamProjectBlocked ? V.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built : V.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors, c, u.upstreamProjectName); + else { + if (u.type !== V.UpToDateStatusType.ContainerOnly) return { + kind: (i = _, n = (n = e).options, u.type !== V.UpToDateStatusType.OutOfDateWithPrepend || n.force || 0 === i.fileNames.length || V.getConfigFileParsingDiagnostics(i).length || !V.isIncrementalCompilation(i.options) ? d.Build : d.UpdateBundle), + status: u, + project: c, + projectPath: l, + projectIndex: s, + config: _ + }; + S(e, c, u), U(e, l, V.getConfigFileParsingDiagnostics(_)), o.delete(l) + } + } else de(e, l), o.delete(l) + } + } + } + + function F(e, t, r) { + return S(e, t.project, t.status), t.kind !== d.UpdateOutputFileStamps ? re(t.kind, e, t.project, t.projectPath, t.projectIndex, t.config, r) : (n = e, e = t.project, i = t.projectPath, a = t.config, o = !0, { + kind: d.UpdateOutputFileStamps, + project: e, + projectPath: i, + buildOrder: r, + getCompilerOptions: function() { + return a.options + }, + getCurrentDirectory: function() { + return n.currentDirectory + }, + updateOutputFileStatmps: function() { + w(n, a, i), o = !1 + }, + done: function() { + return o && w(n, a, i), V.performance.mark("SolutionBuilder::Timestamps only updates"), te(n, i) + } + }); + var n, i, a, o + } + + function p(e, t, r) { + r = A(e, t, r); + return r && F(e, r, t) + } + + function ne(e, t, r) { + e = e.write; + e && t.options.listEmittedFiles && e("TSFILE: ".concat(r)) + } + + function l(e, t, r) { + t ? (e.write && V.listFiles(t, e.write), e.host.afterProgramEmitAndDiagnostics && e.host.afterProgramEmitAndDiagnostics(t), t.releaseProgram()) : e.host.afterEmitBundle && e.host.afterEmitBundle(r), e.projectCompilerOptions = e.baseCompilerOptions + } + + function y(e, t, r, n, i, a, o) { + var s = r && !V.outFile(r.getCompilerOptions()); + return U(e, t, i), e.projectStatus.set(t, { + type: V.UpToDateStatusType.Unbuildable, + reason: "".concat(o, " errors") + }), s ? { + buildResult: a, + step: R.EmitBuildInfo + } : (l(e, r, n), { + buildResult: a, + step: R.QueueReferencingProjects + }) + } + + function g(e) { + return !!e.watcher + } + + function ie(e, t) { + var r = q(e, t), + n = e.filesWatched.get(r); + if (e.watch && n) { + if (!g(n)) return n; + if (n.modifiedTime) return n.modifiedTime + } + t = V.getModifiedTime(e.host, t); + return e.watch && (n ? n.modifiedTime = t : e.filesWatched.set(r, t)), t + } + + function s(i, e, t, r, n, a, o) { + var s = q(i, e), + c = i.filesWatched.get(s); + return c && g(c) ? c.callbacks.push(t) : (e = i.watchFile(e, function(t, r, n) { + var e = V.Debug.checkDefined(i.filesWatched.get(s)); + V.Debug.assert(g(e)), e.modifiedTime = n, e.callbacks.forEach(function(e) { + return e(t, r, n) + }) + }, r, n, a, o), i.filesWatched.set(s, { + callbacks: [t], + watcher: e, + modifiedTime: c + })), { + close: function() { + var e = V.Debug.checkDefined(i.filesWatched.get(s)); + V.Debug.assert(g(e)), 1 === e.callbacks.length ? (i.filesWatched.delete(s), V.closeFileWatcherOf(e)) : V.unorderedRemoveItem(e.callbacks, t) + } + } + } + + function G(e, t) { + var r; + if (e.watch) return (r = e.outputTimeStamps.get(t)) || e.outputTimeStamps.set(t, r = new V.Map), r + } + + function h(e, t, r, n, i) { + var n = V.getTsBuildInfoEmitOutputFilePath(n), + a = Q(e, n, r), + o = m(e.host); + a ? (a.buildInfo = t, a.modifiedTime = o, i & L.DeclarationOutputUnchanged || (a.latestChangedDtsTime = o)) : e.buildInfoCache.set(r, { + path: q(e, n), + buildInfo: t, + modifiedTime: o, + latestChangedDtsTime: i & L.DeclarationOutputUnchanged ? void 0 : o + }) + } + + function Q(e, t, r) { + t = q(e, t), e = e.buildInfoCache.get(r); + return (null == e ? void 0 : e.path) === t ? e : void 0 + } + + function ae(e, t, r, n) { + var i = q(e, t), + a = e.buildInfoCache.get(r); + return void 0 !== a && a.path === i ? a.buildInfo || void 0 : (t = (a = e.readFileWithCache(t)) ? V.getBuildInfo(t, a) : void 0, e.buildInfoCache.set(r, { + path: i, + buildInfo: t || !1, + modifiedTime: n || V.missingFileModifiedTime + }), t) + } + + function X(e, t, r, n) { + if (r < ie(e, t)) return { + type: V.UpToDateStatusType.OutOfDateWithSelf, + outOfDateOutputFileName: n, + newerInputFileName: t + } + } + + function P(t, e, r) { + var n; + if (!e.fileNames.length && !V.canJsonReportNoInputFiles(e.raw)) return { + type: V.UpToDateStatusType.ContainerOnly + }; + var i = !!t.options.force; + if (e.projectReferences) { + t.projectStatus.set(r, { + type: V.UpToDateStatusType.ComputingUpstream + }); + for (var a = 0, o = e.projectReferences; a < o.length; a++) { + var s = o[a], + c = V.resolveProjectReferencePath(s), + l = W(t, c), + u = H(t, c, l), + _ = Y(t, u, l); + if (_.type !== V.UpToDateStatusType.ComputingUpstream && _.type !== V.UpToDateStatusType.ContainerOnly) { + if (_.type === V.UpToDateStatusType.Unbuildable || _.type === V.UpToDateStatusType.UpstreamBlocked) return { + type: V.UpToDateStatusType.UpstreamBlocked, + upstreamProjectName: s.path, + upstreamProjectBlocked: _.type === V.UpToDateStatusType.UpstreamBlocked + }; + if (_.type !== V.UpToDateStatusType.UpToDate) return { + type: V.UpToDateStatusType.UpstreamOutOfDate, + upstreamProjectName: s.path + }; + i || (n = n || []).push({ + ref: s, + refStatus: _, + resolvedRefPath: l, + resolvedConfig: u + }) + } + } + } + if (i) return { + type: V.UpToDateStatusType.ForceBuild + }; + var d, p, f = t.host, + g = V.getTsBuildInfoEmitOutputFilePath(e.options), + m = $; + if (g) { + var y, h = Q(t, g, r); + if ((y = (null == h ? void 0 : h.modifiedTime) || V.getModifiedTime(f, g)) === V.missingFileModifiedTime) return h || t.buildInfoCache.set(r, { + path: q(t, g), + buildInfo: !1, + modifiedTime: y + }), { + type: V.UpToDateStatusType.OutputMissing, + missingOutputFileName: g + }; + h = ae(t, g, r, y); + if (!h) return { + type: V.UpToDateStatusType.ErrorReadingFile, + fileName: g + }; + if ((h.bundle || h.program) && h.version !== V.version) return { + type: V.UpToDateStatusType.TsVersionOutputOfDate, + version: h.version + }; + if (h.program) { + if (null != (N = h.program.changeFileSet) && N.length || (e.options.noEmit ? V.some(h.program.semanticDiagnosticsPerFile, V.isArray) : null != (N = h.program.affectedFilesPendingEmit) && N.length)) return { + type: V.UpToDateStatusType.OutOfDateBuildInfo, + buildInfoFile: g + }; + p = h.program + } + m = y, d = g + } + for (var v = void 0, b = Z, x = !1, D = 0, S = e.fileNames; D < S.length; D++) { + var T = S[D], + C = ie(t, T); + if (C === V.missingFileModifiedTime) return { + type: V.UpToDateStatusType.Unbuildable, + reason: "".concat(T, " does not exist") + }; + if (y && y < C) { + var L, R, E = void 0, + k = void 0; + if (p && (k = void 0 !== (R = (E = (L = L || V.getBuildInfoFileVersionMap(p, g, f)).get(q(t, T))) ? t.readFileWithCache(T) : void 0) ? (f.createHash || V.generateDjb2Hash)(R) : void 0, E) && E === k && (x = !0), !E || E !== k) return { + type: V.UpToDateStatusType.OutOfDateWithSelf, + outOfDateOutputFileName: g, + newerInputFileName: T + } + } + b < C && (v = T, b = C) + } + if (!g) + for (var N = V.getAllProjectOutputs(e, !f.useCaseSensitiveFileNames()), A = G(t, r), F = 0, B = N; F < B.length; F++) { + var P = B[F], + j = q(t, P), + w = null == A ? void 0 : A.get(j); + if (w || (w = V.getModifiedTime(t.host, P), null != A && A.set(j, w)), w === V.missingFileModifiedTime) return { + type: V.UpToDateStatusType.OutputMissing, + missingOutputFileName: P + }; + if (w < b) return { + type: V.UpToDateStatusType.OutOfDateWithSelf, + outOfDateOutputFileName: P, + newerInputFileName: v + }; + w < m && (m = w, d = P) + } + var J, z = t.buildInfoCache.get(r), + I = !1, + U = !1; + if (n) + for (var O = 0, K = n; O < K.length; O++) { + var M = K[O], + s = M.ref, + _ = M.refStatus, + u = M.resolvedConfig, + l = M.resolvedRefPath, + U = U || !!s.prepend; + if (!(_.newestInputFileTime && _.newestInputFileTime <= m)) { + if (z && (M = z, t.buildInfoCache.get(l).path === M.path)) return { + type: V.UpToDateStatusType.OutOfDateWithUpstream, + outOfDateOutputFileName: g, + newerProjectName: s.path + }; + M = function(e, t, r) { + if (t.composite) return void 0 !== (t = V.Debug.checkDefined(e.buildInfoCache.get(r))).latestChangedDtsTime ? t.latestChangedDtsTime || void 0 : (r = t.buildInfo && t.buildInfo.program && t.buildInfo.program.latestChangedDtsFile ? e.host.getModifiedTime(V.getNormalizedAbsolutePath(t.buildInfo.program.latestChangedDtsFile, V.getDirectoryPath(t.path))) : void 0, t.latestChangedDtsTime = r || !1, r) + }(t, u.options, l); + if (!(M && M <= m)) return V.Debug.assert(void 0 !== d, "Should have an oldest output filename here"), { + type: V.UpToDateStatusType.OutOfDateWithUpstream, + outOfDateOutputFileName: d, + newerProjectName: s.path + }; + I = !0, J = s.path + } + } + h = X(t, e.options.configFilePath, m, d); + return h || V.forEach(e.options.configFile.extendedSourceFiles || V.emptyArray, function(e) { + return X(t, e, m, d) + }) || V.forEach(t.lastCachedPackageJsonLookups.get(r) || V.emptyArray, function(e) { + e = e[0]; + return X(t, e, m, d) + }) || (U && I ? { + type: V.UpToDateStatusType.OutOfDateWithPrepend, + outOfDateOutputFileName: d, + newerProjectName: J + } : { + type: I ? V.UpToDateStatusType.UpToDateWithUpstreamTypes : x ? V.UpToDateStatusType.UpToDateWithInputFileText : V.UpToDateStatusType.UpToDate, + newestInputFileTime: b, + newestInputFileName: v, + oldestOutputFileName: d + }) + } + + function Y(e, t, r) { + if (void 0 === t) return { + type: V.UpToDateStatusType.Unbuildable, + reason: "File deleted mid-build" + }; + var n = e.projectStatus.get(r); + if (void 0 !== n) return n; + V.performance.mark("SolutionBuilder::beforeUpToDateCheck"); + n = P(e, t, r); + return V.performance.mark("SolutionBuilder::afterUpToDateCheck"), V.performance.measure("SolutionBuilder::Up-to-date check", "SolutionBuilder::beforeUpToDateCheck", "SolutionBuilder::afterUpToDateCheck"), e.projectStatus.set(r, n), n + } + + function oe(e, t, r, n, i) { + if (!t.options.noEmit) { + var a, o = V.getTsBuildInfoEmitOutputFilePath(t.options); + if (o) null != i && i.has(q(e, o)) || (e.options.verbose && J(e, n, t.options.configFilePath), e.host.setModifiedTime(o, a = m(e.host)), Q(e, o, r).modifiedTime = a), e.outputTimeStamps.delete(r); + else { + var s = e.host, + o = V.getAllProjectOutputs(t, !s.useCaseSensitiveFileNames()), + c = G(e, r), + l = c ? new V.Set : void 0; + if (!i || o.length !== i.size) + for (var u = !!e.options.verbose, _ = 0, d = o; _ < d.length; _++) { + var p = d[_], + f = q(e, p); + null != i && i.has(f) || (u && (u = !1, J(e, n, t.options.configFilePath)), s.setModifiedTime(p, a = a || m(e.host)), c && (c.set(f, a), l.add(f))) + } + null != c && c.forEach(function(e, t) { + null != i && i.has(t) || l.has(t) || c.delete(t) + }) + } + } + } + + function w(e, t, r) { + if (e.options.dry) return J(e, V.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0, t.options.configFilePath); + oe(e, t, r, V.Diagnostics.Updating_output_timestamps_of_project_0), e.projectStatus.set(r, { + type: V.UpToDateStatusType.UpToDate, + oldestOutputFileName: V.getFirstProjectOutput(t, !e.host.useCaseSensitiveFileNames()) + }) + } + + function I(e, t, r, n, i, a) { + V.performance.mark("SolutionBuilder::beforeBuild"); + e = function(t, e, r, n, i, a) { + var o = k(t, e, a); + if (!o) return V.ExitStatus.InvalidProject_OutputsSkipped; + N(t, r); + var s = !0, + c = 0; + for (;;) { + var l = p(t, o, s); + if (!l) break; + s = !1, l.done(r, n, null == i ? void 0 : i(l.project)), t.diagnostics.has(l.projectPath) || c++ + } + return _(t), pe(t, o), + function(e, t) { + if (e.watchAllProjectsPending) { + V.performance.mark("SolutionBuilder::beforeWatcherCreation"), e.watchAllProjectsPending = !1; + for (var r = 0, n = u(t); r < n.length; r++) { + var i = n[r], + a = W(e, i), + o = H(e, i, a); + ce(e, i, a, o), le(e, a, o), o && (ue(e, i, a, o), b(e, i, a, o), x(e, i, a, o)) + } + V.performance.mark("SolutionBuilder::afterWatcherCreation"), V.performance.measure("SolutionBuilder::Watcher creation", "SolutionBuilder::beforeWatcherCreation", "SolutionBuilder::afterWatcherCreation") + } + }(t, o), f(o) ? V.ExitStatus.ProjectReferenceCycle_OutputsSkipped : o.some(function(e) { + return t.diagnostics.has(W(t, e)) + }) ? c ? V.ExitStatus.DiagnosticsPresent_OutputsGenerated : V.ExitStatus.DiagnosticsPresent_OutputsSkipped : V.ExitStatus.Success + }(e, t, r, n, i, a); + return V.performance.mark("SolutionBuilder::afterBuild"), V.performance.measure("SolutionBuilder::Build", "SolutionBuilder::beforeBuild", "SolutionBuilder::afterBuild"), e + } + + function O(e, t, r) { + V.performance.mark("SolutionBuilder::beforeClean"); + e = function(t, e, r) { + e = k(t, e, r); + if (!e) return V.ExitStatus.InvalidProject_OutputsSkipped; + if (f(e)) return z(t, e.circularDiagnostics), V.ExitStatus.ProjectReferenceCycle_OutputsSkipped; + for (var r = t.options, n = t.host, i = r.dry ? [] : void 0, a = 0, o = e; a < o.length; a++) { + var s = o[a], + c = W(t, s), + s = H(t, s, c); + if (void 0 === s) de(t, c); + else { + var l = V.getAllProjectOutputs(s, !n.useCaseSensitiveFileNames()); + if (l.length) + for (var u = new V.Set(s.fileNames.map(function(e) { + return q(t, e) + })), _ = 0, d = l; _ < d.length; _++) { + var p = d[_]; + u.has(q(t, p)) || n.fileExists(p) && (i ? i.push(p) : (n.deleteFile(p), v(t, c, V.ConfigFileProgramReloadLevel.None))) + } + } + } + i && J(t, V.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0, i.map(function(e) { + return "\r\n * ".concat(e) + }).join("")); + return V.ExitStatus.Success + }(e, t, r); + return V.performance.mark("SolutionBuilder::afterClean"), V.performance.measure("SolutionBuilder::Clean", "SolutionBuilder::beforeClean", "SolutionBuilder::afterClean"), e + } + + function v(e, t, r) { + (r = e.host.getParsedCommandLine && r === V.ConfigFileProgramReloadLevel.Partial ? V.ConfigFileProgramReloadLevel.Full : r) === V.ConfigFileProgramReloadLevel.Full && (e.configFileCache.delete(t), e.buildOrder = void 0), e.needsSummary = !0, K(e, t), ee(e, t, r), n(e) + } + + function c(e, t, r) { + e.reportFileChangeDetected = !0, v(e, t, r), M(e, 250, !0) + } + + function M(e, t, r) { + var n = e.hostWithWatch; + n.setTimeout && n.clearTimeout && (e.timerToBuildInvalidatedProject && n.clearTimeout(e.timerToBuildInvalidatedProject), e.timerToBuildInvalidatedProject = n.setTimeout(se, t, e, r)) + } + + function se(e, t) { + V.performance.mark("SolutionBuilder::beforeBuild"); + t = function(e, t) { + e.timerToBuildInvalidatedProject = void 0, e.reportFileChangeDetected && (e.reportFileChangeDetected = !1, e.projectErrorsReported.clear(), D(e, V.Diagnostics.File_change_detected_Starting_incremental_compilation)); + var r = 0, + n = o(e), + i = p(e, n, !1); + if (i) + for (i.done(), r++; e.projectPendingBuild.size;) { + if (e.timerToBuildInvalidatedProject) return; + var a = A(e, n, !1); + if (!a) break; + if (a.kind !== d.UpdateOutputFileStamps && (t || 5 === r)) return void M(e, 100, !1); + F(e, a, n).done(), a.kind !== d.UpdateOutputFileStamps && r++ + } + return _(e), n + }(e, t); + V.performance.mark("SolutionBuilder::afterBuild"), V.performance.measure("SolutionBuilder::Build", "SolutionBuilder::beforeBuild", "SolutionBuilder::afterBuild"), t && pe(e, t) + } + + function ce(e, t, r, n) { + e.watch && !e.allWatchedConfigFiles.has(r) && e.allWatchedConfigFiles.set(r, s(e, t, function() { + return c(e, r, V.ConfigFileProgramReloadLevel.Full) + }, V.PollingInterval.High, null == n ? void 0 : n.watchOptions, V.WatchType.ConfigFile, t)) + } + + function le(r, e, n) { + V.updateSharedExtendedConfigFileWatcher(e, null == n ? void 0 : n.options, r.allWatchedExtendedConfigFiles, function(e, t) { + return s(r, e, function() { + var e; + return null == (e = r.allWatchedExtendedConfigFiles.get(t)) ? void 0 : e.projects.forEach(function(e) { + return c(r, e, V.ConfigFileProgramReloadLevel.Full) + }) + }, V.PollingInterval.High, null == n ? void 0 : n.watchOptions, V.WatchType.ExtendedConfigFile) + }, function(e) { + return q(r, e) + }) + } + + function ue(r, n, i, a) { + r.watch && V.updateWatchingWildcardDirectories(t(r.allWatchedWildcardDirectories, i), new V.Map(V.getEntries(a.wildcardDirectories)), function(t, e) { + return r.watchDirectory(t, function(e) { + V.isIgnoredFileFromWildCardWatching({ + watchedDirPath: q(r, t), + fileOrDirectory: e, + fileOrDirectoryPath: q(r, e), + configFileName: n, + currentDirectory: r.currentDirectory, + options: a.options, + program: r.builderPrograms.get(i) || (null === (e = (e = (e = r).configFileCache.get(i)) && C(e) ? e : void 0) || void 0 === e ? void 0 : e.fileNames), + useCaseSensitiveFileNames: r.parseConfigFileHost.useCaseSensitiveFileNames, + writeLog: function(e) { + return r.writeLog(e) + }, + toPath: function(e) { + return q(r, e) + } + }) || c(r, i, V.ConfigFileProgramReloadLevel.Partial) + }, e, null == a ? void 0 : a.watchOptions, V.WatchType.WildcardDirectory, n) + }) + } + + function b(r, n, i, a) { + r.watch && V.mutateMap(t(r.allWatchedInputFiles, i), V.arrayToMap(a.fileNames, function(e) { + return q(r, e) + }), { + createNewValue: function(e, t) { + return s(r, t, function() { + return c(r, i, V.ConfigFileProgramReloadLevel.None) + }, V.PollingInterval.Low, null == a ? void 0 : a.watchOptions, V.WatchType.SourceFile, n) + }, + onDeleteValue: V.closeFileWatcher + }) + } + + function x(r, n, i, a) { + r.watch && r.lastCachedPackageJsonLookups && V.mutateMap(t(r.allWatchedPackageJsonFiles, i), new V.Map(r.lastCachedPackageJsonLookups.get(i)), { + createNewValue: function(e, t) { + return s(r, e, function() { + return c(r, i, V.ConfigFileProgramReloadLevel.None) + }, V.PollingInterval.High, null == a ? void 0 : a.watchOptions, V.WatchType.PackageJson, n) + }, + onDeleteValue: V.closeFileWatcher + }) + } + + function _e(e, t, r, n, i) { + var a = T(e, t, r, n, i); + return { + build: function(e, t, r, n) { + return I(a, e, t, r, n) + }, + clean: function(e) { + return O(a, e) + }, + buildReferences: function(e, t, r, n) { + return I(a, e, t, r, n, !0) + }, + cleanReferences: function(e) { + return O(a, e, !0) + }, + getNextInvalidatedProject: function(e) { + return N(a, e), p(a, o(a), !1) + }, + getBuildOrder: function() { + return o(a) + }, + getUpToDateStatusOfProject: function(e) { + var e = B(a, e), + t = W(a, e); + return Y(a, H(a, e, t), t) + }, + invalidateProject: function(e, t) { + return v(a, e, t || V.ConfigFileProgramReloadLevel.None) + }, + close: function() { + return e = a, V.clearMap(e.allWatchedConfigFiles, V.closeFileWatcher), V.clearMap(e.allWatchedExtendedConfigFiles, V.closeFileWatcherOf), V.clearMap(e.allWatchedWildcardDirectories, function(e) { + return V.clearMap(e, V.closeFileWatcherOf) + }), V.clearMap(e.allWatchedInputFiles, function(e) { + return V.clearMap(e, V.closeFileWatcher) + }), void V.clearMap(e.allWatchedPackageJsonFiles, function(e) { + return V.clearMap(e, V.closeFileWatcher) + }); + var e + } + } + } + + function j(t, e) { + return V.convertToRelativePath(e, t.currentDirectory, function(e) { + return t.getCanonicalFileName(e) + }) + } + + function J(e, t) { + for (var r = [], n = 2; n < arguments.length; n++) r[n - 2] = arguments[n]; + e.host.reportSolutionBuilderStatus(V.createCompilerDiagnostic.apply(void 0, __spreadArray([t], r, !1))) + } + + function D(e, t) { + for (var r, n, i = [], a = 2; a < arguments.length; a++) i[a - 2] = arguments[a]; + null != (n = (r = e.hostWithWatch).onWatchStatusChange) && n.call(r, V.createCompilerDiagnostic.apply(void 0, __spreadArray([t], i, !1)), e.host.getNewLine(), e.baseCompilerOptions) + } + + function z(e, t) { + var r = e.host; + t.forEach(function(e) { + return r.reportDiagnostic(e) + }) + } + + function U(e, t, r) { + z(e, r), e.projectErrorsReported.set(t, !0), r.length && e.diagnostics.set(t, r) + } + + function de(e, t) { + U(e, t, [e.configFileCache.get(t)]) + } + + function pe(t, e) { + var r, n, i, a; + t.needsSummary && (t.needsSummary = !1, r = t.watch || !!t.host.reportErrorSummary, n = t.diagnostics, i = 0, a = [], f(e) ? (fe(t, e.buildOrder), z(t, e.circularDiagnostics), r && (i += V.getErrorCountForSummary(e.circularDiagnostics)), r && (a = __spreadArray(__spreadArray([], a, !0), V.getFilesInErrorForSummary(e.circularDiagnostics), !0))) : (e.forEach(function(e) { + e = W(t, e); + t.projectErrorsReported.has(e) || z(t, n.get(e) || V.emptyArray) + }), r && n.forEach(function(e) { + return i += V.getErrorCountForSummary(e) + }), r && n.forEach(function(e) { + return __spreadArray(__spreadArray([], a, !0), V.getFilesInErrorForSummary(e), !0) + })), t.watch ? D(t, V.getWatchErrorSummaryDiagnosticMessage(i), i) : t.host.reportErrorSummary && t.host.reportErrorSummary(i, a)) + } + + function fe(t, e) { + t.options.verbose && J(t, V.Diagnostics.Projects_in_this_build_Colon_0, e.map(function(e) { + return "\r\n * " + j(t, e) + }).join("")) + } + + function S(e, t, r) { + if (e.options.verbose) { + var n = e, + i = t, + a = r; + switch (a.type) { + case V.UpToDateStatusType.OutOfDateWithSelf: + return void J(n, V.Diagnostics.Project_0_is_out_of_date_because_output_1_is_older_than_input_2, j(n, i), j(n, a.outOfDateOutputFileName), j(n, a.newerInputFileName)); + case V.UpToDateStatusType.OutOfDateWithUpstream: + return void J(n, V.Diagnostics.Project_0_is_out_of_date_because_output_1_is_older_than_input_2, j(n, i), j(n, a.outOfDateOutputFileName), j(n, a.newerProjectName)); + case V.UpToDateStatusType.OutputMissing: + return void J(n, V.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, j(n, i), j(n, a.missingOutputFileName)); + case V.UpToDateStatusType.ErrorReadingFile: + return void J(n, V.Diagnostics.Project_0_is_out_of_date_because_there_was_error_reading_file_1, j(n, i), j(n, a.fileName)); + case V.UpToDateStatusType.OutOfDateBuildInfo: + return void J(n, V.Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted, j(n, i), j(n, a.buildInfoFile)); + case V.UpToDateStatusType.UpToDate: + if (void 0 !== a.newestInputFileTime) return void J(n, V.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2, j(n, i), j(n, a.newestInputFileName || ""), j(n, a.oldestOutputFileName || "")); + break; + case V.UpToDateStatusType.OutOfDateWithPrepend: + return void J(n, V.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed, j(n, i), j(n, a.newerProjectName)); + case V.UpToDateStatusType.UpToDateWithUpstreamTypes: + return void J(n, V.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies, j(n, i)); + case V.UpToDateStatusType.UpToDateWithInputFileText: + return void J(n, V.Diagnostics.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files, j(n, i)); + case V.UpToDateStatusType.UpstreamOutOfDate: + return void J(n, V.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date, j(n, i), j(n, a.upstreamProjectName)); + case V.UpToDateStatusType.UpstreamBlocked: + return void J(n, a.upstreamProjectBlocked ? V.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built : V.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors, j(n, i), j(n, a.upstreamProjectName)); + case V.UpToDateStatusType.Unbuildable: + return void J(n, V.Diagnostics.Failed_to_parse_file_0_Colon_1, j(n, i), a.reason); + case V.UpToDateStatusType.TsVersionOutputOfDate: + return void J(n, V.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2, j(n, i), a.version, V.version); + case V.UpToDateStatusType.ForceBuild: + return void J(n, V.Diagnostics.Project_0_is_being_forcibly_rebuilt, j(n, i)); + case V.UpToDateStatusType.ContainerOnly: + case V.UpToDateStatusType.ComputingUpstream: + break; + default: + V.assertType(a) + } + } + }(e = L = L || {})[e.None = 0] = "None", e[e.Success = 1] = "Success", e[e.DeclarationOutputUnchanged = 2] = "DeclarationOutputUnchanged", e[e.ConfigFileErrors = 4] = "ConfigFileErrors", e[e.SyntaxErrors = 8] = "SyntaxErrors", e[e.TypeErrors = 16] = "TypeErrors", e[e.DeclarationEmitErrors = 32] = "DeclarationEmitErrors", e[e.EmitErrors = 64] = "EmitErrors", e[e.AnyErrors = 124] = "AnyErrors", V.getCurrentTime = m, V.isCircularBuildOrder = f, V.getBuildOrderFromAnyBuildOrder = u, V.createBuilderStatusReporter = i, V.createSolutionBuilderHost = function(e, t, r, n, i) { + return (e = a(e = void 0 === e ? V.sys : e, t, r, n)).reportErrorSummary = i, e + }, V.createSolutionBuilderWithWatchHost = function(e, t, r, n, i) { + return t = a(e = void 0 === e ? V.sys : e, t, r, n), r = V.createWatchHost(e, i), V.copyProperties(t, r), t + }, V.createSolutionBuilder = function(e, t, r) { + return _e(!1, e, t, r) + }, V.createSolutionBuilderWithWatch = function(e, t, r, n) { + return _e(!0, e, t, r, n) + }, (e = d = V.InvalidatedProjectKind || (V.InvalidatedProjectKind = {}))[e.Build = 0] = "Build", e[e.UpdateBundle = 1] = "UpdateBundle", e[e.UpdateOutputFileStamps = 2] = "UpdateOutputFileStamps", (e = R = R || {})[e.CreateProgram = 0] = "CreateProgram", e[e.SyntaxDiagnostics = 1] = "SyntaxDiagnostics", e[e.SemanticDiagnostics = 2] = "SemanticDiagnostics", e[e.Emit = 3] = "Emit", e[e.EmitBundle = 4] = "EmitBundle", e[e.EmitBuildInfo = 5] = "EmitBuildInfo", e[e.BuildInvalidatedProjectOfBundle = 6] = "BuildInvalidatedProjectOfBundle", e[e.QueueReferencingProjects = 7] = "QueueReferencingProjects", e[e.Done = 8] = "Done" + }(ts = ts || {}), ! function(t) { + var e, r; + (e = t.server || (t.server = {})).ActionSet = "action::set", e.ActionInvalidate = "action::invalidate", e.ActionPackageInstalled = "action::packageInstalled", e.EventTypesRegistry = "event::typesRegistry", e.EventBeginInstallTypes = "event::beginInstallTypes", e.EventEndInstallTypes = "event::endInstallTypes", e.EventInitializationFailed = "event::initializationFailed", (r = e.Arguments || (e.Arguments = {})).GlobalCacheLocation = "--globalTypingsCacheLocation", r.LogFile = "--logFile", r.EnableTelemetry = "--enableTelemetry", r.TypingSafeListLocation = "--typingSafeListLocation", r.TypesMapLocation = "--typesMapLocation", r.NpmLocation = "--npmLocation", r.ValidateDefaultNpmLocation = "--validateDefaultNpmLocation", e.hasArgument = function(e) { + return 0 <= t.sys.args.indexOf(e) + }, e.findArgument = function(e) { + return 0 <= (e = t.sys.args.indexOf(e)) && e < t.sys.args.length - 1 ? t.sys.args[e + 1] : void 0 + }, e.nowString = function() { + var e = new Date; + return "".concat(t.padLeft(e.getHours().toString(), 2, "0"), ":").concat(t.padLeft(e.getMinutes().toString(), 2, "0"), ":").concat(t.padLeft(e.getSeconds().toString(), 2, "0"), ".").concat(t.padLeft(e.getMilliseconds().toString(), 3, "0")) + } + }(ts = ts || {}), ! function(x) { + var t, e, a; + + function D(e, t) { + return new x.Version(x.getProperty(t, "ts".concat(x.versionMajorMinor)) || x.getProperty(t, "latest")).compareTo(e.version) <= 0 + } + + function S(e) { + return t.nodeCoreModules.has(e) ? "node" : e + } + + function r(e, t, r, n) { + var i = n ? "Scope" : "Package"; + switch (t) { + case 1: + return "'".concat(e, "':: ").concat(i, " name '").concat(r, "' cannot be empty"); + case 2: + return "'".concat(e, "':: ").concat(i, " name '").concat(r, "' should be less than ").concat(a, " characters"); + case 3: + return "'".concat(e, "':: ").concat(i, " name '").concat(r, "' cannot start with '.'"); + case 4: + return "'".concat(e, "':: ").concat(i, " name '").concat(r, "' cannot start with '_'"); + case 5: + return "'".concat(e, "':: ").concat(i, " name '").concat(r, "' contains non URI safe characters"); + case 0: + return x.Debug.fail(); + default: + throw x.Debug.assertNever(t) + } + }(t = x.JsTyping || (x.JsTyping = {})).isTypingUpToDate = D, e = ["assert", "assert/strict", "async_hooks", "buffer", "child_process", "cluster", "console", "constants", "crypto", "dgram", "diagnostics_channel", "dns", "dns/promises", "domain", "events", "fs", "fs/promises", "http", "https", "http2", "inspector", "module", "net", "os", "path", "perf_hooks", "process", "punycode", "querystring", "readline", "repl", "stream", "stream/promises", "string_decoder", "timers", "timers/promises", "tls", "trace_events", "tty", "url", "util", "util/types", "v8", "vm", "wasi", "worker_threads", "zlib"], t.prefixedNodeCoreModuleList = e.map(function(e) { + return "node:".concat(e) + }), t.nodeCoreModuleList = __spreadArray(__spreadArray([], e, !0), t.prefixedNodeCoreModuleList, !0), t.nodeCoreModules = new x.Set(t.nodeCoreModuleList), t.nonRelativeModuleNameForTypingCache = S, t.loadSafeList = function(t, e) { + return e = x.readConfigFile(e, function(e) { + return t.readFile(e) + }), new x.Map(x.getEntries(e.config)) + }, t.loadTypesMap = function(t, e) { + if ((e = x.readConfigFile(e, function(e) { + return t.readFile(e) + })).config) return new x.Map(x.getEntries(e.config.simpleMap)) + }, t.discoverTypings = function(p, f, e, t, r, n, i, a, o, s) { + if (!i || !i.enable) return { + cachedTypingPaths: [], + newTypingNames: [], + filesToWatch: [] + }; + var g = new x.Map, + c = (e = x.mapDefined(e, function(e) { + e = x.normalizePath(e); + if (x.hasJSFileExtension(e)) return e + }), []), + l = (i.include && v(i.include, "Explicitly included types"), i.exclude || []); + s.types || ((s = new x.Set(e.map(x.getDirectoryPath))).add(t), s.forEach(function(e) { + b(e, "bower.json", "bower_components", c), b(e, "package.json", "node_modules", c) + })), i.disableFilenameBasedTypeAcquisition || (t = e, (s = x.mapDefined(t, function(e) { + if (x.hasJSFileExtension(e)) return e = x.removeFileExtension(x.getBaseFileName(e.toLowerCase())), e = x.removeMinAndVersionNumbers(e), r.get(e) + })).length && v(s, "Inferred typings from file names"), x.some(t, function(e) { + return x.fileExtensionIs(e, ".jsx") + }) && (f && f("Inferred 'react' typings due to presence of '.jsx' extension"), h("react"))), a && v(x.deduplicate(a.map(S), x.equateStringsCaseSensitive, x.compareStringsCaseSensitive), "Inferred typings from unresolved imports"), n.forEach(function(e, t) { + var r = o.get(t); + g.has(t) && void 0 === g.get(t) && void 0 !== r && D(e, r) && g.set(t, e.typingLocation) + }); + for (var u = 0, _ = l; u < _.length; u++) { + var d = _[u]; + g.delete(d) && f && f("Typing for ".concat(d, " is in exclude list, will be ignored.")) + } + var m = [], + y = [], + i = (g.forEach(function(e, t) { + void 0 !== e ? y.push(e) : m.push(t) + }), { + cachedTypingPaths: y, + newTypingNames: m, + filesToWatch: c + }); + return f && f("Result: ".concat(JSON.stringify(i))), i; + + function h(e) { + g.has(e) || g.set(e, void 0) + } + + function v(e, t) { + f && f("".concat(t, ": ").concat(JSON.stringify(e))), x.forEach(e, h) + } + + function b(e, r, n, t) { + var i, a = x.combinePaths(e, r), + o = (p.fileExists(a) && (t.push(a), i = x.readConfigFile(a, function(e) { + return p.readFile(e) + }).config, v(i = x.flatMap([i.dependencies, i.devDependencies, i.optionalDependencies, i.peerDependencies], x.getOwnKeys), "Typing names in '".concat(a, "' dependencies"))), x.combinePaths(e, n)); + if (t.push(o), p.directoryExists(o)) { + var s = [], + a = i ? i.map(function(e) { + return x.combinePaths(o, e, r) + }) : p.readDirectory(o, [".json"], void 0, void 0, 3).filter(function(e) { + var t; + return x.getBaseFileName(e) === r && ((t = "@" === (e = x.getPathComponents(x.normalizePath(e)))[e.length - 3][0]) && e[e.length - 4].toLowerCase() === n || !t && e[e.length - 3].toLowerCase() === n) + }); + f && f("Searching for typing names in ".concat(o, "; all files: ").concat(JSON.stringify(a))); + for (var c = 0, l = a; c < l.length; c++) { + var u, _ = l[c], + _ = x.normalizePath(_), + d = x.readConfigFile(_, function(e) { + return p.readFile(e) + }).config; + d.name && ((u = d.types || d.typings) ? (u = x.getNormalizedAbsolutePath(u, x.getDirectoryPath(_)), p.fileExists(u) ? (f && f(" Package '".concat(d.name, "' provides its own types.")), g.set(d.name, u)) : f && f(" Package '".concat(d.name, "' provides its own types but they are missing."))) : s.push(d.name)) + } + v(s, " Found package names") + } + } + }, (e = t.NameValidationResult || (t.NameValidationResult = {}))[e.Ok = 0] = "Ok", e[e.EmptyName = 1] = "EmptyName", e[e.NameTooLong = 2] = "NameTooLong", e[e.NameStartsWithDot = 3] = "NameStartsWithDot", e[e.NameStartsWithUnderscore = 4] = "NameStartsWithUnderscore", e[e.NameContainsNonURISafeCharacters = 5] = "NameContainsNonURISafeCharacters", a = 214, t.validatePackageName = function(e) { + return function e(t, r) { + if (!t) return 1; + if (t.length > a) return 2; + if (46 === t.charCodeAt(0)) return 3; + if (95 === t.charCodeAt(0)) return 4; + if (r) { + var n, r = /^@([^/]+)\/([^/]+)$/.exec(t); + if (r) return 0 !== (n = e(r[1], !1)) ? { + name: r[1], + isScopeName: !0, + result: n + } : 0 !== (n = e(r[2], !1)) ? { + name: r[2], + isScopeName: !1, + result: n + } : 0 + } + if (encodeURIComponent(t) !== t) return 5; + return 0 + }(e, !0) + }, t.renderPackageNameValidationFailure = function(e, t) { + return "object" == typeof e ? r(t, e.result, e.name, e.isScopeName) : r(t, e, t, !1) + } + }(ts = ts || {}), ! function(e) { + var t, r, n, i; + + function a(e) { + this.text = e + } + + function o(e) { + return { + indentSize: 4, + tabSize: 4, + newLineCharacter: e || "\n", + convertTabsToSpaces: !0, + indentStyle: r.Smart, + insertSpaceAfterConstructor: !1, + insertSpaceAfterCommaDelimiter: !0, + insertSpaceAfterSemicolonInForStatements: !0, + insertSpaceBeforeAndAfterBinaryOperators: !0, + insertSpaceAfterKeywordsInControlFlowStatements: !0, + insertSpaceAfterFunctionKeywordForAnonymousFunctions: !1, + insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: !1, + insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: !1, + insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces: !0, + insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: !1, + insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces: !1, + insertSpaceBeforeFunctionParenthesis: !1, + placeOpenBraceOnNewLineForFunctions: !1, + placeOpenBraceOnNewLineForControlBlocks: !1, + semicolons: n.Ignore, + trimTrailingWhitespace: !0 + } + } + i = e.ScriptSnapshot || (e.ScriptSnapshot = {}), a.prototype.getText = function(e, t) { + return 0 === e && t === this.text.length ? this.text : this.text.substring(e, t) + }, a.prototype.getLength = function() { + return this.text.length + }, a.prototype.getChangeRange = function() {}, t = a, i.fromString = function(e) { + return new t(e) + }, (i = e.PackageJsonDependencyGroup || (e.PackageJsonDependencyGroup = {}))[i.Dependencies = 1] = "Dependencies", i[i.DevDependencies = 2] = "DevDependencies", i[i.PeerDependencies = 4] = "PeerDependencies", i[i.OptionalDependencies = 8] = "OptionalDependencies", i[i.All = 15] = "All", (i = e.PackageJsonAutoImportPreference || (e.PackageJsonAutoImportPreference = {}))[i.Off = 0] = "Off", i[i.On = 1] = "On", i[i.Auto = 2] = "Auto", (i = e.LanguageServiceMode || (e.LanguageServiceMode = {}))[i.Semantic = 0] = "Semantic", i[i.PartialSemantic = 1] = "PartialSemantic", i[i.Syntactic = 2] = "Syntactic", e.emptyOptions = {}, (i = e.SemanticClassificationFormat || (e.SemanticClassificationFormat = {})).Original = "original", i.TwentyTwenty = "2020", (i = e.OrganizeImportsMode || (e.OrganizeImportsMode = {})).All = "All", i.SortAndCombine = "SortAndCombine", i.RemoveUnused = "RemoveUnused", (i = e.CompletionTriggerKind || (e.CompletionTriggerKind = {}))[i.Invoked = 1] = "Invoked", i[i.TriggerCharacter = 2] = "TriggerCharacter", i[i.TriggerForIncompleteCompletions = 3] = "TriggerForIncompleteCompletions", (i = e.InlayHintKind || (e.InlayHintKind = {})).Type = "Type", i.Parameter = "Parameter", i.Enum = "Enum", (i = e.HighlightSpanKind || (e.HighlightSpanKind = {})).none = "none", i.definition = "definition", i.reference = "reference", i.writtenReference = "writtenReference", (i = r = e.IndentStyle || (e.IndentStyle = {}))[i.None = 0] = "None", i[i.Block = 1] = "Block", i[i.Smart = 2] = "Smart", (i = n = e.SemicolonPreference || (e.SemicolonPreference = {})).Ignore = "ignore", i.Insert = "insert", i.Remove = "remove", e.getDefaultFormatCodeSettings = o, e.testFormatSettings = o("\n"), (i = e.SymbolDisplayPartKind || (e.SymbolDisplayPartKind = {}))[i.aliasName = 0] = "aliasName", i[i.className = 1] = "className", i[i.enumName = 2] = "enumName", i[i.fieldName = 3] = "fieldName", i[i.interfaceName = 4] = "interfaceName", i[i.keyword = 5] = "keyword", i[i.lineBreak = 6] = "lineBreak", i[i.numericLiteral = 7] = "numericLiteral", i[i.stringLiteral = 8] = "stringLiteral", i[i.localName = 9] = "localName", i[i.methodName = 10] = "methodName", i[i.moduleName = 11] = "moduleName", i[i.operator = 12] = "operator", i[i.parameterName = 13] = "parameterName", i[i.propertyName = 14] = "propertyName", i[i.punctuation = 15] = "punctuation", i[i.space = 16] = "space", i[i.text = 17] = "text", i[i.typeParameterName = 18] = "typeParameterName", i[i.enumMemberName = 19] = "enumMemberName", i[i.functionName = 20] = "functionName", i[i.regularExpressionLiteral = 21] = "regularExpressionLiteral", i[i.link = 22] = "link", i[i.linkName = 23] = "linkName", i[i.linkText = 24] = "linkText", (i = e.CompletionInfoFlags || (e.CompletionInfoFlags = {}))[i.None = 0] = "None", i[i.MayIncludeAutoImports = 1] = "MayIncludeAutoImports", i[i.IsImportStatementCompletion = 2] = "IsImportStatementCompletion", i[i.IsContinuation = 4] = "IsContinuation", i[i.ResolvedModuleSpecifiers = 8] = "ResolvedModuleSpecifiers", i[i.ResolvedModuleSpecifiersBeyondLimit = 16] = "ResolvedModuleSpecifiersBeyondLimit", i[i.MayIncludeMethodSnippets = 32] = "MayIncludeMethodSnippets", (i = e.OutliningSpanKind || (e.OutliningSpanKind = {})).Comment = "comment", i.Region = "region", i.Code = "code", i.Imports = "imports", (i = e.OutputFileType || (e.OutputFileType = {}))[i.JavaScript = 0] = "JavaScript", i[i.SourceMap = 1] = "SourceMap", i[i.Declaration = 2] = "Declaration", (i = e.EndOfLineState || (e.EndOfLineState = {}))[i.None = 0] = "None", i[i.InMultiLineCommentTrivia = 1] = "InMultiLineCommentTrivia", i[i.InSingleQuoteStringLiteral = 2] = "InSingleQuoteStringLiteral", i[i.InDoubleQuoteStringLiteral = 3] = "InDoubleQuoteStringLiteral", i[i.InTemplateHeadOrNoSubstitutionTemplate = 4] = "InTemplateHeadOrNoSubstitutionTemplate", i[i.InTemplateMiddleOrTail = 5] = "InTemplateMiddleOrTail", i[i.InTemplateSubstitutionPosition = 6] = "InTemplateSubstitutionPosition", (i = e.TokenClass || (e.TokenClass = {}))[i.Punctuation = 0] = "Punctuation", i[i.Keyword = 1] = "Keyword", i[i.Operator = 2] = "Operator", i[i.Comment = 3] = "Comment", i[i.Whitespace = 4] = "Whitespace", i[i.Identifier = 5] = "Identifier", i[i.NumberLiteral = 6] = "NumberLiteral", i[i.BigIntLiteral = 7] = "BigIntLiteral", i[i.StringLiteral = 8] = "StringLiteral", i[i.RegExpLiteral = 9] = "RegExpLiteral", (i = e.ScriptElementKind || (e.ScriptElementKind = {})).unknown = "", i.warning = "warning", i.keyword = "keyword", i.scriptElement = "script", i.moduleElement = "module", i.classElement = "class", i.localClassElement = "local class", i.interfaceElement = "interface", i.typeElement = "type", i.enumElement = "enum", i.enumMemberElement = "enum member", i.variableElement = "var", i.localVariableElement = "local var", i.functionElement = "function", i.localFunctionElement = "local function", i.memberFunctionElement = "method", i.memberGetAccessorElement = "getter", i.memberSetAccessorElement = "setter", i.memberVariableElement = "property", i.memberAccessorVariableElement = "accessor", i.constructorImplementationElement = "constructor", i.callSignatureElement = "call", i.indexSignatureElement = "index", i.constructSignatureElement = "construct", i.parameterElement = "parameter", i.typeParameterElement = "type parameter", i.primitiveType = "primitive type", i.label = "label", i.alias = "alias", i.constElement = "const", i.letElement = "let", i.directory = "directory", i.externalModuleName = "external module name", i.jsxAttribute = "JSX attribute", i.string = "string", i.link = "link", i.linkName = "link name", i.linkText = "link text", (i = e.ScriptElementKindModifier || (e.ScriptElementKindModifier = {})).none = "", i.publicMemberModifier = "public", i.privateMemberModifier = "private", i.protectedMemberModifier = "protected", i.exportedModifier = "export", i.ambientModifier = "declare", i.staticModifier = "static", i.abstractModifier = "abstract", i.optionalModifier = "optional", i.deprecatedModifier = "deprecated", i.dtsModifier = ".d.ts", i.tsModifier = ".ts", i.tsxModifier = ".tsx", i.jsModifier = ".js", i.jsxModifier = ".jsx", i.jsonModifier = ".json", i.dmtsModifier = ".d.mts", i.mtsModifier = ".mts", i.mjsModifier = ".mjs", i.dctsModifier = ".d.cts", i.ctsModifier = ".cts", i.cjsModifier = ".cjs", (i = e.ClassificationTypeNames || (e.ClassificationTypeNames = {})).comment = "comment", i.identifier = "identifier", i.keyword = "keyword", i.numericLiteral = "number", i.bigintLiteral = "bigint", i.operator = "operator", i.stringLiteral = "string", i.whiteSpace = "whitespace", i.text = "text", i.punctuation = "punctuation", i.className = "class name", i.enumName = "enum name", i.interfaceName = "interface name", i.moduleName = "module name", i.typeParameterName = "type parameter name", i.typeAliasName = "type alias name", i.parameterName = "parameter name", i.docCommentTagName = "doc comment tag name", i.jsxOpenTagName = "jsx open tag name", i.jsxCloseTagName = "jsx close tag name", i.jsxSelfClosingTagName = "jsx self closing tag name", i.jsxAttribute = "jsx attribute", i.jsxText = "jsx text", i.jsxAttributeStringLiteralValue = "jsx attribute string literal value", (i = e.ClassificationType || (e.ClassificationType = {}))[i.comment = 1] = "comment", i[i.identifier = 2] = "identifier", i[i.keyword = 3] = "keyword", i[i.numericLiteral = 4] = "numericLiteral", i[i.operator = 5] = "operator", i[i.stringLiteral = 6] = "stringLiteral", i[i.regularExpressionLiteral = 7] = "regularExpressionLiteral", i[i.whiteSpace = 8] = "whiteSpace", i[i.text = 9] = "text", i[i.punctuation = 10] = "punctuation", i[i.className = 11] = "className", i[i.enumName = 12] = "enumName", i[i.interfaceName = 13] = "interfaceName", i[i.moduleName = 14] = "moduleName", i[i.typeParameterName = 15] = "typeParameterName", i[i.typeAliasName = 16] = "typeAliasName", i[i.parameterName = 17] = "parameterName", i[i.docCommentTagName = 18] = "docCommentTagName", i[i.jsxOpenTagName = 19] = "jsxOpenTagName", i[i.jsxCloseTagName = 20] = "jsxCloseTagName", i[i.jsxSelfClosingTagName = 21] = "jsxSelfClosingTagName", i[i.jsxAttribute = 22] = "jsxAttribute", i[i.jsxText = 23] = "jsxText", i[i.jsxAttributeStringLiteralValue = 24] = "jsxAttributeStringLiteralValue", i[i.bigintLiteral = 25] = "bigintLiteral" + }(ts = ts || {}), ! function(g) { + function L(e) { + switch (e.kind) { + case 257: + return g.isInJSFile(e) && g.getJSDocEnumTag(e) ? 7 : 1; + case 166: + case 205: + case 169: + case 168: + case 299: + case 300: + case 171: + case 170: + case 173: + case 174: + case 175: + case 259: + case 215: + case 216: + case 295: + case 288: + return 1; + case 165: + case 261: + case 262: + case 184: + return 2; + case 348: + return void 0 === e.name ? 3 : 2; + case 302: + case 260: + return 3; + case 264: + return g.isAmbientModule(e) || 1 === g.getModuleInstanceState(e) ? 5 : 4; + case 263: + case 272: + case 273: + case 268: + case 269: + case 274: + case 275: + return 7; + case 308: + return 5 + } + return 7 + } + + function R(e) { + for (; 163 === e.parent.kind;) e = e.parent; + return g.isInternalModuleImportEqualsDeclaration(e.parent) && e.parent.moduleReference === e + } + + function n(e) { + return e.expression + } + + function B(e) { + return e.tag + } + + function j(e) { + return e.tagName + } + + function i(e, t, r, n, i) { + n = (n ? z : J)(e); + return !!(n = i ? g.skipOuterExpressions(n) : n) && !!n.parent && t(n.parent) && r(n.parent) === n + } + + function J(e) { + return t(e) ? e.parent : e + } + + function z(e) { + return t(e) || V(e) ? e.parent : e + } + + function U(e) { + var t; + return g.isIdentifier(e) && (null == (t = g.tryCast(e.parent, g.isBreakOrContinueStatement)) ? void 0 : t.label) === e + } + + function K(e) { + var t; + return g.isIdentifier(e) && (null == (t = g.tryCast(e.parent, g.isLabeledStatement)) ? void 0 : t.label) === e + } + + function t(e) { + var t; + return (null == (t = g.tryCast(e.parent, g.isPropertyAccessExpression)) ? void 0 : t.name) === e + } + + function V(e) { + var t; + return (null == (t = g.tryCast(e.parent, g.isElementAccessExpression)) ? void 0 : t.argumentExpression) === e + } + g.scanner = g.createScanner(99, !0), (e = g.SemanticMeaning || (g.SemanticMeaning = {}))[e.None = 0] = "None", e[e.Value = 1] = "Value", e[e.Type = 2] = "Type", e[e.Namespace = 4] = "Namespace", e[e.All = 7] = "All", g.getMeaningFromDeclaration = L, g.getMeaningFromLocation = function(e) { + var t, r = (e = ne(e)).parent; + return 308 === e.kind ? 1 : g.isExportAssignment(r) || g.isExportSpecifier(r) || g.isExternalModuleReference(r) || g.isImportSpecifier(r) || g.isImportClause(r) || g.isImportEqualsDeclaration(r) && e === r.name ? 7 : R(e) ? (t = 163 === (t = e).kind ? t : g.isQualifiedName(t.parent) && t.parent.right === t ? t.parent : void 0) && 268 === t.parent.kind ? 7 : 4 : g.isDeclarationName(e) ? L(r) : g.isEntityName(e) && g.findAncestor(e, g.or(g.isJSDocNameReference, g.isJSDocLinkLike, g.isJSDocMemberName)) ? 7 : function(e) { + g.isRightSideOfQualifiedNameOrPropertyAccess(e) && (e = e.parent); + switch (e.kind) { + case 108: + return !g.isExpressionNode(e); + case 194: + return 1 + } + switch (e.parent.kind) { + case 180: + return 1; + case 202: + return !e.parent.isTypeOf; + case 230: + return g.isPartOfTypeNode(e.parent) + } + return + }(e) ? 2 : function(e) { + var t = e, + r = !0; + if (163 === t.parent.kind) { + for (; t.parent && 163 === t.parent.kind;) t = t.parent; + r = t.right === e + } + return 180 === t.parent.kind && !r + }(t = e) || function(e) { + var t = e, + r = !0; + if (208 === t.parent.kind) { + for (; t.parent && 208 === t.parent.kind;) t = t.parent; + r = t.name === e + } + return !r && 230 === t.parent.kind && 294 === t.parent.parent.kind && (260 === (e = t.parent.parent.parent).kind && 117 === t.parent.parent.token || 261 === e.kind && 94 === t.parent.parent.token) + }(t) ? 4 : g.isTypeParameterDeclaration(r) ? (g.Debug.assert(g.isJSDocTemplateTag(r.parent)), 2) : g.isLiteralTypeNode(r) ? 3 : 1 + }, g.isInRightSideOfInternalImportEqualsDeclaration = R, g.isCallExpressionTarget = function(e, t, r) { + return i(e, g.isCallExpression, n, t = void 0 === t ? !1 : t, r = void 0 === r ? !1 : r) + }, g.isNewExpressionTarget = function(e, t, r) { + return i(e, g.isNewExpression, n, t = void 0 === t ? !1 : t, r = void 0 === r ? !1 : r) + }, g.isCallOrNewExpressionTarget = function(e, t, r) { + return i(e, g.isCallOrNewExpression, n, t = void 0 === t ? !1 : t, r = void 0 === r ? !1 : r) + }, g.isTaggedTemplateTag = function(e, t, r) { + return i(e, g.isTaggedTemplateExpression, B, t = void 0 === t ? !1 : t, r = void 0 === r ? !1 : r) + }, g.isDecoratorTarget = function(e, t, r) { + return i(e, g.isDecorator, n, t = void 0 === t ? !1 : t, r = void 0 === r ? !1 : r) + }, g.isJsxOpeningLikeElementTagName = function(e, t, r) { + return i(e, g.isJsxOpeningLikeElement, j, t = void 0 === t ? !1 : t, r = void 0 === r ? !1 : r) + }, g.climbPastPropertyAccess = J, g.climbPastPropertyOrElementAccess = z, g.getTargetLabel = function(e, t) { + for (; e;) { + if (253 === e.kind && e.label.escapedText === t) return e.label; + e = e.parent + } + }, g.hasPropertyAccessExpressionWithName = function(e, t) { + return !!g.isPropertyAccessExpression(e.expression) && e.expression.name.text === t + }, g.isJumpStatementTarget = U, g.isLabelOfLabeledStatement = K, g.isLabelName = function(e) { + return K(e) || U(e) + }, g.isTagName = function(e) { + var t; + return (null == (t = g.tryCast(e.parent, g.isJSDocTag)) ? void 0 : t.tagName) === e + }, g.isRightSideOfQualifiedName = function(e) { + var t; + return (null == (t = g.tryCast(e.parent, g.isQualifiedName)) ? void 0 : t.right) === e + }, g.isRightSideOfPropertyAccess = t, g.isArgumentExpressionOfElementAccess = V, g.isNameOfModuleDeclaration = function(e) { + var t; + return (null == (t = g.tryCast(e.parent, g.isModuleDeclaration)) ? void 0 : t.name) === e + }, g.isNameOfFunctionDeclaration = function(e) { + var t; + return g.isIdentifier(e) && (null == (t = g.tryCast(e.parent, g.isFunctionLike)) ? void 0 : t.name) === e + }, g.isLiteralNameOfPropertyDeclarationOrIndexAccess = function(e) { + switch (e.parent.kind) { + case 169: + case 168: + case 299: + case 302: + case 171: + case 170: + case 174: + case 175: + case 264: + return g.getNameOfDeclaration(e.parent) === e; + case 209: + return e.parent.argumentExpression === e; + case 164: + return !0; + case 198: + return 196 === e.parent.parent.kind; + default: + return !1 + } + }, g.isExpressionOfExternalModuleImportEqualsDeclaration = function(e) { + return g.isExternalModuleImportEqualsDeclaration(e.parent.parent) && g.getExternalModuleImportEqualsDeclarationExpression(e.parent.parent) === e + }, g.getContainerNode = function(e) { + for (g.isJSDocTypeAlias(e) && (e = e.parent.parent);;) { + if (!(e = e.parent)) return; + switch (e.kind) { + case 308: + case 171: + case 170: + case 259: + case 215: + case 174: + case 175: + case 260: + case 261: + case 263: + case 264: + return e + } + } + }, g.getNodeKind = function e(t) { + switch (t.kind) { + case 308: + return g.isExternalModule(t) ? "module" : "script"; + case 264: + return "module"; + case 260: + case 228: + return "class"; + case 261: + return "interface"; + case 262: + case 341: + case 348: + return "type"; + case 263: + return "enum"; + case 257: + return o(t); + case 205: + return o(g.getRootDeclaration(t)); + case 216: + case 259: + case 215: + return "function"; + case 174: + return "getter"; + case 175: + return "setter"; + case 171: + case 170: + return "method"; + case 299: + var r = t.initializer; + return g.isFunctionLike(r) ? "method" : "property"; + case 169: + case 168: + case 300: + case 301: + return "property"; + case 178: + return "index"; + case 177: + return "construct"; + case 176: + return "call"; + case 173: + case 172: + return "constructor"; + case 165: + return "type parameter"; + case 302: + return "enum member"; + case 166: + return g.hasSyntacticModifier(t, 16476) ? "property" : "parameter"; + case 268: + case 273: + case 278: + case 271: + case 277: + return "alias"; + case 223: + var n = g.getAssignmentDeclarationKind(t), + i = t.right; + switch (n) { + case 7: + case 8: + case 9: + case 0: + return ""; + case 1: + case 2: + var a = e(i); + return "" === a ? "const" : a; + case 3: + return g.isFunctionExpression(i) ? "method" : "property"; + case 4: + return "property"; + case 5: + return g.isFunctionExpression(i) ? "method" : "property"; + case 6: + return "local class"; + default: + return g.assertType(n), "" + } + case 79: + return g.isImportClause(t.parent) ? "alias" : ""; + case 274: + return "" === (r = e(t.expression)) ? "const" : r; + default: + return "" + } + + function o(e) { + return g.isVarConst(e) ? "const" : g.isLet(e) ? "let" : "var" + } + }, g.isThis = function(e) { + switch (e.kind) { + case 108: + return !0; + case 79: + return g.identifierIsThisKeyword(e) && 166 === e.parent.kind; + default: + return !1 + } + }; + var e, q = /^\/\/\/\s*= r.end + } + + function a(e, t, r, n) { + return Math.max(e, r) < Math.min(t, n) + } + + function o(e, t, r) { + e = e.getChildren(r); + if (e.length) { + r = g.last(e); + if (r.kind === t) return !0; + if (26 === r.kind && 1 !== e.length) return e[e.length - 2].kind === t + } + return !1 + } + + function s(e, t, r) { + return !!G(e, t, r) + } + + function G(e, t, r) { + return g.find(e.getChildren(r), function(e) { + return e.kind === t + }) + } + + function Q(t) { + var e = g.find(t.parent.getChildren(), function(e) { + return g.isSyntaxList(e) && W(e, t) + }); + return g.Debug.assert(!e || g.contains(e.getChildren(), t)), e + } + + function X(e) { + return 88 === e.kind + } + + function Y(e) { + return 84 === e.kind + } + + function Z(e) { + return 98 === e.kind + } + + function $(e, t) { + if (!t) switch (e.kind) { + case 260: + case 228: + var r = e; + if (g.isNamedDeclaration(r)) return r.name; + if (g.isClassDeclaration(r)) { + var n = r.modifiers && g.find(r.modifiers, X); + if (n) return n + } + if (g.isClassExpression(r)) { + n = g.find(r.getChildren(), Y); + if (n) return n + } + return; + case 259: + case 215: + r = e; + if (g.isNamedDeclaration(r)) return r.name; + if (g.isFunctionDeclaration(r)) { + var i = g.find(r.modifiers, X); + if (i) return i + } + if (g.isFunctionExpression(r)) { + i = g.find(r.getChildren(), Z); + if (i) return i + } + return; + case 173: + return e + } + if (g.isNamedDeclaration(e)) return e.name + } + + function ee(e, t) { + if (e.importClause) { + if (e.importClause.name && e.importClause.namedBindings) return; + if (e.importClause.name) return e.importClause.name; + if (e.importClause.namedBindings) { + var r; + if (g.isNamedImports(e.importClause.namedBindings)) return (r = g.singleOrUndefined(e.importClause.namedBindings.elements)) ? r.name : void 0; + if (g.isNamespaceImport(e.importClause.namedBindings)) return e.importClause.namedBindings.name + } + } + if (!t) return e.moduleSpecifier + } + + function te(e, t) { + if (e.exportClause) { + if (g.isNamedExports(e.exportClause)) return g.singleOrUndefined(e.exportClause.elements) ? e.exportClause.elements[0].name : void 0; + if (g.isNamespaceExport(e.exportClause)) return e.exportClause.name + } + if (!t) return e.moduleSpecifier + } + + function re(e, t) { + var r, n = e.parent; + if ((g.isModifier(e) && (t || 88 !== e.kind) ? g.canHaveModifiers(n) && g.contains(n.modifiers, e) : 84 === e.kind ? g.isClassDeclaration(n) || g.isClassExpression(e) : 98 === e.kind ? g.isFunctionDeclaration(n) || g.isFunctionExpression(e) : 118 === e.kind ? g.isInterfaceDeclaration(n) : 92 === e.kind ? g.isEnumDeclaration(n) : 154 === e.kind ? g.isTypeAliasDeclaration(n) : 143 === e.kind || 142 === e.kind ? g.isModuleDeclaration(n) : 100 === e.kind ? g.isImportEqualsDeclaration(n) : 137 === e.kind ? g.isGetAccessorDeclaration(n) : 151 === e.kind && g.isSetAccessorDeclaration(n)) && (r = $(n, t))) return r; + if ((113 === e.kind || 85 === e.kind || 119 === e.kind) && g.isVariableDeclarationList(n) && 1 === n.declarations.length) { + var i = n.declarations[0]; + if (g.isIdentifier(i.name)) return i.name + } + if (154 === e.kind) { + if (g.isImportClause(n) && n.isTypeOnly) + if (r = ee(n.parent, t)) return r; + if (g.isExportDeclaration(n) && n.isTypeOnly) + if (r = te(n, t)) return r + } + if (128 === e.kind) { + if (g.isImportSpecifier(n) && n.propertyName || g.isExportSpecifier(n) && n.propertyName || g.isNamespaceImport(n) || g.isNamespaceExport(n)) return n.name; + if (g.isExportDeclaration(n) && n.exportClause && g.isNamespaceExport(n.exportClause)) return n.exportClause.name + } + if (100 === e.kind && g.isImportDeclaration(n) && (r = ee(n, t))) return r; + if (93 === e.kind) { + if (g.isExportDeclaration(n)) + if (r = te(n, t)) return r; + if (g.isExportAssignment(n)) return g.skipOuterExpressions(n.expression) + } + if (147 === e.kind && g.isExternalModuleReference(n)) return n.expression; + if (158 === e.kind && (g.isImportDeclaration(n) || g.isExportDeclaration(n)) && n.moduleSpecifier) return n.moduleSpecifier; + if ((94 === e.kind || 117 === e.kind) && g.isHeritageClause(n) && n.token === e.kind && (r = function(e) { + if (1 === e.types.length) return e.types[0].expression + }(n))) return r; + if (94 === e.kind) { + if (g.isTypeParameterDeclaration(n) && n.constraint && g.isTypeReferenceNode(n.constraint)) return n.constraint.typeName; + if (g.isConditionalTypeNode(n) && g.isTypeReferenceNode(n.extendsType)) return n.extendsType.typeName + } + if (138 === e.kind && g.isInferTypeNode(n)) return n.typeParameter.name; + if (101 === e.kind && g.isTypeParameterDeclaration(n) && g.isMappedTypeNode(n.parent)) return n.name; + if (141 === e.kind && g.isTypeOperatorNode(n) && 141 === n.operator && g.isTypeReferenceNode(n.type)) return n.type.typeName; + if (146 === e.kind && g.isTypeOperatorNode(n) && 146 === n.operator && g.isArrayTypeNode(n.type) && g.isTypeReferenceNode(n.type.elementType)) return n.type.elementType.typeName; + if (!t) { + if ((103 === e.kind && g.isNewExpression(n) || 114 === e.kind && g.isVoidExpression(n) || 112 === e.kind && g.isTypeOfExpression(n) || 133 === e.kind && g.isAwaitExpression(n) || 125 === e.kind && g.isYieldExpression(n) || 89 === e.kind && g.isDeleteExpression(n)) && n.expression) return g.skipOuterExpressions(n.expression); + if ((101 === e.kind || 102 === e.kind) && g.isBinaryExpression(n) && n.operatorToken === e) return g.skipOuterExpressions(n.right); + if (128 === e.kind && g.isAsExpression(n) && g.isTypeReferenceNode(n.type)) return n.type.typeName; + if (101 === e.kind && g.isForInStatement(n) || 162 === e.kind && g.isForOfStatement(n)) return g.skipOuterExpressions(n.expression) + } + return e + } + + function ne(e) { + return re(e, !1) + } + + function ie(e, t, r) { + return ae(e, t, !1, r, !1) + } + + function c(e, t) { + return ae(e, t, !0, void 0, !1) + } + + function ae(a, o, s, c, n) { + for (var l, t = a;;) { + var e = function() { + var i = t.getChildren(a), + e = g.binarySearchKey(i, o, function(e, t) { + return t + }, function(e, t) { + var r, n = i[e].getEnd(); + return n < o ? -1 : (r = s ? i[e].getFullStart() : i[e].getStart(a, !0), o < r ? 1 : u(i[e], r, n) ? i[e - 1] && u(i[e - 1]) ? 1 : 0 : c && r === o && i[e - 1] && i[e - 1].getEnd() === o && u(i[e - 1]) ? 1 : -1) + }); + return l ? { + value: l + } : 0 <= e && i[e] ? (t = i[e], "continue-outer") : { + value: t + } + }(); + if ("object" == typeof e) return e.value + } + + function u(e, t, r) { + if (!((r = null != r ? r : e.getEnd()) < o || (null == t && (t = s ? e.getFullStart() : e.getStart(a, !0)), o < t))) { + if (o < r || o === r && (1 === e.kind || n)) return 1; + if (c && r === o) { + t = _(o, a, e); + if (t && c(t)) return l = t, 1 + } + } + } + } + + function l(n, e, i) { + return function r(e) { + if (g.isToken(e) && e.pos === n.end) return e; + return g.firstDefined(e.getChildren(i), function(e) { + var t = e.pos <= n.pos && e.end > n.end || e.pos === n.end; + return t && m(e, i) ? r(e) : void 0 + }) + }(e) + } + + function _(o, s, c, l) { + var e = function e(t) { + if (oe(t) && 1 !== t.kind) return t; + var r = t.getChildren(s); + var n = g.binarySearchKey(r, o, function(e, t) { + return t + }, function(e, t) { + return o < r[e].end ? !r[e - 1] || o >= r[e - 1].end ? 0 : 1 : -1 + }); + if (0 <= n && r[n]) { + var i, a = r[n]; + if (o < a.end) return i = a.getStart(s, !l), o <= i || !m(a, s) || p(a) ? (i = d(r, n, s, t.kind)) && u(i, s) : e(a) + } + g.Debug.assert(void 0 !== c || 308 === t.kind || 1 === t.kind || g.isJSDocCommentContainingNode(t)); + n = d(r, r.length, s, t.kind); + return n && u(n, s) + }(c || s); + return g.Debug.assert(!(e && p(e))), e + } + + function oe(e) { + return g.isToken(e) && !p(e) + } + + function u(e, t) { + var r; + return oe(e) || 0 === (r = e.getChildren(t)).length ? e : (r = d(r, r.length, t, e.kind)) && u(r, t) + } + + function d(e, t, r, n) { + for (var i = t - 1; 0 <= i; i--) + if (p(e[i])) 0 !== i || 11 !== n && 282 !== n || g.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`"); + else if (m(e[i], r)) return e[i] + } + + function p(e) { + return g.isJsxText(e) && e.containsOnlyTriviaWhiteSpaces + } + + function f(e, t, r) { + var n = g.tokenToString(e.kind), + i = g.tokenToString(t), + a = e.getFullStart(), + i = r.text.lastIndexOf(i, a); + if (-1 !== i) { + if (r.text.lastIndexOf(n, a - 1) < i) { + n = _(i + 1, r); + if (n && n.kind === t) return n + } + for (var o = e.kind, s = 0;;) { + var c = _(e.getFullStart(), r); + if (!c) return; + if ((e = c).kind === t) { + if (0 === s) return e; + s-- + } else e.kind === o && s++ + } + } + } + + function se(e, t, r) { + return t ? e.getNonNullableType() : r ? e.getNonOptionalType() : e + } + + function ce(e, t, r) { + r = r.getTypeAtLocation(e); + return g.isOptionalChain(e.parent) && (r = se(r, g.isOptionalChainRoot(e.parent), !0)), (g.isNewExpression(e.parent) ? r.getConstructSignatures() : r.getCallSignatures()).filter(function(e) { + return !!e.typeParameters && e.typeParameters.length >= t + }) + } + + function le(e, t) { + if (-1 !== t.text.lastIndexOf("<", e ? e.pos : t.text.length)) + for (var r = e, n = 0, i = 0; r;) { + switch (r.kind) { + case 29: + if (!(r = (r = _(r.getFullStart(), t)) && 28 === r.kind ? _(r.getFullStart(), t) : r) || !g.isIdentifier(r)) return; + if (!n) return g.isDeclarationName(r) ? void 0 : { + called: r, + nTypeArguments: i + }; + n--; + break; + case 49: + n = 3; + break; + case 48: + n = 2; + break; + case 31: + n++; + break; + case 19: + if (r = f(r, 18, t)) break; + return; + case 21: + if (r = f(r, 20, t)) break; + return; + case 23: + if (r = f(r, 22, t)) break; + return; + case 27: + i++; + break; + case 38: + case 79: + case 10: + case 8: + case 9: + case 110: + case 95: + case 112: + case 94: + case 141: + case 24: + case 51: + case 57: + case 58: + break; + default: + if (g.isTypeNode(r)) break; + return + } + r = _(r.getFullStart(), t) + } + } + + function ue(e, t, r) { + return g.formatting.getRangeOfEnclosingComment(e, t, void 0, r) + } + + function m(e, t) { + return 1 === e.kind ? !!e.jsDoc : 0 !== e.getWidth(t) + } + + function _e(e, t, r) { + t = ue(e, t, void 0); + return !!t && r === q.test(e.text.substring(t.pos, t.end)) + } + + function y(e, t, r) { + return g.createTextSpanFromBounds(e.getStart(t), (r || e).getEnd()) + } + + function de(e) { + if (!e.isUnterminated) return g.createTextSpanFromBounds(e.getStart() + 1, e.getEnd() - 1) + } + + function pe(e, t) { + return { + span: e, + newText: t + } + } + + function h(e) { + return 154 === e.kind + } + + function fe(t, e) { + return { + fileExists: function(e) { + return t.fileExists(e) + }, + getCurrentDirectory: function() { + return e.getCurrentDirectory() + }, + readFile: g.maybeBind(e, e.readFile), + useCaseSensitiveFileNames: g.maybeBind(e, e.useCaseSensitiveFileNames), + getSymlinkCache: g.maybeBind(e, e.getSymlinkCache) || t.getSymlinkCache, + getModuleSpecifierCache: g.maybeBind(e, e.getModuleSpecifierCache), + getPackageJsonInfoCache: function() { + var e; + return null == (e = t.getModuleResolutionCache()) ? void 0 : e.getPackageJsonInfoCache() + }, + getGlobalTypingsCacheLocation: g.maybeBind(e, e.getGlobalTypingsCacheLocation), + redirectTargetsMap: t.redirectTargetsMap, + getProjectReferenceRedirect: function(e) { + return t.getProjectReferenceRedirect(e) + }, + isSourceOfProjectReferenceRedirect: function(e) { + return t.isSourceOfProjectReferenceRedirect(e) + }, + getNearestAncestorDirectoryWithPackageJson: g.maybeBind(e, e.getNearestAncestorDirectoryWithPackageJson), + getFileIncludeReasons: function() { + return t.getFileIncludeReasons() + } + } + } + + function ge(e, t) { + return __assign(__assign({}, fe(e, t)), { + getCommonSourceDirectory: function() { + return e.getCommonSourceDirectory() + } + }) + } + + function me(e, t, r, n, i) { + return g.factory.createImportDeclaration(void 0, e || t ? g.factory.createImportClause(!!i, e, t && t.length ? g.factory.createNamedImports(t) : void 0) : void 0, "string" == typeof r ? ye(r, n) : r, void 0) + } + + function ye(e, t) { + return g.factory.createStringLiteral(e, 0 === t) + } + + function he(e, t) { + return g.isStringDoubleQuoted(e, t) ? 1 : 0 + } + + function ve(e, t) { + return t.quotePreference && "auto" !== t.quotePreference ? "single" === t.quotePreference ? 0 : 1 : (t = e.imports && g.find(e.imports, function(e) { + return g.isStringLiteral(e) && !g.nodeIsSynthesized(e.parent) + })) ? he(t, e) : 1 + } + + function be(e) { + return "default" !== e.escapedName ? e.escapedName : g.firstDefined(e.declarations, function(e) { + e = g.getNameOfDeclaration(e); + return e && 79 === e.kind ? e.escapedText : void 0 + }) + } + + function v(e, t) { + return !!e && !!t && e.start === t.start && e.length === t.length + } + + function b(e, t, r) { + t = t.tryGetSourcePosition(e); + return t && (!r || r(g.normalizePath(t.fileName)) ? t : void 0) + } + + function xe(e, t, r) { + var n = e.contextSpan && b({ + fileName: e.fileName, + pos: e.contextSpan.start + }, t, r), + e = e.contextSpan && b({ + fileName: e.fileName, + pos: e.contextSpan.start + e.contextSpan.length + }, t, r); + return n && e ? { + start: n.pos, + length: e.pos - n.pos + } : void 0 + } + + function De(e) { + e = e.declarations ? g.firstOrUndefined(e.declarations) : void 0; + return !!g.findAncestor(e, function(e) { + return !!g.isParameter(e) || !(g.isBindingElement(e) || g.isObjectBindingPattern(e) || g.isArrayBindingPattern(e)) && "quit" + }) + } + g.getLineStartPositionForPosition = function(e, t) { + return g.getLineStarts(t)[t.getLineAndCharacterOfPosition(e).line] + }, g.rangeContainsRange = W, g.rangeContainsRangeExclusive = function(e, t) { + return r(e, t.pos) && r(e, t.end) + }, g.rangeContainsPosition = function(e, t) { + return e.pos <= t && t <= e.end + }, g.rangeContainsPositionExclusive = r, g.startEndContainsRange = H, g.rangeContainsStartEnd = function(e, t, r) { + return e.pos <= t && e.end >= r + }, g.rangeOverlapsWithStartEnd = function(e, t, r) { + return a(e.pos, e.end, t, r) + }, g.nodeOverlapsWithStartEnd = function(e, t, r, n) { + return a(e.getStart(t), e.end, r, n) + }, g.startEndOverlapsWithStartEnd = a, g.positionBelongsToNode = function(e, t, r) { + return g.Debug.assert(e.pos <= t), t < e.end || ! function e(t, r) { + if (void 0 === t || g.nodeIsMissing(t)) return !1; + switch (t.kind) { + case 260: + case 261: + case 263: + case 207: + case 203: + case 184: + case 238: + case 265: + case 266: + case 272: + case 276: + return o(t, 19, r); + case 295: + return e(t.block, r); + case 211: + if (!t.arguments) return !0; + case 210: + case 214: + case 193: + return o(t, 21, r); + case 181: + case 182: + return e(t.type, r); + case 173: + case 174: + case 175: + case 259: + case 215: + case 171: + case 170: + case 177: + case 176: + case 216: + return t.body ? e(t.body, r) : t.type ? e(t.type, r) : s(t, 21, r); + case 264: + return !!t.body && e(t.body, r); + case 242: + return t.elseStatement ? e(t.elseStatement, r) : e(t.thenStatement, r); + case 241: + return e(t.expression, r) || s(t, 26, r); + case 206: + case 204: + case 209: + case 164: + case 186: + return o(t, 23, r); + case 178: + return t.type ? e(t.type, r) : s(t, 23, r); + case 292: + case 293: + return !1; + case 245: + case 246: + case 247: + case 244: + return e(t.statement, r); + case 243: + return s(t, 115, r) ? o(t, 21, r) : e(t.statement, r); + case 183: + return e(t.exprName, r); + case 218: + case 217: + case 219: + case 226: + case 227: + var n = t; + return e(n.expression, r); + case 212: + return e(t.template, r); + case 225: + n = g.lastOrUndefined(t.templateSpans); + return e(n, r); + case 236: + return g.nodeIsPresent(t.literal); + case 275: + case 269: + return g.nodeIsPresent(t.moduleSpecifier); + case 221: + return e(t.operand, r); + case 223: + return e(t.right, r); + case 224: + return e(t.whenFalse, r); + default: + return !0 + } + }(e, r) + }, g.findListItemInfo = function(e) { + var t, r = Q(e); + if (r) return t = r.getChildren(), { + listItemIndex: g.indexOfNode(t, e), + list: r + } + }, g.hasChildOfKind = s, g.findChildOfKind = G, g.findContainingList = Q, g.getContextualTypeFromParentOrAncestorTypeNode = function(e, t) { + var r; + if (!(8388608 & e.flags)) return Be(e, t) || (g.findAncestor(e, function(e) { + return g.isTypeNode(e) && (r = e), !g.isQualifiedName(e.parent) && !g.isTypeNode(e.parent) && !g.isTypeElement(e.parent) + }), (e = r) && t.getTypeAtLocation(e)) + }, g.getAdjustedReferenceLocation = ne, g.getAdjustedRenameLocation = function(e) { + return re(e, !0) + }, g.getTouchingPropertyName = function(e, t) { + return ie(e, t, function(e) { + return g.isPropertyNameLiteral(e) || g.isKeyword(e.kind) || g.isPrivateIdentifier(e) + }) + }, g.getTouchingToken = ie, g.getTokenAtPosition = c, g.findFirstNonJsxWhitespaceToken = function(e, t) { + for (var r = c(e, t); p(r);) { + var n = l(r, r.parent, e); + if (!n) return; + r = n + } + return r + }, g.findTokenOnLeftOfPosition = function(e, t) { + var r = c(e, t); + return g.isToken(r) && t > r.getStart(e) && t < r.getEnd() ? r : _(t, e) + }, g.findNextToken = l, g.findPrecedingToken = _, g.isInString = function(e, t, r) { + if ((r = void 0 === r ? _(t, e) : r) && g.isStringTextContainingNode(r)) { + var e = r.getStart(e), + n = r.getEnd(); + if (e < t && t < n) return !0; + if (t === n) return !!r.isUnterminated + } + return !1 + }, g.isInsideJsxElementOrAttribute = function(e, t) { + return !!(e = c(e, t)) && (11 === e.kind || 29 === e.kind && 11 === e.parent.kind || 29 === e.kind && 291 === e.parent.kind || !(!e || 19 !== e.kind || 291 !== e.parent.kind) || 29 === e.kind && 284 === e.parent.kind) + }, g.isInTemplateString = function(e, t) { + var r = c(e, t); + return g.isTemplateLiteralKind(r.kind) && t > r.getStart(e) + }, g.isInJSXText = function(e, t) { + return e = c(e, t), !!g.isJsxText(e) || !(18 !== e.kind || !g.isJsxExpression(e.parent) || !g.isJsxElement(e.parent.parent)) || !(29 !== e.kind || !g.isJsxOpeningLikeElement(e.parent) || !g.isJsxElement(e.parent.parent)) + }, g.isInsideJsxElement = function(e, t) { + for (var r = c(e, t); r;) { + if (!(282 <= r.kind && r.kind <= 291 || 11 === r.kind || 29 === r.kind || 31 === r.kind || 79 === r.kind || 19 === r.kind || 18 === r.kind || 43 === r.kind)) { + if (281 !== r.kind) return !1; + if (t > r.getStart(e)) return !0 + } + r = r.parent + } + return !1 + }, g.findPrecedingMatchingToken = f, g.removeOptionality = se, g.isPossiblyTypeArgumentPosition = function e(t, r, n) { + t = le(t, r); + return void 0 !== t && (g.isPartOfTypeNode(t.called) || 0 !== ce(t.called, t.nTypeArguments, n).length || e(t.called, r, n)) + }, g.getPossibleGenericSignatures = ce, g.getPossibleTypeArgumentsInfo = le, g.isInComment = ue, g.hasDocComment = function(e, t) { + return e = c(e, t), !!g.findAncestor(e, g.isJSDoc) + }, g.getNodeModifiers = function(e, t) { + void 0 === t && (t = 0); + var r = []; + return 8 & (t = g.isDeclaration(e) ? g.getCombinedNodeFlagsAlwaysIncludeJSDoc(e) & ~t : 0) && r.push("private"), 16 & t && r.push("protected"), 4 & t && r.push("public"), (32 & t || g.isClassStaticBlockDeclaration(e)) && r.push("static"), 256 & t && r.push("abstract"), 1 & t && r.push("export"), 8192 & t && r.push("deprecated"), 16777216 & e.flags && r.push("declare"), 274 === e.kind && r.push("export"), 0 < r.length ? r.join(",") : "" + }, g.getTypeArgumentOrTypeParameterList = function(e) { + return 180 === e.kind || 210 === e.kind ? e.typeArguments : g.isFunctionLike(e) || 260 === e.kind || 261 === e.kind ? e.typeParameters : void 0 + }, g.isComment = function(e) { + return 2 === e || 3 === e + }, g.isStringOrRegularExpressionOrTemplateLiteral = function(e) { + return !(10 !== e && 13 !== e && !g.isTemplateLiteralKind(e)) + }, g.isPunctuation = function(e) { + return 18 <= e && e <= 78 + }, g.isInsideTemplateLiteral = function(e, t, r) { + return g.isTemplateLiteralKind(e.kind) && e.getStart(r) < t && t < e.end || !!e.isUnterminated && t === e.end + }, g.isAccessibilityModifier = function(e) { + switch (e) { + case 123: + case 121: + case 122: + return !0 + } + return !1 + }, g.cloneCompilerOptions = function(e) { + var t = g.clone(e); + return g.setConfigFileInOptions(t, e && e.configFile), t + }, g.isArrayLiteralOrObjectLiteralDestructuringPattern = function e(t) { + if (206 === t.kind || 207 === t.kind) { + if (223 === t.parent.kind && t.parent.left === t && 63 === t.parent.operatorToken.kind) return !0; + if (247 === t.parent.kind && t.parent.initializer === t) return !0; + if (e((299 === t.parent.kind ? t.parent : t).parent)) return !0 + } + return !1 + }, g.isInReferenceComment = function(e, t) { + return _e(e, t, !0) + }, g.isInNonReferenceComment = function(e, t) { + return _e(e, t, !1) + }, g.getReplacementSpanForContextToken = function(e) { + if (e) switch (e.kind) { + case 10: + case 14: + return de(e); + default: + return y(e) + } + }, g.createTextSpanFromNode = y, g.createTextSpanFromStringLiteralLikeContent = de, g.createTextRangeFromNode = function(e, t) { + return g.createRange(e.getStart(t), e.end) + }, g.createTextSpanFromRange = function(e) { + return g.createTextSpanFromBounds(e.pos, e.end) + }, g.createTextRangeFromSpan = function(e) { + return g.createRange(e.start, e.start + e.length) + }, g.createTextChangeFromStartLength = function(e, t, r) { + return pe(g.createTextSpan(e, t), r) + }, g.createTextChange = pe, g.typeKeywords = [131, 129, 160, 134, 95, 138, 141, 144, 104, 148, 149, 146, 152, 153, 110, 114, 155, 156, 157], g.isTypeKeyword = function(e) { + return g.contains(g.typeKeywords, e) + }, g.isTypeKeywordToken = h, g.isTypeKeywordTokenOrIdentifier = function(e) { + return h(e) || g.isIdentifier(e) && "type" === e.text + }, g.isExternalModuleSymbol = function(e) { + return !!(1536 & e.flags) && 34 === e.name.charCodeAt(0) + }, g.nodeSeenTracker = function() { + var t = []; + return function(e) { + e = g.getNodeId(e); + return !t[e] && (t[e] = !0) + } + }, g.getSnapshotText = function(e) { + return e.getText(0, e.getLength()) + }, g.repeatString = function(e, t) { + for (var r = "", n = 0; n < t; n++) r += e; + return r + }, g.skipConstraint = function(e) { + return e.isTypeParameter() && e.getConstraint() || e + }, g.getNameFromPropertyName = function(e) { + return 164 === e.kind ? g.isStringOrNumericLiteralLike(e.expression) ? e.expression.text : void 0 : g.isPrivateIdentifier(e) ? g.idText(e) : g.getTextOfIdentifierOrLiteral(e) + }, g.programContainsModules = function(t) { + return t.getSourceFiles().some(function(e) { + return !(e.isDeclarationFile || t.isSourceFileFromExternalLibrary(e) || !e.externalModuleIndicator && !e.commonJsModuleIndicator) + }) + }, g.programContainsEsModules = function(t) { + return t.getSourceFiles().some(function(e) { + return !e.isDeclarationFile && !t.isSourceFileFromExternalLibrary(e) && !!e.externalModuleIndicator + }) + }, g.compilerOptionsIndicateEsModules = function(e) { + return !!e.module || 2 <= g.getEmitScriptTarget(e) || !!e.noEmit + }, g.createModuleSpecifierResolutionHost = fe, g.getModuleSpecifierResolverHost = ge, g.moduleResolutionRespectsExports = function(e) { + return e >= g.ModuleResolutionKind.Node16 && e <= g.ModuleResolutionKind.NodeNext + }, g.moduleResolutionUsesNodeModules = function(e) { + return e === g.ModuleResolutionKind.NodeJs || e >= g.ModuleResolutionKind.Node16 && e <= g.ModuleResolutionKind.NodeNext + }, g.makeImportIfNecessary = function(e, t, r, n) { + return e || t && t.length ? me(e, t, r, n) : void 0 + }, g.makeImport = me, g.makeStringLiteral = ye, (e = g.QuotePreference || (g.QuotePreference = {}))[e.Single = 0] = "Single", e[e.Double = 1] = "Double", g.quotePreferenceFromString = he, g.getQuotePreference = ve, g.getQuoteFromPreference = function(e) { + switch (e) { + case 0: + return "'"; + case 1: + return '"'; + default: + return g.Debug.assertNever(e) + } + }, g.symbolNameNoDefault = function(e) { + return void 0 === (e = be(e)) ? void 0 : g.unescapeLeadingUnderscores(e) + }, g.symbolEscapedNameNoDefault = be, g.isModuleSpecifierLike = function(e) { + return g.isStringLiteralLike(e) && (g.isExternalModuleReference(e.parent) || g.isImportDeclaration(e.parent) || g.isRequireCall(e.parent, !1) && e.parent.arguments[0] === e || g.isImportCall(e.parent) && e.parent.arguments[0] === e) + }, g.isObjectBindingElementWithoutPropertyName = function(e) { + return g.isBindingElement(e) && g.isObjectBindingPattern(e.parent) && g.isIdentifier(e.name) && !e.propertyName + }, g.getPropertySymbolFromBindingElement = function(e, t) { + var r = e.getTypeAtLocation(t.parent); + return r && e.getPropertyOfType(r, t.name.text) + }, g.getParentNodeInSpan = function(e, t, r) { + var n, i; + if (e) + for (; e.parent;) { + if (g.isSourceFile(e.parent) || (n = r, i = e.parent, !(g.textSpanContainsPosition(n, i.getStart(t)) && i.getEnd() <= g.textSpanEnd(n)))) return e; + e = e.parent + } + }, g.findModifier = function(e, t) { + return g.canHaveModifiers(e) ? g.find(e.modifiers, function(e) { + return e.kind === t + }) : void 0 + }, g.insertImports = function(e, t, r, n) { + var i = 240 === (g.isArray(r) ? r[0] : r).kind ? g.isRequireVariableStatement : g.isAnyImportSyntax, + a = g.filter(t.statements, i), + i = g.isArray(r) ? g.stableSort(r, g.OrganizeImports.compareImportsOrRequireStatements) : [r]; + if (a.length) + if (a && g.OrganizeImports.importsAreSorted(a)) + for (var o = 0, s = i; o < s.length; o++) { + var c, l = s[o], + u = g.OrganizeImports.getImportDeclarationInsertionIndex(a, l); + 0 === u ? (c = a[0] === t.statements[0] ? { + leadingTriviaOption: g.textChanges.LeadingTriviaOption.Exclude + } : {}, e.insertNodeBefore(t, a[0], l, !1, c)) : (c = a[u - 1], e.insertNodeAfter(t, c, l)) + } else { + r = g.lastOrUndefined(a); + r ? e.insertNodesAfter(t, r, i) : e.insertNodesAtTopOfFile(t, i, n) + } else e.insertNodesAtTopOfFile(t, i, n) + }, g.getTypeKeywordOfTypeOnlyImport = function(e, t) { + return g.Debug.assert(e.isTypeOnly), g.cast(e.getChildAt(0, t), h) + }, g.textSpansEqual = v, g.documentSpansEqual = function(e, t) { + return e.fileName === t.fileName && v(e.textSpan, t.textSpan) + }, g.forEachUnique = function(e, t) { + if (e) + for (var r = 0; r < e.length; r++) + if (e.indexOf(e[r]) === r) { + var n = t(e[r], r); + if (n) return n + } + }, g.isTextWhiteSpaceLike = function(e, t, r) { + for (var n = t; n < r; n++) + if (!g.isWhiteSpaceLike(e.charCodeAt(n))) return !1; + return !0 + }, g.getMappedLocation = b, g.getMappedDocumentSpan = function(e, t, r) { + var n = e.fileName, + i = e.textSpan, + a = b({ + fileName: n, + pos: i.start + }, t, r); + if (a) return n = (n = b({ + fileName: n, + pos: i.start + i.length + }, t, r)) ? n.pos - a.pos : i.length, { + fileName: a.fileName, + textSpan: { + start: a.pos, + length: n + }, + originalFileName: e.fileName, + originalTextSpan: e.textSpan, + contextSpan: xe(e, t, r), + originalContextSpan: e.contextSpan + } + }, g.getMappedContextSpan = xe, g.isFirstDeclarationOfSymbolParameter = De; + var x = function() { + function e(e) { + return s(e, g.SymbolDisplayPartKind.text) + } + var r, t, n, i, a = 10 * g.defaultMaximumTruncationLength; + c(); + return { + displayParts: function() { + var e = r.length && r[r.length - 1].text; + return a < i && e && "..." !== e && (g.isWhiteSpaceLike(e.charCodeAt(e.length - 1)) || r.push(D(" ", g.SymbolDisplayPartKind.space)), r.push(D("...", g.SymbolDisplayPartKind.punctuation))), r + }, + writeKeyword: function(e) { + return s(e, g.SymbolDisplayPartKind.keyword) + }, + writeOperator: function(e) { + return s(e, g.SymbolDisplayPartKind.operator) + }, + writePunctuation: function(e) { + return s(e, g.SymbolDisplayPartKind.punctuation) + }, + writeTrailingSemicolon: function(e) { + return s(e, g.SymbolDisplayPartKind.punctuation) + }, + writeSpace: function(e) { + return s(e, g.SymbolDisplayPartKind.space) + }, + writeStringLiteral: function(e) { + return s(e, g.SymbolDisplayPartKind.stringLiteral) + }, + writeParameter: function(e) { + return s(e, g.SymbolDisplayPartKind.parameterName) + }, + writeProperty: function(e) { + return s(e, g.SymbolDisplayPartKind.propertyName) + }, + writeLiteral: function(e) { + return s(e, g.SymbolDisplayPartKind.stringLiteral) + }, + writeSymbol: function(e, t) { + a < i || (o(), i += e.length, r.push(Se(e, t))) + }, + writeLine: function() { + a < i || (i += 1, r.push(ke()), t = !0) + }, + write: e, + writeComment: e, + getText: function() { + return "" + }, + getTextPos: function() { + return 0 + }, + getColumn: function() { + return 0 + }, + getLine: function() { + return 0 + }, + isAtStartOfLine: function() { + return !1 + }, + hasTrailingWhitespace: function() { + return !1 + }, + hasTrailingComment: function() { + return !1 + }, + rawWrite: g.notImplemented, + getIndent: function() { + return n + }, + increaseIndent: function() { + n++ + }, + decreaseIndent: function() { + n-- + }, + clear: c, + trackSymbol: function() { + return !1 + }, + reportInaccessibleThisError: g.noop, + reportInaccessibleUniqueSymbolError: g.noop, + reportPrivateInBaseOfClassExpression: g.noop + }; + + function o() { + var e; + a < i || t && ((e = g.getIndentString(n)) && (i += e.length, r.push(D(e, g.SymbolDisplayPartKind.space))), t = !1) + } + + function s(e, t) { + a < i || (o(), i += e.length, r.push(D(e, t))) + } + + function c() { + r = [], t = !0, i = n = 0 + } + }(); + + function Se(e, t) { + return D(e, function(e) { + var t = e.flags; + if (3 & t) return De(e) ? g.SymbolDisplayPartKind.parameterName : g.SymbolDisplayPartKind.localName; + return 4 & t || 32768 & t || 65536 & t ? g.SymbolDisplayPartKind.propertyName : 8 & t ? g.SymbolDisplayPartKind.enumMemberName : 16 & t ? g.SymbolDisplayPartKind.functionName : 32 & t ? g.SymbolDisplayPartKind.className : 64 & t ? g.SymbolDisplayPartKind.interfaceName : 384 & t ? g.SymbolDisplayPartKind.enumName : 1536 & t ? g.SymbolDisplayPartKind.moduleName : 8192 & t ? g.SymbolDisplayPartKind.methodName : 262144 & t ? g.SymbolDisplayPartKind.typeParameterName : 524288 & t || 2097152 & t ? g.SymbolDisplayPartKind.aliasName : g.SymbolDisplayPartKind.text + }(t)) + } + + function D(e, t) { + return { + text: e, + kind: g.SymbolDisplayPartKind[t] + } + } + + function Te(e) { + return D(g.tokenToString(e), g.SymbolDisplayPartKind.keyword) + } + + function Ce(e) { + return D(e, g.SymbolDisplayPartKind.text) + } + + function S(e) { + return D(e, g.SymbolDisplayPartKind.linkText) + } + + function Ee(e, t) { + return { + text: e, + kind: g.SymbolDisplayPartKind[g.SymbolDisplayPartKind.linkName], + target: { + fileName: g.getSourceFileOfNode(t).fileName, + textSpan: y(t) + } + } + } + + function T(e) { + return D(e, g.SymbolDisplayPartKind.link) + } + g.symbolPart = Se, g.displayPart = D, g.spacePart = function() { + return D(" ", g.SymbolDisplayPartKind.space) + }, g.keywordPart = Te, g.punctuationPart = function(e) { + return D(g.tokenToString(e), g.SymbolDisplayPartKind.punctuation) + }, g.operatorPart = function(e) { + return D(g.tokenToString(e), g.SymbolDisplayPartKind.operator) + }, g.parameterNamePart = function(e) { + return D(e, g.SymbolDisplayPartKind.parameterName) + }, g.propertyNamePart = function(e) { + return D(e, g.SymbolDisplayPartKind.propertyName) + }, g.textOrKeywordPart = function(e) { + var t = g.stringToToken(e); + return void 0 === t ? Ce(e) : Te(t) + }, g.textPart = Ce, g.typeAliasNamePart = function(e) { + return D(e, g.SymbolDisplayPartKind.aliasName) + }, g.typeParameterNamePart = function(e) { + return D(e, g.SymbolDisplayPartKind.typeParameterName) + }, g.linkTextPart = S, g.linkNamePart = Ee, g.linkPart = T, g.buildLinkParts = function(e, t) { + var r, n, i, a = g.isJSDocLink(e) ? "link" : g.isJSDocLinkCode(e) ? "linkcode" : "linkplain", + a = [T("{@".concat(a, " "))]; + return e.name ? (t = null == t ? void 0 : t.getSymbolAtLocation(e.name), r = function(e) { + if (0 === e.indexOf("()")) return 2; + if ("<" === e[0]) + for (var t = 0, r = 0; r < e.length;) + if ("<" === e[r] && t++, ">" === e[r] && t--, r++, !t) return r; + return 0 + }(e.text), n = g.getTextOfNode(e.name) + e.text.slice(0, r), i = function(e) { + var t = 0; + if (124 !== e.charCodeAt(t++)) return e; + for (; t < e.length && 32 === e.charCodeAt(t);) t++; + return e.slice(t) + }(e.text.slice(r)), (t = (null == t ? void 0 : t.valueDeclaration) || (null == (t = null == t ? void 0 : t.declarations) ? void 0 : t[0])) ? (a.push(Ee(n, t)), i && a.push(S(i))) : a.push(S(n + (r || 0 === i.indexOf("://") ? "" : " ") + i))) : e.text && a.push(S(e.text)), a.push(T("}")), a + }; + + function ke() { + return D("\n", g.SymbolDisplayPartKind.lineBreak) + } + + function C(e) { + try { + return e(x), x.displayParts() + } finally { + x.clear() + } + } + + function Ne(e) { + return 0 != (33554432 & e.flags) + } + + function E(e, t) { + void 0 === t && (t = !0); + e = e && Ae(e); + return e && !t && N(e), e + } + + function k(e, t, r) { + var n = r(e); + return n ? g.setOriginalNode(n, e) : n = Ae(e, r), n && !t && N(n), n + } + + function Ae(e, t) { + var r, n = t ? function(e) { + return k(e, !0, t) + } : E, + n = g.visitEachChild(e, n, g.nullTransformationContext, t ? function(e) { + return e && Pe(e, !0, t) + } : function(e) { + return e && Fe(e) + }, n); + return n === e ? (r = g.isStringLiteral(e) ? g.setOriginalNode(g.factory.createStringLiteralFromNode(e), e) : g.isNumericLiteral(e) ? g.setOriginalNode(g.factory.createNumericLiteral(e.text, e.numericLiteralFlags), e) : g.factory.cloneNode(e), g.setTextRange(r, e)) : (n.parent = void 0, n) + } + + function Fe(e, t) { + return void 0 === t && (t = !0), e && g.factory.createNodeArray(e.map(function(e) { + return E(e, t) + }), e.hasTrailingComma) + } + + function Pe(e, t, r) { + return g.factory.createNodeArray(e.map(function(e) { + return k(e, t, r) + }), e.hasTrailingComma) + } + + function N(e) { + we(e), Ie(e) + } + + function we(e) { + A(e, 512, Oe) + } + + function Ie(e) { + A(e, 1024, g.getLastChild) + } + + function A(e, t, r) { + g.addEmitFlags(e, t); + e = r(e); + e && A(e, t, r) + } + + function Oe(e) { + return e.forEachChild(function(e) { + return e + }) + } + + function Me(e, t, r, n, i) { + g.forEachLeadingCommentRange(r.text, e.pos, F(t, r, n, i, g.addSyntheticLeadingComment)) + } + + function Le(e, t, r, n, i) { + g.forEachTrailingCommentRange(r.text, e.end, F(t, r, n, i, g.addSyntheticTrailingComment)) + } + + function Re(e, t, r, n, i) { + g.forEachTrailingCommentRange(r.text, e.pos, F(t, r, n, i, g.addSyntheticLeadingComment)) + } + + function F(i, a, o, s, c) { + return function(e, t, r, n) { + 3 === r ? (e += 2, t -= 2) : e += 2, c(i, o || r, a.text.slice(e, t), void 0 !== s ? s : n) + } + } + + function Be(e, t) { + var r = e.parent; + switch (r.kind) { + case 211: + return t.getContextualType(r); + case 223: + var n = r.left, + i = r.operatorToken, + a = r.right; + return je(i.kind) ? t.getTypeAtLocation(e === a ? n : a) : t.getContextualType(e); + case 292: + return r.expression === e ? Je(r, t) : void 0; + default: + return t.getContextualType(e) + } + } + + function je(e) { + switch (e) { + case 36: + case 34: + case 37: + case 35: + return !0; + default: + return !1 + } + } + + function Je(e, t) { + return t.getTypeAtLocation(e.parent.parent.expression) + } + + function P(e) { + return 176 === e || 177 === e || 178 === e || 168 === e || 170 === e + } + + function ze(e) { + return 259 === e || 173 === e || 171 === e || 174 === e || 175 === e + } + + function Ue(e) { + return 264 === e + } + + function w(e) { + return 240 === e || 241 === e || 243 === e || 248 === e || 249 === e || 250 === e || 254 === e || 256 === e || 169 === e || 262 === e || 269 === e || 268 === e || 275 === e || 267 === e || 274 === e + } + + function Ke(n) { + var i = 0, + a = 0; + return g.forEachChild(n, function e(t) { + var r; + return w(t.kind) ? 26 === (null == (r = t.getLastToken(n)) ? void 0 : r.kind) ? i++ : a++ : P(t.kind) && (26 === (null == (r = t.getLastToken(n)) ? void 0 : r.kind) ? i++ : r && 27 !== r.kind && g.getLineAndCharacterOfPosition(n, r.getStart(n)).line !== g.getLineAndCharacterOfPosition(n, g.getSpanOfTokenAtPosition(n, r.end).start).line && a++), 5 <= i + a || g.forEachChild(t, e) + }), 0 === i && a <= 1 || .2 < i / a + } + + function I(e, t) { + return M(e, e.fileExists, t) + } + + function O(e) { + try { + return e() + } catch (e) {} + } + + function M(e, t) { + for (var r = [], n = 2; n < arguments.length; n++) r[n - 2] = arguments[n]; + return O(function() { + return t && t.apply(e, r) + }) + } + + function Ve(e, t) { + var r; + return t.fileExists ? (r = [], g.forEachAncestorDirectory(g.getDirectoryPath(e), function(e) { + var e = g.combinePaths(e, "package.json"); + t.fileExists(e) && (e = qe(e, t)) && r.push(e) + }), r) : [] + } + + function qe(e, t) { + if (t.readFile) { + var r = function(e) { + try { + return JSON.parse(e) + } catch (e) {} + }(t.readFile(e) || ""), + n = {}; + if (r) + for (var i = 0, a = ["dependencies", "devDependencies", "optionalDependencies", "peerDependencies"]; i < a.length; i++) { + var o = a[i], + s = r[o]; + if (s) { + var c, l = new g.Map; + for (c in s) l.set(c, s[c]); + n[o] = l + } + } + var u = [ + [1, n.dependencies], + [2, n.devDependencies], + [8, n.optionalDependencies], + [4, n.peerDependencies] + ]; + return __assign(__assign({}, n), { + parseable: !!r, + fileName: e, + get: _, + has: function(e, t) { + return !!_(e, t) + } + }) + } + + function _(e, t) { + void 0 === t && (t = 15); + for (var r = 0, n = u; r < n.length; r++) { + var i = n[r], + a = i[0], + i = i[1]; + if (i && t & a) { + a = i.get(e); + if (void 0 !== a) return a + } + } + } + } + + function We(e) { + return g.some(e.imports, function(e) { + e = e.text; + return g.JsTyping.nodeCoreModules.has(e) + }) + } + + function He(e) { + return void 0 !== e.file && void 0 !== e.start && void 0 !== e.length + } + + function Ge(e) { + return !(33554432 & e.flags || "export=" !== e.escapedName && "default" !== e.escapedName) + } + + function Qe(e) { + return g.firstDefined(e.declarations, function(e) { + return !g.isExportAssignment(e) || null == (e = g.tryCast(g.skipOuterExpressions(e.expression), g.isIdentifier)) ? void 0 : e.text + }) + } + + function Xe(e) { + return g.Debug.checkDefined(e.parent, "Symbol parent was undefined. Flags: ".concat(g.Debug.formatSymbolFlags(e.flags), ". ") + "Declarations: ".concat(null == (e = e.declarations) ? void 0 : e.map(function(e) { + var t = g.Debug.formatSyntaxKind(e.kind), + r = g.isInJSFile(e), + e = e.expression; + return (r ? "[JS]" : "") + t + (e ? " (expression: ".concat(g.Debug.formatSyntaxKind(e.kind), ")") : "") + }).join(", "), ".")) + } + + function Ye(e) { + var t = e.getSourceFile(); + return !(!t.externalModuleIndicator && !t.commonJsModuleIndicator) && (g.isInJSFile(e) || !g.findAncestor(e, g.isGlobalScopeAugmentation)) + } + g.getNewLineOrDefaultFromHost = function(e, t) { + return (null == t ? void 0 : t.newLineCharacter) || (null == (t = e.getNewLine) ? void 0 : t.call(e)) || "\r\n" + }, g.lineBreakPart = ke, g.mapToDisplayParts = C, g.typeToDisplayParts = function(t, r, n, i) { + return void 0 === i && (i = 0), C(function(e) { + t.writeType(r, n, 17408 | i, e) + }) + }, g.symbolToDisplayParts = function(t, r, n, i, a) { + return void 0 === a && (a = 0), C(function(e) { + t.writeSymbol(r, n, i, 8 | a, e) + }) + }, g.signatureToDisplayParts = function(t, r, n, i) { + return void 0 === i && (i = 0), i |= 25632, C(function(e) { + t.writeSignature(r, n, i, void 0, e) + }) + }, g.nodeToDisplayParts = function(t, e) { + var r = e.getSourceFile(); + return C(function(e) { + g.createPrinter({ + removeComments: !0, + omitTrailingSemicolon: !0 + }).writeNode(4, t, r, e) + }) + }, g.isImportOrExportSpecifierName = function(e) { + return !!e.parent && g.isImportOrExportSpecifier(e.parent) && e.parent.propertyName === e + }, g.getScriptKind = function(e, t) { + return g.ensureScriptKind(e, t.getScriptKind && t.getScriptKind(e)) + }, g.getSymbolTarget = function(e, t) { + for (var r = e; 0 != (2097152 & r.flags) || Ne(r) && r.target;) r = Ne(r) && r.target ? r.target : g.skipAlias(r, t); + return r + }, g.getUniqueSymbolId = function(e, t) { + return g.getSymbolId(g.skipAlias(e, t)) + }, g.getFirstNonSpaceCharacterPosition = function(e, t) { + for (; g.isWhiteSpaceLike(e.charCodeAt(t));) t += 1; + return t + }, g.getPrecedingNonSpaceCharacterPosition = function(e, t) { + for (; - 1 < t && g.isWhiteSpaceSingleLine(e.charCodeAt(t));) --t; + return t + 1 + }, g.getSynthesizedDeepClone = E, g.getSynthesizedDeepCloneWithReplacements = k, g.getSynthesizedDeepClones = Fe, g.getSynthesizedDeepClonesWithReplacements = Pe, g.suppressLeadingAndTrailingTrivia = N, g.suppressLeadingTrivia = we, g.suppressTrailingTrivia = Ie, g.copyComments = function(e, t) { + var r = e.getSourceFile(); + (! function(e, t) { + for (var r = e.getFullStart(), n = e.getStart(), i = r; i < n; i++) + if (10 === t.charCodeAt(i)) return 1; + return + }(e, r.text) ? Re : Me)(e, t, r), Le(e, t, r) + }, g.getUniqueName = function(e, t) { + for (var r = e, n = 1; !g.isFileLevelUniqueName(t, r); n++) r = "".concat(e, "_").concat(n); + return r + }, g.getRenameLocation = function(e, t, r, n) { + for (var i = 0, a = -1, o = 0, s = e; o < s.length; o++) { + var c = s[o], + l = c.fileName, + c = c.textChanges; + g.Debug.assert(l === t); + for (var u = 0, _ = c; u < _.length; u++) { + var d = _[u], + p = d.span, + d = d.newText, + f = function(e, t) { + if (g.startsWith(e, t)) return 0; + var r = e.indexOf(" " + t); - 1 === r && (r = e.indexOf("." + t)); - 1 === r && (r = e.indexOf('"' + t)); + return -1 === r ? -1 : r + 1 + }(d, g.escapeString(r)); + if (-1 !== f && (a = p.start + i + f, !n)) return a; + i += d.length - p.length + } + } + return g.Debug.assert(n), g.Debug.assert(0 <= a), a + }, g.copyLeadingComments = Me, g.copyTrailingComments = Le, g.copyTrailingAsLeadingComments = Re, g.needsParentheses = function(e) { + return g.isBinaryExpression(e) && 27 === e.operatorToken.kind || g.isObjectLiteralExpression(e) || g.isAsExpression(e) && g.isObjectLiteralExpression(e.expression) + }, g.getContextualTypeFromParent = Be, g.quote = function(e, t, r) { + return e = ve(e, t), t = JSON.stringify(r), 0 === e ? "'".concat(g.stripQuotes(t).replace(/'/g, "\\'").replace(/\\"/g, '"'), "'") : t + }, g.isEqualityOperatorKind = je, g.isStringLiteralOrTemplate = function(e) { + switch (e.kind) { + case 10: + case 14: + case 225: + case 212: + return !0; + default: + return !1 + } + }, g.hasIndexSignature = function(e) { + return !!e.getStringIndexType() || !!e.getNumberIndexType() + }, g.getSwitchedType = Je, g.ANONYMOUS = "anonymous function", g.getTypeNodeIfAccessible = function(e, t, r, n) { + function i() { + return o = !1 + } + var a = r.getTypeChecker(), + o = !0, + e = a.typeToTypeNode(e, t, 1, { + trackSymbol: function(e, t, r) { + return !(o = o && 0 === a.isSymbolAccessible(e, t, r, !1).accessibility) + }, + reportInaccessibleThisError: i, + reportPrivateInBaseOfClassExpression: i, + reportInaccessibleUniqueSymbolError: i, + moduleResolverHost: ge(r, n) + }); + return o ? e : void 0 + }, g.syntaxRequiresTrailingSemicolonOrASI = w, g.syntaxMayBeASICandidate = g.or(P, ze, Ue, w), g.positionIsASICandidate = function(t, e, r) { + return !!(e = g.findAncestor(e, function(e) { + return e.end !== t ? "quit" : g.syntaxMayBeASICandidate(e.kind) + })) && function(e, t) { + var r, n = e.getLastToken(t); + if (n && 26 === n.kind) return !1; + if (P(e.kind)) { + if (n && 27 === n.kind) return !1 + } else if (Ue(e.kind)) { + if ((r = g.last(e.getChildren(t))) && g.isModuleBlock(r)) return !1 + } else if (ze(e.kind)) { + if ((r = g.last(e.getChildren(t))) && g.isFunctionBlock(r)) return !1 + } else if (!w(e.kind)) return !1; + return 243 === e.kind || !(n = l(e, g.findAncestor(e, function(e) { + return !e.parent + }), t)) || 19 === n.kind || t.getLineAndCharacterOfPosition(e.getEnd()).line !== t.getLineAndCharacterOfPosition(n.getStart(t)).line + }(e, r) + }, g.probablyUsesSemicolons = Ke, g.tryGetDirectories = function(e, t) { + return M(e, e.getDirectories, t) || [] + }, g.tryReadDirectory = function(e, t, r, n, i) { + return M(e, e.readDirectory, t, r, n, i) || g.emptyArray + }, g.tryFileExists = I, g.tryDirectoryExists = function(e, t) { + return O(function() { + return g.directoryProbablyExists(t, e) + }) || !1 + }, g.tryAndIgnoreErrors = O, g.tryIOAndConsumeErrors = M, g.findPackageJsons = function(e, t, r) { + var n = []; + return g.forEachAncestorDirectory(e, function(e) { + if (e === r) return !0; + e = g.combinePaths(e, "package.json"); + I(t, e) && n.push(e) + }), n + }, g.findPackageJson = function(e, t) { + var r; + return g.forEachAncestorDirectory(e, function(e) { + return "node_modules" === e || !!(r = g.findConfigFile(e, function(e) { + return I(t, e) + }, "package.json")) || void 0 + }), r + }, g.getPackageJsonsVisibleToFile = Ve, g.createPackageJsonInfo = qe, g.createPackageJsonImportFilter = function(r, n, i) { + var t, a = (i.getPackageJsonsVisibleToFile && i.getPackageJsonsVisibleToFile(r.fileName) || Ve(r.fileName, i)).filter(function(e) { + return e.parseable + }); + return { + allowsImportingAmbientModule: function(e, t) { + if (!a.length || !e.valueDeclaration) return !0; + t = c(e.valueDeclaration.getSourceFile().fileName, t); + if (void 0 === t) return !0; + e = g.stripQuotes(e.getName()); + if (s(e)) return !0; + return o(t) || o(e) + }, + allowsImportingSourceFile: function(e, t) { + return !a.length || !(e = c(e.fileName, t)) || o(e) + }, + allowsImportingSpecifier: function(e) { + if (!a.length || s(e)) return !0; + if (g.pathIsRelative(e) || g.isRootedDiskPath(e)) return !0; + return o(e) + } + }; + + function o(e) { + for (var t = l(e), r = 0, n = a; r < n.length; r++) { + var i = n[r]; + if (i.has(t) || i.has(g.getTypesPackageName(t))) return !0 + } + return !1 + } + + function s(e) { + return !!(g.isSourceFileJS(r) && g.JsTyping.nodeCoreModules.has(e) && (t = void 0 === t ? We(r) : t)) + } + + function c(e, t) { + return !g.stringContains(e, "node_modules") || !(e = g.moduleSpecifiers.getNodeModulesPackageName(i.getCompilationSettings(), r, e, t, n)) || g.pathIsRelative(e) || g.isRootedDiskPath(e) ? void 0 : l(e) + } + + function l(e) { + e = g.getPathComponents(g.getPackageNameFromTypesPackageName(e)).slice(1); + return g.startsWith(e[0], "@") ? "".concat(e[0], "/").concat(e[1]) : e[0] + } + }, g.consumesNodeCoreModules = We, g.isInsideNodeModules = function(e) { + return g.contains(g.getPathComponents(e), "node_modules") + }, g.isDiagnosticWithLocation = He, g.findDiagnosticForNode = function(e, t) { + var r = y(e); + if (0 <= (r = g.binarySearchKey(t, r, g.identity, g.compareTextSpans))) return t = t[r], g.Debug.assertEqual(t.file, e.getSourceFile(), "Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"), g.cast(t, He) + }, g.getDiagnosticsWithinSpan = function(e, t) { + var r, n = g.binarySearchKey(t, e.start, function(e) { + return e.start + }, g.compareValues); + for (n < 0 && (n = ~n); + (null == (r = t[n - 1]) ? void 0 : r.start) === e.start;) n--; + for (var i = [], a = g.textSpanEnd(e);;) { + var o = g.tryCast(t[n], He); + if (!o || o.start > a) break; + g.textSpanContainsTextSpan(e, o) && i.push(o), n++ + } + return i + }, g.getRefactorContextSpan = function(e) { + var t = e.startPosition, + e = e.endPosition; + return g.createTextSpanFromBounds(t, void 0 === e ? t : e) + }, g.getFixableErrorSpanExpression = function(t, r) { + var e = c(t, r.start); + return g.findAncestor(e, function(e) { + return e.getStart(t) < r.start || e.getEnd() > g.textSpanEnd(r) ? "quit" : g.isExpression(e) && v(r, y(e, t)) + }) + }, g.mapOneOrMany = function(e, t, r) { + return void 0 === r && (r = g.identity), e ? g.isArray(e) ? r(g.map(e, t)) : t(e, 0) : void 0 + }, g.firstOrOnly = function(e) { + return g.isArray(e) ? g.first(e) : e + }, g.getNamesForExportedSymbol = function(e, t) { + var r; + return Ge(e) ? Qe(e) || ((r = g.codefix.moduleSymbolToValidIdentifier(Xe(e), t, !1)) === (t = g.codefix.moduleSymbolToValidIdentifier(Xe(e), t, !0)) ? r : [r, t]) : e.name + }, g.getNameForExportedSymbol = function(e, t, r) { + return Ge(e) ? Qe(e) || g.codefix.moduleSymbolToValidIdentifier(Xe(e), t, !!r) : e.name + }, g.stringContainsAt = function(e, t, r) { + var n = t.length; + if (n + r > e.length) return !1; + for (var i = 0; i < n; i++) + if (t.charCodeAt(i) !== e.charCodeAt(i + r)) return !1; + return !0 + }, g.startsWithUnderscore = function(e) { + return 95 === e.charCodeAt(0) + }, g.isGlobalDeclaration = function(e) { + return !Ye(e) + }, g.isNonGlobalDeclaration = Ye, g.isDeprecatedDeclaration = function(e) { + return !!(8192 & g.getCombinedNodeFlagsAlwaysIncludeJSDoc(e)) + }, g.shouldUseUriStyleNodeCoreModules = function(e, t) { + return null != (e = g.firstDefined(e.imports, function(e) { + if (g.JsTyping.nodeCoreModules.has(e.text)) return g.startsWith(e.text, "node:") + })) ? e : t.usesUriStyleNodeCoreModules + }, g.getNewLineKind = function(e) { + return "\n" === e ? 1 : 0 + }, g.diagnosticToString = function(e) { + return g.isArray(e) ? g.formatStringFromArgs(g.getLocaleSpecificMessage(e[0]), e.slice(1)) : g.getLocaleSpecificMessage(e) + }, g.getFormatCodeSettingsForWriting = function(e, t) { + var r = !(e = e.options).semicolons || e.semicolons === g.SemicolonPreference.Ignore, + r = e.semicolons === g.SemicolonPreference.Remove || r && !Ke(t); + return __assign(__assign({}, e), { + semicolons: r ? g.SemicolonPreference.Remove : g.SemicolonPreference.Ignore + }) + }, g.jsxModeNeedsExplicitImport = function(e) { + return 2 === e || 3 === e + }, g.isSourceFileFromLibrary = function(e, t) { + return e.isSourceFileFromExternalLibrary(t) || e.isSourceFileDefaultLibrary(t) + } + }(ts = ts || {}), ! function(x) { + var e; + + function a(l) { + var g, m = 1, + y = x.createMultiMap(), + h = new x.Map, + v = new x.Map, + b = { + isUsableByFile: function(e) { + return e === g + }, + isEmpty: function() { + return !y.size + }, + clear: function() { + y.clear(), h.clear(), g = void 0 + }, + add: function(e, t, r, n, i, a, o, s) { + var c; + e !== g && (b.clear(), g = e), i && (u = x.getNodeModulePathParts(i.fileName)) && (_ = u.topLevelNodeModulesIndex, l = u.topLevelPackageNameIndex, u = u.packageRootIndex, c = x.unmangleScopedPackageName(x.getPackageNameFromTypesPackageName(i.fileName.substring(l + 1, u))), x.startsWith(e, i.path.substring(0, _))) && (u = v.get(c), e = i.fileName.substring(0, l + 1), !u || u.indexOf(x.nodeModulesPathPart) < _) && v.set(c, e); + var l = 1 === a && x.getLocalSymbolForExportDefault(t) || t, + u = 0 === a || x.isExternalModuleSymbol(l) ? x.unescapeLeadingUnderscores(r) : x.getNamesForExportedSymbol(l, void 0), + _ = "string" == typeof u ? u : u[0], + e = "string" == typeof u ? void 0 : u[1], + l = x.stripQuotes(n.name), + u = m++, + d = x.skipAlias(t, s), + p = 33554432 & t.flags ? void 0 : t, + f = 33554432 & n.flags ? void 0 : n; + p && f || h.set(u, [t, n]), y.add(function(e, t, r, n) { + r = r || ""; + return "".concat(e, "|").concat(x.getSymbolId(x.skipAlias(t, n)), "|").concat(r) + }(_, t, x.isExternalModuleNameRelative(l) ? void 0 : l, s), { + id: u, + symbolTableKey: r, + symbolName: _, + capitalizedSymbolName: e, + moduleName: l, + moduleFile: i, + moduleFileName: null == i ? void 0 : i.fileName, + packageName: c, + exportKind: a, + targetFlags: d.flags, + isFromPackageJson: o, + symbol: p, + moduleSymbol: f + }) + }, + get: function(e, t) { + return e !== g || null == (e = y.get(t)) ? void 0 : e.map(c) + }, + search: function(e, a, o, s) { + if (e === g) return x.forEachEntry(y, function(i, e) { + t = (r = e).substring(0, r.indexOf("|")), r = r.substring(r.lastIndexOf("|") + 1); + var t = { + symbolName: t, + ambientModuleName: r = "" === r ? void 0 : r + }, + r = t.ambientModuleName, + t = a && i[0].capitalizedSymbolName || t.symbolName; + if (o(t, i[0].targetFlags)) { + var n = i.map(c).filter(function(e, t) { + return e = e, !((t = i[t].packageName) && e.moduleFileName && (!(r = l.getGlobalTypingsCacheLocation()) || !x.startsWith(e.moduleFileName, r)) && (n = v.get(t))) || x.startsWith(e.moduleFileName, n); + var r, n + }); + if (n.length) { + n = s(n, t, !!r, e); + if (void 0 !== n) return n + } + } + }) + }, + releaseSymbols: function() { + h.clear() + }, + onFileChanged: function(e, t, r) { + if (!n(e) || !n(t)) { + if (g && g !== t.path || r && x.consumesNodeCoreModules(e) !== x.consumesNodeCoreModules(t) || !x.arrayIsEqualTo(e.moduleAugmentations, t.moduleAugmentations) || ! function(r, n) { + if (!x.arrayIsEqualTo(r.ambientModuleNames, n.ambientModuleNames)) return; + for (var i = -1, a = -1, e = function(t) { + function e(e) { + return x.isNonGlobalAmbientModule(e) && e.name.text === t + } + if (i = x.findIndex(r.statements, e, i + 1), a = x.findIndex(n.statements, e, a + 1), r.statements[i] !== n.statements[a]) return { + value: !1 + } + }, t = 0, o = n.ambientModuleNames; t < o.length; t++) { + var s = o[t], + s = e(s); + if ("object" == typeof s) return s.value + } + return 1 + }(e, t)) return b.clear(), !0; + g = t.path + } + return !1 + } + }; + return x.Debug.isDebugging && Object.defineProperty(b, "__cache", { + get: function() { + return y + } + }), b; + + function c(e) { + var t, r, n, i, a, o, s, c; + return e.symbol && e.moduleSymbol ? e : (t = e.id, r = e.exportKind, n = e.targetFlags, i = e.isFromPackageJson, a = e.moduleFileName, c = (s = h.get(t) || x.emptyArray)[0], s = s[1], c && s ? { + symbol: c, + moduleSymbol: s, + moduleFileName: a, + exportKind: r, + targetFlags: n, + isFromPackageJson: i + } : (o = (i ? l.getPackageJsonAutoImportProvider() : l.getCurrentProgram()).getTypeChecker(), s = e.moduleSymbol || s || x.Debug.checkDefined(e.moduleFile ? o.getMergedSymbol(e.moduleFile.symbol) : o.tryFindAmbientModule(e.moduleName)), c = e.symbol || c || x.Debug.checkDefined(2 === r ? o.resolveExternalModuleSymbol(s) : o.tryGetMemberInModuleExportsAndProperties(x.unescapeLeadingUnderscores(e.symbolTableKey), s), "Could not find symbol '".concat(e.symbolName, "' by key '").concat(e.symbolTableKey, "' in module ").concat(s.name)), h.set(t, [c, s]), { + symbol: c, + moduleSymbol: s, + moduleFileName: a, + exportKind: r, + targetFlags: n, + isFromPackageJson: i + })) + } + + function n(e) { + return !(e.commonJsModuleIndicator || e.externalModuleIndicator || e.moduleAugmentations || e.ambientModuleNames) + } + } + + function o(r, e, t, n, i) { + var a = x.hostUsesCaseSensitiveFileNames(e), + t = t.autoImportFileExcludePatterns && x.mapDefined(t.autoImportFileExcludePatterns, function(e) { + e = x.getPatternFromSpec(e, "", "exclude"); + return e ? x.getRegexFromPattern(e, a) : void 0 + }), + o = (s(r.getTypeChecker(), r.getSourceFiles(), t, function(e, t) { + i(e, t, r, !1) + }), n && (null == (n = e.getPackageJsonAutoImportProvider) ? void 0 : n.call(e))); + o && (n = x.timestamp(), s(o.getTypeChecker(), o.getSourceFiles(), t, function(e, t) { + i(e, t, o, !0) + }), null != (t = e.log)) && t.call(e, "forEachExternalModuleToImportFrom autoImportProvider: ".concat(x.timestamp() - n)) + } + + function s(e, t, r, n) { + for (var i, a = function(t) { + return null == r ? void 0 : r.some(function(e) { + return e.test(t) + }) + }, o = 0, s = e.getAmbientModules(); o < s.length; o++) { + var c = s[o]; + x.stringContains(c.name, "*") || r && null != (i = c.declarations) && i.every(function(e) { + return a(e.getSourceFile().fileName) + }) || n(c, void 0) + } + for (var l = 0, u = t; l < u.length; l++) { + var _ = u[l]; + x.isExternalOrCommonJsModule(_) && !a(_.fileName) && n(e.getMergedSymbol(_.symbol), _) + } + } + + function p(e, t, r) { + e = e; + var n, i = (n = (i = t).resolveExternalModuleSymbol(e)) !== e ? { + symbol: n, + exportKind: 2 + } : (n = i.tryGetMemberInModuleExports("default", e)) ? { + symbol: n, + exportKind: 1 + } : void 0; + if (i) return e = i.symbol, n = i.exportKind, (i = function e(t, r, n) { + var i = x.getLocalSymbolForExportDefault(t); + if (i) return { + symbolForMeaning: i, + name: i.name + }; + i = c(t); + if (void 0 !== i) return { + symbolForMeaning: t, + name: i + }; + if (2097152 & t.flags) { + i = r.getImmediateAliasedSymbol(t); + if (i && i.parent) return e(i, r, n) + } + if ("default" !== t.escapedName && "export=" !== t.escapedName) return { + symbolForMeaning: t, + name: t.getName() + }; + return { + symbolForMeaning: t, + name: x.getNameForExportedSymbol(t, n.target) + } + }(e, t, r)) && __assign({ + symbol: e, + exportKind: n + }, i) + } + + function f(e, t) { + return !(t.isUndefinedSymbol(e) || t.isUnknownSymbol(e) || x.isKnownSymbol(e) || x.isPrivateIdentifierSymbol(e)) + } + + function c(e) { + return e.declarations && x.firstDefined(e.declarations, function(e) { + var t; + return x.isExportAssignment(e) ? null == (t = x.tryCast(x.skipOuterExpressions(e.expression), x.isIdentifier)) ? void 0 : t.text : x.isExportSpecifier(e) ? (x.Debug.assert("default" === e.name.text, "Expected the specifier to be a default export"), e.propertyName && e.propertyName.text) : void 0 + }) + }(e = x.ImportKind || (x.ImportKind = {}))[e.Named = 0] = "Named", e[e.Default = 1] = "Default", e[e.Namespace = 2] = "Namespace", e[e.CommonJS = 3] = "CommonJS", (e = x.ExportKind || (x.ExportKind = {}))[e.Named = 0] = "Named", e[e.Default = 1] = "Default", e[e.ExportEquals = 2] = "ExportEquals", e[e.UMD = 3] = "UMD", x.createCacheableExportInfoMap = a, x.isImportableFile = function(r, n, i, e, t, a, o) { + var s, c, l; + return n !== i && (void 0 !== (null == (l = null == o ? void 0 : o.get(n.path, i.path, e, {})) ? void 0 : l.isBlockedByPackageJsonDependencies) ? !l.isBlockedByPackageJsonDependencies : (s = x.hostGetCanonicalFileName(a), c = null == (l = a.getGlobalTypingsCacheLocation) ? void 0 : l.call(a), l = !!x.moduleSpecifiers.forEachFileNameOfModule(n.fileName, i.fileName, a, !1, function(e) { + var t = r.getSourceFile(e); + return (t === i || !t) && function(e, t, r, n) { + t = x.forEachAncestorDirectory(t, function(e) { + return "node_modules" === x.getBaseFileName(e) ? e : void 0 + }), t = t && x.getDirectoryPath(r(t)); + return void 0 === t || x.startsWith(r(e), t) || !!n && x.startsWith(r(n), t) + }(n.fileName, e, s, c) + }), t ? (t = l && t.allowsImportingSourceFile(i, a), null != o && o.setBlockedByPackageJsonDependencies(n.path, i.path, e, {}, !t), t) : l)) + }, x.forEachExternalModuleToImportFrom = o, x.getExportInfoMap = function(c, t, e, r, l) { + var n, i = x.timestamp(), + u = (null != (n = t.getPackageJsonAutoImportProvider) && n.call(t), (null == (n = t.getCachedExportInfoMap) ? void 0 : n.call(t)) || a({ + getCurrentProgram: function() { + return e + }, + getPackageJsonAutoImportProvider: function() { + var e; + return null == (e = t.getPackageJsonAutoImportProvider) ? void 0 : e.call(t) + }, + getGlobalTypingsCacheLocation: function() { + var e; + return null == (e = t.getGlobalTypingsCacheLocation) ? void 0 : e.call(t) + } + })); + if (u.isUsableByFile(c.path)) null != (n = t.log) && n.call(t, "getExportInfoMap: cache hit"); + else { + null != (n = t.log) && n.call(t, "getExportInfoMap: cache miss or empty; calculating new results"); + var _ = e.getCompilerOptions(), + d = 0; + try { + o(e, t, r, !0, function(r, n, e, i) { + ++d % 100 == 0 && null != l && l.throwIfCancellationRequested(); + var a = new x.Map, + o = e.getTypeChecker(), + s = p(r, o, _); + s && f(s.symbol, o) && u.add(c.path, s.symbol, 1 === s.exportKind ? "default" : "export=", r, n, s.exportKind, i, o), o.forEachExportAndPropertyOfModule(r, function(e, t) { + e !== (null == s ? void 0 : s.symbol) && f(e, o) && x.addToSeen(a, t) && u.add(c.path, e, t, r, n, 0, i, o) + }) + }) + } catch (e) { + throw u.clear(), e + } + null != (n = t.log) && n.call(t, "getExportInfoMap: done in ".concat(x.timestamp() - i, " ms")) + } + return u + }, x.getDefaultLikeExportInfo = p + }(ts = ts || {}), ! function(b) { + b.createClassifier = function() { + var h = b.createScanner(99, !1); + + function _(e, t, r) { + var n, i, a, o, s, c = 0, + l = 0, + u = [], + t = function(e) { + switch (e) { + case 3: + return { + prefix: '"\\\n' + }; + case 2: + return { + prefix: "'\\\n" + }; + case 1: + return { + prefix: "/*\n" + }; + case 4: + return { + prefix: "`\n" + }; + case 5: + return { + prefix: "}\n", + pushTemplate: !0 + }; + case 6: + return { + prefix: "", + pushTemplate: !0 + }; + case 0: + return { + prefix: "" + }; + default: + return b.Debug.assertNever(e) + } + }(t), + _ = t.prefix, + t = t.pushTemplate, + d = (e = _ + e, _.length), + p = (t && u.push(15), h.setText(e), 0), + f = [], + g = 0; + do { + if (c = h.scan(), !b.isTrivia(c)) { + switch (n = void 0, c) { + case 43: + case 68: + v[l] || 13 !== h.reScanSlashToken() || (c = 13); + break; + case 29: + 79 === l && g++; + break; + case 31: + 0 < g && g--; + break; + case 131: + case 152: + case 148: + case 134: + case 153: + 0 < g && !r && (c = 79); + break; + case 15: + u.push(c); + break; + case 18: + 0 < u.length && u.push(c); + break; + case 19: + 0 < u.length && (15 === (n = b.lastOrUndefined(u)) ? 17 === (c = h.reScanTemplateToken(!1)) ? u.pop() : b.Debug.assertEqual(c, 16, "Should have been a template middle.") : (b.Debug.assertEqual(n, 18, "Should have been an open brace"), u.pop())); + break; + default: + b.isKeyword(c) && (24 === l || b.isKeyword(l) && b.isKeyword(c) && ! function(e, t) { + if (!b.isAccessibilityModifier(e)) return 1; + switch (t) { + case 137: + case 151: + case 135: + case 124: + case 127: + return 1; + default: + return + } + }(l, c)) && (c = 79) + } + l = c + } + var m, y = h.getTextPos(); + i = h.getTokenPos(), a = y, o = d, s = function(e) { + { + if (b.isKeyword(e)) return 3; + if (function(e) { + switch (e) { + case 41: + case 43: + case 44: + case 39: + case 40: + case 47: + case 48: + case 49: + case 29: + case 31: + case 32: + case 33: + case 102: + case 101: + case 128: + case 150: + case 34: + case 35: + case 36: + case 37: + case 50: + case 52: + case 51: + case 55: + case 56: + case 74: + case 73: + case 78: + case 70: + case 71: + case 72: + case 64: + case 65: + case 66: + case 68: + case 69: + case 63: + case 27: + case 60: + case 75: + case 76: + case 77: + return 1; + default: + return + } + }(e) || function(e) { + switch (e) { + case 39: + case 40: + case 54: + case 53: + case 45: + case 46: + return 1; + default: + return + } + }(e)) return 5; + if (18 <= e && e <= 78) return 10 + } + switch (e) { + case 8: + return 4; + case 9: + return 25; + case 10: + return 6; + case 13: + return 7; + case 7: + case 3: + case 2: + return 1; + case 5: + case 4: + return 8; + default: + return b.isTemplateLiteralKind(e) ? 6 : 2 + } + }(c), m = f, 8 !== s && (0 === i && 0 < o && (i += o), 0 < (a = a - i)) && m.push(i - o, a, s), y >= e.length && void 0 !== (m = function(e, t, r) { + switch (t) { + case 10: + if (!e.isUnterminated()) return; + for (var n = e.getTokenText(), i = n.length - 1, a = 0; 92 === n.charCodeAt(i - a);) a++; + return 0 == (1 & a) ? void 0 : 34 === n.charCodeAt(0) ? 3 : 2; + case 3: + return e.isUnterminated() ? 1 : void 0; + default: + if (b.isTemplateLiteralKind(t)) { + if (!e.isUnterminated()) return; + switch (t) { + case 17: + return 5; + case 14: + return 4; + default: + return b.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #" + t) + } + } + return 15 === r ? 6 : void 0 + } + }(h, c, b.lastOrUndefined(u))) && (p = m) + } while (1 !== c); + return { + endOfLineState: p, + spans: f + } + } + return { + getClassificationsForLine: function(e, t, r) { + for (var t = _(e, t, r), r = e, n = [], i = t.spans, a = 0, o = 0; o < i.length; o += 3) { + var s, c = i[o], + l = i[o + 1], + u = i[o + 2]; + 0 <= a && 0 < (s = c - a) && n.push({ + length: s, + classification: b.TokenClass.Whitespace + }), n.push({ + length: l, + classification: function(e) { + switch (e) { + case 1: + return b.TokenClass.Comment; + case 3: + return b.TokenClass.Keyword; + case 4: + return b.TokenClass.NumberLiteral; + case 25: + return b.TokenClass.BigIntLiteral; + case 5: + return b.TokenClass.Operator; + case 6: + return b.TokenClass.StringLiteral; + case 8: + return b.TokenClass.Whitespace; + case 10: + return b.TokenClass.Punctuation; + case 2: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 9: + case 17: + return b.TokenClass.Identifier; + default: + return + } + }(u) + }), a = c + l + } + return 0 < (r = r.length - a) && n.push({ + length: r, + classification: b.TokenClass.Whitespace + }), { + entries: n, + finalLexState: t.endOfLineState + } + }, + getEncodedLexicalClassifications: _ + } + }; + var v = b.arrayToNumericMap([79, 10, 8, 9, 13, 108, 45, 46, 21, 23, 19, 110, 95], function(e) { + return e + }, function() { + return !0 + }); + + function _(e, t) { + switch (t) { + case 264: + case 260: + case 261: + case 259: + case 228: + case 215: + case 216: + e.throwIfCancellationRequested() + } + } + + function a(a, o, s, c, l) { + var u = []; + return s.forEachChild(function e(t) { + var r, n, i; + t && b.textSpanIntersectsWith(l, t.pos, t.getFullWidth()) && (_(o, t.kind), b.isIdentifier(t) && !b.nodeIsMissing(t) && c.has(t.escapedText) && (i = (i = a.getSymbolAtLocation(t)) && function e(t, r, n) { + var i = t.getFlags(); + if (0 != (2885600 & i)) return 32 & i ? 11 : 384 & i ? 12 : 524288 & i ? 16 : 1536 & i ? 4 & r || 1 & r && d(t) ? 14 : void 0 : 2097152 & i ? e(n.getAliasedSymbol(t), r, n) : 2 & r ? 64 & i ? 13 : 262144 & i ? 15 : void 0 : void 0 + }(i, b.getMeaningFromLocation(t), a)) && (r = t.getStart(s), n = t.getEnd(), i = i, n -= r, b.Debug.assert(0 < n, "Classification had non-positive length of ".concat(n)), u.push(r), u.push(n), u.push(i)), t.forEachChild(e)) + }), { + spans: u, + endOfLineState: 0 + } + } + + function d(e) { + return b.some(e.declarations, function(e) { + return b.isModuleDeclaration(e) && 1 === b.getModuleInstanceState(e) + }) + } + + function o(e) { + b.Debug.assert(e.spans.length % 3 == 0); + for (var t = e.spans, r = [], n = 0; n < t.length; n += 3) r.push({ + textSpan: b.createTextSpan(t[n], t[n + 1]), + classificationType: function(e) { + switch (e) { + case 1: + return "comment"; + case 2: + return "identifier"; + case 3: + return "keyword"; + case 4: + return "number"; + case 25: + return "bigint"; + case 5: + return "operator"; + case 6: + return "string"; + case 8: + return "whitespace"; + case 9: + return "text"; + case 10: + return "punctuation"; + case 11: + return "class name"; + case 12: + return "enum name"; + case 13: + return "interface name"; + case 14: + return "module name"; + case 15: + return "type parameter name"; + case 16: + return "type alias name"; + case 17: + return "parameter name"; + case 18: + return "doc comment tag name"; + case 19: + return "jsx open tag name"; + case 20: + return "jsx close tag name"; + case 21: + return "jsx self closing tag name"; + case 22: + return "jsx attribute"; + case 23: + return "jsx text"; + case 24: + return "jsx attribute string literal value"; + default: + return + } + }(t[n + 2]) + }); + return r + } + + function n(i, p, e) { + var a = e.start, + o = e.length, + f = b.createScanner(99, !1, p.languageVariant, p.text), + g = b.createScanner(99, !1, p.languageVariant, p.text), + n = []; + return v(p), { + spans: n, + endOfLineState: 0 + }; + + function m(e, t, r) { + n.push(e), n.push(t), n.push(r) + } + + function s(e) { + for (f.setTextPos(e.pos);;) { + var t = f.getTextPos(); + if (!b.couldStartTrivia(p.text, t)) return t; + var r = f.scan(), + n = f.getTextPos(), + i = n - t; + if (!b.isTrivia(r)) return t; + switch (r) { + case 4: + case 5: + continue; + case 2: + case 3: + ! function(e, t, r, n) { + if (3 === t) { + var i = b.parseIsolatedJSDocComment(p.text, r, n); + if (i && i.jsDoc) return b.setParent(i.jsDoc, e), + function(e) { + var t, r = e.pos; + if (e.tags) + for (var n = 0, i = e.tags; n < i.length; n++) { + var a = i[n], + o = (a.pos !== r && y(r, a.pos - r), m(a.pos, 1, 10), m(a.tagName.pos, a.tagName.end - a.tagName.pos, 18), r = a.tagName.end, a.tagName.end); + switch (a.kind) { + case 343: + var s = a; + ! function(e) { + e.isNameFirst && (y(r, e.name.pos - r), m(e.name.pos, e.name.end - e.name.pos, 17), r = e.name.end); + e.typeExpression && (y(r, e.typeExpression.pos - r), v(e.typeExpression), r = e.typeExpression.end); + e.isNameFirst || (y(r, e.name.pos - r), m(e.name.pos, e.name.end - e.name.pos, 17), r = e.name.end) + }(s), o = s.isNameFirst && (null == (c = s.typeExpression) ? void 0 : c.end) || s.name.end; + break; + case 350: + var c = a; + o = c.isNameFirst && (null == (s = c.typeExpression) ? void 0 : s.end) || c.name.end; + break; + case 347: + ! function(e) { + for (var t = 0, r = e.getChildren(); t < r.length; t++) v(r[t]) + }(a), r = a.end, o = a.typeParameters.end; + break; + case 348: + var l = a; + o = 312 === (null == (t = l.typeExpression) ? void 0 : t.kind) && (null == (t = l.fullName) ? void 0 : t.end) || (null == (t = l.typeExpression) ? void 0 : t.end) || o; + break; + case 341: + o = a.typeExpression.end; + break; + case 346: + v(a.typeExpression), r = a.end, o = a.typeExpression.end; + break; + case 345: + case 342: + o = a.typeExpression.end; + break; + case 344: + v(a.typeExpression), r = a.end, o = (null == (l = a.typeExpression) ? void 0 : l.end) || o; + break; + case 349: + o = (null == (t = a.name) ? void 0 : t.end) || o; + break; + case 331: + case 332: + o = a.class.end + } + "object" == typeof a.comment ? y(a.comment.pos, a.comment.end - a.comment.pos) : "string" == typeof a.comment && y(o, a.end - o) + } + r !== e.end && y(r, e.end - r) + }(i.jsDoc) + } else if (2 === t && function(e, t) { + var r = /(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim, + n = p.text.substr(e, t), + n = /^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im.exec(n); + if (!n) return; + if (!(n[3] && n[3] in b.commentPragmas)) return; + var i = e, + a = (y(i, n[1].length), m(i += n[1].length, n[2].length, 10), m(i += n[2].length, n[3].length, 21), i += n[3].length, n[4]), + o = i; + for (;;) { + var s = r.exec(a); + if (!s) break; + var c = i + s.index + s[1].length; + o < c && (y(o, c - o), o = c), m(o, s[2].length, 22), o += s[2].length, s[3].length && (y(o, s[3].length), o += s[3].length), m(o, s[4].length, 5), o += s[4].length, s[5].length && (y(o, s[5].length), o += s[5].length), m(o, s[6].length, 24), o += s[6].length + }(i += n[4].length) > o && y(o, i - o); + n[5] && (m(i, n[5].length, 10), i += n[5].length); + n = e + t; + i < n && y(i, n - i); + return 1 + }(r, n)) return; + y(r, n) + }(e, r, t, i), f.setTextPos(n); + continue; + case 7: + var a = p.text, + o = a.charCodeAt(t); + if (60 === o || 62 === o) m(t, i, 1); + else { + b.Debug.assert(124 === o || 61 === o), s = l = o = c = void 0; + var s, c = a, + o = t, + l = n; + for (s = o; s < l && !b.isLineBreak(c.charCodeAt(s)); s++); + for (m(o, s - o, 1), g.setTextPos(s); g.getTextPos() < l;) { + u = void 0; + _ = void 0; + d = void 0; + var u = g.getTextPos(), + _ = g.scan(), + d = g.getTextPos(), + _ = h(_); + _ && m(u, d - u, _) + } + } + break; + case 6: + break; + default: + b.Debug.assertNever(r) + } + } + } + + function y(e, t) { + m(e, t, 1) + } + + function c(e) { + var t, r, n; + return b.isJSDoc(e) || b.nodeIsMissing(e) || (n = function(e) { + switch (e.parent && e.parent.kind) { + case 283: + if (e.parent.tagName === e) return 19; + break; + case 284: + if (e.parent.tagName === e) return 20; + break; + case 282: + if (e.parent.tagName === e) return 21; + break; + case 288: + if (e.parent.name === e) return 22 + } + return + }(e), b.isToken(e) || 11 === e.kind || void 0 !== n ? (t = 11 === e.kind ? e.pos : s(e), r = e.end - t, b.Debug.assert(0 <= r), 0 < r && (n = n || h(e.kind, e)) && m(t, r, n), 1) : void 0) + } + + function h(e, t) { + if (b.isKeyword(e)) return 3; + if ((29 === e || 31 === e) && t && b.getTypeArgumentOrTypeParameterList(t.parent)) return 10; + if (b.isPunctuation(e)) { + if (t) { + var r = t.parent; + if (63 === e && (257 === r.kind || 169 === r.kind || 166 === r.kind || 288 === r.kind)) return 5; + if (223 === r.kind || 221 === r.kind || 222 === r.kind || 224 === r.kind) return 5 + } + return 10 + } + if (8 === e) return 4; + if (9 === e) return 25; + if (10 === e) return t && 288 === t.parent.kind ? 24 : 6; + if (13 === e) return 6; + if (b.isTemplateLiteralKind(e)) return 6; + if (11 === e) return 23; + if (79 === e) { + if (t) { + switch (t.parent.kind) { + case 260: + return t.parent.name === t ? 11 : void 0; + case 165: + return t.parent.name === t ? 15 : void 0; + case 261: + return t.parent.name === t ? 13 : void 0; + case 263: + return t.parent.name === t ? 12 : void 0; + case 264: + return t.parent.name === t ? 14 : void 0; + case 166: + return t.parent.name === t ? b.isThisIdentifier(t) ? 3 : 17 : void 0 + } + if (b.isConstTypeReference(t.parent)) return 3 + } + return 2 + } + } + + function v(e) { + if (e && b.decodedTextSpanIntersectsWith(a, o, e.pos, e.getFullWidth())) { + _(i, e.kind); + for (var t = 0, r = e.getChildren(p); t < r.length; t++) { + var n = r[t]; + c(n) || v(n) + } + } + } + } + b.getSemanticClassifications = function(e, t, r, n, i) { + return o(a(e, t, r, n, i)) + }, b.getEncodedSemanticClassifications = a, b.getSyntacticClassifications = function(e, t, r) { + return o(n(e, t, r)) + }, b.getEncodedSyntacticClassifications = n + }(ts = ts || {}), ! function(m) { + var e, t, y; + + function s(e, t, r, n) { + return { + spans: function(e, n, t, r) { + var i = []; + e && n && ! function(l, u, _, d, p) { + var f = l.getTypeChecker(), + g = !1; + ! function e(t) { + switch (t.kind) { + case 264: + case 260: + case 261: + case 259: + case 228: + case 215: + case 216: + p.throwIfCancellationRequested() + } + var r, n, i, a, o, s, c; + t && m.textSpanIntersectsWith(_, t.pos, t.getFullWidth()) && 0 !== t.getFullWidth() && (r = g, (m.isJsxElement(t) || m.isJsxSelfClosingElement(t)) && (g = !0), m.isJsxExpression(t) && (g = !1), !m.isIdentifier(t) || g || function(e) { + return (e = e.parent) && (m.isImportClause(e) || m.isImportSpecifier(e) || m.isNamespaceImport(e)) + }(t) || m.isInfinityOrNaNString(t.escapedText) || (n = f.getSymbolAtLocation(t)) && void 0 !== (i = function(e, t) { + var r = e.getFlags(); + if (32 & r) return 0; + if (384 & r) return 1; + if (524288 & r) return 5; + if (64 & r) { + if (2 & t) return 2 + } else if (262144 & r) return 4; + return (t = (t = e.valueDeclaration || e.declarations && e.declarations[0]) && m.isBindingElement(t) ? h(t) : t) && y.get(t.kind) + }(n = 2097152 & n.flags ? f.getAliasedSymbol(n) : n, m.getMeaningFromLocation(t))) && (a = 0, t.parent && (m.isBindingElement(t.parent) || y.get(t.parent.kind) === i) && t.parent.name === t && (a = 1), 6 === i && v(t) && (i = 9), i = function(e, t, r) { + if (7 === r || 9 === r || 6 === r) { + var n = e.getTypeAtLocation(t); + if (n) { + if (e = function(e) { + return e(n) || n.isUnion() && n.types.some(e) + }, 6 !== r && e(function(e) { + return 0 < e.getConstructSignatures().length + })) return 0; + if (e(function(e) { + return 0 < e.getCallSignatures().length + }) && !e(function(e) { + return 0 < e.getProperties().length + }) || function(e) { + for (; v(e);) e = e.parent; + return m.isCallExpression(e.parent) && e.parent.expression === e + }(t)) return 9 === r ? 11 : 10 + } + } + return r + }(f, t, i), (o = n.valueDeclaration) ? (s = m.getCombinedModifierFlags(o), c = m.getCombinedNodeFlags(o), 32 & s && (a |= 2), 512 & s && (a |= 4), 0 !== i && 2 !== i && (64 & s || 2 & c || 8 & n.getFlags()) && (a |= 8), 7 !== i && 10 !== i || ! function(e, t) { + return m.isBindingElement(e) && (e = h(e)), m.isVariableDeclaration(e) ? (!m.isSourceFile(e.parent.parent.parent) || m.isCatchClause(e.parent)) && e.getSourceFile() === t : m.isFunctionDeclaration(e) && !m.isSourceFile(e.parent) && e.getSourceFile() === t + }(o, u) || (a |= 32), l.isSourceFileDefaultLibrary(o.getSourceFile()) && (a |= 16)) : n.declarations && n.declarations.some(function(e) { + return l.isSourceFileDefaultLibrary(e.getSourceFile()) + }) && (a |= 16), d(t, i, a)), m.forEachChild(t, e), g = r) + }(u) + }(e, n, t, function(e, t, r) { + i.push(e.getStart(n), e.getWidth(n), (t + 1 << 8) + r) + }, r); + return i + }(e, r, n, t), + endOfLineState: 0 + } + } + + function h(e) { + for (;;) { + if (!m.isBindingElement(e.parent.parent)) return e.parent.parent; + e = e.parent.parent + } + } + + function v(e) { + return m.isQualifiedName(e.parent) && e.parent.right === e || m.isPropertyAccessExpression(e.parent) && e.parent.name === e + } + e = (e = m.classifier || (m.classifier = {})).v2020 || (e.v2020 = {}), (t = e.TokenEncodingConsts || (e.TokenEncodingConsts = {}))[t.typeOffset = 8] = "typeOffset", t[t.modifierMask = 255] = "modifierMask", (t = e.TokenType || (e.TokenType = {}))[t.class = 0] = "class", t[t.enum = 1] = "enum", t[t.interface = 2] = "interface", t[t.namespace = 3] = "namespace", t[t.typeParameter = 4] = "typeParameter", t[t.type = 5] = "type", t[t.parameter = 6] = "parameter", t[t.variable = 7] = "variable", t[t.enumMember = 8] = "enumMember", t[t.property = 9] = "property", t[t.function = 10] = "function", t[t.member = 11] = "member", (t = e.TokenModifier || (e.TokenModifier = {}))[t.declaration = 0] = "declaration", t[t.static = 1] = "static", t[t.async = 2] = "async", t[t.readonly = 3] = "readonly", t[t.defaultLibrary = 4] = "defaultLibrary", t[t.local = 5] = "local", e.getSemanticClassifications = function(e, t, r, n) { + for (var e = s(e, t, r, n), i = (m.Debug.assert(e.spans.length % 3 == 0), e.spans), a = [], o = 0; o < i.length; o += 3) a.push({ + textSpan: m.createTextSpan(i[o], i[o + 1]), + classificationType: i[o + 2] + }); + return a + }, e.getEncodedSemanticClassifications = s, y = new m.Map([ + [257, 7], + [166, 6], + [169, 9], + [264, 3], + [263, 1], + [302, 8], + [260, 0], + [171, 11], + [259, 10], + [215, 10], + [170, 11], + [174, 9], + [175, 9], + [168, 9], + [261, 2], + [262, 5], + [165, 4], + [299, 9], + [300, 9] + ]) + }(ts = ts || {}), ! function(E) { + var k, e, n, v, b; + + function x() { + var r = new E.Map; + return { + add: function(e) { + var t = r.get(e.name); + (!t || n[t.kind] < n[e.kind]) && r.set(e.name, e) + }, + has: r.has.bind(r), + values: r.values.bind(r) + } + } + + function D(e) { + return { + isGlobalCompletion: !1, + isMemberCompletion: !1, + isNewIdentifierLocation: !0, + entries: e.map(function(e) { + var t = e.name, + r = e.kind, + n = e.span; + return { + name: t, + kind: r, + kindModifiers: l(e.extension), + sortText: k.SortText.LocationPriority, + replacementSpan: n + } + }) + } + } + + function l(e) { + switch (e) { + case ".d.ts": + return ".d.ts"; + case ".js": + return ".js"; + case ".json": + return ".json"; + case ".jsx": + return ".jsx"; + case ".ts": + return ".ts"; + case ".tsx": + return ".tsx"; + case ".d.mts": + return ".d.mts"; + case ".mjs": + return ".mjs"; + case ".mts": + return ".mts"; + case ".d.cts": + return ".d.cts"; + case ".cjs": + return ".cjs"; + case ".cts": + return ".cts"; + case ".tsbuildinfo": + return E.Debug.fail("Extension ".concat(".tsbuildinfo", " is unsupported.")); + case void 0: + return ""; + default: + return E.Debug.assertNever(e) + } + } + + function S(e, t, r, n, i, a, o) { + var s, c, l, u, _, d, p, f, g, m, y, h = N(t.parent); + switch (h.kind) { + case 198: + var v, b = N(h.parent); + switch (b.kind) { + case 230: + case 180: + var x = E.findAncestor(h, function(e) { + return e.parent === b + }); + return x ? { + kind: 2, + types: F(n.getTypeArgumentConstraint(x)), + isNewIdentifier: !1 + } : void 0; + case 196: + var x = b.indexType, + D = b.objectType; + return E.rangeContainsPosition(x, r) ? A(n.getTypeFromTypeNode(D)) : void 0; + case 202: + return { + kind: 0, + paths: P(e, t, i, a, n, o) + }; + case 189: + return E.isTypeReferenceNode(b.parent) ? (y = h, v = E.mapDefined(b.types, function(e) { + return e !== y && E.isLiteralTypeNode(e) && E.isStringLiteral(e.literal) ? e.literal.text : void 0 + }), { + kind: 2, + types: F(n.getTypeArgumentConstraint(b)).filter(function(e) { + return !E.contains(v, e.value) + }), + isNewIdentifier: !1 + }) : void 0; + default: + return + } + case 299: + return E.isObjectLiteralExpression(h.parent) && h.name === t ? (m = n, T = h.parent, (s = m.getContextualType(T)) ? (S = m.getContextualType(T, 4), { + kind: 1, + symbols: k.getPropertiesForObjectExpression(s, S, T, m), + hasIndexSignature: E.hasIndexSignature(s) + }) : void 0) : C(); + case 209: + var S = h.expression, + T = h.argumentExpression; + return t === E.skipParentheses(T) ? A(n.getTypeAtLocation(S)) : void 0; + case 210: + case 211: + case 288: + if (m = t, !(E.isCallExpression(m.parent) && E.firstOrUndefined(m.parent.arguments) === m && E.isIdentifier(m.parent.expression) && "require" === m.parent.expression.escapedText || E.isImportCall(h))) return (s = E.SignatureHelp.getArgumentInfoForCompletions(288 === h.kind ? h.parent : t, r, e)) && (c = s.invocation, l = t, u = s, _ = n, d = !1, p = new E.Map, f = [], g = E.isJsxOpeningLikeElement(c) ? E.Debug.checkDefined(E.findAncestor(l.parent, E.isJsxAttribute)) : l, _.getResolvedSignatureForStringLiteralCompletions(c, g, f), l = E.flatMap(f, function(e) { + var t; + if (E.signatureHasRestParameter(e) || !(u.argumentCount > e.parameters.length)) return e = e.getTypeParameterAtPosition(u.argumentIndex), E.isJsxOpeningLikeElement(c) && (t = _.getTypeOfPropertyOfType(e, g.name.text)) && (e = t), d = d || !!(4 & e.flags), F(e, p) + }), E.length(l) ? { + kind: 2, + types: l, + isNewIdentifier: d + } : void 0) || C(); + case 269: + case 275: + case 280: + return { + kind: 0, + paths: P(e, t, i, a, n, o) + }; + default: + return C() + } + + function C() { + return { + kind: 2, + types: F(E.getContextualTypeFromParent(t, n)), + isNewIdentifier: !1 + } + } + } + + function N(e) { + switch (e.kind) { + case 193: + return E.walkUpParenthesizedTypes(e); + case 214: + return E.walkUpParenthesizedExpressions(e); + default: + return e + } + } + + function A(e) { + return e && { + kind: 1, + symbols: E.filter(e.getApparentProperties(), function(e) { + return !(e.valueDeclaration && E.isPrivateIdentifierClassElementDeclaration(e.valueDeclaration)) + }), + hasIndexSignature: E.hasIndexSignature(e) + } + } + + function F(e, t) { + return void 0 === t && (t = new E.Map), e ? (e = E.skipConstraint(e)).isUnion() ? E.flatMap(e.types, function(e) { + return F(e, t) + }) : !e.isStringLiteral() || 1024 & e.flags || !E.addToSeen(t, e.value) ? E.emptyArray : [e] : E.emptyArray + } + + function T(e, t, r) { + return { + name: e, + kind: t, + extension: r + } + } + + function y(e) { + return T(e, "directory", void 0) + } + + function C(e, t, r) { + n = e, i = t, a = -1 !== (a = Math.max(n.lastIndexOf(E.directorySeparator), n.lastIndexOf(E.altDirectorySeparator))) ? a + 1 : 0; + var n, i, a, o, s = 0 == (o = n.length - a) || E.isIdentifierText(n.substr(a, o), 99) ? void 0 : E.createTextSpan(i + a, o), + c = 0 === e.length ? void 0 : E.createTextSpan(t, e.length); + return r.map(function(e) { + var t = e.name, + r = e.kind, + e = e.extension; + return -1 !== Math.max(t.indexOf(E.directorySeparator), t.indexOf(E.altDirectorySeparator)) ? { + name: t, + kind: r, + extension: e, + span: c + } : { + name: t, + kind: r, + extension: e, + span: s + } + }) + } + + function P(e, t, r, n, i, a) { + return C(t.text, t.getStart(e) + 1, (s = e, c = t, e = r, t = n, r = i, l = a, n = E.normalizeSlashes(c.text), i = E.isStringLiteralLike(c) ? E.getModeForUsageLocation(s, c) : void 0, a = s.path, u = E.getDirectoryPath(a), function(e) { + { + var t; + if (e && 2 <= e.length && 46 === e.charCodeAt(0)) return t = 3 <= e.length && 46 === e.charCodeAt(1) ? 2 : 1, 47 === (e = e.charCodeAt(t)) || 92 === e + } + return + }(n) || !e.baseUrl && (E.isRootedDiskPath(n) || E.isUrl(n)) ? function(e, t, r, n, i, a) { + a = w(r, a); + return r.rootDirs ? function(e, t, r, n, i, a, o) { + var i = i.project || a.getCurrentDirectory(), + s = !(a.useCaseSensitiveFileNames && a.useCaseSensitiveFileNames()), + e = function(e, t, r, n) { + e = e.map(function(e) { + return E.normalizePath(E.isRootedDiskPath(e) ? e : E.combinePaths(t, e)) + }); + var i = E.firstDefined(e, function(e) { + return E.containsPath(e, r, t, n) ? r.substr(e.length) : void 0 + }); + return E.deduplicate(__spreadArray(__spreadArray([], e.map(function(e) { + return E.combinePaths(e, i) + }), !0), [r], !1), E.equateStringsCaseSensitive, E.compareStringsCaseSensitive) + }(e, i, r, s); + return E.flatMap(e, function(e) { + return E.arrayFrom(O(t, e, n, a, o).values()) + }) + }(r.rootDirs, e, t, a, r, n, i) : E.arrayFrom(O(e, t, a, n, i).values()) + }(n, u, e, t, a, o()) : function(o, e, s, t, c, r, n) { + var i = t.baseUrl, + a = t.paths, + l = x(), + u = w(t, r); + i && (r = t.project || c.getCurrentDirectory(), r = E.normalizePath(E.combinePaths(r, i)), O(o, r, u, c, void 0, l), a) && M(l, o, r, u, c, a); + for (var i = R(o), _ = 0, d = function(t, e, r) { + var n, r = r.getAmbientModules().map(function(e) { + return E.stripQuotes(e.name) + }).filter(function(e) { + return E.startsWith(e, t) + }); + return void 0 === e ? r : (n = E.ensureTrailingDirectorySeparator(e), r.map(function(e) { + return E.removePrefix(e, n) + })) + }(o, i, n); _ < d.length; _++) { + var p = d[_]; + l.add(T(p, "external module name", void 0)) + } + if (j(c, t, e, i, u, l), I(t)) { + var f, g = !1; + if (void 0 === i) + for (var m = 0, y = function(e, t) { + if (!e.readFile || !e.fileExists) return E.emptyArray; + for (var r = [], n = 0, i = E.findPackageJsons(t, e); n < i.length; n++) + for (var a = i[n], o = E.readJson(a, e), s = 0, c = b; s < c.length; s++) { + var l = c[s], + u = o[l]; + if (u) + for (var _ in u) E.hasProperty(u, _) && !E.startsWith(_, "@types/") && r.push(_) + } + return r + }(c, e); m < y.length; m++) { + var h = T(y[m], "external module name", void 0); + l.has(h.name) || (g = !0, l.add(h)) + } + g || (r = function(e) { + e = E.combinePaths(e, "node_modules"); + E.tryDirectoryExists(c, e) && O(o, e, u, c, void 0, l) + }, i && function(e) { + return E.getEmitModuleResolutionKind(e) === E.ModuleResolutionKind.Node16 || E.getEmitModuleResolutionKind(e) === E.ModuleResolutionKind.NodeNext + }(t) && (f = r, r = function(e) { + var t = E.getPathComponents(o), + r = (t.shift(), t.shift()); + if (r) { + if (E.startsWith(r, "@")) { + var n = t.shift(); + if (!n) return f(e); + r = E.combinePaths(r, n) + } + n = E.combinePaths(e, "node_modules", r), r = E.combinePaths(n, "package.json"); + if (E.tryFileExists(c, r)) { + var i, a = E.readJson(r, c).exports; + if (a) return "object" != typeof a || null === a ? void 0 : (r = E.getOwnKeys(a), t = t.join("/") + (t.length && E.hasTrailingDirectorySeparator(o) ? "/" : ""), i = s === E.ModuleKind.ESNext ? ["node", "import", "types"] : ["node", "require", "types"], void L(l, t, n, u, c, r, function(e) { + return E.singleElementArray(function e(t, r) { + if ("string" == typeof t) return t; + if (t && "object" == typeof t && !E.isArray(t)) + for (var n in t) + if ("default" === n || -1 < r.indexOf(n) || E.isApplicableVersionedTypesKey(r, n)) return n = t[n], e(n, r) + }(a[e], i)) + }, E.comparePatternKeys)) + } + } + return f(e) + }), E.forEachAncestorDirectory(e, r)) + } + return E.arrayFrom(l.values()) + }(n, u, i, e, t, o(), r))); + + function o() { + var e = E.isStringLiteralLike(c) ? E.getModeForUsageLocation(s, c) : void 0; + return "js" === l.importModuleSpecifierEnding || e === E.ModuleKind.ESNext ? 2 : 0 + } + var s, c, l, u + } + + function w(e, t) { + return void 0 === t && (t = 0), { + extensions: E.flatten((e = e, r = E.getSupportedExtensions(e), I(e) ? E.getSupportedExtensionsWithJsonIfResolveJsonModule(e, r) : r)), + includeExtensionsOption: t + }; + var r + } + + function I(e) { + return E.getEmitModuleResolutionKind(e) === E.ModuleResolutionKind.NodeJs || E.getEmitModuleResolutionKind(e) === E.ModuleResolutionKind.Node16 || E.getEmitModuleResolutionKind(e) === E.ModuleResolutionKind.NodeNext + } + + function O(e, t, r, n, i, a) { + void 0 === a && (a = x()), e = E.normalizeSlashes(e = void 0 === e ? "" : e), "" === (e = E.hasTrailingDirectorySeparator(e) ? e : E.getDirectoryPath(e)) && (e = "." + E.directorySeparator), e = E.ensureTrailingDirectorySeparator(e); + var e = E.resolvePath(t, e), + o = E.hasTrailingDirectorySeparator(e) ? e : E.getDirectoryPath(e), + s = E.findPackageJson(o, n); + if (s) { + var c = E.readJson(s, n).typesVersions; + if ("object" == typeof c) { + c = null == (c = E.getPackageJsonTypesVersionsPaths(c)) ? void 0 : c.paths; + if (c) { + s = E.getDirectoryPath(s); + if (M(a, e.slice(E.ensureTrailingDirectorySeparator(s).length), s, r, n, c)) return a + } + } + } + var l = !(n.useCaseSensitiveFileNames && n.useCaseSensitiveFileNames()); + if (E.tryDirectoryExists(n, o)) { + e = E.tryReadDirectory(n, o, r.extensions, void 0, ["./*"]); + if (e) + for (var u = 0, _ = e; u < _.length; u++) { + var d, p = _[u], + p = E.normalizePath(p); + i && 0 === E.comparePaths(p, i, t, l) || (d = (p = h(E.getBaseFileName(p), n.getCompilationSettings(), r.includeExtensionsOption)).name, p = p.extension, a.add(T(d, "script", p))) + } + s = E.tryGetDirectories(n, o); + if (s) + for (var f = 0, g = s; f < g.length; f++) { + var m = g[f], + m = E.getBaseFileName(E.normalizePath(m)); + "@types" !== m && a.add(y(m)) + } + } + return a + } + + function h(e, t, r) { + t = E.moduleSpecifiers.tryGetJSExtensionForFile(e, t); + return 0 !== r || E.fileExtensionIsOneOf(e, [".json", ".mts", ".cts", ".d.mts", ".d.cts", ".mjs", ".cjs"]) ? (E.fileExtensionIsOneOf(e, [".mts", ".cts", ".d.mts", ".d.cts", ".mjs", ".cjs"]) || 2 === r) && t ? { + name: E.changeExtension(e, t), + extension: t + } : { + name: e, + extension: E.tryGetExtensionFromPath(e) + } : { + name: E.removeFileExtension(e), + extension: E.tryGetExtensionFromPath(e) + } + } + + function M(e, t, r, n, i, a) { + return L(e, t, r, n, i, E.getOwnKeys(a), function(e) { + return a[e] + }, function(e, t) { + var r = E.tryParsePattern(e), + n = E.tryParsePattern(t), + r = ("object" == typeof r ? r.prefix : e).length, + e = ("object" == typeof n ? n.prefix : t).length; + return E.compareValues(e, r) + }) + } + + function L(t, e, r, n, i, a, o, s) { + for (var c, l = [], u = 0, _ = a; u < _.length; u++) { + var d, p, f, g, m = _[u]; + "." !== m && (d = m.replace(/^\.\//, ""), (p = o(m)) && (f = E.tryParsePattern(d))) && (!(g = "object" == typeof f && E.isPatternMatch(f, e)) || void 0 !== c && -1 !== s(m, c) || (c = m, l = l.filter(function(e) { + return !e.matchedPattern + })), "string" != typeof f && void 0 !== c && 1 === s(m, c) || l.push({ + matchedPattern: g, + results: function(e, t, r, n, i, a) { + var o, s; + return E.endsWith(e, "*") ? (o = e.slice(0, e.length - 1), void 0 !== (s = E.tryRemovePrefix(r, o)) ? E.flatMap(t, function(e) { + return B(s, n, e, i, a) + }) : "/" === e[e.length - 2] ? c(o, "directory") : E.flatMap(t, function(e) { + return null == (e = B("", n, e, i, a)) ? void 0 : e.map(function(e) { + var t = e.name, + e = __rest(e, ["name"]); + return __assign({ + name: o + t + }, e) + }) + })) : E.stringContains(e, "*") ? E.emptyArray : c(e, "script"); + + function c(e, t) { + return E.startsWith(e, r) ? [{ + name: E.removeTrailingDirectorySeparator(e), + kind: t, + extension: void 0 + }] : E.emptyArray + } + }(d, p, e, r, n, i).map(function(e) { + return T(e.name, e.kind, e.extension) + }) + })) + } + return l.forEach(function(e) { + return e.results.forEach(function(e) { + return t.add(e) + }) + }), void 0 !== c + } + + function R(e) { + return _(e) ? E.hasTrailingDirectorySeparator(e) ? e : E.getDirectoryPath(e) : void 0 + } + + function B(e, t, r, n, i) { + if (i.readDirectory) { + var a, o, s, c, l, r = E.tryParsePattern(r); + if (void 0 !== r && !E.isString(r)) return a = E.resolvePath(r.prefix), c = E.hasTrailingDirectorySeparator(r.prefix) ? a : E.getDirectoryPath(a), a = E.hasTrailingDirectorySeparator(r.prefix) ? "" : E.getBaseFileName(a), e = (o = _(e)) ? E.hasTrailingDirectorySeparator(e) ? e : E.getDirectoryPath(e) : void 0, e = o ? E.combinePaths(c, a + e) : c, s = E.normalizePath(r.suffix), c = E.normalizePath(E.combinePaths(t, e)), l = o ? c : E.ensureTrailingDirectorySeparator(c) + a, r = E.mapDefined(E.tryReadDirectory(i, c, n.extensions, void 0, [s ? "**/*" + s : "./*"]), function(e) { + var e = function(e) { + e = function(e, t, r) { + return E.startsWith(e, t) && E.endsWith(e, r) ? e.slice(t.length, e.length - r.length) : void 0 + }(E.normalizePath(e), l, s); + return void 0 === e ? void 0 : u(e) + }(e); + if (e) return _(e) ? y(E.getPathComponents(u(e))[1]) : T((e = h(e, i.getCompilationSettings(), n.includeExtensionsOption)).name, "script", e.extension) + }), t = s ? E.emptyArray : E.mapDefined(E.tryGetDirectories(i, c), function(e) { + return "node_modules" === e ? void 0 : y(e) + }), __spreadArray(__spreadArray([], r, !0), t, !0) + } + } + + function u(e) { + return e[0] === E.directorySeparator ? e.slice(1) : e + } + + function j(a, o, e, s, c, l) { + void 0 === l && (l = x()); + for (var u = new E.Map, t = 0, r = E.tryAndIgnoreErrors(function() { + return E.getEffectiveTypeRoots(o, a) + }) || E.emptyArray; t < r.length; t++) d(r[t]); + for (var n = 0, i = E.findPackageJsons(e, a); n < i.length; n++) { + var _ = i[n]; + d(E.combinePaths(E.getDirectoryPath(_), "node_modules/@types")) + } + return l; + + function d(e) { + if (E.tryDirectoryExists(a, e)) + for (var t = 0, r = E.tryGetDirectories(a, e); t < r.length; t++) { + var n = r[t], + i = E.unmangleScopedPackageName(n); + o.types && !E.contains(o.types, i) || (void 0 === s ? u.has(i) || (l.add(T(i, "external module name", void 0)), u.set(i, !0)) : (n = E.combinePaths(e, n), void 0 !== (i = E.tryRemoveDirectoryPrefix(s, i, E.hostGetCanonicalFileName(a))) && O(i, n, c, a, void 0, l))) + } + } + } + + function _(e) { + return E.stringContains(e, E.directorySeparator) + } + k = E.Completions || (E.Completions = {}), e = k.StringCompletions || (k.StringCompletions = {}), n = { + directory: 0, + script: 1, + "external module name": 2 + }, e.getStringLiteralCompletions = function(e, t, r, n, i, a, o, s) { + if (E.isInReferenceComment(e, t)) return (c = function(e, t, r, n) { + var i = E.getTokenAtPosition(e, t), + i = E.getLeadingCommentRanges(e.text, i.pos), + i = i && E.find(i, function(e) { + return t >= e.pos && t <= e.end + }); + if (!i) return; + var a, o, s, c = e.text.slice(i.pos, t), + c = v.exec(c); + if (c) return a = c[1], o = c[2], c = c[3], s = E.getDirectoryPath(e.path), e = "path" === o ? O(c, s, w(r, 1), n, e.path) : "types" === o ? j(n, r, s, R(c), w(r)) : E.Debug.fail(), C(c, i.pos + a.length, E.arrayFrom(e.values())) + }(e, t, n, i)) && D(c); + if (E.isInString(e, t, r) && r && E.isStringLiteralLike(r)) { + var c, l = c = S(e, r, t, a.getTypeChecker(), n, i, s), + u = r, + _ = e, + d = i, + p = a, + f = o, + g = n, + m = s; + if (void 0 !== l) { + var y = E.createTextSpanFromStringLiteralLikeContent(u); + switch (l.kind) { + case 0: + return D(l.paths); + case 1: + var h = E.createSortedArray(); + return k.getCompletionEntriesFromSymbols(l.symbols, h, u, u, _, _, d, p, 99, f, 4, m, g, void 0), { + isGlobalCompletion: !1, + isMemberCompletion: !0, + isNewIdentifierLocation: l.hasIndexSignature, + optionalReplacementSpan: y, + entries: h + }; + case 2: + h = l.types.map(function(e) { + return { + name: e.value, + kindModifiers: "", + kind: "string", + sortText: k.SortText.LocationPriority, + replacementSpan: E.getReplacementSpanForContextToken(u) + } + }); + return { + isGlobalCompletion: !1, + isMemberCompletion: !1, + isNewIdentifierLocation: l.isNewIdentifier, + optionalReplacementSpan: y, + entries: h + }; + default: + return E.Debug.assertNever(l) + } + } + } + }, e.getStringLiteralCompletionDetails = function(e, t, r, n, i, a, o, s, c) { + if (n && E.isStringLiteralLike(n)) return (r = S(t, n, r, i, a, o, c)) && function(t, e, r, n, i, a) { + switch (r.kind) { + case 0: + return (o = E.find(r.paths, function(e) { + return e.name === t + })) && k.createCompletionDetails(t, l(o.extension), o.kind, [E.textPart(t)]); + case 1: + var o; + return (o = E.find(r.symbols, function(e) { + return e.name === t + })) && k.createCompletionDetailsForSymbol(o, i, n, e, a); + case 2: + return E.find(r.types, function(e) { + return e.value === t + }) ? k.createCompletionDetails(t, "", "type", [E.textPart(t)]) : void 0; + default: + return E.Debug.assertNever(r) + } + }(e, n, r, t, i, s) + }, v = /^(\/\/\/\s* se.moduleSpecifierResolutionLimit + } + }), + r = g ? " (".concat((f / g * 100).toFixed(1), "% hit rate)") : ""; + return null != (c = t.log) && c.call(t, "".concat(e, ": resolved ").concat(p, " module specifiers, plus ").concat(d, " ambient and ").concat(f, " from cache").concat(r)), null != (c = t.log) && c.call(t, "".concat(e, ": response is ").concat(_ ? "incomplete" : "complete")), null != (r = t.log) && r.call(t, "".concat(e, ": ").concat(oe.timestamp() - l)), n + } + + function j(e, t) { + var r, n = oe.compareStringsCaseSensitiveUI(e.sortText, t.sortText); + return 0 === (n = 0 === (n = 0 === n ? oe.compareStringsCaseSensitiveUI(e.name, t.name) : n) && null != (r = e.data) && r.moduleSpecifier && null != (r = t.data) && r.moduleSpecifier ? oe.compareNumberOfDirectorySeparators(e.data.moduleSpecifier, t.data.moduleSpecifier) : n) ? -1 : n + } + + function g(e) { + return null != e && e.moduleSpecifier + } + + function m(e) { + return { + isGlobalCompletion: !1, + isMemberCompletion: !1, + isNewIdentifierLocation: !1, + entries: e + } + } + + function le(e, t, r) { + return { + kind: 4, + keywordCompletions: W(e, t), + isNewIdentifierLocation: r + } + } + + function ue(e, t) { + return !oe.isSourceFileJS(e) || !!oe.isCheckJsEnabledForFile(e, t) + } + + function J(e, t, r) { + return "object" == typeof r ? oe.pseudoBigIntToString(r) + "n" : oe.isString(r) ? oe.quote(e, t, r) : JSON.stringify(r) + } + + function q(e, t, r, n, i, a, o, s, c, l, u, _, d, p, f, g, m, y, h, v, b, x) { + var D, S, T, C, E, k, r = oe.getReplacementSpanForContextToken(r), + N = K(u), + A = s.getTypeChecker(), + F = u && !!(16 & u.kind), + P = u && !!(2 & u.kind) || l; + if (u && 1 & u.kind) E = l ? "this".concat(F ? "?." : "", "[").concat(U(a, y, c), "]") : "this".concat(F ? "?." : ".").concat(c); + else if ((P || F) && d) { + E = P ? "[".concat(l ? U(a, y, c) : c, "]") : c, (F || d.questionDotToken) && (E = "?.".concat(E)); + var P = oe.findChildOfKind(d, 24, a) || oe.findChildOfKind(d, 28, a); + if (!P) return; + var w = (oe.startsWith(c, d.name.text) ? d.name : P).end, + r = oe.createTextSpanFromBounds(P.getStart(a), w) + } + if (p && (void 0 === E && (E = c), E = "{".concat(E, "}"), "boolean" != typeof p) && (r = oe.createTextSpanFromNode(p, a)), u && 8 & u.kind && d && (void 0 === E && (E = c), P = "", (w = oe.findPrecedingToken(d.pos, a)) && oe.positionIsASICandidate(w.end, w.parent, a) && (P = ";"), P += "(await ".concat(d.expression.getText(), ")"), E = (l ? "".concat(P) : "".concat(P).concat(F ? "?." : ".")).concat(E), r = oe.createTextSpanFromBounds(d.getStart(a), d.end)), M(u) && (S = [oe.textPart(u.moduleSpecifier)], f) && (E = (p = function(e, t, r, n, i, a, o) { + var s = t.replacementSpan, + c = oe.quote(i, o, r.moduleSpecifier), + r = r.isDefaultExport ? 1 : "export=" === r.exportName ? 2 : 0, + l = o.includeCompletionsWithSnippetText ? "$1" : "", + o = oe.codefix.getImportKind(i, r, a, !0), + i = t.couldBeTypeOnlyImportSpecifier, + u = t.isTopLevelTypeOnly ? " ".concat(oe.tokenToString(154), " ") : " ", + _ = i ? "".concat(oe.tokenToString(154), " ") : "", + d = n ? ";" : ""; + switch (o) { + case 3: + return { + replacementSpan: s, + insertText: "import".concat(u).concat(oe.escapeSnippetText(e)).concat(l, " = require(").concat(c, ")").concat(d) + }; + case 1: + return { + replacementSpan: s, + insertText: "import".concat(u).concat(oe.escapeSnippetText(e)).concat(l, " from ").concat(c).concat(d) + }; + case 2: + return { + replacementSpan: s, + insertText: "import".concat(u, "* as ").concat(oe.escapeSnippetText(e), " from ").concat(c).concat(d) + }; + case 0: + return { + replacementSpan: s, + insertText: "import".concat(u, "{ ").concat(_).concat(oe.escapeSnippetText(e)).concat(l, " } from ").concat(c).concat(d) + } + } + }(c, f, u, g, a, m, y)).insertText, r = p.replacementSpan, k = !!y.includeCompletionsWithSnippetText || void 0), 64 === (null == u ? void 0 : u.kind) && (T = !0), y.includeCompletionsWithClassMemberSnippets && y.includeCompletionsWithInsertText && 3 === h && function(e, t, r) { + if (oe.isInJSFile(t)) return; + return 106500 & e.flags && (oe.isClassLike(t) || t.parent && t.parent.parent && oe.isClassElement(t.parent) && t === t.parent.name && t.parent.getLastToken(r) === t.parent.name && oe.isClassLike(t.parent.parent) || t.parent && oe.isSyntaxList(t) && oe.isClassLike(t.parent)) + }(e, i, a) && (w = void 0, E = (l = B(o, s, m, y, c, e, i, n, v)).insertText, k = l.isSnippet, w = l.importAdder, r = l.replacementSpan, t = se.SortText.ClassMemberSnippets, null != w) && w.hasFixes() && (T = !0, N = I.ClassMemberSnippet), u && R(u) && (E = u.insertText, k = u.isSnippet, C = u.labelDetails, y.useLabelDetailsInCompletionEntries || (c += C.detail, C = void 0), N = I.ObjectLiteralMethodSnippet, t = se.SortText.SortBelow(t)), b && !x && y.includeCompletionsWithSnippetText && y.jsxAttributeCompletionStyle && "none" !== y.jsxAttributeCompletionStyle && (P = "braces" === y.jsxAttributeCompletionStyle, F = A.getTypeOfSymbolAtLocation(e, i), "auto" !== y.jsxAttributeCompletionStyle || 528 & F.flags || 1048576 & F.flags && oe.find(F.types, function(e) { + return !!(528 & e.flags) + }) || (402653316 & F.flags || 1048576 & F.flags && oe.every(F.types, function(e) { + return !!(402686084 & e.flags) + }) ? (E = "".concat(oe.escapeSnippetText(c), "=").concat(oe.quote(a, y, "$1")), k = !0) : P = !0), P) && (E = "".concat(oe.escapeSnippetText(c), "={$1}"), k = !0), void 0 === E || y.includeCompletionsWithInsertText) return (O(u) || M(u)) && (D = z(u), T = !f), { + name: c, + kind: oe.SymbolDisplay.getSymbolKind(A, e, i), + kindModifiers: oe.SymbolDisplay.getSymbolModifiers(A, e), + sortText: t, + source: N, + hasAction: !!T || void 0, + isRecommended: (d = A, (g = e) === (p = _) || !!(1048576 & g.flags) && d.getExportSymbolOfSymbol(g) === p || void 0), + insertText: E, + replacementSpan: r, + sourceDisplay: S, + labelDetails: C, + isSnippet: k, + isPackageJsonImport: (O(h = u) || M(h)) && !!h.isFromPackageJson || void 0, + isImportStatementCompletion: !!f || void 0, + data: D + } + } + + function B(e, t, r, n, i, a, o, s, c) { + var l, u, _, d, p, f, g, m, y, h, v, b = oe.findAncestor(o, oe.isClassLike); + return b ? (v = i, l = t.getTypeChecker(), o = o.getSourceFile(), r = x({ + removeComments: !0, + module: r.module, + target: r.target, + omitTrailingSemicolon: !1, + newLine: oe.getNewLineKind(oe.getNewLineCharacter(r, oe.maybeBind(e, e.getNewLine))) + }), u = oe.codefix.createImportAdder(o, t, n, e), n.includeCompletionsWithSnippetText ? (_ = !0, f = oe.factory.createEmptyStatement(), d = oe.factory.createBlock([f], !0), oe.setSnippetElement(f, { + kind: 0, + order: 0 + })) : d = oe.factory.createBlock([], !0), p = 0, f = function(e) { + if (!e) return { + modifiers: 0 + }; + var t, r, n = 0; + (r = function(e) { + if (oe.isModifier(e)) return e.kind; + if (oe.isIdentifier(e) && e.originalKeywordKind && oe.isModifierKind(e.originalKeywordKind)) return e.originalKeywordKind; + return + }(e)) && (n |= oe.modifierToFlag(r), t = oe.createTextSpanFromNode(e)); + oe.isPropertyDeclaration(e.parent) && (n |= 126975 & oe.modifiersToFlags(e.parent.modifiers), t = oe.createTextSpanFromNode(e.parent)); + return { + modifiers: n, + span: t + } + }(s), g = f.modifiers, s = f.span, y = [], oe.codefix.addNewNodeForMemberSymbol(a, b, o, { + program: t, + host: e + }, n, u, function(e) { + var t = 0; + m && (t |= 256), oe.isClassElement(e) && 1 === l.getMemberOverrideModifierStatus(b, e) && (t |= 16384), y.length || (p = e.modifierFlagsCache | t | g), e = oe.factory.updateModifiers(e, p), y.push(e) + }, d, 2, m = !!(256 & g)), y.length && (h = s, v = c ? r.printAndFormatSnippetList(131073, oe.factory.createNodeArray(y), o, c) : r.printSnippetList(131073, oe.factory.createNodeArray(y), o)), { + insertText: v, + isSnippet: _, + importAdder: u, + replacementSpan: h + }) : { + insertText: i + } + } + + function be(e, t, r, n, i, a, o, s) { + var c = o.includeCompletionsWithSnippetText || void 0, + l = r.getSourceFile(), + e = function(e, t, r, n, i, a) { + var o = e.getDeclarations(); + if (!o || !o.length) return; + var s = n.getTypeChecker(), + o = o[0], + c = oe.getSynthesizedDeepClone(oe.getNameOfDeclaration(o), !1), + l = s.getWidenedType(s.getTypeOfSymbolAtLocation(e, t)), + u = 33554432 | (0 === oe.getQuotePreference(r, a) ? 268435456 : 0); + switch (o.kind) { + case 168: + case 169: + case 170: + case 171: + var _, d = 1048576 & l.flags && l.types.length < 10 ? s.getUnionType(l.types, 2) : l; + if (1048576 & d.flags) { + var p = oe.filter(d.types, function(e) { + return 0 < s.getSignaturesOfType(e, 0).length + }); + if (1 !== p.length) return; + d = p[0] + } + return 1 !== s.getSignaturesOfType(d, 0).length ? void 0 : (p = s.typeToTypeNode(d, t, u, oe.codefix.getNoopSymbolTrackerWithResolver({ + program: n, + host: i + }))) && oe.isFunctionTypeNode(p) ? (d = void 0, a.includeCompletionsWithSnippetText ? (_ = oe.factory.createEmptyStatement(), d = oe.factory.createBlock([_], !0), oe.setSnippetElement(_, { + kind: 0, + order: 0 + })) : d = oe.factory.createBlock([], !0), _ = p.parameters.map(function(e) { + return oe.factory.createParameterDeclaration(void 0, e.dotDotDotToken, e.name, void 0, void 0, e.initializer) + }), oe.factory.createMethodDeclaration(void 0, void 0, c, void 0, void 0, _, void 0, d)) : void 0; + default: + return + } + }(e, r, l, n, i, o); + if (e) return r = x({ + removeComments: !0, + module: a.module, + target: a.target, + omitTrailingSemicolon: !1, + newLine: oe.getNewLineKind(oe.getNewLineCharacter(a, oe.maybeBind(i, i.getNewLine))) + }), t = s ? r.printAndFormatSnippetList(80, oe.factory.createNodeArray([e], !0), l, s) : r.printSnippetList(80, oe.factory.createNodeArray([e], !0), l), n = oe.createPrinter({ + removeComments: !0, + module: a.module, + target: a.target, + omitTrailingSemicolon: !0 + }), o = oe.factory.createMethodSignature(void 0, "", e.questionToken, e.typeParameters, e.parameters, e.type), { + isSnippet: c, + insertText: t, + labelDetails: { + detail: n.printNode(4, o, l) + } + } + } + + function x(e) { + var o, i = oe.textChanges.createWriter(oe.getNewLineCharacter(e)), + n = oe.createPrinter(e, i), + a = __assign(__assign({}, i), { + write: function(e) { + return r(e, function() { + i.write(e) + }) + }, + nonEscapingWrite: i.write, + writeLiteral: function(e) { + return r(e, function() { + i.writeLiteral(e) + }) + }, + writeStringLiteral: function(e) { + return r(e, function() { + i.writeStringLiteral(e) + }) + }, + writeSymbol: function(e, t) { + return r(e, function() { + i.writeSymbol(e, t) + }) + }, + writeParameter: function(e) { + return r(e, function() { + i.writeParameter(e) + }) + }, + writeComment: function(e) { + return r(e, function() { + i.writeComment(e) + }) + }, + writeProperty: function(e) { + return r(e, function() { + i.writeProperty(e) + }) + } + }); + return { + printSnippetList: function(e, t, r) { + e = s(e, t, r); + return o ? oe.textChanges.applyChanges(e, o) : e + }, + printAndFormatSnippetList: function(e, t, r, n) { + var i = { + text: s(e, t, r), + getLineAndCharacterOfPosition: function(e) { + return oe.getLineAndCharacterOfPosition(this, e) + } + }, + a = oe.getFormatCodeSettingsForWriting(n, r), + e = oe.flatMap(t, function(e) { + e = oe.textChanges.assignPositionsToNode(e); + return oe.formatting.formatNodeGivenIndentation(e, i, r.languageVariant, 0, 0, __assign(__assign({}, n), { + options: a + })) + }), + t = o ? oe.stableSort(oe.concatenate(e, o), function(e, t) { + return oe.compareTextSpans(e.span, t.span) + }) : e; + return oe.textChanges.applyChanges(i.text, t) + } + }; + + function r(e, t) { + var r, n = oe.escapeSnippetText(e); + n !== e ? (e = i.getTextPos(), t(), r = i.getTextPos(), o = oe.append(o = o || [], { + newText: n, + span: { + start: e, + length: r - e + } + })) : t() + } + + function s(e, t, r) { + return o = void 0, a.clear(), n.writeList(e, t, r, a), a.getText() + } + } + + function z(e) { + var t = e.fileName ? void 0 : oe.stripQuotes(e.moduleSymbol.name), + r = !!e.isFromPackageJson || void 0; + return M(e) ? { + exportName: e.exportName, + moduleSpecifier: e.moduleSpecifier, + ambientModuleName: t, + fileName: e.fileName, + isPackageJsonImport: r + } : { + exportName: e.exportName, + exportMapKey: e.exportMapKey, + fileName: e.fileName, + ambientModuleName: e.fileName ? void 0 : oe.stripQuotes(e.moduleSymbol.name), + isPackageJsonImport: !!e.isFromPackageJson || void 0 + } + } + + function U(e, t, r) { + return /^\d+$/.test(r) ? r : oe.quote(e, t, r) + } + + function K(e) { + return O(e) ? oe.stripQuotes(e.moduleSymbol.name) : M(e) ? e.moduleSpecifier : 1 === (null == e ? void 0 : e.kind) ? I.ThisProperty : 64 === (null == e ? void 0 : e.kind) ? I.TypeOnlyAlias : void 0 + } + + function V(e, t, r, n, i, a, o, s, c, l, u, _, d, p, f, g, m, y, h, v, b, x, D, S) { + for (var T = oe.timestamp(), C = oe.findAncestor(i, function(e) { + return oe.isFunctionBlock(e) || (t = e).parent && oe.isArrowFunction(t.parent) && t.parent.body === t || oe.isBindingPattern(e) ? "quit" : oe.isVariableDeclaration(e); + var t + }), E = oe.probablyUsesSemicolons(a), k = s.getTypeChecker(), N = new oe.Map, A = 0; A < e.length; A++) { + var F, P, w = e[A], + I = null == b ? void 0 : b[A], + O = pe(w, c, I, u, !!m); + O && (!N.get(O.name) || I && R(I)) && (1 !== u || !x || function(e, t) { + var r = e.flags; + if (!oe.isSourceFile(i)) { + if (oe.isExportAssignment(i.parent)) return 1; + if (C && e.valueDeclaration === C) return; + var n = oe.skipAlias(e, k); + if (a.externalModuleIndicator && !d.allowUmdGlobalAccess && t[oe.getSymbolId(e)] === se.SortText.GlobalsOrKeywords && (t[oe.getSymbolId(n)] === se.SortText.AutoImportSuggestions || t[oe.getSymbolId(n)] === se.SortText.LocationPriority)) return; + if (r |= oe.getCombinedLocalAndExportSymbolFlags(n), oe.isInRightSideOfInternalImportEqualsDeclaration(i)) return 1920 & r; + if (f) return ve(e, k) + } + return 111551 & r + }(w, x)) && (F = O.name, O = O.needsConvertPropertyAccess, P = null != (P = null == x ? void 0 : x[oe.getSymbolId(w)]) ? P : se.SortText.LocationPriority, P = q(w, function(e, t) { + e = oe.skipAlias(e, t).declarations; + return oe.length(e) && oe.every(e, oe.isDeprecatedDeclaration) + }(w, k) ? se.SortText.Deprecated(P) : P, r, n, i, a, o, s, F, O, I, v, g, y, h, E, d, _, u, p, D, S)) && (O = (!I || L(I)) && !(void 0 === w.parent && !oe.some(w.declarations, function(e) { + return e.getSourceFile() === i.getSourceFile() + })), N.set(F, O), oe.insertSorted(t, P, j, !0)) + } + return l("getCompletionsAtPosition: getCompletionEntriesFromSymbols: " + (oe.timestamp() - T)), { + has: function(e) { + return N.has(e) + }, + add: function(e) { + return N.set(e, !0) + } + } + } + + function S(e, t, r, n, i, a, o) { + if (i.data) { + var s = b(i.name, i.data, e, a); + if (s) return l = (c = de(n, r)).contextToken, c = c.previousToken, { + type: "symbol", + symbol: s.symbol, + location: oe.getTouchingPropertyName(r, n), + previousToken: c, + contextToken: l, + isJsxInitializer: !1, + isTypeOnlyLocation: !1, + origin: s.origin + } + } + var c, l, u, _, d, p, f, g, m, y = e.getCompilerOptions(), + h = v(e, t, r, y, n, { + includeCompletionsForModuleExports: !0, + includeCompletionsWithInsertText: !0 + }, i, a, void 0); + return h ? 0 !== h.kind ? { + type: "request", + request: h + } : (c = h.symbols, l = h.literals, u = h.location, _ = h.completionKind, d = h.symbolToOriginInfoMap, p = h.contextToken, f = h.previousToken, g = h.isJsxInitializer, m = h.isTypeOnlyLocation, void 0 !== (s = oe.find(l, function(e) { + return J(r, o, e) === i.name + })) ? { + type: "literal", + literal: s + } : oe.firstDefined(c, function(e, t) { + var t = d[t], + r = pe(e, oe.getEmitScriptTarget(y), t, _, h.isJsxIdentifierExpected); + return r && r.name === i.name && (i.source === I.ClassMemberSnippet && 106500 & e.flags || i.source === I.ObjectLiteralMethodSnippet && 8196 & e.flags || K(t) === i.source) ? { + type: "symbol", + symbol: e, + location: u, + origin: t, + contextToken: p, + previousToken: f, + isJsxInitializer: g, + isTypeOnlyLocation: m + } : void 0 + }) || { + type: "none" + }) : { + type: "none" + } + } + + function T(e, t, r) { + return u(e, "", t, [oe.displayPart(e, r)]) + } + + function C(t, e, r, n, i, a, o) { + var i = e.runWithCancellationToken(i, function(e) { + return oe.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(e, t, r, n, n, 7) + }), + s = i.displayParts, + c = i.documentation, + l = i.symbolKind, + i = i.tags; + return u(t.name, oe.SymbolDisplay.getSymbolModifiers(e, t), l, s, c, i, a, o) + } + + function u(e, t, r, n, i, a, o, s) { + return { + name: e, + kindModifiers: t, + kind: r, + displayParts: n, + documentation: i, + tags: a, + codeActions: o, + source: s, + sourceDisplay: s + } + } + + function _e(e, t, r) { + var n = r.getAccessibleSymbolChain(e, t, 67108863, !1); + return n ? oe.first(n) : e.parent && (null != (n = (n = e.parent).declarations) && n.some(function(e) { + return 308 === e.kind + }) ? e : _e(e.parent, t, r)) + } + + function v(_, e, g, s, d, m, c, p, L, R) { + var B, y = _.getTypeChecker(), + j = ue(g, s), + t = oe.timestamp(), + r = oe.getTokenAtPosition(g, d), + n = (e("getCompletionData: Get current token: " + (oe.timestamp() - t)), t = oe.timestamp(), oe.isInComment(g, d, r)), + h = (e("getCompletionData: Is inside comment: " + (oe.timestamp() - t)), !1), + J = !1; + if (n) { + if (oe.hasDocComment(g, d)) { + if (64 === g.text.charCodeAt(d - 1)) return { + kind: 1 + }; + var n = oe.getLineStartPositionForPosition(d, g); + if (!/[^\*|\s(/)]/.test(g.text.substring(n, d))) return { + kind: 2 + } + } + n = r, B = d; + n = oe.findAncestor(n, function(e) { + return !(!oe.isJSDocTag(e) || !oe.rangeContainsPosition(e, B)) || !!oe.isJSDoc(e) && "quit" + }); + if (n) { + if (n.tagName.pos <= d && d <= n.tagName.end) return { + kind: 1 + }; + var i = function(e) { + if (function(e) { + switch (e.kind) { + case 343: + case 350: + case 344: + case 346: + case 348: + return 1; + case 347: + return e.constraint; + default: + return + } + }(e)) return (e = oe.isJSDocTemplateTag(e) ? e.constraint : e.typeExpression) && 312 === e.kind ? e : void 0; + return + }(n); + if (!(h = !i || (r = oe.getTokenAtPosition(g, d)) && (oe.isDeclarationName(r) || 350 === r.parent.kind && r.parent.name === r) ? h : M(i)) && oe.isJSDocParameterTag(n) && (oe.nodeIsMissing(n.name) || n.name.pos <= d && d <= n.name.end)) return { + kind: 3, + tag: n + } + } + if (!h) return void e("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.") + } + var l, t = oe.timestamp(), + i = !h && oe.isSourceFileJS(g), + n = de(d, g), + u = n.previousToken, + v = n.contextToken, + b = (e("getCompletionData: Get previous token: " + (oe.timestamp() - t)), r), + x = !1, + D = !1, + f = !1, + z = !1, + a = !1, + o = !1, + S = oe.getTouchingPropertyName(g, d), + T = 0, + C = !1, + E = 0; + if (v) { + n = Se(v); + if (n.keywordCompletion) { + if (n.isKeywordOnlyCompletion) return { + kind: 4, + keywordCompletions: [(t = n.keywordCompletion, { + name: oe.tokenToString(t), + kind: "keyword", + kindModifiers: "", + sortText: se.SortText.GlobalsOrKeywords + })], + isNewIdentifierLocation: n.isNewIdentifierLocation + }; + T = function(e) { + if (154 === e) return 8; + oe.Debug.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters") + }(n.keywordCompletion) + } + if (n.replacementSpan && m.includeCompletionsForImportStatements && m.includeCompletionsWithInsertText && (E |= 2, C = (l = n).isNewIdentifierLocation), !n.replacementSpan && (t = v, n = oe.timestamp(), t = function(e) { + return (oe.isRegularExpressionLiteral(e) || oe.isStringTextContainingNode(e)) && (oe.rangeContainsPositionExclusive(oe.createTextRangeFromSpan(oe.createTextSpanFromNode(e)), d) || d === e.end && (!!e.isUnterminated || oe.isRegularExpressionLiteral(e))) + }(t) || function(e) { + var t = e.parent, + r = t.kind; + switch (e.kind) { + case 27: + return 257 === r || function(e) { + return 258 === e.parent.kind && !oe.isPossiblyTypeArgumentPosition(e, g, y) + }(e) || 240 === r || 263 === r || re(r) || 261 === r || 204 === r || 262 === r || oe.isClassLike(t) && !!t.typeParameters && t.typeParameters.end >= e.pos; + case 24: + return 204 === r; + case 58: + return 205 === r; + case 22: + return 204 === r; + case 20: + return 295 === r || re(r); + case 18: + return 263 === r; + case 29: + return 260 === r || 228 === r || 261 === r || 262 === r || oe.isFunctionLikeKind(r); + case 124: + return 169 === r && !oe.isClassLike(t.parent); + case 25: + return 166 === r || !!t.parent && 204 === t.parent.kind; + case 123: + case 121: + case 122: + return 166 === r && !oe.isConstructorDeclaration(t.parent); + case 128: + return 273 === r || 278 === r || 271 === r; + case 137: + case 151: + return !he(e); + case 79: + if (273 === r && e === t.name && "type" === e.text) return !1; + break; + case 84: + case 92: + case 118: + case 98: + case 113: + case 100: + case 119: + case 85: + case 138: + return !0; + case 154: + return 273 !== r; + case 41: + return oe.isFunctionLike(e.parent) && !oe.isMethodDeclaration(e.parent) + } + if (fe(ge(e)) && he(e)) return !1; + if (ee(e) && (!oe.isIdentifier(e) || oe.isParameterPropertyModifier(ge(e)) || M(e))) return !1; + switch (ge(e)) { + case 126: + case 84: + case 85: + case 136: + case 92: + case 98: + case 118: + case 119: + case 121: + case 122: + case 123: + case 124: + case 113: + return !0; + case 132: + return oe.isPropertyDeclaration(e.parent) + } + if (oe.findAncestor(e.parent, oe.isClassLike) && e === u && te(e, d)) return !1; + var n = oe.getAncestor(e.parent, 169); + if (n && e !== u && oe.isClassLike(u.parent.parent) && d <= u.end) { + if (te(e, u.end)) return !1; + if (63 !== e.kind && (oe.isInitializedProperty(n) || oe.hasType(n))) return !0 + } + return oe.isDeclarationName(e) && !oe.isShorthandPropertyAssignment(e.parent) && !oe.isJsxAttribute(e.parent) && !(oe.isClassLike(e.parent) && (e !== u || d > u.end)) + }(t) || function(e) { + return 8 === e.kind && "." === (e = e.getFullText()).charAt(e.length - 1) + }(t) || function(e) { + if (11 === e.kind) return !0; + if (31 === e.kind && e.parent) { + if (S === e.parent && (283 === S.kind || 282 === S.kind)) return !1; + if (283 === e.parent.kind) return 283 !== S.parent.kind; + if (284 === e.parent.kind || 282 === e.parent.kind) return !!e.parent.parent && 281 === e.parent.parent.kind + } + return !1 + }(t) || oe.isBigIntLiteral(t), e("getCompletionsAtPosition: isCompletionListBlocker: " + (oe.timestamp() - n)), t)) return e("Returning an empty list because completion was requested in an invalid position."), T ? le(T, i, $()) : void 0; + var k = v.parent; + if (24 === v.kind || 28 === v.kind) switch (x = 24 === v.kind, D = 28 === v.kind, k.kind) { + case 208: + var N, b = (N = k).expression, + U = oe.getLeftmostAccessExpression(N); + if (oe.nodeIsMissing(U) || (oe.isCallExpression(b) || oe.isFunctionLike(b)) && b.end === v.pos && b.getChildCount(g) && 21 !== oe.last(b.getChildren(g)).kind) return; + break; + case 163: + b = k.left; + break; + case 264: + b = k.name; + break; + case 202: + b = k; + break; + case 233: + b = k.getFirstToken(g), oe.Debug.assert(100 === b.kind || 103 === b.kind); + break; + default: + return + } else if (!l) { + if (k && 208 === k.kind && (k = (v = k).parent), r.parent === S) switch (r.kind) { + case 31: + 281 !== r.parent.kind && 283 !== r.parent.kind || (S = r); + break; + case 43: + 282 === r.parent.kind && (S = r) + } + switch (k.kind) { + case 284: + 43 === v.kind && (z = !0, S = v); + break; + case 223: + if (!De(k)) break; + case 282: + case 281: + case 283: + o = !0, 29 === v.kind && (f = !0, S = v); + break; + case 291: + case 290: + 19 === u.kind && 31 === r.kind && (o = !0); + break; + case 288: + if (k.initializer === u && u.end < d) o = !0; + else switch (u.kind) { + case 63: + a = !0; + break; + case 79: + o = !0, k !== u.parent && !k.initializer && oe.findChildOfKind(k, 63, g) && (a = u) + } + } + } + } + var A, n = oe.timestamp(), + F = 5, + K = !1, + V = !1, + P = [], + w = [], + I = [], + q = new oe.Map, + O = h || !!l && oe.isTypeOnlyImportOrExportDeclaration(S.parent) || ! function(e) { + return e && (112 === e.kind && (183 === e.parent.kind || oe.isTypeOfExpression(e.parent)) || 129 === e.kind && 179 === e.parent.kind) + }(v) && (oe.isPossiblyTypeArgumentPosition(v, g, y) || oe.isPartOfTypeNode(S) || function(e) { + if (e) { + var t = e.parent.kind; + switch (e.kind) { + case 58: + return 169 === t || 168 === t || 166 === t || 257 === t || oe.isFunctionLikeKind(t); + case 63: + return 262 === t; + case 128: + return 231 === t; + case 29: + return 180 === t || 213 === t; + case 94: + return 165 === t; + case 150: + return 235 === t + } + } + return !1 + }(v)), + W = oe.memoizeOne(function(e) { + return oe.createModuleSpecifierResolutionHost(e ? p.getPackageJsonAutoImportProvider() : _, p) + }); + if (x || D) ! function() { + F = 2; + var t = oe.isLiteralImportTypeNode(b), + e = h || t && !b.isTypeOf || oe.isPartOfTypeNode(b.parent) || oe.isPossiblyTypeArgumentPosition(v, g, y), + r = oe.isInRightSideOfInternalImportEqualsDeclaration(b); + if (oe.isEntityName(b) || t || oe.isPropertyAccessExpression(b)) { + var n = oe.isModuleDeclaration(b.parent), + i = (n && (C = !0), y.getSymbolAtLocation(b)); + if (i && 1920 & (i = oe.skipAlias(i, y)).flags) { + for (var a = y.getExportsOfModule(i), o = (oe.Debug.assertEachIsDefined(a, "getExportsOfModule() should all be defined"), function(e) { + return y.isValidPropertyAccess(t ? b : b.parent, e.name) + }), s = function(e) { + return ve(e, y) + }, c = n ? function(e) { + return !(!(1920 & e.flags) || null != (e = e.declarations) && e.every(function(e) { + return e.parent === b.parent + })) + } : r ? function(e) { + return s(e) || o(e) + } : e ? s : o, l = 0, u = a; l < u.length; l++) { + var _ = u[l]; + c(_) && P.push(_) + } + return !e && i.declarations && i.declarations.some(function(e) { + return 308 !== e.kind && 264 !== e.kind && 263 !== e.kind + }) && (d = y.getTypeOfSymbolAtLocation(i, b).getNonOptionalType(), p = !1, d.isNullableType() && ((f = x && !D && !1 !== m.includeAutomaticOptionalChainCompletions) || D) && (d = d.getNonNullableType(), f) && (p = !0), Q(d, !!(32768 & b.flags), p)) + } + } { + var d, p, f; + e || (y.tryGetThisTypeAt(b, !1), d = y.getTypeAtLocation(b).getNonOptionalType(), p = !1, d.isNullableType() && ((f = x && !D && !1 !== m.includeAutomaticOptionalChainCompletions) || D) && (d = d.getNonNullableType(), f) && (p = !0), Q(d, !!(32768 & b.flags), p)) + } + }(); + else if (f) P = y.getJsxIntrinsicTagNamesAt(S), oe.Debug.assertEachIsDefined(P, "getJsxIntrinsicTagNames() should all be defined"), Y(), F = 1, T = 0; + else if (z) { + t = v.parent.parent.openingElement.tagName, t = y.getSymbolAtLocation(t); + t && (P = [t]), F = 1, T = 0 + } else if (!Y()) return T ? le(T, i, C) : void 0; + e("getCompletionData: Semantic work: " + (oe.timestamp() - n)); + var H, G, t = u && function(e, t, r, n) { + var i = e.parent; + switch (e.kind) { + case 79: + return oe.getContextualTypeFromParent(e, n); + case 63: + switch (i.kind) { + case 257: + return n.getContextualType(i.initializer); + case 223: + return n.getTypeAtLocation(i.left); + case 288: + return n.getContextualTypeForJsxAttribute(i); + default: + return + } + case 103: + return n.getContextualType(i); + case 82: + var a = oe.tryCast(i, oe.isCaseClause); + return a ? oe.getSwitchedType(a, n) : void 0; + case 18: + return !oe.isJsxExpression(i) || oe.isJsxElement(i.parent) || oe.isJsxFragment(i.parent) ? void 0 : n.getContextualTypeForJsxAttribute(i.parent); + default: + a = oe.SignatureHelp.getArgumentInfoForCompletions(e, t, r); + return a ? n.getContextualTypeForArgumentAtIndex(a.invocation, a.argumentIndex + (27 === e.kind ? 1 : 0)) : oe.isEqualityOperatorKind(e.kind) && oe.isBinaryExpression(i) && oe.isEqualityOperatorKind(i.operatorToken.kind) ? n.getTypeAtLocation(i.left) : n.getContextualType(e) + } + }(u, d, g, y), + i = oe.mapDefined(t && (t.isUnion() ? t.types : [t]), function(e) { + return !e.isLiteral() || 1024 & e.flags ? void 0 : e.value + }), + n = u && t && (H = u, e = t, G = y, oe.firstDefined(e && (e.isUnion() ? e.types : [e]), function(e) { + e = e && e.symbol; + return e && 424 & e.flags && !oe.isAbstractConstructorSymbol(e) ? _e(e, H, G) : void 0 + })); + return { + kind: 0, + symbols: P, + completionKind: F, + isInSnippetScope: J, + propertyAccessToConvert: N, + isNewIdentifierLocation: C, + location: S, + keywordFilters: T, + literals: i, + symbolToOriginInfoMap: w, + recommendedCompletion: n, + previousToken: u, + contextToken: v, + isJsxInitializer: a, + insideJsDocTagTypeExpression: h, + symbolToSortTextMap: I, + isTypeOnlyLocation: O, + isJsxIdentifierExpected: o, + isRightOfOpenTag: f, + importStatementCompletion: l, + hasUnresolvedAutoImports: V, + flags: E + }; + + function Q(t, e, r) { + C = !!t.getStringIndexType(), D && oe.some(t.getCallSignatures()) && (C = !0); + var n = 202 === b.kind ? b : b.parent; + if (j) + for (var i = 0, a = t.getApparentProperties(); i < a.length; i++) { + var o = a[i]; + y.isValidPropertyAccessForCompletions(n, t, o) && X(o, !1, r) + } else P.push.apply(P, oe.filter(ye(t, y), function(e) { + return y.isValidPropertyAccessForCompletions(n, t, e) + })); + if (e && m.includeCompletionsWithInsertText) { + var s = y.getPromisedTypeOfPromise(t); + if (s) + for (var c = 0, l = s.getApparentProperties(); c < l.length; c++) { + o = l[c]; + y.isValidPropertyAccessForCompletions(n, s, o) && X(o, !0, r) + } + } + } + + function X(e, t, r) { + var n, i, a, o, s = oe.firstDefined(e.declarations, function(e) { + return oe.tryCast(oe.getNameOfDeclaration(e), oe.isComputedPropertyName) + }); + + function c(e) { + var t; + (t = e).valueDeclaration && 32 & oe.getEffectiveModifierFlags(t.valueDeclaration) && oe.isClassLike(t.valueDeclaration.parent) && (I[oe.getSymbolId(e)] = se.SortText.LocalDeclarationPriority) + } + + function l(e) { + m.includeCompletionsWithInsertText && (t && oe.addToSeen(q, oe.getSymbolId(e)) ? w[P.length] = { + kind: u(8) + } : r && (w[P.length] = { + kind: 16 + })) + } + + function u(e) { + return r ? 16 | e : e + } + s ? (s = (s = (s = function e(t) { + return oe.isIdentifier(t) ? t : oe.isPropertyAccessExpression(t) ? e(t.expression) : void 0 + }(s.expression)) && y.getSymbolAtLocation(s)) && _e(s, v, y)) && oe.addToSeen(q, oe.getSymbolId(s)) ? (n = P.length, P.push(s), (o = s.parent) && oe.isExternalModuleSymbol(o) && y.tryGetMemberInModuleExportsAndProperties(s.name, o) === s ? (i = !oe.isExternalModuleNameRelative(oe.stripQuotes(o.name)) || null == (i = oe.getSourceFileOfModule(o)) ? void 0 : i.fileName, (a = ((A = A || oe.codefix.createImportSpecifierResolver(g, _, p, m)).getModuleSpecifierForBestExportInfo([{ + exportKind: 0, + moduleFileName: i, + isFromPackageJson: !1, + moduleSymbol: o, + symbol: s, + targetFlags: oe.skipAlias(s, y).flags + }], s.name, d, oe.isValidTypeOnlyAliasUseSite(S)) || {}).moduleSpecifier) && (o = { + kind: u(6), + moduleSymbol: o, + isDefaultExport: !1, + symbolName: s.name, + exportName: s.name, + fileName: i, + moduleSpecifier: a + }, w[n] = o)) : w[n] = { + kind: u(2) + }) : m.includeCompletionsWithInsertText && (l(e), c(e), P.push(e)) : (l(e), c(e), P.push(e)) + } + + function Y() { + var e, n, t, r, i; + return 1 === (((i = function(e) { + if (e) { + var t = e.parent; + switch (e.kind) { + case 18: + if (oe.isTypeLiteralNode(t)) return t; + break; + case 26: + case 27: + case 79: + if (168 === t.kind && oe.isTypeLiteralNode(t.parent)) return t.parent + } + } + return + }(v)) && (i = (oe.isIntersectionTypeNode(i.parent) ? i.parent : void 0) || i, t = function e(t, r) { + if (!t) return; + if (oe.isTypeNode(t) && oe.isTypeReferenceType(t.parent)) return r.getTypeArgumentConstraint(t); + var n = e(t.parent, r); + if (!n) return; + switch (t.kind) { + case 168: + return r.getTypeOfPropertyOfContextualType(n, t.symbol.escapedName); + case 190: + case 184: + case 189: + return n + } + }(i, y)) ? (i = y.getTypeFromTypeNode(i), t = ye(t, y), i = ye(i, y), r = new oe.Set, i.forEach(function(e) { + return r.add(e.escapedName) + }), P = oe.concatenate(P, oe.filter(t, function(e) { + return !r.has(e.escapedName) + })), C = !(F = 0), 1) : 0) || function() { + var e = P.length, + t = function(e) { + if (e) { + var t = e.parent; + switch (e.kind) { + case 18: + case 27: + if (oe.isObjectLiteralExpression(t) || oe.isObjectBindingPattern(t)) return t; + break; + case 41: + return oe.isMethodDeclaration(t) ? oe.tryCast(t.parent, oe.isObjectLiteralExpression) : void 0; + case 79: + return "async" === e.text && oe.isShorthandPropertyAssignment(e.parent) ? e.parent.parent : void 0 + } + } + return + }(v); + if (!t) return 0; + if (F = 0, 207 === t.kind) { + var r = function(e, t) { + var r = t.getContextualType(e); + if (r) return r; + r = oe.walkUpParenthesizedExpressions(e.parent); + if (oe.isBinaryExpression(r) && 63 === r.operatorToken.kind && e === r.left) return t.getTypeAtLocation(r); + if (oe.isExpression(r)) return t.getContextualType(r); + return + }(t, y); + if (void 0 === r) return 33554432 & t.flags ? 2 : (K = !0, 0); + var n = y.getContextualType(t, 4), + i = (n || r).getStringIndexType(), + a = (n || r).getNumberIndexType(); + if (C = !!i || !!a, i = me(r, n, t, y), r = t.properties, 0 === i.length && !a) return K = !0, 0 + } else { + oe.Debug.assert(203 === t.kind), C = !1; + n = oe.getRootDeclaration(t.parent); + if (!oe.isVariableLike(n)) return oe.Debug.fail("Root declaration is not variable-like."); + a = oe.hasInitializer(n) || !!oe.getEffectiveTypeAnnotationNode(n) || 247 === n.parent.parent.kind; + if (a || 166 !== n.kind || (oe.isExpression(n.parent) ? a = !!y.getContextualType(n.parent) : 171 !== n.parent.kind && 175 !== n.parent.kind || (a = oe.isExpression(n.parent.parent) && !!y.getContextualType(n.parent.parent))), a) { + var o = y.getTypeAtLocation(t); + if (!o) return 2; + i = y.getPropertiesOfType(o).filter(function(e) { + return y.isPropertyAccessible(t, !1, !1, o, e) + }), r = t.elements + } + } + i && 0 < i.length && (n = function(e, t) { + if (0 === t.length) return e; + for (var r = new oe.Set, n = new oe.Set, i = 0, a = t; i < a.length; i++) { + var o, s = a[i]; + 299 !== s.kind && 300 !== s.kind && 205 !== s.kind && 171 !== s.kind && 174 !== s.kind && 175 !== s.kind && 301 !== s.kind || M(s) || (o = void 0, oe.isSpreadAssignment(s) ? ne(s, r) : oe.isBindingElement(s) && s.propertyName ? 79 === s.propertyName.kind && (o = s.propertyName.escapedText) : (s = oe.getNameOfDeclaration(s), o = s && oe.isPropertyNameLiteral(s) ? oe.getEscapedTextOfIdentifierOrLiteral(s) : void 0), void 0 !== o && n.add(o)) + } + t = e.filter(function(e) { + return !n.has(e.escapedName) + }); + return ae(r, t), t + }(i, oe.Debug.checkDefined(r)), P = oe.concatenate(P, n), ie(), 207 === t.kind) && m.includeCompletionsWithObjectLiteralMethodSnippets && m.includeCompletionsWithInsertText && (function(e) { + for (var t = e; t < P.length; t++) { + var r = P[t], + n = oe.getSymbolId(r), + i = null == w ? void 0 : w[t], + a = oe.getEmitScriptTarget(s), + r = pe(r, a, i, 0, !1); + r && (i = null != (a = I[n]) ? a : se.SortText.LocationPriority, a = r.name, I[n] = se.SortText.ObjectLiteralProperty(i, a)) + } + }(e), function(e, r) { + oe.isInJSFile(S) || e.forEach(function(e) { + var t; + 8196 & e.flags && (t = pe(e, oe.getEmitScriptTarget(s), void 0, 0, !1)) && (t = be(e, t.name, r, _, p, s, m, L)) && (t = __assign({ + kind: 128 + }, t), E |= 32, w[P.length] = t, P.push(e)) + }) + }(n, t)); + return 1 + }() || (l ? (C = !0, Z(), 1) : 0) || function() { + if (!v) return 0; + var e = 18 === v.kind || 27 === v.kind ? oe.tryCast(v.parent, oe.isNamedImportsOrExports) : oe.isTypeKeywordTokenOrIdentifier(v) ? oe.tryCast(v.parent.parent, oe.isNamedImportsOrExports) : void 0; + if (!e) return 0; + oe.isTypeKeywordTokenOrIdentifier(v) || (T = 8); + var t = (272 === e.kind ? e.parent : e).parent.moduleSpecifier; + if (!t) return C = !0, 272 === e.kind ? 2 : 0; + t = y.getSymbolAtLocation(t); + if (!t) return C = !0, 2; + F = 3, C = !1; + var t = y.getExportsAndPropertiesOfModule(t), + r = new oe.Set(e.elements.filter(function(e) { + return !M(e) + }).map(function(e) { + return (e.propertyName || e.name).escapedText + })), + e = t.filter(function(e) { + return "default" !== e.escapedName && !r.has(e.escapedName) + }); + P = oe.concatenate(P, e), e.length || (T = 0); + return 1 + }() || ((i = !v || 18 !== v.kind && 27 !== v.kind ? void 0 : oe.tryCast(v.parent, oe.isNamedExports)) ? (n = oe.findAncestor(i, oe.or(oe.isSourceFile, oe.isModuleDeclaration)), C = !(F = 5), null != (i = n.locals) && i.forEach(function(e, t) { + var r; + P.push(e), null != (r = null == (r = n.symbol) ? void 0 : r.exports) && r.has(t) && (I[oe.getSymbolId(e)] = se.SortText.OptionalMember) + }), 1) : 0) || (function(e) { + if (e) { + var t = e.parent; + switch (e.kind) { + case 20: + case 27: + return oe.isConstructorDeclaration(e.parent) && e.parent; + default: + if (ee(e)) return t.parent + } + } + return + }(v) ? (F = 5, C = !0, T = 4, 1) : 0) || function() { + var t = function(e, t, r, n) { + switch (r.kind) { + case 351: + return oe.tryCast(r.parent, oe.isObjectTypeDeclaration); + case 1: + var i = oe.tryCast(oe.lastOrUndefined(oe.cast(r.parent, oe.isSourceFile).statements), oe.isObjectTypeDeclaration); + if (i && !oe.findChildOfKind(i, 19, e)) return i; + break; + case 79: + i = r.originalKeywordKind; + if (i && oe.isKeyword(i)) return; + if (oe.isPropertyDeclaration(r.parent) && r.parent.initializer === r) return; + if (he(r)) return oe.findAncestor(r, oe.isObjectTypeDeclaration) + } + if (!t) return; + if (135 === r.kind || oe.isIdentifier(t) && oe.isPropertyDeclaration(t.parent) && oe.isClassLike(r)) return oe.findAncestor(t, oe.isClassLike); + switch (t.kind) { + case 63: + return; + case 26: + case 19: + return he(r) && r.parent.name === r ? r.parent.parent : oe.tryCast(r, oe.isObjectTypeDeclaration); + case 18: + case 27: + return oe.tryCast(t.parent, oe.isObjectTypeDeclaration); + default: + var a; + return he(t) ? (a = oe.isClassLike(t.parent.parent) ? fe : xe)(t.kind) || 41 === t.kind || oe.isIdentifier(t) && a(oe.stringToToken(t.text)) ? t.parent.parent : void 0 : oe.getLineAndCharacterOfPosition(e, t.getEnd()).line !== oe.getLineAndCharacterOfPosition(e, n).line && oe.isObjectTypeDeclaration(r) ? r : void 0 + } + }(g, v, S, d); + if (!t) return 0; + if (F = 3, C = true, T = v.kind === 41 ? 0 : oe.isClassLike(t) ? 2 : 3, oe.isClassLike(t)) { + var e = (26 === v.kind ? v.parent : v).parent, + r = oe.isClassElement(e) ? oe.getEffectiveModifierFlags(e) : 0; + if (79 === v.kind && !M(v)) switch (v.getText()) { + case "private": + r |= 8; + break; + case "static": + r |= 32; + break; + case "override": + r |= 16384 + } + oe.isClassStaticBlockDeclaration(e) && (r |= 32), 8 & r || (e = oe.isClassLike(t) && 16384 & r ? oe.singleElementArray(oe.getEffectiveBaseTypeNode(t)) : oe.getAllSuperTypeNodes(t), e = oe.flatMap(e, function(e) { + e = y.getTypeAtLocation(e); + return 32 & r ? (null == e ? void 0 : e.symbol) && y.getPropertiesOfType(y.getTypeOfSymbolAtLocation(e.symbol, t)) : e && y.getPropertiesOfType(e) + }), P = oe.concatenate(P, function(e, t, r) { + for (var n = new oe.Set, i = 0, a = t; i < a.length; i++) { + var o = a[i]; + 169 !== o.kind && 171 !== o.kind && 174 !== o.kind && 175 !== o.kind || M(o) || oe.hasEffectiveModifier(o, 8) || oe.isStatic(o) === !!(32 & r) && (o = oe.getPropertyNameForPropertyNameNode(o.name)) && n.add(o) + } + return e.filter(function(e) { + return !(n.has(e.escapedName) || !e.declarations || 8 & oe.getDeclarationModifierFlagsFromSymbol(e) || e.valueDeclaration && oe.isPrivateIdentifierClassElementDeclaration(e.valueDeclaration)) + }) + }(e, t.members, r))) + } + return 1 + }() || (t = function(e) { + if (e) { + var t = e.parent; + switch (e.kind) { + case 31: + case 30: + case 43: + case 79: + case 208: + case 289: + case 288: + case 290: + if (t && (282 === t.kind || 283 === t.kind)) { + if (31 === e.kind) { + var r = oe.findPrecedingToken(e.pos, g, void 0); + if (!t.typeArguments || r && 43 === r.kind) break + } + return t + } + if (288 === t.kind) return t.parent.parent; + break; + case 10: + if (!t || 288 !== t.kind && 290 !== t.kind) break; + return t.parent.parent; + case 19: + if (t && 291 === t.kind && t.parent && 288 === t.parent.kind) return t.parent.parent.parent; + if (t && 290 === t.kind) return t.parent.parent + } + } + return + }(v), (i = t && y.getContextualType(t.attributes)) ? (e = t && y.getContextualType(t.attributes, 4), P = oe.concatenate(P, function(e, t) { + for (var r = new oe.Set, n = new oe.Set, i = 0, a = t; i < a.length; i++) { + var o = a[i]; + M(o) || (288 === o.kind ? r.add(o.name.escapedText) : oe.isJsxSpreadAttribute(o) && ne(o, n)) + } + t = e.filter(function(e) { + return !r.has(e.escapedName) + }); + return ae(n, t), t + }(me(i, e, t.attributes, y), t.attributes.properties)), ie(), C = !(F = 3), 1) : 0) || (function() { + T = function(e) { + { + var t; + if (e) return oe.findAncestor(e.parent, function(e) { + return oe.isClassLike(e) ? "quit" : !(!oe.isFunctionLikeDeclaration(e) || t !== e.body) || (t = e, !1) + }) + } + }(v) ? 5 : 1, F = 1, C = $(), u !== v && oe.Debug.assert(!!u, "Expected 'contextToken' to be defined when different from 'previousToken'."); + var e = u !== v ? u.getStart() : d, + e = function(e, t, r) { + var n = e; + for (; n && !oe.positionBelongsToNode(n, t, r);) n = n.parent; + return n + }(v, e, g) || g, + t = (J = function(e) { + switch (e.kind) { + case 308: + case 225: + case 291: + case 238: + return !0; + default: + return oe.isStatement(e) + } + }(e), 2887656 | (O ? 0 : 111551)), + r = u && !oe.isValidTypeOnlyAliasUseSite(u); + P = oe.concatenate(P, y.getSymbolsInScope(e, t)), oe.Debug.assertEachIsDefined(P, "getSymbolsInScope() should all be defined"); + for (var n = 0; n < P.length; n++) { + var i, a = P[n]; + y.isArgumentsSymbol(a) || oe.some(a.declarations, function(e) { + return e.getSourceFile() === g + }) || (I[oe.getSymbolId(a)] = se.SortText.GlobalsOrKeywords), !r || 111551 & a.flags || (i = a.declarations && oe.find(a.declarations, oe.isTypeOnlyImportOrExportDeclaration)) && (i = { + kind: 64, + declaration: i + }, w[n] = i) + } + if (m.includeCompletionsWithInsertText && 308 !== e.kind) { + t = y.tryGetThisTypeAt(e, !1, oe.isClassLike(e.parent) ? e : void 0); + if (t && ! function(e, t, r) { + var n = r.resolveName("self", void 0, 111551, !1); + if (n && r.getTypeOfSymbolAtLocation(n, t) === e) return 1; + n = r.resolveName("global", void 0, 111551, !1); + if (n && r.getTypeOfSymbolAtLocation(n, t) === e) return 1; + n = r.resolveName("globalThis", void 0, 111551, !1); + if (n && r.getTypeOfSymbolAtLocation(n, t) === e) return 1; + return + }(t, g, y)) + for (var o = 0, s = ye(t, y); o < s.length; o++) { + a = s[o]; + w[P.length] = { + kind: 1 + }, P.push(a), I[oe.getSymbolId(a)] = se.SortText.SuggestedClassMembers + } + } + Z(), O && (T = v && oe.isAssertionExpression(v.parent) ? 6 : 7) + }(), 1)) + } + + function Z() { + var e, r, n, t, i, a; + + function s(e) { + var t = oe.tryCast(e.moduleSymbol.valueDeclaration, oe.isSourceFile); + return t ? oe.isImportableFile(e.isFromPackageJson ? i : _, g, t, m, a, W(e.isFromPackageJson), n) : (t = oe.stripQuotes(e.moduleSymbol.name), (!oe.JsTyping.nodeCoreModules.has(t) || oe.startsWith(t, "node:") === oe.shouldUseUriStyleNodeCoreModules(g, _)) && (!a || a.allowsImportingAmbientModule(e.moduleSymbol, W(e.isFromPackageJson)))) + }(l || !K && m.includeCompletionsForModuleExports && (g.externalModuleIndicator || g.commonJsModuleIndicator || oe.compilerOptionsIndicateEsModules(_.getCompilerOptions()) || oe.programContainsModules(_))) && (oe.Debug.assert(!(null != c && c.data), "Should not run 'collectAutoImports' when faster path is available via `data`"), c && !c.source || (E |= 1, r = !(u === v && l) && u && oe.isIdentifier(u) ? u.text.toLowerCase() : "", n = null == (e = p.getModuleSpecifierCache) ? void 0 : e.call(p), t = oe.getExportInfoMap(g, p, _, m, R), i = null == (e = p.getPackageJsonAutoImportProvider) ? void 0 : e.call(p), a = c ? void 0 : oe.createPackageJsonImportFilter(g, m, p), ce("collectAutoImports", p, A = A || oe.codefix.createImportSpecifierResolver(g, _, p, m), _, d, m, !!l, oe.isValidTypeOnlyAliasUseSite(S), function(o) { + t.search(g.path, f, function(e, t) { + return !!oe.isIdentifierText(e, oe.getEmitScriptTarget(p.getCompilationSettings())) && !(!c && oe.isStringANonContextualKeyword(e) || !(O || l || 111551 & t) || O && !(790504 & t) || (t = e.charCodeAt(0), f && (t < 65 || 90 < t))) && (!!c || Te(e, r)) + }, function(e, t, r, n) { + var i, a; + c && !oe.some(e, function(e) { + return c.source === oe.stripQuotes(e.moduleSymbol.name) + }) || (i = oe.find(e, s)) && "failed" !== (e = o.tryResolve(e, t, r) || {}) && (r = i, "skipped" !== e && (r = void 0 === (a = e.exportInfo) ? i : a, a = e.moduleSpecifier), e = (i = 1 === r.exportKind) && oe.getLocalSymbolForExportDefault(r.symbol) || r.symbol, e = e, a = { + kind: a ? 32 : 4, + moduleSpecifier: a, + symbolName: t, + exportMapKey: n, + exportName: 2 === r.exportKind ? "export=" : r.symbol.name, + fileName: r.moduleFileName, + isDefaultExport: i, + moduleSymbol: r.moduleSymbol, + isFromPackageJson: r.isFromPackageJson + }, t = oe.getSymbolId(e), I[t] !== se.SortText.GlobalsOrKeywords) && (w[P.length] = a, I[t] = l ? se.SortText.LocationPriority : se.SortText.AutoImportSuggestions, P.push(e)) + }), V = o.skippedAny(), E = (E |= o.resolvedAny() ? 8 : 0) | (o.resolvedBeyondLimit() ? 16 : 0) + }))) + } + + function $() { + if (v) { + var e = v.parent.kind, + t = ge(v); + switch (t) { + case 27: + return 210 === e || 173 === e || 211 === e || 206 === e || 223 === e || 181 === e || 207 === e; + case 20: + return 210 === e || 173 === e || 211 === e || 214 === e || 193 === e; + case 22: + return 206 === e || 178 === e || 164 === e; + case 142: + case 143: + case 100: + return !0; + case 24: + return 264 === e; + case 18: + return 260 === e || 207 === e; + case 63: + return 257 === e || 223 === e; + case 15: + return 225 === e; + case 16: + return 236 === e; + case 132: + return 171 === e || 300 === e; + case 41: + return 171 === e + } + if (fe(t)) return !0 + } + return !1 + } + + function ee(e) { + return e.parent && oe.isParameter(e.parent) && oe.isConstructorDeclaration(e.parent.parent) && (oe.isParameterPropertyModifier(e.kind) || oe.isDeclarationName(e)) + } + + function te(e, t) { + return 63 !== e.kind && (26 === e.kind || !oe.positionsAreOnSameLine(e.end, t, g)) + } + + function re(e) { + return oe.isFunctionLikeKind(e) && 173 !== e + } + + function ne(e, t) { + var e = e.expression, + r = y.getSymbolAtLocation(e), + r = r && y.getTypeOfSymbolAtLocation(r, e), + e = r && r.properties; + e && e.forEach(function(e) { + t.add(e.name) + }) + } + + function ie() { + P.forEach(function(e) { + 16777216 & e.flags && (e = oe.getSymbolId(e), I[e] = null != (e = I[e]) ? e : se.SortText.OptionalMember) + }) + } + + function ae(e, t) { + if (0 !== e.size) + for (var r = 0, n = t; r < n.length; r++) { + var i = n[r]; + e.has(i.name) && (I[oe.getSymbolId(i)] = se.SortText.MemberDeclaredBySpreadAssignment) + } + } + + function M(e) { + return e.getStart(g) <= d && d <= e.getEnd() + } + } + + function de(e, t) { + var r = oe.findPrecedingToken(e, t); + return r && e <= r.end && (oe.isMemberName(r) || oe.isKeyword(r.kind)) ? { + contextToken: oe.findPrecedingToken(r.getFullStart(), t, void 0), + previousToken: r + } : { + contextToken: r, + previousToken: r + } + } + + function b(e, t, r, n) { + n = t.isPackageJsonImport ? n.getPackageJsonAutoImportProvider() : r, r = n.getTypeChecker(), n = t.ambientModuleName ? r.tryFindAmbientModule(t.ambientModuleName) : t.fileName ? r.getMergedSymbol(oe.Debug.checkDefined(n.getSourceFile(t.fileName)).symbol) : void 0; + if (n) { + var i, r = "export=" === t.exportName ? r.resolveExternalModuleSymbol(n) : r.tryGetMemberInModuleExportsAndProperties(t.exportName, n); + if (r) return { + symbol: "default" === t.exportName && oe.getLocalSymbolForExportDefault(r) || r, + origin: (r = e, e = n, t = "default" === (n = t).exportName, i = !!n.isPackageJsonImport, g(n) ? { + kind: 32, + exportName: n.exportName, + moduleSpecifier: n.moduleSpecifier, + symbolName: r, + fileName: n.fileName, + moduleSymbol: e, + isDefaultExport: t, + isFromPackageJson: i + } : { + kind: 4, + exportName: n.exportName, + exportMapKey: n.exportMapKey, + symbolName: r, + fileName: n.fileName, + moduleSymbol: e, + isDefaultExport: t, + isFromPackageJson: i + }) + } + } + } + + function pe(e, t, r, n, i) { + var a, o = O(a = r) || M(a) ? r.symbolName : e.name; + if (!(void 0 === o || 1536 & e.flags && oe.isSingleOrDoubleQuote(o.charCodeAt(0)) || oe.isKnownSymbol(e))) { + var s = { + name: o, + needsConvertPropertyAccess: !1 + }; + if (oe.isIdentifierText(o, t, i ? 1 : 0) || e.valueDeclaration && oe.isPrivateIdentifierClassElementDeclaration(e.valueDeclaration)) return s; + switch (n) { + case 3: + return; + case 0: + return { + name: JSON.stringify(o), + needsConvertPropertyAccess: !1 + }; + case 2: + case 1: + return 32 === o.charCodeAt(0) ? void 0 : { + name: o, + needsConvertPropertyAccess: !0 + }; + case 5: + case 4: + return s; + default: + oe.Debug.assertNever(n) + } + } + } + + function W(e, t) { + return t ? n[t = e + 8 + 1] || (n[t] = r(e).filter(function(e) { + switch (oe.stringToToken(e.name)) { + case 126: + case 131: + case 160: + case 134: + case 136: + case 92: + case 159: + case 117: + case 138: + case 118: + case 140: + case 141: + case 142: + case 143: + case 144: + case 148: + case 149: + case 161: + case 121: + case 122: + case 123: + case 146: + case 152: + case 153: + case 154: + case 156: + case 157: + return !1; + default: + return !void 0 + } + return !0 + })) : r(e) + } + + function r(r) { + return n[r] || (n[r] = D().filter(function(e) { + var t = oe.stringToToken(e.name); + switch (r) { + case 0: + return !1; + case 1: + return i(t) || 136 === t || 142 === t || 154 === t || 143 === t || 126 === t || oe.isTypeKeyword(t) && 155 !== t; + case 5: + return i(t); + case 2: + return fe(t); + case 3: + return xe(t); + case 4: + return oe.isParameterPropertyModifier(t); + case 6: + return oe.isTypeKeyword(t) || 85 === t; + case 7: + return oe.isTypeKeyword(t); + case 8: + return 154 === t; + default: + return oe.Debug.assertNever(r) + } + })) + } + + function xe(e) { + return 146 === e + } + + function fe(e) { + switch (e) { + case 126: + case 127: + case 135: + case 137: + case 151: + case 132: + case 136: + case 161: + return !0; + default: + return oe.isClassMemberModifier(e) + } + } + + function i(e) { + return 132 === e || 133 === e || 128 === e || 150 === e || 154 === e || !oe.isContextualKeyword(e) && !fe(e) + } + + function ge(e) { + return oe.isIdentifier(e) ? e.originalKeywordKind || 0 : e.kind + } + + function me(e, t, r, n) { + var i, a, o = t && t !== e, + e = !o || 3 & t.flags ? e : n.getUnionType([e, t]), + n = (i = r, a = n, (t = e).isUnion() ? a.getAllPossiblePropertiesOfTypes(oe.filter(t.types, function(e) { + return !(131068 & e.flags || a.isArrayLikeType(e) || a.isTypeInvalidDueToUnionDiscriminant(e, i) || oe.typeHasCallOrConstructSignatures(e, a) || e.isClass() && s(e.getApparentProperties())) + })) : t.getApparentProperties()); + return e.isClass() && s(n) ? [] : o ? oe.filter(n, function(e) { + return !oe.length(e.declarations) || oe.some(e.declarations, function(e) { + return e.parent !== r + }) + }) : n + } + + function s(e) { + return oe.some(e, function(e) { + return !!(24 & oe.getDeclarationModifierFlagsFromSymbol(e)) + }) + } + + function ye(e, t) { + return e.isUnion() ? oe.Debug.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types), "getAllPossiblePropertiesOfTypes() should all be defined") : oe.Debug.checkEachDefined(e.getApparentProperties(), "getApparentProperties() should all be defined") + } + + function he(e) { + return e.parent && oe.isClassOrTypeElement(e.parent) && oe.isObjectTypeDeclaration(e.parent.parent) + } + + function De(e) { + e = e.left; + return oe.nodeIsMissing(e) + } + + function Se(t) { + var e, r, n = !1, + i = function() { + var e = t.parent; + if (oe.isImportEqualsDeclaration(e)) return r = 154 === t.kind ? void 0 : 154, a(e.moduleReference) ? e : void 0; + if (c(e, t) && l(e.parent)) return e; + if (oe.isNamedImports(e) || oe.isNamespaceImport(e)) { + if (e.parent.isTypeOnly || 18 !== t.kind && 100 !== t.kind && 27 !== t.kind || (r = 154), l(e)) { + if (19 !== t.kind && 79 !== t.kind) return e.parent.parent; + n = !0, r = 158 + } + } else { + if (oe.isImportKeyword(t) && oe.isSourceFile(e)) return r = 154, t; + if (oe.isImportKeyword(t) && oe.isImportDeclaration(e)) return r = 154, a(e.moduleSpecifier) ? e : void 0 + } + return + }(); + return { + isKeywordOnlyCompletion: n, + keywordCompletion: r, + isNewIdentifierLocation: !(!i && 154 !== r), + isTopLevelTypeOnly: !(null == (e = null == (e = oe.tryCast(i, oe.isImportDeclaration)) ? void 0 : e.importClause) || !e.isTypeOnly) || !(null == (e = oe.tryCast(i, oe.isImportEqualsDeclaration)) || !e.isTypeOnly), + couldBeTypeOnlyImportSpecifier: !!i && c(i, t), + replacementSpan: function(e) { + if (!e) return; + var t = null != (t = oe.findAncestor(e, oe.or(oe.isImportDeclaration, oe.isImportEqualsDeclaration))) ? t : e, + e = t.getSourceFile(); + if (oe.rangeIsOnSingleLine(t, e)) return oe.createTextSpanFromNode(t, e); + oe.Debug.assert(100 !== t.kind && 273 !== t.kind); + var r = 269 === t.kind ? null != (r = o(null == (r = t.importClause) ? void 0 : r.namedBindings)) ? r : t.moduleSpecifier : t.moduleReference, + t = { + pos: t.getFirstToken().getStart(), + end: r.pos + }; + if (oe.rangeIsOnSingleLine(t, e)) return oe.createTextSpanFromRange(t) + }(i) + } + } + + function o(t) { + var e; + return oe.find(null == (e = oe.tryCast(t, oe.isNamedImports)) ? void 0 : e.elements, function(e) { + return !e.propertyName && oe.isStringANonContextualKeyword(e.name.text) && 27 !== (null == (e = oe.findPrecedingToken(e.name.pos, t.getSourceFile(), t)) ? void 0 : e.kind) + }) + } + + function c(e, t) { + return oe.isImportSpecifier(e) && (e.isTypeOnly || t === e.name && oe.isTypeKeywordTokenOrIdentifier(t)) + } + + function l(e) { + var t; + return a(e.parent.parent.moduleSpecifier) && !e.parent.name && (!oe.isNamedImports(e) || ((t = o(e)) ? e.elements.indexOf(t) : e.elements.length) < 2) + } + + function a(e) { + return oe.nodeIsMissing(e) || null == (e = oe.tryCast(oe.isExternalModuleReference(e) ? e.expression : e, oe.isStringLiteralLike)) || !e.text + } + + function ve(e, t, r) { + return void 0 === r && (r = new oe.Map), n(e) || n(oe.skipAlias(e.exportSymbol || e, t)); + + function n(e) { + return !!(788968 & e.flags) || t.isUnknownSymbol(e) || !!(1536 & e.flags) && oe.addToSeen(r, oe.getSymbolId(e)) && t.getExportsOfModule(e).some(function(e) { + return ve(e, t, r) + }) + } + } + + function Te(e, t) { + if (0 === t.length) return !0; + for (var r, n = !1, i = 0, a = e.length, o = 0; o < a; o++) { + var s = e.charCodeAt(o), + c = t.charCodeAt(i); + if ((s === c || s === function(e) { + if (97 <= e && e <= 122) return e - 32; + return e + }(c)) && ((n = n || void 0 === r || 97 <= r && r <= 122 && 65 <= s && s <= 90 || 95 === r && 95 !== s) && i++, i === t.length)) return !0; + r = s + } + return !1 + }(se = oe.Completions || (oe.Completions = {})).moduleSpecifierResolutionLimit = 100, se.moduleSpecifierResolutionCacheAttemptLimit = 1e3, se.SortText = { + LocalDeclarationPriority: "10", + LocationPriority: "11", + OptionalMember: "12", + MemberDeclaredBySpreadAssignment: "13", + SuggestedClassMembers: "14", + GlobalsOrKeywords: "15", + AutoImportSuggestions: "16", + ClassMemberSnippets: "17", + JavascriptIdentifiers: "18", + Deprecated: function(e) { + return "z" + e + }, + ObjectLiteralProperty: function(e, t) { + return "".concat(e, "\0").concat(t, "\0") + }, + SortBelow: function(e) { + return e + "1" + } + }, (e = I = se.CompletionSource || (se.CompletionSource = {})).ThisProperty = "ThisProperty/", e.ClassMemberSnippet = "ClassMemberSnippet/", e.TypeOnlyAlias = "TypeOnlyAlias/", e.ObjectLiteralMethodSnippet = "ObjectLiteralMethodSnippet/", (e = { + ThisType: 1, + 1: "ThisType", + SymbolMember: 2, + 2: "SymbolMember", + Export: 4, + 4: "Export", + Promise: 8, + 8: "Promise", + Nullable: 16, + 16: "Nullable", + ResolvedExport: 32, + 32: "ResolvedExport", + TypeOnlyAlias: 64, + 64: "TypeOnlyAlias", + ObjectLiteralMethod: 128, + 128: "ObjectLiteralMethod", + SymbolMemberNoExport: 2 + })[2] = "SymbolMemberNoExport", e[e.SymbolMemberExport = 6] = "SymbolMemberExport", se.getCompletionsAtPosition = function(e, t, r, n, i, a, o, s, c, l) { + var u = de(i, n).previousToken; + if (!o || oe.isInString(n, i, u) || function(e, t, r, n) { + switch (t) { + case ".": + case "@": + return 1; + case '"': + case "'": + case "`": + return r && oe.isStringLiteralOrTemplate(r) && n === r.getStart(e) + 1; + case "#": + return r && oe.isPrivateIdentifier(r) && oe.getContainingClass(r); + case "<": + return r && 29 === r.kind && (!oe.isBinaryExpression(r.parent) || De(r.parent)); + case "/": + return r && (oe.isStringLiteralLike(r) ? oe.tryGetImportFromModuleSpecifier(r) : 43 === r.kind && oe.isJsxClosingElement(r.parent)); + case " ": + return r && oe.isImportKeyword(r) && 308 === r.parent.kind; + default: + return oe.Debug.assertNever(t) + } + }(n, o, u, i)) { + if (" " === o) return a.includeCompletionsForImportStatements && a.includeCompletionsWithInsertText ? { + isGlobalCompletion: !0, + isMemberCompletion: !1, + isNewIdentifierLocation: !0, + isIncomplete: !0, + entries: [] + } : void 0; + var _ = t.getCompilerOptions(), + d = !a.allowIncompleteCompletions || null == (o = e.getIncompleteCompletionsCache) ? void 0 : o.call(e); + if (d && 3 === s && u && oe.isIdentifier(u)) { + o = function(e, i, t, a, o, r, n) { + var s, c, l = e.get(); + if (l) return s = t.text.toLowerCase(), c = oe.getExportInfoMap(i, o, a, r, n), e = ce("continuePreviousIncompleteResponse", o, oe.codefix.createImportSpecifierResolver(i, a, o, r), a, t.getStart(), r, !1, oe.isValidTypeOnlyAliasUseSite(t), function(n) { + var e = oe.mapDefined(l.entries, function(e) { + var t, r; + return e.hasAction && e.source && e.data && !g(e.data) ? Te(e.name, s) ? (r = oe.Debug.checkDefined(b(e.name, e.data, a, o)).origin, "skipped" === (t = (t = c.get(i.path, e.data.exportMapKey)) && n.tryResolve(t, e.name, !oe.isExternalModuleNameRelative(oe.stripQuotes(r.moduleSymbol.name)))) ? e : t && "failed" !== t ? (r = __assign(__assign({}, r), { + kind: 32, + moduleSpecifier: t.moduleSpecifier + }), e.data = z(r), e.source = K(r), e.sourceDisplay = [oe.textPart(r.moduleSpecifier)], e) : void(null != (t = o.log) && t.call(o, "Unexpected failure resolving auto import for '".concat(e.name, "' from '").concat(e.source, "'")))) : void 0 : e + }); + return n.skippedAny() || (l.isIncomplete = void 0), e + }), l.entries = e, l.flags = 4 | (l.flags || 0), l + }(d, n, u, t, e, a, c); + if (o) return o + } else null != d && d.clear(); + s = se.StringCompletions.getStringLiteralCompletions(n, i, u, _, e, t, r, a); + if (s) return s; + if (u && oe.isBreakOrContinueStatement(u.parent) && (81 === u.kind || 86 === u.kind || 79 === u.kind)) return (o = function(e) { + var t = [], + r = new oe.Map, + n = e; + for (; n && !oe.isFunctionLike(n);) { + var i; + oe.isLabeledStatement(n) && (i = n.label.text, r.has(i) || (r.set(i, !0), t.push({ + name: i, + kindModifiers: "", + kind: "label", + sortText: se.SortText.LocationPriority + }))), n = n.parent + } + return t + }(o = u.parent)).length ? { + isGlobalCompletion: !1, + isMemberCompletion: !1, + isNewIdentifierLocation: !1, + entries: o + } : void 0; + var p = v(t, r, n, _, i, a, void 0, e, l, c); + if (p) switch (p.kind) { + case 0: + var f = function(e, t, r, n, i, a, o, s, c) { + var l = a.symbols, + u = a.contextToken, + _ = a.completionKind, + d = a.isInSnippetScope, + p = a.isNewIdentifierLocation, + f = a.location, + g = a.propertyAccessToConvert, + m = a.keywordFilters, + y = a.literals, + h = a.symbolToOriginInfoMap, + v = a.recommendedCompletion, + b = a.isJsxInitializer, + x = a.isTypeOnlyLocation, + D = a.isJsxIdentifierExpected, + S = a.isRightOfOpenTag, + T = a.importStatementCompletion, + L = a.insideJsDocTagTypeExpression, + R = a.symbolToSortTextMap, + B = a.hasUnresolvedAutoImports; + if (1 === oe.getLanguageVariant(e.scriptKind)) { + var C = function(e, t) { + e = oe.findAncestor(e, function(e) { + switch (e.kind) { + case 284: + return !0; + case 43: + case 31: + case 79: + case 208: + return !1; + default: + return "quit" + } + }); { + var r; + if (e) return r = !!oe.findChildOfKind(e, 31, t), t = e.parent.openingElement.tagName.getText(t) + (r ? "" : ">"), r = oe.createTextSpanFromNode(e.tagName), { + isGlobalCompletion: !(e = { + name: t, + kind: "class", + kindModifiers: void 0, + sortText: se.SortText.LocationPriority + }), + isMemberCompletion: !0, + isNewIdentifierLocation: !1, + optionalReplacementSpan: r, + entries: [e] + } + } + }(f, e); + if (C) return C + } + var E = oe.createSortedArray(), + C = ue(e, n); + if (C && !p && (!l || 0 === l.length) && 0 === m) return; + var k = V(l, E, void 0, u, f, e, t, r, oe.getEmitScriptTarget(n), i, _, o, n, s, x, g, D, b, T, v, h, R, D, S); + if (0 !== m) + for (var N = 0, A = W(m, !L && oe.isSourceFileJS(e)); N < A.length; N++) { + var F = A[N]; + (x && oe.isTypeKeyword(oe.stringToToken(F.name)) || !k.has(F.name)) && (k.add(F.name), oe.insertSorted(E, F, j, !0)) + } + for (var P = 0, w = function(e, t) { + var r = []; { + var n, i, a; + e && (a = e.getSourceFile(), n = e.parent, i = a.getLineAndCharacterOfPosition(e.end).line, a = a.getLineAndCharacterOfPosition(t).line, oe.isImportDeclaration(n) || oe.isExportDeclaration(n) && n.moduleSpecifier) && e === n.moduleSpecifier && i === a && r.push({ + name: oe.tokenToString(130), + kind: "keyword", + kindModifiers: "", + sortText: se.SortText.GlobalsOrKeywords + }) + } + return r + }(u, c); P < w.length; P++) { + F = w[P]; + k.has(F.name) || (k.add(F.name), oe.insertSorted(E, F, j, !0)) + } + for (var I = 0, O = y; I < O.length; I++) { + var M = O[I], + M = function(e, t, r) { + return { + name: J(e, t, r), + kind: "string", + kindModifiers: "", + sortText: se.SortText.LocationPriority + } + }(e, o, M); + k.add(M.name), oe.insertSorted(E, M, j, !0) + } + C || ! function(e, r, n, i, a) { + oe.getNameTable(e).forEach(function(e, t) { + e !== r && (e = oe.unescapeLeadingUnderscores(t), !n.has(e)) && oe.isIdentifierText(e, i) && (n.add(e), oe.insertSorted(a, { + name: e, + kind: "warning", + kindModifiers: "", + sortText: se.SortText.JavascriptIdentifiers, + isFromUncheckedFile: !0 + }, j)) + }) + }(e, f.pos, k, oe.getEmitScriptTarget(n), E); + return { + flags: a.flags, + isGlobalCompletion: d, + isIncomplete: !(!o.allowIncompleteCompletions || !B) || void 0, + isMemberCompletion: function(e) { + switch (e) { + case 0: + case 3: + case 2: + return !0; + default: + return !1 + } + }(_), + isNewIdentifierLocation: p, + optionalReplacementSpan: function(e) { + return 79 === (null == e ? void 0 : e.kind) ? oe.createTextSpanFromNode(e) : void 0 + }(f), + entries: E + } + }(n, e, t, _, r, p, a, l, i); + return null != f && f.isIncomplete && null != d && d.set(f), f; + case 1: + return m(oe.JsDoc.getJSDocTagNameCompletions()); + case 2: + return m(oe.JsDoc.getJSDocTagCompletions()); + case 3: + return m(oe.JsDoc.getJSDocParameterNameCompletions(p.tag)); + case 4: + return f = p.keywordCompletions, { + isGlobalCompletion: !1, + isMemberCompletion: !1, + isNewIdentifierLocation: p.isNewIdentifierLocation, + entries: f.slice() + }; + default: + return oe.Debug.assertNever(p) + } + } + }, se.getCompletionEntriesFromSymbols = V, se.getCompletionEntryDetails = function(e, t, r, n, i, a, o, s, c) { + var l = e.getTypeChecker(), + u = e.getCompilerOptions(), + _ = i.name, + d = i.source, + p = i.data, + f = oe.findPrecedingToken(n, r); + if (oe.isInString(r, n, f)) return se.StringCompletions.getStringLiteralCompletionDetails(_, r, n, f, l, u, a, c, s); + var g = S(e, t, r, n, i, a, s); + switch (g.type) { + case "request": + var m = g.request; + switch (m.kind) { + case 1: + return oe.JsDoc.getJSDocTagNameCompletionDetails(_); + case 2: + return oe.JsDoc.getJSDocTagCompletionDetails(_); + case 3: + return oe.JsDoc.getJSDocParameterNameCompletionDetails(_); + case 4: + return oe.some(m.keywordCompletions, function(e) { + return e.name === _ + }) ? T(_, "keyword", oe.SymbolDisplayPartKind.keyword) : void 0; + default: + return oe.Debug.assertNever(m) + } + case "symbol": + var y = g.symbol, + h = g.location, + v = g.contextToken, + b = g.origin, + x = g.previousToken, + v = function(e, t, r, n, i, a, o, s, c, l, u, _, d, p, f, g) { + if (null != p && p.moduleSpecifier && u && Se(r || u).replacementSpan) return { + codeActions: void 0, + sourceDisplay: [oe.textPart(p.moduleSpecifier)] + }; + if (f === I.ClassMemberSnippet) { + f = B(o, a, s, d, e, i, t, r, _).importAdder; + if (f) return { + sourceDisplay: void 0, + codeActions: [{ + changes: oe.textChanges.ChangeTracker.with({ + host: o, + formatContext: _, + preferences: d + }, f.writeFixes), + description: oe.diagnosticToString([oe.Diagnostics.Includes_imports_of_types_referenced_by_0, e]) + }] + } + } + if (L(n)) return t = oe.codefix.getPromoteTypeOnlyCompletionAction(c, n.declaration.name, a, o, _, d), oe.Debug.assertIsDefined(t, "Expected to have a code action for promoting type-only alias"), { + codeActions: [t], + sourceDisplay: void 0 + }; + return n && (O(n) || M(n)) ? (f = (n.isFromPackageJson ? o.getPackageJsonAutoImportProvider() : a).getTypeChecker(), e = n.moduleSymbol, t = f.getMergedSymbol(oe.skipAlias(i.exportSymbol || i, f)), n = 29 === (null == r ? void 0 : r.kind) && oe.isJsxOpeningLikeElement(r.parent), f = oe.codefix.getImportCompletionAction(t, e, c, oe.getNameForExportedSymbol(i, oe.getEmitScriptTarget(s), n), n, o, a, _, u && oe.isIdentifier(u) ? u.getStart(c) : l, d, g), r = f.moduleSpecifier, t = f.codeAction, oe.Debug.assert(!(null != p && p.moduleSpecifier) || r === p.moduleSpecifier), { + sourceDisplay: [oe.textPart(r)], + codeActions: [t] + }) : { + codeActions: void 0, + sourceDisplay: void 0 + } + }(_, h, v, b, y, e, a, u, r, n, x, o, s, p, d, c); + return C(y, l, r, h, c, v.codeActions, v.sourceDisplay); + case "literal": + b = g.literal; + return T(J(r, s, b), "string", "string" == typeof b ? oe.SymbolDisplayPartKind.stringLiteral : oe.SymbolDisplayPartKind.numericLiteral); + case "none": + return D().some(function(e) { + return e.name === _ + }) ? T(_, "keyword", oe.SymbolDisplayPartKind.keyword) : void 0; + default: + oe.Debug.assertNever(g) + } + }, se.createCompletionDetailsForSymbol = C, se.createCompletionDetails = u, se.getCompletionEntrySymbol = function(e, t, r, n, i, a, o) { + return "symbol" === (e = S(e, t, r, n, i, a, o)).type ? e.symbol : void 0 + }, (e = se.CompletionKind || (se.CompletionKind = {}))[e.ObjectPropertyDeclaration = 0] = "ObjectPropertyDeclaration", e[e.Global = 1] = "Global", e[e.PropertyAccess = 2] = "PropertyAccess", e[e.MemberLike = 3] = "MemberLike", e[e.String = 4] = "String", e[e.None = 5] = "None", n = [], D = oe.memoize(function() { + for (var e = [], t = 81; t <= 162; t++) e.push({ + name: oe.tokenToString(t), + kind: "keyword", + kindModifiers: "", + sortText: se.SortText.GlobalsOrKeywords + }); + return e + }), se.getPropertiesForObjectExpression = me + }(ts = ts || {}), ! function(l) { + function u(e, t) { + return { + fileName: t.fileName, + textSpan: l.createTextSpanFromNode(e, t), + kind: "none" + } + } + + function n(e) { + return l.isThrowStatement(e) ? [e] : l.isTryStatement(e) ? l.concatenate(e.catchClause ? n(e.catchClause) : e.tryBlock && n(e.tryBlock), e.finallyBlock && n(e.finallyBlock)) : l.isFunctionLike(e) ? void 0 : t(e, n) + } + + function i(e) { + return l.isBreakOrContinueStatement(e) ? [e] : l.isFunctionLike(e) ? void 0 : t(e, i) + } + + function t(e, t) { + var r = []; + return e.forEachChild(function(e) { + e = t(e); + void 0 !== e && r.push.apply(r, l.toArray(e)) + }), r + } + + function a(e, t) { + t = r(t); + return t && t === e + } + + function r(r) { + return l.findAncestor(r, function(e) { + switch (e.kind) { + case 252: + if (248 === r.kind) return !1; + case 245: + case 246: + case 247: + case 244: + case 243: + return !r.label || (t = r.label.escapedText, !!l.findAncestor(e.parent, function(e) { + return l.isLabeledStatement(e) ? e.label.escapedText === t : "quit" + })); + default: + return l.isFunctionLike(e) && "quit" + } + var t + }) + } + + function _(e, t) { + for (var r = [], n = 2; n < arguments.length; n++) r[n - 2] = arguments[n]; + return t && l.contains(r, t.kind) && (e.push(t), 1) + } + + function s(t) { + var r = []; + if (_(r, t.getFirstToken(), 97, 115, 90) && 243 === t.kind) + for (var e = t.getChildren(), n = e.length - 1; 0 <= n && !_(r, e[n], 115); n--); + return l.forEach(i(t.statement), function(e) { + a(t, e) && _(r, e.getFirstToken(), 81, 86) + }), r + } + + function c(e) { + var t = r(e); + if (t) switch (t.kind) { + case 245: + case 246: + case 247: + case 243: + case 244: + return s(t); + case 252: + return d(t) + } + } + + function d(t) { + var r = []; + return _(r, t.getFirstToken(), 107), l.forEach(t.caseBlock.clauses, function(e) { + _(r, e.getFirstToken(), 82, 88), l.forEach(i(e), function(e) { + a(t, e) && _(r, e.getFirstToken(), 81) + }) + }), r + } + + function p(e, t) { + var r = []; + return _(r, e.getFirstToken(), 111), e.catchClause && _(r, e.catchClause.getFirstToken(), 83), e.finallyBlock && _(r, l.findChildOfKind(e, 96, t), 96), r + } + + function f(e, t) { + var r, e = function(e) { + for (var t = e; t.parent;) { + var r = t.parent; + if (l.isFunctionBlock(r) || 308 === r.kind) return r; + if (l.isTryStatement(r) && r.tryBlock === t && r.catchClause) return t; + t = r + } + }(e); + if (e) return r = [], l.forEach(n(e), function(e) { + r.push(l.findChildOfKind(e, 109, t)) + }), l.isFunctionBlock(e) && l.forEachReturnStatement(e, function(e) { + r.push(l.findChildOfKind(e, 105, t)) + }), r + } + + function g(e, t) { + var r, e = l.getContainingFunction(e); + if (e) return r = [], l.forEachReturnStatement(l.cast(e.body, l.isBlock), function(e) { + r.push(l.findChildOfKind(e, 105, t)) + }), l.forEach(n(e.body), function(e) { + r.push(l.findChildOfKind(e, 109, t)) + }), r + } + + function m(e) { + var t, e = l.getContainingFunction(e); + if (e) return t = [], e.modifiers && e.modifiers.forEach(function(e) { + _(t, e, 132) + }), l.forEachChild(e, function(e) { + y(e, function(e) { + l.isAwaitExpression(e) && _(t, e.getFirstToken(), 133) + }) + }), t + } + + function y(e, t) { + t(e), l.isFunctionLike(e) || l.isClassLike(e) || l.isInterfaceDeclaration(e) || l.isModuleDeclaration(e) || l.isTypeAliasDeclaration(e) || l.isTypeNode(e) || l.forEachChild(e, function(e) { + return y(e, t) + }) + }(l.DocumentHighlights || (l.DocumentHighlights = {})).getDocumentHighlights = function(e, t, r, n, i) { + var a, o = l.getTouchingPropertyName(r, n); + return o.parent && (l.isJsxOpeningElement(o.parent) && o.parent.tagName === o || l.isJsxClosingElement(o.parent)) ? (a = [(a = o.parent.parent).openingElement, a.closingElement].map(function(e) { + return u(e.tagName, r) + }), [{ + fileName: r.fileName, + highlightSpans: a + }]) : function(e, t, n, r, i) { + var a, o = new l.Set(i.map(function(e) { + return e.fileName + })), + e = l.FindAllReferences.getReferenceEntriesForNode(e, t, n, i, r, void 0, o); + if (e) return t = l.arrayToMultiMap(e.map(l.FindAllReferences.toHighlightSpan), function(e) { + return e.fileName + }, function(e) { + return e.span + }), a = l.createGetCanonicalFileName(n.useCaseSensitiveFileNames()), l.mapDefined(l.arrayFrom(t.entries()), function(e) { + var t = e[0], + e = e[1]; + if (!o.has(t)) { + if (!n.redirectTargetsMap.has(l.toPath(t, n.getCurrentDirectory(), a))) return; + var r = n.getSourceFile(t), + t = l.find(i, function(e) { + return !!e.redirectInfo && e.redirectInfo.redirectTarget === r + }).fileName; + l.Debug.assert(o.has(t)) + } + return { + fileName: t, + highlightSpans: e + } + }) + }(n, o, e, t, i) || function(e, t) { + e = function(e, n) { + switch (e.kind) { + case 99: + case 91: + return l.isIfStatement(e.parent) ? function(e, t) { + for (var r = function(e, t) { + var r = []; + for (; l.isIfStatement(e.parent) && e.parent.elseStatement === e;) e = e.parent; + for (;;) { + var n = e.getChildren(t); + _(r, n[0], 99); + for (var i = n.length - 1; 0 <= i && !_(r, n[i], 91); i--); + if (!e.elseStatement || !l.isIfStatement(e.elseStatement)) break; + e = e.elseStatement + } + return r + }(e, t), n = [], i = 0; i < r.length; i++) { + if (91 === r[i].kind && i < r.length - 1) { + for (var a = r[i], o = r[i + 1], s = !0, c = o.getStart(t) - 1; c >= a.end; c--) + if (!l.isWhiteSpaceSingleLine(t.text.charCodeAt(c))) { + s = !1; + break + } + if (s) { + n.push({ + fileName: t.fileName, + textSpan: l.createTextSpanFromBounds(a.getStart(), o.end), + kind: "reference" + }), i++; + continue + } + } + n.push(u(r[i], t)) + } + return n + }(e.parent, n) : void 0; + case 105: + return i(e.parent, l.isReturnStatement, g); + case 109: + return i(e.parent, l.isThrowStatement, f); + case 111: + case 83: + case 96: + return i((83 === e.kind ? e.parent : e).parent, l.isTryStatement, p); + case 107: + return i(e.parent, l.isSwitchStatement, d); + case 82: + case 88: + return l.isDefaultClause(e.parent) || l.isCaseClause(e.parent) ? i(e.parent.parent.parent, l.isSwitchStatement, d) : void 0; + case 81: + case 86: + return i(e.parent, l.isBreakOrContinueStatement, c); + case 97: + case 115: + case 90: + return i(e.parent, function(e) { + return l.isIterationStatement(e, !0) + }, s); + case 135: + return t(l.isConstructorDeclaration, [135]); + case 137: + case 151: + return t(l.isAccessor, [137, 151]); + case 133: + return i(e.parent, l.isAwaitExpression, m); + case 132: + return a(m(e)); + case 125: + return a(function(e) { + var t, e = l.getContainingFunction(e); + if (e) return t = [], l.forEachChild(e, function(e) { + y(e, function(e) { + l.isYieldExpression(e) && _(t, e.getFirstToken(), 125) + }) + }), t + }(e)); + case 101: + return; + default: + return l.isModifierKind(e.kind) && (l.isDeclaration(e.parent) || l.isVariableStatement(e.parent)) ? a(function(t, e) { + return l.mapDefined(function(e, t) { + var r = e.parent; + switch (r.kind) { + case 265: + case 308: + case 238: + case 292: + case 293: + return 256 & t && l.isClassDeclaration(e) ? __spreadArray(__spreadArray([], e.members, !0), [e], !1) : r.statements; + case 173: + case 171: + case 259: + return __spreadArray(__spreadArray([], r.parameters, !0), l.isClassLike(r.parent) ? r.parent.members : [], !0); + case 260: + case 228: + case 261: + case 184: + var n = r.members; + if (92 & t) { + var i = l.find(r.members, l.isConstructorDeclaration); + if (i) return __spreadArray(__spreadArray([], n, !0), i.parameters, !0) + } else if (256 & t) return __spreadArray(__spreadArray([], n, !0), [r], !1); + return n; + case 207: + return; + default: + l.Debug.assertNever(r, "Invalid container kind.") + } + }(e, l.modifierToFlag(t)), function(e) { + return l.findModifier(e, t) + }) + }(e.kind, e.parent)) : void 0 + } + + function t(t, r) { + return i(e.parent, t, function(e) { + return l.mapDefined(e.symbol.declarations, function(e) { + return t(e) ? l.find(e.getChildren(n), function(e) { + return l.contains(r, e.kind) + }) : void 0 + }) + }) + } + + function i(e, t, r) { + return t(e) ? a(r(e, n)) : void 0 + } + + function a(e) { + return e && e.map(function(e) { + return u(e, n) + }) + } + }(e, t); + return e && [{ + fileName: t.fileName, + highlightSpans: e + }] + }(o, r) + } + }(ts = ts || {}), ! function(D) { + function S(e) { + return e.sourceFile + } + + function r(e, o, h) { + void 0 === o && (o = ""); + var v = new D.Map, + s = D.createGetCanonicalFileName(!!e); + + function b(e) { + return "function" == typeof e.getCompilationSettings ? e.getCompilationSettings() : e + } + + function c(e, t, r, n, i, a, o, s) { + return u(e, t, r, n, i, a, !0, o, s) + } + + function l(e, t, r, n, i, a, o, s) { + return u(e, t, b(r), n, i, a, !1, o, s) + } + + function x(e, t) { + e = S(e) ? e : e.get(D.Debug.checkDefined(t, "If there are more than one scriptKind's for same document the scriptKind should be provided")); + return D.Debug.assert(void 0 === t || !e || e.sourceFile.scriptKind === t, "Script kind should match provided ScriptKind:".concat(t, " and sourceFile.scriptKind: ").concat(null == e ? void 0 : e.sourceFile.scriptKind, ", !entry: ").concat(!e)), e + } + + function u(e, r, t, n, i, a, o, s, c) { + s = D.ensureScriptKind(e, s); + var l, u = b(t), + t = t === u ? void 0 : t, + _ = 6 === s ? 100 : D.getEmitScriptTarget(u), + c = "object" == typeof c ? c : { + languageVersion: _, + impliedNodeFormat: t && D.getImpliedNodeFormatForFile(r, null == (d = null == (d = null == (c = null == (c = t.getCompilerHost) ? void 0 : c.call(t)) ? void 0 : c.getModuleResolutionCache) ? void 0 : d.call(c)) ? void 0 : d.getPackageJsonInfoCache(), t, u), + setExternalModuleIndicator: D.getSetExternalModuleIndicator(u) + }, + d = (c.languageVersion = _, v.size), + p = T(n, c.impliedNodeFormat), + f = D.getOrUpdate(v, p, function() { + return new D.Map + }), + g = (D.tracing && (v.size > d && D.tracing.instant("session", "createdDocumentRegistryBucket", { + configFilePath: u.configFilePath, + key: p + }), t = !D.isDeclarationFileName(r) && D.forEachEntry(v, function(e, t) { + return t !== p && e.has(r) && t + })) && D.tracing.instant("session", "documentRegistryBucketOverlap", { + path: r, + key1: t, + key2: p + }), f.get(r)), + m = g && x(g, s); + return !m && h && (l = h.getDocument(p, r)) && (D.Debug.assert(o), m = { + sourceFile: l, + languageServiceRefCount: 0 + }, y()), m ? (m.sourceFile.version !== a && (m.sourceFile = D.updateLanguageServiceSourceFile(m.sourceFile, i, a, i.getChangeRange(m.sourceFile.scriptSnapshot)), h) && h.setDocument(p, r, m.sourceFile), o && m.languageServiceRefCount++) : (l = D.createLanguageServiceSourceFile(e, i, c, a, !1, s), h && h.setDocument(p, r, l), m = { + sourceFile: l, + languageServiceRefCount: 1 + }, y()), D.Debug.assert(0 !== m.languageServiceRefCount), m.sourceFile; + + function y() { + var e; + g ? S(g) ? ((e = new D.Map).set(g.sourceFile.scriptKind, g), e.set(s, m), f.set(r, e)) : g.set(s, m) : f.set(r, m) + } + } + + function i(e, t, r, n) { + var t = D.Debug.checkDefined(v.get(T(t, n))), + n = t.get(e), + i = x(n, r); + i.languageServiceRefCount--, D.Debug.assert(0 <= i.languageServiceRefCount), 0 === i.languageServiceRefCount && (S(n) ? t.delete(e) : (n.delete(r), 1 === n.size && t.set(e, D.firstDefinedIterator(n.values(), D.identity)))) + } + return { + acquireDocument: function(e, t, r, n, i, a) { + return c(e, D.toPath(e, o, s), t, _(b(t)), r, n, i, a) + }, + acquireDocumentWithKey: c, + updateDocument: function(e, t, r, n, i, a) { + return l(e, D.toPath(e, o, s), t, _(b(t)), r, n, i, a) + }, + updateDocumentWithKey: l, + releaseDocument: function(e, t, r, n) { + return i(D.toPath(e, o, s), _(t), r, n) + }, + releaseDocumentWithKey: i, + getLanguageServiceRefCounts: function(r, n) { + return D.arrayFrom(v.entries(), function(e) { + var t = e[0], + e = e[1].get(r), + e = e && x(e, n); + return [t, e && e.languageServiceRefCount] + }) + }, + reportStats: function() { + var e = D.arrayFrom(v.keys()).filter(function(e) { + return e && "_" === e.charAt(0) + }).map(function(e) { + var t = v.get(e), + n = []; + return t.forEach(function(e, r) { + S(e) ? n.push({ + name: r, + scriptKind: e.sourceFile.scriptKind, + refCount: e.languageServiceRefCount + }) : e.forEach(function(e, t) { + return n.push({ + name: r, + scriptKind: t, + refCount: e.languageServiceRefCount + }) + }) + }), n.sort(function(e, t) { + return t.refCount - e.refCount + }), { + bucket: e, + sourceFiles: n + } + }); + return JSON.stringify(e, void 0, 2) + }, + getKeyForCompilationSettings: _ + } + } + + function _(t) { + return D.sourceFileAffectingCompilerOptions.map(function(e) { + return function e(t) { + var r; + if (null === t || "object" != typeof t) return "" + t; + if (D.isArray(t)) return "[".concat(null == (r = D.map(t, e)) ? void 0 : r.join(","), "]"); + var n, i = "{"; + for (n in t) D.hasProperty(t, n) && (i += "".concat(n, ": ").concat(e(t[n]))); + return i + "}" + }(D.getCompilerOptionValue(t, e)) + }).join("|") + (t.pathsBasePath ? "|".concat(t.pathsBasePath) : void 0) + } + + function T(e, t) { + return t ? "".concat(e, "|").concat(t) : e + } + D.createDocumentRegistry = function(e, t) { + return r(e, t) + }, D.createDocumentRegistryInternal = r + }(ts = ts || {}), ! function(E) { + var e, t; + + function k(e, t) { + return E.forEach((308 === e.kind ? e : e.body).statements, function(e) { + return t(e) || F(e) && E.forEach(e.body && e.body.statements, t) + }) + } + + function g(e, r) { + if (e.externalModuleIndicator || void 0 !== e.imports) + for (var t = 0, n = e.imports; t < n.length; t++) { + var i = n[t]; + r(E.importFromModuleSpecifier(i), i) + } else k(e, function(e) { + switch (e.kind) { + case 275: + case 269: + (t = e).moduleSpecifier && E.isStringLiteral(t.moduleSpecifier) && r(t, t.moduleSpecifier); + break; + case 268: + var t; + P(t = e) && r(t, t.moduleReference.expression) + } + }) + } + + function r(e, t, r) { + e = e.parent; + if (e) return r = r.getMergedSymbol(e), E.isExternalModuleSymbol(r) ? { + exportingModuleSymbol: r, + exportKind: t + } : void 0 + } + + function N(e, t) { + return t.getMergedSymbol(A(e).symbol) + } + + function A(e) { + return 210 === e.kind ? e.getSourceFile() : 308 === (e = e.parent).kind ? e : (E.Debug.assert(265 === e.kind), E.cast(e.parent, F)) + } + + function F(e) { + return 264 === e.kind && 10 === e.name.kind + } + + function P(e) { + return 280 === e.moduleReference.kind && 10 === e.moduleReference.expression.kind + }(e = E.FindAllReferences || (E.FindAllReferences = {})).createImportTracker = function(x, D, S, T) { + var C = function(e, n, t) { + for (var i = new E.Map, r = 0, a = e; r < a.length; r++) { + var o = a[r]; + t && t.throwIfCancellationRequested(), g(o, function(e, t) { + var r, t = n.getSymbolAtLocation(t); + t && (t = E.getSymbolId(t).toString(), (r = i.get(t)) || i.set(t, r = []), r.push(e)) + }) + } + return i + }(x, S, T); + return function(e, t, r) { + n = x, i = D, a = C, o = S, s = T, c = t.exportingModuleSymbol, l = t.exportKind, u = E.nodeSeenTracker(), _ = E.nodeSeenTracker(), d = [], p = !!c.globalExports, f = p ? void 0 : [], + function e(t) { + t = b(t); + if (t) + for (var r = 0, n = t; r < n.length; r++) { + var i = n[r]; + if (u(i)) switch (s && s.throwIfCancellationRequested(), i.kind) { + case 210: + if (E.isImportCall(i)) m(i); + else if (!p) { + var a = i.parent; + if (2 === l && 257 === a.kind) { + a = a.name; + if (79 === a.kind) { + d.push(a); + break + } + } + } + break; + case 79: + break; + case 268: + h(i, i.name, E.hasSyntacticModifier(i, 1), !1); + break; + case 269: + d.push(i); + a = i.importClause && i.importClause.namedBindings; + a && 271 === a.kind ? h(i, a.name, !1, !0) : !p && E.isDefaultImport(i) && v(A(i)); + break; + case 275: + i.exportClause ? 277 === i.exportClause.kind ? v(A(i), !0) : d.push(i) : e(N(i, o)); + break; + case 202: + !p && i.isTypeOf && !i.qualifier && y(i) && v(i.getSourceFile(), !0), d.push(i); + break; + default: + E.Debug.failBadSyntaxKind(i, "Unexpected import kind.") + } + } + }(c); + var n, i, a, o, s, c, l, u, _, d, p, f, g = { + directImports: d, + indirectUsers: function() { + if (p) return n; + if (c.declarations) + for (var e = 0, t = c.declarations; e < t.length; e++) { + var r = t[e]; + E.isExternalModuleAugmentation(r) && i.has(r.getSourceFile().fileName) && v(r) + } + return f.map(E.getSourceFileOfNode) + }() + }; + + function m(e) { + v(E.findAncestor(e, F) || e.getSourceFile(), !!y(e, !0)) + } + + function y(e, t) { + return void 0 === t && (t = !1), E.findAncestor(e, function(e) { + return t && F(e) ? "quit" : E.canHaveModifiers(e) && E.some(e.modifiers, E.isExportModifier) + }) + } + + function h(e, t, r, n) { + var i, a; + 2 === l ? n || d.push(e) : p || (n = A(e), E.Debug.assert(308 === n.kind || 264 === n.kind), r || (e = n, a = (i = o).getSymbolAtLocation(t), k(e, function(e) { + var t; + if (E.isExportDeclaration(e)) return t = e.exportClause, !e.moduleSpecifier && t && E.isNamedExports(t) && t.elements.some(function(e) { + return i.getExportSpecifierLocalTargetSymbol(e) === a + }) + })) ? v(n, !0) : v(n)) + } + + function v(e, t) { + void 0 === t && (t = !1), E.Debug.assert(!p); + var r = _(e); + if (r && (f.push(e), t)) { + r = o.getMergedSymbol(e.symbol); + if (r) { + E.Debug.assert(!!(1536 & r.flags)); + t = b(r); + if (t) + for (var n = 0, i = t; n < i.length; n++) { + var a = i[n]; + E.isImportTypeNode(a) || v(A(a), !0) + } + } + } + } + + function b(e) { + return a.get(E.getSymbolId(e).toString()) + } + return __assign({ + indirectUsers: g.indirectUsers + }, function(e, o, n, s, c) { + var r = [], + l = []; + + function u(e, t) { + r.push([e, t]) + } + if (e) + for (var t = 0, i = e; t < i.length; t++) ! function(e) { + if (268 === e.kind) P(e) && a(e.name); + else if (79 === e.kind) a(e); + else if (202 === e.kind) e.qualifier ? (t = E.getFirstIdentifier(e.qualifier)).escapedText === E.symbolName(o) && l.push(t) : 2 === n && l.push(e.argument.literal); + else if (10 === e.moduleSpecifier.kind) + if (275 === e.kind) e.exportClause && E.isNamedExports(e.exportClause) && _(e.exportClause); + else { + var t = e.importClause || { + name: void 0, + namedBindings: void 0 + }, + e = t.name, + r = t.namedBindings; + if (r) switch (r.kind) { + case 271: + a(r.name); + break; + case 272: + 0 !== n && 1 !== n || _(r); + break; + default: + E.Debug.assertNever(r) + }!e || 1 !== n && 2 !== n || c && e.escapedText !== E.symbolEscapedNameNoDefault(o) || (t = s.getSymbolAtLocation(e), u(e, t)) + } + }(i[t]); + return { + importSearches: r, + singleReferences: l + }; + + function a(e) { + 2 !== n || c && !d(e.escapedText) || u(e, s.getSymbolAtLocation(e)) + } + + function _(e) { + if (e) + for (var t = 0, r = e.elements; t < r.length; t++) { + var n = r[t], + i = n.name, + a = n.propertyName; + d((a || i).escapedText) && (a ? (l.push(a), c && i.escapedText !== o.escapedName || u(i, s.getSymbolAtLocation(i))) : u(i, 278 === n.kind && n.propertyName ? s.getExportSpecifierLocalTargetSymbol(n) : s.getSymbolAtLocation(i))) + } + } + + function d(e) { + return e === o.escapedName || 0 !== n && "default" === e + } + }(g.directImports, e, t.exportKind, S, r)) + } + }, (t = e.ExportKind || (e.ExportKind = {}))[t.Named = 0] = "Named", t[t.Default = 1] = "Default", t[t.ExportEquals = 2] = "ExportEquals", (t = e.ImportExport || (e.ImportExport = {}))[t.Import = 0] = "Import", t[t.Export = 1] = "Export", e.findModuleReferences = function(e, t, r) { + for (var n = [], i = e.getTypeChecker(), a = 0, o = t; a < o.length; a++) { + var s = o[a], + c = r.valueDeclaration; + if (308 === (null == c ? void 0 : c.kind)) { + for (var l = 0, u = s.referencedFiles; l < u.length; l++) { + var _ = u[l]; + e.getSourceFileFromReference(s, _) === c && n.push({ + kind: "reference", + referencingFile: s, + ref: _ + }) + } + for (var d = 0, p = s.typeReferenceDirectives; d < p.length; d++) { + var _ = p[d], + f = e.getResolvedTypeReferenceDirectives().get(_.fileName, _.resolutionMode || s.impliedNodeFormat); + void 0 !== f && f.resolvedFileName === c.fileName && n.push({ + kind: "reference", + referencingFile: s, + ref: _ + }) + } + } + g(s, function(e, t) { + i.getSymbolAtLocation(t) === r && n.push({ + kind: "import", + literal: t + }) + }) + } + return n + }, e.getImportOrExportSymbol = function(s, c, l, u) { + return u ? e() : e() || function() { + if (! function(e) { + var t = e.parent; + switch (t.kind) { + case 268: + return t.name === e && P(t); + case 273: + return !t.propertyName; + case 270: + case 271: + return E.Debug.assert(t.name === e), 1; + case 205: + return E.isInJSFile(e) && E.isVariableDeclarationInitializedToBareOrAccessedRequire(t.parent.parent); + default: + return + } + }(s)) return; + var e = l.getImmediateAliasedSymbol(c); + if (!e) return; + if ("export=" === (e = function(e, t) { + if (e.declarations) + for (var r = 0, n = e.declarations; r < n.length; r++) { + var i = n[r]; + if (E.isExportSpecifier(i) && !i.propertyName && !i.parent.parent.moduleSpecifier) return t.getExportSpecifierLocalTargetSymbol(i); + if (E.isPropertyAccessExpression(i) && E.isModuleExportsAccessExpression(i.expression) && !E.isPrivateIdentifier(i.name)) return t.getSymbolAtLocation(i); + if (E.isShorthandPropertyAssignment(i) && E.isBinaryExpression(i.parent.parent) && 2 === E.getAssignmentDeclarationKind(i.parent.parent)) return t.getExportSpecifierLocalTargetSymbol(i.name) + } + return e + }(e, l)).escapedName && void 0 === (e = function(e, t) { + if (2097152 & e.flags) return t.getImmediateAliasedSymbol(e); + t = E.Debug.checkDefined(e.valueDeclaration); { + if (E.isExportAssignment(t)) return t.expression.symbol; + if (E.isBinaryExpression(t)) return t.right.symbol; + if (E.isSourceFile(t)) return t.symbol + } + return + }(e, l))) return; + var t = E.symbolEscapedNameNoDefault(e); + if (void 0 === t || "default" === t || t === c.escapedName) return { + kind: 0, + symbol: e + } + }(); + + function e() { + var e, t, r, n = s.parent, + i = n.parent; + return c.exportSymbol ? 208 === n.kind ? null != (e = c.declarations) && e.some(function(e) { + return e === n + }) && E.isBinaryExpression(i) ? o(i, !1) : void 0 : _(c.exportSymbol, d(n)) : (e = n, t = s, (t = (r = E.isVariableDeclaration(e) ? e : E.isBindingElement(e) ? E.walkUpBindingElementsAndPatterns(e) : void 0) ? e.name === t && !E.isCatchClause(r.parent) && E.isVariableStatement(r.parent.parent) ? r.parent.parent : void 0 : e) && E.hasSyntacticModifier(t, 1) ? E.isImportEqualsDeclaration(t) && t.moduleReference === s ? u ? void 0 : { + kind: 0, + symbol: l.getSymbolAtLocation(t.name) + } : _(c, d(t)) : E.isNamespaceExport(n) ? _(c, 0) : E.isExportAssignment(n) ? a(n) : E.isExportAssignment(i) ? a(i) : E.isBinaryExpression(n) ? o(n, !0) : E.isBinaryExpression(i) ? o(i, !0) : E.isJSDocTypedefTag(n) ? _(c, 0) : void 0); + + function a(e) { + var t; + if (e.symbol.parent) return t = e.isExportEquals ? 2 : 1, { + kind: 1, + symbol: c, + exportInfo: { + exportingModuleSymbol: e.symbol.parent, + exportKind: t + } + } + } + + function o(e, t) { + var r; + switch (E.getAssignmentDeclarationKind(e)) { + case 1: + r = 0; + break; + case 2: + r = 2; + break; + default: + return + } + t = t ? l.getSymbolAtLocation(E.getNameOfAccessExpression(E.cast(e.left, E.isAccessExpression))) : c; + return t && _(t, r) + } + } + + function _(e, t) { + t = r(e, t, l); + return t && { + kind: 1, + symbol: e, + exportInfo: t + } + } + + function d(e) { + return E.hasSyntacticModifier(e, 1024) ? 1 : 0 + } + }, e.getExportInfo = r + }(ts = ts || {}), ! function(b) { + var x, s, e, p; + + function g(e, t) { + return { + kind: t = void 0 === t ? 1 : t, + node: e.name || e, + context: function(e) { + if (b.isDeclaration(e)) return _(e); + if (e.parent) { + if (!b.isDeclaration(e.parent) && !b.isExportAssignment(e.parent)) { + if (b.isInJSFile(e)) { + var t = b.isBinaryExpression(e.parent) ? e.parent : b.isAccessExpression(e.parent) && b.isBinaryExpression(e.parent.parent) && e.parent.parent.left === e.parent ? e.parent.parent : void 0; + if (t && 0 !== b.getAssignmentDeclarationKind(t)) return _(t) + } + if (b.isJsxOpeningElement(e.parent) || b.isJsxClosingElement(e.parent)) return e.parent.parent; + if (b.isJsxSelfClosingElement(e.parent) || b.isLabeledStatement(e.parent) || b.isBreakOrContinueStatement(e.parent)) return e.parent; + if (b.isStringLiteralLike(e)) { + var t = b.tryGetImportFromModuleSpecifier(e); + if (t) return t = b.findAncestor(t, function(e) { + return b.isDeclaration(e) || b.isStatement(e) || b.isJSDocTag(e) + }), b.isDeclaration(t) ? _(t) : t + } + t = b.findAncestor(e, b.isComputedPropertyName); + return t ? _(t.parent) : void 0 + } + if (e.parent.name === e || b.isConstructorDeclaration(e.parent) || b.isExportAssignment(e.parent) || (b.isImportOrExportSpecifier(e.parent) || b.isBindingElement(e.parent)) && e.parent.propertyName === e || 88 === e.kind && b.hasSyntacticModifier(e.parent, 1025)) return _(e.parent) + } + return + }(e) + } + } + + function n(e) { + return e && void 0 === e.kind + } + + function _(e) { + if (e) switch (e.kind) { + case 257: + return b.isVariableDeclarationList(e.parent) && 1 === e.parent.declarations.length ? b.isVariableStatement(e.parent.parent) ? e.parent.parent : b.isForInOrOfStatement(e.parent.parent) ? _(e.parent.parent) : e.parent : e; + case 205: + return _(e.parent.parent); + case 273: + return e.parent.parent.parent; + case 278: + case 271: + return e.parent.parent; + case 270: + case 277: + return e.parent; + case 223: + return b.isExpressionStatement(e.parent) ? e.parent : e; + case 247: + case 246: + return { + start: e.initializer, + end: e.expression + }; + case 299: + case 300: + return b.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent) ? _(b.findAncestor(e.parent, function(e) { + return b.isBinaryExpression(e) || b.isForInOrOfStatement(e) + })) : e; + default: + return e + } + } + + function d(e, t, r) { + return r && ((r = n(r) ? i(r.start, t, r.end) : i(r, t)).start !== e.start || r.length !== e.length) ? { + contextSpan: r + } : void 0 + } + + function u(e, t, r, n, i) { + var a, o; + if (308 !== n.kind) return o = e.getTypeChecker(), 300 === n.parent.kind ? (a = [], s.getReferenceEntriesForShorthandPropertyAssignment(n, o, function(e) { + return a.push(g(e)) + }), a) : 106 === n.kind || b.isSuperProperty(n.parent) ? (o = o.getSymbolAtLocation(n)).valueDeclaration && [g(o.valueDeclaration)] : c(i, n, e, r, t, { + implementations: !0, + use: 1 + }) + } + + function c(e, t, r, n, i, a, o) { + return void 0 === a && (a = {}), void 0 === o && (o = new b.Set(n.map(function(e) { + return e.fileName + }))), l(s.getReferencedSymbolsForNode(e, t, r, n, i, a, o)) + } + + function l(e) { + return e && b.flatMap(e, function(e) { + return e.references + }) + } + + function f(e) { + var t = e.getSourceFile(); + return { + sourceFile: t, + textSpan: i(b.isComputedPropertyName(e) ? e.expression : e, t) + } + } + + function m(e, t, r) { + var n = s.getIntersectingMeaningFromDeclarations(r, e), + r = e.declarations && b.firstOrUndefined(e.declarations) || r, + t = b.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t, e, r.getSourceFile(), r, r, n); + return { + displayParts: t.displayParts, + kind: t.symbolKind + } + } + + function y(e) { + var t, r = h(e); + return 0 === e.kind ? __assign(__assign({}, r), { + isWriteAccess: !1 + }) : (t = e.kind, e = e.node, __assign(__assign({}, r), { + isWriteAccess: a(e), + isInString: 2 === t || void 0 + })) + } + + function h(e) { + var t, r; + return 0 === e.kind ? { + textSpan: e.textSpan, + fileName: e.fileName + } : (t = e.node.getSourceFile(), r = i(e.node, t), __assign({ + textSpan: r, + fileName: t.fileName + }, d(r, t, e.context))) + } + + function i(e, t, r) { + var t = e.getStart(t), + n = (r || e).getEnd(); + return b.isStringLiteralLike(e) && 2 < n - t && (b.Debug.assert(void 0 === r), t += 1, --n), b.createTextSpanFromBounds(t, n) + } + + function v(e) { + return 0 === e.kind ? e.textSpan : i(e.node, e.node.getSourceFile()) + } + + function a(e) { + var t = b.getDeclarationFromName(e); + return !!t && function(e) { + if (16777216 & e.flags) return !0; + switch (e.kind) { + case 223: + case 205: + case 260: + case 228: + case 88: + case 263: + case 302: + case 278: + case 270: + case 268: + case 273: + case 261: + case 341: + case 348: + case 288: + case 264: + case 267: + case 271: + case 277: + case 166: + case 300: + case 262: + case 165: + return !0; + case 299: + return !b.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent); + case 259: + case 215: + case 173: + case 171: + case 174: + case 175: + return !!e.body; + case 257: + case 169: + return !!e.initializer || b.isCatchClause(e.parent); + case 170: + case 168: + case 350: + case 343: + return !1; + default: + return b.Debug.failBadSyntaxKind(e) + } + }(t) || 88 === e.kind || b.isWriteAccess(e) + } + + function D(e, t) { + var r, n; + return !(!t || (r = b.getDeclarationFromName(e) || (88 === e.kind ? e.parent : b.isLiteralComputedPropertyDeclarationName(e) || 135 === e.kind && b.isConstructorDeclaration(e.parent) ? e.parent.parent : void 0), n = r && b.isBinaryExpression(r) ? r.left : void 0, !r) || null == (e = t.declarations) || !e.some(function(e) { + return e === r || e === n + })) + } + + function S(e, t) { + return 1 === t.use ? e = b.getAdjustedReferenceLocation(e) : 2 === t.use && (e = b.getAdjustedRenameLocation(e)), e + } + + function T(e, t, r) { + for (var n, i = 0, a = t.get(e.path) || b.emptyArray; i < a.length; i++) { + var o, s = a[i]; + b.isReferencedFile(s) && (o = r.getSourceFileByPath(s.file), s = b.getReferencedFileLocation(r.getSourceFileByPath, s), b.isReferenceFileLocation(s)) && (n = b.append(n, { + kind: 0, + fileName: o.fileName, + textSpan: b.createTextSpanFromRange(s) + })) + } + return n + } + + function C(e, t, r) { + if (e.parent && b.isNamespaceExportDeclaration(e.parent)) { + e = r.getAliasedSymbol(t), t = r.getMergedSymbol(e); + if (e !== t) return t + } + } + + function E(e, t, r, n, i, a) { + var o, s, c = 1536 & e.flags && e.declarations && b.find(e.declarations, b.isSourceFile); + if (c) return o = e.exports.get("export="), s = N(t, e, !!o, r, a), o && a.has(c.fileName) ? (c = t.getTypeChecker(), k(t, s, J(e = b.skipAlias(o, c), void 0, r, a, c, n, i))) : s + } + + function k(i) { + for (var a, e = [], t = 1; t < arguments.length; t++) e[t - 1] = arguments[t]; + for (var r = 0, n = e; r < n.length; r++) { + var o = n[r]; + if (o && o.length) + if (a) + for (var s = 0, c = o; s < c.length; s++) ! function(e) { + var t, r, n; + !e.definition || 0 !== e.definition.type || (t = e.definition.symbol, -1 === (r = b.findIndex(a, function(e) { + return !!e.definition && 0 === e.definition.type && e.definition.symbol === t + }))) ? a.push(e) : (n = a[r], a[r] = { + definition: n.definition, + references: n.references.concat(e.references).sort(function(e, t) { + var r = B(i, e), + n = B(i, t); + return r !== n ? b.compareValues(r, n) : (r = v(e), n = v(t), r.start !== n.start ? b.compareValues(r.start, n.start) : b.compareValues(r.length, n.length)) + }) + }) + }(c[s]); + else a = o + } + return a + } + + function B(e, t) { + t = 0 === t.kind ? e.getSourceFile(t.fileName) : t.node.getSourceFile(); + return e.getSourceFiles().indexOf(t) + } + + function N(e, t, r, n, i) { + b.Debug.assert(!!t.valueDeclaration); + var a = b.mapDefined(x.findModuleReferences(e, n, t), function(e) { + if ("import" !== e.kind) return { + kind: 0, + fileName: e.referencingFile.fileName, + textSpan: b.createTextSpanFromRange(e.ref) + }; + var t = e.literal.parent; + if (b.isLiteralTypeNode(t)) { + t = b.cast(t.parent, b.isImportTypeNode); + if (r && !t.qualifier) return + } + return g(e.literal) + }); + if (t.declarations) + for (var o = 0, s = t.declarations; o < s.length; o++) switch ((u = s[o]).kind) { + case 308: + break; + case 264: + i.has(u.getSourceFile().fileName) && a.push(g(u.name)); + break; + default: + b.Debug.assert(!!(33554432 & t.flags), "Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.") + } + e = t.exports.get("export="); + if (null != e && e.declarations) + for (var c = 0, l = e.declarations; c < l.length; c++) { + var u, _ = (u = l[c]).getSourceFile(); + i.has(_.fileName) && (_ = b.isBinaryExpression(u) && b.isPropertyAccessExpression(u.left) ? u.left.expression : b.isExportAssignment(u) ? b.Debug.checkDefined(b.findChildOfKind(u, 93, _)) : b.getNameOfDeclaration(u) || u, a.push(g(_))) + } + return a.length ? [{ + definition: { + type: 0, + symbol: t + }, + references: a + }] : b.emptyArray + } + + function j(e) { + return 146 === e.kind && b.isTypeOperatorNode(e.parent) && 146 === e.parent.operator + } + + function J(e, t, r, n, i, a, o) { + var s, c, l, u = t && function(t, r, n, e) { + var i = r.parent; + if (b.isExportSpecifier(i) && e) return w(r, t, i, n); + return b.firstDefined(t.declarations, function(e) { + if (!e.parent) { + if (33554432 & t.flags) return; + b.Debug.fail("Unexpected symbol at ".concat(b.Debug.formatSyntaxKind(r.kind), ": ").concat(b.Debug.formatSymbol(t))) + } + return b.isTypeLiteralNode(e.parent) && b.isUnionTypeNode(e.parent.parent) ? n.getPropertyOfType(n.getTypeFromTypeNode(e.parent.parent), t.name) : void 0 + }) + }(e, t, i, !R(o)) || e, + _ = t ? Y(t, u) : 7, + d = [], + r = new p(r, n, t ? function(e) { + switch (e.kind) { + case 173: + case 135: + return 1; + case 79: + if (b.isClassLike(e.parent)) return b.Debug.assert(e.parent.name === e), 2; + default: + return 0 + } + }(t) : 0, i, a, _, o, d), + n = R(o) && u.declarations ? b.find(u.declarations, b.isExportSpecifier) : void 0; + return n ? G(n.name, u, n, r.createSearch(t, e, void 0), r, !0, !0) : t && 88 === t.kind && "default" === u.escapedName && u.parent ? (I(t, u, r), A(t, u, { + exportingModuleSymbol: u.parent, + exportKind: 1 + }, r)) : (n = r.createSearch(t, u, void 0, { + allSearchSymbols: t ? (s = u, a = 2 === o.use, _ = !!o.providePrefixAndSuffixTextForRename, c = !!o.implementations, l = [], X(s, t, i, a, !(a && _), function(e, t, r) { + r && M(s) !== M(r) && (r = void 0), l.push(r || t || e) + }, function() { + return !c + }), l) : [u] + }), z(u, r, n)), d + } + + function z(e, t, r) { + e = function(e) { + var t = e.declarations, + r = e.flags, + n = e.parent, + i = e.valueDeclaration; + if (i && (215 === i.kind || 228 === i.kind)) return i; + if (!t) return; + if (8196 & r) return (i = b.find(t, function(e) { + return b.hasEffectiveModifier(e, 8) || b.isPrivateIdentifierClassElementDeclaration(e) + })) ? b.getAncestor(i, 260) : void 0; + if (t.some(b.isObjectBindingElementWithoutPropertyName)) return; + var a, r = n && !(262144 & e.flags); + if (r && (!b.isExternalModuleSymbol(n) || n.globalExports)) return; + for (var o = 0, s = t; o < s.length; o++) { + var c = s[o], + c = b.getContainerNode(c); + if (a && a !== c) return; + if (!c || 308 === c.kind && !b.isExternalOrCommonJsModule(c)) return; + if (a = c, b.isFunctionExpression(a)) + for (var l = void 0; l = b.getNextJSDocCommentLocation(a);) a = l + } + return r ? a.getSourceFile() : a + }(e); + if (e) W(e, e.getSourceFile(), r, t, !(b.isSourceFile(e) && !b.contains(t.sourceFiles, e))); + else + for (var n = 0, i = t.sourceFiles; n < i.length; n++) { + var a = i[n]; + t.cancellationToken.throwIfCancellationRequested(), K(a, r, t) + } + } + + function t(e, t, r, n, i, a, o, s) { + this.sourceFiles = e, this.sourceFilesSet = t, this.specialSearchKind = r, this.checker = n, this.cancellationToken = i, this.searchMeaning = a, this.options = o, this.result = s, this.inheritsFromCache = new b.Map, this.markSeenContainingTypeReference = b.nodeSeenTracker(), this.markSeenReExportRHS = b.nodeSeenTracker(), this.symbolIdToReferences = [], this.sourceFileToSeenSymbols = [] + } + + function A(e, t, r, n) { + var i, a, o = n.getImportSearches(t, r), + s = o.importSearches, + c = o.singleReferences, + o = o.indirectUsers; + if (c.length) + for (var l = n.referenceAdder(t), u = 0, _ = c; u < _.length; u++) { + var d = _[u]; + !H(i = d, a = n) || 2 === a.options.use && (!b.isIdentifier(i) || b.isImportOrExportSpecifier(i.parent) && "default" === i.escapedText) || l(d) + } + for (var p = 0, f = s; p < f.length; p++) { + var g = f[p], + m = g[0], + g = g[1]; + P(m.getSourceFile(), n.createSearch(m, g, 1), n) + } + if (o.length) { + var y = void 0; + switch (r.exportKind) { + case 0: + y = n.createSearch(e, t, 1); + break; + case 1: + y = 2 === n.options.use ? void 0 : n.createSearch(e, t, 1, { + text: "default" + }) + } + if (y) + for (var h = 0, v = o; h < v.length; h++) K(v[h], y, n) + } + } + + function U(e, t) { + if (e.declarations) + for (var r = 0, n = e.declarations; r < n.length; r++) { + var i = n[r], + a = i.getSourceFile(); + P(a, t.createSearch(i, e, 0), t, t.includesSourceFile(a)) + } + } + + function K(e, t, r) { + void 0 !== b.getNameTable(e).get(t.escapedText) && P(e, t, r) + } + + function o(e, t, r, n, i) { + void 0 === i && (i = r); + var a = b.isParameterPropertyDeclaration(e.parent, e.parent.parent) ? b.first(t.getSymbolsOfParameterPropertyDeclaration(e.parent, e.text)) : t.getSymbolAtLocation(e); + if (a) + for (var o = 0, s = F(r, a.name, i); o < s.length; o++) { + var c = s[o]; + if (b.isIdentifier(c) && c !== e && c.escapedText === e.escapedText) { + var l = t.getSymbolAtLocation(c); + if (l === a || t.getShorthandAssignmentValueSymbol(c.parent) === a || b.isExportSpecifier(c.parent) && w(c, l, c.parent, t) === a) { + l = n(c); + if (l) return l + } + } + } + } + + function F(t, e, r) { + return V(t, e, r = void 0 === r ? t : r).map(function(e) { + return b.getTouchingPropertyName(t, e) + }) + } + + function V(e, t, r) { + void 0 === r && (r = e); + var n = []; + if (t && t.length) + for (var i = e.text, a = i.length, o = t.length, s = i.indexOf(t, r.pos); 0 <= s && !(s > r.end);) { + var c = s + o; + 0 !== s && b.isIdentifierPart(i.charCodeAt(s - 1), 99) || c !== a && b.isIdentifierPart(i.charCodeAt(c), 99) || n.push(s), s = i.indexOf(t, s + o + 1) + } + return n + } + + function q(e, t) { + var r = e.getSourceFile(), + n = t.text, + r = b.mapDefined(F(r, n, e), function(e) { + return e === t || b.isJumpStatementTarget(e) && b.getTargetLabel(e, n) === t ? g(e) : void 0 + }); + return [{ + definition: { + type: 1, + node: t + }, + references: r + }] + } + + function P(e, t, r, n) { + void 0 === n && (n = !0), r.cancellationToken.throwIfCancellationRequested(), W(e, e, t, r, n) + } + + function W(e, t, r, n, i) { + if (n.markSearchedSymbols(t, r.allSearchSymbols)) + for (var a = 0, o = V(t, r.text, e); a < o.length; a++) { + var s = o[a], + c = (m = g = f = p = d = _ = u = l = c = void 0, t), + l = s, + u = r, + _ = n, + d = i, + p = b.getTouchingPropertyName(c, l); + if (function(e, t) { + switch (e.kind) { + case 80: + if (b.isJSDocMemberName(e.parent)) return 1; + case 79: + return e.text.length === t.length; + case 14: + case 10: + var r = e; + return (b.isLiteralNameOfPropertyDeclarationOrIndexAccess(r) || b.isNameOfModuleDeclaration(e) || b.isExpressionOfExternalModuleImportEqualsDeclaration(e) || b.isCallExpression(e.parent) && b.isBindableObjectDefinePropertyCall(e.parent) && e.parent.arguments[1] === e) && r.text.length === t.length; + case 8: + return b.isLiteralNameOfPropertyDeclarationOrIndexAccess(e) && e.text.length === t.length; + case 88: + return "default".length === t.length; + default: + return + } + }(p, u.text)) { + if (H(p, _)) { + var f = _.checker.getSymbolAtLocation(p); + if (f) { + var g = p.parent; + if (!b.isImportSpecifier(g) || g.propertyName !== p) + if (b.isExportSpecifier(g)) b.Debug.assert(79 === p.kind), G(p, f, g, u, _, d); + else { + var m = function(i, a, e, r) { + var n = r.checker; + return X(a, e, n, !1, 2 !== r.options.use || !!r.options.providePrefixAndSuffixTextForRename, function(e, t, r, n) { + return r && M(a) !== M(r) && (r = void 0), i.includes(r || t || e) ? { + symbol: !t || 6 & b.getCheckFlags(e) ? e : t, + kind: n + } : void 0 + }, function(t) { + return !i.parents || i.parents.some(function(e) { + return function t(e, r, n, i) { + if (e === r) return !0; + var a = b.getSymbolId(e) + "," + b.getSymbolId(r); + var o = n.get(a); + if (void 0 !== o) return o; + n.set(a, !1); + o = !!e.declarations && e.declarations.some(function(e) { + return b.getAllSuperTypeNodes(e).some(function(e) { + e = i.getTypeAtLocation(e); + return !!e && !!e.symbol && t(e.symbol, r, n, i) + }) + }); + n.set(a, o); + return o + }(t.parent, e, r.inheritsFromCache, n) + }) + }) + }(u, f, p, _); + if (m) { + switch (_.specialSearchKind) { + case 0: + d && I(p, m, _); + break; + case 1: + ! function(e, t, r, n) { + b.isNewExpressionTarget(e) && I(e, r.symbol, n); + + function i() { + return n.referenceAdder(r.symbol) + } + b.isClassLike(e.parent) ? (b.Debug.assert(88 === e.kind || e.parent.name === e), function(e, t, r) { + var n = O(e); + if (n && n.declarations) + for (var i = 0, a = n.declarations; i < a.length; i++) { + var o = a[i], + s = b.findChildOfKind(o, 135, t); + b.Debug.assert(173 === o.kind && !!s), r(s) + } + e.exports && e.exports.forEach(function(e) { + var e = e.valueDeclaration; + e && 171 === e.kind && (e = e.body) && L(e, 108, function(e) { + b.isNewExpressionTarget(e) && r(e) + }) + }) + }(r.symbol, t, i())) : (t = function(e) { + return b.tryGetClassExtendingExpressionWithTypeArguments(b.climbPastPropertyAccess(e).parent) + }(e)) && (function(e, t) { + e = O(e.symbol); + if (e && e.declarations) + for (var r = 0, n = e.declarations; r < n.length; r++) { + var i = n[r], + i = (b.Debug.assert(173 === i.kind), i.body); + i && L(i, 106, function(e) { + b.isCallExpressionTarget(e) && t(e) + }) + } + }(t, i()), function(e, t) { + var r; + ! function(e) { + return O(e.symbol) + }(e) && (e = e.symbol, r = t.createSearch(void 0, e, void 0), z(e, t, r)) + }(t, n)) + }(p, c, u, _); + break; + case 2: + ! function(e, t, r) { + I(e, t.symbol, r); + var n = e.parent; + if (2 !== r.options.use && b.isClassLike(n)) { + b.Debug.assert(n.name === e); + for (var i = r.referenceAdder(t.symbol), a = 0, o = n.members; a < o.length; a++) { + var s = o[a]; + b.isMethodOrAccessor(s) && b.isStatic(s) && s.body && s.body.forEachChild(function e(t) { + 108 === t.kind ? i(t) : b.isFunctionLike(t) || b.isClassLike(t) || t.forEachChild(e) + }) + } + } + }(p, u, _); + break; + default: + b.Debug.assertNever(_.specialSearchKind) + } + b.isInJSFile(p) && 205 === p.parent.kind && b.isVariableDeclarationInitializedToBareOrAccessedRequire(p.parent.parent.parent) && !(f = p.parent.symbol) || ! function(e, t, r, n) { + t = x.getImportOrExportSymbol(e, t, n.checker, 1 === r.comingFrom); + t && (r = t.symbol, 0 === t.kind ? R(n.options) || U(r, n) : A(e, r, t.exportInfo, n)) + }(p, f, u, _) + } else ! function(e, t, r) { + var n = e.flags, + e = e.valueDeclaration, + i = r.checker.getShorthandAssignmentValueSymbol(e), + e = e && b.getNameOfDeclaration(e); + 33554432 & n || !e || !t.includes(i) || I(e, i, r) + }(f, u, _) + } + } + } + } else !_.options.implementations && (_.options.findInStrings && b.isInString(c, l) || _.options.findInComments && b.isInNonReferenceComment(c, l)) && _.addStringOrCommentReference(c.fileName, b.createTextSpan(l, u.text.length)) + } + } + + function H(e, t) { + return b.getMeaningFromLocation(e) & t.searchMeaning + } + + function G(e, t, r, n, i, a, o) { + b.Debug.assert(!o || !!i.options.providePrefixAndSuffixTextForRename, "If alwaysGetReferences is true, then prefix/suffix text must be enabled"); + var s = r.parent, + c = r.propertyName, + l = r.name, + s = s.parent, + u = w(e, t, r, i.checker); + + function _() { + a && I(e, u, i) + }(o || n.includes(u)) && (c ? e === c ? (s.moduleSpecifier || _(), a && 2 !== i.options.use && i.markSeenReExportRHS(l) && I(l, b.Debug.checkDefined(r.symbol), i)) : i.markSeenReExportRHS(e) && _() : 2 === i.options.use && "default" === l.escapedText || _(), (!R(i.options) || o) && (t = 88 === e.originalKeywordKind || 88 === r.name.originalKeywordKind ? 1 : 0, l = b.Debug.checkDefined(r.symbol), o = x.getExportInfo(l, t, i.checker)) && A(e, l, o, i), 1 === n.comingFrom || !s.moduleSpecifier || c || R(i.options) || (t = i.checker.getExportSpecifierLocalTargetSymbol(r)) && U(t, i)) + } + + function w(e, t, r, n) { + return e = e, a = (i = r).parent, o = r.propertyName, i = r.name, b.Debug.assert(o === e || i === e), (o ? o === e : !a.parent.moduleSpecifier) && n.getExportSpecifierLocalTargetSymbol(r) || t; + var i, a, o + } + + function I(e, t, r) { + var n, i, a, t = "kind" in t ? t : { + kind: void 0, + symbol: t + }, + o = t.kind, + t = t.symbol; + + function s(e) { + ! function e(t) { + switch (t.kind) { + case 214: + return e(t.expression); + case 216: + case 215: + case 207: + case 228: + case 206: + return !0; + default: + return !1 + } + }(e) || i(e) + } + 2 === r.options.use && 88 === e.kind || (t = r.referenceAdder(t), r.options.implementations ? (n = e, i = t, r = r, b.isDeclarationName(n) && function(e) { + return 16777216 & e.flags ? !b.isInterfaceDeclaration(e) && !b.isTypeAliasDeclaration(e) : b.isVariableLike(e) ? b.hasInitializer(e) : b.isFunctionLikeDeclaration(e) ? e.body : b.isClassLike(e) || b.isModuleOrEnumDeclaration(e) + }(n.parent) ? i(n) : 79 === n.kind && (300 === n.parent.kind && Z(n, r.checker, i), (a = function e(t) { + return b.isIdentifier(t) || b.isPropertyAccessExpression(t) ? e(t.parent) : b.isExpressionWithTypeArguments(t) ? b.tryCast(t.parent.parent, b.isClassLike) : void 0 + }(n)) ? i(a) : (a = b.findAncestor(n, function(e) { + return !b.isQualifiedName(e.parent) && !b.isTypeNode(e.parent) && !b.isTypeElement(e.parent) + }), n = a.parent, b.hasType(n) && n.type === a && r.markSeenContainingTypeReference(n) && (b.hasInitializer(n) ? s(n.initializer) : b.isFunctionLike(n) && n.body ? 238 === (a = n.body).kind ? b.forEachReturnStatement(a, function(e) { + e.expression && s(e.expression) + }) : s(a) : b.isAssertionExpression(n) && s(n.expression))))) : t(e, o)) + } + + function O(e) { + return e.members && e.members.get("__constructor") + } + + function Q(e) { + return 79 === e.kind && 166 === e.parent.kind && e.parent.name === e + } + + function X(e, t, c, r, n, l, u) { + var i = b.getContainingObjectLiteralElement(t); + if (i) { + var a = c.getShorthandAssignmentValueSymbol(t.parent); + if (a && r) return l(a, void 0, void 0, 3); + var o = c.getContextualType(i.parent), + i = o && b.firstDefined(b.getPropertySymbolsFromContextualType(i, c, o, !0), function(e) { + return _(e, 4) + }); + if (i) return i; + o = t, i = c; + i = b.isArrayLiteralOrObjectLiteralDestructuringPattern(o.parent.parent) ? i.getPropertySymbolOfDestructuringAssignment(o) : void 0, o = i && l(i, void 0, void 0, 4); + if (o) return o; + i = a && l(a, void 0, void 0, 3); + if (i) return i + } + o = C(t, e, c); + if (o) { + a = l(o, void 0, void 0, 1); + if (a) return a + } + i = _(e); + if (i) return i; + if (e.valueDeclaration && b.isParameterPropertyDeclaration(e.valueDeclaration, e.valueDeclaration.parent)) return a = c.getSymbolsOfParameterPropertyDeclaration(b.cast(e.valueDeclaration, b.isParameter), e.name), b.Debug.assert(2 === a.length && !!(1 & a[0].flags) && !!(4 & a[1].flags)), _(1 & e.flags ? a[1] : a[0]); + var s, i = b.getDeclarationOfKind(e, 278); + if (!r || i && !i.propertyName) { + a = i && c.getExportSpecifierLocalTargetSymbol(i); + if (a) { + i = l(a, void 0, void 0, 1); + if (i) return i + } + } + return r ? (b.Debug.assert(r), n ? (s = d(e, c)) && _(s, 4) : void 0) : (s = void 0, (s = n ? b.isObjectBindingElementWithoutPropertyName(t.parent) ? b.getPropertySymbolFromBindingElement(c, t.parent) : void 0 : d(e, c)) && _(s, 4)); + + function _(r, s) { + return b.firstDefined(c.getRootSymbols(r), function(t) { + return l(r, t, void 0, s) || (t.parent && 96 & t.parent.flags && u(t) ? (e = t.parent, n = t.name, i = c, a = function(e) { + return l(r, t, e, s) + }, o = new b.Map, function r(e) { + if (!(96 & e.flags && b.addToSeen(o, b.getSymbolId(e)))) return; + return b.firstDefined(e.declarations, function(e) { + return b.firstDefined(b.getAllSuperTypeNodes(e), function(e) { + var e = i.getTypeAtLocation(e), + t = e && e.symbol && i.getPropertyOfType(e, n); + return e && t && (b.firstDefined(i.getRootSymbols(t), a) || r(e.symbol)) + }) + }) + }(e)) : void 0); + var e, n, i, a, o + }) + } + + function d(e, t) { + e = b.getDeclarationOfKind(e, 205); + if (e && b.isObjectBindingElementWithoutPropertyName(e)) return b.getPropertySymbolFromBindingElement(t, e) + } + } + + function M(e) { + return !!e.valueDeclaration && !!(32 & b.getEffectiveModifierFlags(e.valueDeclaration)) + } + + function Y(e, t) { + var r = b.getMeaningFromLocation(e), + n = t.declarations; + if (n) + do { + for (var i = r, a = 0, o = n; a < o.length; a++) { + var s = o[a], + s = b.getMeaningFromDeclaration(s); + s & r && (r |= s) + } + } while (r !== i); + return r + } + + function Z(e, t, r) { + e = t.getSymbolAtLocation(e), t = t.getShorthandAssignmentValueSymbol(e.valueDeclaration); + if (t) + for (var n = 0, i = t.getDeclarations(); n < i.length; n++) { + var a = i[n]; + 1 & b.getMeaningFromDeclaration(a) && r(a) + } + } + + function L(e, t, r) { + b.forEachChild(e, function(e) { + e.kind === t && r(e), L(e, t, r) + }) + } + + function R(e) { + return 2 === e.use && e.providePrefixAndSuffixTextForRename + } + x = b.FindAllReferences || (b.FindAllReferences = {}), (e = x.DefinitionKind || (x.DefinitionKind = {}))[e.Symbol = 0] = "Symbol", e[e.Label = 1] = "Label", e[e.Keyword = 2] = "Keyword", e[e.This = 3] = "This", e[e.String = 4] = "String", e[e.TripleSlashReference = 5] = "TripleSlashReference", (e = x.EntryKind || (x.EntryKind = {}))[e.Span = 0] = "Span", e[e.Node = 1] = "Node", e[e.StringLiteral = 2] = "StringLiteral", e[e.SearchedLocalFoundProperty = 3] = "SearchedLocalFoundProperty", e[e.SearchedPropertyFoundLocal = 4] = "SearchedPropertyFoundLocal", x.nodeEntry = g, x.isContextWithStartAndEndNode = n, x.getContextNode = _, x.toContextSpan = d, (e = x.FindReferencesUse || (x.FindReferencesUse = {}))[e.Other = 0] = "Other", e[e.References = 1] = "References", e[e.Rename = 2] = "Rename", x.findReferencedSymbols = function(e, t, r, n, i) { + var u = b.getTouchingPropertyName(n, i), + n = { + use: 1 + }, + i = s.getReferencedSymbolsForNode(i, u, e, r, t, n), + a = e.getTypeChecker(), + r = s.getAdjustedNode(u, n), + o = 88 === (e = r).kind || b.getDeclarationFromName(e) || b.isLiteralComputedPropertyDeclarationName(e) || 135 === e.kind && b.isConstructorDeclaration(e.parent) ? a.getSymbolAtLocation(r) : void 0; + return i && i.length ? b.mapDefined(i, function(e) { + var l = e.definition, + e = e.references; + return l && { + definition: a.runWithCancellationToken(t, function(e) { + return o = l, s = e, c = u, e = function() { + switch (o.type) { + case 0: + var e = m(a = o.symbol, s, c), + t = e.displayParts, + e = e.kind, + r = t.map(function(e) { + return e.text + }).join(""), + n = a.declarations && b.firstOrUndefined(a.declarations), + i = n ? b.getNameOfDeclaration(n) || n : c; + return __assign(__assign({}, f(i)), { + name: r, + kind: e, + displayParts: t, + context: _(n) + }); + case 1: + i = o.node; + return __assign(__assign({}, f(i)), { + name: i.text, + kind: "label", + displayParts: [b.displayPart(i.text, b.SymbolDisplayPartKind.text)] + }); + case 2: + var i = o.node, + r = b.tokenToString(i.kind); + return __assign(__assign({}, f(i)), { + name: r, + kind: "keyword", + displayParts: [{ + text: r, + kind: "keyword" + }] + }); + case 3: + var a, i = o.node, + e = (a = s.getSymbolAtLocation(i)) && b.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(s, a, i.getSourceFile(), b.getContainerNode(i), i).displayParts || [b.textPart("this")]; + return __assign(__assign({}, f(i)), { + name: "this", + kind: "var", + displayParts: e + }); + case 4: + i = o.node; + return __assign(__assign({}, f(i)), { + name: i.text, + kind: "var", + displayParts: [b.displayPart(b.getTextOfNode(i), b.SymbolDisplayPartKind.stringLiteral)] + }); + case 5: + return { + textSpan: b.createTextSpanFromRange(o.reference), + sourceFile: o.file, + name: o.reference.fileName, + kind: "string", + displayParts: [b.displayPart('"'.concat(o.reference.fileName, '"'), b.SymbolDisplayPartKind.stringLiteral)] + }; + default: + return b.Debug.assertNever(o) + } + }(), t = e.sourceFile, r = e.textSpan, n = e.name, i = e.kind, a = e.displayParts, e = e.context, __assign({ + containerKind: "", + containerName: "", + fileName: t.fileName, + kind: i, + name: n, + textSpan: r, + displayParts: a + }, d(r, t, e)); + var o, s, c, t, r, n, i, a + }), + references: e.map(function(e) { + return t = o, r = y(e = e), t ? __assign(__assign({}, r), { + isDefinition: 0 !== e.kind && D(e.node, t) + }) : r; + var t, r + }) + } + }) : void 0 + }, x.getImplementationsAtPosition = function(e, t, r, n, i) { + if (n = b.getTouchingPropertyName(n, i), i = u(e, t, r, n, i), 208 === n.parent.kind || 205 === n.parent.kind || 209 === n.parent.kind || 106 === n.kind) s = i && __spreadArray([], i, !0); + else if (i) + for (var a = b.createQueue(i), o = new b.Map; !a.isEmpty();) { + var s, c = a.dequeue(); + b.addToSeen(o, b.getNodeId(c.node)) && (s = b.append(s, c), c = u(e, t, r, c.node, c.node.pos)) && a.enqueue.apply(a, c) + } + var l = e.getTypeChecker(); + return b.map(s, function(e) { + return t = l, r = h(e = e), 0 !== e.kind ? (e = e.node, __assign(__assign({}, r), function(e, t) { + var r = t.getSymbolAtLocation(b.isDeclaration(e) && e.name ? e.name : e); + return r ? m(r, t, e) : 207 === e.kind ? { + kind: "interface", + displayParts: [b.punctuationPart(20), b.textPart("object literal"), b.punctuationPart(21)] + } : 228 === e.kind ? { + kind: "local class", + displayParts: [b.punctuationPart(20), b.textPart("anonymous local class"), b.punctuationPart(21)] + } : { + kind: b.getNodeKind(e), + displayParts: [] + } + }(e, t))) : __assign(__assign({}, r), { + kind: "", + displayParts: [] + }); + var t, r + }) + }, x.findReferenceOrRenameEntries = function(t, e, r, n, i, a, o) { + return b.map(l(s.getReferencedSymbolsForNode(i, n, t, r, e, a)), function(e) { + return o(e, n, t.getTypeChecker()) + }) + }, x.getReferenceEntriesForNode = c, x.toRenameLocation = function(e, t, r, n) { + return __assign(__assign({}, h(e)), n && function(e, t, r) { + if (0 !== e.kind && b.isIdentifier(t)) { + var n, i = e.node, + a = e.kind, + o = i.parent, + s = t.text, + c = b.isShorthandPropertyAssignment(o); + if (c || b.isObjectBindingElementWithoutPropertyName(o) && o.name === i && void 0 === o.dotDotDotToken) return i = { + prefixText: s + ": " + }, n = { + suffixText: ": " + s + }, 3 === a || 4 !== a && (!c || (a = o.parent, b.isObjectLiteralExpression(a) && b.isBinaryExpression(a.parent) && b.isModuleExportsAccessExpression(a.parent.left))) ? i : n; + if (b.isImportSpecifier(o) && !o.propertyName) return c = b.isExportSpecifier(t.parent) ? r.getExportSpecifierLocalTargetSymbol(t.parent) : r.getSymbolAtLocation(t), b.contains(c.declarations, o) ? { + prefixText: s + " as " + } : b.emptyOptions; + if (b.isExportSpecifier(o) && !o.propertyName) return t === e.node || r.getSymbolAtLocation(t) === r.getSymbolAtLocation(e.node) ? { + prefixText: s + " as " + } : { + suffixText: " as " + s + } + } + return b.emptyOptions + }(e, t, r)) + }, x.toReferenceEntry = y, x.toHighlightSpan = function(e) { + var t, r = h(e); + return 0 === e.kind ? { + fileName: r.fileName, + span: { + textSpan: r.textSpan, + kind: "reference" + } + } : (t = a(e.node), t = __assign({ + textSpan: r.textSpan, + kind: t ? "writtenReference" : "reference", + isInString: 2 === e.kind || void 0 + }, r.contextSpan && { + contextSpan: r.contextSpan + }), { + fileName: r.fileName, + span: t + }) + }, x.getTextSpanOfEntry = v, x.isDeclarationOfSymbol = D, (e = s = x.Core || (x.Core = {})).getReferencedSymbolsForNode = function(e, t, r, n, i, a, o) { + if (void 0 === a && (a = {}), void 0 === o && (o = new b.Set(n.map(function(e) { + return e.fileName + }))), t = S(t, a), b.isSourceFile(t)) return null != (e = b.GoToDefinition.getReferenceAtPosition(t, e, r)) && e.file ? (s = r.getTypeChecker().getMergedSymbol(e.file.symbol)) ? N(r, s, !1, n, o) : (d = r.getFileIncludeReasons()) ? [{ + definition: { + type: 5, + reference: e.reference, + file: t + }, + references: T(e.file, d, r) || b.emptyArray + }] : void 0 : void 0; + if (!a.implementations) { + var s = function(e, t, r) { + if (b.isTypeKeyword(e.kind)) return (114 !== e.kind || !b.isVoidExpression(e.parent)) && (146 !== e.kind || j(e)) ? function(e, t, r, n) { + e = b.flatMap(e, function(e) { + return r.throwIfCancellationRequested(), b.mapDefined(F(e, b.tokenToString(t), e), function(e) { + if (e.kind === t && (!n || n(e))) return g(e) + }) + }); + return e.length ? [{ + definition: { + type: 2, + node: e[0].node + }, + references: e + }] : void 0 + }(t, e.kind, r, 146 === e.kind ? j : void 0) : void 0; + if (b.isImportMeta(e.parent) && e.parent.name === e) return function(e, t) { + e = b.flatMap(e, function(e) { + return t.throwIfCancellationRequested(), b.mapDefined(F(e, "meta", e), function(e) { + e = e.parent; + if (b.isImportMeta(e)) return g(e) + }) + }); + return e.length ? [{ + definition: { + type: 2, + node: e[0].node + }, + references: e + }] : void 0 + }(t, r); + if (b.isStaticModifier(e) && b.isClassStaticBlockDeclaration(e.parent)) return [{ + definition: { + type: 2, + node: e + }, + references: [g(e)] + }]; { + if (b.isJumpStatementTarget(e)) return (n = b.getTargetLabel(e.parent, e.text)) && q(n.parent, n); + if (b.isLabelOfLabeledStatement(e)) return q(e.parent, e) + } + if (b.isThis(e)) return function(e, t, r) { + var n = b.getThisContainer(e, !1), + i = 32; + switch (n.kind) { + case 171: + case 170: + if (b.isObjectLiteralMethod(n)) { + i &= b.getSyntacticModifierFlags(n), n = n.parent; + break + } + case 169: + case 168: + case 173: + case 174: + case 175: + i &= b.getSyntacticModifierFlags(n), n = n.parent; + break; + case 308: + if (b.isExternalModule(n) || Q(e)) return; + case 259: + case 215: + break; + default: + return + } + t = b.flatMap(308 === n.kind ? t : [n.getSourceFile()], function(e) { + return r.throwIfCancellationRequested(), F(e, "this", b.isSourceFile(n) ? e : n).filter(function(e) { + if (!b.isThis(e)) return !1; + var t = b.getThisContainer(e, !1); + switch (n.kind) { + case 215: + case 259: + return n.symbol === t.symbol; + case 171: + case 170: + return b.isObjectLiteralMethod(n) && n.symbol === t.symbol; + case 228: + case 260: + case 207: + return t.parent && n.symbol === t.parent.symbol && b.isStatic(t) === !!i; + case 308: + return 308 === t.kind && !b.isExternalModule(t) && !Q(e) + } + }) + }).map(function(e) { + return g(e) + }); + return [{ + definition: { + type: 3, + node: b.firstDefined(t, function(e) { + return b.isParameter(e.node.parent) ? e.node : void 0 + }) || e + }, + references: t + }] + }(e, t, r); + if (106 === e.kind) { + var n = e, + i = b.getSuperContainer(n, !1); + if (i) { + var a = 32; + switch (i.kind) { + case 169: + case 168: + case 171: + case 170: + case 173: + case 174: + case 175: + a &= b.getSyntacticModifierFlags(i), i = i.parent; + break; + default: + return + } + return n = i.getSourceFile(), n = b.mapDefined(F(n, "super", i), function(e) { + var t; + return 106 === e.kind && (t = b.getSuperContainer(e, !1)) && b.isStatic(t) === !!a && t.parent.symbol === i.symbol ? g(e) : void 0 + }), [{ + definition: { + type: 0, + symbol: i.symbol + }, + references: n + }] + } + } + }(t, n, i); + if (s) return s + } + var c, l, u, _, e = r.getTypeChecker(); + if (s = e.getSymbolAtLocation(b.isConstructorDeclaration(t) && t.parent.name || t)) return "export=" === s.escapedName ? N(r, s.parent, !1, n, o) : !(f = E(s, r, n, i, a, o)) || 33554432 & s.flags ? (p = (p = C(t, s, e)) && E(p, r, n, i, a, o), k(r, f, J(s, t, n, o, e, i, a), p)) : f; + if (!a.implementations && b.isStringLiteralLike(t)) { + if (b.isModuleSpecifierLike(t)) { + var d = r.getFileIncludeReasons(), + p = null == (o = null == (s = t.getSourceFile().resolvedModules) ? void 0 : s.get(t.text, b.getModeForUsageLocation(t.getSourceFile(), t))) ? void 0 : o.resolvedFileName, + f = p ? r.getSourceFile(p) : void 0; + if (f) return [{ + definition: { + type: 4, + node: t + }, + references: T(f, d, r) || b.emptyArray + }] + } + return c = t, a = n, l = e, u = i, _ = b.getContextualTypeFromParentOrAncestorTypeNode(c, l), a = b.flatMap(a, function(r) { + return u.throwIfCancellationRequested(), b.mapDefined(F(r, c.text), function(e) { + var t; + if (b.isStringLiteralLike(e) && e.text === c.text) return _ ? (t = b.getContextualTypeFromParentOrAncestorTypeNode(e, l), _ !== l.getStringType() && _ === t ? g(e, 2) : void 0) : b.isNoSubstitutionTemplateLiteral(e) && !b.rangeIsOnSingleLine(e, r) ? void 0 : g(e, 2) + }) + }), [{ + definition: { + type: 4, + node: c + }, + references: a + }] + } + }, e.getAdjustedNode = S, e.getReferencesForFileName = function(e, t, r, n) { + void 0 === n && (n = new b.Set(r.map(function(e) { + return e.fileName + }))); + var i = null == (i = t.getSourceFile(e)) ? void 0 : i.symbol; + return i ? (null == (i = N(t, i, !1, r, n)[0]) ? void 0 : i.references) || b.emptyArray : (r = t.getFileIncludeReasons(), (n = t.getSourceFile(e)) && r && T(n, r, t) || b.emptyArray) + }, t.prototype.includesSourceFile = function(e) { + return this.sourceFilesSet.has(e.fileName) + }, t.prototype.getImportSearches = function(e, t) { + return this.importTracker || (this.importTracker = x.createImportTracker(this.sourceFiles, this.sourceFilesSet, this.checker, this.cancellationToken)), this.importTracker(e, t, 2 === this.options.use) + }, t.prototype.createSearch = function(e, t, r, n) { + var i = (n = void 0 === n ? {} : n).text, + i = void 0 === i ? b.stripQuotes(b.symbolName(b.getLocalSymbolForExportDefault(t) || function(e) { + if (33555968 & e.flags) return (e = e.declarations && b.find(e.declarations, function(e) { + return !b.isSourceFile(e) && !b.isModuleDeclaration(e) + })) && e.symbol + }(t) || t)) : i, + n = n.allSearchSymbols, + a = void 0 === n ? [t] : n; + return { + symbol: t, + comingFrom: r, + text: i, + escapedText: b.escapeLeadingUnderscores(i), + parents: this.options.implementations && e ? function(e, t, r) { + e = b.isRightSideOfPropertyAccess(e) ? e.parent : void 0, r = e && r.getTypeAtLocation(e.expression), e = b.mapDefined(r && (r.isUnionOrIntersection() ? r.types : r.symbol === t.parent ? void 0 : [r]), function(e) { + return e.symbol && 96 & e.symbol.flags ? e.symbol : void 0 + }); + return 0 === e.length ? void 0 : e + }(e, t, this.checker) : void 0, + allSearchSymbols: a, + includes: function(e) { + return b.contains(a, e) + } + } + }, t.prototype.referenceAdder = function(e) { + var t = b.getSymbolId(e), + r = this.symbolIdToReferences[t]; + return r || (r = this.symbolIdToReferences[t] = [], this.result.push({ + definition: { + type: 0, + symbol: e + }, + references: r + })), + function(e, t) { + return r.push(g(e, t)) + } + }, t.prototype.addStringOrCommentReference = function(e, t) { + this.result.push({ + definition: void 0, + references: [{ + kind: 0, + fileName: e, + textSpan: t + }] + }) + }, t.prototype.markSearchedSymbols = function(e, t) { + for (var e = b.getNodeId(e), r = this.sourceFileToSeenSymbols[e] || (this.sourceFileToSeenSymbols[e] = new b.Set), n = !1, i = 0, a = t; i < a.length; i++) var o = a[i], + n = b.tryAddToSet(r, b.getSymbolId(o)) || n; + return n + }, p = t, e.eachExportReference = function(e, t, r, n, i, a, o, s) { + for (var r = (e = x.createImportTracker(e, new b.Set(e.map(function(e) { + return e.fileName + })), t, r)(n, { + exportKind: o ? 1 : 0, + exportingModuleSymbol: i + }, !1)).importSearches, i = e.indirectUsers, e = e.singleReferences, c = 0, l = r; c < l.length; c++) s(l[c][0]); + for (var u = 0, _ = e; u < _.length; u++) { + var d = _[u]; + b.isIdentifier(d) && b.isImportTypeNode(d.parent) && s(d) + } + for (var p = 0, f = i; p < f.length; p++) + for (var g = 0, m = F(f[p], o ? "default" : a); g < m.length; g++) { + var y = m[g], + h = t.getSymbolAtLocation(y), + v = b.some(null == h ? void 0 : h.declarations, function(e) { + return !!b.tryCast(e, b.isExportAssignment) + }); + !b.isIdentifier(y) || b.isImportOrExportSpecifier(y.parent) || h !== n && !v || s(y) + } + }, e.isSymbolReferencedInFile = function(e, t, r, n) { + return o(e, t, r, function() { + return !0 + }, n = void 0 === n ? r : n) || !1 + }, e.eachSymbolReferenceInFile = o, e.getTopMostDeclarationNamesInFile = function(e, t) { + return b.filter(F(t, e), function(e) { + return !!b.getDeclarationFromName(e) + }).reduce(function(e, t) { + var r = function(e) { + var t = 0; + for (; e;) e = b.getContainerNode(e), t++; + return t + }(t); + return b.some(e.declarationNames) && r !== e.depth ? r < e.depth && (e.declarationNames = [t], e.depth = r) : (e.declarationNames.push(t), e.depth = r), e + }, { + depth: 1 / 0, + declarationNames: [] + }).declarationNames + }, e.someSignatureUsage = function(e, t, r, n) { + if (e.name && b.isIdentifier(e.name)) + for (var i = b.Debug.checkDefined(r.getSymbolAtLocation(e.name)), a = 0, o = t; a < o.length; a++) + for (var s = 0, c = F(o[a], i.name); s < c.length; s++) { + var l = c[s]; + if (b.isIdentifier(l) && l !== e.name && l.escapedText === e.name.escapedText) { + var u = b.climbPastPropertyAccess(l), + u = b.isCallExpression(u.parent) && u.parent.expression === u ? u.parent : void 0, + _ = r.getSymbolAtLocation(l); + if (_ && r.getRootSymbols(_).some(function(e) { + return e === i + }) && n(l, u)) return !0 + } + } + return !1 + }, e.getIntersectingMeaningFromDeclarations = Y, e.getReferenceEntriesForShorthandPropertyAssignment = Z + }(ts = ts || {}), ! function(d) { + var e; + + function c(e) { + return (d.isFunctionExpression(e) || d.isArrowFunction(e) || d.isClassExpression(e)) && d.isVariableDeclaration(e.parent) && e === e.parent.initializer && d.isIdentifier(e.parent.name) && !!(2 & d.getCombinedNodeFlags(e.parent)) + } + + function o(e) { + return d.isSourceFile(e) || d.isModuleDeclaration(e) || d.isFunctionDeclaration(e) || d.isFunctionExpression(e) || d.isClassDeclaration(e) || d.isClassExpression(e) || d.isClassStaticBlockDeclaration(e) || d.isMethodDeclaration(e) || d.isMethodSignature(e) || d.isGetAccessorDeclaration(e) || d.isSetAccessorDeclaration(e) + } + + function l(e) { + return d.isSourceFile(e) || d.isModuleDeclaration(e) && d.isIdentifier(e.name) || d.isFunctionDeclaration(e) || d.isClassDeclaration(e) || d.isClassStaticBlockDeclaration(e) || d.isMethodDeclaration(e) || d.isMethodSignature(e) || d.isGetAccessorDeclaration(e) || d.isSetAccessorDeclaration(e) || (t = e, (d.isFunctionExpression(t) || d.isClassExpression(t)) && d.isNamedDeclaration(t)) || c(e); + var t + } + + function n(e) { + return d.isSourceFile(e) ? e : d.isNamedDeclaration(e) ? e.name : c(e) ? e.parent.name : d.Debug.checkDefined(e.modifiers && d.find(e.modifiers, u)) + } + + function u(e) { + return 88 === e.kind + } + + function _(e, t) { + t = n(t); + return t && e.getSymbolAtLocation(t) + } + + function p(e, t) { + return t.body ? t : d.isConstructorDeclaration(t) ? d.getFirstConstructorWithBody(t.parent) : d.isFunctionDeclaration(t) || d.isMethodDeclaration(t) ? (e = _(e, t)) && e.valueDeclaration && d.isFunctionLikeDeclaration(e.valueDeclaration) && e.valueDeclaration.body ? e.valueDeclaration : void 0 : t + } + + function i(e, t) { + var r, n = _(e, t); + if (n && n.declarations) { + var e = d.indicesOf(n.declarations), + i = d.map(n.declarations, function(e) { + return { + file: e.getSourceFile().fileName, + pos: e.pos + } + }); + e.sort(function(e, t) { + return d.compareStringsCaseSensitive(i[e].file, i[t].file) || i[e].pos - i[t].pos + }); + for (var a = void 0, o = 0, s = d.map(e, function(e) { + return n.declarations[e] + }); o < s.length; o++) { + var c = s[o]; + l(c) && (a && a.parent === c.parent && a.end === c.pos || (r = d.append(r, c)), a = c) + } + } + return r + } + + function s(e, t) { + var r; + return d.isClassStaticBlockDeclaration(t) ? t : d.isFunctionLikeDeclaration(t) ? null != (r = null != (r = p(e, t)) ? r : i(e, t)) ? r : t : null != (r = i(e, t)) ? r : t + } + + function f(e, t) { + for (var r, n = e.getTypeChecker(), i = !1;;) { + if (l(t)) return s(n, t); + if (o(t)) return (r = d.findAncestor(t, l)) && s(n, r); + if (d.isDeclarationName(t)) return l(t.parent) ? s(n, t.parent) : o(t.parent) ? (r = d.findAncestor(t.parent, l)) && s(n, r) : d.isVariableDeclaration(t.parent) && t.parent.initializer && c(t.parent.initializer) ? t.parent.initializer : void 0; + if (d.isConstructorDeclaration(t)) return l(t.parent) ? t.parent : void 0; + if (124 !== t.kind || !d.isClassStaticBlockDeclaration(t.parent)) { + if (d.isVariableDeclaration(t) && t.initializer && c(t.initializer)) return t.initializer; + if (!i) { + var a = n.getSymbolAtLocation(t); + if (a && (a = 2097152 & a.flags ? n.getAliasedSymbol(a) : a).valueDeclaration) { + i = !0, t = a.valueDeclaration; + continue + } + } + return + } + t = t.parent + } + } + + function a(e, t) { + var r = t.getSourceFile(), + e = function(e, t) { + if (d.isSourceFile(t)) return { + text: t.fileName, + pos: 0, + end: 0 + }; + if ((d.isFunctionDeclaration(t) || d.isClassDeclaration(t)) && !d.isNamedDeclaration(t)) { + var r = t.modifiers && d.find(t.modifiers, u); + if (r) return { + text: "default", + pos: r.getStart(), + end: r.getEnd() + } + } + var n, i, a, o, s; + return d.isClassStaticBlockDeclaration(t) ? (r = t.getSourceFile(), n = (r = d.skipTrivia(r.text, d.moveRangePastModifiers(t).pos)) + 6, i = (o = (a = e.getTypeChecker()).getSymbolAtLocation(t.parent)) ? "".concat(a.symbolToString(o, t.parent), " ") : "", { + text: "".concat(i, "static {}"), + pos: r, + end: n + }) : (i = c(t) ? t.parent.name : d.Debug.checkDefined(d.getNameOfDeclaration(t), "Expected call hierarchy item to have a name"), void 0 === (r = void 0 === (r = d.isIdentifier(i) ? d.idText(i) : d.isStringOrNumericLiteralLike(i) ? i.text : d.isComputedPropertyName(i) && d.isStringOrNumericLiteralLike(i.expression) ? i.expression.text : void 0) && (o = (a = e.getTypeChecker()).getSymbolAtLocation(i)) ? a.symbolToString(o, t) : r) && (s = d.createPrinter({ + removeComments: !0, + omitTrailingSemicolon: !0 + }), r = d.usingSingleLineStringWriter(function(e) { + return s.writeNode(4, t, t.getSourceFile(), e) + })), { + text: r, + pos: i.getStart(), + end: i.getEnd() + }) + }(e, t), + n = function(e) { + var t; + if (c(e)) return d.isModuleBlock(e.parent.parent.parent.parent) && d.isIdentifier(e.parent.parent.parent.parent.parent.name) ? e.parent.parent.parent.parent.parent.name.getText() : void 0; + switch (e.kind) { + case 174: + case 175: + case 171: + return 207 === e.parent.kind ? null == (t = d.getAssignedName(e.parent)) ? void 0 : t.getText() : null == (t = d.getNameOfDeclaration(e.parent)) ? void 0 : t.getText(); + case 259: + case 260: + case 264: + if (d.isModuleBlock(e.parent) && d.isIdentifier(e.parent.parent.name)) return e.parent.parent.name.getText() + } + }(t), + i = d.getNodeKind(t), + a = d.getNodeModifiers(t), + t = d.createTextSpanFromBounds(d.skipTrivia(r.text, t.getFullStart(), !1, !0), t.getEnd()), + o = d.createTextSpanFromBounds(e.pos, e.end); + return { + file: r.fileName, + kind: i, + kindModifiers: a, + name: e.text, + containerName: n, + span: t, + selectionSpan: o + } + } + + function g(e) { + return void 0 !== e + } + + function m(e) { + if (1 === e.kind) { + var t, e = e.node; + if (d.isCallOrNewExpressionTarget(e, !0, !0) || d.isTaggedTemplateTag(e, !0, !0) || d.isDecoratorTarget(e, !0, !0) || d.isJsxOpeningLikeElementTagName(e, !0, !0) || d.isRightSideOfPropertyAccess(e) || d.isArgumentExpressionOfElementAccess(e)) return t = e.getSourceFile(), { + declaration: d.findAncestor(e, l) || t, + range: d.createTextRangeFromNode(e, t) + } + } + } + + function y(e) { + return d.getNodeId(e.declaration) + } + + function h(s, c) { + function a(e) { + var t = d.isTaggedTemplateExpression(e) ? e.tag : d.isJsxOpeningLikeElement(e) ? e.tagName : d.isAccessExpression(e) || d.isClassStaticBlockDeclaration(e) ? e : e.expression, + r = f(s, t); + if (r) { + var n = d.createTextRangeFromNode(t, e.getSourceFile()); + if (d.isArray(r)) + for (var i = 0, a = r; i < a.length; i++) { + var o = a[i]; + c.push({ + declaration: o, + range: n + }) + } else c.push({ + declaration: r, + range: n + }) + } + } + return function e(t) { + if (t && !(16777216 & t.flags)) + if (l(t)) { + if (d.isClassLike(t)) + for (var r = 0, n = t.members; r < n.length; r++) { + var i = n[r]; + i.name && d.isComputedPropertyName(i.name) && e(i.name.expression) + } + } else { + switch (t.kind) { + case 79: + case 268: + case 269: + case 275: + case 261: + case 262: + return; + case 172: + return void a(t); + case 213: + case 231: + return void e(t.expression); + case 257: + case 166: + return e(t.name), void e(t.initializer); + case 210: + case 211: + return a(t), e(t.expression), void d.forEach(t.arguments, e); + case 212: + return a(t), e(t.tag), void e(t.template); + case 283: + case 282: + return a(t), e(t.tagName), void e(t.attributes); + case 167: + return a(t), void e(t.expression); + case 208: + case 209: + a(t), d.forEachChild(t, e); + break; + case 235: + return void e(t.expression) + } + d.isPartOfTypeNode(t) || d.forEachChild(t, e) + } + } + } + + function r(e, t) { + var r, n, i = [], + a = h(e, i); + switch (t.kind) { + case 308: + d.forEach(t.statements, a); + break; + case 264: + r = t, n = a, !d.hasSyntacticModifier(r, 2) && r.body && d.isModuleBlock(r.body) && d.forEach(r.body.statements, n); + break; + case 259: + case 215: + case 216: + case 171: + case 174: + case 175: + r = e.getTypeChecker(), n = a, (r = p(r, t)) && (d.forEach(r.parameters, n), n(r.body)); + break; + case 260: + case 228: + var o = t, + s = a, + c = (d.forEach(o.modifiers, s), d.getClassExtendsHeritageElement(o)); + c && s(c.expression); + for (var l = 0, u = o.members; l < u.length; l++) { + var _ = u[l]; + d.canHaveModifiers(_) && d.forEach(_.modifiers, s), d.isPropertyDeclaration(_) ? s(_.initializer) : d.isConstructorDeclaration(_) && _.body ? (d.forEach(_.parameters, s), s(_.body)) : d.isClassStaticBlockDeclaration(_) && s(_) + } + break; + case 172: + a(t.body); + break; + default: + d.Debug.assertNever(t) + } + return i + }(e = d.CallHierarchy || (d.CallHierarchy = {})).resolveCallHierarchyDeclaration = f, e.createCallHierarchyItem = a, e.getIncomingCalls = function(t, e, r) { + return !(d.isSourceFile(e) || d.isModuleDeclaration(e) || d.isClassStaticBlockDeclaration(e)) && (e = n(e), r = d.filter(d.FindAllReferences.findReferenceOrRenameEntries(t, r, t.getSourceFiles(), e, 0, { + use: 1 + }, m), g)) ? d.group(r, y, function(e) { + return { + from: a(t, (e = e)[0].declaration), + fromSpans: d.map(e, function(e) { + return d.createTextSpanFromRange(e.range) + }) + } + }) : [] + }, e.getOutgoingCalls = function(t, e) { + return 16777216 & e.flags || d.isMethodSignature(e) ? [] : d.group(r(t, e), y, function(e) { + return { + to: a(t, (e = e)[0].declaration), + fromSpans: d.map(e, function(e) { + return d.createTextSpanFromRange(e.range) + }) + } + }) + } + }(ts = ts || {}), ! function(w) { + function n(e, a, o, s) { + var c = o(e); + return function(e) { + var t = s && s.tryGetSourcePosition({ + fileName: e, + pos: 0 + }), + r = (r = t ? t.fileName : e, o(r) === c ? a : void 0 === (r = w.tryRemoveDirectoryPrefix(r, c, o)) ? void 0 : a + "/" + r); { + var n, i; + return t ? void 0 === r ? void 0 : (t = t.fileName, n = r, t = w.getRelativePathFromFile(t, n, o), I(w.getDirectoryPath(e), t)) : r + } + } + } + + function I(e, t) { + return w.ensurePathIsNonModuleName(w.normalizePath(w.combinePaths(e, t))) + } + + function O(e, t, r, n) { + if (t) { + if (t.resolvedModule) { + var i = o(t.resolvedModule.resolvedFileName); + if (i) return i + } + i = w.forEach(t.failedLookupLocations, function(e) { + var t = r(e); + return t && w.find(n, function(e) { + return e.fileName === t + }) ? a(e) : void 0 + }) || w.pathIsRelative(e.text) && w.forEach(t.failedLookupLocations, a); + return i || t.resolvedModule && { + newFileName: t.resolvedModule.resolvedFileName, + updated: !1 + } + } + + function a(e) { + return w.endsWith(e, "/package.json") ? void 0 : o(e) + } + + function o(e) { + e = r(e); + return e && { + newFileName: e, + updated: !0 + } + } + } + + function M(e, t) { + return w.createRange(e.getStart(t) + 1, e.end - 1) + } + + function L(e, t) { + if (w.isObjectLiteralExpression(e)) + for (var r = 0, n = e.properties; r < n.length; r++) { + var i = n[r]; + w.isPropertyAssignment(i) && w.isStringLiteral(i.name) && t(i, i.name.text) + } + } + w.getEditsForFileRename = function(y, h, E, k, e, t, r) { + var N = w.hostUsesCaseSensitiveFileNames(k), + A = w.createGetCanonicalFileName(N), + F = n(h, E, A, r), + P = n(E, h, A, r); + return w.textChanges.ChangeTracker.with({ + host: k, + formatContext: e, + preferences: t + }, function(e) { + function n(e) { + for (var t = !1, r = 0, n = w.isArrayLiteralExpression(e.initializer) ? e.initializer.elements : [e.initializer]; r < n.length; r++) t = i(n[r]) || t; + return t + } + + function i(e) { + var t; + return !!w.isStringLiteral(e) && (t = I(_, e.text), void 0 !== (t = r(t))) && (o.replaceRangeWithText(d, M(e, d), a(t)), !0) + } + + function a(e) { + return w.getRelativePathFromDirectory(_, e, !u) + } + t = y, o = e, r = F, s = h, c = E, l = k.getCurrentDirectory(), u = N, (d = t.getCompilerOptions().configFile) && (_ = w.getDirectoryPath(d.fileName), t = w.getTsConfigObjectLiteralExpression(d)) && L(t, function(e, t) { + switch (t) { + case "files": + case "include": + case "exclude": + var r; + return n(e) || "include" !== t || !w.isArrayLiteralExpression(e.initializer) ? void 0 : 0 === (r = w.mapDefined(e.initializer.elements, function(e) { + return w.isStringLiteral(e) ? e.text : void 0 + })).length ? void 0 : (r = w.getFileMatcherPatterns(_, [], r, u, l), void(w.getRegexFromPattern(w.Debug.checkDefined(r.includeFilePattern), u).test(s) && !w.getRegexFromPattern(w.Debug.checkDefined(r.includeFilePattern), u).test(c) && o.insertNodeAfter(d, w.last(e.initializer.elements), w.factory.createStringLiteral(a(c))))); + case "compilerOptions": + L(e.initializer, function(e, t) { + var r = w.getOptionFromName(t); + r && (r.isFilePath || "list" === r.type && r.element.isFilePath) ? n(e) : "paths" === t && L(e.initializer, function(e) { + if (w.isArrayLiteralExpression(e.initializer)) + for (var t = 0, r = e.initializer.elements; t < r.length; t++) i(r[t]) + }) + }) + } + }); + for (var t, o, r, s, c, l, u, _, d, v = y, b = e, x = F, D = P, S = k, T = A, C = v.getSourceFiles(), p = function(r) { + for (var e = x(r.fileName), n = null != e ? e : r.fileName, t = w.getDirectoryPath(n), i = D(r.fileName), a = i || r.fileName, o = w.getDirectoryPath(a), s = void 0 !== e || void 0 !== i, c = r, l = b, u = function(e) { + if (w.pathIsRelative(e)) return e = I(o, e), void 0 === (e = x(e)) ? void 0 : w.ensurePathIsNonModuleName(w.getRelativePathFromDirectory(t, e, T)) + }, _ = function(e) { + var t = v.getTypeChecker().getSymbolAtLocation(e); + return (null == t || !t.declarations || !t.declarations.some(function(e) { + return w.isAmbientModule(e) + })) && void 0 !== (t = void 0 !== i ? O(e, w.resolveModuleName(e.text, a, v.getCompilerOptions(), S), x, C) : function(e, t, r, n, i, a) { + { + var o; + return e ? (e = w.find(e.declarations, w.isSourceFile).fileName, void 0 === (o = a(e)) ? { + newFileName: e, + updated: !1 + } : { + newFileName: o, + updated: !0 + }) : (e = w.getModeForUsageLocation(r, t), o = i.resolveModuleNames ? i.getResolvedModuleWithFailedLookupLocationsFromCache && i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text, r.fileName, e) : n.getResolvedModuleWithFailedLookupLocationsFromCache(t.text, r.fileName, e), O(t, o, a, n.getSourceFiles())) + } + }(t, e, r, v, S, x)) && (t.updated || s && w.pathIsRelative(e.text)) ? w.moduleSpecifiers.updateModuleSpecifier(v.getCompilerOptions(), r, T(n), t.newFileName, w.createModuleSpecifierResolutionHost(v, S), e.text) : void 0 + }, d = 0, p = c.referencedFiles || w.emptyArray; d < p.length; d++) { + var f = p[d]; + void 0 !== (y = u(f.fileName)) && y !== c.text.slice(f.pos, f.end) && l.replaceRangeWithText(c, f, y) + } + for (var g = 0, m = c.imports; g < m.length; g++) { + var y, h = m[g]; + void 0 !== (y = _(h)) && y !== h.text && l.replaceRangeWithText(c, M(h, c), y) + } + }, f = 0, g = C; f < g.length; f++) { + var m = g[f]; + p(m) + } + }) + }, w.getPathUpdater = n + }(ts = ts || {}), ! function(v) { + var e; + + function i(e, t, r, n, i) { + var a = x(t, r, e), + o = a ? [(d = a.reference.fileName, o = a.fileName, c = a.unverified, { + fileName: o, + textSpan: v.createTextSpanFromBounds(0, 0), + kind: "script", + name: d, + containerName: void 0, + containerKind: void 0, + unverified: c + })] : v.emptyArray; + if (null != a && a.file) return o; + var s = v.getTouchingPropertyName(t, r); + if (s !== t) { + var c, l, u, _, d = s.parent, + p = e.getTypeChecker(); + if (161 === s.kind || v.isIdentifier(s) && v.isJSDocOverrideTag(d) && d.tagName === s) return function(e, t) { + var r = v.findAncestor(t, v.isClassElement); + if (r && r.name) { + var n = v.findAncestor(r, v.isClassLike); + if (n) { + n = v.getEffectiveBaseTypeNode(n); + if (n) { + n = v.skipParentheses(n.expression), n = v.isClassExpression(n) ? n.symbol : e.getSymbolAtLocation(n); + if (n) { + var i = v.unescapeLeadingUnderscores(v.getTextOfPropertyName(r.name)), + r = v.hasStaticModifier(r) ? e.getPropertyOfType(e.getTypeOfSymbol(n), i) : e.getPropertyOfType(e.getDeclaredTypeOfSymbol(n), i); + if (r) return S(e, r, t) + } + } + } + } + }(p, s) || v.emptyArray; + if (v.isJumpStatementTarget(s)) return (c = v.getTargetLabel(s.parent, s.text)) ? [C(p, c, "label", s.text, void 0)] : void 0; + if (105 === s.kind) return (a = v.findAncestor(s.parent, function(e) { + return v.isClassStaticBlockDeclaration(e) ? "quit" : v.isFunctionLikeDeclaration(e) + })) ? [E(p, a)] : void 0; + if (v.isStaticModifier(s) && v.isClassStaticBlockDeclaration(s.parent)) return a = (e = D(r = s.parent.parent, p, i)).symbol, l = e.failedAliasResolution, e = v.filter(r.members, v.isClassStaticBlockDeclaration), u = a ? p.symbolToString(a, r) : "", _ = s.getSourceFile(), v.map(e, function(e) { + var t = v.moveRangePastModifiers(e).pos, + t = v.skipTrivia(_.text, t); + return C(p, e, "constructor", "static {}", u, !1, l, { + start: t, + length: "static".length + }) + }); + var f, g, m, y, a = D(s, p, i), + r = a.symbol, + h = a.failedAliasResolution, + e = s; + if (n && h && (a = (a = v.forEach(__spreadArray([s], (null == r ? void 0 : r.declarations) || v.emptyArray, !0), function(e) { + return v.findAncestor(e, v.isAnyImportOrBareOrAccessedRequire) + })) && v.tryGetModuleSpecifierFromDeclaration(a)) && (r = (i = D(a, p, i)).symbol, h = i.failedAliasResolution, e = a), !r && v.isModuleSpecifierLike(e)) { + a = null == (i = t.resolvedModules) ? void 0 : i.get(e.text, v.getModeForUsageLocation(t, e)); + if (a) return [{ + name: e.text, + fileName: a.resolvedFileName, + containerName: void 0, + containerKind: void 0, + kind: "script", + textSpan: v.createTextSpan(0, 0), + failedAliasResolution: h, + isAmbient: v.isDeclarationFileName(a.resolvedFileName), + unverified: e !== s + }] + } + return r ? n && v.every(r.declarations, function(e) { + return e.getSourceFile().fileName === t.fileName + }) ? void 0 : !(g = function(e, t) { + t = function(e) { + var e = v.findAncestor(e, function(e) { + return !v.isRightSideOfPropertyAccess(e) + }), + t = null == e ? void 0 : e.parent; + return t && v.isCallLikeExpression(t) && v.getInvokedExpression(t) === e ? t : void 0 + }(t), e = t && e.getResolvedSignature(t); + return v.tryCast(e && e.declaration, function(e) { + return v.isFunctionLike(e) && !v.isFunctionTypeNode(e) + }) + }(p, s)) || v.isJsxOpeningLikeElement(s.parent) && function(e) { + switch (e.kind) { + case 173: + case 182: + case 177: + return 1; + default: + return + } + }(g) ? 300 === s.parent.kind ? (i = null != (m = p.getShorthandAssignmentValueSymbol(r.valueDeclaration)) && m.declarations ? m.declarations.map(function(e) { + return T(e, p, m, s, !1, h) + }) : v.emptyArray, v.concatenate(i, b(p, s) || v.emptyArray)) : v.isPropertyName(s) && v.isBindingElement(d) && v.isObjectBindingPattern(d.parent) && s === (d.propertyName || d.name) ? (y = v.getNameFromPropertyName(s), a = p.getTypeAtLocation(d.parent), void 0 === y ? v.emptyArray : v.flatMap(a.isUnion() ? a.types : [a], function(e) { + e = e.getProperty(y); + return e && S(p, e, s) + })) : v.concatenate(o, b(p, s) || S(p, r, s, h)) : (e = E(p, g, h), p.getRootSymbols(r).some(function(e) { + return (e = e) === (t = g).symbol || e === t.symbol.parent || v.isAssignmentExpression(t.parent) || !v.isCallLikeExpression(t.parent) && e === t.parent.symbol; + var t + }) ? [e] : (n = S(p, r, s, h, g) || v.emptyArray, 106 === s.kind ? __spreadArray([e], n, !0) : __spreadArray(__spreadArray([], n, !0), [e], !1))) : v.concatenate(o, (f = p, v.mapDefined(f.getIndexInfosAtLocation(s), function(e) { + return e.declaration && E(f, e.declaration) + }))) + } + } + + function b(t, r) { + var e = v.getContainingObjectLiteralElement(r); + if (e) { + var n = e && t.getContextualType(e.parent); + if (n) return v.flatMap(v.getPropertySymbolsFromContextualType(e, t, n, !1), function(e) { + return S(t, e, r) + }) + } + } + + function x(e, t, r) { + var n = s(e.referencedFiles, t); + if (n) return (i = r.getSourceFileFromReference(e, n)) && { + reference: n, + fileName: i.fileName, + file: i, + unverified: !1 + }; + var n = s(e.typeReferenceDirectives, t); + if (n) return (i = (a = r.getResolvedTypeReferenceDirectives().get(n.fileName, n.resolutionMode || e.impliedNodeFormat)) && r.getSourceFile(a.resolvedFileName)) && { + reference: n, + fileName: i.fileName, + file: i, + unverified: !1 + }; + var i, a = s(e.libReferenceDirectives, t); + if (a) return (i = r.getLibFileFromReference(a)) && { + reference: a, + fileName: i.fileName, + file: i, + unverified: !1 + }; + if (null != (n = e.resolvedModules) && n.size()) { + a = v.getTouchingToken(e, t); + if (v.isModuleSpecifierLike(a) && v.isExternalModuleNameRelative(a.text) && e.resolvedModules.has(a.text, v.getModeForUsageLocation(e, a))) return t = (n = null == (i = e.resolvedModules.get(a.text, v.getModeForUsageLocation(e, a))) ? void 0 : i.resolvedFileName) || v.resolvePath(v.getDirectoryPath(e.fileName), a.text), { + file: r.getSourceFile(t), + fileName: t, + reference: { + pos: a.getStart(), + end: a.getEnd(), + fileName: a.text + }, + unverified: !n + } + } + } + + function o(e, t, r, n) { + return v.flatMap(!e.isUnion() || 32 & e.flags ? [e] : e.types, function(e) { + return e.symbol && S(t, e.symbol, r, n) + }) + } + + function D(e, t, r) { + var n = t.getSymbolAtLocation(e), + i = !1; + if (null != n && n.declarations && 2097152 & n.flags && !r && (r = e, e = n.declarations[0], 79 === r.kind) && (r.parent === e || 271 !== e.kind)) { + r = t.getAliasedSymbol(n); + if (r.declarations) return { + symbol: r + }; + i = !0 + } + return { + symbol: n, + failedAliasResolution: i + } + } + + function S(r, n, i, a, t) { + var e = v.filter(n.declarations, function(e) { + return e !== t + }), + o = v.filter(e, function(e) { + return !v.isAssignmentDeclaration(e) || !((e = v.findAncestor(e, function(e) { + return !!v.isAssignmentExpression(e) || !v.isAssignmentDeclaration(e) && "quit" + })) && 5 === v.getAssignmentDeclarationKind(e)) + }), + o = v.some(o) ? o : e; + return function() { + if (32 & n.flags && !(19 & n.flags) && (v.isNewExpressionTarget(i) || 135 === i.kind)) return s((v.find(e, v.isClassLike) || v.Debug.fail("Expected declaration to have at least one class-like declaration")).members, !0) + }() || (v.isCallOrNewExpressionTarget(i) || v.isNameOfFunctionDeclaration(i) ? s(e, !1) : void 0) || v.map(o, function(e) { + return T(e, r, n, i, !1, a) + }); + + function s(e, t) { + if (e) return t = (e = e.filter(t ? v.isConstructorDeclaration : v.isFunctionLike)).filter(function(e) { + return !!e.body + }), e.length ? 0 !== t.length ? t.map(function(e) { + return T(e, r, n, i) + }) : [T(v.last(e), r, n, i, !1, a)] : void 0 + } + } + + function T(e, t, r, n, i, a) { + var o = t.symbolToString(r), + s = v.SymbolDisplay.getSymbolKind(t, r, n), + r = r.parent ? t.symbolToString(r.parent, n) : ""; + return C(t, e, s, o, r, i, a) + } + + function C(e, t, r, n, i, a, o, s) { + var c, l = t.getSourceFile(); + return s || (c = v.getNameOfDeclaration(t) || t, s = v.createTextSpanFromNode(c, l)), __assign(__assign({ + fileName: l.fileName, + textSpan: s, + kind: r, + name: n, + containerKind: void 0, + containerName: i + }, v.FindAllReferences.toContextSpan(s, l, v.FindAllReferences.getContextNode(t))), { + isLocal: ! function e(t, r) { + if (t.isDeclarationVisible(r)) return !0; + if (!r.parent) return !1; + if (v.hasInitializer(r.parent) && r.parent.initializer === r) return e(t, r.parent); + switch (r.kind) { + case 169: + case 174: + case 175: + case 171: + if (v.hasEffectiveModifier(r, 8)) return !1; + case 173: + case 299: + case 300: + case 207: + case 228: + case 216: + case 215: + return e(t, r.parent); + default: + return !1 + } + }(e, t), + isAmbient: !!(16777216 & t.flags), + unverified: a, + failedAliasResolution: o + }) + } + + function E(e, t, r) { + return T(t, e, t.symbol, t, !1, r) + } + + function s(e, t) { + return v.find(e, function(e) { + return v.textRangeContainsPositionInclusive(e, t) + }) + }(e = v.GoToDefinition || (v.GoToDefinition = {})).getDefinitionAtPosition = i, e.getReferenceAtPosition = x, e.getTypeDefinitionAtPosition = function(e, t, r) { + var n, i, a, r = v.getTouchingPropertyName(t, r); + if (r !== t) return v.isImportMeta(r.parent) && r.parent.name === r ? o(e.getTypeAtLocation(r.parent), e, r.parent, !1) : (n = (t = D(r, e, !1)).symbol, t = t.failedAliasResolution, n ? (a = (a = (a = function(e, t, r) { + if (t.symbol === e || e.valueDeclaration && t.symbol && v.isVariableDeclaration(e.valueDeclaration) && e.valueDeclaration.initializer === t.symbol.valueDeclaration) { + e = t.getCallSignatures(); + if (1 === e.length) return r.getReturnTypeOfSignature(v.first(e)) + } + return + }(n, i = e.getTypeOfSymbolAtLocation(n, r), e)) && o(a, e, r, t)) && 0 !== a.length ? a : o(i, e, r, t)).length ? a : !(111551 & n.flags) && 788968 & n.flags ? S(e, v.skipAlias(n, e), r, t) : void 0 : void 0) + }, e.getDefinitionAndBoundSpan = function(e, t, r) { + var n; + if ((e = i(e, t, r)) && 0 !== e.length) return (n = s(t.referencedFiles, r) || s(t.typeReferenceDirectives, r) || s(t.libReferenceDirectives, r)) ? { + definitions: e, + textSpan: v.createTextSpanFromRange(n) + } : (n = v.getTouchingPropertyName(t, r), { + definitions: e, + textSpan: v.createTextSpan(n.getStart(), n.getWidth()) + }) + }, e.createDefinitionInfo = T, e.findReferenceInPosition = s + }(ts = ts || {}), ! function(f) { + var e, t, r, n; + + function s(e, t) { + return f.arraysEqual(e, t, function(e, t) { + return e.kind === t.kind && e.text === t.text + }) + } + + function l(e, t) { + return "string" == typeof e ? [f.textPart(e)] : f.flatMap(e, function(e) { + return 324 === e.kind ? [f.textPart(e.text)] : f.buildLinkParts(e, t) + }) + } + + function i(e) { + return { + name: e, + kind: "", + kindModifiers: "", + displayParts: [f.textPart(e)], + documentation: f.emptyArray, + tags: void 0, + codeActions: void 0 + } + } + + function g(e, t) { + return !(null == t || !t.generateReturnInDocTemplate) && (f.isFunctionTypeNode(e) || f.isArrowFunction(e) && f.isExpression(e.body) || f.isFunctionLikeDeclaration(e) && e.body && f.isBlock(e.body) && !!f.forEachReturnStatement(e.body, function(e) { + return e + })) + } + + function m(e) { + for (; 214 === e.kind;) e = e.expression; + switch (e.kind) { + case 215: + case 216: + return e; + case 228: + return f.find(e.members, f.isConstructorDeclaration) + } + } + e = f.JsDoc || (f.JsDoc = {}), n = ["abstract", "access", "alias", "argument", "async", "augments", "author", "borrows", "callback", "class", "classdesc", "constant", "constructor", "constructs", "copyright", "default", "deprecated", "description", "emits", "enum", "event", "example", "exports", "extends", "external", "field", "file", "fileoverview", "fires", "function", "generator", "global", "hideconstructor", "host", "ignore", "implements", "inheritdoc", "inner", "instance", "interface", "kind", "lends", "license", "link", "listens", "member", "memberof", "method", "mixes", "module", "name", "namespace", "override", "package", "param", "private", "property", "protected", "public", "readonly", "requires", "returns", "see", "since", "static", "summary", "template", "this", "throws", "todo", "tutorial", "type", "typedef", "var", "variation", "version", "virtual", "yields"], e.getJsDocCommentsFromDeclarations = function(e, a) { + var o = []; + return f.forEachUnique(e, function(e) { + for (var t = 0, r = function(e) { + switch (e.kind) { + case 343: + case 350: + return [e]; + case 341: + case 348: + return [e, e.parent]; + default: + return f.getJSDocCommentsAndTags(e) + } + }(e); t < r.length; t++) { + var n = r[t], + i = f.isJSDoc(n) && n.tags && f.find(n.tags, function(e) { + return 330 === e.kind && ("inheritDoc" === e.tagName.escapedText || "inheritdoc" === e.tagName.escapedText) + }); + void 0 === n.comment && !i || f.isJSDoc(n) && 348 !== e.kind && 341 !== e.kind && n.tags && n.tags.some(function(e) { + return 348 === e.kind || 341 === e.kind + }) && !n.tags.some(function(e) { + return 343 === e.kind || 344 === e.kind + }) || (n = n.comment ? l(n.comment, a) : [], i && i.comment && (n = n.concat(l(i.comment, a))), f.contains(o, n, s)) || o.push(n) + } + }), f.flatten(f.intersperse(o, [f.lineBreakPart()])) + }, e.getJsDocTagsFromDeclarations = function(e, i) { + var a = []; + return f.forEachUnique(e, function(e) { + e = f.getJSDocTags(e); + if (!e.some(function(e) { + return 348 === e.kind || 341 === e.kind + }) || e.some(function(e) { + return 343 === e.kind || 344 === e.kind + })) + for (var t = 0, r = e; t < r.length; t++) { + var n = r[t]; + a.push({ + name: n.tagName.text, + text: function(e, t) { + var r = e.comment, + n = e.kind, + i = function(e) { + switch (e) { + case 343: + return f.parameterNamePart; + case 350: + return f.propertyNamePart; + case 347: + return f.typeParameterNamePart; + case 348: + case 341: + return f.typeAliasNamePart; + default: + return f.textPart + } + }(n); + switch (n) { + case 332: + case 331: + return c(e.class); + case 347: + var a, o = e, + s = []; + return o.constraint && s.push(f.textPart(o.constraint.getText())), f.length(o.typeParameters) && (f.length(s) && s.push(f.spacePart()), a = o.typeParameters[o.typeParameters.length - 1], f.forEach(o.typeParameters, function(e) { + s.push(i(e.getText())), a !== e && s.push.apply(s, [f.punctuationPart(27), f.spacePart()]) + })), r && s.push.apply(s, __spreadArray([f.spacePart()], l(r, t), !0)), s; + case 346: + return c(e.typeExpression); + case 348: + case 341: + case 350: + case 343: + case 349: + o = e.name; + return o ? c(o) : void 0 === r ? void 0 : l(r, t); + default: + return void 0 === r ? void 0 : l(r, t) + } + + function c(e) { + return e = e.getText(), r ? e.match(/^https?$/) ? __spreadArray([f.textPart(e)], l(r, t), !0) : __spreadArray([i(e), f.spacePart()], l(r, t), !0) : [f.textPart(e)] + } + }(n, i) + }) + } + }), a + }, e.getJSDocTagNameCompletions = function() { + return t = t || f.map(n, function(e) { + return { + name: e, + kind: "keyword", + kindModifiers: "", + sortText: f.Completions.SortText.LocationPriority + } + }) + }, e.getJSDocTagNameCompletionDetails = i, e.getJSDocTagCompletions = function() { + return r = r || f.map(n, function(e) { + return { + name: "@".concat(e), + kind: "keyword", + kindModifiers: "", + sortText: f.Completions.SortText.LocationPriority + } + }) + }, e.getJSDocTagCompletionDetails = i, e.getJSDocParameterNameCompletions = function(r) { + var n, i, e; + return f.isIdentifier(r.name) ? (n = r.name.text, e = (i = r.parent).parent, f.isFunctionLike(e) ? f.mapDefined(e.parameters, function(e) { + if (f.isIdentifier(e.name)) { + var t = e.name.text; + if (!i.tags.some(function(e) { + return e !== r && f.isJSDocParameterTag(e) && f.isIdentifier(e.name) && e.name.escapedText === t + }) && (void 0 === n || f.startsWith(t, n))) return { + name: t, + kind: "parameter", + kindModifiers: "", + sortText: f.Completions.SortText.LocationPriority + } + } + }) : []) : f.emptyArray + }, e.getJSDocParameterNameCompletionDetails = function(e) { + return { + name: e, + kind: "parameter", + kindModifiers: "", + displayParts: [f.textPart(e)], + documentation: f.emptyArray, + tags: void 0, + codeActions: void 0 + } + }, e.getDocCommentTemplateAtPosition = function(e, t, r, n) { + var i = f.getTokenAtPosition(t, r), + a = f.findAncestor(i, f.isJSDoc); + if (!a || void 0 === a.comment && !f.length(a.tags)) { + var o = i.getStart(t); + if (a || !(o < r)) { + s = n; + var s, n = f.forEachAncestor(i, function(e) { + return function e(t, r) { + switch (t.kind) { + case 259: + case 215: + case 171: + case 173: + case 170: + case 216: + var n = t; + return { + commentOwner: t, + parameters: n.parameters, + hasReturn: g(n, r) + }; + case 299: + return e(t.initializer, r); + case 260: + case 261: + case 263: + case 302: + case 262: + return { + commentOwner: t + }; + case 168: + n = t; + return n.type && f.isFunctionTypeNode(n.type) ? { + commentOwner: t, + parameters: n.type.parameters, + hasReturn: g(n.type, r) + } : { + commentOwner: t + }; + case 240: + n = t, n = n.declarationList.declarations, n = 1 === n.length && n[0].initializer ? m(n[0].initializer) : void 0; + return n ? { + commentOwner: t, + parameters: n.parameters, + hasReturn: g(n, r) + } : { + commentOwner: t + }; + case 308: + return "quit"; + case 264: + return 264 === t.parent.kind ? void 0 : { + commentOwner: t + }; + case 241: + return e(t.expression, r); + case 223: + n = t; + return 0 === f.getAssignmentDeclarationKind(n) ? "quit" : f.isFunctionLike(n.right) ? { + commentOwner: t, + parameters: n.right.parameters, + hasReturn: g(n.right, r) + } : { + commentOwner: t + }; + case 169: + n = t.initializer; + if (n && (f.isFunctionExpression(n) || f.isArrowFunction(n))) return { + commentOwner: t, + parameters: n.parameters, + hasReturn: g(n, r) + } + } + }(e, s) + }); + if (n) { + var c, l, u, i = n.commentOwner, + _ = n.parameters, + n = n.hasReturn, + d = f.hasJSDocNodes(i) && i.jsDoc ? i.jsDoc : void 0, + p = f.lastOrUndefined(d); + if (!(i.getStart(t) < r || p && a && p !== a)) return i = function(e, t) { + for (var r = e.text, e = f.getLineStartPositionForPosition(t, e), n = e; n <= t && f.isWhiteSpaceSingleLine(r.charCodeAt(n)); n++); + return r.slice(e, n) + }(t, r), p = f.hasJSFileExtension(t.fileName), t = (_ ? (c = p, l = i, u = e, (_ || []).map(function(e, t) { + var r = e.name, + e = e.dotDotDotToken, + r = 79 === r.kind ? r.text : "param" + t, + t = c ? e ? "{...any} " : "{any} " : ""; + return "".concat(l, " * @param ").concat(t).concat(r).concat(u) + }).join("")) : "") + (n ? (a = e, "".concat(i, " * @returns").concat(a)) : ""), p = (d || []).some(function(e) { + return !!e.tags + }), t && !p ? { + newText: (_ = "/**" + e + i + " * ") + e + t + i + " */" + (o === r ? e + i : ""), + caretOffset: _.length + } : { + newText: "/** */", + caretOffset: 3 + } + } + } + } + } + }(ts = ts || {}), ! function(m) { + function y(e, t) { + return h(e, t) || m.isPropertyAccessExpression(e) && (t.push(e.name.text), !0) && y(e.expression, t) + } + + function h(e, t) { + return m.isPropertyNameLiteral(e) && (t.push(m.getTextOfIdentifierOrLiteral(e)), !0) + } + + function c(e, t) { + return m.compareValues(e.matchKind, t.matchKind) || m.compareStringsCaseSensitiveUI(e.name, t.name) + } + + function l(e) { + var t = e.declaration, + r = m.getContainerNode(t), + n = r && m.getNameOfDeclaration(r); + return { + name: e.name, + kind: m.getNodeKind(t), + kindModifiers: m.getNodeModifiers(t), + matchKind: m.PatternMatchKind[e.matchKind], + isCaseSensitive: e.isCaseSensitive, + fileName: e.fileName, + textSpan: m.createTextSpanFromNode(t), + containerName: n ? n.text : "", + containerKind: n ? m.getNodeKind(r) : "" + } + }(m.NavigateTo || (m.NavigateTo = {})).getNavigateToItems = function(e, p, t, r, n, i) { + var f = m.createPatternMatcher(r); + if (!f) return m.emptyArray; + for (var g = [], a = function(d) { + if (t.throwIfCancellationRequested(), i && d.isDeclarationFile) return "continue"; + d.getNamedDeclarations().forEach(function(e, t) { + var r = f, + n = t, + t = e, + i = p, + a = d.fileName, + o = g, + s = r.getMatchForLastSegmentOfPattern(n); + if (s) + for (var c = 0, l = t; c < l.length; c++) { + var u, _ = l[c]; + ! function(e, t) { + switch (e.kind) { + case 270: + case 273: + case 268: + var r = t.getSymbolAtLocation(e.name), + n = t.getAliasedSymbol(r); + return r.escapedName !== n.escapedName; + default: + return 1 + } + }(_, i) || (r.patternContainsDots ? (u = r.getFullMatch(function(e) { + var t = [], + r = m.getNameOfDeclaration(e); + if (r && 164 === r.kind && !y(r.expression, t)) return m.emptyArray; + t.shift(); + var n = m.getContainerNode(e); + for (; n;) { + if (! function(e, t) { + e = m.getNameOfDeclaration(e); + return e && (h(e, t) || 164 === e.kind && y(e.expression, t)) + }(n, t)) return m.emptyArray; + n = m.getContainerNode(n) + } + return t.reverse() + }(_), n)) && o.push({ + name: n, + fileName: a, + matchKind: u.kind, + isCaseSensitive: u.isCaseSensitive, + declaration: _ + }) : o.push({ + name: n, + fileName: a, + matchKind: s.kind, + isCaseSensitive: s.isCaseSensitive, + declaration: _ + })) + } + }) + }, o = 0, s = e; o < s.length; o++) a(s[o]); + return g.sort(c), (void 0 === n ? g : g.slice(0, n)).map(l) + } + }(ts = ts || {}), ! function(x) { + var D, n, i, S, e = x.NavigationBar || (x.NavigationBar = {}), + L = /\s+/g, + r = 150, + a = [], + o = [], + t = []; + + function s() { + a = [], i = D = n = void 0, t = [] + } + + function l(e) { + return M(e.getText(n)) + } + + function c(e) { + return e.node.kind + } + + function u(e, t) { + e.children ? e.children.push(t) : e.children = [t] + } + + function _(e) { + x.Debug.assert(!a.length); + var t = { + node: e, + name: void 0, + additionalNodes: void 0, + parent: void 0, + children: void 0, + indent: 0 + }; + i = t; + for (var r = 0, n = e.statements; r < n.length; r++) I(n[r]); + return A(), x.Debug.assert(!i && !a.length), t + } + + function T(e, t) { + u(i, d(e, t)) + } + + function d(e, t) { + return { + node: e, + name: t || (x.isDeclaration(e) || x.isExpression(e) ? x.getNameOfDeclaration(e) : void 0), + additionalNodes: void 0, + parent: i, + children: void 0, + indent: i.indent + 1 + } + } + + function C(e) { + (S = S || new x.Map).set(e, !0) + } + + function E(e) { + for (var t = 0; t < e; t++) A() + } + + function k(e, t) { + for (var r = []; !x.isPropertyNameLiteral(t);) { + var n = x.getNameOrArgument(t), + i = x.getElementOrPropertyAccessName(t); + t = t.expression, "prototype" === i || x.isPrivateIdentifier(n) || r.push(n) + } + r.push(t); + for (var a = r.length - 1; 0 < a; a--) N(e, n = r[a]); + return [r.length - 1, r[0]] + } + + function N(e, t) { + e = d(e, t); + u(i, e), a.push(i), o.push(S), S = void 0, i = e + } + + function A() { + i.children && (p(i.children, i), y(i.children)), i = a.pop(), S = o.pop() + } + + function F(e, t, r) { + N(e, r), I(t), A() + } + + function P(e) { + e.initializer && function(e) { + switch (e.kind) { + case 216: + case 215: + case 228: + return 1; + default: + return + } + }(e.initializer) ? (N(e), x.forEachChild(e.initializer, I), A()) : F(e, e.initializer) + } + + function w(e) { + return !x.hasDynamicName(e) || 223 !== e.kind && x.isPropertyAccessExpression(e.name.expression) && x.isIdentifier(e.name.expression.expression) && "Symbol" === x.idText(e.name.expression.expression) + } + + function I(e) { + var t; + if (D.throwIfCancellationRequested(), e && !x.isToken(e)) switch (e.kind) { + case 173: + var r = e; + F(r, r.body); + for (var n = 0, i = r.parameters; n < i.length; n++) { + var a = i[n]; + x.isParameterPropertyDeclaration(a, r) && T(a) + } + break; + case 171: + case 174: + case 175: + case 170: + w(e) && F(e, e.body); + break; + case 169: + w(e) && P(e); + break; + case 168: + w(e) && T(e); + break; + case 270: + var o = e, + o = (o.name && T(o.name), o.namedBindings); + if (o) + if (271 === o.kind) T(o); + else + for (var s = 0, c = o.elements; s < c.length; s++) T(c[s]); + break; + case 300: + F(e, e.name); + break; + case 301: + o = e.expression; + x.isIdentifier(o) ? T(e, o) : T(e); + break; + case 205: + case 299: + case 257: + var l = e; + x.isBindingPattern(l.name) ? I(l.name) : P(l); + break; + case 259: + o = e.name; + o && x.isIdentifier(o) && C(o.text), F(e, e.body); + break; + case 216: + case 215: + F(e, e.body); + break; + case 263: + N(e); + for (var u = 0, _ = e.members; u < _.length; u++) { + var d = _[u]; + (t = d).name && 164 !== t.name.kind && T(d) + } + A(); + break; + case 260: + case 228: + case 261: + N(e); + for (var p = 0, f = e.members; p < f.length; p++) I(d = f[p]); + A(); + break; + case 264: + F(e, function e(t) { + return t.body && x.isModuleDeclaration(t.body) ? e(t.body) : t + }(e).body); + break; + case 274: + o = e.expression; + (l = x.isObjectLiteralExpression(o) || x.isCallExpression(o) ? o : x.isArrowFunction(o) || x.isFunctionExpression(o) ? o.body : void 0) ? (N(e), I(l), A()) : T(e); + break; + case 278: + case 268: + case 178: + case 176: + case 177: + case 262: + T(e); + break; + case 210: + case 223: + var g = x.getAssignmentDeclarationKind(e); + switch (g) { + case 1: + case 2: + return void F(e, e.right); + case 6: + case 3: + var m = (b = e).left, + y = 3 === g ? m.expression : m, + h = 0, + v = void 0; + return v = x.isIdentifier(y.expression) ? (C(y.expression.text), y.expression) : (h = (y = k(b, y.expression))[0], y[1]), 6 === g ? x.isObjectLiteralExpression(b.right) && 0 < b.right.properties.length && (N(b, v), x.forEachChild(b.right, I), A()) : x.isFunctionExpression(b.right) || x.isArrowFunction(b.right) ? F(e, b.right, v) : (N(b, v), F(e, b.right, m.name), A()), void E(h); + case 7: + case 9: + v = 7 === g ? e.arguments[0] : e.arguments[0].expression, y = e.arguments[1], v = k(e, v), h = v[0]; + return N(e, v[1]), N(e, x.setTextRange(x.factory.createIdentifier(y.text), y)), I(e.arguments[2]), A(), A(), void E(h); + case 5: + var b, v = (m = (b = e).left).expression; + if (x.isIdentifier(v) && "prototype" !== x.getElementOrPropertyAccessName(m) && S && S.has(v.text)) return void(x.isFunctionExpression(b.right) || x.isArrowFunction(b.right) ? F(e, b.right, v) : x.isBindableStaticAccessExpression(m) && (N(b, v), F(b.left, b.right, x.getNameOrArgument(m)), A())); + break; + case 4: + case 0: + case 8: + break; + default: + x.Debug.assertNever(g) + } + default: + x.hasJSDocNodes(e) && x.forEach(e.jsDoc, function(e) { + x.forEach(e.tags, function(e) { + x.isJSDocTypeAlias(e) && T(e) + }) + }), x.forEachChild(e, I) + } + } + + function p(e, s) { + var c = new x.Map; + x.filterMutate(e, function(e, t) { + var r = e.name || x.getNameOfDeclaration(e.node), + r = r && l(r); + if (!r) return !0; + var n = c.get(r); + if (!n) return c.set(r, e), !0; + if (n instanceof Array) { + for (var i, a = 0, o = n; a < o.length; a++) + if (g(i = o[a], e, t, s)) return !1; + return n.push(e), !0 + } + return !g(i = n, e, t, s) && (c.set(r, [i, e]), !0) + }) + } + e.getNavigationBarItems = function(e, t) { + D = t, n = e; + try { + return x.map((r = _(e), i = [], function e(t) { + if (function(e) { + if (e.children) return 1; + switch (c(e)) { + case 260: + case 228: + case 263: + case 261: + case 264: + case 308: + case 262: + case 348: + case 341: + return 1; + case 216: + case 259: + case 215: + return function(e) { + if (e.node.body) switch (c(e.parent)) { + case 265: + case 308: + case 171: + case 173: + return 1; + default: + return + } + }(e); + default: + return + } + }(t) && (i.push(t), t.children)) + for (var r = 0, n = t.children; r < n.length; r++) e(n[r]) + }(r), i), z) + } finally { + s() + } + var r, i + }, e.getNavigationTree = function(e, t) { + D = t, n = e; + try { + return J(_(e)) + } finally { + s() + } + }; + var f = e = { + 5: !0, + 3: !0, + 7: !0, + 9: !0, + 0: !1, + 1: !1, + 2: !1, + 8: !1, + 6: !0, + 4: !1 + }; + + function g(e, t, r, n) { + var i, a, o, s, c, l, u; + return i = e, a = t, r = r, l = n, s = x.isBinaryExpression(a.node) || x.isCallExpression(a.node) ? x.getAssignmentDeclarationKind(a.node) : 0, c = x.isBinaryExpression(i.node) || x.isCallExpression(i.node) ? x.getAssignmentDeclarationKind(i.node) : 0, !(f[s] && f[c] || _(i.node) && f[s] || _(a.node) && f[c] || x.isClassDeclaration(i.node) && m(i.node) && f[s] || x.isClassDeclaration(a.node) && f[c] || x.isClassDeclaration(i.node) && m(i.node) && _(a.node) || x.isClassDeclaration(a.node) && _(i.node) && m(i.node) ? (c = i.additionalNodes && x.lastOrUndefined(i.additionalNodes) || i.node, !x.isClassDeclaration(i.node) && !x.isClassDeclaration(a.node) || _(i.node) || _(a.node) ? (void 0 !== (o = _(i.node) ? i.node : _(a.node) ? a.node : void 0) ? ((u = d(x.setTextRange(x.factory.createConstructorDeclaration(void 0, [], void 0), o))).indent = i.indent + 1, u.children = (i.node === o ? i : a).children, i.children = i.node === o ? x.concatenate([u], a.children || [a]) : x.concatenate(i.children || [__assign({}, i)], [u])) : (i.children || a.children) && (i.children = x.concatenate(i.children || [__assign({}, i)], a.children || [a]), i.children) && (p(i.children, i), y(i.children)), c = i.node = x.setTextRange(x.factory.createClassDeclaration(void 0, i.name || x.factory.createIdentifier("__class__"), void 0, void 0, []), i.node)) : (i.children = x.concatenate(i.children, a.children), i.children && p(i.children, i)), o = a.node, l.children[r - 1].node.end === c.end ? x.setTextRange(c, { + pos: c.pos, + end: o.end + }) : (i.additionalNodes || (i.additionalNodes = []), i.additionalNodes.push(x.setTextRange(x.factory.createClassDeclaration(void 0, i.name || x.factory.createIdentifier("__class__"), void 0, void 0, []), a.node))), 0) : 0 === s) || (function(e, t, r) { + if (e.kind !== t.kind || e.parent !== t.parent && (!R(e, r) || !R(t, r))) return; + switch (e.kind) { + case 169: + case 171: + case 174: + case 175: + return x.isStatic(e) === x.isStatic(t); + case 264: + return function e(t, r) { + if (!t.body || !r.body) return t.body === r.body; + return t.body.kind === r.body.kind && (264 !== t.body.kind || e(t.body, r.body)) + }(e, t) && b(e) === b(t); + default: + return 1 + } + }(e.node, t.node, n) ? (u = t, (l = e).additionalNodes = l.additionalNodes || [], l.additionalNodes.push(u.node), u.additionalNodes && (r = l.additionalNodes).push.apply(r, u.additionalNodes), l.children = x.concatenate(l.children, u.children), l.children && (p(l.children, l), y(l.children)), 1) : void 0); + + function _(e) { + return x.isFunctionExpression(e) || x.isFunctionDeclaration(e) || x.isVariableDeclaration(e) + } + } + + function m(e) { + return 8 & e.flags + } + + function R(e, t) { + e = (x.isModuleBlock(e.parent) ? e.parent : e).parent; + return e === t.node || x.contains(t.additionalNodes, e) + } + + function y(e) { + e.sort(B) + } + + function B(e, t) { + return x.compareStringsCaseSensitiveUI(j(e.node), j(t.node)) || x.compareValues(c(e), c(t)) + } + + function j(e) { + if (264 === e.kind) return U(e); + var t = x.getNameOfDeclaration(e); + if (t && x.isPropertyName(t)) return (t = x.getPropertyNameForPropertyNameNode(t)) && x.unescapeLeadingUnderscores(t); + switch (e.kind) { + case 215: + case 216: + case 228: + return V(e); + default: + return + } + } + + function h(e, t) { + if (264 === e.kind) return M(U(e)); + if (t) { + t = x.isIdentifier(t) ? t.text : x.isElementAccessExpression(t) ? "[".concat(l(t.argumentExpression), "]") : l(t); + if (0 < t.length) return M(t) + } + switch (e.kind) { + case 308: + var r = e; + return x.isExternalModule(r) ? '"'.concat(x.escapeString(x.getBaseFileName(x.removeFileExtension(x.normalizePath(r.fileName)))), '"') : ""; + case 274: + return x.isExportAssignment(e) && e.isExportEquals ? "export=" : "default"; + case 216: + case 259: + case 215: + case 260: + case 228: + return 1024 & x.getSyntacticModifierFlags(e) ? "default" : V(e); + case 173: + return "constructor"; + case 177: + return "new()"; + case 176: + return "()"; + case 178: + return "[]"; + default: + return "" + } + } + + function J(e) { + return { + text: h(e.node, e.name), + kind: x.getNodeKind(e.node), + kindModifiers: K(e.node), + spans: v(e), + nameSpan: e.name && O(e.name), + childItems: x.map(e.children, J) + } + } + + function z(e) { + return { + text: h(e.node, e.name), + kind: x.getNodeKind(e.node), + kindModifiers: K(e.node), + spans: v(e), + childItems: x.map(e.children, function(e) { + return { + text: h(e.node, e.name), + kind: x.getNodeKind(e.node), + kindModifiers: x.getNodeModifiers(e.node), + spans: v(e), + childItems: t, + indent: 0, + bolded: !1, + grayed: !1 + } + }) || t, + indent: e.indent, + bolded: !1, + grayed: !1 + } + } + + function v(e) { + var t = [O(e.node)]; + if (e.additionalNodes) + for (var r = 0, n = e.additionalNodes; r < n.length; r++) { + var i = n[r]; + t.push(O(i)) + } + return t + } + + function U(e) { + return x.isAmbientModule(e) ? x.getTextOfNode(e.name) : b(e) + } + + function b(e) { + for (var t = [x.getTextOfIdentifierOrLiteral(e.name)]; e.body && 264 === e.body.kind;) e = e.body, t.push(x.getTextOfIdentifierOrLiteral(e.name)); + return t.join(".") + } + + function O(e) { + return 308 === e.kind ? x.createTextSpanFromRange(e) : x.createTextSpanFromNode(e, n) + } + + function K(e) { + return e.parent && 257 === e.parent.kind && (e = e.parent), x.getNodeModifiers(e) + } + + function V(e) { + var t = e.parent; + if (e.name && 0 < x.getFullWidth(e.name)) return M(x.declarationNameToString(e.name)); + if (x.isVariableDeclaration(t)) return M(x.declarationNameToString(t.name)); + if (x.isBinaryExpression(t) && 63 === t.operatorToken.kind) return l(t.left).replace(L, ""); + if (x.isPropertyAssignment(t)) return l(t.name); + if (1024 & x.getSyntacticModifierFlags(e)) return "default"; + if (x.isClassLike(e)) return ""; + if (x.isCallExpression(t)) { + e = function e(t) { + { + var r; + return x.isIdentifier(t) ? t.text : x.isPropertyAccessExpression(t) ? (r = e(t.expression), t = t.name.text, void 0 === r ? t : "".concat(r, ".").concat(t)) : void 0 + } + }(t.expression); + if (void 0 !== e) return (e = M(e)).length > r ? "".concat(e, " callback") : (t = M(x.mapDefined(t.arguments, function(e) { + return x.isStringLiteralLike(e) ? e.getText(n) : void 0 + }).join(", ")), "".concat(e, "(").concat(t, ") callback")) + } + return "" + } + + function M(e) { + return (e = e.length > r ? e.substring(0, r) + "..." : e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g, "") + } + }(ts = ts || {}), ! function(b) { + var e; + + function m(e, t) { + for (var r = b.createScanner(e.languageVersion, !1, e.languageVariant), n = [], i = 0, a = 0, o = t; a < o.length; a++) { + var s = o[a]; + ! function(e, t, r) { + var n = t.getFullStart(), + i = t.getStart(), + a = (r.setText(e.text, n, i - n), 0); + for (; r.getTokenPos() < i;) { + var o = r.scan(); + if (4 === o && 2 <= ++a) return 1 + } + return + }(e, s, r) || i++, n[i] || (n[i] = []), n[i].push(s) + } + return n + } + + function y(e, t, r) { + for (var n = r.getTypeChecker(), i = r.getCompilerOptions(), a = n.getJsxNamespace(t), o = n.getJsxFragmentFactory(t), s = !!(2 & t.transformFlags), c = [], l = 0, u = e; l < u.length; l++) { + var _, d, p = u[l], + f = p.importClause, + g = p.moduleSpecifier; + f ? (_ = f.name, f = f.namedBindings, _ && !m(_) && (_ = void 0), f && (b.isNamespaceImport(f) ? m(f.name) || (f = void 0) : (d = f.elements.filter(function(e) { + return m(e.name) + })).length < f.elements.length && (f = d.length ? b.factory.updateNamedImports(f, d) : void 0)), _ || f ? c.push(D(p, _, f)) : function(e, t) { + var r = b.isStringLiteral(t) && t.text; + return b.isString(r) && b.some(e.moduleAugmentations, function(e) { + return b.isStringLiteral(e) && e.text === r + }) + }(t, g) && (t.isDeclarationFile ? c.push(b.factory.createImportDeclaration(p.modifiers, void 0, g, void 0)) : c.push(p))) : c.push(p) + } + return c; + + function m(e) { + return s && (e.text === a || o && e.text === o) && b.jsxModeNeedsExplicitImport(i.jsx) || b.FindAllReferences.Core.isSymbolReferencedInFile(e, n, t) + } + } + + function h(e) { + return void 0 !== e && b.isStringLiteralLike(e) ? e.text : void 0 + } + + function v(e) { + if (0 === e.length) return e; + var e = function(e) { + for (var t, r = { + defaultImports: [], + namespaceImports: [], + namedImports: [] + }, n = { + defaultImports: [], + namespaceImports: [], + namedImports: [] + }, i = 0, a = e; i < a.length; i++) { + var o, s, c, l = a[i]; + void 0 === l.importClause ? t = t || l : (o = l.importClause.isTypeOnly ? r : n, c = l.importClause, s = c.name, c = c.namedBindings, s && o.defaultImports.push(l), c && (b.isNamespaceImport(c) ? o.namespaceImports : o.namedImports).push(l)) + } + return { + importWithoutClause: t, + typeOnlyImports: r, + regularImports: n + } + }(e), + t = e.importWithoutClause, + r = e.typeOnlyImports, + e = e.regularImports, + n = []; + t && n.push(t); + for (var i = 0, a = [e, r]; i < a.length; i++) { + var o = a[i], + s = o === r, + c = o.defaultImports, + l = o.namespaceImports, + o = o.namedImports; + if (s || 1 !== c.length || 1 !== l.length || 0 !== o.length) { + for (var u = 0, _ = b.stableSort(l, function(e, t) { + return C(e.importClause.namedBindings.name, t.importClause.namedBindings.name) + }); u < _.length; u++) { + var d = _[u]; + n.push(D(d, void 0, d.importClause.namedBindings)) + } + if (0 !== c.length || 0 !== o.length) { + var p = void 0, + f = []; + if (1 === c.length) p = c[0].importClause.name; + else + for (var g = 0, m = c; g < m.length; g++) { + v = m[g]; + f.push(b.factory.createImportSpecifier(!1, b.factory.createIdentifier("default"), v.importClause.name)) + } + f.push.apply(f, b.flatMap(o, function(e) { + return b.map(null != (t = (e = e).importClause) && t.namedBindings && b.isNamedImports(e.importClause.namedBindings) ? e.importClause.namedBindings.elements : void 0, function(e) { + return e.name && e.propertyName && e.name.escapedText === e.propertyName.escapedText ? b.factory.updateImportSpecifier(e, e.isTypeOnly, void 0, e.name) : e + }); + var t + })); + var y = S(f), + h = (0 < c.length ? c : o)[0], + y = 0 === y.length ? p ? void 0 : b.factory.createNamedImports(b.emptyArray) : 0 === o.length ? b.factory.createNamedImports(y) : b.factory.updateNamedImports(o[0].importClause.namedBindings, y); + s && p && y ? (n.push(D(h, p, void 0)), n.push(D(null != (s = o[0]) ? s : h, void 0, y))) : n.push(D(h, p, y)) + } + } else { + var v = c[0]; + n.push(D(v, v.importClause.name, l[0].importClause.namedBindings)) + } + } + return n + } + + function x(e) { + if (0 === e.length) return e; + var e = function(e) { + for (var t, r = [], n = [], i = 0, a = e; i < a.length; i++) { + var o = a[i]; + void 0 === o.exportClause ? t = t || o : (o.isTypeOnly ? n : r).push(o) + } + return { + exportWithoutClause: t, + namedExports: r, + typeOnlyExports: n + } + }(e), + t = e.exportWithoutClause, + r = e.namedExports, + e = e.typeOnlyExports, + n = []; + t && n.push(t); + for (var i = 0, a = [r, e]; i < a.length; i++) { + var o, s = a[i]; + 0 !== s.length && ((o = []).push.apply(o, b.flatMap(s, function(e) { + return e.exportClause && b.isNamedExports(e.exportClause) ? e.exportClause.elements : b.emptyArray + })), o = S(o), s = s[0], n.push(b.factory.updateExportDeclaration(s, s.modifiers, s.isTypeOnly, s.exportClause && (b.isNamedExports(s.exportClause) ? b.factory.updateNamedExports(s.exportClause, o) : b.factory.updateNamespaceExport(s.exportClause, s.exportClause.name)), s.moduleSpecifier, s.assertClause))) + } + return n + } + + function D(e, t, r) { + return b.factory.updateImportDeclaration(e, e.modifiers, b.factory.updateImportClause(e.importClause, e.importClause.isTypeOnly, t, r), e.moduleSpecifier, e.assertClause) + } + + function S(e) { + return b.stableSort(e, r) + } + + function r(e, t) { + return b.compareBooleans(e.isTypeOnly, t.isTypeOnly) || C(e.propertyName || e.name, t.propertyName || t.name) || C(e.name, t.name) + } + + function T(e, t) { + e = void 0 === e ? void 0 : h(e), t = void 0 === t ? void 0 : h(t); + return b.compareBooleans(void 0 === e, void 0 === t) || b.compareBooleans(b.isExternalModuleNameRelative(e), b.isExternalModuleNameRelative(t)) || b.compareStringsCaseInsensitive(e, t) + } + + function C(e, t) { + return b.compareStringsCaseInsensitive(e.text, t.text) + } + + function n(e) { + var t; + switch (e.kind) { + case 268: + return null == (t = b.tryCast(e.moduleReference, b.isExternalModuleReference)) ? void 0 : t.expression; + case 269: + return e.moduleSpecifier; + case 240: + return e.declarationList.declarations[0].initializer.arguments[0] + } + } + + function E(e, t) { + return T(n(e), n(t)) || (t = t, b.compareValues(i(e), i(t))) + } + + function i(e) { + var t; + switch (e.kind) { + case 269: + return e.importClause ? e.importClause.isTypeOnly ? 1 : 271 === (null == (t = e.importClause.namedBindings) ? void 0 : t.kind) ? 2 : e.importClause.name ? 3 : 4 : 0; + case 268: + return 5; + case 240: + return 6 + } + }(e = b.OrganizeImports || (b.OrganizeImports = {})).organizeImports = function(i, a, o, t, e, r) { + function n(e) { + return e = _(u(e, i, t)), c ? b.stableSort(e, E) : e + } + var s = b.textChanges.ChangeTracker.fromContext({ + host: o, + formatContext: a, + preferences: e + }), + c = "SortAndCombine" === r || "All" === r, + l = c, + u = "RemoveUnused" === r || "All" === r ? y : b.identity, + _ = l ? v : b.identity; + m(i, i.statements.filter(b.isImportDeclaration)).forEach(function(e) { + return g(e, n) + }), "RemoveUnused" !== r && g(i.statements.filter(b.isExportDeclaration), x); + for (var d = 0, p = i.statements.filter(b.isAmbientModule); d < p.length; d++) { + var f = p[d]; + f.body && (m(i, f.body.statements.filter(b.isImportDeclaration)).forEach(function(e) { + return g(e, n) + }), "RemoveUnused" !== r) && g(f.body.statements.filter(b.isExportDeclaration), x) + } + return s.getChanges(); + + function g(e, t) { + var r, n; + 0 !== b.length(e) && (b.suppressLeadingTrivia(e[0]), n = l ? b.group(e, function(e) { + return h(e.moduleSpecifier) + }) : [e], n = c ? b.stableSort(n, function(e, t) { + return T(e[0].moduleSpecifier, t[0].moduleSpecifier) + }) : n, 0 === (n = b.flatMap(n, function(e) { + return h(e[0].moduleSpecifier) ? t(e) : e + })).length ? s.deleteNodes(i, e, { + trailingTriviaOption: b.textChanges.TrailingTriviaOption.Include + }, !0) : (r = { + leadingTriviaOption: b.textChanges.LeadingTriviaOption.Exclude, + trailingTriviaOption: b.textChanges.TrailingTriviaOption.Include, + suffix: b.getNewLineOrDefaultFromHost(o, a.options) + }, s.replaceNodeWithNodes(i, e[0], n, r), n = s.nodeHasTrailingComment(i, e[0], r), s.deleteNodes(i, e.slice(1), { + trailingTriviaOption: b.textChanges.TrailingTriviaOption.Include + }, n))) + } + }, e.coalesceImports = v, e.coalesceExports = x, e.compareImportOrExportSpecifiers = r, e.compareModuleSpecifiers = T, e.importsAreSorted = function(e) { + return b.arrayIsSorted(e, E) + }, e.importSpecifiersAreSorted = function(e) { + return b.arrayIsSorted(e, r) + }, e.getImportDeclarationInsertionIndex = function(e, t) { + return (e = b.binarySearch(e, t, b.identity, E)) < 0 ? ~e : e + }, e.getImportSpecifierInsertionIndex = function(e, t) { + return (e = b.binarySearch(e, t, b.identity, r)) < 0 ? ~e : e + }, e.compareImportsOrRequireStatements = E + }(ts = ts || {}), ! function(D) { + var t; + + function S(e) { + return e = D.trimStringStart(e), D.startsWith(e, "//") ? (e = D.trimString(e.slice(2)), t.exec(e)) : null + } + + function T(e, t, r, n) { + e = D.getLeadingCommentRanges(t.text, e); + if (e) { + for (var i = -1, a = -1, o = 0, s = t.getFullText(), c = 0, l = e; c < l.length; c++) { + var u = l[c], + _ = u.kind, + d = u.pos, + p = u.end; + switch (r.throwIfCancellationRequested(), _) { + case 2: + S(s.slice(d, p)) ? (f(), o = 0) : (0 === o && (i = d), a = p, o++); + break; + case 3: + f(), n.push(E(d, p, "comment")), o = 0; + break; + default: + D.Debug.assertNever(_) + } + } + f() + } + + function f() { + 1 < o && n.push(E(i, a, "comment")) + } + } + + function C(e, t, r, n) { + D.isJsxText(e) || T(e.pos, t, r, n) + } + + function E(e, t, r) { + return N(D.createTextSpanFromBounds(e, t), r) + } + + function k(e, t, r, n, i, a) { + return void 0 === i && (i = !1), N(D.createTextSpanFromBounds((a = void 0 === a ? !0 : a) ? e.getFullStart() : e.getStart(n), t.getEnd()), "code", D.createTextSpanFromNode(r, n), i) + } + + function N(e, t, r, n, i) { + return { + textSpan: e, + kind: t, + hintSpan: r = void 0 === r ? e : r, + bannerText: i = void 0 === i ? "..." : i, + autoCollapse: n = void 0 === n ? !1 : n + } + }(D.OutliningElementsCollector || (D.OutliningElementsCollector = {})).collectElements = function(e, t) { + for (var r = [], n = e, i = t, a = r, o = 40, s = 0, c = __spreadArray(__spreadArray([], n.statements, !0), [n.endOfFileToken], !1), l = c.length; s < l;) { + for (; s < l && !D.isAnyImportSyntax(c[s]);) d(c[s]), s++; + if (s === l) break; + for (var u = s; s < l && D.isAnyImportSyntax(c[s]);) C(c[s], n, i, a), s++; + var _ = s - 1; + _ !== u && a.push(E(D.findChildOfKind(c[u], 100, n).getStart(n), c[_].getEnd(), "imports")) + } + + function d(e) { + var t; + 0 !== o && (i.throwIfCancellationRequested(), (D.isDeclaration(e) || D.isVariableStatement(e) || D.isReturnStatement(e) || D.isCallOrNewExpression(e) || 1 === e.kind) && C(e, n, i, a), D.isFunctionLike(e) && D.isBinaryExpression(e.parent) && D.isPropertyAccessExpression(e.parent.left) && C(e.parent.left, n, i, a), (D.isBlock(e) || D.isModuleBlock(e)) && T(e.statements.end, n, i, a), (D.isClassLike(e) || D.isInterfaceDeclaration(e)) && T(e.members.end, n, i, a), (t = function(a, o) { + switch (a.kind) { + case 238: + if (D.isFunctionLike(a.parent)) return function(e, t, r) { + var n = function(e, t, r) { + if (D.isNodeArrayMultiLine(e.parameters, r)) { + e = D.findChildOfKind(e, 20, r); + if (e) return e + } + return D.findChildOfKind(t, 18, r) + }(e, t, r), + t = D.findChildOfKind(t, 19, r); + return n && t && k(n, t, e, r, 216 !== e.kind) + }(a.parent, a, o); + switch (a.parent.kind) { + case 243: + case 246: + case 247: + case 245: + case 242: + case 244: + case 251: + case 295: + return r(a.parent); + case 255: + var e = a.parent; + if (e.tryBlock === a) return r(a.parent); + if (e.finallyBlock === a) { + e = D.findChildOfKind(e, 96, o); + if (e) return r(e) + } + default: + return N(D.createTextSpanFromNode(a, o), "code") + } + case 265: + return r(a.parent); + case 260: + case 228: + case 261: + case 263: + case 266: + case 184: + case 203: + return r(a); + case 186: + return r(a, !1, !D.isTupleTypeNode(a.parent), 22); + case 292: + case 293: + return function(e) { + return e.length ? N(D.createTextSpanFromRange(e), "code") : void 0 + }(a.statements); + case 207: + return t(a); + case 206: + return t(a, 22); + case 281: + return function(e) { + var t = D.createTextSpanFromBounds(e.openingElement.getStart(o), e.closingElement.getEnd()), + e = e.openingElement.tagName.getText(o); + return N(t, "code", t, !1, "<" + e + ">...") + }(a); + case 285: + return function(e) { + e = D.createTextSpanFromBounds(e.openingFragment.getStart(o), e.closingFragment.getEnd()); + return N(e, "code", e, !1, "<>...") + }(a); + case 282: + case 283: + return function(e) { + if (0 !== e.properties.length) return E(e.getStart(o), e.getEnd(), "code") + }(a.attributes); + case 225: + case 14: + return function(e) { + if (14 !== e.kind || 0 !== e.text.length) return E(e.getStart(o), e.getEnd(), "code") + }(a); + case 204: + return r(a, !1, !D.isBindingElement(a.parent), 22); + case 216: + return function(e) { + if (D.isBlock(e.body) || D.isParenthesizedExpression(e.body) || D.positionsAreOnSameLine(e.body.getFullStart(), e.body.getEnd(), o)) return; + return N(D.createTextSpanFromBounds(e.body.getFullStart(), e.body.getEnd()), "code", D.createTextSpanFromNode(e)) + }(a); + case 210: + return function(e) { + if (!e.arguments.length) return; + var t = D.findChildOfKind(e, 20, o), + r = D.findChildOfKind(e, 21, o); + if (t && r && !D.positionsAreOnSameLine(t.pos, r.pos, o)) return k(t, r, e, o, !1, !0) + }(a); + case 214: + return function(e) { + return D.positionsAreOnSameLine(e.getStart(), e.getEnd(), o) ? void 0 : N(D.createTextSpanFromBounds(e.getStart(), e.getEnd()), "code", D.createTextSpanFromNode(e)) + }(a) + } + + function t(e, t) { + return void 0 === t && (t = 18), r(e, !1, !D.isArrayLiteralExpression(e.parent) && !D.isCallExpression(e.parent), t) + } + + function r(e, t, r, n, i) { + void 0 === t && (t = !1), void 0 === r && (r = !0), void 0 === n && (n = 18), void 0 === i && (i = 18 === n ? 19 : 23); + n = D.findChildOfKind(a, n, o), i = D.findChildOfKind(a, i, o); + return n && i && k(n, i, e, o, t, r) + } + }(e, n)) && a.push(t), o--, D.isCallExpression(e) ? (o++, d(e.expression), o--, e.arguments.forEach(d), null != (t = e.typeArguments) && t.forEach(d)) : D.isIfStatement(e) && e.elseStatement && D.isIfStatement(e.elseStatement) ? (d(e.expression), d(e.thenStatement), o++, d(e.elseStatement), o--) : e.forEachChild(d), o++) + } + for (var p = e, f = r, g = [], t = p.getLineStarts(), m = 0, y = t; m < y.length; m++) { + var h, v = y[m], + b = p.getLineEndOfPosition(v), + x = S(p.text.substring(v, b)); + x && !D.isInComment(p, v) && (x[1] ? (h = g.pop()) && (h.textSpan.length = b - h.textSpan.start, h.hintSpan.length = b - h.textSpan.start, f.push(h)) : (h = D.createTextSpanFromBounds(p.text.indexOf("//", v), b), g.push(N(h, "region", h, !1, x[2] || "#region")))) + } + return r.sort(function(e, t) { + return e.textSpan.start - t.textSpan.start + }) + }, t = /^#(end)?region(?:\s+(.*))?(?:\r)?$/ + }(ts = ts || {}), ! function(_) { + var s, e; + + function c(e, t) { + return { + kind: e, + isCaseSensitive: t + } + } + + function l(e, t) { + var r = t.get(e); + return r || t.set(e, r = i(e)), r + } + + function u(e, t, r) { + var n = function(n, e) { + for (var t = n.length - e.length, r = 0; r <= t; r++) { + var i = function(r) { + if (S(e, function(e, t) { + return h(n.charCodeAt(t + r)) === e + })) return { + value: r + } + }(r); + if ("object" == typeof i) return i.value + } + return -1 + }(e, t.textLowerCase); + if (0 === n) return c(t.text.length === e.length ? s.exact : s.prefix, _.startsWith(e, t.text)); + if (t.isLowerCase) { + if (-1 !== n) { + for (var i = 0, a = l(e, r); i < a.length; i++) { + var o = a[i]; + if (f(e, o, t.text, !0)) return c(s.substring, f(e, o, t.text, !1)) + } + return t.text.length < e.length && m(e.charCodeAt(n)) ? c(s.substring, !1) : void 0 + } + } else { + if (0 < e.indexOf(t.text)) return c(s.substring, !0); + if (0 < t.characterSpans.length) { + n = l(e, r), r = !!g(e, n, t, !1) || !g(e, n, t, !0) && void 0; + if (void 0 !== r) return c(s.camelCase, r) + } + } + } + + function d(e, t, r) { + if (S(t.totalTextChunk.text, function(e) { + return 32 !== e && 42 !== e + })) { + var n = u(e, t.totalTextChunk, r); + if (n) return n + } + for (var i = 0, a = t.subWordTextChunks; i < a.length; i++) var o = p(o, u(e, a[i], r)); + return o + } + + function p(e, t) { + return _.min([e, t], r) + } + + function r(e, t) { + return void 0 === e ? 1 : void 0 === t ? -1 : _.compareValues(e.kind, t.kind) || _.compareBooleans(!e.isCaseSensitive, !t.isCaseSensitive) + } + + function f(r, n, i, a, o) { + return (o = void 0 === o ? { + start: 0, + length: i.length + } : o).length <= n.length && D(0, o.length, function(e) { + return t = i.charCodeAt(o.start + e), e = r.charCodeAt(n.start + e), a ? h(t) === h(e) : t === e; + var t + }) + } + + function g(e, t, r, n) { + for (var i, a = r.characterSpans, o = 0, s = 0;;) { + if (s === a.length) return 1; + if (o === t.length) return; + for (var c = t[o], l = !1; s < a.length; s++) { + var u = a[s]; + if (l && (!m(r.text.charCodeAt(a[s - 1].start)) || !m(r.text.charCodeAt(a[s].start)))) break; + if (!f(e, c, r.text, n, u)) break; + l = !0, i = void 0 === i || i, c = _.createTextSpan(c.start + u.length, c.length - u.length) + } + l || void 0 === i || (i = !1), o++ + } + } + + function m(e) { + return 65 <= e && e <= 90 || !(e < 127 || !_.isUnicodeIdentifierStart(e, 99)) && (e = String.fromCharCode(e)) === e.toUpperCase() + } + + function y(e) { + return 97 <= e && e <= 122 || !(e < 127 || !_.isUnicodeIdentifierStart(e, 99)) && (e = String.fromCharCode(e)) === e.toLowerCase() + } + + function h(e) { + return 65 <= e && e <= 90 ? e - 65 + 97 : e < 127 ? e : String.fromCharCode(e).toLowerCase().charCodeAt(0) + } + + function v(e) { + return 48 <= e && e <= 57 + } + + function a(e) { + var t = e.toLowerCase(); + return { + text: e, + textLowerCase: t, + isLowerCase: e === t, + characterSpans: n(e) + } + } + + function n(e) { + return t(e, !1) + } + + function i(e) { + return t(e, !0) + } + + function t(e, t) { + for (var r, n, i = [], a = 0, o = 1; o < e.length; o++) { + var s = v(e.charCodeAt(o - 1)), + c = v(e.charCodeAt(o)), + l = (r = t, u = o, n = void 0, n = m((l = e).charCodeAt(u - 1)), m(l.charCodeAt(u)) && (!r || !n)), + u = t && (u = e, (r = o) !== (n = a)) && r + 1 < u.length && m(u.charCodeAt(r)) && y(u.charCodeAt(r + 1)) && S(u, m, n, r); + (b(e.charCodeAt(o - 1)) || b(e.charCodeAt(o)) || s !== c || l || u) && (x(e, a, o) || i.push(_.createTextSpan(a, o - a)), a = o) + } + return x(e, a, e.length) || i.push(_.createTextSpan(a, e.length - a)), i + } + + function b(e) { + switch (e) { + case 33: + case 34: + case 35: + case 37: + case 38: + case 39: + case 40: + case 41: + case 42: + case 44: + case 45: + case 46: + case 47: + case 58: + case 59: + case 63: + case 64: + case 91: + case 92: + case 93: + case 95: + case 123: + case 125: + return !0 + } + return !1 + } + + function x(e, t, r) { + return S(e, function(e) { + return b(e) && 95 !== e + }, t, r) + } + + function D(e, t, r) { + for (var n = e; n < t; n++) + if (!r(n)) return !1; + return !0 + } + + function S(t, r, e, n) { + return D(e = void 0 === e ? 0 : e, n = void 0 === n ? t.length : n, function(e) { + return r(t.charCodeAt(e), e) + }) + }(e = s = _.PatternMatchKind || (_.PatternMatchKind = {}))[e.exact = 0] = "exact", e[e.prefix = 1] = "prefix", e[e.substring = 2] = "substring", e[e.camelCase = 3] = "camelCase", _.createPatternMatcher = function(e) { + var c = new _.Map, + l = e.trim().split(".").map(function(e) { + return { + totalTextChunk: a(e = e.trim()), + subWordTextChunks: function(e) { + for (var t = [], r = 0, n = 0, i = 0; i < e.length; i++) ! function(e) { + return m(e) || y(e) || v(e) || 95 === e || 36 === e + }(e.charCodeAt(i)) ? 0 < n && (t.push(a(e.substr(r, n))), n = 0) : (0 === n && (r = i), n++); + 0 < n && t.push(a(e.substr(r, n))); + return t + }(e) + } + }); + if (!l.some(function(e) { + return !e.subWordTextChunks.length + })) return { + getFullMatch: function(e, t) { + var r, n = e, + e = t, + i = l, + a = c; + if (d(e, _.last(i), a) && !(i.length - 1 > n.length)) { + for (var o = i.length - 2, s = n.length - 1; 0 <= o; --o, --s) r = p(r, d(n[s], i[o], a)); + return r + } + }, + getMatchForLastSegmentOfPattern: function(e) { + return d(e, _.last(l), c) + }, + patternContainsDots: 1 < l.length + } + }, _.breakIntoCharacterSpans = n, _.breakIntoWordSpans = i + }(ts = ts || {}), ! function(T) { + T.preProcessFile = function(r, e, n) { + void 0 === n && (n = !1); + var t, i, a, o = { + languageVersion: 1, + pragmas: void 0, + checkJsDirective: void 0, + referencedFiles: [], + typeReferenceDirectives: [], + libReferenceDirectives: [], + amdDependencies: [], + hasNoDefaultLib: void 0, + moduleName: void 0 + }, + s = [], + c = 0, + l = !1; + + function u() { + return i = a, 18 === (a = T.scanner.scan()) ? c++ : 19 === a && c--, a + } + + function _() { + var e = T.scanner.getTokenValue(), + t = T.scanner.getTokenPos(); + return { + fileName: e, + pos: t, + end: t + e.length + } + } + + function d() { + s.push(_()), p() + } + + function p() { + 0 === c && (l = !0) + } + + function f() { + return 136 === T.scanner.getToken() && (142 === u() && 10 === u() && (t = t || []).push({ + ref: _(), + depth: c + }), 1) + } + + function g() { + if (24 !== i) { + var e = T.scanner.getToken(); + if (100 === e) { + if (20 === (e = u())) { + if (10 === (e = u()) || 14 === e) d() + } else { + if (10 === e) return d(), 1; + if (79 === (e = 154 === e && T.scanner.lookAhead(function() { + var e = T.scanner.scan(); + return 158 !== e && (41 === e || 18 === e || 79 === e || T.isKeyword(e)) + }) ? u() : e) || T.isKeyword(e)) + if (158 === (e = u())) { + if (10 === (e = u())) return d(), 1 + } else if (63 === e) { + if (m(!0)) return 1 + } else { + if (27 !== e) return 1; + e = u() + } + if (18 === e) { + for (e = u(); 19 !== e && 1 !== e;) e = u(); + 19 === e && 158 === (e = u()) && 10 === (e = u()) && d() + } else 41 !== e || 128 !== (e = u()) || 79 !== (e = u()) && !T.isKeyword(e) || 158 !== (e = u()) || 10 !== (e = u()) || d() + } + return 1 + } + } + } + + function m(e, t) { + return void 0 === t && (t = !1), 147 === (e ? u() : T.scanner.getToken()) && (20 === u() && (10 === (e = u()) || t && 14 === e) && d(), 1) + } + + function y() { + for (T.scanner.setText(r), u();;) { + if (1 === T.scanner.getToken()) break; + if (15 === T.scanner.getToken()) { + var e = [T.scanner.getToken()]; + e: for (; T.length(e);) { + var t = T.scanner.scan(); + switch (t) { + case 1: + break e; + case 100: + g(); + break; + case 15: + e.push(t); + break; + case 18: + T.length(e) && e.push(t); + break; + case 19: + !T.length(e) || 15 === T.lastOrUndefined(e) && 17 !== T.scanner.reScanTemplateToken(!1) || e.pop() + } + } + u() + } + f() || g() || function() { + if (93 === (e = T.scanner.getToken())) { + if (p(), 18 === (e = 154 === (e = u()) && T.scanner.lookAhead(function() { + var e = T.scanner.scan(); + return 41 === e || 18 === e + }) ? u() : e)) { + for (e = u(); 19 !== e && 1 !== e;) e = u(); + 19 === e && 158 === (e = u()) && 10 === (e = u()) && d() + } else if (41 === e) 158 === (e = u()) && 10 === (e = u()) && d(); + else if (100 === e) { + var e = u(); + if ((79 === (e = 154 === e && T.scanner.lookAhead(function() { + var e = T.scanner.scan(); + return 79 === e || T.isKeyword(e) + }) ? u() : e) || T.isKeyword(e)) && 63 === (e = u()) && m(!0)); + } + return 1 + } + }() || n && (m(!1, !0) || function() { + var e = T.scanner.getToken(); + if (79 === e && "define" === T.scanner.getTokenValue()) { + if (20 === (e = u())) { + if (10 === (e = u()) || 14 === e) { + if (27 !== (e = u())) return 1; + e = u() + } + if (22 === e) + for (e = u(); 23 !== e && 1 !== e;) 10 !== e && 14 !== e || d(), e = u() + } + return 1 + } + }()) || u() + } + T.scanner.setText(void 0) + } + if ((e = void 0 === e ? !0 : e) && y(), T.processCommentPragmas(o, r), T.processPragmasIntoFields(o, T.noop), l) { + if (t) + for (var h = 0, v = t; h < v.length; h++) { + var b = v[h]; + s.push(b.ref) + } + return { + referencedFiles: o.referencedFiles, + typeReferenceDirectives: o.typeReferenceDirectives, + libReferenceDirectives: o.libReferenceDirectives, + importedFiles: s, + isLibFile: !!o.hasNoDefaultLib, + ambientExternalModules: void 0 + } + } + var x = void 0; + if (t) + for (var D = 0, S = t; D < S.length; D++) 0 === (b = S[D]).depth ? (x = x || []).push(b.ref.fileName) : s.push(b.ref); + return { + referencedFiles: o.referencedFiles, + typeReferenceDirectives: o.typeReferenceDirectives, + libReferenceDirectives: o.libReferenceDirectives, + importedFiles: s, + isLibFile: !!o.hasNoDefaultLib, + ambientExternalModules: x + } + } + }(ts = ts || {}), ! function(_) { + var e; + + function d(e) { + var e = _.getPathComponents(e), + t = e.lastIndexOf("node_modules"); + if (-1 !== t) return e.slice(0, t + 2) + } + + function p(e, t, r, n, i, a) { + return { + canRename: !0, + fileToRename: void 0, + kind: r, + displayName: e, + fullDisplayName: t, + kindModifiers: n, + triggerSpan: function(e, t) { + var r = e.getStart(t), + t = e.getWidth(t); + _.isStringLiteralLike(e) && (r += 1, t -= 2); + return _.createTextSpan(r, t) + }(i, a) + } + } + + function f(e) { + return { + canRename: !1, + localizedErrorMessage: _.getLocaleSpecificMessage(e) + } + } + + function i(e) { + switch (e.kind) { + case 79: + case 80: + case 10: + case 14: + case 108: + return !0; + case 8: + return _.isLiteralNameOfPropertyDeclarationOrIndexAccess(e); + default: + return !1 + } + }(e = _.Rename || (_.Rename = {})).getRenameInfo = function(e, t, r, n) { + if (i(r = _.getAdjustedRenameLocation(_.getTouchingPropertyName(t, r)))) { + r = function(e, t, r, n, i) { + var a = t.getSymbolAtLocation(e); + if (!a) { + if (_.isStringLiteralLike(e)) { + var o = _.getContextualTypeFromParentOrAncestorTypeNode(e, t); + if (o && (128 & o.flags || 1048576 & o.flags && _.every(o.types, function(e) { + return !!(128 & e.flags) + }))) return p(e.text, e.text, "string", "", e, r) + } else if (_.isLabelName(e)) return p(o = _.getTextOfNode(e), o, "label", "", e, r); + return + } + o = a.declarations; + if (o && 0 !== o.length) + if (o.some(function(e) { + var t = n; + return e = e.getSourceFile(), t.isSourceFileDefaultLibrary(e) && _.fileExtensionIs(e.fileName, ".d.ts") + })) return f(_.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library); + else if (_.isIdentifier(e) && 88 === e.originalKeywordKind && a.parent && 1536 & a.parent.flags) return void 0; + else if (_.isStringLiteralLike(e) && _.tryGetImportFromModuleSpecifier(e)) + if (i.allowRenameOfImportPath) { + o = e; + var s = r; + var c = a; + if (!_.isExternalModuleNameRelative(o.text)) return f(_.Diagnostics.You_cannot_rename_a_module_via_a_global_import); + var l, u, c = c.declarations && _.find(c.declarations, _.isSourceFile); + if (c) return l = _.endsWith(o.text, "/index") || _.endsWith(o.text, "/index.js") ? void 0 : _.tryRemoveSuffix(_.removeFileExtension(c.fileName), "/index"), c = void 0 === l ? c.fileName : l, l = void 0 === l ? "module" : "directory", u = o.text.lastIndexOf("/") + 1, s = _.createTextSpan(o.getStart(s) + 1 + u, o.text.length - u), { + canRename: !0, + fileToRename: c, + kind: l, + displayName: c, + fullDisplayName: c, + kindModifiers: "", + triggerSpan: s + }; + return + } else return void 0; + else return (u = function(e, t, r, n) { + !n.providePrefixAndSuffixTextForRename && 2097152 & t.flags && (n = t.declarations && _.find(t.declarations, function(e) { + return _.isImportSpecifier(e) + })) && !n.propertyName && (t = r.getAliasedSymbol(t)); + n = t.declarations; + if (n) { + var i = d(e.path); + if (void 0 === i) return _.some(n, function(e) { + return _.isInsideNodeModules(e.getSourceFile().path) + }) ? _.Diagnostics.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder : void 0; + for (var a = 0, o = n; a < o.length; a++) { + var s = d(o[a].getSourceFile().path); + if (s) + for (var c = Math.min(i.length, s.length), l = 0; l <= c; l++) + if (0 !== _.compareStringsCaseSensitive(i[l], s[l])) return _.Diagnostics.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder + } + } + return + }(r, a, t, i)) ? f(u) : (l = _.SymbolDisplay.getSymbolKind(t, a, e), c = _.isImportOrExportSpecifierName(e) || _.isStringOrNumericLiteralLike(e) && 164 === e.parent.kind ? _.stripQuotes(_.getTextOfIdentifierOrLiteral(e)) : void 0, s = c || t.symbolToString(a), i = c || t.getFullyQualifiedName(a), p(s, i, l, _.SymbolDisplay.getSymbolModifiers(t, a), e, r)) + }(r, e.getTypeChecker(), t, e, n); + if (r) return r + } + return f(_.Diagnostics.You_cannot_rename_this_element) + }, e.nodeIsEligibleForRename = i + }(ts = ts || {}), ! function(f) { + var g; + + function m(e, t) { + for (var r, n = [], i = 0, a = e; i < a.length; i++) { + var o = a[i]; + (t(o) ? r = r || [] : (r && (n.push(h(r)), r = void 0), n)).push(o) + } + return r && n.push(h(r)), n + } + + function y(e, t, r) { + var n, i, a; + return void 0 === r && (r = !0), e.length < 2 || -1 === (t = f.findIndex(e, t)) ? e : (n = e.slice(0, t), i = e[t], a = f.last(e), r = r && 26 === a.kind, t = e.slice(t + 1, r ? e.length - 1 : void 0), e = f.compact([n.length ? h(n) : void 0, i, t.length ? h(t) : void 0]), r ? e.concat(a) : e) + } + + function h(e) { + return f.Debug.assertGreaterThanOrEqual(e.length, 1), f.setTextRangePosEnd(f.parseNodeFactory.createSyntaxList(e), e[0].pos, f.last(e).end) + }(f.SmartSelectionRange || (f.SmartSelectionRange = {})).getSmartSelectionRange = function(r, e) { + var n = { + textSpan: f.createTextSpanFromBounds(e.getFullStart(), e.getEnd()) + }, + t = e; + e: for (;;) { + var i = function(t) { + if (f.isSourceFile(t)) return m(t.getChildAt(0).getChildren(), g); { + var e; + if (f.isMappedTypeNode(t)) return r = t.getChildren(), e = r[0], r = r.slice(1), i = f.Debug.checkDefined(r.pop()), f.Debug.assertEqual(e.kind, 18), f.Debug.assertEqual(i.kind, 19), n = m(r, function(e) { + return e === t.readonlyToken || 146 === e.kind || e === t.questionToken || 57 === e.kind + }), n = m(n, function(e) { + e = e.kind; + return 22 === e || 165 === e || 23 === e + }), [e, h(y(n, function(e) { + return 58 === e.kind + })), i] + } { + var r, n, i; + if (f.isPropertySignature(t)) return r = m(t.getChildren(), function(e) { + return e === t.name || f.contains(t.modifiers, e) + }), n = 323 === (null == (e = r[0]) ? void 0 : e.kind) ? r[0] : void 0, i = y(n ? r.slice(1) : r, function(e) { + return 58 === e.kind + }), n ? [n, h(i)] : i + } { + var a; + if (f.isParameter(t)) return a = m(t.getChildren(), function(e) { + return e === t.dotDotDotToken || e === t.name + }), y(m(a, function(e) { + return e === a[0] || e === t.questionToken + }), function(e) { + return 63 === e.kind + }) + } + if (f.isBindingElement(t)) return y(t.getChildren(), function(e) { + return 63 === e.kind + }); + return t.getChildren() + }(t); + if (!i.length) break; + for (var a = 0; a < i.length; a++) { + var o = i[a - 1], + s = i[a], + c = i[a + 1]; + if (f.getTokenPosOfNode(s, e, !0) > r) break e; + var l = f.singleOrUndefined(f.getTrailingCommentRanges(e.text, s.end)); + if (l && 2 === l.kind) { + d = _ = u = void 0; + for (var u = l.pos, _ = l.end, d = (p(u, _), u); 47 === e.text.charCodeAt(d);) d++; + p(d, _) + } + if (function(e, t, r) { + if (f.Debug.assert(r.pos <= t), t < r.end) return 1; + return r.getEnd() === t && f.getTouchingPropertyName(e, t).pos < r.end + }(e, r, s)) { + if (f.isFunctionBody(s) && f.isFunctionLikeDeclaration(t) && !f.positionsAreOnSameLine(s.getStart(e), s.getEnd(), e) && p(s.getStart(e), s.getEnd()), f.isBlock(s) || f.isTemplateSpan(s) || f.isTemplateHead(s) || f.isTemplateTail(s) || o && f.isTemplateHead(o) || f.isVariableDeclarationList(s) && f.isVariableStatement(t) || f.isSyntaxList(s) && f.isVariableDeclarationList(t) || f.isVariableDeclaration(s) && f.isSyntaxList(t) && 1 === i.length || f.isJSDocTypeExpression(s) || f.isJSDocSignature(s) || f.isJSDocTypeLiteral(s)) { + t = s; + break + } + f.isTemplateSpan(t) && c && f.isTemplateMiddleOrTemplateTail(c) && p(s.getFullStart() - "${".length, c.getStart() + "}".length); + var l = f.isSyntaxList(s) && function(e) { + e = e && e.kind; + return 18 === e || 22 === e || 20 === e || 283 === e + }(o) && function(e) { + e = e && e.kind; + return 19 === e || 23 === e || 21 === e || 284 === e + }(c) && !f.positionsAreOnSameLine(o.getStart(), c.getStart(), e), + u = l ? o.getEnd() : s.getStart(), + _ = l ? c.getStart() : function(e, t) { + switch (t.kind) { + case 343: + case 341: + case 350: + case 348: + case 345: + return e.getLineEndOfPosition(t.getStart()); + default: + return t.getEnd() + } + }(e, s); + f.hasJSDocNodes(s) && null != (o = s.jsDoc) && o.length && p(f.first(s.jsDoc).getStart(), _), p(u = f.isSyntaxList(s) && (l = s.getChildren()[0]) && f.hasJSDocNodes(l) && null != (c = l.jsDoc) && c.length && l.getStart() !== s.pos ? Math.min(u, f.first(l.jsDoc).getStart()) : u, _), (f.isStringLiteral(s) || f.isTemplateLiteral(s)) && p(u + 1, _ - 1), t = s; + break + } + if (a === i.length - 1) break e + } + } + return n; + + function p(e, t) { + e !== t && (e = f.createTextSpanFromBounds(e, t), n && (f.textSpansEqual(e, n.textSpan) || !f.textSpanIntersectsWithPosition(e, r)) || (n = __assign({ + textSpan: e + }, n && { + parent: n + }))) + } + }, g = f.or(f.isImportDeclaration, f.isImportEqualsDeclaration) + }(ts = ts || {}), ! function(x) { + var e, d, D; + + function f(e, t, r) { + for (var n = e.getFullStart(), i = e.parent; i;) { + var a = x.findPrecedingToken(n, t, i, !0); + if (a) return x.rangeContainsRange(r, a); + i = i.parent + } + return x.Debug.fail("Could not find preceding token") + } + + function g(e, t, r) { + a = r; + var n, i, a = 29 === (n = e).kind || 20 === n.kind ? { + list: function(e, t, r) { + e = e.getChildren(r), r = e.indexOf(t); + return x.Debug.assert(0 <= r && e.length > r + 1), e[r + 1] + }(n.parent, n, a), + argumentIndex: 0 + } : (a = x.findContainingList(n)) && { + list: a, + argumentIndex: function(e, t) { + for (var r = 0, n = 0, i = e.getChildren(); n < i.length; n++) { + var a = i[n]; + if (a === t) break; + 27 !== a.kind && r++ + } + return r + }(a, n) + }; + if (a) return n = a.list, a = a.argumentIndex, t = function(e, t) { + var e = e.getChildren(), + r = x.countWhere(e, function(e) { + return 27 !== e.kind + }); + !t && 0 < e.length && 27 === x.last(e).kind && r++; + return r + }(n, x.isInString(r, t, e)), 0 !== a && x.Debug.assertLessThan(a, t), e = r, i = (r = n).getFullStart(), e = x.skipTrivia(e.text, r.getEnd(), !1), r = x.createTextSpan(i, e - i), { + list: n, + argumentIndex: a, + argumentCount: t, + argumentsSpan: r + } + } + + function m(e, t, r) { + var n = e.parent; + if (!x.isCallOrNewExpression(n)) { + if (x.isNoSubstitutionTemplateLiteral(e) && x.isTaggedTemplateExpression(n)) return x.isInsideTemplateLiteral(e, t, r) ? l(n, 0, r) : void 0; + return x.isTemplateHead(e) && 212 === n.parent.kind ? (c = n.parent, x.Debug.assert(225 === n.kind), l(c, a = x.isInsideTemplateLiteral(e, t, r) ? 0 : 1, r)) : x.isTemplateSpan(n) && x.isTaggedTemplateExpression(n.parent.parent) ? (c = (i = n).parent.parent, !x.isTemplateTail(e) || x.isInsideTemplateLiteral(e, t, r) ? l(c, a = function(e, t, r, n) { + if (x.Debug.assert(r >= t.getStart(), "Assumed 'position' could not occur before node."), x.isTemplateLiteralToken(t)) return x.isInsideTemplateLiteral(t, r, n) ? 0 : e + 2; + return e + 1 + }(i.parent.templateSpans.indexOf(i), e, t, r), r) : void 0) : x.isJsxOpeningLikeElement(n) ? (c = n.attributes.pos, i = x.skipTrivia(r.text, n.attributes.end, !1), { + isTypeParameterList: !1, + invocation: { + kind: 0, + node: n + }, + argumentsSpan: x.createTextSpan(c, i - c), + argumentIndex: 0, + argumentCount: 1 + }) : (i = x.getPossibleTypeArgumentsInfo(e, r)) ? (c = i.called, i = i.nTypeArguments, { + isTypeParameterList: !0, + invocation: s = { + kind: 1, + called: c + }, + argumentsSpan: o = x.createTextSpanFromBounds(c.getStart(r), e.end), + argumentIndex: i, + argumentCount: i + 1 + }) : void 0 + } + var i, a, o, s = n, + c = g(e, t, r); + if (c) return i = c.list, a = c.argumentIndex, e = c.argumentCount, o = c.argumentsSpan, { + isTypeParameterList: !!n.typeArguments && n.typeArguments.pos === i.pos, + invocation: { + kind: 0, + node: s + }, + argumentsSpan: o, + argumentIndex: a, + argumentCount: e + } + } + + function y(e) { + return x.isBinaryExpression(e.left) ? y(e.left) + 1 : 2 + } + + function l(e, t, r) { + var n = x.isNoSubstitutionTemplateLiteral(e.template) ? 1 : e.template.templateSpans.length + 1; + return 0 !== t && x.Debug.assertLessThan(t, n), { + isTypeParameterList: !1, + invocation: { + kind: 0, + node: e + }, + argumentsSpan: function(e, t) { + var e = e.template, + r = e.getStart(), + n = e.getEnd(); + 225 === e.kind && 0 === x.last(e.templateSpans).literal.getFullWidth() && (n = x.skipTrivia(t.text, n, !1)); + return x.createTextSpan(r, n - r) + }(e, r), + argumentIndex: t, + argumentCount: n + } + } + + function S(e) { + return 0 === e.kind ? x.getInvokedExpression(e.node) : e.called + } + + function T(e) { + return 0 !== e.kind && 1 === e.kind ? e.called : e.node + } + + function h(e, t, r, n, i, a) { + for (var o = r.isTypeParameterList, s = r.argumentCount, c = r.argumentsSpan, l = r.invocation, r = r.argumentIndex, p = T(l), l = 2 === l.kind ? l.symbol : i.getSymbolAtLocation(S(l)) || a && (null == (l = t.declaration) ? void 0 : l.symbol), f = l ? x.symbolToDisplayParts(i, l, a ? n : void 0, void 0) : x.emptyArray, u = x.map(e, function(e) { + var l = e, + u = f, + e = o, + _ = i, + d = p; + return e = (o ? C : E)(l, _, d, n), x.map(e, function(e) { + var r, n, i, t = e.isVariadic, + a = e.parameters, + o = e.prefix, + e = e.suffix, + o = __spreadArray(__spreadArray([], u, !0), o, !0), + e = __spreadArray(__spreadArray([], e, !0), (r = l, n = d, i = _, x.mapToDisplayParts(function(e) { + e.writePunctuation(":"), e.writeSpace(" "); + var t = i.getTypePredicateOfSignature(r); + t ? i.writeTypePredicate(t, n, void 0, e) : i.writeType(i.getReturnTypeOfSignature(r), n, void 0, e) + })), !0), + s = l.getDocumentationComment(_), + c = l.getJsDocTags(); + return { + isVariadic: t, + prefixDisplayParts: o, + suffixDisplayParts: e, + separatorDisplayParts: D, + parameters: a, + documentation: s, + tags: c + } + }) + }), _ = (0 !== r && x.Debug.assertLessThan(r, s), 0), d = 0, g = 0; g < u.length; g++) { + var m = u[g]; + if (e[g] === t && (_ = d, 1 < m.length)) + for (var y = 0, h = 0, v = m; h < v.length; h++) { + var b = v[h]; + if (b.isVariadic || b.parameters.length >= s) { + _ = d + y; + break + } + y++ + } + d += m.length + } + x.Debug.assert(-1 !== _); + l = { + items: x.flatMapToMutable(u, x.identity), + applicableSpan: c, + selectedItemIndex: _, + argumentIndex: r, + argumentCount: s + }, a = l.items[_]; + return a.isVariadic && (-1 < (c = x.findIndex(a.parameters, function(e) { + return !!e.isRest + })) && c < a.parameters.length - 1 ? l.argumentIndex = a.parameters.length : l.argumentIndex = Math.min(l.argumentIndex, a.parameters.length - 1)), l + } + + function C(e, r, n, i) { + var t = (e.target || e).typeParameters, + a = x.createPrinter({ + removeComments: !0 + }), + o = (t || x.emptyArray).map(function(e) { + return v(e, r, n, i, a) + }), + s = e.thisParameter ? [r.symbolToParameterDeclaration(e.thisParameter, n, d)] : []; + return r.getExpandedParameters(e).map(function(e) { + var t = x.factory.createNodeArray(__spreadArray(__spreadArray([], s, !0), x.map(e, function(e) { + return r.symbolToParameterDeclaration(e, n, d) + }), !0)), + e = x.mapToDisplayParts(function(e) { + a.writeList(2576, t, i, e) + }); + return { + isVariadic: !1, + parameters: o, + prefix: [x.punctuationPart(29)], + suffix: __spreadArray([x.punctuationPart(31)], e, !0) + } + }) + } + + function E(r, c, l, u) { + var _ = x.createPrinter({ + removeComments: !0 + }), + t = x.mapToDisplayParts(function(e) { + var t; + r.typeParameters && r.typeParameters.length && (t = x.factory.createNodeArray(r.typeParameters.map(function(e) { + return c.typeParameterToDeclaration(e, l, d) + })), _.writeList(53776, t, u, e)) + }), + e = c.getExpandedParameters(r), + n = c.hasEffectiveRestParameter(r) ? 1 === e.length ? function(e) { + return !0 + } : function(e) { + return !!(e.length && 32768 & e[e.length - 1].checkFlags) + } : function(e) { + return !1 + }; + return e.map(function(e) { + return { + isVariadic: n(e), + parameters: e.map(function(e) { + return r = e, n = c, i = l, a = u, o = _, e = x.mapToDisplayParts(function(e) { + var t = n.symbolToParameterDeclaration(r, i, d); + o.writeNode(4, t, a, e) + }), t = n.isOptionalParameter(r.valueDeclaration), s = !!(32768 & r.checkFlags), { + name: r.name, + documentation: r.getDocumentationComment(n), + displayParts: e, + isOptional: t, + isRest: s + }; + var r, n, i, a, o, t, s + }), + prefix: __spreadArray(__spreadArray([], t, !0), [x.punctuationPart(20)], !1), + suffix: [x.punctuationPart(21)] + } + }) + } + + function v(r, n, i, a, o) { + var e = x.mapToDisplayParts(function(e) { + var t = n.typeParameterToDeclaration(r, i, d); + o.writeNode(4, t, a, e) + }); + return { + name: r.symbol.name, + documentation: r.symbol.getDocumentationComment(n), + displayParts: e, + isOptional: !1, + isRest: !1 + } + }(e = x.SignatureHelp || (x.SignatureHelp = {})).getSignatureHelpItems = function(e, c, t, r, n) { + var i = e.getTypeChecker(), + a = x.findTokenOnLeftOfPosition(c, t); + if (a) { + var o = !!r && "characterTyped" === r.kind; + if (!o || !x.isInString(c, t, a) && !x.isInComment(c, t)) { + var l, s, u, _, d, r = !!r && "invoked" === r.kind, + p = function(e, i, a, o, t) { + for (var r = function(e) { + x.Debug.assert(x.rangeContainsRange(e.parent, e), "Not a subspan", function() { + return "Child: ".concat(x.Debug.formatSyntaxKind(e.kind), ", parent: ").concat(x.Debug.formatSyntaxKind(e.parent.kind)) + }); + var t, r, n = function(e, t, r, n) { + var i, a, r = function(e, t, r, n) { + if (20 !== e.kind && 27 !== e.kind) return; + var i = e.parent; + switch (i.kind) { + case 214: + case 171: + case 215: + case 216: + var a = g(e, r, t); + return a ? (s = a.argumentIndex, c = a.argumentCount, a = a.argumentsSpan, (o = x.isMethodDeclaration(i) ? n.getContextualTypeForObjectLiteralElement(i) : n.getContextualType(i)) && { + contextualType: o, + argumentIndex: s, + argumentCount: c, + argumentsSpan: a + }) : void 0; + case 223: + var o = function e(t) { + return x.isBinaryExpression(t.parent) ? e(t.parent) : t + }(i), + s = n.getContextualType(o), + c = 20 === e.kind ? 0 : y(i) - 1, + a = y(o); + return s && { + contextualType: s, + argumentIndex: c, + argumentCount: a, + argumentsSpan: x.createTextSpanFromNode(i) + }; + default: + return + } + }(e, r, t, n); + if (r) return t = r.contextualType, n = r.argumentIndex, i = r.argumentCount, r = r.argumentsSpan, t = t.getNonNullableType(), void 0 === (a = t.symbol) || void 0 === (t = x.lastOrUndefined(t.getCallSignatures())) ? void 0 : { + isTypeParameterList: !1, + invocation: { + kind: 2, + signature: t, + node: e, + symbol: function(e) { + return "__type" === e.name && x.firstDefined(e.declarations, function(e) { + return x.isFunctionTypeNode(e) ? e.parent.symbol : void 0 + }) || e + }(a) + }, + argumentsSpan: r, + argumentIndex: n, + argumentCount: i + } + }(n = e, t = i, r = a, o) || m(n, t, r); + if (n) return { + value: n + } + }, n = e; !x.isSourceFile(n) && (t || !x.isBlock(n)); n = n.parent) { + var s = r(n); + if ("object" == typeof s) return s.value + } + return + }(a, t, c, i, r); + if (p) return n.throwIfCancellationRequested(), l = function(e, t, r, n, i) { + var a = e.invocation, + o = e.argumentCount; + switch (a.kind) { + case 0: + return i && ! function(e, t, r) { + if (!x.isCallOrNewExpression(t)) return; + var n = t.getChildren(r); + switch (e.kind) { + case 20: + return x.contains(n, e); + case 27: + var i = x.findContainingList(e); + return i && x.contains(n, i); + case 29: + return f(e, r, t.expression); + default: + return + } + }(n, a.node, r) ? void 0 : (s = [], c = t.getResolvedSignatureForSignatureHelp(a.node, s, o), 0 === s.length ? void 0 : { + kind: 0, + candidates: s, + resolvedSignature: c + }); + case 1: + var s, c = a.called; + return i && !f(n, r, x.isIdentifier(c) ? c.parent : c) ? void 0 : 0 !== (s = x.getPossibleGenericSignatures(c, o, t)).length ? { + kind: 0, + candidates: s, + resolvedSignature: x.first(s) + } : (s = t.getSymbolAtLocation(c)) && { + kind: 1, + symbol: s + }; + case 2: + return { + kind: 0, + candidates: [a.signature], + resolvedSignature: a.signature + }; + default: + return x.Debug.assertNever(a) + } + }(p, i, c, a, o), n.throwIfCancellationRequested(), l ? i.runWithCancellationToken(n, function(e) { + var t, r, n, i, a, o, s; + return 0 === l.kind ? h(l.candidates, l.resolvedSignature, p, c, e) : (t = l.symbol, r = c, e = e, n = (o = p).argumentCount, i = p.argumentsSpan, a = p.invocation, o = p.argumentIndex, (s = e.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(t)) ? { + items: [function(e, t, r, n, i) { + var a = x.symbolToDisplayParts(r, e), + o = x.createPrinter({ + removeComments: !0 + }), + t = t.map(function(e) { + return v(e, r, n, i, o) + }), + s = e.getDocumentationComment(r), + e = e.getJsDocTags(r); + return { + isVariadic: !1, + prefixDisplayParts: __spreadArray(__spreadArray([], a, !0), [x.punctuationPart(29)], !1), + suffixDisplayParts: [x.punctuationPart(31)], + separatorDisplayParts: D, + parameters: t, + documentation: s, + tags: e + } + }(t, s, e, T(a), r)], + applicableSpan: i, + selectedItemIndex: 0, + argumentIndex: o, + argumentCount: n + } : void 0) + }) : !x.isSourceFileJS(c) || (t = e, u = n, 2 === (s = p).invocation.kind) || (r = S(s.invocation), _ = x.isPropertyAccessExpression(r) ? r.name.text : void 0, d = t.getTypeChecker(), void 0 === _) ? void 0 : x.firstDefined(t.getSourceFiles(), function(r) { + return x.firstDefined(r.getNamedDeclarations().get(_), function(e) { + var e = e.symbol && d.getTypeOfSymbolAtLocation(e.symbol, e), + t = e && e.getCallSignatures(); + if (t && t.length) return d.runWithCancellationToken(u, function(e) { + return h(t, t[0], s, r, e, !0) + }) + }) + }) + } + } + }, e.getArgumentInfoForCompletions = function(e, t, r) { + return !(e = m(e, t, r)) || e.isTypeParameterList || 0 !== e.invocation.kind ? void 0 : { + invocation: e.invocation.node, + argumentCount: e.argumentCount, + argumentIndex: e.argumentIndex + } + }, d = 70246400, D = [x.punctuationPart(27), x.spacePart()] + }(ts = ts || {}), ! function(D) { + function S(e) { + return "literals" === e.includeInlayParameterNameHints || "all" === e.includeInlayParameterNameHints + }(D.InlayHints || (D.InlayHints = {})).provideInlayHints = function(e) { + var l = e.file, + t = e.program, + r = e.span, + n = e.cancellationToken, + u = e.preferences, + _ = l.text, + d = t.getCompilerOptions(), + p = t.getTypeChecker(), + f = []; + return function e(t) { + if (!t || 0 === t.getFullWidth()) return; + switch (t.kind) { + case 264: + case 260: + case 261: + case 259: + case 228: + case 215: + case 171: + case 216: + n.throwIfCancellationRequested() + } + if (!D.textSpanIntersectsWith(r, t.pos, t.getFullWidth())) return; + if (D.isTypeNode(t) && !D.isExpressionWithTypeArguments(t)) return; + u.includeInlayVariableTypeHints && D.isVariableDeclaration(t) || u.includeInlayPropertyDeclarationTypeHints && D.isPropertyDeclaration(t) ? c(t) : u.includeInlayEnumMemberValueHints && D.isEnumMember(t) ? o(t) : S(u) && (D.isCallExpression(t) || D.isNewExpression(t)) ? g(t) : (u.includeInlayFunctionParameterTypeHints && D.isFunctionLikeDeclaration(t) && D.hasContextSensitiveParameters(t) && h(t), u.includeInlayFunctionLikeReturnTypeHints && i(t) && y(t)); + return D.forEachChild(t, e) + }(l), f; + + function i(e) { + return D.isArrowFunction(e) || D.isFunctionExpression(e) || D.isFunctionDeclaration(e) || D.isMethodDeclaration(e) || D.isGetAccessorDeclaration(e) + } + + function a(e, t) { + f.push({ + text: ": ".concat(v(e, 30)), + position: t, + kind: "Type", + whitespaceBefore: !0 + }) + } + + function o(e) { + var t; + e.initializer || void 0 !== (t = p.getConstantValue(e)) && (t = t.toString(), e = e.end, f.push({ + text: "= ".concat(v(t, 30)), + position: e, + kind: "Enum", + whitespaceBefore: !0 + })) + } + + function s(e) { + return e.symbol && 1536 & e.symbol.flags + } + + function c(e) { + var t; + !e.initializer || D.isBindingPattern(e.name) || D.isVariableDeclaration(e) && !x(e) || D.getEffectiveTypeAnnotationNode(e) || s(t = p.getTypeAtLocation(e)) || !(t = b(t)) || !1 === u.includeInlayVariableTypeHintsWhenTypeMatchesName && D.equateStringsCaseInsensitive(e.name.getText(), t) || a(t, e.name.end) + } + + function g(e) { + var t = e.arguments; + if (t && t.length) { + var r = [], + n = p.getResolvedSignatureForSignatureHelp(e, r); + if (n && r.length) + for (var i = 0; i < t.length; ++i) { + var a, o, s = t[i], + c = D.skipParentheses(s); + ("literals" !== u.includeInlayParameterNameHints || m(c)) && (o = p.getParameterIdentifierNameAtPosition(n, i)) && (a = o[0], o = o[1], !u.includeInlayParameterNameHintsWhenArgumentMatchesName && function(e, t) { + if (D.isIdentifier(e)) return e.text === t; + if (D.isPropertyAccessExpression(e)) return e.name.text === t; + return + }(c, a) && !o || function(e, t) { + var r; + return D.isIdentifierText(t, d.target, D.getLanguageVariant(l.scriptKind)) && !(null == (e = D.getLeadingCommentRanges(_, e.pos)) || !e.length) && (r = function(e) { + return new RegExp("^\\s?/\\*\\*?\\s?".concat(e, "\\s?\\*\\/\\s?$")) + }(t), D.some(e, function(e) { + return r.test(_.substring(e.pos, e.end)) + })) + }(c, c = D.unescapeLeadingUnderscores(a)) || (a = c, c = s.getStart(), f.push({ + text: "".concat(o ? "..." : "").concat(v(a, 30), ":"), + position: c, + kind: "Parameter", + whitespaceAfter: !0 + }))) + } + } + } + + function m(e) { + switch (e.kind) { + case 221: + var t = e.operand; + return D.isLiteralExpression(t) || D.isIdentifier(t) && D.isInfinityOrNaNString(t.escapedText); + case 110: + case 95: + case 104: + case 14: + case 225: + return 1; + case 79: + t = e.escapedText; + return "undefined" === t || D.isInfinityOrNaNString(t) + } + return D.isLiteralExpression(e) + } + + function y(e) { + var t; + D.isArrowFunction(e) && !D.findChildOfKind(e, 20, l) || !D.getEffectiveReturnTypeNode(e) && e.body && (t = p.getSignatureFromDeclaration(e)) && !s(t = p.getReturnTypeOfSignature(t)) && (t = b(t)) && a(t, function(e) { + var t = D.findChildOfKind(e, 21, l); + if (t) return t.end; + return e.parameters.end + }(e)) + } + + function h(e) { + var t = p.getSignatureFromDeclaration(e); + if (t) + for (var r = 0; r < e.parameters.length && r < t.parameters.length; ++r) { + var n, i = e.parameters[r]; + !x(i) || D.getEffectiveTypeAnnotationNode(i) || (n = function(e) { + var t = e.valueDeclaration; + if (!t || !D.isParameter(t)) return; + e = p.getTypeOfSymbolAtLocation(e, t); + if (s(e)) return; + return b(e) + }(t.parameters[r])) && a(n, (i.questionToken || i.name).end) + } + } + + function v(e, t) { + return e.length > t ? e.substr(0, t - "...".length) + "..." : e + } + + function b(r) { + var n = D.createPrinter({ + removeComments: !0 + }); + return D.usingSingleLineStringWriter(function(e) { + var t = p.typeToTypeNode(r, void 0, 71286784, e); + D.Debug.assertIsDefined(t, "should always get typenode"), n.writeNode(4, t, l, e) + }) + } + + function x(e) { + return !(D.isParameterDeclaration(e) || D.isVariableDeclaration(e) && D.isVarConst(e)) || !e.initializer || !(m(e = D.skipParentheses(e.initializer)) || D.isNewExpression(e) || D.isObjectLiteralExpression(e) || D.isAssertionExpression(e)) + } + } + }(ts = ts || {}), ! function(d) { + var u = /^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/; + + function _(e, t, r) { + t = d.tryParseRawSourceMap(t); + if (t && t.sources && t.file && t.mappings && (!t.sourcesContent || !t.sourcesContent.some(d.isString))) return d.createDocumentPositionMapper(e, t, r) + } + d.getSourceMapper = function(a) { + var o = d.createGetCanonicalFileName(a.useCaseSensitiveFileNames()), + n = a.getCurrentDirectory(), + i = new d.Map, + s = new d.Map; + return { + tryGetSourcePosition: function e(t) { + if (!d.isDeclarationFileName(t.fileName)) return; + var r = u(t.fileName); + if (!r) return; + r = l(t.fileName).getSourcePosition(t); + return r && r !== t ? e(r) || r : void 0 + }, + tryGetGeneratedPosition: function(e) { + if (d.isDeclarationFileName(e.fileName)) return; + var t = u(e.fileName); + if (!t) return; + var r = a.getProgram(); + if (r.isSourceOfProjectReferenceRedirect(t.fileName)) return; + t = r.getCompilerOptions(), t = d.outFile(t), t = t ? d.removeFileExtension(t) + ".d.ts" : d.getDeclarationEmitOutputFilePathWorker(e.fileName, r.getCompilerOptions(), n, r.getCommonSourceDirectory(), o); + return void 0 === t || (r = l(t, e.fileName).getGeneratedPosition(e)) === e ? void 0 : r + }, + toLineColumnOffset: function(e, t) { + return _(e).getLineAndCharacterOfPosition(t) + }, + clearCache: function() { + i.clear(), s.clear() + } + }; + + function c(e) { + return d.toPath(e, n, o) + } + + function l(e, t) { + var r, n = c(e), + i = s.get(n); + return i || (a.getDocumentPositionMapper ? r = a.getDocumentPositionMapper(e, t) : a.readFile && (r = (i = _(e)) && d.getDocumentPositionMapper({ + getSourceFileLike: _, + getCanonicalFileName: o, + log: function(e) { + return a.log(e) + } + }, e, d.getLineInfo(i.text, d.getLineStarts(i)), function(e) { + return !a.fileExists || a.fileExists(e) ? a.readFile(e) : void 0 + })), s.set(n, r || d.identitySourceMapConsumer), r) || d.identitySourceMapConsumer + } + + function u(e) { + var t = a.getProgram(); + if (t) return e = c(e), (t = t.getSourceFileByPath(e)) && t.resolvedPath === e ? t : void 0 + } + + function t(e) { + var t, e = c(e), + r = i.get(e); + return void 0 !== r ? r || void 0 : !a.readFile || a.fileExists && !a.fileExists(e) ? void i.set(e, !1) : (r = a.readFile(e), i.set(e, e = !!r && { + text: r, + lineMap: t, + getLineAndCharacterOfPosition: function(e) { + return d.computeLineAndCharacterOfPosition(d.getLineStarts(this), e) + } + }), e || void 0) + } + + function _(e) { + return a.getSourceFileLike ? a.getSourceFileLike(e) : u(e) || t(e) + } + }, d.getDocumentPositionMapper = function(e, t, r, n) { + if (r = d.tryGetSourceMappingURL(r)) { + var i = u.exec(r); + if (i) { + if (i[1]) return i = i[1], _(e, d.base64decode(d.sys, i), t); + r = void 0 + } + } + for (var i = [], a = (r && i.push(r), i.push(t + ".map"), r && d.getNormalizedAbsolutePath(r, d.getDirectoryPath(t))), o = 0, s = i; o < s.length; o++) { + var c = d.getNormalizedAbsolutePath(s[o], d.getDirectoryPath(t)), + l = n(c, a); + if (d.isString(l)) return _(e, l, c); + if (void 0 !== l) return l || void 0 + } + } + }(ts = ts || {}), ! function(_) { + var d = new _.Map; + + function p(e, t, r) { + var n; + n = e, t = t, !_.isAsyncFunction(n) && n.body && _.isBlock(n.body) && function(e, t) { + return _.forEachReturnStatement(e, function(e) { + return a(e, t) + }) + }(n.body, t) && i(n, t) && !d.has(c(e)) && r.push(_.createDiagnosticForNode(!e.name && _.isVariableDeclaration(e.parent) && _.isIdentifier(e.parent.name) ? e.parent.name : e, _.Diagnostics.This_may_be_converted_to_an_async_function)) + } + + function i(e, t) { + e = t.getSignatureFromDeclaration(e), e = e ? t.getReturnTypeOfSignature(e) : void 0; + return !!e && !!t.getPromisedTypeOfPromise(e) + } + + function a(e, t) { + return _.isReturnStatement(e) && !!e.expression && r(e.expression, t) + } + + function r(e, t) { + if (!n(e) || !o(e) || !e.arguments.every(function(e) { + return s(e, t) + })) return !1; + for (var r = e.expression.expression; n(r) || _.isPropertyAccessExpression(r);) + if (_.isCallExpression(r)) { + if (!o(r) || !r.arguments.every(function(e) { + return s(e, t) + })) return !1; + r = r.expression.expression + } else r = r.expression; + return !0 + } + + function n(e) { + return _.isCallExpression(e) && (_.hasPropertyAccessExpressionWithName(e, "then") || _.hasPropertyAccessExpressionWithName(e, "catch") || _.hasPropertyAccessExpressionWithName(e, "finally")) + } + + function o(e) { + var t = e.expression.name.text, + t = "then" === t ? 2 : "catch" === t || "finally" === t ? 1 : 0; + return !(e.arguments.length > t) && (e.arguments.length < t || 1 == t || _.some(e.arguments, function(e) { + return 104 === e.kind || _.isIdentifier(e) && "undefined" === e.text + })) + } + + function s(e, t) { + switch (e.kind) { + case 259: + case 215: + if (1 & _.getFunctionFlags(e)) return !1; + case 216: + d.set(c(e), !0); + case 104: + return !0; + case 79: + case 208: + var r = t.getSymbolAtLocation(e); + return r ? t.isUndefinedSymbol(r) || _.some(_.skipAlias(r, t).declarations, function(e) { + return _.isFunctionLike(e) || _.hasInitializer(e) && !!e.initializer && _.isFunctionLike(e.initializer) + }) : !1; + default: + return !1 + } + } + + function c(e) { + return "".concat(e.pos.toString(), ":").concat(e.end.toString()) + } + + function f(e, t) { + var r; + return 215 === e.kind ? !(!_.isVariableDeclaration(e.parent) || null == (r = e.symbol.members) || !r.size) || !(!(r = t.getSymbolOfExpando(e, !1)) || !(null != (t = r.exports) && t.size || null != (t = r.members) && t.size)) : 259 === e.kind && !(null == (r = e.symbol.members) || !r.size) + } + + function g(e) { + switch (e.kind) { + case 259: + case 171: + case 215: + case 216: + return !0; + default: + return !1 + } + } + _.computeSuggestionDiagnostics = function(n, e, t) { + e.getSemanticDiagnostics(n, t); + var r, i = [], + a = e.getTypeChecker(), + o = (!(n.impliedNodeFormat === _.ModuleKind.CommonJS || _.fileExtensionIsOneOf(n.fileName, [".cts", ".cjs"])) && n.commonJsModuleIndicator && (_.programContainsEsModules(e) || _.compilerOptionsIndicateEsModules(e.getCompilerOptions())) && n.statements.some(function(e) { + switch (e.kind) { + case 240: + return e.declarationList.declarations.some(function(e) { + return !!e.initializer && _.isRequireCall(function e(t) { + return _.isPropertyAccessExpression(t) ? e(t.expression) : t + }(e.initializer), !0) + }); + case 241: + var t, r = e.expression; + return _.isBinaryExpression(r) ? 1 === (t = _.getAssignmentDeclarationKind(r)) || 2 === t : _.isRequireCall(r, !0); + default: + return !1 + } + }) && i.push(_.createDiagnosticForNode((r = n.commonJsModuleIndicator, _.isBinaryExpression(r) ? r.left : r), _.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module)), _.isSourceFileJS(n)); + if (d.clear(), ! function e(t) { + { + var r; + o ? f(t, a) && i.push(_.createDiagnosticForNode(_.isVariableDeclaration(t.parent) ? t.parent.name : t, _.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration)) : (_.isVariableStatement(t) && t.parent === n && 2 & t.declarationList.flags && 1 === t.declarationList.declarations.length && (r = t.declarationList.declarations[0].initializer) && _.isRequireCall(r, !0) && i.push(_.createDiagnosticForNode(r, _.Diagnostics.require_call_may_be_converted_to_an_import)), _.codefix.parameterShouldGetTypeFromJSDoc(t) && i.push(_.createDiagnosticForNode(t.name || t, _.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))) + } + g(t) && p(t, a, i); + t.forEachChild(e) + }(n), _.getAllowSyntheticDefaultImports(e.getCompilerOptions())) + for (var s = 0, c = n.imports; s < c.length; s++) { + var l = c[s], + u = function(e) { + switch (e.kind) { + case 269: + var t = e.importClause, + r = e.moduleSpecifier; + return t && !t.name && t.namedBindings && 271 === t.namedBindings.kind && _.isStringLiteral(r) ? t.namedBindings.name : void 0; + case 268: + return e.name; + default: + return + } + }(_.importFromModuleSpecifier(l)); + u && (l = (l = _.getResolvedModule(n, l.text, _.getModeForUsageLocation(n, l))) && e.getSourceFile(l.resolvedFileName)) && l.externalModuleIndicator && !0 !== l.externalModuleIndicator && _.isExportAssignment(l.externalModuleIndicator) && l.externalModuleIndicator.isExportEquals && i.push(_.createDiagnosticForNode(u, _.Diagnostics.Import_may_be_converted_to_a_default_import)) + } + return _.addRange(i, n.bindSuggestionDiagnostics), _.addRange(i, e.getSuggestionDiagnostics(n, t)), i.sort(function(e, t) { + return e.start - t.start + }) + }, _.returnsPromise = i, _.isReturnStatementWithFixablePromiseHandler = a, _.isFixablePromiseHandler = r, _.canBeConvertedToAsync = g + }(ts = ts || {}), ! function(J) { + var e; + + function z(e, t, r) { + e = U(e, t, r); + return "" !== e ? e : 32 & (r = J.getCombinedLocalAndExportSymbolFlags(t)) ? J.getDeclarationOfKind(t, 228) ? "local class" : "class" : 384 & r ? "enum" : 524288 & r ? "type" : 64 & r ? "interface" : 262144 & r ? "type parameter" : 8 & r ? "enum member" : 2097152 & r ? "alias" : 1536 & r ? "module" : e + } + + function U(e, t, r) { + var n = e.getRootSymbols(t); + return 1 === n.length && 8192 & J.first(n).flags && 0 !== e.getTypeOfSymbolAtLocation(t, r).getNonNullableType().getCallSignatures().length ? "method" : e.isUndefinedSymbol(t) ? "var" : e.isArgumentsSymbol(t) ? "local var" : 108 === r.kind && J.isExpression(r) || J.isThisInTypeQuery(r) ? "parameter" : 3 & (n = J.getCombinedLocalAndExportSymbolFlags(t)) ? J.isFirstDeclarationOfSymbolParameter(t) ? "parameter" : t.valueDeclaration && J.isVarConst(t.valueDeclaration) ? "const" : J.forEach(t.declarations, J.isLet) ? "let" : i(t) ? "local var" : "var" : 16 & n ? i(t) ? "local function" : "function" : 32768 & n ? "getter" : 65536 & n ? "setter" : 8192 & n ? "method" : 16384 & n ? "constructor" : 131072 & n ? "index" : 4 & n ? 33554432 & n && 6 & t.checkFlags ? J.forEach(e.getRootSymbols(t), function(e) { + if (98311 & e.getFlags()) return "property" + }) || (e.getTypeOfSymbolAtLocation(t, r).getCallSignatures().length ? "method" : "property") : "property" : "" + } + + function n(e) { + if (e.declarations && e.declarations.length) { + var e = e.declarations, + t = e[0], + e = e.slice(1), + e = J.length(e) && J.isDeprecatedDeclaration(t) && J.some(e, function(e) { + return !J.isDeprecatedDeclaration(e) + }) ? 8192 : 0, + t = J.getNodeModifiers(t, e); + if (t) return t.split(",") + } + return [] + } + + function i(e) { + return !e.parent && J.forEach(e.declarations, function(e) { + if (215 !== e.kind) { + if (257 !== e.kind && 259 !== e.kind) return !1; + for (var t = e.parent; !J.isFunctionBlock(t); t = t.parent) + if (308 === t.kind || 265 === t.kind) return !1 + } + return !0 + }) + }(e = J.SymbolDisplay || (J.SymbolDisplay = {})).getSymbolKind = z, e.getSymbolModifiers = function(e, t) { + var r; + return t && (r = new J.Set(n(t)), 2097152 & t.flags && (e = e.getAliasedSymbol(t)) !== t && J.forEach(n(e), function(e) { + r.add(e) + }), 16777216 & t.flags && r.add("optional"), 0 < r.size) ? J.arrayFrom(r.values()).join(",") : "" + }, e.getSymbolDisplayPartsDocumentationAndSymbolKind = function L(i, a, o, n, t, e, s) { + void 0 === e && (e = J.getMeaningFromLocation(t)); + var r, c, l, u, _, d = [], + p = [], + f = [], + g = J.getCombinedLocalAndExportSymbolFlags(a), + m = 1 & e ? U(i, a, t) : "", + y = !1, + h = 108 === t.kind && J.isInExpressionContext(t) || J.isThisInTypeQuery(t), + v = !1; + if (108 === t.kind && !h) return { + displayParts: [J.keywordPart(108)], + documentation: [], + symbolKind: "primitive type", + tags: void 0 + }; + if ("" !== m || 32 & g || 2097152 & g) { + if ("getter" === m || "setter" === m) + if (E = J.find(a.declarations, function(e) { + return e.name === t + })) switch (E.kind) { + case 174: + m = "getter"; + break; + case 175: + m = "setter"; + break; + case 169: + m = "accessor"; + break; + default: + J.Debug.assertNever(E) + } else m = "property"; + var b, x = void 0, + D = h ? i.getTypeAtLocation(t) : i.getTypeOfSymbolAtLocation(a, t), + S = void(t.parent && 208 === t.parent.kind && ((S = t.parent.name) === t || S && 0 === S.getFullWidth()) && (t = t.parent)); + if (J.isCallOrNewExpression(t) ? S = t : (J.isCallExpressionTarget(t) || J.isNewExpressionTarget(t) || t.parent && (J.isJsxOpeningLikeElement(t.parent) || J.isTaggedTemplateExpression(t.parent)) && J.isFunctionLike(a.valueDeclaration)) && (S = t.parent), S) { + x = i.getResolvedSignature(S); + var T = 211 === S.kind || J.isCallExpression(S) && 106 === S.expression.kind, + C = T ? D.getConstructSignatures() : D.getCallSignatures(); + if (x = !x || J.contains(C, x.target) || J.contains(C, x) ? x : C.length ? C[0] : void 0) { + switch (T && 32 & g ? (m = "constructor", w(D.symbol, m)) : 2097152 & g ? (I(m = "alias"), d.push(J.spacePart()), T && (4 & x.flags && (d.push(J.keywordPart(126)), d.push(J.spacePart())), d.push(J.keywordPart(103)), d.push(J.spacePart())), P(a)) : w(a, m), m) { + case "JSX attribute": + case "property": + case "var": + case "const": + case "let": + case "parameter": + case "local var": + d.push(J.punctuationPart(58)), d.push(J.spacePart()), 16 & J.getObjectFlags(D) || !D.symbol || (J.addRange(d, J.symbolToDisplayParts(i, D.symbol, n, void 0, 5)), d.push(J.lineBreakPart())), T && (4 & x.flags && (d.push(J.keywordPart(126)), d.push(J.spacePart())), d.push(J.keywordPart(103)), d.push(J.spacePart())), O(x, C, 262144); + break; + default: + O(x, C) + } + y = !0, v = 1 < C.length + } + } else(J.isNameOfFunctionDeclaration(t) && !(98304 & g) || 135 === t.kind && 173 === t.parent.kind) && (b = t.parent, a.declarations) && J.find(a.declarations, function(e) { + return e === (135 === t.kind ? b.parent : b) + }) && (C = 173 === b.kind ? D.getNonNullableType().getConstructSignatures() : D.getNonNullableType().getCallSignatures(), x = i.isImplementationOfOverload(b) ? C[0] : i.getSignatureFromDeclaration(b), 173 === b.kind ? (m = "constructor", w(D.symbol, m)) : w(176 !== b.kind || 2048 & D.symbol.flags || 4096 & D.symbol.flags ? a : D.symbol, m), x && O(x, C), y = !0, v = 1 < C.length) + } + if (32 & g && !y && !h && (j(), J.getDeclarationOfKind(a, 228) ? I("local class") : d.push(J.keywordPart(84)), d.push(J.spacePart()), P(a), M(a, o)), 64 & g && 2 & e && (A(), d.push(J.keywordPart(118)), d.push(J.spacePart()), P(a), M(a, o)), 524288 & g && 2 & e && (A(), d.push(J.keywordPart(154)), d.push(J.spacePart()), P(a), M(a, o), d.push(J.spacePart()), d.push(J.operatorPart(63)), d.push(J.spacePart()), J.addRange(d, J.typeToDisplayParts(i, J.isConstTypeReference(t.parent) ? i.getTypeAtLocation(t.parent) : i.getDeclaredTypeOfSymbol(a), n, 8388608))), 384 & g && (A(), J.some(a.declarations, function(e) { + return J.isEnumDeclaration(e) && J.isEnumConst(e) + }) && (d.push(J.keywordPart(85)), d.push(J.spacePart())), d.push(J.keywordPart(92)), d.push(J.spacePart()), P(a)), 1536 & g && !h && (A(), S = (E = J.getDeclarationOfKind(a, 264)) && E.name && 79 === E.name.kind, d.push(J.keywordPart(S ? 143 : 142)), d.push(J.spacePart()), P(a)), 262144 & g && 2 & e) + if (A(), d.push(J.punctuationPart(20)), d.push(J.textPart("type parameter")), d.push(J.punctuationPart(21)), d.push(J.spacePart()), P(a), a.parent) F(), P(a.parent, n), M(a.parent, n); + else { + if (void 0 === (S = J.getDeclarationOfKind(a, 165))) return J.Debug.fail(); + (E = S.parent) && (J.isFunctionLikeKind(E.kind) ? (F(), x = i.getSignatureFromDeclaration(E), 177 === E.kind ? (d.push(J.keywordPart(103)), d.push(J.spacePart())) : 176 !== E.kind && E.name && P(E.symbol), J.addRange(d, J.signatureToDisplayParts(i, x, o, 32))) : 262 === E.kind && (F(), d.push(J.keywordPart(154)), d.push(J.spacePart()), P(E.symbol), M(E.symbol, o))) + } + if (8 & g && (w(a, m = "enum member"), 302 === (null == (E = null == (S = a.declarations) ? void 0 : S[0]) ? void 0 : E.kind)) && void 0 !== (S = i.getConstantValue(E)) && (d.push(J.spacePart()), d.push(J.operatorPart(63)), d.push(J.spacePart()), d.push(J.displayPart(J.getTextOfConstantValue(S), "number" == typeof S ? J.SymbolDisplayPartKind.numericLiteral : J.SymbolDisplayPartKind.stringLiteral))), 2097152 & a.flags) { + if (A(), y || (S = i.getAliasedSymbol(a)) !== a && S.declarations && 0 < S.declarations.length && (u = S.declarations[0], l = (l = J.getNameOfDeclaration(u)) ? (c = J.isModuleWithStringLiteralName(u) && J.hasSyntacticModifier(u, 2), c = "default" !== a.name && !c, l = L(i, S, J.getSourceFileOfNode(u), u, l, e, c ? a : S), d.push.apply(d, l.displayParts), d.push(J.lineBreakPart()), c = l.documentation, l.tags) : (c = S.getContextualDocumentationComment(u, i), S.getJsDocTags(i))), a.declarations) switch (a.declarations[0].kind) { + case 267: + d.push(J.keywordPart(93)), d.push(J.spacePart()), d.push(J.keywordPart(143)); + break; + case 274: + d.push(J.keywordPart(93)), d.push(J.spacePart()), d.push(J.keywordPart(a.declarations[0].isExportEquals ? 63 : 88)); + break; + case 278: + d.push(J.keywordPart(93)); + break; + default: + d.push(J.keywordPart(100)) + } + d.push(J.spacePart()), P(a), J.forEach(a.declarations, function(e) { + if (268 === e.kind) return J.isExternalModuleImportEqualsDeclaration(e) ? (d.push(J.spacePart()), d.push(J.operatorPart(63)), d.push(J.spacePart()), d.push(J.keywordPart(147)), d.push(J.punctuationPart(20)), d.push(J.displayPart(J.getTextOfNode(J.getExternalModuleImportEqualsDeclarationExpression(e)), J.SymbolDisplayPartKind.stringLiteral)), d.push(J.punctuationPart(21))) : (e = i.getSymbolAtLocation(e.moduleReference)) && (d.push(J.spacePart()), d.push(J.operatorPart(63)), d.push(J.spacePart()), P(e, n)), !0 + }) + } + if (y || ("" !== m ? D && (h ? (A(), d.push(J.keywordPart(108))) : w(a, m), "property" === m || "accessor" === m || "getter" === m || "setter" === m || "JSX attribute" === m || 3 & g || "local var" === m || "index" === m || h ? (d.push(J.punctuationPart(58)), d.push(J.spacePart()), D.symbol && 262144 & D.symbol.flags && "index" !== m ? (e = J.mapToDisplayParts(function(e) { + var t = i.typeParameterToDeclaration(D, n, 70246400); + B().writeNode(4, t, J.getSourceFileOfNode(J.getParseTreeNode(n)), e) + }), J.addRange(d, e)) : J.addRange(d, J.typeToDisplayParts(i, D, n)), a.target && a.target.tupleLabelDeclaration && (u = a.target.tupleLabelDeclaration, J.Debug.assertNode(u.name, J.isIdentifier), d.push(J.spacePart()), d.push(J.punctuationPart(20)), d.push(J.textPart(J.idText(u.name))), d.push(J.punctuationPart(21)))) : (16 & g || 8192 & g || 16384 & g || 131072 & g || 98304 & g || "method" === m) && (C = D.getNonNullableType().getCallSignatures()).length && (O(C[0], C), v = 1 < C.length)) : m = z(i, a, t)), 0 === (p = 0 !== p.length || v ? p : a.getContextualDocumentationComment(n, i)).length && 4 & g && a.parent && a.declarations && J.forEach(a.parent.declarations, function(e) { + return 308 === e.kind + })) + for (var E, k = 0, R = a.declarations; k < R.length; k++) + if ((E = R[k]).parent && 223 === E.parent.kind) { + var N = i.getSymbolAtLocation(E.parent.right); + if (N && (p = N.getDocumentationComment(i), f = N.getJsDocTags(i), 0 < p.length)) break + } + return 0 === p.length && J.isIdentifier(t) && a.valueDeclaration && J.isBindingElement(a.valueDeclaration) && (S = (E = a.valueDeclaration).parent, J.isIdentifier(E.name)) && J.isObjectBindingPattern(S) && (_ = J.getTextOfIdentifierOrLiteral(E.name), y = i.getTypeAtLocation(S), p = J.firstDefined(y.isUnion() ? y.types : [y], function(e) { + return (e = e.getProperty(_)) ? e.getDocumentationComment(i) : void 0 + }) || J.emptyArray), 0 !== f.length || v || (f = a.getContextualJsDocTags(n, i)), 0 === p.length && c && (p = c), 0 === f.length && l && (f = l), { + displayParts: d, + documentation: p, + symbolKind: m, + tags: 0 === f.length ? void 0 : f + }; + + function B() { + return r = r || J.createPrinter({ + removeComments: !0 + }) + } + + function A() { + d.length && d.push(J.lineBreakPart()), j() + } + + function j() { + s && (I("alias"), d.push(J.spacePart())) + } + + function F() { + d.push(J.spacePart()), d.push(J.keywordPart(101)), d.push(J.spacePart()) + } + + function P(e, t) { + s && e === a && (e = s), "index" === m && (r = i.getIndexInfosOfIndexSymbol(e)); + var r, n = []; + 131072 & e.flags && r ? ((n = e.parent ? J.symbolToDisplayParts(i, e.parent) : n).push(J.punctuationPart(22)), r.forEach(function(e, t) { + n.push.apply(n, J.typeToDisplayParts(i, e.keyType)), t !== r.length - 1 && (n.push(J.spacePart()), n.push(J.punctuationPart(51)), n.push(J.spacePart())) + }), n.push(J.punctuationPart(23))) : n = J.symbolToDisplayParts(i, e, t || o, void 0, 7), J.addRange(d, n), 16777216 & a.flags && d.push(J.punctuationPart(57)) + } + + function w(e, t) { + A(), t && (I(t), e) && !J.some(e.declarations, function(e) { + return J.isArrowFunction(e) || (J.isFunctionExpression(e) || J.isClassExpression(e)) && !e.name + }) && (d.push(J.spacePart()), P(e)) + } + + function I(e) { + switch (e) { + case "var": + case "function": + case "let": + case "const": + case "constructor": + return void d.push(J.textOrKeywordPart(e)); + default: + d.push(J.punctuationPart(20)), d.push(J.textOrKeywordPart(e)), d.push(J.punctuationPart(21)) + } + } + + function O(e, t, r) { + J.addRange(d, J.signatureToDisplayParts(i, e, n, 32 | (r = void 0 === r ? 0 : r))), 1 < t.length && (d.push(J.spacePart()), d.push(J.punctuationPart(20)), d.push(J.operatorPart(39)), d.push(J.displayPart((t.length - 1).toString(), J.SymbolDisplayPartKind.numericLiteral)), d.push(J.spacePart()), d.push(J.textPart(2 === t.length ? "overload" : "overloads")), d.push(J.punctuationPart(21))), p = e.getDocumentationComment(i), f = e.getJsDocTags(), 1 < t.length && 0 === p.length && 0 === f.length && (p = t[0].getDocumentationComment(i), f = t[0].getJsDocTags().filter(function(e) { + return "deprecated" !== e.name + })) + } + + function M(r, n) { + var e = J.mapToDisplayParts(function(e) { + var t = i.symbolToTypeParameterDeclarations(r, n, 70246400); + B().writeList(53776, t, J.getSourceFileOfNode(J.getParseTreeNode(n)), e) + }); + J.addRange(d, e) + } + } + }(ts = ts || {}), ! function(g) { + function a(e, t) { + var r, n = [], + i = t.compilerOptions ? m(t.compilerOptions, n) : {}, + a = g.getDefaultCompilerOptions(); + for (r in a) g.hasProperty(a, r) && void 0 === i[r] && (i[r] = a[r]); + for (var o = 0, s = g.transpileOptionValueCompilerOptions; o < s.length; o++) { + var c = s[o]; + i[c.name] = c.transpileOptionValue + } + i.suppressOutputPathCheck = !0, i.allowNonTsExtensions = !0; + var l, u, _ = g.getNewLineCharacter(i), + d = { + getSourceFile: function(e) { + return e === g.normalizePath(p) ? f : void 0 + }, + writeFile: function(e, t) { + g.fileExtensionIs(e, ".map") ? (g.Debug.assertEqual(u, void 0, "Unexpected multiple source map outputs, file:", e), u = t) : (g.Debug.assertEqual(l, void 0, "Unexpected multiple outputs, file:", e), l = t) + }, + getDefaultLibFileName: function() { + return "lib.d.ts" + }, + useCaseSensitiveFileNames: function() { + return !1 + }, + getCanonicalFileName: function(e) { + return e + }, + getCurrentDirectory: function() { + return "" + }, + getNewLine: function() { + return _ + }, + fileExists: function(e) { + return e === p + }, + readFile: function() { + return "" + }, + directoryExists: function() { + return !0 + }, + getDirectories: function() { + return [] + } + }, + p = t.fileName || (t.compilerOptions && t.compilerOptions.jsx ? "module.tsx" : "module.ts"), + f = g.createSourceFile(p, e, { + languageVersion: g.getEmitScriptTarget(i), + impliedNodeFormat: g.getImpliedNodeFormatForFile(g.toPath(p, "", d.getCanonicalFileName), void 0, d, i), + setExternalModuleIndicator: g.getSetExternalModuleIndicator(i) + }), + e = (t.moduleName && (f.moduleName = t.moduleName), t.renamedDependencies && (f.renamedDependencies = new g.Map(g.getEntries(t.renamedDependencies))), g.createProgram([p], i, d)); + return t.reportDiagnostics && (g.addRange(n, e.getSyntacticDiagnostics(f)), g.addRange(n, e.getOptionsDiagnostics())), e.emit(void 0, void 0, void 0, void 0, t.transformers), void 0 === l ? g.Debug.fail("Output generation failed") : { + outputText: l, + diagnostics: n, + sourceMapText: u + } + } + var i; + + function m(r, n) { + i = i || g.filter(g.optionDeclarations, function(e) { + return "object" == typeof e.type && !g.forEachEntry(e.type, function(e) { + return "number" != typeof e + }) + }), r = g.cloneCompilerOptions(r); + for (var e = 0, t = i; e < t.length; e++) ! function(e) { + if (!g.hasProperty(r, e.name)) return; + var t = r[e.name]; + g.isString(t) ? r[e.name] = g.parseCustomTypeOption(e, t, n) : g.forEachEntry(e.type, function(e) { + return e === t + }) || n.push(g.createCompilerDiagnosticForInvalidCustomType(e)) + }(t[e]); + return r + } + g.transpileModule = a, g.transpile = function(e, t, r, n, i) { + return e = a(e, { + compilerOptions: t, + fileName: r, + reportDiagnostics: !!n, + moduleName: i + }), g.addRange(n, e.diagnostics), e.outputText + }, g.fixupCompilerOptions = m + }(ts = ts || {}), ! function(a) { + var e, t; + + function r(e, t, r) { + this.sourceFile = e, this.formattingRequestKind = t, this.options = r + } + e = a.formatting || (a.formatting = {}), (t = e.FormattingRequestKind || (e.FormattingRequestKind = {}))[t.FormatDocument = 0] = "FormatDocument", t[t.FormatSelection = 1] = "FormatSelection", t[t.FormatOnEnter = 2] = "FormatOnEnter", t[t.FormatOnSemicolon = 3] = "FormatOnSemicolon", t[t.FormatOnOpeningCurlyBrace = 4] = "FormatOnOpeningCurlyBrace", t[t.FormatOnClosingCurlyBrace = 5] = "FormatOnClosingCurlyBrace", r.prototype.updateContext = function(e, t, r, n, i) { + this.currentTokenSpan = a.Debug.checkDefined(e), this.currentTokenParent = a.Debug.checkDefined(t), this.nextTokenSpan = a.Debug.checkDefined(r), this.nextTokenParent = a.Debug.checkDefined(n), this.contextNode = a.Debug.checkDefined(i), this.contextNodeAllOnSameLine = void 0, this.nextNodeAllOnSameLine = void 0, this.tokensAreOnSameLine = void 0, this.contextNodeBlockIsOnOneLine = void 0, this.nextNodeBlockIsOnOneLine = void 0 + }, r.prototype.ContextNodeAllOnSameLine = function() { + return void 0 === this.contextNodeAllOnSameLine && (this.contextNodeAllOnSameLine = this.NodeIsOnOneLine(this.contextNode)), this.contextNodeAllOnSameLine + }, r.prototype.NextNodeAllOnSameLine = function() { + return void 0 === this.nextNodeAllOnSameLine && (this.nextNodeAllOnSameLine = this.NodeIsOnOneLine(this.nextTokenParent)), this.nextNodeAllOnSameLine + }, r.prototype.TokensAreOnSameLine = function() { + var e, t; + return void 0 === this.tokensAreOnSameLine && (e = this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line, t = this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line, this.tokensAreOnSameLine = e === t), this.tokensAreOnSameLine + }, r.prototype.ContextNodeBlockIsOnOneLine = function() { + return void 0 === this.contextNodeBlockIsOnOneLine && (this.contextNodeBlockIsOnOneLine = this.BlockIsOnOneLine(this.contextNode)), this.contextNodeBlockIsOnOneLine + }, r.prototype.NextNodeBlockIsOnOneLine = function() { + return void 0 === this.nextNodeBlockIsOnOneLine && (this.nextNodeBlockIsOnOneLine = this.BlockIsOnOneLine(this.nextTokenParent)), this.nextNodeBlockIsOnOneLine + }, r.prototype.NodeIsOnOneLine = function(e) { + return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line === this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line + }, r.prototype.BlockIsOnOneLine = function(e) { + var t = a.findChildOfKind(e, 18, this.sourceFile), + e = a.findChildOfKind(e, 19, this.sourceFile); + return !(!t || !e) && this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line === this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line + }, t = r, e.FormattingContext = t + }(ts = ts || {}), ! function(g) { + var m, y, h; + m = g.formatting || (g.formatting = {}), y = g.createScanner(99, !1, 0), h = g.createScanner(99, !1, 1), m.getFormattingScanner = function(e, t, r, i, n) { + var a, o, s, c, l = 1 === t ? h : y, + u = (l.setText(e), l.setTextPos(r), !0), + t = n({ + advance: function() { + _ = void 0, l.getStartPos() !== r ? u = !!o && 4 === g.last(o).kind : l.scan(); + a = void 0, o = void 0; + var e = l.getStartPos(); + for (; e < i;) { + var t = l.getToken(); + if (!g.isTrivia(t)) break; + l.scan(); + t = { + pos: e, + end: l.getStartPos(), + kind: t + }; + e = l.getStartPos(), a = g.append(a, t) + } + s = l.getStartPos() + }, + readTokenInfo: function(e) { + g.Debug.assert(d()); + var t = function(e) { + switch (e.kind) { + case 33: + case 71: + case 72: + case 49: + case 48: + return 1 + } + return + }(e) ? 1 : 13 === e.kind ? 2 : function(e) { + return 16 === e.kind || 17 === e.kind + }(e) ? 3 : function(e) { + if (e.parent) switch (e.parent.kind) { + case 288: + case 283: + case 284: + case 282: + return g.isKeyword(e.kind) || 79 === e.kind + } + return + }(e) ? 4 : function(e) { + return g.isJsxText(e) || g.isJsxElement(e) && 11 === (null == _ ? void 0 : _.token.kind) + }(e) ? 5 : function(e) { + return e.parent && g.isJsxAttribute(e.parent) && e.parent.initializer === e + }(e) ? 6 : 0; + if (!_ || t !== c) { + l.getStartPos() !== s && (g.Debug.assert(void 0 !== _), l.setTextPos(s), l.scan()); + var r = function(e, t) { + var r = l.getToken(); + switch (c = 0, t) { + case 1: + if (31 === r) return c = 1, n = l.reScanGreaterToken(), g.Debug.assert(e.kind === n), n; + break; + case 2: + var n; + if (function(e) { + return 43 === e || 68 === e + }(r)) return c = 2, n = l.reScanSlashToken(), g.Debug.assert(e.kind === n), n; + break; + case 3: + if (19 === r) return c = 3, l.reScanTemplateToken(!1); + break; + case 4: + return c = 4, l.scanJsxIdentifier(); + case 5: + return c = 5, l.reScanJsxToken(!1); + case 6: + return c = 6, l.reScanJsxAttributeValue(); + case 0: + break; + default: + g.Debug.assertNever(t) + } + return r + }(e, t), + t = m.createTextRangeWithKind(l.getStartPos(), l.getTextPos(), r); + for (o = o && void 0; l.getStartPos() < i && (r = l.scan(), g.isTrivia(r));) { + var n = m.createTextRangeWithKind(l.getStartPos(), l.getTextPos(), r); + if ((o = o || []).push(n), 4 === r) { + l.scan(); + break + } + } + _ = { + leadingTrivia: a, + trailingTrivia: o, + token: t + } + } + return f(_, e) + }, + readEOFTokenRange: function() { + return g.Debug.assert(p()), m.createTextRangeWithKind(l.getStartPos(), l.getTextPos(), 1) + }, + isOnToken: d, + isOnEOF: p, + getCurrentLeadingTrivia: function() { + return a + }, + lastTrailingTriviaWasNewLine: function() { + return u + }, + skipToEndOf: function(e) { + l.setTextPos(e.end), s = l.getStartPos(), c = void 0, _ = void 0, u = !1, a = void 0, o = void 0 + }, + skipToStartOf: function(e) { + l.setTextPos(e.pos), s = l.getStartPos(), c = void 0, _ = void 0, u = !1, a = void 0, o = void 0 + }, + getStartPos: function() { + var e; + return null != (e = null == _ ? void 0 : _.token.pos) ? e : l.getTokenPos() + } + }), + _ = void 0; + return l.setText(void 0), t; + + function d() { + var e = _ ? _.token.kind : l.getToken(); + return 1 !== e && !g.isTrivia(e) + } + + function p() { + return 1 === (_ ? _.token.kind : l.getToken()) + } + + function f(e, t) { + return g.isToken(t) && e.token.kind !== t.kind && (e.token.kind = t.kind), e + } + } + }(ts = ts || {}), ! function(e) { + var t; + (t = e.formatting || (e.formatting = {})).anyContext = e.emptyArray, (e = t.RuleAction || (t.RuleAction = {}))[e.StopProcessingSpaceActions = 1] = "StopProcessingSpaceActions", e[e.StopProcessingTokenActions = 2] = "StopProcessingTokenActions", e[e.InsertSpace = 4] = "InsertSpace", e[e.InsertNewLine = 8] = "InsertNewLine", e[e.DeleteSpace = 16] = "DeleteSpace", e[e.DeleteToken = 32] = "DeleteToken", e[e.InsertTrailingSemicolon = 64] = "InsertTrailingSemicolon", e[e.StopAction = 3] = "StopAction", e[e.ModifySpaceAction = 28] = "ModifySpaceAction", e[e.ModifyTokenAction = 96] = "ModifyTokenAction", (e = t.RuleFlags || (t.RuleFlags = {}))[e.None = 0] = "None", e[e.CanDeleteNewLines = 1] = "CanDeleteNewLines" + }(ts = ts || {}), ! function(p) { + var f; + + function g(e, t, r, n, i, a) { + return void 0 === a && (a = 0), { + leftTokenRange: o(t), + rightTokenRange: o(r), + rule: { + debugName: e, + context: n, + action: i, + flags: a + } + } + } + + function m(e) { + return { + tokens: e, + isSpecific: !0 + } + } + + function o(e) { + return "number" == typeof e ? m([e]) : p.isArray(e) ? m(e) : e + } + + function y(e, t, r) { + void 0 === r && (r = []); + for (var n = [], i = e; i <= t; i++) p.contains(r, i) || n.push(i); + return m(n) + } + + function h(t, r) { + return function(e) { + return e.options && e.options[t] === r + } + } + + function v(t) { + return function(e) { + return e.options && p.hasProperty(e.options, t) && !!e.options[t] + } + } + + function b(t) { + return function(e) { + return e.options && p.hasProperty(e.options, t) && !e.options[t] + } + } + + function x(t) { + return function(e) { + return !e.options || !p.hasProperty(e.options, t) || !e.options[t] + } + } + + function D(t) { + return function(e) { + return !e.options || !p.hasProperty(e.options, t) || !e.options[t] || e.TokensAreOnSameLine() + } + } + + function S(t) { + return function(e) { + return !e.options || !p.hasProperty(e.options, t) || !!e.options[t] + } + } + + function T(e) { + return 245 === e.contextNode.kind + } + + function q(e) { + return !T(e) + } + + function C(e) { + switch (e.contextNode.kind) { + case 223: + return 27 !== e.contextNode.operatorToken.kind; + case 224: + case 191: + case 231: + case 278: + case 273: + case 179: + case 189: + case 190: + case 235: + return !0; + case 205: + case 262: + case 268: + case 274: + case 257: + case 166: + case 302: + case 169: + case 168: + return 63 === e.currentTokenSpan.kind || 63 === e.nextTokenSpan.kind; + case 246: + case 165: + return 101 === e.currentTokenSpan.kind || 101 === e.nextTokenSpan.kind || 63 === e.currentTokenSpan.kind || 63 === e.nextTokenSpan.kind; + case 247: + return 162 === e.currentTokenSpan.kind || 162 === e.nextTokenSpan.kind + } + return !1 + } + + function E(e) { + return !C(e) + } + + function k(e) { + return !N(e) + } + + function N(e) { + e = e.contextNode.kind; + return 169 === e || 168 === e || 166 === e || 257 === e || p.isFunctionLikeKind(e) + } + + function W(e) { + return 224 === e.contextNode.kind || 191 === e.contextNode.kind + } + + function A(e) { + return e.TokensAreOnSameLine() || I(e) + } + + function F(e) { + return 203 === e.contextNode.kind || 197 === e.contextNode.kind || t(e = e) && (e.ContextNodeAllOnSameLine() || e.ContextNodeBlockIsOnOneLine()) + } + + function P(e) { + return I(e) && !(e.NextNodeAllOnSameLine() || e.NextNodeBlockIsOnOneLine()) + } + + function w(e) { + return t(e) && !(e.ContextNodeAllOnSameLine() || e.ContextNodeBlockIsOnOneLine()) + } + + function t(e) { + return r(e.contextNode) + } + + function I(e) { + return r(e.nextTokenParent) + } + + function r(e) { + if (n(e)) return !0; + switch (e.kind) { + case 238: + case 266: + case 207: + case 265: + return !0 + } + return !1 + } + + function O(e) { + switch (e.contextNode.kind) { + case 259: + case 171: + case 170: + case 174: + case 175: + case 176: + case 215: + case 173: + case 216: + case 261: + return !0 + } + return !1 + } + + function H(e) { + return !O(e) + } + + function M(e) { + return 259 === e.contextNode.kind || 215 === e.contextNode.kind + } + + function L(e) { + return n(e.contextNode) + } + + function n(e) { + switch (e.kind) { + case 260: + case 228: + case 261: + case 263: + case 184: + case 264: + case 275: + case 276: + case 269: + case 272: + return !0 + } + return !1 + } + + function G(e) { + switch (e.currentTokenParent.kind) { + case 260: + case 264: + case 263: + case 295: + case 265: + case 252: + return !0; + case 238: + var t = e.currentTokenParent.parent; + if (!t || 216 !== t.kind && 215 !== t.kind) return !0 + } + return !1 + } + + function R(e) { + switch (e.contextNode.kind) { + case 242: + case 252: + case 245: + case 246: + case 247: + case 244: + case 255: + case 243: + case 251: + case 295: + return !0; + default: + return !1 + } + } + + function B(e) { + return 207 === e.contextNode.kind + } + + function Q(e) { + return 210 === e.contextNode.kind || 211 === e.contextNode.kind + } + + function X(e) { + return 27 !== e.currentTokenSpan.kind + } + + function Y(e) { + return 23 !== e.nextTokenSpan.kind + } + + function Z(e) { + return 21 !== e.nextTokenSpan.kind + } + + function $(e) { + return 216 === e.contextNode.kind + } + + function ee(e) { + return 202 === e.contextNode.kind + } + + function j(e) { + return e.TokensAreOnSameLine() && 11 !== e.contextNode.kind + } + + function J(e) { + return 11 !== e.contextNode.kind + } + + function z(e) { + return 281 !== e.contextNode.kind && 285 !== e.contextNode.kind + } + + function U(e) { + return 291 === e.contextNode.kind || 290 === e.contextNode.kind + } + + function te(e) { + return 288 === e.nextTokenParent.kind + } + + function re(e) { + return 288 === e.contextNode.kind + } + + function ne(e) { + return 282 === e.contextNode.kind + } + + function ie(e) { + return !O(e) && !I(e) + } + + function ae(e) { + return e.TokensAreOnSameLine() && p.hasDecorators(e.contextNode) && i(e.currentTokenParent) && !i(e.nextTokenParent) + } + + function i(e) { + for (; e && p.isExpression(e);) e = e.parent; + return e && 167 === e.kind + } + + function oe(e) { + return 258 === e.currentTokenParent.kind && e.currentTokenParent.getStart(e.sourceFile) === e.currentTokenSpan.pos + } + + function K(e) { + return 2 !== e.formattingRequestKind + } + + function se(e) { + return 264 === e.contextNode.kind + } + + function ce(e) { + return 184 === e.contextNode.kind + } + + function le(e) { + return 177 === e.contextNode.kind + } + + function a(e, t) { + if (29 !== e.kind && 31 !== e.kind) return !1; + switch (t.kind) { + case 180: + case 213: + case 262: + case 260: + case 228: + case 261: + case 259: + case 215: + case 216: + case 171: + case 170: + case 176: + case 177: + case 210: + case 211: + case 230: + return !0; + default: + return !1 + } + } + + function V(e) { + return a(e.currentTokenSpan, e.currentTokenParent) || a(e.nextTokenSpan, e.nextTokenParent) + } + + function ue(e) { + return 213 === e.contextNode.kind + } + + function _e(e) { + return 114 === e.currentTokenSpan.kind && 219 === e.currentTokenParent.kind + } + + function de(e) { + return 226 === e.contextNode.kind && void 0 !== e.contextNode.expression + } + + function pe(e) { + return 232 === e.contextNode.kind + } + + function fe(e) { + switch (e.contextNode.kind) { + case 242: + case 245: + case 246: + case 247: + case 243: + case 244: + return !1; + default: + return !void 0 + } + return !0 + } + + function ge(e) { + var t = e.nextTokenSpan.kind, + r = e.nextTokenSpan.pos; + if (p.isTrivia(t)) { + var n = e.nextTokenParent === e.currentTokenParent ? p.findNextToken(e.currentTokenParent, p.findAncestor(e.currentTokenParent, function(e) { + return !e.parent + }), e.sourceFile) : e.nextTokenParent.getFirstToken(e.sourceFile); + if (!n) return !0; + t = n.kind, r = n.getStart(e.sourceFile) + } + return e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line === e.sourceFile.getLineAndCharacterOfPosition(r).line ? 19 === t || 1 === t : 237 !== t && 26 !== t && (261 === e.contextNode.kind || 262 === e.contextNode.kind ? !p.isPropertySignature(e.currentTokenParent) || !!e.currentTokenParent.type || 20 !== t : p.isPropertyDeclaration(e.currentTokenParent) ? !e.currentTokenParent.initializer : 245 !== e.currentTokenParent.kind && 239 !== e.currentTokenParent.kind && 237 !== e.currentTokenParent.kind && 22 !== t && 20 !== t && 39 !== t && 40 !== t && 43 !== t && 13 !== t && 27 !== t && 225 !== t && 15 !== t && 14 !== t && 24 !== t) + } + + function me(e) { + return p.positionIsASICandidate(e.currentTokenSpan.end, e.currentTokenParent, e.sourceFile) + } + + function ye(e) { + return !p.isPropertyAccessExpression(e.contextNode) || !p.isNumericLiteral(e.contextNode.expression) || -1 !== e.contextNode.expression.getText().indexOf(".") + }(f = p.formatting || (p.formatting = {})).getAllRules = function() { + for (var r = [], e = 0; e <= 162; e++) 1 !== e && r.push(e); + + function t() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + return { + tokens: r.filter(function(t) { + return !e.some(function(e) { + return e === t + }) + }), + isSpecific: !1 + } + } + var n = { + tokens: r, + isSpecific: !1 + }, + i = m(__spreadArray(__spreadArray([], r, !0), [3], !1)), + a = m(__spreadArray(__spreadArray([], r, !0), [1], !1)), + o = y(81, 162), + s = y(29, 78), + c = [101, 102, 162, 128, 140], + l = __spreadArray([79], p.typeKeywords, !0), + u = i, + _ = m([79, 3, 84, 93, 100]), + d = m([21, 3, 90, 111, 96, 91]), + i = [g("IgnoreBeforeComment", n, [2, 3], f.anyContext, 1), g("IgnoreAfterLineComment", 2, n, f.anyContext, 1), g("NotSpaceBeforeColon", n, 58, [j, E, k], 16), g("SpaceAfterColon", 58, n, [j, E], 4), g("NoSpaceBeforeQuestionMark", n, 57, [j, E, k], 16), g("SpaceAfterQuestionMarkInConditionalOperator", 57, n, [j, W], 4), g("NoSpaceAfterQuestionMark", 57, n, [j], 16), g("NoSpaceBeforeDot", n, [24, 28], [j, ye], 16), g("NoSpaceAfterDot", [24, 28], n, [j], 16), g("NoSpaceBetweenImportParenInImportType", 100, 20, [j, ee], 16), g("NoSpaceAfterUnaryPrefixOperator", [45, 46, 54, 53], [8, 9, 79, 20, 22, 18, 108, 103], [j, E], 16), g("NoSpaceAfterUnaryPreincrementOperator", 45, [79, 20, 108, 103], [j], 16), g("NoSpaceAfterUnaryPredecrementOperator", 46, [79, 20, 108, 103], [j], 16), g("NoSpaceBeforeUnaryPostincrementOperator", [79, 21, 23, 103], 45, [j, fe], 16), g("NoSpaceBeforeUnaryPostdecrementOperator", [79, 21, 23, 103], 46, [j, fe], 16), g("SpaceAfterPostincrementWhenFollowedByAdd", 45, 39, [j, C], 4), g("SpaceAfterAddWhenFollowedByUnaryPlus", 39, 39, [j, C], 4), g("SpaceAfterAddWhenFollowedByPreincrement", 39, 45, [j, C], 4), g("SpaceAfterPostdecrementWhenFollowedBySubtract", 46, 40, [j, C], 4), g("SpaceAfterSubtractWhenFollowedByUnaryMinus", 40, 40, [j, C], 4), g("SpaceAfterSubtractWhenFollowedByPredecrement", 40, 46, [j, C], 4), g("NoSpaceAfterCloseBrace", 19, [27, 26], [j], 16), g("NewLineBeforeCloseBraceInBlockContext", i, 19, [w], 8), g("SpaceAfterCloseBrace", 19, t(21), [j, G], 4), g("SpaceBetweenCloseBraceAndElse", 19, 91, [j], 4), g("SpaceBetweenCloseBraceAndWhile", 19, 115, [j], 4), g("NoSpaceBetweenEmptyBraceBrackets", 18, 19, [j, B], 16), g("SpaceAfterConditionalClosingParen", 21, 22, [R], 4), g("NoSpaceBetweenFunctionKeywordAndStar", 98, 41, [M], 16), g("SpaceAfterStarInGeneratorDeclaration", 41, 79, [M], 4), g("SpaceAfterFunctionInFuncDecl", 98, n, [O], 4), g("NewLineAfterOpenBraceInBlockContext", 18, n, [w], 8), g("SpaceAfterGetSetInMember", [137, 151], 79, [O], 4), g("NoSpaceBetweenYieldKeywordAndStar", 125, 41, [j, de], 16), g("SpaceBetweenYieldOrYieldStarAndOperand", [125, 41], n, [j, de], 4), g("NoSpaceBetweenReturnAndSemicolon", 105, 26, [j], 16), g("SpaceAfterCertainKeywords", [113, 109, 103, 89, 105, 112, 133], n, [j], 4), g("SpaceAfterLetConstInVariableDeclaration", [119, 85], n, [j, oe], 4), g("NoSpaceBeforeOpenParenInFuncCall", n, 20, [j, Q, X], 16), g("SpaceBeforeBinaryKeywordOperator", n, c, [j, C], 4), g("SpaceAfterBinaryKeywordOperator", c, n, [j, C], 4), g("SpaceAfterVoidOperator", 114, n, [j, _e], 4), g("SpaceBetweenAsyncAndOpenParen", 132, 20, [$, j], 4), g("SpaceBetweenAsyncAndFunctionKeyword", 132, [98, 79], [j], 4), g("NoSpaceBetweenTagAndTemplateString", [79, 21], [14, 15], [j], 16), g("SpaceBeforeJsxAttribute", n, 79, [te, j], 4), g("SpaceBeforeSlashInJsxOpeningElement", n, 43, [ne, j], 4), g("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement", 43, 31, [ne, j], 16), g("NoSpaceBeforeEqualInJsxAttribute", n, 63, [re, j], 16), g("NoSpaceAfterEqualInJsxAttribute", 63, n, [re, j], 16), g("NoSpaceAfterModuleImport", [142, 147], 20, [j], 16), g("SpaceAfterCertainTypeScriptKeywords", [126, 127, 84, 136, 88, 92, 93, 94, 137, 117, 100, 118, 142, 143, 121, 123, 122, 146, 151, 124, 154, 158, 141, 138], n, [j], 4), g("SpaceBeforeCertainTypeScriptKeywords", n, [94, 117, 158], [j], 4), g("SpaceAfterModuleName", 10, 18, [se], 4), g("SpaceBeforeArrow", n, 38, [j], 4), g("SpaceAfterArrow", 38, n, [j], 4), g("NoSpaceAfterEllipsis", 25, 79, [j], 16), g("NoSpaceAfterOptionalParameters", 57, [21, 27], [j, E], 16), g("NoSpaceBetweenEmptyInterfaceBraceBrackets", 18, 19, [j, ce], 16), g("NoSpaceBeforeOpenAngularBracket", l, 29, [j, V], 16), g("NoSpaceBetweenCloseParenAndAngularBracket", 21, 29, [j, V], 16), g("NoSpaceAfterOpenAngularBracket", 29, n, [j, V], 16), g("NoSpaceBeforeCloseAngularBracket", n, 31, [j, V], 16), g("NoSpaceAfterCloseAngularBracket", 31, [20, 22, 31, 27], [j, V, H], 16), g("SpaceBeforeAt", [21, 79], 59, [j], 4), g("NoSpaceAfterAt", 59, n, [j], 16), g("SpaceAfterDecorator", n, [126, 79, 93, 88, 84, 124, 123, 121, 122, 137, 151, 22, 41], [ae], 4), g("NoSpaceBeforeNonNullAssertionOperator", n, 53, [j, pe], 16), g("NoSpaceAfterNewKeywordOnConstructorSignature", 103, 20, [j, le], 16), g("SpaceLessThanAndNonJSXTypeAnnotation", 29, 29, [j], 4)], + c = [g("SpaceAfterConstructor", 135, 20, [v("insertSpaceAfterConstructor"), j], 4), g("NoSpaceAfterConstructor", 135, 20, [x("insertSpaceAfterConstructor"), j], 16), g("SpaceAfterComma", 27, n, [v("insertSpaceAfterCommaDelimiter"), j, z, Y, Z], 4), g("NoSpaceAfterComma", 27, n, [x("insertSpaceAfterCommaDelimiter"), j, z], 16), g("SpaceAfterAnonymousFunctionKeyword", [98, 41], 20, [v("insertSpaceAfterFunctionKeywordForAnonymousFunctions"), O], 4), g("NoSpaceAfterAnonymousFunctionKeyword", [98, 41], 20, [x("insertSpaceAfterFunctionKeywordForAnonymousFunctions"), O], 16), g("SpaceAfterKeywordInControl", o, 20, [v("insertSpaceAfterKeywordsInControlFlowStatements"), R], 4), g("NoSpaceAfterKeywordInControl", o, 20, [x("insertSpaceAfterKeywordsInControlFlowStatements"), R], 16), g("SpaceAfterOpenParen", 20, n, [v("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"), j], 4), g("SpaceBeforeCloseParen", n, 21, [v("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"), j], 4), g("SpaceBetweenOpenParens", 20, 20, [v("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"), j], 4), g("NoSpaceBetweenParens", 20, 21, [j], 16), g("NoSpaceAfterOpenParen", 20, n, [x("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"), j], 16), g("NoSpaceBeforeCloseParen", n, 21, [x("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"), j], 16), g("SpaceAfterOpenBracket", 22, n, [v("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"), j], 4), g("SpaceBeforeCloseBracket", n, 23, [v("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"), j], 4), g("NoSpaceBetweenBrackets", 22, 23, [j], 16), g("NoSpaceAfterOpenBracket", 22, n, [x("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"), j], 16), g("NoSpaceBeforeCloseBracket", n, 23, [x("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"), j], 16), g("SpaceAfterOpenBrace", 18, n, [S("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"), F], 4), g("SpaceBeforeCloseBrace", n, 19, [S("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"), F], 4), g("NoSpaceBetweenEmptyBraceBrackets", 18, 19, [j, B], 16), g("NoSpaceAfterOpenBrace", 18, n, [b("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"), j], 16), g("NoSpaceBeforeCloseBrace", n, 19, [b("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"), j], 16), g("SpaceBetweenEmptyBraceBrackets", 18, 19, [v("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")], 4), g("NoSpaceBetweenEmptyBraceBrackets", 18, 19, [b("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"), j], 16), g("SpaceAfterTemplateHeadAndMiddle", [15, 16], n, [v("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"), J], 4, 1), g("SpaceBeforeTemplateMiddleAndTail", n, [16, 17], [v("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"), j], 4), g("NoSpaceAfterTemplateHeadAndMiddle", [15, 16], n, [x("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"), J], 16, 1), g("NoSpaceBeforeTemplateMiddleAndTail", n, [16, 17], [x("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"), j], 16), g("SpaceAfterOpenBraceInJsxExpression", 18, n, [v("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"), j, U], 4), g("SpaceBeforeCloseBraceInJsxExpression", n, 19, [v("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"), j, U], 4), g("NoSpaceAfterOpenBraceInJsxExpression", 18, n, [x("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"), j, U], 16), g("NoSpaceBeforeCloseBraceInJsxExpression", n, 19, [x("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"), j, U], 16), g("SpaceAfterSemicolonInFor", 26, n, [v("insertSpaceAfterSemicolonInForStatements"), j, T], 4), g("NoSpaceAfterSemicolonInFor", 26, n, [x("insertSpaceAfterSemicolonInForStatements"), j, T], 16), g("SpaceBeforeBinaryOperator", n, s, [v("insertSpaceBeforeAndAfterBinaryOperators"), j, C], 4), g("SpaceAfterBinaryOperator", s, n, [v("insertSpaceBeforeAndAfterBinaryOperators"), j, C], 4), g("NoSpaceBeforeBinaryOperator", n, s, [x("insertSpaceBeforeAndAfterBinaryOperators"), j, C], 16), g("NoSpaceAfterBinaryOperator", s, n, [x("insertSpaceBeforeAndAfterBinaryOperators"), j, C], 16), g("SpaceBeforeOpenParenInFuncDecl", n, 20, [v("insertSpaceBeforeFunctionParenthesis"), j, O], 4), g("NoSpaceBeforeOpenParenInFuncDecl", n, 20, [x("insertSpaceBeforeFunctionParenthesis"), j, O], 16), g("NewLineBeforeOpenBraceInControl", d, 18, [v("placeOpenBraceOnNewLineForControlBlocks"), R, P], 8, 1), g("NewLineBeforeOpenBraceInFunction", u, 18, [v("placeOpenBraceOnNewLineForFunctions"), O, P], 8, 1), g("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock", _, 18, [v("placeOpenBraceOnNewLineForFunctions"), L, P], 8, 1), g("SpaceAfterTypeAssertion", 31, n, [v("insertSpaceAfterTypeAssertion"), j, ue], 4), g("NoSpaceAfterTypeAssertion", 31, n, [x("insertSpaceAfterTypeAssertion"), j, ue], 16), g("SpaceBeforeTypeAnnotation", n, [57, 58], [v("insertSpaceBeforeTypeAnnotation"), j, N], 4), g("NoSpaceBeforeTypeAnnotation", n, [57, 58], [x("insertSpaceBeforeTypeAnnotation"), j, N], 16), g("NoOptionalSemicolon", 26, a, [h("semicolons", p.SemicolonPreference.Remove), ge], 32), g("OptionalSemicolon", n, a, [h("semicolons", p.SemicolonPreference.Insert), me], 64)], + l = [g("NoSpaceBeforeSemicolon", n, 26, [j], 16), g("SpaceBeforeOpenBraceInControl", d, 18, [D("placeOpenBraceOnNewLineForControlBlocks"), R, K, A], 4, 1), g("SpaceBeforeOpenBraceInFunction", u, 18, [D("placeOpenBraceOnNewLineForFunctions"), O, I, K, A], 4, 1), g("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock", _, 18, [D("placeOpenBraceOnNewLineForFunctions"), L, K, A], 4, 1), g("NoSpaceBeforeComma", n, 27, [j], 16), g("NoSpaceBeforeOpenBracket", t(132, 82), 22, [j], 16), g("NoSpaceAfterCloseBracket", 23, n, [j, ie], 16), g("SpaceAfterSemicolon", 26, n, [j], 4), g("SpaceBetweenForAndAwaitKeyword", 97, 133, [j], 4), g("SpaceBetweenStatements", [21, 90, 91, 82], n, [j, z, q], 4), g("SpaceAfterTryCatchFinally", [111, 83, 96], 18, [j], 4)]; + return __spreadArray(__spreadArray(__spreadArray([], i, !0), c, !0), l, !0) + } + }(ts = ts || {}), ! function(f) { + var g, r, m, e, y, h, v; + + function b(e, t) { + return f.Debug.assert(e <= 162 && t <= 162, "Must compute formatting context from tokens"), e * v + t + }(g = f.formatting || (f.formatting = {})).getFormatContext = function(e, t) { + return { + options: e, + getRules: function() { + void 0 === r && (r = function(e) { + var c = function(e) { + for (var t = new Array(v * v), r = new Array(t.length), n = 0, i = e; n < i.length; n++) + for (var a = i[n], o = a.leftTokenRange.isSpecific && a.rightTokenRange.isSpecific, s = 0, c = a.leftTokenRange.tokens; s < c.length; s++) + for (var l = c[s], u = 0, _ = a.rightTokenRange.tokens; u < _.length; u++) { + var d = _[u], + d = b(l, d), + p = t[d]; + ! function(e, t, r, n, i) { + var r = 3 & t.action ? r ? m.StopRulesSpecific : m.StopRulesAny : t.context !== g.anyContext ? r ? m.ContextRulesSpecific : m.ContextRulesAny : r ? m.NoContextRulesSpecific : m.NoContextRulesAny, + a = n[i] || 0; + e.splice(function(e, t) { + for (var r = 0, n = 0; n <= t; n += y) r += e & h, e >>= y; + return r + }(a, r), 0, t), n[i] = function(e, t) { + var r = 1 + (e >> t & h); + return f.Debug.assert((r & h) == r, "Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."), e & ~(h << t) | r << t + }(a, r) + }(p = void 0 === p ? t[d] = [] : p, a.rule, o, r, d) + } + return t + }(e); + return function(t) { + var e = c[b(t.currentTokenSpan.kind, t.nextTokenSpan.kind)]; + if (e) { + for (var r = [], n = 0, i = 0, a = e; i < a.length; i++) { + var o = a[i], + s = ~ function(e) { + var t = 0; + 1 & e && (t |= 28); + 2 & e && (t |= 96); + 28 & e && (t |= 28); + 96 & e && (t |= 96); + return t + }(n); + o.action & s && f.every(o.context, function(e) { + return e(t) + }) && (r.push(o), n |= o.action) + } + if (r.length) return r + } + } + }(g.getAllRules())); + return r + }(), + host: t + } + }, y = 5, h = 31, v = 163, (e = m = m || {})[e.StopRulesSpecific = 0] = "StopRulesSpecific", e[e.StopRulesAny = +y] = "StopRulesAny", e[e.ContextRulesSpecific = 2 * y] = "ContextRulesSpecific", e[e.ContextRulesAny = 3 * y] = "ContextRulesAny", e[e.NoContextRulesSpecific = 4 * y] = "NoContextRulesSpecific", e[e.NoContextRulesAny = 5 * y] = "NoContextRulesAny" + }(ts = ts || {}), ! function(L) { + var R, a, o, s; + + function i(e, t, r) { + r = L.findPrecedingToken(e, r); + return r && r.kind === t && e === r.getEnd() ? r : void 0 + } + + function c(e) { + for (var t = e; t && t.parent && t.parent.end === e.end && ! function(e, t) { + switch (e.kind) { + case 260: + case 261: + return L.rangeContainsRange(e.members, t); + case 264: + var r = e.body; + return r && 265 === r.kind && L.rangeContainsRange(r.statements, t); + case 308: + case 238: + case 265: + return L.rangeContainsRange(e.statements, t); + case 295: + return L.rangeContainsRange(e.block.statements, t) + } + return + }(t.parent, t);) t = t.parent; + return t + } + + function u(n, i) { + return function e(t) { + var r = L.forEachChild(t, function(e) { + return L.startEndContainsRange(e.getStart(i), e.end, n) && e + }); + if (r) { + r = e(r); + if (r) return r + } + return t + }(i) + } + + function n(e, t, r, n) { + return e ? l({ + pos: L.getLineStartPositionForPosition(e.getStart(t), t), + end: e.end + }, t, r, n) : [] + } + + function l(a, o, s, c) { + var e, t, r, n, l = u(a, o); + return R.getFormattingScanner(o.text, o.languageVariant, (t = a, r = o, (n = (e = l).getStart(r)) === t.pos && e.end === t.end ? n : !(n = L.findPrecedingToken(t.pos, r)) || n.end >= t.pos ? e.pos : n.end), a.end, function(e) { + return _(a, l, R.SmartIndenter.getIndentationForNode(l, a, o, s.options), function(e, t, r) { + for (var n, i = -1; e;) { + var a = r.getLineAndCharacterOfPosition(e.getStart(r)).line; + if (-1 !== i && a !== i) break; + if (R.SmartIndenter.shouldIndentChildNode(t, e, n, r)) return t.indentSize; + i = a, e = (n = e).parent + } + return 0 + }(l, s.options, o), e, s, c, (e = o.parseDiagnostics, r = a, e.length && (n = e.filter(function(e) { + return L.rangeOverlapsWithStartEnd(r, e.start, e.start + e.length) + }).sort(function(e, t) { + return e.start - t.start + })).length ? (i = 0, function(e) { + for (;;) { + if (i >= n.length) return !1; + var t = n[i]; + if (e.end <= t.start) return !1; + if (L.startEndOverlapsWithStartEnd(e.pos, e.end, t.start, t.start + t.length)) return !0; + i++ + } + }) : t), o); + + function t() { + return !1 + } + var r, n, i + }) + } + + function _(T, t, e, r, h, n, i, v, C) { + var b, x, o, s, D, E = n.options, + u = n.getRules, + _ = n.host, + d = new R.FormattingContext(C, i, E), + S = -1, + p = []; + if (h.advance(), h.isOnToken() && (i = n = C.getLineAndCharacterOfPosition(t.getStart(C)).line, L.hasDecorators(t) && (i = C.getLineAndCharacterOfPosition(L.getNonDecoratorTokenPosOfNode(t, C)).line), function p(f, e, t, r, n, i) { + if (!L.rangeOverlapsWithStartEnd(T, f.getStart(C), f.getEnd())) return; + var a = A(f, t, n, i); + var g = e; + L.forEachChild(f, function(e) { + m(e, -1, f, a, t, r, !1) + }, function(e) { + s(e, f, t, a) + }); + for (; h.isOnToken() && h.getStartPos() < T.end;) { + var o = h.readTokenInfo(f); + if (o.token.end > Math.min(f.end, T.end)) break; + y(o, f, a, f) + } + + function m(e, t, r, n, i, a, o, s) { + if (L.Debug.assert(!L.nodeIsSynthesized(e)), !L.nodeIsMissing(e)) { + var c = e.getStart(C), + l = C.getLineAndCharacterOfPosition(c).line, + u = l, + _ = (L.hasDecorators(e) && (u = C.getLineAndCharacterOfPosition(L.getNonDecoratorTokenPosOfNode(e, C)).line), -1); + if (o && L.rangeContainsRange(T, r) && -1 !== (_ = k(c, e.end, i, T, t)) && (t = _), L.rangeOverlapsWithStartEnd(T, e.pos, e.end)) { + if (0 !== e.getFullWidth()) { + for (; h.isOnToken() && h.getStartPos() < T.end;) { + if ((d = h.readTokenInfo(f)).token.end > T.end) return t; + if (d.token.end > c) { + d.token.pos > c && h.skipToStartOf(e); + break + } + y(d, f, n, f) + } + if (h.isOnToken() && !(h.getStartPos() >= T.end)) { + if (L.isToken(e)) { + var d = h.readTokenInfo(e); + if (11 !== e.kind) return L.Debug.assert(d.token.end === e.end, "Token end is child end"), y(d, f, n, e), t + } + o = 167 === e.kind ? l : a, i = N(e, l, _, f, n, o); + p(e, g, l, u, i.indentation, i.delta), g = f, s && 206 === r.kind && -1 === t && (t = i.indentation) + } + } + } else e.end < T.pos && h.skipToEndOf(e) + } + return t + } + + function s(e, t, r, n) { + L.Debug.assert(L.isNodeArray(e)), L.Debug.assert(!L.nodeIsSynthesized(e)); + var i, a, o = B(t, e), + s = n, + c = r; + if (L.rangeOverlapsWithStartEnd(T, e.pos, e.end)) { + if (0 !== o) + for (; h.isOnToken() && h.getStartPos() < T.end;) { + if ((d = h.readTokenInfo(t)).token.end > e.pos) break; + d.token.kind === o ? (c = C.getLineAndCharacterOfPosition(d.token.pos).line, y(d, t, n, t), i = void 0, i = -1 !== S ? S : (a = L.getLineStartPositionForPosition(d.token.pos, C), R.SmartIndenter.findFirstNonWhitespaceColumn(a, d.token.pos, C, E)), s = A(t, r, i, E.indentSize)) : y(d, t, n, t) + } + for (var l = -1, u = 0; u < e.length; u++) { + var _ = e[u]; + l = m(_, l, f, s, c, c, !0, 0 === u) + } + var d, p = j(o); + 0 !== p && h.isOnToken() && h.getStartPos() < T.end && (27 === (d = h.readTokenInfo(t)).token.kind && (y(d, t, s, t), d = h.isOnToken() ? h.readTokenInfo(t) : void 0), d) && d.token.kind === p && L.rangeContainsRange(t, d.token) && y(d, t, s, t, !0) + } else e.end < T.pos && h.skipToEndOf(e) + } + + function y(e, t, r, n, i) { + L.Debug.assert(L.rangeContainsRange(t, e.token)); + var a, o, s, c = h.lastTrailingTriviaWasNewLine(), + l = !1, + u = (e.leadingTrivia && P(e.leadingTrivia, t, g, r), 0), + _ = L.rangeContainsRange(T, e.token), + d = C.getLineAndCharacterOfPosition(e.token.pos); + _ && (a = v(e.token), o = x, u = w(e.token, d, t, g, r), a || (l = 0 === u ? (a = o && C.getLineAndCharacterOfPosition(o.end).line, c && d.line !== a) : 1 === u)), e.trailingTrivia && (b = L.last(e.trailingTrivia).end, P(e.trailingTrivia, t, g, r)), l && (o = _ && !v(e.token) ? r.getIndentationForToken(d.line, e.token.kind, n, !!i) : -1, c = !0, e.leadingTrivia && (s = r.getIndentationForComment(e.token.kind, o, n), c = F(e.leadingTrivia, s, c, function(e) { + I(e.pos, s, !1) + })), -1 !== o) && c && (I(e.token.pos, o, 1 === u), D = d.line, S = o), h.advance(), g = t + } + }(t, t, n, i, e, r)), !h.isOnToken()) { + var n = R.SmartIndenter.nodeWillIndentChild(E, t, void 0, C, !1) ? e + E.indentSize : e, + i = h.getCurrentLeadingTrivia(); + if (i && (F(i, n, !1, function(e) { + w(e, C.getLineAndCharacterOfPosition(e.pos), t, t, void 0) + }), !1 !== E.trimTrailingWhitespace)) { + for (var r = i, a = x ? x.end : T.pos, c = 0, l = r; c < l.length; c++) { + var f = l[c]; + L.isComment(f.kind) && (a < f.pos && y(a, f.pos - 1, x), a = f.end + 1) + } + a < T.end && y(a, T.end, x) + } + } + return x && h.getStartPos() >= T.end && (e = h.isOnEOF() ? h.readEOFTokenRange() : h.isOnToken() ? h.readTokenInfo(t).token : void 0) && e.pos === b && (i = (null == (n = L.findPrecedingToken(e.end, C, t)) ? void 0 : n.parent) || o, g(e, C.getLineAndCharacterOfPosition(e.pos).line, i, x, s, o, i, void 0)), p; + + function k(e, t, r, n, i) { + if (L.rangeOverlapsWithStartEnd(n, e, t) || L.rangeContainsStartEnd(n, e, t)) { + if (-1 !== i) return i + } else { + var n = C.getLineAndCharacterOfPosition(e).line, + t = L.getLineStartPositionForPosition(e, C), + i = R.SmartIndenter.findFirstNonWhitespaceColumn(t, e, C, E); + if (n !== r || e === i) return i < (t = R.SmartIndenter.getBaseIndentation(E)) ? t : i + } + return -1 + } + + function N(e, t, r, n, i, a) { + var o = R.SmartIndenter.shouldIndentChildNode(E, e) ? E.indentSize : 0; + return a === t ? { + indentation: t === D ? S : i.getIndentation(), + delta: Math.min(E.indentSize, i.getDelta(e) + o) + } : -1 === r ? 20 === e.kind && t === D ? { + indentation: S, + delta: i.getDelta(e) + } : R.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(n, e, t, C) || R.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(n, e, t, C) || R.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(n, e, t, C) ? { + indentation: i.getIndentation(), + delta: o + } : { + indentation: i.getIndentation() + i.getDelta(e), + delta: o + } : { + indentation: r, + delta: o + } + } + + function A(i, a, o, r) { + return { + getIndentationForComment: function(e, t, r) { + switch (e) { + case 19: + case 23: + case 21: + return o + s(r) + } + return -1 !== t ? t : o + }, + getIndentationForToken: function(e, t, r, n) { + return !n && function(e, t, r) { + switch (t) { + case 18: + case 19: + case 21: + case 91: + case 115: + case 59: + return; + case 43: + case 31: + switch (r.kind) { + case 283: + case 284: + case 282: + return + } + break; + case 22: + case 23: + if (197 !== r.kind) return + } + return a !== e && (!L.hasDecorators(i) || t !== function(e) { + if (L.canHaveModifiers(e)) { + var t = L.find(e.modifiers, L.isModifier, L.findIndex(e.modifiers, L.isDecorator)); + if (t) return t.kind + } + switch (e.kind) { + case 260: + return 84; + case 261: + return 118; + case 259: + return 98; + case 263: + return 263; + case 174: + return 137; + case 175: + return 151; + case 171: + if (e.asteriskToken) return 41; + case 169: + case 166: + var r = L.getNameOfDeclaration(e); + if (r) return r.kind + } + }(i)) + }(e, t, r) ? o + s(r) : o + }, + getIndentation: function() { + return o + }, + getDelta: s, + recomputeIndentation: function(e, t) { + R.SmartIndenter.shouldIndentChildNode(E, t, i, C) && (o += e ? E.indentSize : -E.indentSize, r = R.SmartIndenter.shouldIndentChildNode(E, i) ? E.indentSize : 0) + } + }; + + function s(e) { + return R.SmartIndenter.nodeWillIndentChild(E, i, e, C, !0) ? r : 0 + } + } + + function F(e, t, r, n) { + for (var i = 0, a = e; i < a.length; i++) { + var o = a[i], + s = L.rangeContainsRange(T, o); + switch (o.kind) { + case 3: + if (s) { + u = l = c = void 0; + var c = o, + l = t, + u = !r, + _ = ((S = D = x = b = v = h = m = g = f = p = d = _ = y = void 0) === (y = void 0) && (y = !0), C.getLineAndCharacterOfPosition(c.pos).line), + d = C.getLineAndCharacterOfPosition(c.end).line; + if (_ === d) u || I(c.pos, l, !1); + else { + for (var p = [], f = c.pos, g = _; g < d; g++) { + var m = L.getEndLinePosition(g, C); + p.push({ + pos: f, + end: m + }), f = L.getStartPositionOfLine(g + 1, C) + } + if (y && p.push({ + pos: f, + end: c.end + }), 0 !== p.length) + for (var y = L.getStartPositionOfLine(_, C), h = R.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(y, p[0].pos, C, E), c = 0, v = (u && (c = 1, _++), l - h.column), b = c; b < p.length; b++, _++) { + var x = L.getStartPositionOfLine(_, C), + D = 0 === b ? h : R.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(p[b].pos, p[b].end, C, E), + S = D.column + v; + 0 < S ? (S = J(S, E), M(x, D.character, S)) : O(x, D.character) + } + } + } + r = !1; + break; + case 2: + r && s && n(o), r = !1; + break; + case 4: + r = !0 + } + } + return r + } + + function P(e, t, r, n) { + for (var i = 0, a = e; i < a.length; i++) { + var o = a[i]; + L.isComment(o.kind) && L.rangeContainsRange(T, o) && w(o, C.getLineAndCharacterOfPosition(o.pos), t, r, n) + } + } + + function w(e, t, r, n, i) { + var a = 0; + return v(e) || (x ? a = g(e, t.line, r, x, s, o, n, i) : m(C.getLineAndCharacterOfPosition(T.pos).line, t.line)), b = (x = e).end, o = r, s = t.line, a + } + + function g(t, r, n, i, a, e, o, s) { + d.updateContext(i, e, t, n, o); + var e = u(d), + c = !1 !== d.options.trimTrailingWhitespace, + l = 0; + return e ? L.forEachRight(e, function(e) { + if (l = function(e, t, r, n, i) { + var a = i !== r; + switch (e.action) { + case 1: + return 0; + case 16: + if (t.end !== n.pos) return O(t.end, n.pos - t.end), a ? 2 : 0; + break; + case 32: + O(t.pos, t.end - t.pos); + break; + case 8: + if (1 !== e.flags && r !== i) return 0; + if (1 != i - r) return M(t.end, n.pos - t.end, L.getNewLineOrDefaultFromHost(_, E)), a ? 0 : 1; + break; + case 4: + if (1 !== e.flags && r !== i) return 0; + if (1 != n.pos - t.end || 32 !== C.text.charCodeAt(t.end)) return M(t.end, n.pos - t.end, " "), a ? 2 : 0; + break; + case 64: + ! function(e, t) { + t && p.push(L.createTextChangeFromStartLength(e, 0, t)) + }(t.end, ";") + } + return 0 + }(e, i, a, t, r), s) switch (l) { + case 2: + n.getStart(C) === t.pos && s.recomputeIndentation(!1, o); + break; + case 1: + n.getStart(C) === t.pos && s.recomputeIndentation(!0, o); + break; + default: + L.Debug.assert(0 === l) + } + c = c && !(16 & e.action) && 1 !== e.flags + }) : c = c && 1 !== t.kind, r !== a && c && m(a, r, i), l + } + + function I(e, t, r) { + var n = J(t, E); + r ? M(e, 0, n) : (r = C.getLineAndCharacterOfPosition(e), t === function(e, t) { + for (var r = 0, n = 0; n < t; n++) 9 === C.text.charCodeAt(e + n) ? r += E.tabSize - r % E.tabSize : r++; + return r + }(e = L.getStartPositionOfLine(r.line, C), r.character) && n === C.text.substr(e, n.length) || M(e, r.character, n)) + } + + function m(e, t, r) { + for (var n = e; n < t; n++) { + var i, a = L.getStartPositionOfLine(n, C), + o = L.getEndLinePosition(n, C); + r && (L.isComment(r.kind) || L.isStringOrRegularExpressionOrTemplateLiteral(r.kind)) && r.pos <= o && r.end > o || -1 !== (i = function(e, t) { + var r = t; + for (; e <= r && L.isWhiteSpaceSingleLine(C.text.charCodeAt(r));) r--; + return r === t ? -1 : r + 1 + }(a, o)) && (L.Debug.assert(i === a || !L.isWhiteSpaceSingleLine(C.text.charCodeAt(i - 1))), O(i, o + 1 - i)) + } + } + + function y(e, t, r) { + m(C.getLineAndCharacterOfPosition(e).line, C.getLineAndCharacterOfPosition(t).line + 1, r) + } + + function O(e, t) { + t && p.push(L.createTextChangeFromStartLength(e, t, "")) + } + + function M(e, t, r) { + (t || r) && p.push(L.createTextChangeFromStartLength(e, t, r)) + } + } + + function B(e, t) { + switch (e.kind) { + case 173: + case 259: + case 215: + case 171: + case 170: + case 216: + case 176: + case 177: + case 181: + case 182: + case 174: + case 175: + if (e.typeParameters === t) return 29; + if (e.parameters === t) return 20; + break; + case 210: + case 211: + if (e.typeArguments === t) return 29; + if (e.arguments === t) return 20; + break; + case 260: + case 228: + case 261: + case 262: + if (e.typeParameters === t) return 29; + break; + case 180: + case 212: + case 183: + case 230: + case 202: + if (e.typeArguments === t) return 29; + break; + case 184: + return 18 + } + return 0 + } + + function j(e) { + switch (e) { + case 20: + return 21; + case 29: + return 31; + case 18: + return 19 + } + return 0 + } + + function J(e, t) { + var r, n, i; + return (!a || a.tabSize !== t.tabSize || a.indentSize !== t.indentSize) && (a = { + tabSize: t.tabSize, + indentSize: t.indentSize + }, o = s = void 0), t.convertTabsToSpaces ? (i = void 0, r = Math.floor(e / t.indentSize), n = e % t.indentSize, void 0 === (s = s || [])[r] ? (i = L.repeatString(" ", t.indentSize * r), s[r] = i) : i = s[r], n ? i + L.repeatString(" ", n) : i) : (n = e - (r = Math.floor(e / t.tabSize)) * t.tabSize, (i = void 0) === (o = o || [])[r] ? o[r] = i = L.repeatString("\t", r) : i = o[r], n ? i + L.repeatString(" ", n) : i) + }(R = L.formatting || (L.formatting = {})).createTextRangeWithKind = function(e, t, r) { + return e = { + pos: e, + end: t, + kind: r + }, L.Debug.isDebugging && Object.defineProperty(e, "__debugKind", { + get: function() { + return L.Debug.formatSyntaxKind(r) + } + }), e + }, R.formatOnEnter = function(e, t, r) { + if (0 === (e = t.getLineAndCharacterOfPosition(e).line)) return []; + for (var n = L.getEndLinePosition(e, t); L.isWhiteSpaceSingleLine(t.text.charCodeAt(n));) n--; + return L.isLineBreak(t.text.charCodeAt(n)) && n--, l({ + pos: L.getStartPositionOfLine(e - 1, t), + end: n + 1 + }, t, r, 2) + }, R.formatOnSemicolon = function(e, t, r) { + return n(c(i(e, 26, t)), t, r, 3) + }, R.formatOnOpeningCurly = function(e, t, r) { + var n = i(e, 18, t); + return n ? (n = c(n.parent), l({ + pos: L.getLineStartPositionForPosition(n.getStart(t), t), + end: e + }, t, r, 4)) : [] + }, R.formatOnClosingCurly = function(e, t, r) { + return n(c(i(e, 19, t)), t, r, 5) + }, R.formatDocument = function(e, t) { + return l({ + pos: 0, + end: e.text.length + }, e, t, 0) + }, R.formatSelection = function(e, t, r, n) { + return l({ + pos: L.getLineStartPositionForPosition(e, r), + end: t + }, r, n, 1) + }, R.formatNodeGivenIndentation = function(t, r, e, n, i, a) { + var o = { + pos: t.pos, + end: t.end + }; + return R.getFormattingScanner(r.text, e, o.pos, o.end, function(e) { + return _(o, t, n, i, e, a, 1, function(e) { + return !1 + }, r) + }) + }, R.getRangeOfEnclosingComment = function(t, r, e, n) { + void 0 === n && (n = L.getTokenAtPosition(t, r)); + var i = L.findAncestor(n, L.isJSDoc), + i = (n = i ? i.parent : n).getStart(t); + if (!(i <= r && r < n.getEnd())) return i = (e = null === e ? void 0 : void 0 === e ? L.findPrecedingToken(r, t) : e) && L.getTrailingCommentRanges(t.text, e.end), e = L.getLeadingCommentRangesOfNode(n, t), (n = L.concatenate(i, e)) && L.find(n, function(e) { + return L.rangeContainsPositionExclusive(e, r) || r === e.end && (2 === e.kind || r === t.getFullWidth()) + }) + }, R.getIndentationString = J + }(ts = ts || {}), ! function(C) { + var E, e; + + function k(e) { + return e.baseIndentSize || 0 + } + + function N(e, t, r, n, i, a, o) { + for (var s, c, l, u, _, d = e.parent; d;) { + var p = !0, + f = (r && (p = (f = e.getStart(i)) < r.pos || f > r.end), function(e, t, r) { + t = v(t, r), t = t ? t.pos : e.getStart(r); + return r.getLineAndCharacterOfPosition(t) + }(d, e, i)), + g = f.line === t.line || h(d, e, t.line, i); + if (p) { + p = null == (p = v(e, i)) ? void 0 : p[0], p = w(e, i, o, !!p && A(p, i).line > f.line); + if (-1 !== p) return p + n; + if (m = e, s = d, c = t, l = g, u = i, _ = o, -1 !== (p = !C.isDeclaration(m) && !C.isStatementButNotDeclaration(m) || 308 !== s.kind && l ? -1 : b(c, u, _))) return p + n + } + L(o, d, e, i, a) && !g && (n += o.indentSize); + var m = y(d, e, t.line, i), + d = (e = d).parent; + t = m ? i.getLineAndCharacterOfPosition(e.getStart(i)) : f + } + return n + k(o) + } + + function A(e, t) { + return t.getLineAndCharacterOfPosition(e.getStart(t)) + } + + function y(e, t, r, n) { + return !(!C.isCallExpression(e) || !C.contains(e.arguments, t)) && (t = e.expression.getEnd(), C.getLineAndCharacterOfPosition(n, t).line === r) + } + + function h(e, t, r, n) { + return 242 === e.kind && e.elseStatement === t && (t = C.findChildOfKind(e, 91, n), C.Debug.assert(void 0 !== t), A(t, n).line === r) + } + + function v(e, t) { + return e.parent && F(e.getStart(t), e.getEnd(), e.parent, t) + } + + function F(t, r, n, i) { + switch (n.kind) { + case 180: + return e(n.typeArguments); + case 207: + return e(n.properties); + case 206: + return e(n.elements); + case 184: + return e(n.members); + case 259: + case 215: + case 216: + case 171: + case 170: + case 176: + case 173: + case 182: + case 177: + return e(n.typeParameters) || e(n.parameters); + case 174: + return e(n.parameters); + case 260: + case 228: + case 261: + case 262: + case 347: + return e(n.typeParameters); + case 211: + case 210: + return e(n.typeArguments) || e(n.arguments); + case 258: + return e(n.declarations); + case 272: + case 276: + return e(n.elements); + case 203: + case 204: + return e(n.elements) + } + + function e(e) { + return e && C.rangeContainsStartEnd(function(e, t, r) { + for (var n = e.getChildren(r), i = 1; i < n.length - 1; i++) + if (n[i].pos === t.pos && n[i].end === t.end) return { + pos: n[i - 1].end, + end: n[i + 1].getStart(r) + }; + return t + }(n, e, i), t, r) ? e : void 0 + } + } + + function P(e, t, r) { + return e ? b(t.getLineAndCharacterOfPosition(e.pos), t, r) : -1 + } + + function w(e, t, r, n) { + if (!e.parent || 258 !== e.parent.kind) { + var i = v(e, t); + if (i) { + e = i.indexOf(e); + if (-1 !== e) { + e = I(i, e, t, r); + if (-1 !== e) return e + } + return P(i, t, r) + (n ? r.indentSize : 0) + } + } + return -1 + } + + function I(e, t, r, n) { + C.Debug.assert(0 <= t && t < e.length); + for (var i = A(e[t], r), a = t - 1; 0 <= a; a--) + if (27 !== e[a].kind) { + if (r.getLineAndCharacterOfPosition(e[a].end).line !== i.line) return b(i, r, n); + i = A(e[a], r) + } + return -1 + } + + function b(e, t, r) { + var n = t.getPositionOfLineAndCharacter(e.line, 0); + return M(n, n + e.character, t, r) + } + + function O(e, t, r, n) { + for (var i = 0, a = 0, o = e; o < t; o++) { + var s = r.text.charCodeAt(o); + if (!C.isWhiteSpaceSingleLine(s)) break; + 9 === s ? a += n.tabSize + a % n.tabSize : a++, i++ + } + return { + column: a, + character: i + } + } + + function M(e, t, r, n) { + return O(e, t, r, n).column + } + + function a(e, t, r, n, i) { + var a = r ? r.kind : 0; + switch (t.kind) { + case 241: + case 260: + case 228: + case 261: + case 263: + case 262: + case 206: + case 238: + case 265: + case 207: + case 184: + case 197: + case 186: + case 266: + case 293: + case 292: + case 214: + case 208: + case 210: + case 211: + case 240: + case 274: + case 250: + case 224: + case 204: + case 203: + case 283: + case 286: + case 282: + case 291: + case 170: + case 176: + case 177: + case 166: + case 181: + case 182: + case 193: + case 212: + case 220: + case 276: + case 272: + case 278: + case 273: + case 169: + return !0; + case 257: + case 299: + case 223: + if (!e.indentMultiLineObjectLiteralBeginningOnBlankLine && n && 207 === a) return o(n, r); + if (223 === t.kind && n && r && 281 === a) return n.getLineAndCharacterOfPosition(C.skipTrivia(n.text, t.pos)).line !== n.getLineAndCharacterOfPosition(C.skipTrivia(n.text, r.pos)).line; + if (223 !== t.kind) return !0; + break; + case 243: + case 244: + case 246: + case 247: + case 245: + case 242: + case 259: + case 215: + case 171: + case 173: + case 174: + case 175: + return 238 !== a; + case 216: + return n && 214 === a ? o(n, r) : 238 !== a; + case 275: + return 276 !== a; + case 269: + return 270 !== a || !!r.namedBindings && 272 !== r.namedBindings.kind; + case 281: + return 284 !== a; + case 285: + return 287 !== a; + case 190: + case 189: + if (184 === a || 186 === a) return !1 + } + return i + } + + function L(e, t, r, n, i) { + return void 0 === i && (i = !1), a(e, t, r, n, !1) && !(i && r && function(e, t) { + switch (e) { + case 250: + case 254: + case 248: + case 249: + return 238 !== t.kind; + default: + return + } + }(r.kind, t)) + } + + function o(e, t) { + var r = C.skipTrivia(e.text, t.pos); + return e.getLineAndCharacterOfPosition(r).line === e.getLineAndCharacterOfPosition(t.end).line + } + E = C.formatting || (C.formatting = {}), (e = E.SmartIndenter || (E.SmartIndenter = {})).getIndentation = function(e, t, r, n) { + if (void 0 === n && (n = !1), e > t.text.length) return k(r); + if (r.indentStyle === C.IndentStyle.None) return 0; + var i = C.findPrecedingToken(e, t, void 0, !0); + if ((l = E.getRangeOfEnclosingComment(t, e, i || null)) && 3 === l.kind) return c = t, f = e, _ = r, l = l, s = C.getLineAndCharacterOfPosition(c, f).line - 1, l = C.getLineAndCharacterOfPosition(c, l.pos).line, C.Debug.assert(0 <= l), s <= l ? M(C.getStartPositionOfLine(l, c), f, c, _) : (l = C.getStartPositionOfLine(s, c), s = O(l, f, c, _), f = s.column, _ = s.character, 0 !== f && 42 === c.text.charCodeAt(l + _) ? f - 1 : f); + if (!i) return k(r); + if (C.isStringOrRegularExpressionOrTemplateLiteral(i.kind) && i.getStart(t) <= e && e < i.end) return 0; + var a, o, s = t.getLineAndCharacterOfPosition(e).line, + c = C.getTokenAtPosition(t, e), + l = 18 === c.kind && 207 === c.parent.kind; + if (r.indentStyle === C.IndentStyle.Block || l) { + for (var u = t, _ = r, d = e; 0 < d;) { + var p = u.text.charCodeAt(d); + if (!C.isWhiteSpaceLike(p)) break; + d-- + } + return M(C.getLineStartPositionForPosition(d, u), d, u, _) + } + if (27 === i.kind && 223 !== i.parent.kind) { + var f = function(e, t, r) { + e = C.findListItemInfo(e); + return e && 0 < e.listItemIndex ? I(e.list.getChildren(), e.listItemIndex - 1, t, r) : -1 + }(i, t, r); + if (-1 !== f) return f + } + if (l = e, o = i.parent, a = t, (l = o && F(l, l, o, a)) && !C.rangeContainsRange(l, i)) return o = -1 !== [215, 216].indexOf(c.parent.kind) ? 0 : r.indentSize, P(l, t, r) + o; + for (var g, m, y = t, h = e, v = i, b = s, x = n, D = r, S = v; S;) { + if (C.positionBelongsToNode(S, h, y) && L(D, S, g, y, !0)) return T = A(S, y), m = function(e, t, r, n) { + e = C.findNextToken(e, t, n); + if (e) { + if (18 === e.kind) return 1; + if (19 === e.kind) return t = A(e, n).line, r === t ? 2 : 0 + } + return 0 + }(v, S, b, y), m = 0 !== m ? x && 2 === m ? D.indentSize : 0 : b !== T.line ? D.indentSize : 0, N(S, T, void 0, m, y, !0, D); + var T = w(S, y, D, !0); + if (-1 !== T) return T; + S = (g = S).parent + } + return k(D) + }, e.getIndentationForNode = function(e, t, r, n) { + var i = r.getLineAndCharacterOfPosition(e.getStart(r)); + return N(e, i, t, 0, r, !1, n) + }, e.getBaseIndentation = k, e.isArgumentAndStartLineOverlapsExpressionBeingCalled = y, e.childStartsOnTheSameLineWithElseInIfStatement = h, e.childIsUnindentedBranchOfConditionalExpression = function(e, t, r, n) { + var i; + return !(!C.isConditionalExpression(e) || t !== e.whenTrue && t !== e.whenFalse) && (i = C.getLineAndCharacterOfPosition(n, e.condition.end).line, t === e.whenTrue ? r === i : (t = A(e.whenTrue, n).line, n = C.getLineAndCharacterOfPosition(n, e.whenTrue.end).line, i === t && n === r)) + }, e.argumentStartsOnSameLineAsPreviousArgument = function(e, t, r, n) { + if (C.isCallOrNewExpression(e)) { + if (!e.arguments) return !1; + var i = C.find(e.arguments, function(e) { + return e.pos === t.pos + }); + if (!i) return !1; + i = e.arguments.indexOf(i); + if (0 === i) return !1; + e = e.arguments[i - 1]; + if (r === C.getLineAndCharacterOfPosition(n, e.getEnd()).line) return !0 + } + return !1 + }, e.getContainingList = v, e.findFirstNonWhitespaceCharacterAndColumn = O, e.findFirstNonWhitespaceColumn = M, e.nodeWillIndentChild = a, e.shouldIndentChildNode = L + }(ts = ts || {}), ! function(y) { + var e, g, m, s, c, t, a, o, r; + + function l(e) { + e = e.__pos; + return y.Debug.assert("number" == typeof e), e + } + + function u(e, t) { + y.Debug.assert("number" == typeof t), e.__pos = t + } + + function _(e) { + e = e.__end; + return y.Debug.assert("number" == typeof e), e + } + + function d(e, t) { + y.Debug.assert("number" == typeof t), e.__end = t + } + + function p(e, t) { + return y.skipTrivia(e, t, !1, !0) + } + + function f(e, t, r, n) { + return { + pos: h(e, t, n), + end: b(e, r, n) + } + } + + function h(e, t, r, n) { + void 0 === n && (n = !1); + var r = r.leadingTriviaOption; + if (r === g.Exclude) return t.getStart(e); + if (r === g.StartLine) return a = t.getStart(e), i = y.getLineStartPositionForPosition(a, e), y.rangeContainsPosition(t, i) ? i : a; + if (r === g.JSDoc) { + var i = y.getJSDocCommentRanges(t, e.text); + if (null != i && i.length) return y.getLineStartPositionForPosition(i[0].pos, e) + } + var a = t.getFullStart(), + i = t.getStart(e); + if (a === i) return i; + t = y.getLineStartPositionForPosition(a, e); + if (y.getLineStartPositionForPosition(i, e) === t) return r === g.IncludeAll ? a : i; + if (n) { + n = (null == (r = y.getLeadingCommentRanges(e.text, a)) ? void 0 : r[0]) || (null == (i = y.getTrailingCommentRanges(e.text, a)) ? void 0 : i[0]); + if (n) return y.skipTrivia(e.text, n.end, !0, !0) + } + r = 0 < a ? 1 : 0, i = y.getStartPositionOfLine(y.getLineOfLocalPosition(e, t) + r, e), i = p(e.text, i); + return y.getStartPositionOfLine(y.getLineOfLocalPosition(e, i), e) + } + + function v(e, t, r) { + var n = t.end; + if (r.trailingTriviaOption === m.Include) { + r = y.getTrailingCommentRanges(e.text, n); + if (r) + for (var i = y.getLineOfLocalPosition(e, t.end), a = 0, o = r; a < o.length; a++) { + var s = o[a]; + if (2 === s.kind || y.getLineOfLocalPosition(e, s.pos) > i) break; + if (i < y.getLineOfLocalPosition(e, s.end)) return y.skipTrivia(e.text, s.end, !0, !0) + } + } + } + + function b(e, t, r) { + var n, i = t.end, + a = r.trailingTriviaOption; + return a === m.Exclude ? i : a === m.ExcludeWhitespace ? (null == (n = null == (n = y.concatenate(y.getTrailingCommentRanges(e.text, i), y.getLeadingCommentRanges(e.text, i))) ? void 0 : n[n.length - 1]) ? void 0 : n.end) || i : v(e, t, r) || ((n = y.skipTrivia(e.text, i, !0)) === i || a !== m.Include && !y.isLineBreak(e.text.charCodeAt(n - 1)) ? i : n) + } + + function x(e, t) { + return t && e.parent && (27 === t.kind || 26 === t.kind && 207 === e.parent.kind) + } + + function n(e, t) { + this.newLineCharacter = e, this.formatContext = t, this.changes = [], this.newFiles = [], this.classesWithNodesInsertedAtStart = new y.Map, this.deletedNodes = [] + } + + function D(e, t) { + return y.skipTrivia(e.text, h(e, t, { + leadingTriviaOption: g.IncludeAll + }), !1, !0) + } + + function S(e) { + return y.isObjectLiteralExpression(e) ? e.properties : e.members + } + + function T(t, e, r, n, i) { + r = r.map(function(e) { + return 4 === e ? "" : C(e, t, n).text + }).join(n), e = y.createSourceFile("any file name", r, 99, !0, e); + return E(r, y.formatting.formatDocument(e, i)) + n + } + + function C(e, t, r) { + var n = N(r), + r = y.getNewLineKind(r); + return y.createPrinter({ + newLine: r, + neverAsciiEscape: !0, + preserveSourceNewlines: !0, + terminateUnterminatedLiterals: !0 + }, n).writeNode(4, e, t, n), { + text: n.getText(), + node: i(e) + } + } + + function E(e, t) { + for (var r = t.length - 1; 0 <= r; r--) { + var n = t[r], + i = n.span, + n = n.newText; + e = "".concat(e.substring(0, i.start)).concat(n).concat(e.substring(y.textSpanEnd(i))) + } + return e + } + + function i(e) { + var t = y.visitEachChild(e, i, r, k, i), + t = y.nodeIsSynthesized(t) ? t : Object.create(t); + return y.setTextRangePosEnd(t, l(e), _(e)), t + } + + function k(e, t, r, n, i) { + t = y.visitNodes(e, t, r, n, i); + return t && (r = t === e ? y.factory.createNodeArray(t.slice(0)) : t, y.setTextRangePosEnd(r, l(e), _(e)), r) + } + + function N(e) { + var n = 0, + i = y.createTextWriter(e); + + function r(e, t) { + if (t || (t = e, y.skipTrivia(t, 0) !== t.length)) { + n = i.getTextPos(); + for (var r = 0; y.isWhiteSpaceLike(e.charCodeAt(e.length - r - 1));) r++; + n -= r + } + } + return { + onBeforeEmitNode: function(e) { + e && u(e, n) + }, + onAfterEmitNode: function(e) { + e && d(e, n) + }, + onBeforeEmitNodeArray: function(e) { + e && u(e, n) + }, + onAfterEmitNodeArray: function(e) { + e && d(e, n) + }, + onBeforeEmitToken: function(e) { + e && u(e, n) + }, + onAfterEmitToken: function(e) { + e && d(e, n) + }, + write: function(e) { + i.write(e), r(e, !1) + }, + writeComment: function(e) { + i.writeComment(e) + }, + writeKeyword: function(e) { + i.writeKeyword(e), r(e, !1) + }, + writeOperator: function(e) { + i.writeOperator(e), r(e, !1) + }, + writePunctuation: function(e) { + i.writePunctuation(e), r(e, !1) + }, + writeTrailingSemicolon: function(e) { + i.writeTrailingSemicolon(e), r(e, !1) + }, + writeParameter: function(e) { + i.writeParameter(e), r(e, !1) + }, + writeProperty: function(e) { + i.writeProperty(e), r(e, !1) + }, + writeSpace: function(e) { + i.writeSpace(e), r(e, !1) + }, + writeStringLiteral: function(e) { + i.writeStringLiteral(e), r(e, !1) + }, + writeSymbol: function(e, t) { + i.writeSymbol(e, t), r(e, !1) + }, + writeLine: function(e) { + i.writeLine(e) + }, + increaseIndent: function() { + i.increaseIndent() + }, + decreaseIndent: function() { + i.decreaseIndent() + }, + getText: function() { + return i.getText() + }, + rawWrite: function(e) { + i.rawWrite(e), r(e, !1) + }, + writeLiteral: function(e) { + i.writeLiteral(e), r(e, !0) + }, + getTextPos: function() { + return i.getTextPos() + }, + getLine: function() { + return i.getLine() + }, + getColumn: function() { + return i.getColumn() + }, + getIndent: function() { + return i.getIndent() + }, + isAtStartOfLine: function() { + return i.isAtStartOfLine() + }, + hasTrailingComment: function() { + return i.hasTrailingComment() + }, + hasTrailingWhitespace: function() { + return i.hasTrailingWhitespace() + }, + clear: function() { + i.clear(), n = 0 + } + } + } + + function A(e, t) { + return !(y.isInComment(e, t) || y.isInString(e, t) || y.isInTemplateString(e, t) || y.isInJSXText(e, t)) + } + + function F(e, t, r) { + var n; + r.parent.name ? (n = y.Debug.checkDefined(y.getTokenAtPosition(t, r.pos - 1)), e.deleteRange(t, { + pos: n.getStart(t), + end: r.end + })) : P(e, t, y.getAncestor(r, 269)) + } + + function P(e, t, r, n) { + var i = h(t, r, n = void 0 === n ? { + leadingTriviaOption: g.IncludeAll + } : n), + r = b(t, r, n); + e.deleteRange(t, { + pos: i, + end: r + }) + } + + function w(e, t, r, n) { + var i = y.Debug.checkDefined(y.formatting.SmartIndenter.getContainingList(n, r)), + a = y.indexOfNode(i, n); + y.Debug.assert(-1 !== a), 1 === i.length ? P(e, r, n) : (y.Debug.assert(!t.has(n), "Deleting a node twice"), t.add(n), e.deleteRange(r, { + pos: D(r, n), + end: a === i.length - 1 ? b(r, n, {}) : function(e, t, r, n) { + var i = D(e, n); + if (void 0 !== r && !y.positionsAreOnSameLine(b(e, t, {}), i, e)) { + n = y.findPrecedingToken(n.getStart(e), e); + if (x(t, n)) { + t = y.findPrecedingToken(t.getStart(e), e); + if (x(r, t)) { + r = y.skipTrivia(e.text, n.getEnd(), !0, !0); + if (y.positionsAreOnSameLine(t.getStart(e), n.getStart(e), e)) return y.isLineBreak(e.text.charCodeAt(r - 1)) ? r - 1 : r; + if (y.isLineBreak(e.text.charCodeAt(r))) return r + } + } + } + return i + }(r, n, i[a - 1], i[a + 1]) + })) + } + e = y.textChanges || (y.textChanges = {}), (t = g = e.LeadingTriviaOption || (e.LeadingTriviaOption = {}))[t.Exclude = 0] = "Exclude", t[t.IncludeAll = 1] = "IncludeAll", t[t.JSDoc = 2] = "JSDoc", t[t.StartLine = 3] = "StartLine", (t = m = e.TrailingTriviaOption || (e.TrailingTriviaOption = {}))[t.Exclude = 0] = "Exclude", t[t.ExcludeWhitespace = 1] = "ExcludeWhitespace", t[t.Include = 2] = "Include", a = { + leadingTriviaOption: g.Exclude, + trailingTriviaOption: m.Exclude + }, (t = s = s || {})[t.Remove = 0] = "Remove", t[t.ReplaceWithSingleNode = 1] = "ReplaceWithSingleNode", t[t.ReplaceWithMultipleNodes = 2] = "ReplaceWithMultipleNodes", t[t.Text = 3] = "Text", e.isThisTypeAnnotatable = function(e) { + return y.isFunctionExpression(e) || y.isFunctionDeclaration(e) + }, n.fromContext = function(e) { + return new n(y.getNewLineOrDefaultFromHost(e.host, e.formatContext.options), e.formatContext) + }, n.with = function(e, t) { + e = n.fromContext(e); + return t(e), e.getChanges() + }, n.prototype.pushRaw = function(e, t) { + y.Debug.assertEqual(e.fileName, t.fileName); + for (var r = 0, n = t.textChanges; r < n.length; r++) { + var i = n[r]; + this.changes.push({ + kind: s.Text, + sourceFile: e, + text: i.newText, + range: y.createTextRangeFromSpan(i.span) + }) + } + }, n.prototype.deleteRange = function(e, t) { + this.changes.push({ + kind: s.Remove, + sourceFile: e, + range: t + }) + }, n.prototype.delete = function(e, t) { + this.deletedNodes.push({ + sourceFile: e, + node: t + }) + }, n.prototype.deleteNode = function(e, t, r) { + void 0 === r && (r = { + leadingTriviaOption: g.IncludeAll + }), this.deleteRange(e, f(e, t, t, r)) + }, n.prototype.deleteNodes = function(e, t, r, n) { + void 0 === r && (r = { + leadingTriviaOption: g.IncludeAll + }); + for (var i = 0, a = t; i < a.length; i++) { + var o = a[i], + s = h(e, o, r, n), + c = b(e, o, r); + this.deleteRange(e, { + pos: s, + end: c + }), n = !!v(e, o, r) + } + }, n.prototype.deleteModifier = function(e, t) { + this.deleteRange(e, { + pos: t.getStart(e), + end: y.skipTrivia(e.text, t.end, !0) + }) + }, n.prototype.deleteNodeRange = function(e, t, r, n) { + t = h(e, t, n = void 0 === n ? { + leadingTriviaOption: g.IncludeAll + } : n), r = b(e, r, n); + this.deleteRange(e, { + pos: t, + end: r + }) + }, n.prototype.deleteNodeRangeExcludingEnd = function(e, t, r, n) { + t = h(e, t, n = void 0 === n ? { + leadingTriviaOption: g.IncludeAll + } : n), r = void 0 === r ? e.text.length : h(e, r, n); + this.deleteRange(e, { + pos: t, + end: r + }) + }, n.prototype.replaceRange = function(e, t, r, n) { + this.changes.push({ + kind: s.ReplaceWithSingleNode, + sourceFile: e, + range: t, + options: n = void 0 === n ? {} : n, + node: r + }) + }, n.prototype.replaceNode = function(e, t, r, n) { + this.replaceRange(e, f(e, t, t, n = void 0 === n ? a : n), r, n) + }, n.prototype.replaceNodeRange = function(e, t, r, n, i) { + this.replaceRange(e, f(e, t, r, i = void 0 === i ? a : i), n, i) + }, n.prototype.replaceRangeWithNodes = function(e, t, r, n) { + this.changes.push({ + kind: s.ReplaceWithMultipleNodes, + sourceFile: e, + range: t, + options: n = void 0 === n ? {} : n, + nodes: r + }) + }, n.prototype.replaceNodeWithNodes = function(e, t, r, n) { + this.replaceRangeWithNodes(e, f(e, t, t, n = void 0 === n ? a : n), r, n) + }, n.prototype.replaceNodeWithText = function(e, t, r) { + this.replaceRangeWithText(e, f(e, t, t, a), r) + }, n.prototype.replaceNodeRangeWithNodes = function(e, t, r, n, i) { + this.replaceRangeWithNodes(e, f(e, t, r, i = void 0 === i ? a : i), n, i) + }, n.prototype.nodeHasTrailingComment = function(e, t, r) { + return !!v(e, t, r = void 0 === r ? a : r) + }, n.prototype.nextCommaToken = function(e, t) { + t = y.findNextToken(t, t.parent, e); + return t && 27 === t.kind ? t : void 0 + }, n.prototype.replacePropertyAssignment = function(e, t, r) { + var n = this.nextCommaToken(e, t) ? "" : "," + this.newLineCharacter; + this.replaceNode(e, t, r, { + suffix: n + }) + }, n.prototype.insertNodeAt = function(e, t, r, n) { + void 0 === n && (n = {}), this.replaceRange(e, y.createRange(t), r, n) + }, n.prototype.insertNodesAt = function(e, t, r, n) { + void 0 === n && (n = {}), this.replaceRangeWithNodes(e, y.createRange(t), r, n) + }, n.prototype.insertNodeAtTopOfFile = function(e, t, r) { + this.insertAtTopOfFile(e, t, r) + }, n.prototype.insertNodesAtTopOfFile = function(e, t, r) { + this.insertAtTopOfFile(e, t, r) + }, n.prototype.insertAtTopOfFile = function(e, t, r) { + var n = function(e) { + for (var t, r = 0, n = e.statements; r < n.length; r++) { + var i = n[r]; + if (!y.isPrologueDirective(i)) break; + t = i + } + var a = 0, + o = e.text; + if (t) a = t.end, f(); + else { + var s = y.getShebang(o), + s = (void 0 !== s && (a = s.length, f()), y.getLeadingCommentRanges(o, a)); + if (s) { + for (var c, l, u = 0, _ = s; u < _.length; u++) { + var d = _[u]; + if (3 === d.kind) { + if (y.isPinnedComment(o, d.pos)) { + c = { + range: d, + pinnedOrTripleSlash: !0 + }; + continue + } + } else if (y.isRecognizedTripleSlashComment(o, d.pos, d.end)) { + c = { + range: d, + pinnedOrTripleSlash: !0 + }; + continue + } + if (c) { + if (c.pinnedOrTripleSlash) break; + var p = e.getLineAndCharacterOfPosition(d.pos).line; + if (e.getLineAndCharacterOfPosition(c.range.end).line + 2 <= p) break + } + if (e.statements.length) { + void 0 === l && (l = e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line); + p = e.getLineAndCharacterOfPosition(d.end).line; + if (l < p + 2) break + } + c = { + range: d, + pinnedOrTripleSlash: !1 + } + } + c && (a = c.range.end, f()) + } + } + return a; + + function f() { + var e; + a < o.length && (e = o.charCodeAt(a), y.isLineBreak(e)) && ++a < o.length && 13 === e && 10 === o.charCodeAt(a) && a++ + } + }(e), + r = { + prefix: 0 === n ? void 0 : this.newLineCharacter, + suffix: (y.isLineBreak(e.text.charCodeAt(n)) ? "" : this.newLineCharacter) + (r ? this.newLineCharacter : "") + }; + y.isArray(t) ? this.insertNodesAt(e, n, t, r) : this.insertNodeAt(e, n, t, r) + }, n.prototype.insertFirstParameter = function(e, t, r) { + var n = y.firstOrUndefined(t); + n ? this.insertNodeBefore(e, n, r) : this.insertNodeAt(e, t.pos, r) + }, n.prototype.insertNodeBefore = function(e, t, r, n, i) { + void 0 === n && (n = !1), this.insertNodeAt(e, h(e, t, i = void 0 === i ? {} : i), r, this.getOptionsForInsertNodeBefore(t, r, n)) + }, n.prototype.insertModifierAt = function(e, t, r, n) { + void 0 === n && (n = {}), this.insertNodeAt(e, t, y.factory.createToken(r), n) + }, n.prototype.insertModifierBefore = function(e, t, r) { + return this.insertModifierAt(e, r.getStart(e), t, { + suffix: " " + }) + }, n.prototype.insertCommentBeforeLine = function(e, t, r, n) { + var t = y.getStartPositionOfLine(t, e), + i = y.getFirstNonSpaceCharacterPosition(e.text, t), + a = A(e, i), + r = y.getTouchingToken(e, a ? i : r), + t = e.text.slice(t, i), + i = "".concat(a ? "" : this.newLineCharacter, "//").concat(n).concat(this.newLineCharacter).concat(t); + this.insertText(e, r.getStart(e), i) + }, n.prototype.insertJsdocCommentBefore = function(e, t, r) { + var n = t.getStart(e); + if (t.jsDoc) + for (var i = 0, a = t.jsDoc; i < a.length; i++) { + var o = a[i]; + this.deleteRange(e, { + pos: y.getLineStartPositionForPosition(o.getStart(e), e), + end: b(e, o, {}) + }) + } + t = y.getPrecedingNonSpaceCharacterPosition(e.text, n - 1), t = e.text.slice(t, n); + this.insertNodeAt(e, n, r, { + suffix: this.newLineCharacter + t + }) + }, n.prototype.createJSDocText = function(e, t) { + var r = y.flatMap(t.jsDoc, function(e) { + return y.isString(e.comment) ? y.factory.createJSDocText(e.comment) : e.comment + }), + t = y.singleOrUndefined(t.jsDoc); + return t && y.positionsAreOnSameLine(t.pos, t.end, e) && 0 === y.length(r) ? void 0 : y.factory.createNodeArray(y.intersperse(r, y.factory.createJSDocText("\n"))) + }, n.prototype.replaceJSDocComment = function(e, t, r) { + this.insertJsdocCommentBefore(e, function(e) { + if (216 !== e.kind) return e; + var t = (169 === e.parent.kind ? e : e.parent).parent; + return t.jsDoc = e.jsDoc, t.jsDocCache = e.jsDocCache, t + }(t), y.factory.createJSDocComment(this.createJSDocText(e, t), y.factory.createNodeArray(r))) + }, n.prototype.addJSDocTags = function(e, t, r) { + var n = y.flatMapToMutable(t.jsDoc, function(e) { + return e.tags + }), + r = r.filter(function(r) { + return !n.some(function(e, t) { + e = function(e, t) { + if (e.kind !== t.kind) return; + switch (e.kind) { + case 343: + var r = e, + n = t; + return y.isIdentifier(r.name) && y.isIdentifier(n.name) && r.name.escapedText === n.name.escapedText ? y.factory.createJSDocParameterTag(void 0, n.name, !1, n.typeExpression, n.isNameFirst, r.comment) : void 0; + case 344: + return y.factory.createJSDocReturnTag(void 0, t.typeExpression, e.comment); + case 346: + return y.factory.createJSDocTypeTag(void 0, t.typeExpression, e.comment) + } + }(e, r); + return e && (n[t] = e), !!e + }) + }); + this.replaceJSDocComment(e, t, __spreadArray(__spreadArray([], n, !0), r, !0)) + }, n.prototype.filterJSDocTags = function(e, t, r) { + this.replaceJSDocComment(e, t, y.filter(y.flatMapToMutable(t.jsDoc, function(e) { + return e.tags + }), r)) + }, n.prototype.replaceRangeWithText = function(e, t, r) { + this.changes.push({ + kind: s.Text, + sourceFile: e, + range: t, + text: r + }) + }, n.prototype.insertText = function(e, t, r) { + this.replaceRangeWithText(e, y.createRange(t), r) + }, n.prototype.tryInsertTypeAnnotation = function(e, t, r) { + var n, i; + if (y.isFunctionLike(t)) { + if (!(i = y.findChildOfKind(t, 21, e))) { + if (!y.isArrowFunction(t)) return !1; + i = y.first(t.parameters) + } + } else i = null != (n = 257 === t.kind ? t.exclamationToken : t.questionToken) ? n : t.name; + return this.insertNodeAt(e, i.end, r, { + prefix: ": " + }), !0 + }, n.prototype.tryInsertThisTypeAnnotation = function(e, t, r) { + var n = y.findChildOfKind(t, 20, e).getStart(e) + 1, + t = t.parameters.length ? ", " : ""; + this.insertNodeAt(e, n, r, { + prefix: "this: ", + suffix: t + }) + }, n.prototype.insertTypeParameters = function(e, t, r) { + t = (y.findChildOfKind(t, 20, e) || y.first(t.parameters)).getStart(e); + this.insertNodesAt(e, t, r, { + prefix: "<", + suffix: ">", + joiner: ", " + }) + }, n.prototype.getOptionsForInsertNodeBefore = function(e, t, r) { + return y.isStatement(e) || y.isClassElement(e) ? { + suffix: r ? this.newLineCharacter + this.newLineCharacter : this.newLineCharacter + } : y.isVariableDeclaration(e) ? { + suffix: ", " + } : y.isParameter(e) ? y.isParameter(t) ? { + suffix: ", " + } : {} : y.isStringLiteral(e) && y.isImportDeclaration(e.parent) || y.isNamedImports(e) ? { + suffix: ", " + } : y.isImportSpecifier(e) ? { + suffix: "," + (r ? this.newLineCharacter : " ") + } : y.Debug.failBadSyntaxKind(e) + }, n.prototype.insertNodeAtConstructorStart = function(e, t, r) { + var n = y.firstOrUndefined(t.body.statements); + n && t.body.multiLine ? this.insertNodeBefore(e, n, r) : this.replaceConstructorBody(e, t, __spreadArray([r], t.body.statements, !0)) + }, n.prototype.insertNodeAtConstructorStartAfterSuperCall = function(e, t, r) { + var n = y.find(t.body.statements, function(e) { + return y.isExpressionStatement(e) && y.isSuperCall(e.expression) + }); + n && t.body.multiLine ? this.insertNodeAfter(e, n, r) : this.replaceConstructorBody(e, t, __spreadArray(__spreadArray([], t.body.statements, !0), [r], !1)) + }, n.prototype.insertNodeAtConstructorEnd = function(e, t, r) { + var n = y.lastOrUndefined(t.body.statements); + n && t.body.multiLine ? this.insertNodeAfter(e, n, r) : this.replaceConstructorBody(e, t, __spreadArray(__spreadArray([], t.body.statements, !0), [r], !1)) + }, n.prototype.replaceConstructorBody = function(e, t, r) { + this.replaceNode(e, t.body, y.factory.createBlock(r, !0)) + }, n.prototype.insertNodeAtEndOfScope = function(e, t, r) { + var n = h(e, t.getLastToken(), {}); + this.insertNodeAt(e, n, r, { + prefix: y.isLineBreak(e.text.charCodeAt(t.getLastToken().pos)) ? this.newLineCharacter : this.newLineCharacter + this.newLineCharacter, + suffix: this.newLineCharacter + }) + }, n.prototype.insertMemberAtStart = function(e, t, r) { + this.insertNodeAtStartWorker(e, t, r) + }, n.prototype.insertNodeAtObjectStart = function(e, t, r) { + this.insertNodeAtStartWorker(e, t, r) + }, n.prototype.insertNodeAtStartWorker = function(e, t, r) { + var n = null != (n = this.guessIndentationFromExistingMembers(e, t)) ? n : this.computeIndentationForNewMember(e, t); + this.insertNodeAt(e, S(t).pos, r, this.getInsertNodeAtStartInsertOptions(e, t, n)) + }, n.prototype.guessIndentationFromExistingMembers = function(e, t) { + for (var r, n = t, i = 0, a = S(t); i < a.length; i++) { + var o = a[i]; + if (y.rangeStartPositionsAreOnSameLine(n, o, e)) return; + var s = o.getStart(e), + s = y.formatting.SmartIndenter.findFirstNonWhitespaceColumn(y.getLineStartPositionForPosition(s, e), s, e, this.formatContext.options); + if (void 0 === r) r = s; + else if (s !== r) return; + n = o + } + return r + }, n.prototype.computeIndentationForNewMember = function(e, t) { + var t = t.getStart(e); + return y.formatting.SmartIndenter.findFirstNonWhitespaceColumn(y.getLineStartPositionForPosition(t, e), t, e, this.formatContext.options) + (null != (t = this.formatContext.options.indentSize) ? t : 4) + }, n.prototype.getInsertNodeAtStartInsertOptions = function(e, t, r) { + var n = 0 === S(t).length, + i = y.addToSeen(this.classesWithNodesInsertedAtStart, y.getNodeId(t), { + node: t, + sourceFile: e + }), + a = y.isObjectLiteralExpression(t) && (!y.isJsonSourceFile(e) || !n); + return { + indentation: r, + prefix: (y.isObjectLiteralExpression(t) && y.isJsonSourceFile(e) && n && !i ? "," : "") + this.newLineCharacter, + suffix: a ? "," : y.isInterfaceDeclaration(t) && n ? ";" : "" + } + }, n.prototype.insertNodeAfterComma = function(e, t, r) { + var n = this.insertNodeAfterWorker(e, this.nextCommaToken(e, t) || t, r); + this.insertNodeAt(e, n, r, this.getInsertNodeAfterOptions(e, t)) + }, n.prototype.insertNodeAfter = function(e, t, r) { + var n = this.insertNodeAfterWorker(e, t, r); + this.insertNodeAt(e, n, r, this.getInsertNodeAfterOptions(e, t)) + }, n.prototype.insertNodeAtEndOfList = function(e, t, r) { + this.insertNodeAt(e, t.end, r, { + prefix: ", " + }) + }, n.prototype.insertNodesAfter = function(e, t, r) { + var n = this.insertNodeAfterWorker(e, t, y.first(r)); + this.insertNodesAt(e, n, r, this.getInsertNodeAfterOptions(e, t)) + }, n.prototype.insertNodeAfterWorker = function(e, t, r) { + var n; + return n = t, r = r, ((y.isPropertySignature(n) || y.isPropertyDeclaration(n)) && y.isClassOrTypeElement(r) && 164 === r.name.kind || y.isStatementButNotDeclaration(n) && y.isStatementButNotDeclaration(r)) && 59 !== e.text.charCodeAt(t.end - 1) && this.replaceRange(e, y.createRange(t.end), y.factory.createToken(26)), b(e, t, {}) + }, n.prototype.getInsertNodeAfterOptions = function(e, t) { + var r = this.getInsertNodeAfterOptionsWorker(t); + return __assign(__assign({}, r), { + prefix: t.end === e.end && y.isStatement(t) ? r.prefix ? "\n".concat(r.prefix) : "\n" : r.prefix + }) + }, n.prototype.getInsertNodeAfterOptionsWorker = function(e) { + switch (e.kind) { + case 260: + case 264: + return { + prefix: this.newLineCharacter, + suffix: this.newLineCharacter + }; + case 257: + case 10: + case 79: + return { + prefix: ", " + }; + case 299: + return { + suffix: "," + this.newLineCharacter + }; + case 93: + return { + prefix: " " + }; + case 166: + return {}; + default: + return y.Debug.assert(y.isStatement(e) || y.isClassOrTypeElement(e)), { + suffix: this.newLineCharacter + } + } + }, n.prototype.insertName = function(e, t, r) { + var n, i; + y.Debug.assert(!t.name), 216 === t.kind ? (n = y.findChildOfKind(t, 38, e), (i = y.findChildOfKind(t, 20, e)) ? (this.insertNodesAt(e, i.getStart(e), [y.factory.createToken(98), y.factory.createIdentifier(r)], { + joiner: " " + }), P(this, e, n)) : (this.insertText(e, y.first(t.parameters).getStart(e), "function ".concat(r, "(")), this.replaceRange(e, n, y.factory.createToken(21))), 238 !== t.body.kind && (this.insertNodesAt(e, t.body.getStart(e), [y.factory.createToken(18), y.factory.createToken(105)], { + joiner: " ", + suffix: " " + }), this.insertNodesAt(e, t.body.end, [y.factory.createToken(26), y.factory.createToken(19)], { + joiner: " " + }))) : (i = y.findChildOfKind(t, 215 === t.kind ? 98 : 84, e).end, this.insertNodeAt(e, i, y.factory.createIdentifier(r), { + prefix: " " + })) + }, n.prototype.insertExportModifier = function(e, t) { + this.insertText(e, t.getStart(e), "export ") + }, n.prototype.insertImportSpecifierAtIndex = function(e, t, r, n) { + n = r.elements[n - 1]; + n ? this.insertNodeInListAfter(e, n, t) : this.insertNodeBefore(e, r.elements[0], t, !y.positionsAreOnSameLine(r.elements[0].getStart(), r.parent.parent.getStart(), e)) + }, n.prototype.insertNodeInListAfter = function(e, t, r, n) { + if (n = void 0 === n ? y.formatting.SmartIndenter.getContainingList(t, e) : n) { + var i = y.indexOfNode(n, t); + if (!(i < 0)) { + var a = t.getEnd(); + if (i !== n.length - 1) { + var o = y.getTokenAtPosition(e, t.end); + o && x(t, o) && (s = n[i + 1], s = p(e.text, s.getFullStart()), o = "".concat(y.tokenToString(o.kind)).concat(e.text.substring(o.end, s)), this.insertNodesAt(e, s, [r], { + suffix: o + })) + } else { + var s = t.getStart(e), + o = y.getLineStartPositionForPosition(s, e), + c = void 0, + l = !1; + if (1 === n.length ? c = 27 : (c = x(t, u = y.findPrecedingToken(t.pos, e)) ? u.kind : 27, l = y.getLineStartPositionForPosition(n[i - 1].getStart(e), e) !== o), l = ! function(e, t) { + for (var r = t; r < e.length;) { + var n = e.charCodeAt(r); + if (!y.isWhiteSpaceSingleLine(n)) return 47 === n; + r++ + } + }(e.text, t.end) ? l : !0) { + this.replaceRange(e, y.createRange(a), y.factory.createToken(c)); + for (var u = y.formatting.SmartIndenter.findFirstNonWhitespaceColumn(o, s, e, this.formatContext.options), _ = y.skipTrivia(e.text, a, !0, !1); _ !== a && y.isLineBreak(e.text.charCodeAt(_ - 1));) _--; + this.replaceRange(e, y.createRange(_), r, { + indentation: u, + prefix: this.newLineCharacter + }) + } else this.replaceRange(e, y.createRange(a), r, { + prefix: "".concat(y.tokenToString(c), " ") + }) + } + } + } else y.Debug.fail("node is not a list element") + }, n.prototype.parenthesizeExpression = function(e, t) { + this.replaceRange(e, y.rangeOfNode(t), y.factory.createParenthesizedExpression(t)) + }, n.prototype.finishClassesWithNodesInsertedAtStart = function() { + var a = this; + this.classesWithNodesInsertedAtStart.forEach(function(e) { + var t = e.node, + e = e.sourceFile, + r = (i = t, r = e, n = y.findChildOfKind(i, 18, r), i = y.findChildOfKind(i, 19, r), [null == n ? void 0 : n.end, null == i ? void 0 : i.end]), + n = r[0], + i = r[1]; + void 0 !== n && void 0 !== i && (r = 0 === S(t).length, t = y.positionsAreOnSameLine(n, i, e), r && t && n !== i - 1 && a.deleteRange(e, y.createRange(n, i - 1)), t) && a.insertText(e, i - 1, a.newLineCharacter) + }) + }, n.prototype.finishDeleteDeclarations = function() { + for (var n = this, i = new y.Set, e = this, t = 0, r = this.deletedNodes; t < r.length; t++) { + var a = r[t]; + ! function(t, r) { + e.deletedNodes.some(function(e) { + return e.sourceFile === t && y.rangeContainsRangeExclusive(e.node, r) + }) || (y.isArray(r) ? e.deleteRange(t, y.rangeOfTypeParameters(t, r)) : o.deleteDeclaration(e, i, t, r)) + }(a.sourceFile, a.node) + } + i.forEach(function(e) { + var t = e.getSourceFile(), + r = y.formatting.SmartIndenter.getContainingList(e, t); + e === y.last(r) && -1 !== (e = y.findLastIndex(r, function(e) { + return !i.has(e) + }, r.length - 2)) && n.deleteRange(t, { + pos: r[e].end, + end: D(t, r[e + 1]) + }) + }) + }, n.prototype.getChanges = function(e) { + this.finishDeleteDeclarations(), this.finishClassesWithNodesInsertedAtStart(); + for (var t = c.getTextChangesFromChanges(this.changes, this.newLineCharacter, this.formatContext, e), r = 0, n = this.newFiles; r < n.length; r++) { + var i = n[r], + a = i.oldFile, + o = i.fileName, + i = i.statements; + t.push(c.newFileChanges(a, o, i, this.newLineCharacter, this.formatContext)) + } + return t + }, n.prototype.createNewFile = function(e, t, r) { + this.newFiles.push({ + oldFile: e, + fileName: t, + statements: r + }) + }, e.ChangeTracker = n, e.getNewFileText = function(e, t, r, n) { + return c.newFileChangesWorker(void 0, t, e, r, n) + }, (t = c = c || {}).getTextChangesFromChanges = function(e, i, a, o) { + return y.mapDefined(y.group(e, function(e) { + return e.sourceFile.path + }), function(e) { + for (var r = e[0].sourceFile, t = y.stableSort(e, function(e, t) { + return e.range.pos - t.range.pos || e.range.end - t.range.end + }), n = 0; n < t.length - 1; n++) ! function(e) { + y.Debug.assert(t[e].range.end <= t[e + 1].range.pos, "Changes overlap", function() { + return "".concat(JSON.stringify(t[e].range), " and ").concat(JSON.stringify(t[e + 1].range)) + }) + }(n); + e = y.mapDefined(t, function(e) { + var t = y.createTextSpanFromRange(e.range), + e = function(e, _, d, p, f) { + if (e.kind === s.Remove) return ""; + if (e.kind === s.Text) return e.text; + + function t(e) { + var t = _, + r = m, + n = d, + i = p, + a = f, + o = (c = g).indentation, + s = c.prefix, + c = c.delta, + l = (u = C(e, t, n)).node, + u = u.text; + return a && a(l, u), a = y.getFormatCodeSettingsForWriting(i, t), o = void 0 !== o ? o : y.formatting.SmartIndenter.getIndentation(r, t, a, s === n || y.getLineStartPositionForPosition(r, t) === r), void 0 === c && (c = y.formatting.SmartIndenter.shouldIndentChildNode(a, e) && a.indentSize || 0), s = { + text: u, + getLineAndCharacterOfPosition: function(e) { + return y.getLineAndCharacterOfPosition(this, e) + } + }, n = y.formatting.formatNodeGivenIndentation(l, s, t.languageVariant, o, c, __assign(__assign({}, i), { + options: a + })), E(u, n) + } + var r = e.options, + g = void 0 === r ? {} : r, + m = e.range.pos, + r = e.kind === s.ReplaceWithMultipleNodes ? e.nodes.map(function(e) { + return y.removeSuffix(t(e), d) + }).join((null == (r = e.options) ? void 0 : r.joiner) || d) : t(e.node), + e = void 0 !== g.indentation || y.getLineStartPositionForPosition(m, _) === m ? r : r.replace(/^\s+/, ""); + return (g.prefix || "") + e + (!g.suffix || y.endsWith(e, g.suffix) ? "" : g.suffix) + }(e, r, i, a, o); + if (t.length !== e.length || !y.stringContainsAt(r.text, e, t.start)) return y.createTextChange(t, e) + }); + return 0 < e.length ? { + fileName: r.fileName, + textChanges: e + } : void 0 + }) + }, t.newFileChanges = function(e, t, r, n, i) { + return e = T(e, y.getScriptKindFromFileName(t), r, n, i), { + fileName: t, + textChanges: [y.createTextChange(y.createTextSpan(0, 0), e)], + isNewFile: !0 + } + }, t.newFileChangesWorker = T, t.getNonformattedText = C, e.applyChanges = E, r = __assign(__assign({}, y.nullTransformationContext), { + factory: y.createNodeFactory(1 | y.nullTransformationContext.factory.flags, y.nullTransformationContext.factory.baseFactory) + }), e.assignPositionsToNode = i, e.createWriter = N, e.isValidLocationToAddComment = A, (o || (o = {})).deleteDeclaration = function(e, t, r, n) { + switch (n.kind) { + case 166: + var i = n.parent; + y.isArrowFunction(i) && 1 === i.parameters.length && !y.findChildOfKind(i, 20, r) ? e.replaceNodeWithText(r, n, "()") : w(e, t, r, n); + break; + case 269: + case 268: + P(e, r, n, { + leadingTriviaOption: r.imports.length && n === y.first(r.imports).parent || n === y.find(r.statements, y.isAnyImportSyntax) ? g.Exclude : y.hasJSDocNodes(n) ? g.JSDoc : g.StartLine + }); + break; + case 205: + i = n.parent; + 204 === i.kind && n !== y.last(i.elements) ? P(e, r, n) : w(e, t, r, n); + break; + case 257: + var a = e, + i = t, + o = r, + s = n, + c = s.parent; + if (295 === c.kind) a.deleteNodeRange(o, y.findChildOfKind(c, 20, o), y.findChildOfKind(c, 21, o)); + else if (1 !== c.declarations.length) w(a, i, o, s); + else { + var l = c.parent; + switch (l.kind) { + case 247: + case 246: + a.replaceNode(o, s, y.factory.createObjectLiteralExpression()); + break; + case 245: + P(a, o, c); + break; + case 240: + P(a, o, l, { + leadingTriviaOption: y.hasJSDocNodes(l) ? g.JSDoc : g.StartLine + }); + break; + default: + y.Debug.assertNever(l) + } + } + break; + case 165: + w(e, t, r, n); + break; + case 273: + var u = n.parent; + 1 === u.elements.length ? F(e, r, u) : w(e, t, r, n); + break; + case 271: + F(e, r, n); + break; + case 26: + P(e, r, n, { + trailingTriviaOption: m.Exclude + }); + break; + case 98: + P(e, r, n, { + leadingTriviaOption: g.Exclude + }); + break; + case 260: + case 259: + P(e, r, n, { + leadingTriviaOption: y.hasJSDocNodes(n) ? g.JSDoc : g.StartLine + }); + break; + default: + var _, d, p, f; + n.parent ? y.isImportClause(n.parent) && n.parent.name === n ? (u = e, _ = r, (d = n.parent).namedBindings ? (p = d.name.getStart(_), (f = y.getTokenAtPosition(_, d.name.end)) && 27 === f.kind ? (f = y.skipTrivia(_.text, f.end, !1, !0), u.deleteRange(_, { + pos: p, + end: f + })) : P(u, _, d.name)) : P(u, _, d.parent)) : y.isCallExpression(n.parent) && y.contains(n.parent.arguments, n) ? w(e, t, r, n) : P(e, r, n) : P(e, r, n) + } + }, e.deleteNode = P + }(ts = ts || {}), ! function(c) { + var e, s, l; + + function o(e, t, r, n, i, a) { + return { + fixName: e, + description: t, + changes: r, + fixId: n, + fixAllDescription: i, + commands: a ? [a] : void 0 + } + } + + function t(e, t) { + return { + changes: e, + commands: t + } + } + + function a(e, t, r) { + for (var n = 0, i = u(e); n < i.length; n++) { + var a = i[n]; + c.contains(t, a.code) && r(a) + } + } + + function u(e) { + var t = e.program, + r = e.sourceFile, + e = e.cancellationToken; + return __spreadArray(__spreadArray(__spreadArray([], t.getSemanticDiagnostics(r, e), !0), t.getSyntacticDiagnostics(r, e), !0), c.computeSuggestionDiagnostics(r, t, e), !0) + } + e = c.codefix || (c.codefix = {}), s = c.createMultiMap(), l = new c.Map, e.createCodeFixActionWithoutFixAll = function(e, t, r) { + return o(e, c.diagnosticToString(r), t, void 0, void 0) + }, e.createCodeFixAction = function(e, t, r, n, i, a) { + return o(e, c.diagnosticToString(r), t, n, c.diagnosticToString(i), a) + }, e.createCodeFixActionMaybeFixAll = function(e, t, r, n, i, a) { + return o(e, c.diagnosticToString(r), t, n, i && c.diagnosticToString(i), a) + }, e.registerCodeFix = function(e) { + for (var t = 0, r = e.errorCodes; t < r.length; t++) { + var n = r[t]; + s.add(String(n), e) + } + if (e.fixIds) + for (var i = 0, a = e.fixIds; i < a.length; i++) { + var o = a[i]; + c.Debug.assert(!l.has(o)), l.set(o, e) + } + }, e.getSupportedErrorCodes = function() { + return c.arrayFrom(s.keys()) + }, e.getFixes = function(t) { + var r = u(t), + e = s.get(String(t.errorCode)); + return c.flatMap(e, function(e) { + return c.map(e.getCodeActions(t), function(e, t) { + for (var r = e.errorCodes, n = 0, i = 0, a = t; i < a.length; i++) { + var o = a[i]; + if (c.contains(r, o.code) && n++, 1 < n) break + } + var s = n < 2; + return function(e) { + var t = e.fixId, + r = e.fixAllDescription, + e = __rest(e, ["fixId", "fixAllDescription"]); + return s ? e : __assign(__assign({}, e), { + fixId: t, + fixAllDescription: r + }) + } + }(e, r)) + }) + }, e.getAllFixes = function(e) { + return l.get(c.cast(e.fixId, c.isString)).getAllCodeActions(e) + }, e.createCombinedCodeActions = t, e.createFileTextChanges = function(e, t) { + return { + fileName: e, + textChanges: t + } + }, e.codeFixAll = function(e, r, n) { + var i = []; + return t(c.textChanges.ChangeTracker.with(e, function(t) { + return a(e, r, function(e) { + n(t, e, i) + }) + }), 0 === i.length ? void 0 : i) + }, e.eachDiagnostic = a + }(ts = ts || {}), ! function(e) { + var n, i; + n = e.refactor || (e.refactor = {}), i = new e.Map, n.registerRefactor = function(e, t) { + i.set(e, t) + }, n.getApplicableRefactors = function(r) { + return e.arrayFrom(e.flatMapIterator(i.values(), function(e) { + var t; + return r.cancellationToken && r.cancellationToken.isCancellationRequested() || null == (t = e.kinds) || !t.some(function(e) { + return n.refactorKindBeginsWith(e, r.kind) + }) ? void 0 : e.getAvailableActions(r) + })) + }, n.getEditsForRefactor = function(e, t, r) { + return (t = i.get(t)) && t.getEditsForAction(e, r) + } + }(ts = ts || {}), ! function(i) { + var n, a, t; + + function o(e, t, r) { + var n = i.isAsExpression(r) ? i.factory.createAsExpression(r.expression, i.factory.createKeywordTypeNode(157)) : i.factory.createTypeAssertion(i.factory.createKeywordTypeNode(157), r.expression); + e.replaceNode(t, r.expression, n) + } + + function s(e, t) { + if (!i.isInJSFile(e)) return i.findAncestor(i.getTokenAtPosition(e, t), function(e) { + return i.isAsExpression(e) || i.isTypeAssertionExpression(e) + }) + } + n = i.codefix || (i.codefix = {}), a = "addConvertToUnknownForNonOverlappingTypes", t = [i.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code], n.registerCodeFix({ + errorCodes: t, + getCodeActions: function(t) { + var e, r = s(t.sourceFile, t.span.start); + if (void 0 !== r) return e = i.textChanges.ChangeTracker.with(t, function(e) { + return o(e, t.sourceFile, r) + }), [n.createCodeFixAction(a, e, i.Diagnostics.Add_unknown_conversion_for_non_overlapping_types, a, i.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)] + }, + fixIds: [a], + getAllCodeActions: function(e) { + return n.codeFixAll(e, t, function(e, t) { + var r = s(t.file, t.start); + r && o(e, t.file, r) + }) + } + }) + }(ts = ts || {}), ! function(n) { + var t; + (t = n.codefix || (n.codefix = {})).registerCodeFix({ + errorCodes: [n.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code, n.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code], + getCodeActions: function(e) { + var r = e.sourceFile, + e = n.textChanges.ChangeTracker.with(e, function(e) { + var t = n.factory.createExportDeclaration(void 0, !1, n.factory.createNamedExports([]), void 0); + e.insertNodeAtEndOfScope(r, r, t) + }); + return [t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration", e, n.Diagnostics.Add_export_to_make_this_file_into_a_module)] + } + }) + }(ts = ts || {}), ! function(c) { + var t, r, e; + + function l(i, a, e, o) { + e = e(function(e) { + var t = i.sourceFile, + r = a, + n = o; + n && n.has(c.getNodeId(r)) || (null != n && n.add(c.getNodeId(r)), n = c.factory.updateModifiers(c.getSynthesizedDeepClone(r, !0), c.factory.createNodeArray(c.factory.createModifiersFromModifierFlags(512 | c.getSyntacticModifierFlags(r)))), e.replaceNode(t, r, n)) + }); + return t.createCodeFixAction(r, e, c.Diagnostics.Add_async_modifier_to_containing_function, r, c.Diagnostics.Add_all_missing_async_modifiers) + } + + function u(t, r) { + var e; + if (r) return e = c.getTokenAtPosition(t, r.start), c.findAncestor(e, function(e) { + return e.getStart(t) < r.start || e.getEnd() > c.textSpanEnd(r) ? "quit" : (c.isArrowFunction(e) || c.isMethodDeclaration(e) || c.isFunctionExpression(e) || c.isFunctionDeclaration(e)) && c.textSpansEqual(r, c.createTextSpanFromNode(e, t)) + }) + } + t = c.codefix || (c.codefix = {}), r = "addMissingAsync", e = [c.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code, c.Diagnostics.Type_0_is_not_assignable_to_type_1.code, c.Diagnostics.Type_0_is_not_comparable_to_type_1.code], t.registerCodeFix({ + fixIds: [r], + errorCodes: e, + getCodeActions: function(t) { + var i, a, e = t.sourceFile, + r = t.errorCode, + n = t.cancellationToken, + o = t.program, + s = t.span, + o = c.find(o.getTypeChecker().getDiagnostics(e, n), (i = s, a = r, function(e) { + var t = e.start, + r = e.length, + n = e.relatedInformation, + e = e.code; + return c.isNumber(t) && c.isNumber(r) && c.textSpansEqual({ + start: t, + length: r + }, i) && e === a && !!n && c.some(n, function(e) { + return e.code === c.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code + }) + })), + n = u(e, o && o.relatedInformation && c.find(o.relatedInformation, function(e) { + return e.code === c.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code + })); + if (n) return [l(t, n, function(e) { + return c.textChanges.ChangeTracker.with(t, e) + })] + }, + getAllCodeActions: function(r) { + var n = r.sourceFile, + i = new c.Set; + return t.codeFixAll(r, e, function(t, e) { + e = e.relatedInformation && c.find(e.relatedInformation, function(e) { + return e.code === c.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code + }), e = u(n, e); + if (e) return l(r, e, function(e) { + return e(t), [] + }, i) + }) + } + }) + }(ts = ts || {}), ! function(p) { + var u, o, f, g, d; + + function _(e, t, r, n, i) { + var a = p.getFixableErrorSpanExpression(e, r); + return a && function(e, i, a, t, r) { + r = r.getTypeChecker().getDiagnostics(e, t); + return p.some(r, function(e) { + var t = e.start, + r = e.length, + n = e.relatedInformation, + e = e.code; + return p.isNumber(t) && p.isNumber(r) && p.textSpansEqual({ + start: t, + length: r + }, a) && e === i && !!n && p.some(n, function(e) { + return e.code === p.Diagnostics.Did_you_forget_to_use_await.code + }) + }) + }(e, t, r, n, i) && h(a) ? a : void 0 + } + + function m(e, r, n, i, t, a) { + var o = e.sourceFile, + s = e.program, + e = e.cancellationToken, + c = function(e, s, i, c, l) { + e = function(e, t) { + if (p.isPropertyAccessExpression(e.parent) && p.isIdentifier(e.parent.expression)) return { + identifiers: [e.parent.expression], + isCompleteFix: !0 + }; + if (p.isIdentifier(e)) return { + identifiers: [e], + isCompleteFix: !0 + }; + if (p.isBinaryExpression(e)) { + for (var r = void 0, n = !0, i = 0, a = [e.left, e.right]; i < a.length; i++) { + var o = a[i], + s = t.getTypeAtLocation(o); + t.getPromisedTypeOfPromise(s) && (p.isIdentifier(o) ? (r = r || []).push(o) : n = !1) + } + return r && { + identifiers: r, + isCompleteFix: n + } + } + }(e, l); + if (e) { + for (var u, _ = e.isCompleteFix, t = function(a) { + var e, t, r, o, n = l.getSymbolAtLocation(a); + return n ? (t = (e = p.tryCast(n.valueDeclaration, p.isVariableDeclaration)) && p.tryCast(e.name, p.isIdentifier), r = p.getAncestor(e, 240), !(e && r && !e.type && e.initializer && r.getSourceFile() === s && !p.hasSyntacticModifier(r, 1) && t && h(e.initializer)) || (o = c.getSemanticDiagnostics(s, i), p.FindAllReferences.Core.eachSymbolReferenceInFile(t, l, s, function(e) { + return a !== e && (e = e, t = o, r = s, n = l, i = p.isPropertyAccessExpression(e.parent) ? e.parent.name : p.isBinaryExpression(e.parent) ? e.parent : e, !((e = p.find(t, function(e) { + return e.start === i.getStart(r) && e.start + e.length === i.getEnd() + })) && p.contains(d, e.code) || 1 & n.getTypeAtLocation(i).flags)); + var t, r, n, i + })) ? (_ = !1, "continue") : void(u = u || []).push({ + expression: e.initializer, + declarationSymbol: n + })) : "continue" + }, r = 0, n = e.identifiers; r < n.length; r++) { + var a = n[r]; + t(a) + } + return u && { + initializers: u, + needsSecondPassForFixAll: !_ + } + } + }(r, o, e, s, i); + if (c) return e = t(function(t) { + p.forEach(c.initializers, function(e) { + e = e.expression; + return l(t, n, o, i, e, a) + }), a && c.needsSecondPassForFixAll && l(t, n, o, i, r, a) + }), u.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer", e, 1 === c.initializers.length ? [p.Diagnostics.Add_await_to_initializer_for_0, c.initializers[0].declarationSymbol.name] : p.Diagnostics.Add_await_to_initializers) + } + + function y(t, r, n, i, e, a) { + e = e(function(e) { + return l(e, n, t.sourceFile, i, r, a) + }); + return u.createCodeFixAction(o, e, p.Diagnostics.Add_await, o, p.Diagnostics.Fix_all_expressions_possibly_missing_await) + } + + function h(e) { + return 32768 & e.kind || p.findAncestor(e, function(e) { + return e.parent && p.isArrowFunction(e.parent) && e.parent.body === e || p.isBlock(e) && (259 === e.parent.kind || 215 === e.parent.kind || 216 === e.parent.kind || 171 === e.parent.kind) + }) + } + + function l(e, t, r, n, i, a) { + if (p.isForOfStatement(i.parent) && !i.parent.awaitModifier) { + var o = n.getTypeAtLocation(i), + s = n.getAsyncIterableType(); + if (s && n.isTypeAssignableTo(o, s)) return o = i.parent, void e.replaceNode(r, o, p.factory.updateForOfStatement(o, p.factory.createToken(133), o.initializer, o.expression, o.statement)) + } + if (p.isBinaryExpression(i)) + for (var c = 0, l = [i.left, i.right]; c < l.length; c++) { + var u = l[c]; + if (a && p.isIdentifier(u)) + if ((d = n.getSymbolAtLocation(u)) && a.has(p.getSymbolId(d))) continue; + var _ = n.getTypeAtLocation(u), + _ = n.getPromisedTypeOfPromise(_) ? p.factory.createAwaitExpression(u) : u; + e.replaceNode(r, u, _) + } else if (t === f && p.isPropertyAccessExpression(i.parent)) { + if (a && p.isIdentifier(i.parent.expression)) + if ((d = n.getSymbolAtLocation(i.parent.expression)) && a.has(p.getSymbolId(d))) return; + e.replaceNode(r, i.parent.expression, p.factory.createParenthesizedExpression(p.factory.createAwaitExpression(i.parent.expression))), v(e, i.parent.expression, r) + } else if (p.contains(g, t) && p.isCallOrNewExpression(i.parent)) { + if (a && p.isIdentifier(i)) + if ((d = n.getSymbolAtLocation(i)) && a.has(p.getSymbolId(d))) return; + e.replaceNode(r, i, p.factory.createParenthesizedExpression(p.factory.createAwaitExpression(i))), v(e, i, r) + } else { + var d; + if (a && p.isVariableDeclaration(i.parent) && p.isIdentifier(i.parent.name)) + if ((d = n.getSymbolAtLocation(i.parent.name)) && !p.tryAddToSet(a, p.getSymbolId(d))) return; + e.replaceNode(r, i, p.factory.createAwaitExpression(i)) + } + } + + function v(e, t, r) { + var n = p.findPrecedingToken(t.pos, r); + n && p.positionIsASICandidate(n.end, n.parent, r) && e.insertText(r, t.getStart(r), ";") + } + u = p.codefix || (p.codefix = {}), o = "addMissingAwait", f = p.Diagnostics.Property_0_does_not_exist_on_type_1.code, g = [p.Diagnostics.This_expression_is_not_callable.code, p.Diagnostics.This_expression_is_not_constructable.code], d = __spreadArray([p.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code, p.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code, p.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code, p.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code, p.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code, p.Diagnostics.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code, p.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code, p.Diagnostics.Type_0_is_not_an_array_type.code, p.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code, p.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code, p.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code, p.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code, p.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code, p.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code, p.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code, f], g, !0), u.registerCodeFix({ + fixIds: [o], + errorCodes: d, + getCodeActions: function(t) { + var e, r, n = t.sourceFile, + i = t.errorCode, + n = _(n, i, t.span, t.cancellationToken, t.program); + if (n) return e = t.program.getTypeChecker(), p.compact([m(t, n, i, e, r = function(e) { + return p.textChanges.ChangeTracker.with(t, e) + }), y(t, n, i, e, r)]) + }, + getAllCodeActions: function(i) { + var a = i.sourceFile, + o = i.program, + s = i.cancellationToken, + c = i.program.getTypeChecker(), + l = new p.Set; + return u.codeFixAll(i, d, function(t, e) { + var r, n = _(a, e.code, e, s, o); + if (n) return m(i, n, e.code, c, r = function(e) { + return e(t), [] + }, l) || y(i, n, e.code, c, r, l) + }) + } + }) + }(ts = ts || {}), ! function(s) { + var i, r, e; + + function a(e, t, r, n, i) { + var r = s.getTokenAtPosition(t, r), + a = s.findAncestor(r, function(e) { + return s.isForInOrOfStatement(e.parent) ? e.parent.initializer === e : ! function(e) { + switch (e.kind) { + case 79: + case 206: + case 207: + case 299: + case 300: + return 1; + default: + return + } + }(e) && "quit" + }); + if (a) return c(e, a, t, i); + var o, a = r.parent; + if (s.isBinaryExpression(a) && 63 === a.operatorToken.kind && s.isExpressionStatement(a.parent)) return c(e, r, t, i); + if (s.isArrayLiteralExpression(a)) return o = n.getTypeChecker(), s.every(a.elements, function(e) { + var t = o; + return !!(e = s.isIdentifier(e) ? e : s.isAssignmentExpression(e, !0) && s.isIdentifier(e.left) ? e.left : void 0) && !t.getSymbolAtLocation(e) + }) ? c(e, a, t, i) : void 0; + a = s.findAncestor(r, function(e) { + return !!s.isExpressionStatement(e.parent) || ! function(e) { + switch (e.kind) { + case 79: + case 223: + case 27: + return 1; + default: + return + } + }(e) && "quit" + }); + if (a && function t(e, r) { + if (!s.isBinaryExpression(e)) return !1; + if (27 === e.operatorToken.kind) return s.every([e.left, e.right], function(e) { + return t(e, r) + }); + return 63 === e.operatorToken.kind && s.isIdentifier(e.left) && !r.getSymbolAtLocation(e.left) + }(a, n.getTypeChecker())) return c(e, a, t, i) + } + + function c(e, t, r, n) { + n && !s.tryAddToSet(n, t) || e.insertModifierBefore(r, 85, t) + } + i = s.codefix || (s.codefix = {}), r = "addMissingConst", e = [s.Diagnostics.Cannot_find_name_0.code, s.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code], i.registerCodeFix({ + errorCodes: e, + getCodeActions: function(t) { + var e = s.textChanges.ChangeTracker.with(t, function(e) { + return a(e, t.sourceFile, t.span.start, t.program) + }); + if (0 < e.length) return [i.createCodeFixAction(r, e, s.Diagnostics.Add_const_to_unresolved_variable, r, s.Diagnostics.Add_const_to_all_unresolved_variables)] + }, + fixIds: [r], + getAllCodeActions: function(r) { + var n = new s.Set; + return i.codeFixAll(r, e, function(e, t) { + return a(e, t.file, t.start, r.program, n) + }) + } + }) + }(ts = ts || {}), ! function(i) { + var n, r, t; + + function a(e, t, r, n) { + var r = i.getTokenAtPosition(t, r); + !i.isIdentifier(r) || 169 !== (r = r.parent).kind || n && !i.tryAddToSet(n, r) || e.insertModifierBefore(t, 136, r) + } + n = i.codefix || (i.codefix = {}), r = "addMissingDeclareProperty", t = [i.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code], n.registerCodeFix({ + errorCodes: t, + getCodeActions: function(t) { + var e = i.textChanges.ChangeTracker.with(t, function(e) { + return a(e, t.sourceFile, t.span.start) + }); + if (0 < e.length) return [n.createCodeFixAction(r, e, i.Diagnostics.Prefix_with_declare, r, i.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)] + }, + fixIds: [r], + getAllCodeActions: function(e) { + var r = new i.Set; + return n.codeFixAll(e, t, function(e, t) { + return a(e, t.file, t.start, r) + }) + } + }) + }(ts = ts || {}), ! function(i) { + var r, n, t; + + function a(e, t, r) { + var r = i.getTokenAtPosition(t, r), + r = i.findAncestor(r, i.isDecorator), + n = (i.Debug.assert(!!r, "Expected position to be owned by a decorator."), i.factory.createCallExpression(r.expression, void 0, void 0)); + e.replaceNode(t, r.expression, n) + } + r = i.codefix || (i.codefix = {}), n = "addMissingInvocationForDecorator", t = [i.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code], r.registerCodeFix({ + errorCodes: t, + getCodeActions: function(t) { + var e = i.textChanges.ChangeTracker.with(t, function(e) { + return a(e, t.sourceFile, t.span.start) + }); + return [r.createCodeFixAction(n, e, i.Diagnostics.Call_decorator_expression, n, i.Diagnostics.Add_to_all_uncalled_decorators)] + }, + fixIds: [n], + getAllCodeActions: function(e) { + return r.codeFixAll(e, t, function(e, t) { + return a(e, t.file, t.start) + }) + } + }) + }(ts = ts || {}), ! function(a) { + var r, n, t; + + function i(e, t, r) { + var r = a.getTokenAtPosition(t, r), + n = r.parent; + if (!a.isParameter(n)) return a.Debug.fail("Tried to add a parameter name to a non-parameter: " + a.Debug.formatSyntaxKind(r.kind)); + var r = n.parent.parameters.indexOf(n), + i = (a.Debug.assert(!n.type, "Tried to add a parameter name to a parameter that already had one."), a.Debug.assert(-1 < r, "Parameter not found in parent parameter list."), a.factory.createTypeReferenceNode(n.name, void 0)), + r = a.factory.createParameterDeclaration(n.modifiers, n.dotDotDotToken, "arg" + r, n.questionToken, n.dotDotDotToken ? a.factory.createArrayTypeNode(i) : i, n.initializer); + e.replaceNode(t, n, r) + } + r = a.codefix || (a.codefix = {}), n = "addNameToNamelessParameter", t = [a.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code], r.registerCodeFix({ + errorCodes: t, + getCodeActions: function(t) { + var e = a.textChanges.ChangeTracker.with(t, function(e) { + return i(e, t.sourceFile, t.span.start) + }); + return [r.createCodeFixAction(n, e, a.Diagnostics.Add_parameter_name, n, a.Diagnostics.Add_names_to_all_parameters_without_names)] + }, + fixIds: [n], + getAllCodeActions: function(e) { + return r.codeFixAll(e, t, function(e, t) { + return i(e, t.file, t.start) + }) + } + }) + }(ts = ts || {}), ! function(s) { + var r, n, e; + r = s.codefix || (s.codefix = {}), n = "addOptionalPropertyUndefined", e = [s.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code, s.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code, s.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code], r.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var t = e.program.getTypeChecker(), + o = function(e, t, r) { + var e = function e(t, r) { + { + if (!t) return; + if (s.isBinaryExpression(t.parent) && 63 === t.parent.operatorToken.kind) return { + source: t.parent.right, + target: t.parent.left + }; + if (s.isVariableDeclaration(t.parent) && t.parent.initializer) return { + source: t.parent.initializer, + target: t.parent.name + }; + if (s.isCallExpression(t.parent)) { + var n = r.getSymbolAtLocation(t.parent.expression); + if (null == n || !n.valueDeclaration || !s.isFunctionLikeKind(n.valueDeclaration.kind)) return; + if (!s.isExpression(t)) return; + var i = t.parent.arguments.indexOf(t); + if (-1 === i) return; + n = n.valueDeclaration.parameters[i].name; + if (s.isIdentifier(n)) return { + source: t, + target: n + } + } else if (s.isPropertyAssignment(t.parent) && s.isIdentifier(t.parent.name) || s.isShorthandPropertyAssignment(t.parent)) return (i = e(t.parent.parent, r)) && (n = r.getPropertyOfType(r.getTypeAtLocation(i.target), t.parent.name.text), i = null == (r = null == n ? void 0 : n.declarations) ? void 0 : r[0]) ? { + source: s.isPropertyAssignment(t.parent) ? t.parent.initializer : t.parent.name, + target: i + } : void 0 + } + return + }(s.getFixableErrorSpanExpression(e, t), r); + if (!e) return s.emptyArray; + var t = e.source, + e = e.target, + t = function(e, t, r) { + return s.isPropertyAccessExpression(t) && r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length && r.getTypeAtLocation(e) === r.getUndefinedType() + }(t, e, r) ? r.getTypeAtLocation(e.expression) : r.getTypeAtLocation(e); + if (null != (e = null == (e = t.symbol) ? void 0 : e.declarations) && e.some(function(e) { + return s.getSourceFileOfNode(e).fileName.match(/\.d\.ts$/) + })) return s.emptyArray; + return r.getExactOptionalProperties(t) + }(e.sourceFile, e.span, t); + if (o.length) return t = s.textChanges.ChangeTracker.with(e, function(e) { + for (var t = e, r = 0, n = o; r < n.length; r++) { + var i, a = n[r].valueDeclaration; + a && (s.isPropertySignature(a) || s.isPropertyDeclaration(a)) && a.type && (i = s.factory.createUnionTypeNode(__spreadArray(__spreadArray([], 189 === a.type.kind ? a.type.types : [a.type], !0), [s.factory.createTypeReferenceNode("undefined")], !1)), t.replaceNode(a.getSourceFile(), a.type, i)) + } + }), [r.createCodeFixActionWithoutFixAll(n, t, s.Diagnostics.Add_undefined_to_optional_property_type)] + }, + fixIds: [n] + }) + }(ts = ts || {}), ! function(c) { + var n, i, t; + + function a(e, t) { + e = c.getTokenAtPosition(e, t); + return c.tryCast((c.isParameter(e.parent) ? e.parent : e).parent, r) + } + + function r(e) { + return t = e, (c.isFunctionLikeDeclaration(t) || 257 === t.kind || 168 === t.kind || 169 === t.kind) && o(e); + var t + } + + function o(e) { + return c.isFunctionLikeDeclaration(e) ? e.parameters.some(o) || !e.type && !!c.getJSDocReturnType(e) : !e.type && !!c.getJSDocType(e) + } + + function s(e, t, r) { + if (c.isFunctionLikeDeclaration(r) && (c.getJSDocReturnType(r) || r.parameters.some(function(e) { + return !!c.getJSDocType(e) + }))) { + r.typeParameters || (n = c.getJSDocTypeParameterDeclarations(r)).length && e.insertTypeParameters(t, r, n); + var n = c.isArrowFunction(r) && !c.findChildOfKind(r, 20, t); + n && e.insertNodeBefore(t, c.first(r.parameters), c.factory.createToken(20)); + for (var i = 0, a = r.parameters; i < a.length; i++) { + var o, s = a[i]; + s.type || (o = c.getJSDocType(s)) && e.tryInsertTypeAnnotation(t, s, l(o)) + } + n && e.insertNodeAfter(t, c.last(r.parameters), c.factory.createToken(21)), r.type || (n = c.getJSDocReturnType(r)) && e.tryInsertTypeAnnotation(t, r, l(n)) + } else { + n = c.Debug.checkDefined(c.getJSDocType(r), "A JSDocType for this declaration should exist"); + c.Debug.assert(!r.type, "The JSDocType decl should have a type"), e.tryInsertTypeAnnotation(t, r, l(n)) + } + } + + function l(e) { + switch (e.kind) { + case 315: + case 316: + return c.factory.createTypeReferenceNode("any", c.emptyArray); + case 319: + return c.factory.createUnionTypeNode([c.visitNode(e.type, l), c.factory.createTypeReferenceNode("undefined", c.emptyArray)]); + case 318: + return l(e.type); + case 317: + return c.factory.createUnionTypeNode([c.visitNode(e.type, l), c.factory.createTypeReferenceNode("null", c.emptyArray)]); + case 321: + return c.factory.createArrayTypeNode(c.visitNode(e.type, l)); + case 320: + return t = e, c.factory.createFunctionTypeNode(c.emptyArray, t.parameters.map(u), null != (t = t.type) ? t : c.factory.createKeywordTypeNode(131)); + case 180: + var t = e, + r = t.typeName, + n = t.typeArguments; + if (c.isIdentifier(t.typeName)) { + if (c.isJSDocIndexSignature(t)) return function(e) { + var t = c.factory.createParameterDeclaration(void 0, void 0, 148 === e.typeArguments[0].kind ? "n" : "s", void 0, c.factory.createTypeReferenceNode(148 === e.typeArguments[0].kind ? "number" : "string", []), void 0), + t = c.factory.createTypeLiteralNode([c.factory.createIndexSignature(void 0, [t], e.typeArguments[1])]); + return c.setEmitFlags(t, 1), t + }(t); + var i = t.typeName.text; + switch (t.typeName.text) { + case "String": + case "Boolean": + case "Object": + case "Number": + i = i.toLowerCase(); + break; + case "array": + case "date": + case "promise": + i = i[0].toUpperCase() + i.slice(1) + } + r = c.factory.createIdentifier(i), n = "Array" !== i && "Promise" !== i || t.typeArguments ? c.visitNodes(t.typeArguments, l) : c.factory.createNodeArray([c.factory.createTypeReferenceNode("any", c.emptyArray)]) + } + return c.factory.createTypeReferenceNode(r, n); + default: + r = c.visitEachChild(e, l, c.nullTransformationContext); + return c.setEmitFlags(r, 1), r + } + var t + } + + function u(e) { + var t = e.parent.parameters.indexOf(e), + r = 321 === e.type.kind && t === e.parent.parameters.length - 1, + t = e.name || (r ? "rest" : "arg" + t), + r = r ? c.factory.createToken(25) : e.dotDotDotToken; + return c.factory.createParameterDeclaration(e.modifiers, r, t, e.questionToken, c.visitNode(e.type, l), e.initializer) + } + n = c.codefix || (c.codefix = {}), i = "annotateWithTypeFromJSDoc", t = [c.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code], n.registerCodeFix({ + errorCodes: t, + getCodeActions: function(t) { + var e, r = a(t.sourceFile, t.span.start); + if (r) return e = c.textChanges.ChangeTracker.with(t, function(e) { + return s(e, t.sourceFile, r) + }), [n.createCodeFixAction(i, e, c.Diagnostics.Annotate_with_type_from_JSDoc, i, c.Diagnostics.Annotate_everything_with_types_from_JSDoc)] + }, + fixIds: [i], + getAllCodeActions: function(e) { + return n.codeFixAll(e, t, function(e, t) { + var r = a(t.file, t.start); + r && s(e, t.file, r) + }) + } + }), n.parameterShouldGetTypeFromJSDoc = r + }(ts = ts || {}), ! function(p) { + var n, r, e; + + function i(l, u, e, t, _, d) { + var r, n, t = t.getSymbolAtLocation(p.getTokenAtPosition(u, e)); + + function i(r) { + var n = []; + return r.exports && r.exports.forEach(function(e) { + var t; + "prototype" === e.name && e.declarations ? (t = e.declarations[0], 1 === e.declarations.length && p.isPropertyAccessExpression(t) && p.isBinaryExpression(t.parent) && 63 === t.parent.operatorToken.kind && p.isObjectLiteralExpression(t.parent.right) && i(t.parent.right.symbol, void 0, n)) : i(e, [p.factory.createToken(124)], n) + }), r.members && r.members.forEach(function(e, t) { + "constructor" === t && e.valueDeclaration ? (t = null == (t = null == (t = null == (t = null == (t = r.exports) ? void 0 : t.get("prototype")) ? void 0 : t.declarations) ? void 0 : t[0]) ? void 0 : t.parent) && p.isBinaryExpression(t) && p.isObjectLiteralExpression(t.right) && p.some(t.right.properties, g) || l.delete(u, e.valueDeclaration.parent) : i(e, void 0, n) + }), n; + + function i(t, s, r) { + var e, c, n, i, a; + + function o(e, t, r) { + var n, i, a, o; + p.isFunctionExpression(t) ? (n = e, i = t, a = r, o = p.concatenate(s, f(i, 132)), o = p.factory.createMethodDeclaration(o, void 0, a, void 0, void 0, i.parameters, void 0, i.body), p.copyLeadingComments(c, o, u), n.push(o)) : (a = e, i = r, o = 238 === (o = (n = t).body).kind ? o : p.factory.createBlock([p.factory.createReturnStatement(o)]), e = p.concatenate(s, f(n, 132)), e = p.factory.createMethodDeclaration(e, void 0, i, void 0, void 0, n.parameters, void 0, o), p.copyLeadingComments(c, e, u), a.push(e)) + }(8192 & t.flags || 4096 & t.flags) && (e = t.valueDeclaration, n = (c = e.parent).right, a = e, i = n, p.isAccessExpression(a) ? p.isPropertyAccessExpression(a) && g(a) || p.isFunctionLike(i) : p.every(a.properties, function(e) { + return !!(p.isMethodDeclaration(e) || p.isGetOrSetAccessorDeclaration(e) || p.isPropertyAssignment(e) && p.isFunctionExpression(e.initializer) && e.name || g(e)) + })) && !p.some(r, function(e) { + e = p.getNameOfDeclaration(e); + return !(!e || !p.isIdentifier(e) || p.idText(e) !== p.symbolName(t)) + }) && (i = c.parent && 241 === c.parent.kind ? c.parent : c, l.delete(u, i), n ? p.isAccessExpression(e) && (p.isFunctionExpression(n) || p.isArrowFunction(n)) ? (a = p.getQuotePreference(u, _), (i = function(e, t, r) { + if (p.isPropertyAccessExpression(e)) return e.name; + e = e.argumentExpression; + if (p.isNumericLiteral(e)) return e; + if (p.isStringLiteralLike(e)) return p.isIdentifierText(e.text, p.getEmitScriptTarget(t)) ? p.factory.createIdentifier(e.text) : p.isNoSubstitutionTemplateLiteral(e) ? p.factory.createStringLiteral(e.text, 0 === r) : e; + return + }(e, d, a)) && o(r, n, i)) : p.isObjectLiteralExpression(n) ? p.forEach(n.properties, function(e) { + (p.isMethodDeclaration(e) || p.isGetOrSetAccessorDeclaration(e)) && r.push(e), p.isPropertyAssignment(e) && p.isFunctionExpression(e.initializer) && o(r, e.initializer, e.name), g(e) + }) : p.isSourceFileJS(u) || p.isPropertyAccessExpression(e) && (a = p.factory.createPropertyDeclaration(s, e.name, void 0, void 0, n), p.copyLeadingComments(c.parent, a, u), r.push(a)) : r.push(p.factory.createPropertyDeclaration(s, t.name, void 0, void 0, void 0))) + } + } + t && t.valueDeclaration && 19 & t.flags && (e = t.valueDeclaration, p.isFunctionDeclaration(e) || p.isFunctionExpression(e) ? l.replaceNode(u, e, (r = e, t = i(t), r.body && t.unshift(p.factory.createConstructorDeclaration(void 0, r.parameters, r.body)), n = f(r, 93), p.factory.createClassDeclaration(n, r.name, void 0, void 0, t))) : p.isVariableDeclaration(e) && (n = function(e) { + var t = e.initializer; + if (!t || !p.isFunctionExpression(t) || !p.isIdentifier(e.name)) return; + var r = i(e.symbol); + t.body && r.unshift(p.factory.createConstructorDeclaration(void 0, t.parameters, t.body)); + t = f(e.parent.parent, 93); + return p.factory.createClassDeclaration(t, e.name, void 0, void 0, r) + }(e)) && (r = e.parent.parent, p.isVariableDeclarationList(e.parent) && 1 < e.parent.declarations.length ? (l.delete(u, e), l.insertNodeAfter(u, r, n)) : l.replaceNode(u, r, n))) + } + + function f(e, t) { + return p.canHaveModifiers(e) ? p.filter(e.modifiers, function(e) { + return e.kind === t + }) : void 0 + } + + function g(e) { + return !!e.name && !(!p.isIdentifier(e.name) || "constructor" !== e.name.text) + } + n = p.codefix || (p.codefix = {}), r = "convertFunctionToEs6Class", e = [p.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code], n.registerCodeFix({ + errorCodes: e, + getCodeActions: function(t) { + var e = p.textChanges.ChangeTracker.with(t, function(e) { + return i(e, t.sourceFile, t.span.start, t.program.getTypeChecker(), t.preferences, t.program.getCompilerOptions()) + }); + return [n.createCodeFixAction(r, e, p.Diagnostics.Convert_function_to_an_ES2015_class, r, p.Diagnostics.Convert_all_constructor_functions_to_classes)] + }, + fixIds: [r], + getAllCodeActions: function(r) { + return n.codeFixAll(r, e, function(e, t) { + return i(e, t.file, t.start, r.program.getTypeChecker(), r.preferences, r.program.getCompilerOptions()) + }) + } + }) + }(ts = ts || {}), ! function(S) { + var n, r, e, b; + + function i(i, a, e, t) { + var r = S.getTokenAtPosition(a, e), + r = S.isIdentifier(r) && S.isVariableDeclaration(r.parent) && r.parent.initializer && S.isFunctionLikeDeclaration(r.parent.initializer) ? r.parent.initializer : S.tryCast(S.getContainingFunction(S.getTokenAtPosition(a, e)), S.canBeConvertedToAsync); + if (r) { + var n, o, s, c, l, u, e = new S.Map, + _ = S.isInJSFile(r), + d = (n = t, (d = r).body ? (o = new S.Set, S.forEachChild(d.body, function e(t) { + x(t, n, "then") ? (o.add(S.getNodeId(t)), S.forEach(t.arguments, e)) : x(t, n, "catch") || x(t, n, "finally") ? (o.add(S.getNodeId(t)), S.forEachChild(t, e)) : C(t, n) ? o.add(S.getNodeId(t)) : S.forEachChild(t, e) + }), o) : new S.Set), + p = (p = r, s = t, c = e, l = new S.Map, u = S.createMultiMap(), S.forEachChild(p, function e(t) { + var r, n, i, a, o; + S.isIdentifier(t) ? (r = s.getSymbolAtLocation(t)) && (o = P(s.getTypeAtLocation(t), s), n = S.getSymbolId(r).toString(), !o || S.isParameter(t.parent) || S.isFunctionLikeDeclaration(t.parent) || c.has(n) ? t.parent && (S.isParameter(t.parent) || S.isVariableDeclaration(t.parent) || S.isBindingElement(t.parent)) && (a = t.text, (i = u.get(a)) && i.some(function(e) { + return e !== r + }) ? (i = D(t, u), l.set(n, i.identifier), c.set(n, i)) : (i = S.getSynthesizedDeepClone(t), c.set(n, I(i))), u.add(a, r)) : (o = D(a = (null == (i = S.firstOrUndefined(o.parameters)) ? void 0 : i.valueDeclaration) && S.isParameter(i.valueDeclaration) && S.tryCast(i.valueDeclaration.name, S.isIdentifier) || S.factory.createUniqueName("result", 16), u), c.set(n, o), u.add(a.text, r))) : S.forEachChild(t, e) + }), S.getSynthesizedDeepCloneWithReplacements(p, !0, function(e) { + var t, r; + if (S.isBindingElement(e) && S.isIdentifier(e.name) && S.isObjectBindingPattern(e.parent)) { + if ((r = (t = s.getSymbolAtLocation(e.name)) && l.get(String(S.getSymbolId(t)))) && r.text !== (e.name || e.propertyName).getText()) return S.factory.createBindingElement(e.dotDotDotToken, e.propertyName || e.name, r, e.initializer) + } else if (S.isIdentifier(e)) + if (r = (t = s.getSymbolAtLocation(e)) && l.get(String(S.getSymbolId(t)))) return S.factory.createIdentifier(r.text) + })); + if (S.returnsPromise(p, t)) { + var f, g, p = p.body && S.isBlock(p.body) ? (p = p.body, f = t, g = [], S.forEachReturnStatement(p, function(e) { + S.isReturnStatementWithFixablePromiseHandler(e, f) && g.push(e) + }), g) : S.emptyArray, + m = { + checker: t, + synthNamesMap: e, + setOfExpressionsToReturn: d, + isInJSFile: _ + }; + if (p.length) + for (var t = S.skipTrivia(a.text, S.moveRangePastModifiers(r).pos), y = (i.insertModifierAt(a, t, 132, { + suffix: " " + }), 0), h = p; y < h.length; y++) { + var v = function(n) { + if (S.forEachChild(n, function e(t) { + if (S.isCallExpression(t)) { + var r = k(t, t, m, !1); + if (!b) return !0; + i.replaceNodeWithNodes(a, n, r) + } else if (!S.isFunctionLike(t) && (S.forEachChild(t, e), !b)) return !0 + }), !b) return { + value: void 0 + } + }(h[y]); + if ("object" == typeof v) return v.value + } + } + } + } + + function x(e, t, r) { + if (S.isCallExpression(e)) return (r = S.hasPropertyAccessExpressionWithName(e, r) && t.getTypeAtLocation(e)) && t.getPromisedTypeOfPromise(r) + } + + function a(e, t) { + return 0 != (4 & S.getObjectFlags(e)) && e.target === t + } + + function T(e, t, r) { + var n; + return "finally" !== e.expression.name.escapedText && (a(n = r.getTypeAtLocation(e.expression.expression), r.getPromiseType()) || a(n, r.getPromiseLikeType())) ? "then" !== e.expression.name.escapedText || t === S.elementAt(e.arguments, 0) ? S.elementAt(e.typeArguments, 0) : t === S.elementAt(e.arguments, 1) ? S.elementAt(e.typeArguments, 1) : void 0 : void 0 + } + + function C(e, t) { + return S.isExpression(e) && t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)) + } + + function D(e, t) { + t = (t.get(e.text) || S.emptyArray).length; + return I(0 === t ? e : S.factory.createIdentifier(e.text + "_" + t)) + } + + function E() { + return b = !1, S.emptyArray + } + + function k(e, t, r, n, i) { + var a, o, s, c, l, u, _, d; + return x(t, r.checker, "then") ? (c = t, _ = S.elementAt(t.arguments, 0), s = S.elementAt(t.arguments, 1), l = r, a = n, o = i, !_ || p(l, _) ? m(c, s, l, a, o) : (!s || p(l, s)) && (s = h(_, l), u = k(c.expression.expression, c.expression.expression, l, !0, s), b) && (_ = y(_, a, o, s, c, l), b) ? S.concatenate(u, _) : E()) : x(t, r.checker, "catch") ? m(t, S.elementAt(t.arguments, 0), r, n, i) : x(t, r.checker, "finally") ? (a = t, o = S.elementAt(t.arguments, 0), s = r, c = n, l = i, !o || p(s, o) ? k(a, a.expression.expression, s, c, l) : (u = f(a, s, l), _ = k(a, a.expression.expression, s, !0, u), b && (o = y(o, c, void 0, void 0, a, s), b) ? (c = S.factory.createBlock(_), _ = S.factory.createBlock(o), o = S.factory.createTryStatement(c, void 0, _), g(a, s, o, u, l)) : E())) : S.isPropertyAccessExpression(t) ? k(e, t.expression, r, n, i) : (d = r.checker.getTypeAtLocation(t)) && r.checker.getPromisedTypeOfPromise(d) ? (S.Debug.assertNode(S.getOriginalNode(t).parent, S.isPropertyAccessExpression), d = t, t = n, n = i, R(i = e, r) ? (i = S.getSynthesizedDeepClone(d), t && (i = S.factory.createAwaitExpression(i)), [S.factory.createReturnStatement(i)]) : N(n, S.factory.createAwaitExpression(d), void 0)) : E() + } + + function p(e, t) { + e = e.checker; + return 104 === t.kind || (S.isIdentifier(t) && !S.isGeneratedIdentifier(t) && "undefined" === S.idText(t) ? !(t = e.getSymbolAtLocation(t)) || e.isUndefinedSymbol(t) : void 0) + } + + function f(e, r, n) { + var t; + return n && !R(e, r) && (L(n) ? (t = n, r.synthNamesMap.forEach(function(e, t) { + e.identifier.text === n.identifier.text && (e = I(S.factory.createUniqueName(n.identifier.text, 16)), r.synthNamesMap.set(t, e)) + })) : t = I(S.factory.createUniqueName("result", 16), n.types), l(t)), t + } + + function g(e, t, r, n, i) { + var a, o = []; + return n && !R(e, t) && (a = S.getSynthesizedDeepClone(l(n)), e = n.types, n = t.checker.getUnionType(e, 2), e = t.isInJSFile ? void 0 : t.checker.typeToTypeNode(n, void 0, void 0), t = [S.factory.createVariableDeclaration(a, void 0, e)], n = S.factory.createVariableStatement(void 0, S.factory.createVariableDeclarationList(t, 1)), o.push(n)), o.push(r), i && a && 1 === i.kind && o.push(S.factory.createVariableStatement(void 0, S.factory.createVariableDeclarationList([S.factory.createVariableDeclaration(S.getSynthesizedDeepClone(c(i)), void 0, void 0, a)], 2))), o + } + + function m(e, t, r, n, i) { + var a, o, s; + return !t || p(r, t) ? k(e, e.expression.expression, r, n, i) : (a = h(t, r), o = f(e, r, i), s = k(e, e.expression.expression, r, !0, o), b && (t = y(t, n, o, a, e, r), b) ? (n = S.factory.createBlock(s), s = S.factory.createCatchClause(a && S.getSynthesizedDeepClone(M(a)), S.factory.createBlock(t)), g(e, r, S.factory.createTryStatement(n, s, void 0), o, i)) : E()) + } + + function N(e, t, r) { + return !e || o(e) ? [S.factory.createExpressionStatement(t)] : L(e) && e.hasBeenDeclared ? [S.factory.createExpressionStatement(S.factory.createAssignment(S.getSynthesizedDeepClone(O(e)), t))] : [S.factory.createVariableStatement(void 0, S.factory.createVariableDeclarationList([S.factory.createVariableDeclaration(S.getSynthesizedDeepClone(M(e)), void 0, r, t)], 2))] + } + + function A(e, t) { + var r; + return t && e ? (r = S.factory.createUniqueName("result", 16), __spreadArray(__spreadArray([], N(I(r), e, t), !0), [S.factory.createReturnStatement(r)], !1)) : [S.factory.createReturnStatement(e)] + } + + function y(e, t, r, n, i, a) { + switch (e.kind) { + case 104: + break; + case 208: + case 79: + if (n) return f = S.factory.createCallExpression(S.getSynthesizedDeepClone(e), void 0, L(n) ? [O(n)] : []), R(i, a) ? A(f, T(i, e, a.checker)) : (o = a.checker.getTypeAtLocation(e), (o = a.checker.getSignaturesOfType(o, 0)).length ? (o = o[0].getReturnType(), f = N(r, S.factory.createAwaitExpression(f), T(i, e, a.checker)), r && r.types.push(a.checker.getAwaitedType(o) || o), f) : E()); + break; + case 215: + case 216: + var o = e.body, + s = null == (f = P(a.checker.getTypeAtLocation(e), a.checker)) ? void 0 : f.getReturnType(); + if (S.isBlock(o)) { + for (var c = [], l = !1, u = 0, _ = o.statements; u < _.length; u++) { + var d = _[u]; + if (S.isReturnStatement(d)) { + var p, l = !0; + S.isReturnStatementWithFixablePromiseHandler(d, a.checker) ? c = c.concat(w(a, d, t, r)) : (p = s && d.expression ? F(a.checker, s, d.expression) : d.expression, c.push.apply(c, A(p, T(i, e, a.checker)))) + } else { + if (t && S.forEachReturnStatement(d, S.returnTrue)) return E(); + c.push(d) + } + } + if (R(i, a)) return c.map(function(e) { + return S.getSynthesizedDeepClone(e) + }); + else { + var f = c; + var g = r; + var m = a; + var y = l; + for (var h = [], v = 0, b = f; v < b.length; v++) { + var x, D = b[v]; + S.isReturnStatement(D) ? D.expression && (x = C(D.expression, m.checker) ? S.factory.createAwaitExpression(D.expression) : D.expression, void 0 === g ? h.push(S.factory.createExpressionStatement(x)) : L(g) && g.hasBeenDeclared ? h.push(S.factory.createExpressionStatement(S.factory.createAssignment(O(g), x))) : h.push(S.factory.createVariableStatement(void 0, S.factory.createVariableDeclarationList([S.factory.createVariableDeclaration(M(g), void 0, void 0, x)], 2)))) : h.push(S.getSynthesizedDeepClone(D)) + } + y || void 0 === g || h.push(S.factory.createVariableStatement(void 0, S.factory.createVariableDeclarationList([S.factory.createVariableDeclaration(M(g), void 0, void 0, S.factory.createIdentifier("undefined"))], 2))); + return h; + return + } + } + return 0 < (y = S.isFixablePromiseHandler(o, a.checker) ? w(a, S.factory.createReturnStatement(o), t, r) : S.emptyArray).length ? y : s ? (p = F(a.checker, s, o), R(i, a) ? A(p, T(i, e, a.checker)) : (o = N(r, p, void 0), r && r.types.push(a.checker.getAwaitedType(s) || s), o)) : E(); + default: + return E() + } + return S.emptyArray + } + + function F(e, t, r) { + r = S.getSynthesizedDeepClone(r); + return e.getPromisedTypeOfPromise(t) ? S.factory.createAwaitExpression(r) : r + } + + function P(e, t) { + t = t.getSignaturesOfType(e, 0); + return S.lastOrUndefined(t) + } + + function w(n, e, i, a) { + var o = []; + return S.forEachChild(e, function e(t) { + var r; + S.isCallExpression(t) ? (r = k(t, t, n, i, a), (o = o.concat(r)).length) : S.isFunctionLike(t) || S.forEachChild(t, e) + }), o + } + + function h(e, r) { + var t, n = []; + if (S.isFunctionLikeDeclaration(e) ? 0 < e.parameters.length && (t = function t(e) { + if (S.isIdentifier(e)) return i(e); + var r = S.flatMap(e.elements, function(e) { + return S.isOmittedExpression(e) ? [] : [t(e.name)] + }); + return s(e, r) + }(e.parameters[0].name)) : S.isIdentifier(e) ? t = i(e) : S.isPropertyAccessExpression(e) && S.isIdentifier(e.name) && (t = i(e.name)), t && !("identifier" in t && "undefined" === t.identifier.text)) return t; + + function i(e) { + var t = (t = e).original || t, + t = (t = t).symbol || r.checker.getSymbolAtLocation(t); + return t && r.synthNamesMap.get(S.getSymbolId(t).toString()) || I(e, n) + } + } + + function o(e) { + return !e || (L(e) ? !e.identifier.text : S.every(e.elements, o)) + } + + function I(e, t) { + return { + kind: 0, + identifier: e, + types: t = void 0 === t ? [] : t, + hasBeenDeclared: !1, + hasBeenReferenced: !1 + } + } + + function s(e, t, r) { + return { + kind: 1, + bindingPattern: e, + elements: t = void 0 === t ? S.emptyArray : t, + types: r = void 0 === r ? [] : r + } + } + + function O(e) { + return e.hasBeenReferenced = !0, e.identifier + } + + function M(e) { + return (L(e) ? l : c)(e) + } + + function c(e) { + for (var t = 0, r = e.elements; t < r.length; t++) M(r[t]); + return e.bindingPattern + } + + function l(e) { + return e.hasBeenDeclared = !0, e.identifier + } + + function L(e) { + return 0 === e.kind + } + + function R(e, t) { + return e.original && t.setOfExpressionsToReturn.has(S.getNodeId(e.original)) + } + n = S.codefix || (S.codefix = {}), r = "convertToAsyncFunction", e = [S.Diagnostics.This_may_be_converted_to_an_async_function.code], b = !0, n.registerCodeFix({ + errorCodes: e, + getCodeActions: function(t) { + b = !0; + var e = S.textChanges.ChangeTracker.with(t, function(e) { + return i(e, t.sourceFile, t.span.start, t.program.getTypeChecker()) + }); + return b ? [n.createCodeFixAction(r, e, S.Diagnostics.Convert_to_async_function, r, S.Diagnostics.Convert_all_to_async_functions)] : [] + }, + fixIds: [r], + getAllCodeActions: function(r) { + return n.codeFixAll(r, e, function(e, t) { + return i(e, t.file, t.start, r.program.getTypeChecker()) + }) + } + }) + }(ts = ts || {}), ! function(S) { + var T; + + function m(n, i) { + n.forEachChild(function e(t) { + var r; + S.isPropertyAccessExpression(t) && S.isExportsOrModuleExportsOrAlias(n, t.expression) && S.isIdentifier(t.name) && (r = t.parent, i(t, S.isBinaryExpression(r) && r.left === t && 63 === r.operatorToken.kind)), t.forEachChild(e) + }) + } + + function y(m, e, t, y, h, v, b) { + var r, x = e.declarationList, + D = !1, + n = S.map(x.declarations, function(e) { + var t = e.name, + r = e.initializer; + if (r) { + if (S.isExportsOrModuleExportsOrAlias(m, r)) return D = !0, F([]); + if (S.isRequireCall(r, !0)) { + D = !0; + var n = t, + i = r.arguments[0], + a = y, + o = h, + s = v, + c = b; + switch (n.kind) { + case 203: + var l = S.mapAllOrFail(n.elements, function(e) { + return e.dotDotDotToken || e.initializer || e.propertyName && !S.isIdentifier(e.propertyName) || !S.isIdentifier(e.name) ? void 0 : k(e.propertyName && e.propertyName.text, e.name.text) + }); + if (l) return F([S.makeImport(void 0, l, i, c)]); + case 204: + l = C(T.moduleSpecifierToValidIdentifier(i.text, s), o); + return F([S.makeImport(S.factory.createIdentifier(l), void 0, i, c), N(void 0, S.getSynthesizedDeepClone(n), S.factory.createIdentifier(l))]); + case 79: + return function(e, t, r, n, i) { + for (var a, o = r.getSymbolAtLocation(e), s = new S.Map, c = !1, l = 0, u = n.original.get(e.text); l < u.length; l++) { + var _, d, p, f = u[l]; + r.getSymbolAtLocation(f) === o && f !== e && (_ = f.parent, S.isPropertyAccessExpression(_) ? "default" === (d = _.name.text) ? (c = !0, p = f.getText(), (null != a ? a : a = new S.Map).set(_, S.factory.createIdentifier(p))) : (S.Debug.assert(_.expression === f, "Didn't expect expression === use"), void 0 === (p = s.get(d)) && (p = C(d, n), s.set(d, p)), (null != a ? a : a = new S.Map).set(_, S.factory.createIdentifier(p))) : c = !0) + } + var g = 0 === s.size ? void 0 : S.arrayFrom(S.mapIterator(s.entries(), function(e) { + var t = e[0], + e = e[1]; + return S.factory.createImportSpecifier(!1, t === e ? void 0 : S.factory.createIdentifier(t), S.factory.createIdentifier(e)) + })); + g || (c = !0); + return F([S.makeImport(c ? S.getSynthesizedDeepClone(e) : void 0, g, t, i)], a) + }(n, i, a, o, c); + default: + return S.Debug.assertNever(n, "Convert to ES module got invalid name kind ".concat(n.kind)) + } + return + } + if (S.isPropertyAccessExpression(r) && S.isRequireCall(r.expression, !0)) { + D = !0; + var u = t, + _ = r.name.text, + d = r.expression.arguments[0], + p = h, + f = b; + switch (u.kind) { + case 203: + case 204: + var g = C(_, p); + return F([E(g, _, d, f), N(void 0, u, S.factory.createIdentifier(g))]); + case 79: + return F([E(u.text, _, d, f)]); + default: + return S.Debug.assertNever(u, "Convert to ES module got invalid syntax form ".concat(u.kind)) + } + return + } + } + return F([S.factory.createVariableStatement(void 0, S.factory.createVariableDeclarationList([e], x.flags))]) + }); + if (D) return t.replaceNodeWithNodes(m, e, S.flatMap(n, function(e) { + return e.newImports + })), S.forEach(n, function(e) { + e.useSitesToUnqualify && S.copyEntries(e.useSitesToUnqualify, null != r ? r : r = new S.Map) + }), r + } + + function h(e) { + return A(void 0, e) + } + + function v(e) { + return A([S.factory.createExportSpecifier(!1, void 0, "default")], e) + } + + function b(t, r) { + return r && S.some(S.arrayFrom(r.keys()), function(e) { + return S.rangeContainsRange(t, e) + }) ? S.isArray(t) ? S.getSynthesizedDeepClonesWithReplacements(t, !0, e) : S.getSynthesizedDeepCloneWithReplacements(t, !0, e) : t; + + function e(e) { + var t; + if (208 === e.kind) return t = r.get(e), r.delete(e), t + } + } + + function C(e, t) { + for (; t.original.has(e) || t.additional.has(e);) e = "_".concat(e); + return t.additional.add(e), e + } + + function x(e) { + var t = e.parent; + switch (t.kind) { + case 208: + return t.name !== e; + case 205: + case 273: + return t.propertyName !== e; + default: + return !0 + } + } + + function D(e, t, r, n) { + return S.factory.createFunctionDeclaration(S.concatenate(t, S.getSynthesizedDeepClones(r.modifiers)), S.getSynthesizedDeepClone(r.asteriskToken), e, S.getSynthesizedDeepClones(r.typeParameters), S.getSynthesizedDeepClones(r.parameters), S.getSynthesizedDeepClone(r.type), S.factory.converters.convertToFunctionBlock(b(r.body, n))) + } + + function E(e, t, r, n) { + return "default" === t ? S.makeImport(S.factory.createIdentifier(e), void 0, r, n) : S.makeImport(void 0, [k(t, e)], r, n) + } + + function k(e, t) { + return S.factory.createImportSpecifier(!1, void 0 !== e && e !== t ? S.factory.createIdentifier(e) : void 0, S.factory.createIdentifier(t)) + } + + function N(e, t, r) { + return S.factory.createVariableStatement(e, S.factory.createVariableDeclarationList([S.factory.createVariableDeclaration(t, void 0, void 0, r)], 2)) + } + + function A(e, t) { + return S.factory.createExportDeclaration(void 0, !1, e && S.factory.createNamedExports(e), void 0 === t ? void 0 : S.factory.createStringLiteral(t)) + } + + function F(e, t) { + return { + newImports: e, + useSitesToUnqualify: t + } + }(T = S.codefix || (S.codefix = {})).registerCodeFix({ + errorCodes: [S.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code], + getCodeActions: function(e) { + var p = e.sourceFile, + f = e.program, + g = e.preferences, + e = S.textChanges.ChangeTracker.with(e, function(e) { + if (function(r, e, n, t, i) { + for (var a, o = { + original: function(e) { + var t = S.createMultiMap(); + return function t(e, r) { + S.isIdentifier(e) && x(e) && r(e); + e.forEachChild(function(e) { + return t(e, r) + }) + }(e, function(e) { + return t.add(e.text, e) + }), t + }(r), + additional: new S.Set + }, s = function(e, n, i) { + var a = new S.Map; + return m(e, function(e) { + var t = e.name, + r = t.text, + t = t.originalKeywordKind; + !a.has(r) && (void 0 !== t && S.isNonContextualKeyword(t) || n.resolveName(r, e, 111551, !0)) && a.set(r, C("_".concat(r), i)) + }), a + }(r, e, o), c = (function(r, n, i) { + m(r, function(e, t) { + t || (t = e.name.text, i.replaceNode(r, e, S.factory.createIdentifier(n.get(t) || t))) + }) + }(r, s, n), !1), l = 0, u = S.filter(r.statements, S.isVariableStatement); l < u.length; l++) { + var _ = u[l], + d = y(r, _, n, e, o, t, i); + d && S.copyEntries(d, null != a ? a : a = new S.Map) + } + for (var p = 0, f = S.filter(r.statements, function(e) { + return !S.isVariableStatement(e) + }); p < f.length; p++) { + var _ = f[p], + g = function(e, t, r, n, i, a, o, s, c) { + switch (t.kind) { + case 240: + return y(e, t, n, r, i, a, c), !1; + case 241: + var l = t.expression; + switch (l.kind) { + case 210: + return S.isRequireCall(l, !0) && n.replaceNode(e, t, S.makeImport(void 0, void 0, l.arguments[0], c)), !1; + case 223: + return 63 === l.operatorToken.kind && function(e, t, r, n, i, a) { + var o = r.left, + s = r.right; + if (S.isPropertyAccessExpression(o)) + if (S.isExportsOrModuleExportsOrAlias(e, o)) { + if (!S.isExportsOrModuleExportsOrAlias(e, s)) return (a = S.isObjectLiteralExpression(s) ? function(e, s) { + e = S.mapAllOrFail(e.properties, function(e) { + switch (e.kind) { + case 174: + case 175: + case 300: + case 301: + return; + case 299: + if (S.isIdentifier(e.name)) { + var t = e.name.text; + var r = e.initializer; + var n = s; + var i = [S.factory.createToken(93)]; + switch (r.kind) { + case 215: + var a = r.name; + if (a && a.text !== t) return o(); + case 216: + return D(t, i, r, n); + case 228: + return function(e, t, r, n) { + return S.factory.createClassDeclaration(S.concatenate(t, S.getSynthesizedDeepClones(r.modifiers)), e, S.getSynthesizedDeepClones(r.typeParameters), S.getSynthesizedDeepClones(r.heritageClauses), b(r.members, n)) + }(t, i, r, n); + default: + return o() + } + + function o() { + return N(i, S.factory.createIdentifier(t), b(r, n)) + } + return + } else return void 0; + case 171: + return S.isIdentifier(e.name) ? D(e.name.text, [S.factory.createToken(93)], e, s) : void 0; + default: + S.Debug.assertNever(e, "Convert to ES6 got invalid prop kind ".concat(e.kind)) + } + }); + return e && [e, !1] + }(s, a) : S.isRequireCall(s, !0) ? function(e, t) { + var r = e.text, + t = t.getSymbolAtLocation(e), + e = t ? t.exports : S.emptyMap; + return e.has("export=") ? [ + [v(r)], !0 + ] : e.has("default") ? 1 < e.size ? [ + [h(r), v(r)], !0 + ] : [ + [v(r)], !0 + ] : [ + [h(r)], !1 + ] + }(s.arguments[0], t) : void 0) ? (n.replaceNodeWithNodes(e, r.parent, a[0]), a[1]) : (n.replaceRangeWithText(e, S.createRange(o.getStart(e), s.pos), "export default"), !0); + n.delete(e, r.parent) + } else if (S.isExportsOrModuleExportsOrAlias(e, o.expression)) { + t = e; + a = r; + s = n; + o = i; + e = a.left.name.text, o = o.get(e); + void 0 !== o ? (o = [N(void 0, o, a.right), A([S.factory.createExportSpecifier(!1, o, e)])], s.replaceNodeWithNodes(t, a.parent, o)) : function(e, t, r) { + var n = e.left, + i = e.right, + e = e.parent, + a = n.name.text; + !(S.isFunctionExpression(i) || S.isArrowFunction(i) || S.isClassExpression(i)) || i.name && i.name.text !== a ? r.replaceNodeRangeWithNodes(t, n.expression, S.findChildOfKind(n, 24, t), [S.factory.createToken(93), S.factory.createToken(85)], { + joiner: " ", + suffix: " " + }) : (r.replaceRange(t, { + pos: n.getStart(t), + end: i.getStart(t) + }, S.factory.createToken(93), { + suffix: " " + }), i.name || r.insertName(t, i, a), (n = S.findChildOfKind(e, 26, t)) && r.delete(t, n)) + }(a, t, s) + } + return !1 + }(e, r, l, n, o, s) + } + default: + return !1 + } + }(r, _, e, n, o, t, s, a, i); + c = c || g + } + return null == a || a.forEach(function(e, t) { + n.replaceNode(r, t, e) + }), c + }(p, f.getTypeChecker(), e, S.getEmitScriptTarget(f.getCompilerOptions()), S.getQuotePreference(p, g))) + for (var t = 0, r = f.getSourceFiles(); t < r.length; t++) + for (var n = r[t], i = (d = _ = u = l = c = s = o = a = i = void 0, n), a = p, o = e, s = S.getQuotePreference(n, g), c = 0, l = i.imports; c < l.length; c++) { + var u = l[c], + _ = S.getResolvedModule(i, u.text, S.getModeForUsageLocation(i, u)); + if (_ && _.resolvedFileName === a.fileName) { + var d = S.importFromModuleSpecifier(u); + switch (d.kind) { + case 268: + o.replaceNode(i, d, S.makeImport(d.name, void 0, u, s)); + break; + case 210: + S.isRequireCall(d, !1) && o.replaceNode(i, d, S.factory.createPropertyAccessExpression(S.getSynthesizedDeepClone(d), "default")) + } + } + } + }); + return [T.createCodeFixActionWithoutFixAll("convertToEsModule", e, S.Diagnostics.Convert_to_ES_module)] + } + }) + }(ts = ts || {}), ! function(i) { + var a, o, t; + + function s(e, t) { + e = i.findAncestor(i.getTokenAtPosition(e, t), i.isQualifiedName); + return i.Debug.assert(!!e, "Expected position to be owned by a qualified name."), i.isIdentifier(e.left) ? e : void 0 + } + + function c(e, t, r) { + var n = r.right.text, + n = i.factory.createIndexedAccessTypeNode(i.factory.createTypeReferenceNode(r.left, void 0), i.factory.createLiteralTypeNode(i.factory.createStringLiteral(n))); + e.replaceNode(t, r, n) + } + a = i.codefix || (i.codefix = {}), o = "correctQualifiedNameToIndexedAccessType", t = [i.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code], a.registerCodeFix({ + errorCodes: t, + getCodeActions: function(t) { + var e, r, n = s(t.sourceFile, t.span.start); + if (n) return e = i.textChanges.ChangeTracker.with(t, function(e) { + return c(e, t.sourceFile, n) + }), r = "".concat(n.left.text, '["').concat(n.right.text, '"]'), [a.createCodeFixAction(o, e, [i.Diagnostics.Rewrite_as_the_indexed_access_type_0, r], o, i.Diagnostics.Rewrite_all_as_indexed_access_types)] + }, + fixIds: [o], + getAllCodeActions: function(e) { + return a.codeFixAll(e, t, function(e, t) { + var r = s(t.file, t.start); + r && c(e, t.file, r) + }) + } + }) + }(ts = ts || {}), ! function(o) { + var i, s, r; + + function a(e, t) { + return o.tryCast(o.getTokenAtPosition(t, e.start).parent, o.isExportSpecifier) + } + + function c(e, t, r) { + var n, i, a; + t && (n = (a = t.parent).parent, (i = function(t, e) { + var r = t.parent; + if (1 === r.elements.length) return r.elements; + var n = o.getDiagnosticsWithinSpan(o.createTextSpanFromNode(r), e.program.getSemanticDiagnostics(e.sourceFile, e.cancellationToken)); + return o.filter(r.elements, function(e) { + return e === t || (null == (e = o.findDiagnosticForNode(e, n)) ? void 0 : e.code) === s[0] + }) + }(t, r)).length === a.elements.length ? e.insertModifierBefore(r.sourceFile, 154, a) : (t = o.factory.updateExportDeclaration(n, n.modifiers, !1, o.factory.updateNamedExports(a, o.filter(a.elements, function(e) { + return !o.contains(i, e) + })), n.moduleSpecifier, void 0), a = o.factory.createExportDeclaration(void 0, !0, o.factory.createNamedExports(i), n.moduleSpecifier, void 0), e.replaceNode(r.sourceFile, n, t, { + leadingTriviaOption: o.textChanges.LeadingTriviaOption.IncludeAll, + trailingTriviaOption: o.textChanges.TrailingTriviaOption.Exclude + }), e.insertNodeAfter(r.sourceFile, n, a))) + } + i = o.codefix || (o.codefix = {}), s = [o.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code], r = "convertToTypeOnlyExport", i.registerCodeFix({ + errorCodes: s, + getCodeActions: function(t) { + var e = o.textChanges.ChangeTracker.with(t, function(e) { + return c(e, a(t.span, t.sourceFile), t) + }); + if (e.length) return [i.createCodeFixAction(r, e, o.Diagnostics.Convert_to_type_only_export, r, o.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)] + }, + fixIds: [r], + getAllCodeActions: function(r) { + var n = new o.Map; + return i.codeFixAll(r, s, function(e, t) { + t = a(t, r.sourceFile); + t && o.addToSeen(n, o.getNodeId(t.parent.parent)) && c(e, t, r) + }) + } + }) + }(ts = ts || {}), ! function(i) { + var n, e, r; + + function a(e, t) { + return i.tryCast(i.getTokenAtPosition(t, e.start).parent, i.isImportDeclaration) + } + + function o(e, t, r) { + var n; + null != t && t.importClause && (n = t.importClause, e.insertText(r.sourceFile, t.getStart() + "import".length, " type"), n.name) && n.namedBindings && (e.deleteNodeRangeExcludingEnd(r.sourceFile, n.name, t.importClause.namedBindings), e.insertNodeBefore(r.sourceFile, t, i.factory.updateImportDeclaration(t, void 0, i.factory.createImportClause(!0, n.name, void 0), t.moduleSpecifier, void 0))) + } + n = i.codefix || (i.codefix = {}), e = [i.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code], r = "convertToTypeOnlyImport", n.registerCodeFix({ + errorCodes: e, + getCodeActions: function(t) { + var e = i.textChanges.ChangeTracker.with(t, function(e) { + o(e, a(t.span, t.sourceFile), t) + }); + if (e.length) return [n.createCodeFixAction(r, e, i.Diagnostics.Convert_to_type_only_import, r, i.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)] + }, + fixIds: [r], + getAllCodeActions: function(r) { + return n.codeFixAll(r, e, function(e, t) { + o(e, a(t, r.sourceFile), r) + }) + } + }) + }(ts = ts || {}), ! function(o) { + var a, s, t; + + function c(e, t) { + var r, t = o.getTokenAtPosition(e, t); + if (o.isIdentifier(t)) return r = o.cast(t.parent.parent, o.isPropertySignature), t = t.getText(e), { + container: o.cast(r.parent, o.isTypeLiteralNode), + typeNode: r.type, + constraint: t, + name: "K" === t ? "P" : "K" + } + } + + function l(e, t, r) { + var n = r.container, + i = r.typeNode, + a = r.constraint, + r = r.name; + e.replaceNode(t, n, o.factory.createMappedTypeNode(void 0, o.factory.createTypeParameterDeclaration(void 0, r, o.factory.createTypeReferenceNode(a)), void 0, void 0, i, void 0)) + } + a = o.codefix || (o.codefix = {}), s = "convertLiteralTypeToMappedType", t = [o.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code], a.registerCodeFix({ + errorCodes: t, + getCodeActions: function(e) { + var t, r = e.sourceFile, + n = e.span, + i = c(r, n.start); + if (i) return n = i.name, t = i.constraint, e = o.textChanges.ChangeTracker.with(e, function(e) { + return l(e, r, i) + }), [a.createCodeFixAction(s, e, [o.Diagnostics.Convert_0_to_1_in_0, t, n], s, o.Diagnostics.Convert_all_type_literals_to_mapped_type)] + }, + fixIds: [s], + getAllCodeActions: function(e) { + return a.codeFixAll(e, t, function(e, t) { + var r = c(t.file, t.start); + r && l(e, t.file, r) + }) + } + }) + }(ts = ts || {}), ! function(p) { + var f, e, a; + + function c(e, t) { + return p.Debug.checkDefined(p.getContainingClass(p.getTokenAtPosition(e, t)), "There should be a containing class") + } + + function g(e) { + return !(e.valueDeclaration && 8 & p.getEffectiveModifierFlags(e.valueDeclaration)) + } + + function l(r, e, n, i, a, t) { + var o = r.program.getTypeChecker(), + s = (c = i, l = o, (c = p.getEffectiveBaseTypeNode(c)) ? (c = l.getTypeAtLocation(c), l = l.getPropertiesOfType(c), p.createSymbolTable(l.filter(g))) : p.createSymbolTable()), + c = o.getTypeAtLocation(e), + l = o.getPropertiesOfType(c).filter(p.and(g, function(e) { + return !s.has(e.escapedName) + })), + e = o.getTypeAtLocation(i), + u = p.find(i.members, function(e) { + return p.isConstructorDeclaration(e) + }), + e = (e.getNumberIndexType() || _(c, 1), e.getStringIndexType() || _(c, 0), f.createImportAdder(n, r.program, t, r.host)); + + function _(e, t) { + e = o.getIndexInfoOfType(e, t); + e && d(n, i, o.indexInfoToIndexSignatureDeclaration(e, i, void 0, f.getNoopSymbolTrackerWithResolver(r))) + } + + function d(e, t, r) { + u ? a.insertNodeAfter(e, u, r) : a.insertMemberAtStart(e, t, r) + } + f.createMissingMemberNodes(i, l, n, r, t, e, function(e) { + return d(n, i, e) + }), e.writeFixes(a) + } + f = p.codefix || (p.codefix = {}), e = [p.Diagnostics.Class_0_incorrectly_implements_interface_1.code, p.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code], a = "fixClassIncorrectlyImplementsInterface", f.registerCodeFix({ + errorCodes: e, + getCodeActions: function(r) { + var n = r.sourceFile, + e = r.span, + i = c(n, e.start); + return p.mapDefined(p.getEffectiveImplementsTypeNodes(i), function(t) { + var e = p.textChanges.ChangeTracker.with(r, function(e) { + return l(r, t, n, i, e, r.preferences) + }); + return 0 === e.length ? void 0 : f.createCodeFixAction(a, e, [p.Diagnostics.Implement_interface_0, t.getText(n)], a, p.Diagnostics.Implement_all_unimplemented_interfaces) + }) + }, + fixIds: [a], + getAllCodeActions: function(o) { + var s = new p.Map; + return f.codeFixAll(o, e, function(e, t) { + var r = c(t.file, t.start); + if (p.addToSeen(s, p.getNodeId(r))) + for (var n = 0, i = p.getEffectiveImplementsTypeNodes(r); n < i.length; n++) { + var a = i[n]; + l(o, a, t.file, r, e, o.preferences) + } + }) + } + }) + }(ts = ts || {}), ! function(C) { + var c, l, e; + + function a(c, a, r, l, o, s) { + var u = a.getCompilerOptions(), + d = [], + p = [], + f = new C.Map, + g = new C.Map; + return { + addImportFromDiagnostic: function(e, t) { + t = h(t, e.code, e.start, r); + t && t.length && _(C.first(t)) + }, + addImportFromExportedSymbol: function(e, t) { + var r = C.Debug.checkDefined(e.parent), + n = C.getNameForExportedSymbol(e, C.getEmitScriptTarget(u)), + i = a.getTypeChecker(), + e = i.getMergedSymbol(C.skipAlias(e, i)), + i = y(c, e, n, !1, a, o, l, s), + e = k(c, a), + i = m(c, C.Debug.checkDefined(i), r, a, void 0, !!t, e, o, l); + i && _({ + fix: i, + symbolName: n, + errorIdentifierText: void 0 + }) + }, + writeFixes: function(n) { + for (var a = C.getQuotePreference(c, l), e = 0, t = d; e < t.length; e++) { + var r = t[e]; + A(n, c, r) + } + for (var o, i = 0, s = p; i < s.length; i++) { + r = s[i]; + F(n, c, r, a) + } + f.forEach(function(e) { + var t = e.importClauseOrBindingPattern, + r = e.defaultImport, + e = e.namedImports; + N(n, c, t, r, C.arrayFrom(e.entries(), function(e) { + var t = e[0]; + return { + addAsTypeOnly: e[1], + name: t + } + }), u) + }), g.forEach(function(e, t) { + var r = e.useRequire, + n = e.defaultImport, + i = e.namedImports, + e = e.namespaceLikeImport, + r = (r ? O : I)(t.slice(2), a, n, i && C.arrayFrom(i.entries(), function(e) { + var t = e[0]; + return { + addAsTypeOnly: e[1], + name: t + } + }), e); + o = C.combine(o, r) + }), o && C.insertImports(n, c, o, !0) + }, + hasFixes: function() { + return 0 < d.length || 0 < p.length || 0 < f.size || 0 < g.size + } + }; + + function _(e) { + var t, r = e.fix, + n = e.symbolName; + switch (r.kind) { + case 0: + d.push(r); + break; + case 1: + p.push(r); + break; + case 2: + var i = r.importClauseOrBindingPattern, + a = r.importKind, + o = r.addAsTypeOnly, + s = String(C.getNodeId(i)); + (c = f.get(s)) || f.set(s, c = { + importClauseOrBindingPattern: i, + defaultImport: void 0, + namedImports: new C.Map + }), 0 === a ? (l = null == c ? void 0 : c.namedImports.get(n), c.namedImports.set(n, u(l, o))) : (C.Debug.assert(void 0 === c.defaultImport || c.defaultImport.name === n, "(Add to Existing) Default import should be missing or match symbolName"), c.defaultImport = { + name: n, + addAsTypeOnly: u(null == (s = c.defaultImport) ? void 0 : s.addAsTypeOnly, o) + }); + break; + case 3: + var i = r.moduleSpecifier, + a = r.importKind, + s = r.useRequire, + c = function(e, t, r, n) { + var i = _(e, !0), + e = _(e, !1), + a = g.get(i), + o = g.get(e), + r = { + defaultImport: void 0, + namedImports: void 0, + namespaceLikeImport: void 0, + useRequire: r + }; + if (1 === t && 2 === n) { + if (a) return a; + g.set(i, r) + } else { + if (1 === n && (a || o)) return a || o; + if (o) return o; + g.set(e, r) + } + return r + }(i, a, s, o = r.addAsTypeOnly); + switch (C.Debug.assert(c.useRequire === s, "(Add new) Tried to add an `import` and a `require` for the same module"), a) { + case 1: + C.Debug.assert(void 0 === c.defaultImport || c.defaultImport.name === n, "(Add new) Default import should be missing or match symbolName"), c.defaultImport = { + name: n, + addAsTypeOnly: u(null == (t = c.defaultImport) ? void 0 : t.addAsTypeOnly, o) + }; + break; + case 0: + var l = (c.namedImports || (c.namedImports = new C.Map)).get(n); + c.namedImports.set(n, u(l, o)); + break; + case 3: + case 2: + C.Debug.assert(void 0 === c.namespaceLikeImport || c.namespaceLikeImport.name === n, "Namespacelike import shoudl be missing or match symbolName"), c.namespaceLikeImport = { + importKind: a, + name: n, + addAsTypeOnly: o + } + } + break; + case 4: + break; + default: + C.Debug.assertNever(r, "fix wasn't never - got kind ".concat(r.kind)) + } + + function u(e, t) { + return Math.max(null != e ? e : 0, t) + } + + function _(e, t) { + return "".concat(t ? 1 : 0, "|").concat(e) + } + } + } + + function m(e, t, r, n, i, a, o, s, c) { + C.Debug.assert(t.some(function(e) { + return e.moduleSymbol === r || e.symbol.parent === r + }), "Some exportInfo should match the specified moduleSymbol"); + var l = C.createPackageJsonImportFilter(e, c, s); + return _(E(t, i, a, o, n, e, s, c).fixes, e, n, l, s) + } + + function d(e) { + return { + description: e.description, + changes: e.changes, + commands: e.commands + } + } + + function y(e, t, r, n, i, a, o, s) { + var c = x(i, a); + return C.getExportInfoMap(e, a, i, o, s).search(e.path, n, function(e) { + return e === r + }, function(e) { + if (C.skipAlias(e[0].symbol, c(e[0].isFromPackageJson)) === t) return e + }) + } + + function E(e, t, r, n, i, a, o, s, c, l) { + void 0 === c && (c = b(i.getTypeChecker(), a, i.getCompilerOptions())); + var u, _, d, p, f, g, m, y = i.getTypeChecker(), + c = C.flatMap(e, c.getImportsForExportInfo), + h = t && (u = t.symbolName, _ = t.position, d = y, C.firstDefined(c, function(e) { + var e = e.declaration, + t = function(e) { + var t; + switch (e.kind) { + case 257: + return null == (t = C.tryCast(e.name, C.isIdentifier)) ? void 0 : t.text; + case 268: + return e.name.text; + case 269: + return null == (t = C.tryCast(null == (t = e.importClause) ? void 0 : t.namedBindings, C.isNamespaceImport)) ? void 0 : t.name.text; + default: + return C.Debug.assertNever(e) + } + }(e), + r = null == (r = C.tryGetModuleSpecifierFromDeclaration(e)) ? void 0 : r.text; + if (t && r) { + e = function(e, t) { + switch (e.kind) { + case 257: + return t.resolveExternalModuleName(e.initializer.arguments[0]); + case 268: + return t.getAliasedSymbol(e.symbol); + case 269: + var r = C.tryCast(null == (r = e.importClause) ? void 0 : r.namedBindings, C.isNamespaceImport); + return r && t.getAliasedSymbol(r.symbol); + default: + return C.Debug.assertNever(e) + } + }(e, d); + if (e && e.exports.has(C.escapeLeadingUnderscores(u))) return { + kind: 0, + namespacePrefix: t, + position: _, + moduleSpecifier: r + } + } + })), + y = (m = c, p = r, f = y, g = i.getCompilerOptions(), C.firstDefined(m, function(e) { + var t = e.declaration, + r = e.importKind, + n = e.symbol, + e = e.targetFlags; + if (3 !== r && 2 !== r && 268 !== t.kind) { + if (257 === t.kind) return 0 !== r && 1 !== r || 203 !== t.name.kind ? void 0 : { + kind: 2, + importClauseOrBindingPattern: t.name, + importKind: r, + moduleSpecifier: t.initializer.arguments[0].text, + addAsTypeOnly: 4 + }; + var i = t.importClause; + if (i && C.isStringLiteralLike(t.moduleSpecifier)) { + var a = i.name, + o = i.namedBindings; + if (!i.isTypeOnly || 0 === r && o) { + n = v(p, !1, n, e, f, g); + if (!(1 === r && (a || 2 === n && o) || 0 === r && 271 === (null == o ? void 0 : o.kind))) return { + kind: 2, + importClauseOrBindingPattern: i, + importKind: r, + moduleSpecifier: t.moduleSpecifier.text, + addAsTypeOnly: n + } + } + } + } + })); + return y ? { + computedWithoutCacheCount: 0, + fixes: __spreadArray(__spreadArray([], h ? [h] : C.emptyArray, !0), [y], !1) + } : (y = (m = function(e, t, c, r, n, l, u, i, a, o) { + t = C.firstDefined(t, function(e) { + var t = l, + r = u, + n = c.getTypeChecker(), + i = c.getCompilerOptions(), + a = e.declaration, + o = e.importKind, + s = e.symbol, + e = e.targetFlags; + if (a = null == (a = C.tryGetModuleSpecifierFromDeclaration(a)) ? void 0 : a.text) return t = r ? 4 : v(t, !0, s, e, n, i), { + kind: 3, + moduleSpecifier: a, + importKind: o, + addAsTypeOnly: t, + useRequire: r + } + }); + return t ? { + fixes: [t] + } : function(e, s, c, l, u, t, r, n, i) { + var _ = C.isSourceFileJS(s), + d = e.getCompilerOptions(), + a = C.createModuleSpecifierResolutionHost(e, r), + p = x(e, r), + f = C.moduleResolutionUsesNodeModules(C.getEmitModuleResolutionKind(d)), + g = i ? function(e) { + return { + moduleSpecifiers: C.moduleSpecifiers.tryGetModuleSpecifiersFromCache(e, s, a, n), + computedWithoutCache: !1 + } + } : function(e, t) { + return C.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(e, t, d, s, a, n) + }, + m = 0, + e = C.flatMap(t, function(t, r) { + var e = p(t.isFromPackageJson), + n = g(t.moduleSymbol, e), + i = n.computedWithoutCache, + n = n.moduleSpecifiers, + a = !!(111551 & t.targetFlags), + o = v(l, !0, t.symbol, t.targetFlags, e, d); + return m += i ? 1 : 0, C.mapDefined(n, function(e) { + return f && C.pathContainsNodeModules(e) ? void 0 : !a && _ && void 0 !== c ? { + kind: 1, + moduleSpecifier: e, + position: c, + exportInfo: t, + isReExport: 0 < r + } : { + kind: 3, + moduleSpecifier: e, + importKind: D(s, t.exportKind, d), + useRequire: u, + addAsTypeOnly: o, + exportInfo: t, + isReExport: 0 < r + } + }) + }); + return { + computedWithoutCacheCount: m, + fixes: e + } + }(c, r, n, l, u, e, i, a, o) + }(e, c, i, a, null == t ? void 0 : t.position, r, n, o, s, l)).fixes, { + computedWithoutCacheCount: void 0 === (e = m.computedWithoutCacheCount) ? 0 : e, + fixes: __spreadArray(__spreadArray([], h ? [h] : C.emptyArray, !0), y, !0) + }) + } + + function v(e, t, r, n, i, a) { + return e ? (!t || 2 !== a.importsNotUsedAsValues) && (!a.isolatedModules || !a.preserveValueImports || 111551 & n && !i.getTypeOnlyAliasDeclaration(r)) ? 1 : 2 : 4 + } + + function b(e, o, s) { + for (var c, t = 0, r = o.imports; t < r.length; t++) { + var n, i = r[t], + a = C.importFromModuleSpecifier(i); + C.isVariableDeclarationInitializedToRequire(a.parent) ? (n = e.resolveExternalModuleName(i)) && (c = c || C.createMultiMap()).add(C.getSymbolId(n), a.parent) : 269 !== a.kind && 268 !== a.kind || (n = e.getSymbolAtLocation(i)) && (c = c || C.createMultiMap()).add(C.getSymbolId(n), a) + } + return { + getImportsForExportInfo: function(e) { + var t, r = e.moduleSymbol, + n = e.exportKind, + i = e.targetFlags, + a = e.symbol; + return (111551 & i || !C.isSourceFileJS(o)) && (e = null == c ? void 0 : c.get(C.getSymbolId(r))) ? (t = D(o, n, s), e.map(function(e) { + return { + declaration: e, + importKind: t, + symbol: a, + targetFlags: i + } + })) : C.emptyArray + } + } + } + + function k(e, t) { + if (!C.isSourceFileJS(e)) return !1; + if (!e.commonJsModuleIndicator || e.externalModuleIndicator) { + if (e.externalModuleIndicator && !e.commonJsModuleIndicator) return !1; + var r = t.getCompilerOptions(); + if (r.configFile) return C.getEmitModuleKind(r) < C.ModuleKind.ES2015; + for (var n = 0, i = t.getSourceFiles(); n < i.length; n++) { + var a = i[n]; + if (a !== e && C.isSourceFileJS(a) && !t.isSourceFileFromExternalLibrary(a)) { + if (a.commonJsModuleIndicator && !a.externalModuleIndicator) return !0; + if (a.externalModuleIndicator && !a.commonJsModuleIndicator) return !1 + } + } + } + return !0 + } + + function x(t, r) { + return C.memoizeOne(function(e) { + return (e ? r.getPackageJsonAutoImportProvider() : t).getTypeChecker() + }) + } + + function h(e, t, r, n) { + var i, a, h, v, b, x, D, S, T, r = C.getTokenAtPosition(e.sourceFile, r); + if (t === C.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code) i = function(e, t) { + var r, n, i = e.sourceFile, + a = e.program, + o = e.host, + e = e.preferences, + s = a.getTypeChecker(), + c = function(e, t) { + var r = C.isIdentifier(e) ? t.getSymbolAtLocation(e) : void 0; + return C.isUMDExportSymbol(r) ? r : (r = e.parent, C.isJsxOpeningLikeElement(r) && r.tagName === e || C.isJsxOpeningFragment(r) ? C.tryCast(t.resolveName(t.getJsxNamespace(r), C.isJsxOpeningLikeElement(r) ? e : r, 111551, !1), C.isUMDExportSymbol) : void 0) + }(t, s); + if (c) return s = s.getAliasedSymbol(c), r = c.name, c = [{ + symbol: c, + moduleSymbol: s, + moduleFileName: void 0, + exportKind: 3, + targetFlags: s.flags, + isFromPackageJson: !1 + }], s = k(i, a), n = C.isIdentifier(t) ? t.getStart(i) : void 0, E(c, n ? { + position: n, + symbolName: r + } : void 0, !1, s, a, i, o, e).fixes.map(function(e) { + return { + fix: e, + symbolName: r, + errorIdentifierText: null == (e = C.tryCast(t, C.isIdentifier)) ? void 0 : e.text + } + }) + }(e, r); + else { + if (!C.isIdentifier(r)) return; + if (t === C.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code) return t = C.single(g(e.sourceFile, e.program.getTypeChecker(), r, e.program.getCompilerOptions())), (a = f(e.sourceFile, r, t, e.program)) && [{ + fix: a, + symbolName: t, + errorIdentifierText: r.text + }]; + h = r, v = n, b = (a = e).sourceFile, x = e.program, D = e.cancellationToken, S = e.host, T = e.preferences, a = x.getTypeChecker(), t = x.getCompilerOptions(), i = C.flatMap(g(b, a, h, t), function(t) { + var r, n, s, c, l, u, _, i, e, a, d, o, p, f, g, m; + if ("default" !== t) return r = C.isValidTypeOnlyAliasUseSite(h), n = k(b, x), s = t, c = C.isJSXTagName(h), l = C.getMeaningFromLocation(h), u = D, _ = b, i = x, e = v, a = S, d = T, p = C.createMultiMap(), f = C.createPackageJsonImportFilter(_, d, a), g = null == (o = a.getModuleSpecifierCache) ? void 0 : o.call(a), m = C.memoizeOne(function(e) { + return C.createModuleSpecifierResolutionHost(e ? a.getPackageJsonAutoImportProvider() : i, a) + }), C.forEachExternalModuleToImportFrom(i, a, d, e, function(e, t, r, n) { + var i = r.getTypeChecker(), + a = (u.throwIfCancellationRequested(), r.getCompilerOptions()), + o = C.getDefaultLikeExportInfo(e, i, a), + a = (o && (o.name === s || L(e, C.getEmitScriptTarget(a), c) === s) && M(o.symbolForMeaning, l) && y(e, t, o.symbol, o.exportKind, r, n), i.tryGetMemberInModuleExportsAndProperties(s, e)); + a && M(a, l) && y(e, t, a, 0, r, n) + }), o = p, C.arrayFrom(C.flatMapIterator(o.entries(), function(e) { + e[0]; + return E(e[1], { + symbolName: t, + position: h.getStart(b) + }, r, n, x, b, S, T).fixes + })).map(function(e) { + return { + fix: e, + symbolName: t, + errorIdentifierText: h.text, + isJsxNamespaceFix: t !== h.text + } + }); + + function y(e, t, r, n, i, a) { + var o = m(a); + (t && C.isImportableFile(i, _, t, d, f, o, g) || !t && f.allowsImportingAmbientModule(e, o)) && (o = i.getTypeChecker(), p.add(C.getUniqueSymbolId(r, o).toString(), { + symbol: r, + moduleSymbol: e, + moduleFileName: null == t ? void 0 : t.fileName, + exportKind: n, + targetFlags: C.skipAlias(r, o).flags, + isFromPackageJson: a + })) + } + }) + } + var o, s, c, l, r = C.createPackageJsonImportFilter(e.sourceFile, e.preferences, e.host); + return i && (n = i, o = e.sourceFile, s = e.program, c = r, l = e.host, C.sort(n, function(e, t) { + return C.compareBooleans(!!e.isJsxNamespaceFix, !!t.isJsxNamespaceFix) || C.compareValues(e.fix.kind, t.fix.kind) || p(e.fix, t.fix, o, s, c.allowsImportingSpecifier, u) + })); + + function u(e) { + return C.toPath(e, l.getCurrentDirectory(), C.hostGetCanonicalFileName(l)) + } + } + + function _(e, r, n, i, a) { + if (C.some(e)) return 0 === e[0].kind || 2 === e[0].kind ? e[0] : e.reduce(function(e, t) { + return -1 === p(t, e, r, n, i.allowsImportingSpecifier, function(e) { + return C.toPath(e, a.getCurrentDirectory(), C.hostGetCanonicalFileName(a)) + }) ? t : e + }) + } + + function p(e, t, r, n, i, a) { + var o, s, c; + return 0 !== e.kind && 0 !== t.kind ? C.compareBooleans(i(t.moduleSpecifier), i(e.moduleSpecifier)) || (i = e.moduleSpecifier, o = t.moduleSpecifier, s = r, c = n, C.startsWith(i, "node:") && !C.startsWith(o, "node:") ? C.shouldUseUriStyleNodeCoreModules(s, c) ? -1 : 1 : C.startsWith(o, "node:") && !C.startsWith(i, "node:") ? C.shouldUseUriStyleNodeCoreModules(s, c) ? 1 : -1 : 0) || C.compareBooleans(u(e, r, n.getCompilerOptions(), a), u(t, r, n.getCompilerOptions(), a)) || C.compareNumberOfDirectorySeparators(e.moduleSpecifier, t.moduleSpecifier) : 0 + } + + function u(e, t, r, n) { + var i; + return !(!e.isReExport || null == (i = e.exportInfo) || !i.moduleFileName || C.getEmitModuleResolutionKind(r) !== C.ModuleResolutionKind.NodeJs || (i = e.exportInfo.moduleFileName, "index" !== C.getBaseFileName(i, [".js", ".jsx", ".d.ts", ".ts", ".tsx"], !0))) && (r = n(C.getDirectoryPath(e.exportInfo.moduleFileName)), C.startsWith(t.path, r)) + } + + function D(e, t, r, n) { + switch (t) { + case 0: + return 0; + case 1: + return 1; + case 2: + var i = e, + a = r, + o = !!n, + s = C.getAllowSyntheticDefaultImports(a), + c = C.isInJSFile(i); + if (!c && C.getEmitModuleKind(a) >= C.ModuleKind.ES2015) return s ? 1 : 2; + if (c) return C.isExternalModule(i) || o ? s ? 1 : 2 : 3; + for (var l = 0, u = i.statements; l < u.length; l++) { + var _ = u[l]; + if (C.isImportEqualsDeclaration(_) && !C.nodeIsMissing(_.moduleReference)) return 3 + } + return s ? 1 : 3; + case 3: + var d = e, + a = r, + p = !!n; + if (C.getAllowSyntheticDefaultImports(a)) return 1; + var f = C.getEmitModuleKind(a); + switch (f) { + case C.ModuleKind.AMD: + case C.ModuleKind.CommonJS: + case C.ModuleKind.UMD: + return C.isInJSFile(d) ? C.isExternalModule(d) || p ? 2 : 3 : 3; + case C.ModuleKind.System: + case C.ModuleKind.ES2015: + case C.ModuleKind.ES2020: + case C.ModuleKind.ES2022: + case C.ModuleKind.ESNext: + case C.ModuleKind.None: + return 2; + case C.ModuleKind.Node16: + case C.ModuleKind.NodeNext: + return d.impliedNodeFormat === C.ModuleKind.ESNext ? 2 : 3; + default: + return C.Debug.assertNever(f, "Unexpected moduleKind ".concat(f)) + } + return; + default: + return C.Debug.assertNever(t) + } + } + + function f(e, t, r, n) { + n = n.getTypeChecker(), r = n.resolveName(r, t, 111551, !0); + if (r) { + t = n.getTypeOnlyAliasDeclaration(r); + if (t && C.getSourceFileOfNode(t) === e) return { + kind: 4, + typeOnlyAliasDeclaration: t + } + } + } + + function g(e, t, r, n) { + var i, a = r.parent; + if ((C.isJsxOpeningLikeElement(a) || C.isJsxClosingElement(a)) && a.tagName === r && C.jsxModeNeedsExplicitImport(n.jsx)) { + a = t.getJsxNamespace(e); + if (n = a, e = r, i = t, C.isIntrinsicJsxName(e.text) || !(i = i.resolveName(n, e, 111551, !0)) || C.some(i.declarations, C.isTypeOnlyImportOrExportDeclaration) && !(111551 & i.flags)) return !C.isIntrinsicJsxName(r.text) && !t.resolveName(r.text, r, 111551, !1) ? [r.text, a] : [a] + } + return [r.text] + } + + function S(e, t, r, n, i, a, o) { + var s, e = C.textChanges.ChangeTracker.with(e, function(e) { + s = function(e, t, r, n, i, a, o) { + switch (n.kind) { + case 0: + return A(e, t, n), [C.Diagnostics.Change_0_to_1, r, "".concat(n.namespacePrefix, ".").concat(r)]; + case 1: + return F(e, t, n, a), [C.Diagnostics.Change_0_to_1, r, P(n.moduleSpecifier, a) + r]; + case 2: + var s = n.importClauseOrBindingPattern, + c = n.importKind, + l = n.addAsTypeOnly, + u = n.moduleSpecifier, + s = (N(e, t, s, 1 === c ? { + name: r, + addAsTypeOnly: l + } : void 0, 0 === c ? [{ + name: r, + addAsTypeOnly: l + }] : C.emptyArray, o), C.stripQuotes(u)); + return i ? [C.Diagnostics.Import_0_from_1, r, s] : [C.Diagnostics.Update_import_from_0, s]; + case 3: + var c = n.importKind, + u = n.moduleSpecifier, + l = n.addAsTypeOnly, + s = n.useRequire ? O : I, + _ = 1 === c ? { + name: r, + addAsTypeOnly: l + } : void 0, + d = 0 === c ? [{ + name: r, + addAsTypeOnly: l + }] : void 0, + c = 2 === c || 3 === c ? { + importKind: c, + name: r, + addAsTypeOnly: l + } : void 0; + return C.insertImports(e, t, s(u, a, _, d, c), !0), i ? [C.Diagnostics.Import_0_from_1, r, u] : [C.Diagnostics.Add_import_from_0, u]; + case 4: + l = n.typeOnlyAliasDeclaration, s = function(i, a, e, o) { + var s = e.preserveValueImports && e.isolatedModules; + switch (a.kind) { + case 273: + var t, r; + return a.isTypeOnly ? (1 < a.parent.elements.length && C.OrganizeImports.importSpecifiersAreSorted(a.parent.elements) ? (i.delete(o, a), t = C.factory.updateImportSpecifier(a, !1, a.propertyName, a.name), r = C.OrganizeImports.getImportSpecifierInsertionIndex(a.parent.elements, t), i.insertImportSpecifierAtIndex(o, t, a.parent, r)) : i.deleteRange(o, a.getFirstToken()), a) : (C.Debug.assert(a.parent.parent.isTypeOnly), n(a.parent.parent), a.parent.parent); + case 270: + return n(a), a; + case 271: + return n(a.parent), a.parent; + case 268: + return i.deleteRange(o, a.getChildAt(1)), a; + default: + C.Debug.failBadSyntaxKind(a) + } + + function n(e) { + if (i.delete(o, C.getTypeKeywordOfTypeOnlyImport(e, o)), s) { + e = C.tryCast(e.namedBindings, C.isNamedImports); + if (e && 1 < e.elements.length) { + C.OrganizeImports.importSpecifiersAreSorted(e.elements) && 273 === a.kind && 0 !== e.elements.indexOf(a) && (i.delete(o, a), i.insertImportSpecifierAtIndex(o, a, e, 0)); + for (var t = 0, r = e.elements; t < r.length; t++) { + var n = r[t]; + n === a || n.isTypeOnly || i.insertModifierBefore(o, 154, n) + } + } + } + } + }(e, l, o, t); + return 273 === s.kind ? [C.Diagnostics.Remove_type_from_import_of_0_from_1, r, T(s.parent.parent)] : [C.Diagnostics.Remove_type_from_import_declaration_from_0, T(s)]; + default: + return C.Debug.assertNever(n, "Unexpected fix kind ".concat(n.kind)) + } + }(e, t, r, n, i, a, o) + }); + return c.createCodeFixAction(c.importFixName, e, s, l, C.Diagnostics.Add_all_missing_imports) + } + + function T(e) { + var t; + return 268 === e.kind ? (null == (t = C.tryCast(null == (t = C.tryCast(e.moduleReference, C.isExternalModuleReference)) ? void 0 : t.expression, C.isStringLiteralLike)) ? void 0 : t.text) || e.moduleReference.getText() : C.cast(e.parent.moduleSpecifier, C.isStringLiteral).text + } + + function N(n, i, t, e, r, a) { + if (203 === t.kind) { + e && x(t, e.name, "default"); + for (var o = 0, s = r; o < s.length; o++) { + var c = s[o]; + x(t, c.name, void 0) + } + } else { + var l = t.isTypeOnly && C.some(__spreadArray([e], r, !0), function(e) { + return 4 === (null == e ? void 0 : e.addAsTypeOnly) + }), + u = t.namedBindings && (null == (d = C.tryCast(t.namedBindings, C.isNamedImports)) ? void 0 : d.elements), + _ = l && a.preserveValueImports && a.isolatedModules; + if (e && (C.Debug.assert(!t.name, "Cannot add a default import to an import clause that already has one"), n.insertNodeAt(i, t.getStart(i), C.factory.createIdentifier(e.name), { + suffix: ", " + })), r.length) { + var d = C.stableSort(r.map(function(e) { + return C.factory.createImportSpecifier((!t.isTypeOnly || l) && w(e), void 0, C.factory.createIdentifier(e.name)) + }), C.OrganizeImports.compareImportOrExportSpecifiers); + if (null != u && u.length && C.OrganizeImports.importSpecifiersAreSorted(u)) + for (var p = 0, f = d; p < f.length; p++) { + var g = f[p], + m = _ && !g.isTypeOnly ? 0 : C.OrganizeImports.getImportSpecifierInsertionIndex(u, g); + n.insertImportSpecifierAtIndex(i, g, t.namedBindings, m) + } else if (null != u && u.length) + for (var y = 0, h = d; y < h.length; y++) { + g = h[y]; + n.insertNodeInListAfter(i, C.last(u), g, u) + } else d.length && (a = C.factory.createNamedImports(d), t.namedBindings ? n.replaceNode(i, t.namedBindings, a) : n.insertNodeAfter(i, C.Debug.checkDefined(t.name, "Import clause must have either named imports or a default import"), a)) + } + if (l && (n.delete(i, C.getTypeKeywordOfTypeOnlyImport(t, i)), _) && u) + for (var v = 0, b = u; v < b.length; v++) { + c = b[v]; + n.insertModifierBefore(i, 154, c) + } + } + + function x(e, t, r) { + r = C.factory.createBindingElement(void 0, r, t); + e.elements.length ? n.insertNodeInListAfter(i, C.last(e.elements), r) : n.replaceNode(i, e, C.factory.createObjectBindingPattern([r])) + } + } + + function A(e, t, r) { + var n = r.namespacePrefix, + r = r.position; + e.insertText(t, r, n + ".") + } + + function F(e, t, r, n) { + var i = r.moduleSpecifier, + r = r.position; + e.insertText(t, r, P(i, n)) + } + + function P(e, t) { + t = C.getQuoteFromPreference(t); + return "import(".concat(t).concat(e).concat(t, ").") + } + + function w(e) { + return 2 === e.addAsTypeOnly + } + + function I(e, t, r, n, i) { + var a, o, s = C.makeStringLiteral(e, t); + return (void 0 !== r || null != n && n.length) && (a = (!r || w(r)) && C.every(n, w), o = C.combine(o, C.makeImport(r && C.factory.createIdentifier(r.name), null == n ? void 0 : n.map(function(e) { + var t = e.addAsTypeOnly, + e = e.name; + return C.factory.createImportSpecifier(!a && 2 === t, void 0, C.factory.createIdentifier(e)) + }), e, t, a))), i && (r = 3 === i.importKind ? C.factory.createImportEqualsDeclaration(void 0, w(i), C.factory.createIdentifier(i.name), C.factory.createExternalModuleReference(s)) : C.factory.createImportDeclaration(void 0, C.factory.createImportClause(w(i), void 0, C.factory.createNamespaceImport(C.factory.createIdentifier(i.name))), s, void 0), o = C.combine(o, r)), C.Debug.checkDefined(o) + } + + function O(e, t, r, n, i) { + var a, o, e = C.makeStringLiteral(e, t); + return (r || null != n && n.length) && (t = (null == n ? void 0 : n.map(function(e) { + e = e.name; + return C.factory.createBindingElement(void 0, void 0, e) + })) || [], r && t.unshift(C.factory.createBindingElement(void 0, "default", r.name)), o = s(C.factory.createObjectBindingPattern(t), e), a = C.combine(a, o)), i && (o = s(i.name, e), a = C.combine(a, o)), C.Debug.checkDefined(a) + } + + function s(e, t) { + return C.factory.createVariableStatement(void 0, C.factory.createVariableDeclarationList([C.factory.createVariableDeclaration("string" == typeof e ? C.factory.createIdentifier(e) : e, void 0, void 0, C.factory.createCallExpression(C.factory.createIdentifier("require"), void 0, [t]))], 2)) + } + + function M(e, t) { + e = e.declarations; + return C.some(e, function(e) { + return !!(C.getMeaningFromDeclaration(e) & t) + }) + } + + function L(e, t, r) { + return n(C.removeFileExtension(C.stripQuotes(e.name)), t, r) + } + + function n(e, t, r) { + var n = C.getBaseFileName(C.removeSuffix(e, "/index")), + i = "", + a = !0, + e = n.charCodeAt(0); + C.isIdentifierStart(e, t) ? (i += String.fromCharCode(e), r && (i = i.toUpperCase())) : a = !1; + for (var o = 1; o < n.length; o++) { + var s = n.charCodeAt(o), + c = C.isIdentifierPart(s, t); + c && (s = String.fromCharCode(s), i += s = a ? s : s.toUpperCase()), a = c + } + return C.isStringANonContextualKeyword(i) ? "_".concat(i) : i || "_" + }(c = C.codefix || (C.codefix = {})).importFixName = "import", l = "fixMissingImport", e = [C.Diagnostics.Cannot_find_name_0.code, C.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code, C.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code, C.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code, C.Diagnostics.Cannot_find_namespace_0.code, C.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code, C.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code, C.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code, C.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code], c.registerCodeFix({ + errorCodes: e, + getCodeActions: function(n) { + var i, e = n.errorCode, + t = n.preferences, + a = n.sourceFile, + r = n.span, + o = n.program, + e = h(n, e, r.start, !0); + if (e) return i = C.getQuotePreference(a, t), e.map(function(e) { + var t = e.fix, + r = e.symbolName, + e = e.errorIdentifierText; + return S(n, a, r, t, r !== e, i, o.getCompilerOptions()) + }) + }, + fixIds: [l], + getAllCodeActions: function(t) { + var r = a(t.sourceFile, t.program, !0, t.preferences, t.host, t.cancellationToken); + return c.eachDiagnostic(t, e, function(e) { + return r.addImportFromDiagnostic(e, t) + }), c.createCombinedCodeActions(C.textChanges.ChangeTracker.with(t, r.writeFixes)) + } + }), c.createImportAdder = function(e, t, r, n, i) { + return a(e, t, !1, r, n, i) + }, c.createImportSpecifierResolver = function(a, o, s, c) { + var l = C.createPackageJsonImportFilter(a, c, s), + u = b(o.getTypeChecker(), a, o.getCompilerOptions()); + return { + getModuleSpecifierForBestExportInfo: function(e, t, r, n, i) { + e = E(e, { + symbolName: t, + position: r + }, n, !1, o, a, s, c, u, i), t = e.fixes, r = e.computedWithoutCacheCount, n = _(t, a, o, l, s); + return n && __assign(__assign({}, n), { + computedWithoutCacheCount: r + }) + } + } + }, c.getImportCompletionAction = function(e, t, r, n, i, a, o, s, c, l, u) { + var _ = o.getCompilerOptions(), + e = C.pathIsBareSpecifier(C.stripQuotes(t.name)) ? [function(n, i, e, t) { + var a = e.getCompilerOptions(), + e = r(e.getTypeChecker(), !1); + if (e) return e; + t = null == (e = null == (e = t.getPackageJsonAutoImportProvider) ? void 0 : e.call(t)) ? void 0 : e.getTypeChecker(); + return C.Debug.checkDefined(t && r(t, !0), "Could not find symbol in specified module for code actions"); + + function r(e, t) { + var r = C.getDefaultLikeExportInfo(i, e, a); + return r && C.skipAlias(r.symbol, e) === n ? { + symbol: r.symbol, + moduleSymbol: i, + moduleFileName: void 0, + exportKind: r.exportKind, + targetFlags: C.skipAlias(n, e).flags, + isFromPackageJson: t + } : (r = e.tryGetMemberInModuleExportsAndProperties(n.name, i)) && C.skipAlias(r, e) === n ? { + symbol: r, + moduleSymbol: i, + moduleFileName: void 0, + exportKind: 0, + targetFlags: C.skipAlias(n, e).flags, + isFromPackageJson: t + } : void 0 + } + }(e, t, o, a)] : y(r, e, n, i, o, a, l, u), + i = (C.Debug.assertIsDefined(e), k(r, o)), + u = C.isValidTypeOnlyAliasUseSite(C.getTokenAtPosition(r, c)); + return { + moduleSpecifier: (e = C.Debug.checkDefined(m(r, e, t, o, { + symbolName: n, + position: c + }, u, i, a, l))).moduleSpecifier, + codeAction: d(S({ + host: a, + formatContext: s, + preferences: l + }, r, n, e, !1, C.getQuotePreference(r, l), _)) + } + }, c.getPromoteTypeOnlyCompletionAction = function(e, t, r, n, i, a) { + var o = r.getCompilerOptions(), + s = C.single(g(e, r.getTypeChecker(), t, o)), + r = f(e, t, s, r), + t = s !== t.text; + return r && d(S({ + host: n, + formatContext: i, + preferences: a + }, e, s, r, t, 1, o)) + }, c.getImportKind = D, c.moduleSymbolToValidIdentifier = L, c.moduleSpecifierToValidIdentifier = n + }(ts = ts || {}), ! function(u) { + var _, s, t; + + function c(e, t, r) { + var n = u.find(e.getSemanticDiagnostics(t), function(e) { + return e.start === r.start && e.length === r.length + }); + if (void 0 !== n && void 0 !== n.relatedInformation) { + n = u.find(n.relatedInformation, function(e) { + return e.code === u.Diagnostics.This_type_parameter_might_need_an_extends_0_constraint.code + }); + if (void 0 !== n && void 0 !== n.file && void 0 !== n.start && void 0 !== n.length) { + var i = _.findAncestorMatchingSpan(n.file, u.createTextSpan(n.start, n.length)); + if (void 0 !== i) return u.isIdentifier(i) && u.isTypeParameterDeclaration(i.parent) && (i = i.parent), !u.isTypeParameterDeclaration(i) || u.isMappedTypeNode(i.parent) ? void 0 : (t = u.getTokenAtPosition(t, r.start), { + constraint: function(e, t) { + if (u.isTypeNode(t.parent)) return e.getTypeArgumentConstraint(t.parent); + return (u.isExpression(t) ? e.getContextualType(t) : void 0) || e.getTypeAtLocation(t) + }(e.getTypeChecker(), t) || function(e) { + e = u.flattenDiagnosticMessageText(e, "\n", 0).match(/`extends (.*)`/) || []; + e[0]; + return e[1] + }(n.messageText), + declaration: i, + token: t + }) + } + } + } + + function l(e, t, r, n, i, a) { + var o, s, c = a.declaration, + a = a.constraint, + l = t.getTypeChecker(); + u.isString(a) ? e.insertText(i, c.name.end, " extends ".concat(a)) : (o = u.getEmitScriptTarget(t.getCompilerOptions()), s = _.getNoopSymbolTrackerWithResolver({ + program: t, + host: n + }), t = _.createImportAdder(i, t, r, n), (r = _.typeToAutoImportableTypeNode(l, t, a, void 0, o, void 0, s)) && (e.replaceNode(i, c, u.factory.updateTypeParameterDeclaration(c, void 0, c.name, r, c.default)), t.writeFixes(e))) + } + _ = u.codefix || (u.codefix = {}), s = "addMissingConstraint", t = [u.Diagnostics.Type_0_is_not_comparable_to_type_1.code, u.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code, u.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code, u.Diagnostics.Type_0_is_not_assignable_to_type_1.code, u.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code, u.Diagnostics.Property_0_is_incompatible_with_index_signature.code, u.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code, u.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code], _.registerCodeFix({ + errorCodes: t, + getCodeActions: function(e) { + var t = e.sourceFile, + r = e.span, + n = e.program, + i = e.preferences, + a = e.host, + o = c(n, t, r); + if (void 0 !== o) return r = u.textChanges.ChangeTracker.with(e, function(e) { + return l(e, n, i, a, t, o) + }), [_.createCodeFixAction(s, r, u.Diagnostics.Add_extends_constraint, s, u.Diagnostics.Add_extends_constraint_to_all_type_parameters)] + }, + fixIds: [s], + getAllCodeActions: function(e) { + var n = e.program, + i = e.preferences, + a = e.host, + o = new u.Map; + return _.createCombinedCodeActions(u.textChanges.ChangeTracker.with(e, function(r) { + _.eachDiagnostic(e, t, function(e) { + var t = c(n, e.file, u.createTextSpan(e.start, e.length)); + if (t && u.addToSeen(o, u.getNodeId(t.declaration))) return l(r, n, i, a, e.file, t) + }) + })) + } + }) + }(ts = ts || {}), ! function(_) { + var s, e, c, t, r, n, l; + + function u(e, t, r, n) { + switch (r) { + case _.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code: + case _.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code: + case _.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code: + case _.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code: + case _.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code: + return i = e, a = t.sourceFile, o = d(a, o = n), void(_.isSourceFileJS(a) ? i.addJSDocTags(a, o, [_.factory.createJSDocOverrideTag(_.factory.createIdentifier("override"))]) : (u = o.modifiers || _.emptyArray, s = _.find(u, _.isStaticModifier), c = _.find(u, _.isAbstractModifier), l = _.find(u, function(e) { + return _.isAccessibilityModifier(e.kind) + }), u = _.findLast(u, _.isDecorator), u = c ? c.end : s ? s.end : l ? l.end : u ? _.skipTrivia(a.text, u.end) : o.getStart(a), o = l || s || c ? { + prefix: " " + } : { + suffix: " " + }, i.insertModifierAt(a, u, 161, o))); + case _.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code: + case _.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code: + case _.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code: + case _.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code: + return l = e, s = t.sourceFile, c = d(s, c = n), void(_.isSourceFileJS(s) ? l.filterJSDocTags(s, c, _.not(_.isJSDocOverrideTag)) : (c = _.find(c.modifiers, _.isOverrideModifier), _.Debug.assertIsDefined(c), l.deleteModifier(s, c))); + default: + _.Debug.fail("Unexpected error code: " + r) + } + var i, a, o, s, c, l, u + } + + function i(e) { + switch (e.kind) { + case 173: + case 169: + case 171: + case 174: + case 175: + return !0; + case 166: + return _.isParameterPropertyDeclaration(e, e.parent); + default: + return !1 + } + } + + function d(e, t) { + e = _.getTokenAtPosition(e, t), t = _.findAncestor(e, function(e) { + return _.isClassLike(e) ? "quit" : i(e) + }); + return _.Debug.assert(t && i(t)), t + } + s = _.codefix || (_.codefix = {}), c = "fixOverrideModifier", t = "fixAddOverrideModifier", r = "fixRemoveOverrideModifier", n = [_.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code, _.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code, _.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code, _.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code, _.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code, _.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code, _.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code, _.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code, _.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code], (e = {})[_.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code] = { + descriptions: _.Diagnostics.Add_override_modifier, + fixId: t, + fixAllDescriptions: _.Diagnostics.Add_all_missing_override_modifiers + }, e[_.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code] = { + descriptions: _.Diagnostics.Add_override_modifier, + fixId: t, + fixAllDescriptions: _.Diagnostics.Add_all_missing_override_modifiers + }, e[_.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code] = { + descriptions: _.Diagnostics.Remove_override_modifier, + fixId: r, + fixAllDescriptions: _.Diagnostics.Remove_all_unnecessary_override_modifiers + }, e[_.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code] = { + descriptions: _.Diagnostics.Remove_override_modifier, + fixId: r, + fixAllDescriptions: _.Diagnostics.Remove_override_modifier + }, e[_.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code] = { + descriptions: _.Diagnostics.Add_override_modifier, + fixId: t, + fixAllDescriptions: _.Diagnostics.Add_all_missing_override_modifiers + }, e[_.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code] = { + descriptions: _.Diagnostics.Add_override_modifier, + fixId: t, + fixAllDescriptions: _.Diagnostics.Add_all_missing_override_modifiers + }, e[_.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code] = { + descriptions: _.Diagnostics.Add_override_modifier, + fixId: t, + fixAllDescriptions: _.Diagnostics.Remove_all_unnecessary_override_modifiers + }, e[_.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code] = { + descriptions: _.Diagnostics.Remove_override_modifier, + fixId: r, + fixAllDescriptions: _.Diagnostics.Remove_all_unnecessary_override_modifiers + }, e[_.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code] = { + descriptions: _.Diagnostics.Remove_override_modifier, + fixId: r, + fixAllDescriptions: _.Diagnostics.Remove_all_unnecessary_override_modifiers + }, l = e, s.registerCodeFix({ + errorCodes: n, + getCodeActions: function(t) { + var e, r, n, i = t.errorCode, + a = t.span, + o = l[i]; + return o ? (e = o.descriptions, r = o.fixId, o = o.fixAllDescriptions, n = _.textChanges.ChangeTracker.with(t, function(e) { + return u(e, t, i, a.start) + }), [s.createCodeFixActionMaybeFixAll(c, n, e, r, o)]) : _.emptyArray + }, + fixIds: [c, t, r], + getAllCodeActions: function(i) { + return s.codeFixAll(i, n, function(e, t) { + var r = t.code, + t = t.start, + n = l[r]; + n && n.fixId === i.fixId && u(e, i, r, t) + }) + } + }) + }(ts = ts || {}), ! function(a) { + var o, s, e; + + function c(e, t, r, n) { + n = a.getQuotePreference(t, n), n = a.factory.createStringLiteral(r.name.text, 0 === n); + e.replaceNode(t, r, a.isPropertyAccessChain(r) ? a.factory.createElementAccessChain(r.expression, r.questionDotToken, n) : a.factory.createElementAccessExpression(r.expression, n)) + } + + function l(e, t) { + return a.cast(a.getTokenAtPosition(e, t).parent, a.isPropertyAccessExpression) + } + o = a.codefix || (a.codefix = {}), s = "fixNoPropertyAccessFromIndexSignature", e = [a.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code], o.registerCodeFix({ + errorCodes: e, + fixIds: [s], + getCodeActions: function(t) { + var e = t.sourceFile, + r = t.span, + n = t.preferences, + i = l(e, r.start), + e = a.textChanges.ChangeTracker.with(t, function(e) { + return c(e, t.sourceFile, i, n) + }); + return [o.createCodeFixAction(s, e, [a.Diagnostics.Use_element_access_for_0, i.name.text], s, a.Diagnostics.Use_element_access_for_all_undeclared_properties)] + }, + getAllCodeActions: function(r) { + return o.codeFixAll(r, e, function(e, t) { + return c(e, t.file, l(t.file, t.start), r.preferences) + }) + } + }) + }(ts = ts || {}), ! function(s) { + var a, o, e; + + function c(e, t, r, n) { + var i, a, o, r = s.getTokenAtPosition(t, r); + if (s.isThis(r)) return r = s.getThisContainer(r, !1), !s.isFunctionDeclaration(r) && !s.isFunctionExpression(r) || s.isSourceFile(s.getThisContainer(r, !1)) ? void 0 : (i = s.Debug.checkDefined(s.findChildOfKind(r, 98, t)), a = r.name, o = s.Debug.checkDefined(r.body), s.isFunctionExpression(r) ? a && s.FindAllReferences.Core.isSymbolReferencedInFile(a, n, t, o) ? void 0 : (e.delete(t, i), a && e.delete(t, a), e.insertText(t, o.pos, " =>"), [s.Diagnostics.Convert_function_expression_0_to_arrow_function, a ? a.text : s.ANONYMOUS]) : (e.replaceNode(t, i, s.factory.createToken(85)), e.insertText(t, a.end, " = "), e.insertText(t, o.pos, " =>"), [s.Diagnostics.Convert_function_declaration_0_to_arrow_function, a.text])) + } + a = s.codefix || (s.codefix = {}), o = "fixImplicitThis", e = [s.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code], a.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var t, r = e.sourceFile, + n = e.program, + i = e.span, + e = s.textChanges.ChangeTracker.with(e, function(e) { + t = c(e, r, i.start, n.getTypeChecker()) + }); + return t ? [a.createCodeFixAction(o, e, t, o, s.Diagnostics.Fix_all_implicit_this_errors)] : s.emptyArray + }, + fixIds: [o], + getAllCodeActions: function(r) { + return a.codeFixAll(r, e, function(e, t) { + c(e, t.file, t.start, r.program.getTypeChecker()) + }) + } + }) + }(ts = ts || {}), ! function(c) { + var l, n, t; + + function u(e, t, r) { + var n, t = c.getTokenAtPosition(e, t); + return !c.isIdentifier(t) || void 0 === (n = c.findAncestor(t, c.isImportDeclaration)) || void 0 === (n = c.isStringLiteral(n.moduleSpecifier) ? n.moduleSpecifier.text : void 0) || void 0 === (e = c.getResolvedModule(e, n, void 0)) || void 0 === (e = r.getSourceFile(e.resolvedFileName)) || c.isSourceFileFromLibrary(r, e) || void 0 === (r = null == (r = e.symbol.valueDeclaration) ? void 0 : r.locals) || void 0 === (r = r.get(t.escapedText)) || void 0 === (r = function(e) { + if (void 0 === e.valueDeclaration) return c.firstOrUndefined(e.declarations); + var e = e.valueDeclaration, + t = c.isVariableDeclaration(e) ? c.tryCast(e.parent.parent, c.isVariableStatement) : void 0; + return t && 1 === c.length(t.declarationList.declarations) ? t : e + }(r)) ? void 0 : { + exportName: { + node: t, + isTypeOnly: c.isTypeDeclaration(r) + }, + node: r, + moduleSourceFile: e, + moduleSpecifier: n + } + } + + function o(e, t, r, n, i) { + c.length(n) && (i ? d(e, t, r, i, n) : p(e, t, r, n)) + } + + function _(e, t) { + return c.findLast(e.statements, function(e) { + return c.isExportDeclaration(e) && (t && e.isTypeOnly || !e.isTypeOnly) + }) + } + + function d(e, t, r, n, i) { + var a = n.exportClause && c.isNamedExports(n.exportClause) ? n.exportClause.elements : c.factory.createNodeArray([]), + t = !(n.isTypeOnly || !t.getCompilerOptions().isolatedModules && !c.find(a, function(e) { + return e.isTypeOnly + })); + e.replaceNode(r, n, c.factory.updateExportDeclaration(n, n.modifiers, n.isTypeOnly, c.factory.createNamedExports(c.factory.createNodeArray(__spreadArray(__spreadArray([], a, !0), s(i, t), !0), a.hasTrailingComma)), n.moduleSpecifier, n.assertClause)) + } + + function p(e, t, r, n) { + e.insertNodeAtEndOfScope(r, r, c.factory.createExportDeclaration(void 0, !1, c.factory.createNamedExports(s(n, !!t.getCompilerOptions().isolatedModules)), void 0, void 0)) + } + + function s(e, t) { + return c.factory.createNodeArray(c.map(e, function(e) { + return c.factory.createExportSpecifier(t && e.isTypeOnly, void 0, e.node) + })) + } + l = c.codefix || (c.codefix = {}), n = "fixImportNonExportedMember", t = [c.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported.code], l.registerCodeFix({ + errorCodes: t, + fixIds: [n], + getCodeActions: function(e) { + var t = e.sourceFile, + r = e.span, + o = e.program, + s = u(t, r.start, o); + if (void 0 !== s) return t = c.textChanges.ChangeTracker.with(e, function(e) { + var t, r, n, i, a; + e = e, t = o, n = (r = s).exportName, i = r.node, r = r.moduleSourceFile, (a = _(r, n.isTypeOnly)) ? d(e, t, r, a, [n]) : c.canHaveExportModifier(i) ? e.insertExportModifier(r, i) : p(e, t, r, [n]) + }), [l.createCodeFixAction(n, t, [c.Diagnostics.Export_0_from_module_1, s.exportName.node.text, s.moduleSpecifier], n, c.Diagnostics.Export_all_referenced_locals)] + }, + getAllCodeActions: function(e) { + var a = e.program; + return l.createCombinedCodeActions(c.textChanges.ChangeTracker.with(e, function(n) { + var i = new c.Map; + l.eachDiagnostic(e, t, function(e) { + var t, r, e = u(e.file, e.start, a); + void 0 !== e && (t = e.exportName, r = e.node, void 0 === _(e = e.moduleSourceFile, t.isTypeOnly) && c.canHaveExportModifier(r) ? n.insertExportModifier(e, r) : (r = i.get(e) || { + typeOnlyExports: [], + exports: [] + }, (t.isTypeOnly ? r.typeOnlyExports : r.exports).push(t), i.set(e, r))) + }), i.forEach(function(e, t) { + var r = _(t, !0); + r && r.isTypeOnly ? (o(n, a, t, e.typeOnlyExports, r), o(n, a, t, e.exports, _(t, !1))) : o(n, a, t, __spreadArray(__spreadArray([], e.exports, !0), e.typeOnlyExports, !0), r) + }) + })) + } + }) + }(ts = ts || {}), ! function(l) { + var r, n, e; + r = l.codefix || (l.codefix = {}), n = "fixIncorrectNamedTupleSyntax", e = [l.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code, l.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code], r.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var s = e.sourceFile, + t = e.span, + c = function(e, t) { + e = l.getTokenAtPosition(e, t); + return l.findAncestor(e, function(e) { + return 199 === e.kind + }) + }(s, t.start), + t = l.textChanges.ChangeTracker.with(e, function(e) { + var t = s, + r = c; + if (r) { + for (var n = r.type, i = !1, a = !1; 187 === n.kind || 188 === n.kind || 193 === n.kind;) 187 === n.kind ? i = !0 : 188 === n.kind && (a = !0), n = n.type; + var o = l.factory.updateNamedTupleMember(r, r.dotDotDotToken || (a ? l.factory.createToken(25) : void 0), r.name, r.questionToken || (i ? l.factory.createToken(57) : void 0), n); + o !== r && e.replaceNode(t, r, o) + } + }); + return [r.createCodeFixAction(n, t, l.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels, n, l.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)] + }, + fixIds: [n] + }) + }(ts = ts || {}), ! function(s) { + var o, c, e; + + function l(e, t, r, n) { + var i, a, t = s.getTokenAtPosition(e, t), + o = t.parent; + if (n !== s.Diagnostics.No_overload_matches_this_call.code && n !== s.Diagnostics.Type_0_is_not_assignable_to_type_1.code || s.isJsxAttribute(o)) return n = r.program.getTypeChecker(), s.isPropertyAccessExpression(o) && o.name === t ? (s.Debug.assert(s.isMemberName(t), "Expected an identifier for spelling (property access)"), i = n.getTypeAtLocation(o.expression), 32 & o.flags && (i = n.getNonNullableType(i)), i = n.getSuggestedSymbolForNonexistentProperty(t, i)) : s.isBinaryExpression(o) && 101 === o.operatorToken.kind && o.left === t && s.isPrivateIdentifier(t) ? (a = n.getTypeAtLocation(o.right), i = n.getSuggestedSymbolForNonexistentProperty(t, a)) : s.isQualifiedName(o) && o.right === t ? (a = n.getSymbolAtLocation(o.left)) && 1536 & a.flags && (i = n.getSuggestedSymbolForNonexistentModule(o.right, a)) : s.isImportSpecifier(o) && o.name === t ? (s.Debug.assertNode(t, s.isIdentifier, "Expected an identifier for spelling (import)"), a = s.findAncestor(t, s.isImportDeclaration), e = e, r = r, (a = (a = a) && s.isStringLiteralLike(a.moduleSpecifier) && (e = s.getResolvedModule(e, a.moduleSpecifier.text, s.getModeForUsageLocation(e, a.moduleSpecifier))) ? r.program.getSourceFile(e.resolvedFileName) : void 0) && a.symbol && (i = n.getSuggestedSymbolForNonexistentModule(t, a.symbol))) : s.isJsxAttribute(o) && o.name === t ? (s.Debug.assertNode(t, s.isIdentifier, "Expected an identifier for JSX attribute"), r = s.findAncestor(t, s.isJsxOpeningLikeElement), e = n.getContextualTypeForArgumentAtIndex(r, 0), i = n.getSuggestedSymbolForNonexistentJSXAttribute(t, e)) : s.hasSyntacticModifier(o, 16384) && s.isClassElement(o) && o.name === t ? (e = (r = (a = s.findAncestor(t, s.isClassLike)) ? s.getEffectiveBaseTypeNode(a) : void 0) ? n.getTypeAtLocation(r) : void 0) && (i = n.getSuggestedSymbolForNonexistentClassMember(s.getTextOfNode(t), e)) : (o = s.getMeaningFromLocation(t), a = s.getTextOfNode(t), s.Debug.assert(void 0 !== a, "name should be defined"), i = n.getSuggestedSymbolForNonexistentSymbol(t, a, function(e) { + var t = 0; + 4 & e && (t |= 1920); + 2 & e && (t |= 788968); + 1 & e && (t |= 111551); + return t + }(o))), void 0 === i ? void 0 : { + node: t, + suggestedSymbol: i + } + } + + function u(e, t, r, n, i) { + var a = s.symbolName(n); + s.isIdentifierText(a, i) || !s.isPropertyAccessExpression(r.parent) || (i = n.valueDeclaration) && s.isNamedDeclaration(i) && s.isPrivateIdentifier(i.name) ? e.replaceNode(t, r, s.factory.createIdentifier(a)) : e.replaceNode(t, r.parent, s.factory.createElementAccessExpression(r.parent.expression, s.factory.createStringLiteral(a))) + } + o = s.codefix || (s.codefix = {}), c = "fixSpelling", e = [s.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code, s.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code, s.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code, s.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code, s.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code, s.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code, s.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code, s.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code, s.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code, s.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code, s.Diagnostics.No_overload_matches_this_call.code, s.Diagnostics.Type_0_is_not_assignable_to_type_1.code], o.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var t, r, n, i = e.sourceFile, + a = e.errorCode, + a = l(i, e.span.start, e, a); + if (a) return t = a.node, r = a.suggestedSymbol, n = s.getEmitScriptTarget(e.host.getCompilationSettings()), a = s.textChanges.ChangeTracker.with(e, function(e) { + return u(e, i, t, r, n) + }), [o.createCodeFixAction("spelling", a, [s.Diagnostics.Change_spelling_to_0, s.symbolName(r)], c, s.Diagnostics.Fix_all_detected_spelling_errors)] + }, + fixIds: [c], + getAllCodeActions: function(n) { + return o.codeFixAll(n, e, function(e, t) { + var t = l(t.file, t.start, n, t.code), + r = s.getEmitScriptTarget(n.host.getCompilationSettings()); + t && u(e, n.sourceFile, t.node, t.suggestedSymbol, r) + }) + } + }) + }(ts = ts || {}), ! function(g) { + var m, y, e, h, v, b, x, t; + + function s(e, t, r) { + t = e.createSymbol(4, t.escapedText), t.type = e.getTypeAtLocation(r), r = g.createSymbolTable([t]); + return e.createAnonymousType(void 0, r, [], [], []) + } + + function c(e, t, r, n) { + if (t.body && g.isBlock(t.body) && 1 === g.length(t.body.statements)) { + var i = g.first(t.body.statements); + if (g.isExpressionStatement(i) && l(e, t, e.getTypeAtLocation(i.expression), r, n)) return { + declaration: t, + kind: y.MissingReturnStatement, + expression: i.expression, + statement: i, + commentSource: i.expression + }; + if (g.isLabeledStatement(i) && g.isExpressionStatement(i.statement)) { + var a = g.factory.createObjectLiteralExpression([g.factory.createPropertyAssignment(i.label, i.statement.expression)]); + if (l(e, t, s(e, i.label, i.statement.expression), r, n)) return g.isArrowFunction(t) ? { + declaration: t, + kind: y.MissingParentheses, + expression: a, + statement: i, + commentSource: i.statement.expression + } : { + declaration: t, + kind: y.MissingReturnStatement, + expression: a, + statement: i, + commentSource: i.statement.expression + } + } else if (g.isBlock(i) && 1 === g.length(i.statements)) { + var o = g.first(i.statements); + if (g.isLabeledStatement(o) && g.isExpressionStatement(o.statement)) { + a = g.factory.createObjectLiteralExpression([g.factory.createPropertyAssignment(o.label, o.statement.expression)]); + if (l(e, t, s(e, o.label, o.statement.expression), r, n)) return { + declaration: t, + kind: y.MissingReturnStatement, + expression: a, + statement: i, + commentSource: o + } + } + } + } + } + + function l(e, t, r, n, i) { + return i && (r = (i = e.getSignatureFromDeclaration(t)) ? (g.hasSyntacticModifier(t, 512) && (r = e.createPromiseType(r)), t = e.createSignature(t, i.typeParameters, i.thisParameter, i.parameters, r, void 0, i.minArgumentCount, i.flags), e.createAnonymousType(void 0, g.createSymbolTable(), [t], [], [])) : e.getAnyType()), e.isTypeAssignableTo(r, n) + } + + function D(e, t, r, n) { + var i = g.getTokenAtPosition(t, r); + if (i.parent) { + var a, o = g.findAncestor(i.parent, g.isFunctionLikeDeclaration); + switch (n) { + case g.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code: + return o && o.body && o.type && g.rangeContainsRange(o.type, i) ? c(e, o, e.getTypeFromTypeNode(o.type), !1) : void 0; + case g.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code: + return o && g.isCallExpression(o.parent) && o.body ? (a = o.parent.arguments.indexOf(o), (a = e.getContextualTypeForArgumentAtIndex(o.parent, a)) ? c(e, o, a, !0) : void 0) : void 0; + case g.Diagnostics.Type_0_is_not_assignable_to_type_1.code: + return g.isDeclarationName(i) && (g.isVariableLike(i.parent) || g.isJsxAttribute(i.parent)) ? (a = function(e) { + switch (e.kind) { + case 257: + case 166: + case 205: + case 169: + case 299: + return e.initializer; + case 288: + return e.initializer && (g.isJsxExpression(e.initializer) ? e.initializer.expression : void 0); + case 300: + case 168: + case 302: + case 350: + case 343: + return + } + }(i.parent)) && g.isFunctionLikeDeclaration(a) && a.body ? c(e, a, e.getTypeAtLocation(i.parent), !0) : void 0 : void 0 + } + } + } + + function S(e, t, r, n) { + g.suppressLeadingAndTrailingTrivia(r); + var i = g.probablyUsesSemicolons(t); + e.replaceNode(t, n, g.factory.createReturnStatement(r), { + leadingTriviaOption: g.textChanges.LeadingTriviaOption.Exclude, + trailingTriviaOption: g.textChanges.TrailingTriviaOption.Exclude, + suffix: i ? ";" : void 0 + }) + } + + function T(e, t, r, n, i, a) { + a = a || g.needsParentheses(n) ? g.factory.createParenthesizedExpression(n) : n; + g.suppressLeadingAndTrailingTrivia(i), g.copyComments(i, a), e.replaceNode(t, r.body, a) + } + + function C(e, t, r, n) { + e.replaceNode(t, r.body, g.factory.createParenthesizedExpression(n)) + } + m = g.codefix || (g.codefix = {}), h = "returnValueCorrect", v = "fixAddReturnStatement", b = "fixRemoveBracesFromArrowFunctionBody", x = "fixWrapTheBlockWithParen", t = [g.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code, g.Diagnostics.Type_0_is_not_assignable_to_type_1.code, g.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code], (e = y = y || {})[e.MissingReturnStatement = 0] = "MissingReturnStatement", e[e.MissingParentheses = 1] = "MissingParentheses", m.registerCodeFix({ + errorCodes: t, + fixIds: [v, b, x], + getCodeActions: function(e) { + var t, r, n, i, a, o, s, c, l, u, _ = e.program, + d = e.sourceFile, + p = e.span.start, + f = e.errorCode, + _ = D(_.getTypeChecker(), d, p, f); + if (_) return _.kind === y.MissingReturnStatement ? g.append([(c = e, l = _.expression, u = _.statement, d = g.textChanges.ChangeTracker.with(c, function(e) { + return S(e, c.sourceFile, l, u) + }), m.createCodeFixAction(h, d, g.Diagnostics.Add_a_return_statement, v, g.Diagnostics.Add_all_missing_return_statement))], g.isArrowFunction(_.declaration) ? (i = e, a = _.declaration, o = _.expression, s = _.commentSource, p = g.textChanges.ChangeTracker.with(i, function(e) { + return T(e, i.sourceFile, a, o, s, !1) + }), m.createCodeFixAction(h, p, g.Diagnostics.Remove_braces_from_arrow_function_body, b, g.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)) : void 0) : [(t = e, r = _.declaration, n = _.expression, f = g.textChanges.ChangeTracker.with(t, function(e) { + return C(e, t.sourceFile, r, n) + }), m.createCodeFixAction(h, f, g.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal, x, g.Diagnostics.Wrap_all_object_literal_with_parentheses))] + }, + getAllCodeActions: function(n) { + return m.codeFixAll(n, t, function(e, t) { + var r = D(n.program.getTypeChecker(), t.file, t.start, t.code); + if (r) switch (n.fixId) { + case v: + S(e, t.file, r.expression, r.statement); + break; + case b: + g.isArrowFunction(r.declaration) && T(e, t.file, r.declaration, r.expression, r.commentSource, !1); + break; + case x: + g.isArrowFunction(r.declaration) && C(e, t.file, r.declaration, r.expression); + break; + default: + g.Debug.fail(JSON.stringify(n.fixId)) + } + }) + } + }) + }(ts = ts || {}), ! function(d) { + var p, f, e, u, a, o, s, t; + + function g(e, t, r, n, i) { + var t = d.getTokenAtPosition(e, t), + a = t.parent; + if (r === d.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code) return 18 === t.kind && d.isObjectLiteralExpression(a) && d.isCallExpression(a.parent) && !((r = d.findIndex(a.parent.arguments, function(e) { + return e === a + })) < 0) && (c = n.getResolvedSignature(a.parent)) && c.declaration && c.parameters[r] && (o = c.parameters[r].valueDeclaration) && d.isParameter(o) && d.isIdentifier(o.name) && (s = d.arrayFrom(n.getUnmatchedProperties(n.getTypeAtLocation(a), n.getParameterType(c, r), !1, !1)), d.length(s)) ? { + kind: f.ObjectLiteral, + token: o.name, + properties: s, + parentDeclaration: a + } : void 0; + if (d.isMemberName(t)) { + if (d.isIdentifier(t) && d.hasInitializer(a) && a.initializer && d.isObjectLiteralExpression(a.initializer)) return s = d.arrayFrom(n.getUnmatchedProperties(n.getTypeAtLocation(a.initializer), n.getTypeAtLocation(t), !1, !1)), d.length(s) ? { + kind: f.ObjectLiteral, + token: t, + properties: s, + parentDeclaration: a.initializer + } : void 0; + if (d.isIdentifier(t) && d.isJsxOpeningLikeElement(t.parent)) return r = function(e, t, r) { + var n = e.getContextualType(r.attributes); + if (void 0 === n) return d.emptyArray; + n = n.getProperties(); + if (!d.length(n)) return d.emptyArray; + for (var i = new d.Set, a = 0, o = r.attributes.properties; a < o.length; a++) { + var s = o[a]; + if (d.isJsxAttribute(s) && i.add(s.name.escapedText), d.isJsxSpreadAttribute(s)) + for (var s = e.getTypeAtLocation(s.expression), c = 0, l = s.getProperties(); c < l.length; c++) { + var u = l[c]; + i.add(u.escapedName) + } + } + return d.filter(n, function(e) { + return d.isIdentifierText(e.name, t, 1) && !(16777216 & e.flags || 48 & d.getCheckFlags(e) || i.has(e.escapedName)) + }) + }(n, d.getEmitScriptTarget(i.getCompilerOptions()), t.parent), d.length(r) ? { + kind: f.JsxAttributes, + token: t, + attributes: r, + parentDeclaration: t.parent + } : void 0; + if (d.isIdentifier(t)) { + var o = n.getContextualType(t); + if (o && 16 & d.getObjectFlags(o)) return void 0 === (c = d.firstOrUndefined(n.getSignaturesOfType(o, 0))) ? void 0 : { + kind: f.Signature, + token: t, + signature: c, + sourceFile: e, + parentDeclaration: C(t) + }; + if (d.isCallExpression(a) && a.expression === t) return { + kind: f.Function, + token: t, + call: a, + sourceFile: e, + modifierFlags: 0, + parentDeclaration: C(t) + } + } + if (d.isPropertyAccessExpression(a)) { + var s = d.skipConstraint(n.getTypeAtLocation(a.expression)), + r = s.symbol; + if (r && r.declarations) { + if (d.isIdentifier(t) && d.isCallExpression(a.parent)) { + var o = d.find(r.declarations, d.isModuleDeclaration), + c = null == o ? void 0 : o.getSourceFile(); + if (o && c && !d.isSourceFileFromLibrary(i, c)) return { + kind: f.Function, + token: t, + call: a.parent, + sourceFile: e, + modifierFlags: 1, + parentDeclaration: o + }; + c = d.find(r.declarations, d.isSourceFile); + if (e.commonJsModuleIndicator) return; + if (c && !d.isSourceFileFromLibrary(i, c)) return { + kind: f.Function, + token: t, + call: a.parent, + sourceFile: c, + modifierFlags: 1, + parentDeclaration: c + } + } + var l, o = d.find(r.declarations, d.isClassLike); + if (o || !d.isPrivateIdentifier(t)) return (e = o || d.find(r.declarations, function(e) { + return d.isInterfaceDeclaration(e) || d.isTypeLiteralNode(e) + })) && !d.isSourceFileFromLibrary(i, e.getSourceFile()) ? (c = !d.isTypeLiteralNode(e) && (s.target || s) !== n.getDeclaredTypeOfSymbol(r)) && (d.isPrivateIdentifier(t) || d.isInterfaceDeclaration(e)) ? void 0 : (o = e.getSourceFile(), n = d.isTypeLiteralNode(e) ? 0 : (c ? 32 : 0) | (d.startsWithUnderscore(t.text) ? 8 : 0), c = d.isSourceFileJS(o), l = d.tryCast(a.parent, d.isCallExpression), { + kind: f.TypeLikeDeclaration, + token: t, + call: l, + modifierFlags: n, + parentDeclaration: e, + declSourceFile: o, + isJSFile: c + }) : !(l = d.find(r.declarations, d.isEnumDeclaration)) || 1056 & s.flags || d.isPrivateIdentifier(t) || d.isSourceFileFromLibrary(i, l.getSourceFile()) ? void 0 : { + kind: f.Enum, + token: t, + parentDeclaration: l + } + } + } + } + } + + function m(e, t, r, n, i) { + var a = n.text; + i ? 228 !== r.kind && (i = r.name.getText(), i = c(d.factory.createIdentifier(i), a), e.insertNodeAfter(t, r, i)) : d.isPrivateIdentifier(n) ? (i = d.factory.createPropertyDeclaration(void 0, a, void 0, void 0, void 0), (n = l(r)) ? e.insertNodeAfter(t, n, i) : e.insertMemberAtStart(t, r, i)) : (n = d.getFirstConstructorWithBody(r)) && (i = c(d.factory.createThis(), a), e.insertNodeAtConstructorEnd(t, n, i)) + } + + function c(e, t) { + return d.factory.createExpressionStatement(d.factory.createAssignment(d.factory.createPropertyAccessExpression(e, t), T())) + } + + function y(e, t, r) { + var n; + return (223 === r.parent.parent.kind ? (n = r.parent.parent, n = r.parent === n.left ? n.right : n.left, n = e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(n))), e.typeToTypeNode(n, t, 1)) : (n = e.getContextualType(r.parent)) ? e.typeToTypeNode(n, void 0, 1) : void 0) || d.factory.createKeywordTypeNode(131) + } + + function h(e, t, r, n, i, a) { + a = a ? d.factory.createNodeArray(d.factory.createModifiersFromModifierFlags(a)) : void 0, a = d.isClassLike(r) ? d.factory.createPropertyDeclaration(a, n, void 0, i, void 0) : d.factory.createPropertySignature(void 0, n, void 0, i), n = l(r); + n ? e.insertNodeAfter(t, n, a) : e.insertMemberAtStart(t, r, a) + } + + function l(e) { + for (var t, r = 0, n = e.members; r < n.length; r++) { + var i = n[r]; + if (!d.isPropertyDeclaration(i)) break; + t = i + } + return t + } + + function v(e, t, r, n, i, a, o) { + var s = p.createImportAdder(o, e.program, e.preferences, e.host), + c = d.isClassLike(a) ? 171 : 170, + c = p.createSignatureDeclarationFromCallExpression(c, e, s, r, n, i, a), + e = function(e, t) { + if (d.isTypeLiteralNode(e)) return; + t = d.findAncestor(t, function(e) { + return d.isMethodDeclaration(e) || d.isConstructorDeclaration(e) + }); + return t && t.parent === e ? t : void 0 + }(a, r); + e ? t.insertNodeAfter(o, e, c) : t.insertMemberAtStart(o, a, c), s.writeFixes(t) + } + + function b(e, t, r) { + var n = r.token, + r = r.parentDeclaration, + i = d.some(r.members, function(e) { + e = t.getTypeAtLocation(e); + return !!(e && 402653316 & e.flags) + }), + i = d.factory.createEnumMember(n, i ? d.factory.createStringLiteral(n.text) : void 0); + e.replaceNode(r.getSourceFile(), r, d.factory.updateEnumDeclaration(r, r.modifiers, r.name, d.concatenate(r.members, d.singleElementArray(i))), { + leadingTriviaOption: d.textChanges.LeadingTriviaOption.IncludeAll, + trailingTriviaOption: d.textChanges.TrailingTriviaOption.Exclude + }) + } + + function x(e, t, r) { + var n = d.getQuotePreference(t.sourceFile, t.preferences), + i = p.createImportAdder(t.sourceFile, t.program, t.preferences, t.host), + t = r.kind === f.Function ? p.createSignatureDeclarationFromCallExpression(259, t, i, r.call, d.idText(r.token), r.modifierFlags, r.parentDeclaration) : p.createSignatureDeclarationFromSignature(259, t, n, r.signature, p.createStubbedBody(d.Diagnostics.Function_not_implemented.message, n), r.token, void 0, void 0, void 0, i); + void 0 === t && d.Debug.fail("fixMissingFunctionDeclaration codefix got unexpected error."), d.isReturnStatement(r.parentDeclaration) ? e.insertNodeBefore(r.sourceFile, r.parentDeclaration, t, !0) : e.insertNodeAtEndOfScope(r.sourceFile, r.parentDeclaration, t), i.writeFixes(e) + } + + function D(e, r, n) { + var i = p.createImportAdder(r.sourceFile, r.program, r.preferences, r.host), + a = d.getQuotePreference(r.sourceFile, r.preferences), + o = r.program.getTypeChecker(), + t = n.parentDeclaration.attributes, + s = d.some(t.properties, d.isJsxSpreadAttribute), + c = d.map(n.attributes, function(e) { + var t = _(r, o, i, a, o.getTypeOfSymbol(e), n.parentDeclaration), + e = d.factory.createIdentifier(e.name), + t = d.factory.createJsxAttribute(e, d.factory.createJsxExpression(void 0, t)); + return d.setParent(e, t), t + }), + s = d.factory.createJsxAttributes(s ? __spreadArray(__spreadArray([], c, !0), t.properties, !0) : __spreadArray(__spreadArray([], t.properties, !0), c, !0)), + c = { + prefix: t.pos === t.end ? " " : void 0 + }; + e.replaceNode(r.sourceFile, t, s, c), i.writeFixes(e) + } + + function S(e, r, n) { + var i = p.createImportAdder(r.sourceFile, r.program, r.preferences, r.host), + a = d.getQuotePreference(r.sourceFile, r.preferences), + o = d.getEmitScriptTarget(r.program.getCompilerOptions()), + s = r.program.getTypeChecker(), + t = d.map(n.properties, function(e) { + var t = _(r, s, i, a, s.getTypeOfSymbol(e), n.parentDeclaration); + return d.factory.createPropertyAssignment(function(e, t, r, n) { + if (d.isTransientSymbol(e)) { + n = n.symbolToNode(e, 111551, void 0, 1073741824); + if (n && d.isComputedPropertyName(n)) return n + } + return d.createPropertyNameNodeForIdentifierOrLiteral(e.name, t, 0 === r) + }(e, o, a, s), t) + }), + c = { + leadingTriviaOption: d.textChanges.LeadingTriviaOption.Exclude, + trailingTriviaOption: d.textChanges.TrailingTriviaOption.Exclude, + indentation: n.indentation + }; + e.replaceNode(r.sourceFile, n.parentDeclaration, d.factory.createObjectLiteralExpression(__spreadArray(__spreadArray([], n.parentDeclaration.properties, !0), t, !0), !0), c), i.writeFixes(e) + } + + function _(r, n, i, a, e, o) { + var t, s; + return 3 & e.flags ? T() : 134217732 & e.flags ? d.factory.createStringLiteral("", 0 === a) : 8 & e.flags ? d.factory.createNumericLiteral(0) : 64 & e.flags ? d.factory.createBigIntLiteral("0n") : 16 & e.flags ? d.factory.createFalse() : 1056 & e.flags ? (t = e.symbol.exports ? d.firstOrUndefined(d.arrayFrom(e.symbol.exports.values())) : e.symbol, s = n.symbolToExpression(e.symbol.parent || e.symbol, 111551, void 0, void 0), void 0 === t || void 0 === s ? d.factory.createNumericLiteral(0) : d.factory.createPropertyAccessExpression(s, n.symbolToString(t))) : 256 & e.flags ? d.factory.createNumericLiteral(e.value) : 2048 & e.flags ? d.factory.createBigIntLiteral(e.value) : 128 & e.flags ? d.factory.createStringLiteral(e.value, 0 === a) : 512 & e.flags ? e === n.getFalseType() || e === n.getFalseType(!0) ? d.factory.createFalse() : d.factory.createTrue() : 65536 & e.flags ? d.factory.createNull() : 1048576 & e.flags ? null != (s = d.firstDefined(e.types, function(e) { + return _(r, n, i, a, e, o) + })) ? s : T() : n.isArrayLikeType(e) ? d.factory.createArrayLiteralExpression() : 524288 & (t = e).flags && (128 & d.getObjectFlags(t) || t.symbol && d.tryCast(d.singleOrUndefined(t.symbol.declarations), d.isTypeLiteralNode)) ? (s = d.map(n.getPropertiesOfType(e), function(e) { + var t = e.valueDeclaration ? _(r, n, i, a, n.getTypeAtLocation(e.valueDeclaration), o) : T(); + return d.factory.createPropertyAssignment(e.name, t) + }), d.factory.createObjectLiteralExpression(s, !0)) : 16 & d.getObjectFlags(e) ? void 0 !== d.find(e.symbol.declarations || d.emptyArray, d.or(d.isFunctionTypeNode, d.isMethodSignature, d.isMethodDeclaration)) && void 0 !== (s = n.getSignaturesOfType(e, 0)) && null != (s = p.createSignatureDeclarationFromSignature(215, r, a, s[0], p.createStubbedBody(d.Diagnostics.Function_not_implemented.message, a), void 0, void 0, void 0, o, i)) ? s : T() : !(1 & d.getObjectFlags(e)) || void 0 === (s = d.getClassLikeDeclarationOfSymbol(e.symbol)) || d.hasAbstractModifier(s) || (s = d.getFirstConstructorWithBody(s)) && d.length(s.parameters) ? T() : d.factory.createNewExpression(d.factory.createIdentifier(e.symbol.name), void 0, void 0) + } + + function T() { + return d.factory.createIdentifier("undefined") + } + + function C(e) { + if (d.findAncestor(e, d.isJsxExpression)) { + var t = d.findAncestor(e.parent, d.isReturnStatement); + if (t) return t + } + return d.getSourceFileOfNode(e) + } + p = d.codefix || (d.codefix = {}), u = "fixMissingMember", a = "fixMissingProperties", o = "fixMissingAttributes", s = "fixMissingFunctionDeclaration", t = [d.Diagnostics.Property_0_does_not_exist_on_type_1.code, d.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code, d.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code, d.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code, d.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code, d.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code, d.Diagnostics.Cannot_find_name_0.code], (e = f = f || {})[e.TypeLikeDeclaration = 0] = "TypeLikeDeclaration", e[e.Enum = 1] = "Enum", e[e.Function = 2] = "Function", e[e.ObjectLiteral = 3] = "ObjectLiteral", e[e.JsxAttributes = 4] = "JsxAttributes", e[e.Signature = 5] = "Signature", p.registerCodeFix({ + errorCodes: t, + getCodeActions: function(t) { + var e, r = t.program.getTypeChecker(), + n = g(t.sourceFile, t.span.start, t.errorCode, r, t.program); + if (n) return n.kind === f.ObjectLiteral ? (e = d.textChanges.ChangeTracker.with(t, function(e) { + return S(e, t, n) + }), [p.createCodeFixAction(a, e, d.Diagnostics.Add_missing_properties, a, d.Diagnostics.Add_all_missing_properties)]) : n.kind === f.JsxAttributes ? (e = d.textChanges.ChangeTracker.with(t, function(e) { + return D(e, t, n) + }), [p.createCodeFixAction(o, e, d.Diagnostics.Add_missing_attributes, o, d.Diagnostics.Add_all_missing_attributes)]) : n.kind === f.Function || n.kind === f.Signature ? (e = d.textChanges.ChangeTracker.with(t, function(e) { + return x(e, t, n) + }), [p.createCodeFixAction(s, e, [d.Diagnostics.Add_missing_function_declaration_0, n.token.text], s, d.Diagnostics.Add_all_missing_function_declarations)]) : n.kind === f.Enum ? (e = d.textChanges.ChangeTracker.with(t, function(e) { + return b(e, t.program.getTypeChecker(), n) + }), [p.createCodeFixAction(u, e, [d.Diagnostics.Add_missing_enum_member_0, n.token.text], u, d.Diagnostics.Add_all_missing_members)]) : d.concatenate(function(r, e) { + var n = e.parentDeclaration, + i = e.declSourceFile, + t = e.modifierFlags, + a = e.token, + o = e.call; + if (void 0 === o) return; + if (d.isPrivateIdentifier(a)) return; + + function s(t) { + return d.textChanges.ChangeTracker.with(r, function(e) { + return v(r, e, o, a, t, n, i) + }) + } + var e = a.text, + c = [p.createCodeFixAction(u, s(32 & t), [32 & t ? d.Diagnostics.Declare_static_method_0 : d.Diagnostics.Declare_method_0, e], u, d.Diagnostics.Add_all_missing_members)]; + 8 & t && c.unshift(p.createCodeFixActionWithoutFixAll(u, s(8), [d.Diagnostics.Declare_private_method_0, e])); + return c + }(t, n), (r = t, (e = n).isJSFile ? d.singleElementArray(function(e, t) { + var r = t.parentDeclaration, + n = t.declSourceFile, + i = t.modifierFlags, + a = t.token; + if (d.isInterfaceDeclaration(r) || d.isTypeLiteralNode(r)) return; + t = d.textChanges.ChangeTracker.with(e, function(e) { + return m(e, n, r, a, !!(32 & i)) + }); + if (0 === t.length) return; + e = 32 & i ? d.Diagnostics.Initialize_static_property_0 : d.isPrivateIdentifier(a) ? d.Diagnostics.Declare_a_private_field_named_0 : d.Diagnostics.Initialize_property_0_in_the_constructor; + return p.createCodeFixAction(u, t, [e, a.text], u, d.Diagnostics.Add_all_missing_members) + }(r, e)) : function(e, t) { + function r(t) { + return d.textChanges.ChangeTracker.with(e, function(e) { + return h(e, i, n, o, c, t) + }) + } + var n = t.parentDeclaration, + i = t.declSourceFile, + a = t.modifierFlags, + t = t.token, + o = t.text, + s = 32 & a, + c = y(e.program.getTypeChecker(), n, t), + l = [p.createCodeFixAction(u, r(32 & a), [s ? d.Diagnostics.Declare_static_property_0 : d.Diagnostics.Declare_property_0, o], u, d.Diagnostics.Add_all_missing_members)]; + return s || d.isPrivateIdentifier(t) || (8 & a && l.unshift(p.createCodeFixActionWithoutFixAll(u, r(8), [d.Diagnostics.Declare_private_property_0, o])), l.push(function(e, t, r, n, i) { + var a = d.factory.createKeywordTypeNode(152), + a = d.factory.createParameterDeclaration(void 0, void 0, "x", void 0, a, void 0), + o = d.factory.createIndexSignature(void 0, [a], i), + a = d.textChanges.ChangeTracker.with(e, function(e) { + return e.insertMemberAtStart(t, r, o) + }); + return p.createCodeFixActionWithoutFixAll(u, a, [d.Diagnostics.Add_index_signature_for_property_0, n]) + }(e, i, n, t.text, c))), l + }(r, e))) + }, + fixIds: [u, s, a, o], + getAllCodeActions: function(l) { + var e = l.program, + n = l.fixId, + u = e.getTypeChecker(), + i = new d.Map, + _ = new d.Map; + return p.createCombinedCodeActions(d.textChanges.ChangeTracker.with(l, function(c) { + p.eachDiagnostic(l, t, function(e) { + var t, r, e = g(e.file, e.start, e.code, u, l.program); + e && d.addToSeen(i, d.getNodeId(e.parentDeclaration) + "#" + e.token.text) && (n !== s || e.kind !== f.Function && e.kind !== f.Signature ? n === a && e.kind === f.ObjectLiteral ? S(c, l, e) : n === o && e.kind === f.JsxAttributes ? D(c, l, e) : (e.kind === f.Enum && b(c, u, e), e.kind === f.TypeLikeDeclaration && (r = e.parentDeclaration, t = e.token, (r = d.getOrUpdate(_, r, function() { + return [] + })).some(function(e) { + return e.token.text === t.text + }) || r.push(e))) : x(c, l, e)) + }), _.forEach(function(e, t) { + for (var s = d.isTypeLiteralNode(t) ? void 0 : p.getAllSupers(t, u), r = 0, n = e; r < n.length; r++) ! function(t) { + if (null != s && s.some(function(e) { + e = _.get(e); + return !!e && e.some(function(e) { + return e.token.text === t.token.text + }) + })) return; + var e = t.parentDeclaration, + r = t.declSourceFile, + n = t.modifierFlags, + i = t.token, + a = t.call, + o = t.isJSFile; + a && !d.isPrivateIdentifier(i) ? v(l, c, a, i, 32 & n, e, r) : !o || d.isInterfaceDeclaration(e) || d.isTypeLiteralNode(e) ? (a = y(u, e, i), h(c, r, e, i.text, a, 32 & n)) : m(c, r, e, i, !!(32 & n)) + }(n[r]) + }) + })) + } + }) + }(ts = ts || {}), ! function(i) { + var n, a, e; + + function o(e, t, r) { + var r = i.cast(function(e, t) { + var r = i.getTokenAtPosition(e, t.start), + n = i.textSpanEnd(t); + for (; r.end < n;) r = r.parent; + return r + }(t, r), i.isCallExpression), + n = i.factory.createNewExpression(r.expression, r.typeArguments, r.arguments); + e.replaceNode(t, r, n) + } + n = i.codefix || (i.codefix = {}), a = "addMissingNewOperator", e = [i.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code], n.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var t = e.sourceFile, + r = e.span, + e = i.textChanges.ChangeTracker.with(e, function(e) { + return o(e, t, r) + }); + return [n.createCodeFixAction(a, e, i.Diagnostics.Add_missing_new_operator_to_call, a, i.Diagnostics.Add_missing_new_operator_to_all_calls)] + }, + fixIds: [a], + getAllCodeActions: function(r) { + return n.codeFixAll(r, e, function(e, t) { + return o(e, r.sourceFile, t) + }) + } + }) + }(ts = ts || {}), ! function(a) { + var o, s, n, e; + + function c(e, t) { + return { + type: "install package", + file: e, + packageName: t + } + } + + function l(e, t) { + var e = a.tryCast(a.getTokenAtPosition(e, t), a.isStringLiteral); + if (e) return t = e.text, e = a.parsePackageName(t).packageName, a.isExternalModuleNameRelative(e) ? void 0 : e + } + + function u(e, t, r) { + return r === n ? a.JsTyping.nodeCoreModules.has(e) ? "@types/node" : void 0 : null != (r = t.isKnownTypesPackageName) && r.call(t, e) ? a.getTypesPackageName(e) : void 0 + } + o = a.codefix || (a.codefix = {}), s = "installTypesPackage", n = a.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code, e = [n, a.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code], o.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var t = e.host, + r = e.sourceFile, + n = l(r, e.span.start); + if (void 0 !== n) return void 0 === (n = u(n, t, e.errorCode)) ? [] : [o.createCodeFixAction("fixCannotFindModule", [], [a.Diagnostics.Install_0, n], s, a.Diagnostics.Install_all_missing_types_packages, c(r.fileName, n))] + }, + fixIds: [s], + getAllCodeActions: function(i) { + return o.codeFixAll(i, e, function(e, t, r) { + var n = l(t.file, t.start); + void 0 !== n && (i.fixId === s ? (n = u(n, i.host, t.code)) && r.push(c(t.file.fileName, n)) : a.Debug.fail("Bad fixId: ".concat(i.fixId))) + }) + } + }) + }(ts = ts || {}), ! function(s) { + var c, e, i; + + function a(e, t) { + e = s.getTokenAtPosition(e, t); + return s.cast(e.parent, s.isClassLike) + } + + function o(t, r, e, n, i) { + var a = s.getEffectiveBaseTypeNode(t), + o = e.program.getTypeChecker(), + a = o.getTypeAtLocation(a), + o = o.getPropertiesOfType(a).filter(l), + a = c.createImportAdder(r, e.program, i, e.host); + c.createMissingMemberNodes(t, o, r, e, i, a, function(e) { + return n.insertMemberAtStart(r, t, e) + }), a.writeFixes(n) + } + + function l(e) { + e = s.getSyntacticModifierFlags(s.first(e.getDeclarations())); + return !(8 & e || !(256 & e)) + } + c = s.codefix || (s.codefix = {}), e = [s.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code, s.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code], i = "fixClassDoesntImplementInheritedAbstractMember", c.registerCodeFix({ + errorCodes: e, + getCodeActions: function(t) { + var r = t.sourceFile, + n = t.span, + e = s.textChanges.ChangeTracker.with(t, function(e) { + return o(a(r, n.start), r, t, e, t.preferences) + }); + return 0 === e.length ? void 0 : [c.createCodeFixAction(i, e, s.Diagnostics.Implement_inherited_abstract_class, i, s.Diagnostics.Implement_all_inherited_abstract_classes)] + }, + fixIds: [i], + getAllCodeActions: function(r) { + var n = new s.Map; + return c.codeFixAll(r, e, function(e, t) { + t = a(t.file, t.start); + s.addToSeen(n, s.getNodeId(t)) && o(t, r.sourceFile, r, e, r.preferences) + }) + } + }) + }(ts = ts || {}), ! function(a) { + var o, s, t; + + function c(e, t, r, n) { + e.insertNodeAtConstructorStart(t, r, n), e.delete(t, n) + } + + function l(e, t) { + var r = a.getTokenAtPosition(e, t); + return 108 === r.kind && (t = n((e = a.getContainingFunction(r)).body)) && !t.expression.arguments.some(function(e) { + return a.isPropertyAccessExpression(e) && e.expression === r + }) ? { + constructor: e, + superCall: t + } : void 0 + } + + function n(e) { + return a.isExpressionStatement(e) && a.isSuperCall(e.expression) ? e : a.isFunctionLike(e) ? void 0 : a.forEachChild(e, n) + } + o = a.codefix || (a.codefix = {}), s = "classSuperMustPrecedeThisAccess", t = [a.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code], o.registerCodeFix({ + errorCodes: t, + getCodeActions: function(e) { + var t, r, n = e.sourceFile, + i = e.span, + i = l(n, i.start); + if (i) return t = i.constructor, r = i.superCall, i = a.textChanges.ChangeTracker.with(e, function(e) { + return c(e, n, t, r) + }), [o.createCodeFixAction(s, i, a.Diagnostics.Make_super_call_the_first_statement_in_the_constructor, s, a.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)] + }, + fixIds: [s], + getAllCodeActions: function(e) { + var n = e.sourceFile, + i = new a.Map; + return o.codeFixAll(e, t, function(e, t) { + var r, t = l(t.file, t.start); + t && (r = t.constructor, t = t.superCall, a.addToSeen(i, a.getNodeId(r.parent))) && c(e, n, r, t) + }) + } + }) + }(ts = ts || {}), ! function(i) { + var a, o, e; + + function s(e, t) { + e = i.getTokenAtPosition(e, t); + return i.Debug.assert(i.isConstructorDeclaration(e.parent), "token should be at the constructor declaration"), e.parent + } + + function c(e, t, r) { + var n = i.factory.createExpressionStatement(i.factory.createCallExpression(i.factory.createSuper(), void 0, i.emptyArray)); + e.insertNodeAtConstructorStart(t, r, n) + } + a = i.codefix || (i.codefix = {}), o = "constructorForDerivedNeedSuperCall", e = [i.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code], a.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var t = e.sourceFile, + r = e.span, + n = s(t, r.start), + r = i.textChanges.ChangeTracker.with(e, function(e) { + return c(e, t, n) + }); + return [a.createCodeFixAction(o, r, i.Diagnostics.Add_missing_super_call, o, i.Diagnostics.Add_all_missing_super_calls)] + }, + fixIds: [o], + getAllCodeActions: function(r) { + return a.codeFixAll(r, e, function(e, t) { + return c(e, r.sourceFile, s(t.file, t.start)) + }) + } + }) + }(ts = ts || {}), ! function(r) { + var n, i, e; + + function a(e, t) { + n.setJsonCompilerOptionValue(e, t, "experimentalDecorators", r.factory.createTrue()) + } + n = r.codefix || (r.codefix = {}), i = "enableExperimentalDecorators", e = [r.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code], n.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var t = e.program.getCompilerOptions().configFile; + if (void 0 !== t) return e = r.textChanges.ChangeTracker.with(e, function(e) { + return a(e, t) + }), [n.createCodeFixActionWithoutFixAll(i, e, r.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)] + }, + fixIds: [i], + getAllCodeActions: function(r) { + return n.codeFixAll(r, e, function(e) { + var t = r.program.getCompilerOptions().configFile; + void 0 !== t && a(e, t) + }) + } + }) + }(ts = ts || {}), ! function(r) { + var n, i, e; + + function a(e, t) { + n.setJsonCompilerOptionValue(e, t, "jsx", r.factory.createStringLiteral("react")) + } + n = r.codefix || (r.codefix = {}), i = "fixEnableJsxFlag", e = [r.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code], n.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var t = e.program.getCompilerOptions().configFile; + if (void 0 !== t) return e = r.textChanges.ChangeTracker.with(e, function(e) { + return a(e, t) + }), [n.createCodeFixActionWithoutFixAll(i, e, r.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)] + }, + fixIds: [i], + getAllCodeActions: function(r) { + return n.codeFixAll(r, e, function(e) { + var t = r.program.getCompilerOptions().configFile; + void 0 !== t && a(e, t) + }) + } + }) + }(ts = ts || {}), ! function(o) { + var s, c, e; + + function l(e, t, r) { + var e = o.find(e.getSemanticDiagnostics(t), function(e) { + return e.start === r.start && e.length === r.length + }); + return void 0 !== e && void 0 !== e.relatedInformation && void 0 !== (t = o.find(e.relatedInformation, function(e) { + return e.code === o.Diagnostics.Did_you_mean_0.code + })) && void 0 !== t.file && void 0 !== t.start && void 0 !== t.length && void 0 !== (e = s.findAncestorMatchingSpan(t.file, o.createTextSpan(t.start, t.length))) && o.isExpression(e) && o.isBinaryExpression(e.parent) ? { + suggestion: function(e) { + e = o.flattenDiagnosticMessageText(e, "\n", 0).match(/\'(.*)\'/) || []; + e[0]; + return e[1] + }(t.messageText), + expression: e.parent, + arg: e + } : void 0 + } + + function u(e, t, r, n) { + var r = o.factory.createCallExpression(o.factory.createPropertyAccessExpression(o.factory.createIdentifier("Number"), o.factory.createIdentifier("isNaN")), void 0, [r]), + i = n.operatorToken.kind; + e.replaceNode(t, n, 37 === i || 35 === i ? o.factory.createPrefixUnaryExpression(53, r) : r) + } + s = o.codefix || (o.codefix = {}), c = "fixNaNEquality", e = [o.Diagnostics.This_condition_will_always_return_0.code], s.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var t, r, n, i = e.sourceFile, + a = e.span, + a = l(e.program, i, a); + if (void 0 !== a) return t = a.suggestion, r = a.expression, n = a.arg, a = o.textChanges.ChangeTracker.with(e, function(e) { + return u(e, i, n, r) + }), [s.createCodeFixAction(c, a, [o.Diagnostics.Use_0, t], c, o.Diagnostics.Use_Number_isNaN_in_all_conditions)] + }, + fixIds: [c], + getAllCodeActions: function(n) { + return s.codeFixAll(n, e, function(e, t) { + var r = l(n.program, t.file, o.createTextSpan(t.start, t.length)); + r && u(e, t.file, r.arg, r.expression) + }) + } + }) + }(ts = ts || {}), ! function(o) { + var s; + (s = o.codefix || (o.codefix = {})).registerCodeFix({ + errorCodes: [o.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code, o.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code], + getCodeActions: function(e) { + var t, r, n, i = e.program.getCompilerOptions(), + a = i.configFile; + if (void 0 !== a) return t = [], (r = o.getEmitModuleKind(i)) >= o.ModuleKind.ES2015 && r < o.ModuleKind.ESNext && (n = o.textChanges.ChangeTracker.with(e, function(e) { + s.setJsonCompilerOptionValue(e, a, "module", o.factory.createStringLiteral("esnext")) + }), t.push(s.createCodeFixActionWithoutFixAll("fixModuleOption", n, [o.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0, "esnext"]))), ((i = o.getEmitScriptTarget(i)) < 4 || 99 < i) && (n = o.textChanges.ChangeTracker.with(e, function(e) { + var t; + o.getTsConfigObjectLiteralExpression(a) && (t = [ + ["target", o.factory.createStringLiteral("es2017")] + ], r === o.ModuleKind.CommonJS && t.push(["module", o.factory.createStringLiteral("commonjs")]), s.setJsonCompilerOptionValues(e, a, t)) + }), t.push(s.createCodeFixActionWithoutFixAll("fixTargetOption", n, [o.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0, "es2017"]))), t.length ? t : void 0 + } + }) + }(ts = ts || {}), ! function(n) { + var i, a, t; + + function o(e, t, r) { + e.replaceNode(t, r, n.factory.createPropertyAssignment(r.name, r.objectAssignmentInitializer)) + } + + function s(e, t) { + return n.cast(n.getTokenAtPosition(e, t).parent, n.isShorthandPropertyAssignment) + } + i = n.codefix || (n.codefix = {}), a = "fixPropertyAssignment", t = [n.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code], i.registerCodeFix({ + errorCodes: t, + fixIds: [a], + getCodeActions: function(t) { + var r = s(t.sourceFile, t.span.start), + e = n.textChanges.ChangeTracker.with(t, function(e) { + return o(e, t.sourceFile, r) + }); + return [i.createCodeFixAction(a, e, [n.Diagnostics.Change_0_to_1, "=", ":"], a, [n.Diagnostics.Switch_each_misused_0_to_1, "=", ":"])] + }, + getAllCodeActions: function(e) { + return i.codeFixAll(e, t, function(e, t) { + return o(e, t.file, s(t.file, t.start)) + }) + } + }) + }(ts = ts || {}), ! function(o) { + var a, s, t; + + function c(e, t) { + e = o.getTokenAtPosition(e, t), t = o.getContainingClass(e).heritageClauses, e = t[0].getFirstToken(); + return 94 === e.kind ? { + extendsToken: e, + heritageClauses: t + } : void 0 + } + + function l(e, t, r, n) { + if (e.replaceNode(t, r, o.factory.createToken(117)), 2 === n.length && 94 === n[0].token && 117 === n[1].token) { + for (var r = n[1].getFirstToken(), n = r.getFullStart(), i = (e.replaceRange(t, { + pos: n, + end: n + }, o.factory.createToken(27)), t.text), a = r.end; a < i.length && o.isWhiteSpaceSingleLine(i.charCodeAt(a));) a++; + e.deleteRange(t, { + pos: r.getStart(), + end: a + }) + } + } + a = o.codefix || (o.codefix = {}), s = "extendsInterfaceBecomesImplements", t = [o.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code], a.registerCodeFix({ + errorCodes: t, + getCodeActions: function(e) { + var t, r, n = e.sourceFile, + i = c(n, e.span.start); + if (i) return t = i.extendsToken, r = i.heritageClauses, i = o.textChanges.ChangeTracker.with(e, function(e) { + return l(e, n, t, r) + }), [a.createCodeFixAction(s, i, o.Diagnostics.Change_extends_to_implements, s, o.Diagnostics.Change_all_extended_interfaces_to_implements)] + }, + fixIds: [s], + getAllCodeActions: function(e) { + return a.codeFixAll(e, t, function(e, t) { + var r = c(t.file, t.start); + r && l(e, t.file, r.extendsToken, r.heritageClauses) + }) + } + }) + }(ts = ts || {}), ! function(i) { + var n, a, o, e; + + function s(e, t, r) { + e = i.getTokenAtPosition(e, t); + if (i.isIdentifier(e) || i.isPrivateIdentifier(e)) return { + node: e, + className: r === o ? i.getContainingClass(e).name.text : void 0 + } + } + + function c(e, t, r) { + var n = r.node, + r = r.className; + i.suppressLeadingAndTrailingTrivia(n), e.replaceNode(t, n, i.factory.createPropertyAccessExpression(r ? i.factory.createIdentifier(r) : i.factory.createThis(), n)) + } + n = i.codefix || (i.codefix = {}), a = "forgottenThisPropertyAccess", o = i.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code, e = [i.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code, i.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code, o], n.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var t = e.sourceFile, + r = s(t, e.span.start, e.errorCode); + if (r) return e = i.textChanges.ChangeTracker.with(e, function(e) { + return c(e, t, r) + }), [n.createCodeFixAction(a, e, [i.Diagnostics.Add_0_to_unresolved_variable, r.className || "this"], a, i.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)] + }, + fixIds: [a], + getAllCodeActions: function(r) { + return n.codeFixAll(r, e, function(e, t) { + t = s(t.file, t.start, t.code); + t && c(e, r.sourceFile, t) + }) + } + }) + }(ts = ts || {}), ! function(o) { + var a, s, c, e, l; + + function u(e, t, r, n, i) { + var a = r.getText()[n]; + o.hasProperty(l, a) && (i = i ? l[a] : "{".concat(o.quote(r, t, a), "}"), e.replaceRangeWithText(r, { + pos: n, + end: n + 1 + }, i)) + } + a = o.codefix || (o.codefix = {}), s = "fixInvalidJsxCharacters_expression", c = "fixInvalidJsxCharacters_htmlEntity", e = [o.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code, o.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code], a.registerCodeFix({ + errorCodes: e, + fixIds: [s, c], + getCodeActions: function(e) { + var t = e.sourceFile, + r = e.preferences, + n = e.span, + i = o.textChanges.ChangeTracker.with(e, function(e) { + return u(e, r, t, n.start, !1) + }), + e = o.textChanges.ChangeTracker.with(e, function(e) { + return u(e, r, t, n.start, !0) + }); + return [a.createCodeFixAction(s, i, o.Diagnostics.Wrap_invalid_character_in_an_expression_container, s, o.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container), a.createCodeFixAction(c, e, o.Diagnostics.Convert_invalid_character_to_its_html_entity_code, c, o.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)] + }, + getAllCodeActions: function(r) { + return a.codeFixAll(r, e, function(e, t) { + return u(e, r.preferences, t.file, t.start, r.fixId === c) + }) + } + }), l = { + ">": ">", + "}": "}" + } + }(ts = ts || {}), ! function(d) { + var p, c, f, e; + + function l(e, t) { + e = d.getTokenAtPosition(e, t); + if (e.parent && d.isJSDocParameterTag(e.parent) && d.isIdentifier(e.parent.name)) { + var t = e.parent, + r = d.getHostSignatureFromJSDoc(t); + if (r) return { + signature: r, + name: e.parent.name, + jsDocParameterTag: t + } + } + } + p = d.codefix || (d.codefix = {}), c = "deleteUnmatchedParameter", f = "renameUnmatchedParameter", e = [d.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code], p.registerCodeFix({ + fixIds: [c, f], + errorCodes: e, + getCodeActions: function(e) { + var t, r, n, i, a, o = [], + s = l(e.sourceFile, e.span.start); + if (s) return d.append(o, (t = e, n = (r = s).name, i = s.signature, a = s.jsDocParameterTag, r = d.textChanges.ChangeTracker.with(t, function(e) { + return e.filterJSDocTags(t.sourceFile, i, function(e) { + return e !== a + }) + }), p.createCodeFixAction(c, r, [d.Diagnostics.Delete_unused_param_tag_0, n.getText(t.sourceFile)], c, d.Diagnostics.Delete_all_unused_param_tags))), d.append(o, function(e, t) { + var r = t.name, + n = t.signature, + i = t.jsDocParameterTag; + if (!d.length(n.parameters)) return; + for (var a = e.sourceFile, o = d.getJSDocTags(n), s = new d.Set, c = 0, l = o; c < l.length; c++) { + var u = l[c]; + d.isJSDocParameterTag(u) && d.isIdentifier(u.name) && s.add(u.name.escapedText) + } + var _, t = d.firstDefined(n.parameters, function(e) { + return d.isIdentifier(e.name) && !s.has(e.name.escapedText) ? e.name.getText(a) : void 0 + }); + return void 0 === t ? void 0 : (_ = d.factory.updateJSDocParameterTag(i, i.tagName, d.factory.createIdentifier(t), i.isBracketed, i.typeExpression, i.isNameFirst, i.comment), e = d.textChanges.ChangeTracker.with(e, function(e) { + return e.replaceJSDocComment(a, n, d.map(o, function(e) { + return e === i ? _ : e + })) + }), p.createCodeFixActionWithoutFixAll(f, e, [d.Diagnostics.Rename_param_tag_name_0_to_1, r.getText(a), t])) + }(e, s)), o + }, + getAllCodeActions: function(i) { + var t = new d.Map; + return p.createCombinedCodeActions(d.textChanges.ChangeTracker.with(i, function(n) { + p.eachDiagnostic(i, e, function(e) { + e = l(e.file, e.start); + e && t.set(e.signature, d.append(t.get(e.signature), e.jsDocParameterTag)) + }), t.forEach(function(e, t) { + var r; + i.fixId === c && (r = new d.Set(e), n.filterJSDocTags(t.getSourceFile(), t, function(e) { + return !r.has(e) + })) + }) + })) + } + }) + }(ts = ts || {}), ! function(s) { + var n, i, e; + n = s.codefix || (s.codefix = {}), i = "fixUnreferenceableDecoratorMetadata", e = [s.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code], n.registerCodeFix({ + errorCodes: e, + getCodeActions: function(a) { + var e, t, r, o = function(e, t, r) { + e = s.tryCast(s.getTokenAtPosition(e, r), s.isIdentifier); + if (e && 180 === e.parent.kind) return r = t.getTypeChecker().getSymbolAtLocation(e), s.find((null == r ? void 0 : r.declarations) || s.emptyArray, s.or(s.isImportClause, s.isImportSpecifier, s.isImportEqualsDeclaration)) + }(a.sourceFile, a.program, a.span.start); + if (o) return e = s.textChanges.ChangeTracker.with(a, function(e) { + return 273 === o.kind && (t = a.sourceFile, r = a.program, void s.refactor.doChangeNamedToNamespaceOrDefault(t, r, e, o.parent)); + var t, r + }), t = s.textChanges.ChangeTracker.with(a, function(e) { + var t, r, n, i; + e = e, t = a.sourceFile, r = o, n = a.program, 268 === r.kind ? e.insertModifierBefore(t, 154, r.name) : (r = 270 === r.kind ? r : r.parent.parent).name && r.namedBindings || (i = n.getTypeChecker(), !!s.forEachImportClauseDeclaration(r, function(e) { + if (111551 & s.skipAlias(e.symbol, i).flags) return !0 + })) || e.insertModifierBefore(t, 154, r) + }), e.length && (r = s.append(r, n.createCodeFixActionWithoutFixAll(i, e, s.Diagnostics.Convert_named_imports_to_namespace_import))), t.length ? s.append(r, n.createCodeFixActionWithoutFixAll(i, t, s.Diagnostics.Convert_to_type_only_import)) : r + }, + fixIds: [i] + }) + }(ts = ts || {}), ! function(S) { + var p, f, g, u, m, y, e; + + function h(e, t, r) { + e.replaceNode(t, r.parent, S.factory.createKeywordTypeNode(157)) + } + + function v(e, t) { + return p.createCodeFixAction(f, e, t, u, S.Diagnostics.Delete_all_unused_declarations) + } + + function b(e, t, r) { + e.delete(t, S.Debug.checkDefined(S.cast(r.parent, S.isDeclarationWithTypeParameterChildren).typeParameters, "The type parameter to delete should exist")) + } + + function x(e) { + return 100 === e.kind || 79 === e.kind && (273 === e.parent.kind || 270 === e.parent.kind) + } + + function D(e) { + return 100 === e.kind ? S.tryCast(e.parent, S.isImportDeclaration) : void 0 + } + + function T(e, t) { + return S.isVariableDeclarationList(t.parent) && S.first(t.parent.getChildren(e)) === t + } + + function C(e, t, r) { + e.delete(t, 240 === r.parent.kind ? r.parent : r) + } + + function E(t, e, r, n) { + e !== S.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code && (138 === n.kind && (n = S.cast(n.parent, S.isInferTypeNode).typeParameter.name), S.isIdentifier(n)) && function(e) { + switch (e.parent.kind) { + case 166: + case 165: + return 1; + case 257: + switch (e.parent.parent.parent.kind) { + case 247: + case 246: + return 1 + } + } + return + }(n) && (t.replaceNode(r, n, S.factory.createIdentifier("_".concat(n.text))), S.isParameter(n.parent)) && S.getJSDocParameterTags(n.parent).forEach(function(e) { + S.isIdentifier(e.name) && t.replaceNode(r, e.name, S.factory.createIdentifier("_".concat(e.name.text))) + }) + } + + function k(r, e, n, t, i, a, o, s) { + if (h = n, v = r, b = t, i = i, a = a, o = o, x = s, D = (y = e).parent, S.isParameter(D)) { + var c = h, + l = v, + u = D, + _ = b, + d = i, + p = x; + if (function(e, t, r, n, i, a, o) { + var s = r.parent; + switch (s.kind) { + case 171: + case 173: + var c = s.parameters.indexOf(r), + l = S.isMethodDeclaration(s) ? s.name : s, + l = S.FindAllReferences.Core.getReferencedSymbolsForNode(s.pos, l, i, n, a); + if (l) + for (var u = 0, _ = l; u < _.length; u++) + for (var d = _[u], p = 0, f = d.references; p < f.length; p++) { + var g = f[p]; + if (1 === g.kind) { + var m = S.isSuperKeyword(g.node) && S.isCallExpression(g.node.parent) && g.node.parent.arguments.length > c, + y = S.isPropertyAccessExpression(g.node.parent) && S.isSuperKeyword(g.node.parent.expression) && S.isCallExpression(g.node.parent.parent) && g.node.parent.parent.arguments.length > c, + g = (S.isMethodDeclaration(g.node.parent) || S.isMethodSignature(g.node.parent)) && g.node.parent !== r.parent && g.node.parent.parameters.length > c; + if (m || y || g) return + } + } + return 1; + case 259: + return !s.name || ! function(e, t, r) { + return S.FindAllReferences.Core.eachSymbolReferenceInFile(r, e, t, function(e) { + return S.isIdentifier(e) && S.isCallExpression(e.parent) && 0 <= e.parent.arguments.indexOf(e) + }) + }(e, t, s.name) || A(s, r, o); + case 215: + case 216: + return A(s, r, o); + case 175: + return; + case 174: + return 1; + default: + return S.Debug.failBadSyntaxKind(s) + } + }(_, l, u, d, a, o, p = void 0 === x ? !1 : p)) + if (u.modifiers && 0 < u.modifiers.length && (!S.isIdentifier(u.name) || S.FindAllReferences.Core.isSymbolReferencedInFile(u.name, _, l))) + for (var f = 0, g = u.modifiers; f < g.length; f++) { + var m = g[f]; + S.isModifier(m) && c.deleteModifier(l, m) + } else !u.initializer && N(u, _, d) && c.delete(l, u) + } else x && S.isIdentifier(y) && S.FindAllReferences.Core.isSymbolReferencedInFile(y, b, v) || (i = S.isImportClause(D) ? y : S.isComputedPropertyName(D) ? D.parent : D, S.Debug.assert(i !== v, "should not delete whole source file"), h.delete(v, i)); + var y, h, v, b, x, D; + S.isIdentifier(e) && S.FindAllReferences.Core.eachSymbolReferenceInFile(e, t, r, function(e) { + var t; + S.isPropertyAccessExpression(e.parent) && e.parent.name === e && (e = e.parent), !s && (t = e, S.isBinaryExpression(t.parent) && t.parent.left === t || (S.isPostfixUnaryExpression(t.parent) || S.isPrefixUnaryExpression(t.parent)) && t.parent.operand === t) && S.isExpressionStatement(t.parent.parent) && n.delete(r, e.parent.parent) + }) + } + + function N(e, t, r) { + var n = e.parent.parameters.indexOf(e); + return !S.FindAllReferences.Core.someSignatureUsage(e.parent, r, t, function(e, t) { + return !t || t.arguments.length > n + }) + } + + function A(e, t, r) { + e = e.parameters, t = e.indexOf(t); + return S.Debug.assert(-1 !== t, "The parameter should already be in the list"), r ? e.slice(t + 1).every(function(e) { + return S.isIdentifier(e.name) && !e.symbol.isReferenced + }) : t === e.length - 1 + } + p = S.codefix || (S.codefix = {}), f = "unusedIdentifier", g = "unusedIdentifier_prefix", u = "unusedIdentifier_delete", m = "unusedIdentifier_deleteImports", y = "unusedIdentifier_infer", e = [S.Diagnostics._0_is_declared_but_its_value_is_never_read.code, S.Diagnostics._0_is_declared_but_never_used.code, S.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code, S.Diagnostics.All_imports_in_import_declaration_are_unused.code, S.Diagnostics.All_destructured_elements_are_unused.code, S.Diagnostics.All_variables_are_unused.code, S.Diagnostics.All_type_parameters_are_unused.code], p.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var t, r, n, i, a, o = e.errorCode, + s = e.sourceFile, + c = e.program, + l = e.cancellationToken, + u = c.getTypeChecker(), + _ = c.getSourceFiles(), + d = S.getTokenAtPosition(s, e.span.start); + return S.isJSDocTemplateTag(d) ? [v(S.textChanges.ChangeTracker.with(e, function(e) { + return e.delete(s, d) + }), S.Diagnostics.Remove_template_tag)] : 29 === d.kind ? [v(a = S.textChanges.ChangeTracker.with(e, function(e) { + return b(e, s, d) + }), S.Diagnostics.Remove_type_parameters)] : (t = D(d)) ? (a = S.textChanges.ChangeTracker.with(e, function(e) { + return e.delete(s, t) + }), [p.createCodeFixAction(f, a, [S.Diagnostics.Remove_import_from_0, S.showModuleSpecifier(t)], m, S.Diagnostics.Delete_all_unused_imports)]) : x(d) && (n = S.textChanges.ChangeTracker.with(e, function(e) { + return k(s, d, e, u, _, c, l, !1) + })).length ? [p.createCodeFixAction(f, n, [S.Diagnostics.Remove_unused_declaration_for_Colon_0, d.getText(s)], m, S.Diagnostics.Delete_all_unused_imports)] : S.isObjectBindingPattern(d.parent) || S.isArrayBindingPattern(d.parent) ? S.isParameter(d.parent.parent) ? (r = [1 < (r = d.parent.elements).length ? S.Diagnostics.Remove_unused_declarations_for_Colon_0 : S.Diagnostics.Remove_unused_declaration_for_Colon_0, S.map(r, function(e) { + return e.getText(s) + }).join(", ")], [v(S.textChanges.ChangeTracker.with(e, function(e) { + var t, r; + t = e, r = s, e = d.parent, S.forEach(e.elements, function(e) { + return t.delete(r, e) + }) + }), r)]) : [v(S.textChanges.ChangeTracker.with(e, function(e) { + return e.delete(s, d.parent.parent) + }), S.Diagnostics.Remove_unused_destructuring_declaration)] : T(s, d) ? [v(S.textChanges.ChangeTracker.with(e, function(e) { + return C(e, s, d.parent) + }), S.Diagnostics.Remove_variable_statement)] : (r = [], 138 === d.kind ? (a = S.textChanges.ChangeTracker.with(e, function(e) { + return h(e, s, d) + }), i = S.cast(d.parent, S.isInferTypeNode).typeParameter.name.text, r.push(p.createCodeFixAction(f, a, [S.Diagnostics.Replace_infer_0_with_unknown, i], y, S.Diagnostics.Replace_all_unused_infer_with_unknown))) : (n = S.textChanges.ChangeTracker.with(e, function(e) { + return k(s, d, e, u, _, c, l, !1) + })).length && (i = S.isComputedPropertyName(d.parent) ? d.parent : d, r.push(v(n, [S.Diagnostics.Remove_unused_declaration_for_Colon_0, i.getText(s)]))), (a = S.textChanges.ChangeTracker.with(e, function(e) { + return E(e, o, s, d) + })).length && r.push(p.createCodeFixAction(f, a, [S.Diagnostics.Prefix_0_with_an_underscore, d.getText(s)], g, S.Diagnostics.Prefix_all_unused_declarations_with_where_possible)), r) + }, + fixIds: [g, u, m, y], + getAllCodeActions: function(i) { + var a = i.sourceFile, + o = i.program, + s = i.cancellationToken, + c = o.getTypeChecker(), + l = o.getSourceFiles(); + return p.codeFixAll(i, e, function(e, t) { + var r = S.getTokenAtPosition(a, t.start); + switch (i.fixId) { + case g: + E(e, t.code, a, r); + break; + case m: + var n = D(r); + n ? e.delete(a, n) : x(r) && k(a, r, e, c, l, o, s, !0); + break; + case u: + if (138 !== r.kind && !x(r)) + if (S.isJSDocTemplateTag(r)) e.delete(a, r); + else if (29 === r.kind) b(e, a, r); + else if (S.isObjectBindingPattern(r.parent)) { + if (r.parent.parent.initializer) break; + S.isParameter(r.parent.parent) && !N(r.parent.parent, c, l) || e.delete(a, r.parent.parent) + } else { + if (S.isArrayBindingPattern(r.parent.parent) && r.parent.parent.parent.initializer) break; + T(a, r) ? C(e, a, r.parent) : k(a, r, e, c, l, o, s, !0) + } + break; + case y: + 138 === r.kind && h(e, a, r); + break; + default: + S.Debug.fail(JSON.stringify(i.fixId)) + } + }) + } + }) + }(ts = ts || {}), ! function(l) { + var r, n, t; + + function i(e, t, r, n, i) { + var a, o = l.getTokenAtPosition(t, r), + s = l.findAncestor(o, l.isStatement), + c = (s.getStart(t) !== o.getStart(t) && (o = JSON.stringify({ + statementKind: l.Debug.formatSyntaxKind(s.kind), + tokenKind: l.Debug.formatSyntaxKind(o.kind), + errorCode: i, + start: r, + length: n + }), l.Debug.fail("Token and statement should start at the same point. " + o)), (l.isBlock(s.parent) ? s.parent : s).parent); + if (!l.isBlock(s.parent) || s === l.first(s.parent.statements)) switch (c.kind) { + case 242: + if (c.elseStatement) { + if (l.isBlock(s.parent)) break; + return void e.replaceNode(t, s, l.factory.createBlock(l.emptyArray)) + } + case 244: + case 245: + return void e.delete(t, c) + } + l.isBlock(s.parent) ? (a = r + n, i = l.Debug.checkDefined(function(e, t) { + for (var r, n = 0, i = e; n < i.length; n++) { + var a = i[n]; + if (!t(a)) break; + r = a + } + return r + }(l.sliceAfter(s.parent.statements, s), function(e) { + return e.pos < a + }), "Some statement should be last"), e.deleteNodeRange(t, s, i)) : e.delete(t, s) + } + r = l.codefix || (l.codefix = {}), n = "fixUnreachableCode", t = [l.Diagnostics.Unreachable_code_detected.code], r.registerCodeFix({ + errorCodes: t, + getCodeActions: function(t) { + var e = t.program.getSyntacticDiagnostics(t.sourceFile, t.cancellationToken); + if (!e.length) return e = l.textChanges.ChangeTracker.with(t, function(e) { + return i(e, t.sourceFile, t.span.start, t.span.length, t.errorCode) + }), [r.createCodeFixAction(n, e, l.Diagnostics.Remove_unreachable_code, n, l.Diagnostics.Remove_all_unreachable_code)] + }, + fixIds: [n], + getAllCodeActions: function(e) { + return r.codeFixAll(e, t, function(e, t) { + return i(e, t.file, t.start, t.length, t.code) + }) + } + }) + }(ts = ts || {}), ! function(a) { + var r, n, t; + + function i(e, t, r) { + var r = a.getTokenAtPosition(t, r), + n = a.cast(r.parent, a.isLabeledStatement), + r = r.getStart(t), + i = n.statement.getStart(t), + i = a.positionsAreOnSameLine(r, i, t) ? i : a.skipTrivia(t.text, a.findChildOfKind(n, 58, t).end, !0); + e.deleteRange(t, { + pos: r, + end: i + }) + } + r = a.codefix || (a.codefix = {}), n = "fixUnusedLabel", t = [a.Diagnostics.Unused_label.code], r.registerCodeFix({ + errorCodes: t, + getCodeActions: function(t) { + var e = a.textChanges.ChangeTracker.with(t, function(e) { + return i(e, t.sourceFile, t.span.start) + }); + return [r.createCodeFixAction(n, e, a.Diagnostics.Remove_unused_label, n, a.Diagnostics.Remove_all_unused_labels)] + }, + fixIds: [n], + getAllCodeActions: function(e) { + return r.codeFixAll(e, t, function(e, t) { + return i(e, t.file, t.start) + }) + } + }) + }(ts = ts || {}), ! function(l) { + var u, n, _, r; + + function d(e, t, r, n, i) { + e.replaceNode(t, r, i.typeToTypeNode(n, r, void 0)) + } + + function p(e, t, r) { + e = l.findAncestor(l.getTokenAtPosition(e, t), i), t = e && e.type; + return t && { + typeNode: t, + type: r.getTypeFromTypeNode(t) + } + } + + function i(e) { + switch (e.kind) { + case 231: + case 176: + case 177: + case 259: + case 174: + case 178: + case 197: + case 171: + case 170: + case 166: + case 169: + case 168: + case 175: + case 262: + case 213: + case 257: + return !0; + default: + return !1 + } + } + u = l.codefix || (l.codefix = {}), n = "fixJSDocTypes_plain", _ = "fixJSDocTypes_nullable", r = [l.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code], u.registerCodeFix({ + errorCodes: r, + getCodeActions: function(i) { + var a, o, e, s = i.sourceFile, + c = i.program.getTypeChecker(), + t = p(s, i.span.start, c); + if (t) return a = t.typeNode, t = t.type, o = a.getText(s), e = [r(t, n, l.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)], 317 === a.kind && e.push(r(c.getNullableType(t, 32768), _, l.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)), e; + + function r(t, e, r) { + var n = l.textChanges.ChangeTracker.with(i, function(e) { + return d(e, s, a, t, c) + }); + return u.createCodeFixAction("jdocTypes", n, [l.Diagnostics.Change_0_to_1, o, c.typeToString(t)], e, r) + } + }, + fixIds: [n, _], + getAllCodeActions: function(e) { + var n = e.fixId, + t = e.program, + i = e.sourceFile, + a = t.getTypeChecker(); + return u.codeFixAll(e, r, function(e, t) { + var r, t = p(t.file, t.start, a); + t && (r = t.typeNode, t = t.type, t = 317 === r.kind && n === _ ? a.getNullableType(t, 32768) : t, d(e, i, r, t, a)) + }) + } + }) + }(ts = ts || {}), ! function(n) { + var i, a, t; + + function o(e, t, r) { + e.replaceNodeWithText(t, r, "".concat(r.text, "()")) + } + + function s(e, t) { + e = n.getTokenAtPosition(e, t); + if (n.isPropertyAccessExpression(e.parent)) { + for (var r = e.parent; n.isPropertyAccessExpression(r.parent);) r = r.parent; + return r.name + } + if (n.isIdentifier(e)) return e + } + i = n.codefix || (n.codefix = {}), a = "fixMissingCallParentheses", t = [n.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code], i.registerCodeFix({ + errorCodes: t, + fixIds: [a], + getCodeActions: function(t) { + var e, r = s(t.sourceFile, t.span.start); + if (r) return e = n.textChanges.ChangeTracker.with(t, function(e) { + return o(e, t.sourceFile, r) + }), [i.createCodeFixAction(a, e, n.Diagnostics.Add_missing_call_parentheses, a, n.Diagnostics.Add_all_missing_call_parentheses)] + }, + getAllCodeActions: function(e) { + return i.codeFixAll(e, t, function(e, t) { + var r = s(t.file, t.start); + r && o(e, t.file, r) + }) + } + }) + }(ts = ts || {}), ! function(a) { + var i, o, e; + + function s(e, t) { + var t = a.getTokenAtPosition(e, t), + r = a.getContainingFunction(t); + if (r) { + switch (r.kind) { + case 171: + i = r.name; + break; + case 259: + case 215: + i = a.findChildOfKind(r, 98, e); + break; + case 216: + var n = r.typeParameters ? 29 : 20, + i = a.findChildOfKind(r, n, e) || a.first(r.parameters); + break; + default: + return + } + return i && { + insertBefore: i, + returnType: (t = r).type || (a.isVariableDeclaration(t.parent) && t.parent.type && a.isFunctionTypeNode(t.parent.type) ? t.parent.type.type : void 0) + } + } + } + + function c(e, t, r) { + var n, i = r.insertBefore, + r = r.returnType; + !r || (n = a.getEntityNameFromTypeNode(r)) && 79 === n.kind && "Promise" === n.text || e.replaceNode(t, r, a.factory.createTypeReferenceNode("Promise", a.factory.createNodeArray([r]))), e.insertModifierBefore(t, 132, i) + } + i = a.codefix || (a.codefix = {}), o = "fixAwaitInSyncFunction", e = [a.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, a.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, a.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code], i.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var t = e.sourceFile, + r = e.span, + n = s(t, r.start); + if (n) return r = a.textChanges.ChangeTracker.with(e, function(e) { + return c(e, t, n) + }), [i.createCodeFixAction(o, r, a.Diagnostics.Add_async_modifier_to_containing_function, o, a.Diagnostics.Add_all_missing_async_modifiers)] + }, + fixIds: [o], + getAllCodeActions: function(r) { + var n = new a.Map; + return i.codeFixAll(r, e, function(e, t) { + t = s(t.file, t.start); + t && a.addToSeen(n, a.getNodeId(t.insertBefore)) && c(e, r.sourceFile, t) + }) + } + }) + }(ts = ts || {}), ! function(c) { + var l, e, t; + + function o(e, t, r, n, i) { + var a, o; + if (n === c.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code) o = (a = t) + r; + else if (n === c.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code) { + var r = i.program.getTypeChecker(), + t = c.getTokenAtPosition(e, t).parent, + s = (c.Debug.assert(c.isAccessor(t), "error span of fixPropertyOverrideAccessor should only be on an accessor"), t.parent), + s = (c.Debug.assert(c.isClassLike(s), "erroneous accessors should only be inside classes"), c.singleOrUndefined(l.getAllSupers(s, r))); + if (!s) return []; + t = c.unescapeLeadingUnderscores(c.getTextOfPropertyName(t.name)), r = r.getPropertyOfType(r.getTypeAtLocation(s), t); + if (!r || !r.valueDeclaration) return []; + a = r.valueDeclaration.pos, o = r.valueDeclaration.end, e = c.getSourceFileOfNode(r.valueDeclaration) + } else c.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code " + n); + return l.generateAccessorFromProperty(e, i.program, a, o, i, c.Diagnostics.Generate_get_and_set_accessors.message) + } + l = c.codefix || (c.codefix = {}), e = [c.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code, c.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code], t = "fixPropertyOverrideAccessor", l.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + e = o(e.sourceFile, e.span.start, e.span.length, e.errorCode, e); + if (e) return [l.createCodeFixAction(t, e, c.Diagnostics.Generate_get_and_set_accessors, t, c.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)] + }, + fixIds: [t], + getAllCodeActions: function(a) { + return l.codeFixAll(a, e, function(e, t) { + t = o(t.file, t.start, t.length, t.code, a); + if (t) + for (var r = 0, n = t; r < n.length; r++) { + var i = n[r]; + e.pushRaw(a.sourceFile, i) + } + }) + } + }) + }(ts = ts || {}), ! function(F) { + var P, u, t; + + function _(e, t, r, n, i, a, o, s, c) { + if (F.isParameterPropertyModifier(r.kind) || 79 === r.kind || 25 === r.kind || 108 === r.kind) { + var l = r.parent, + u = P.createImportAdder(t, i, c, s); + switch (n = function(e) { + switch (e) { + case F.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code: + return F.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code; + case F.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code: + return F.Diagnostics.Variable_0_implicitly_has_an_1_type.code; + case F.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code: + return F.Diagnostics.Parameter_0_implicitly_has_an_1_type.code; + case F.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code: + return F.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code; + case F.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code: + return F.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code; + case F.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code: + return F.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code; + case F.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code: + return F.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code; + case F.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code: + return F.Diagnostics.Member_0_implicitly_has_an_1_type.code + } + return e + }(n)) { + case F.Diagnostics.Member_0_implicitly_has_an_1_type.code: + case F.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code: + return F.isVariableDeclaration(l) && o(l) || F.isPropertyDeclaration(l) || F.isPropertySignature(l) ? (w(e, u, t, l, i, s, a), u.writeFixes(e), l) : F.isPropertyAccessExpression(l) ? (_ = L(l.name, i, a), (_ = F.getTypeNodeIfAccessible(_, l, i, s)) && (_ = F.factory.createJSDocTypeTag(void 0, F.factory.createJSDocTypeExpression(_), void 0), e.addJSDocTags(t, F.cast(l.parent.parent, F.isExpressionStatement), [_])), u.writeFixes(e), l) : void 0; + case F.Diagnostics.Variable_0_implicitly_has_an_1_type.code: + var _ = i.getTypeChecker().getSymbolAtLocation(r); + return _ && _.valueDeclaration && F.isVariableDeclaration(_.valueDeclaration) && o(_.valueDeclaration) ? (w(e, u, F.getSourceFileOfNode(_.valueDeclaration), _.valueDeclaration, i, s, a), u.writeFixes(e), _.valueDeclaration) : void 0 + } + var d, p, f, g, m = F.getContainingFunction(r); + if (void 0 !== m) { + switch (n) { + case F.Diagnostics.Parameter_0_implicitly_has_an_1_type.code: + if (F.isSetAccessorDeclaration(m)) { + I(e, u, t, m, i, s, a), d = m; + break + } + case F.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code: + if (o(m)) { + var y = F.cast(l, F.isParameter), + h = e, + v = u, + b = t, + x = y, + D = m, + S = i, + T = s, + C = a; + if (F.isIdentifier(x.name)) { + x = function(e, t, r, n) { + t = R(e, t, r, n); + return t && B(r, t, n).parameters(e) || e.parameters.map(function(e) { + return { + declaration: e, + type: F.isIdentifier(e.name) ? L(e.name, r, n) : r.getTypeChecker().getAnyType() + } + }) + }(D, b, S, C); + if (F.Debug.assert(D.parameters.length === x.length, "Parameter count and inference count should match"), F.isInJSFile(D)) M(h, b, x, S, T); + else { + C = F.isArrowFunction(D) && !F.findChildOfKind(D, 20, b); + C && h.insertNodeBefore(b, F.first(D.parameters), F.factory.createToken(20)); + for (var E = 0, k = x; E < k.length; E++) { + var N = k[E], + A = N.declaration, + N = N.type; + !A || A.type || A.initializer || O(h, v, b, A, N, S, T) + } + C && h.insertNodeAfter(b, F.last(D.parameters), F.factory.createToken(21)) + } + } + d = y + } + break; + case F.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code: + case F.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code: + F.isGetAccessorDeclaration(m) && F.isIdentifier(m.name) && (O(e, u, t, m, L(m.name, i, a), i, s), d = m); + break; + case F.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code: + F.isSetAccessorDeclaration(m) && (I(e, u, t, m, i, s, a), d = m); + break; + case F.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code: + F.textChanges.isThisTypeAnnotatable(m) && o(m) && (x = e, C = s, (g = R(D = m, y = t, p = i, f = a)) && g.length && (g = B(p, g, f).thisParameter(), f = F.getTypeNodeIfAccessible(g, D, p, C)) && (F.isInJSFile(D) ? x.addJSDocTags(y, D, [F.factory.createJSDocThisTag(void 0, F.factory.createJSDocTypeExpression(f))]) : x.tryInsertThisTypeAnnotation(y, D, f)), d = m); + break; + default: + return F.Debug.fail(String(n)) + } + return u.writeFixes(e), d + } + } + } + + function w(e, t, r, n, i, a, o) { + F.isIdentifier(n.name) && O(e, t, r, n, L(n.name, i, o), i, a) + } + + function I(e, t, r, n, i, a, o) { + var s, c = F.firstOrUndefined(n.parameters); + c && F.isIdentifier(n.name) && F.isIdentifier(c.name) && ((s = L(n.name, i, o)) === i.getTypeChecker().getAnyType() && (s = L(c.name, i, o)), F.isInJSFile(n) ? M(e, r, [{ + declaration: c, + type: s + }], i, a) : O(e, t, r, c, s, i, a)) + } + + function O(e, t, r, n, i, a, o) { + var s, i = F.getTypeNodeIfAccessible(i, n, a, o); + i && (F.isInJSFile(r) && 168 !== n.kind ? (o = F.isVariableDeclaration(n) ? F.tryCast(n.parent.parent, F.isVariableStatement) : n) && (s = F.factory.createJSDocTypeExpression(i), s = F.isGetAccessorDeclaration(n) ? F.factory.createJSDocReturnTag(void 0, s, void 0) : F.factory.createJSDocTypeTag(void 0, s, void 0), e.addJSDocTags(r, o, [s])) : function(e, t, r, n, i, a) { + e = P.tryGetAutoImportableReferenceFromTypeNode(e, a); + if (e && n.tryInsertTypeAnnotation(r, t, e.typeNode)) return F.forEach(e.symbols, function(e) { + return i.addImportFromExportedSymbol(e, !0) + }), 1; + return + }(i, n, r, e, t, F.getEmitScriptTarget(a.getCompilerOptions())) || e.tryInsertTypeAnnotation(r, n, i)) + } + + function M(r, n, e, i, a) { + var t, o = e.length && e[0].declaration.parent; + o && (e = F.mapDefined(e, function(e) { + var t, r, n = e.declaration; + return !n.initializer && !F.getJSDocType(n) && F.isIdentifier(n.name) && (t = e.type && F.getTypeNodeIfAccessible(e.type, n, i, a)) ? (r = F.factory.cloneNode(n.name), F.setEmitFlags(r, 3584), { + name: F.factory.cloneNode(n.name), + param: n, + isOptional: !!e.isOptional, + typeNode: t + }) : void 0 + })).length && (F.isArrowFunction(o) || F.isFunctionExpression(o) ? ((t = F.isArrowFunction(o) && !F.findChildOfKind(o, 20, n)) && r.insertNodeBefore(n, F.first(o.parameters), F.factory.createToken(20)), F.forEach(e, function(e) { + var t = e.typeNode, + e = e.param, + t = F.factory.createJSDocTypeTag(void 0, F.factory.createJSDocTypeExpression(t)), + t = F.factory.createJSDocComment(void 0, [t]); + r.insertNodeAt(n, e.getStart(n), t, { + suffix: " " + }) + }), t && r.insertNodeAfter(n, F.last(o.parameters), F.factory.createToken(21))) : (t = F.map(e, function(e) { + var t = e.name, + r = e.typeNode, + e = e.isOptional; + return F.factory.createJSDocParameterTag(void 0, t, !!e, F.factory.createJSDocTypeExpression(r), !1, void 0) + }), r.addJSDocTags(n, o, t))) + } + + function y(e, t, r) { + return F.mapDefined(F.FindAllReferences.getReferenceEntriesForNode(-1, e, t, t.getSourceFiles(), r), function(e) { + return 0 !== e.kind ? F.tryCast(e.node, F.isIdentifier) : void 0 + }) + } + + function L(e, t, r) { + return B(t, y(e, t, r), r).single() + } + + function R(e, t, r, n) { + switch (e.kind) { + case 173: + a = F.findChildOfKind(e, 135, t); + break; + case 216: + case 215: + var i = e.parent, + a = ((F.isVariableDeclaration(i) || F.isPropertyDeclaration(i)) && F.isIdentifier(i.name) ? i : e).name; + break; + case 259: + case 171: + case 170: + a = e.name + } + if (a) return y(a, r, n) + } + + function B(d, i, p) { + var x = d.getTypeChecker(), + o = { + string: function() { + return x.getStringType() + }, + number: function() { + return x.getNumberType() + }, + Array: function(e) { + return x.createArrayType(e) + }, + Promise: function(e) { + return x.createPromiseType(e) + } + }, + s = [x.getStringType(), x.getNumberType(), x.createArrayType(x.getAnyType()), x.createPromiseType(x.getAnyType())]; + return { + single: function() { + return g(f(i)) + }, + parameters: function(u) { + if (0 === i.length || !u.parameters) return; + for (var e = D(), t = 0, r = i; t < r.length; t++) { + var n = r[t]; + p.throwIfCancellationRequested(), S(n, e) + } + var _ = __spreadArray(__spreadArray([], e.constructs || [], !0), e.calls || [], !0); + return u.parameters.map(function(e, t) { + for (var r = [], n = F.isRestParameter(e), i = !1, a = 0, o = _; a < o.length; a++) { + var s = o[a]; + if (s.argumentTypes.length <= t) i = F.isInJSFile(u), r.push(x.getUndefinedType()); + else if (n) + for (var c = t; c < s.argumentTypes.length; c++) r.push(x.getBaseTypeOfLiteralType(s.argumentTypes[c])); + else r.push(x.getBaseTypeOfLiteralType(s.argumentTypes[t])) + } + F.isIdentifier(e.name) && (l = f(y(e.name, d, p)), r.push.apply(r, n ? F.mapDefined(l, x.getElementTypeOfArrayType) : l)); + var l = g(r); + return { + type: n ? x.createArrayType(l) : l, + isOptional: i && !n, + declaration: e + } + }) + }, + thisParameter: function() { + for (var e = D(), t = 0, r = i; t < r.length; t++) { + var n = r[t]; + p.throwIfCancellationRequested(), S(n, e) + } + return g(e.candidateThisTypes || F.emptyArray) + } + }; + + function D() { + return { + isNumber: void 0, + isString: void 0, + isNumberOrString: void 0, + candidateTypes: void 0, + properties: void 0, + calls: void 0, + constructs: void 0, + numberIndex: void 0, + stringIndex: void 0, + candidateThisTypes: void 0, + inferredTypes: void 0 + } + } + + function f(e) { + for (var t = D(), r = 0, n = e; r < n.length; r++) { + var i = n[r]; + p.throwIfCancellationRequested(), S(i, t) + } + return a(t) + } + + function S(e, t) { + for (; F.isRightSideOfQualifiedNameOrPropertyAccess(e);) e = e.parent; + switch (e.parent.kind) { + case 241: + r = e, C(t, F.isCallExpression(r) ? x.getVoidType() : x.getAnyType()); + break; + case 222: + t.isNumber = !0; + break; + case 221: + var r = e.parent, + n = t; + switch (r.operator) { + case 45: + case 46: + case 40: + case 54: + n.isNumber = !0; + break; + case 39: + n.isNumberOrString = !0 + } + break; + case 223: + var i = e, + a = e.parent, + o = t; + switch (a.operatorToken.kind) { + case 42: + case 41: + case 43: + case 44: + case 47: + case 48: + case 49: + case 50: + case 51: + case 52: + case 65: + case 67: + case 66: + case 68: + case 69: + case 73: + case 74: + case 78: + case 70: + case 72: + case 71: + case 40: + case 29: + case 32: + case 31: + case 33: + var s = x.getTypeAtLocation(a.left === i ? a.right : a.left); + 1056 & s.flags ? C(o, s) : o.isNumber = !0; + break; + case 64: + case 39: + s = x.getTypeAtLocation(a.left === i ? a.right : a.left); + 1056 & s.flags ? C(o, s) : 296 & s.flags ? o.isNumber = !0 : 402653316 & s.flags ? o.isString = !0 : 1 & s.flags || (o.isNumberOrString = !0); + break; + case 63: + case 34: + case 36: + case 37: + case 35: + C(o, x.getTypeAtLocation(a.left === i ? a.right : a.left)); + break; + case 101: + i === a.left && (o.isString = !0); + break; + case 56: + case 60: + i !== a.left || 257 !== i.parent.parent.kind && !F.isAssignmentExpression(i.parent.parent, !0) || C(o, x.getTypeAtLocation(a.right)) + } + break; + case 292: + case 293: + c = e.parent, C(t, x.getTypeAtLocation(c.parent.parent.expression)); + break; + case 210: + case 211: + if (e.parent.expression === e) { + var c = e.parent, + l = t, + u = { + argumentTypes: [], + return_: D() + }; + if (c.arguments) + for (var _ = 0, d = c.arguments; _ < d.length; _++) { + var p = d[_]; + u.argumentTypes.push(x.getTypeAtLocation(p)) + } + S(c, u.return_), (210 === c.kind ? l.calls || (l.calls = []) : l.constructs || (l.constructs = [])).push(u) + } else T(e, t); + break; + case 208: + l = e.parent, h = t, v = F.escapeLeadingUnderscores(l.name.text), h.properties || (h.properties = new F.Map), b = h.properties.get(v) || D(), S(l, b), h.properties.set(v, b); + break; + case 209: + h = e.parent, v = t, (b = e) === h.argumentExpression ? v.isNumberOrString = !0 : (b = x.getTypeAtLocation(h.argumentExpression), f = D(), S(h, f), 296 & b.flags ? v.numberIndex = f : v.stringIndex = f); + break; + case 299: + case 300: + var f = e.parent, + g = t; + f = (F.isVariableDeclaration(f.parent.parent) ? f.parent : f).parent, E(g, x.getTypeAtLocation(f)); + break; + case 169: + g = e.parent, E(t, x.getTypeAtLocation(g.parent)); + break; + case 257: + var m = e.parent, + y = m.name, + m = m.initializer; + if (e === y) { + m && C(t, x.getTypeAtLocation(m)); + break + } + default: + T(e, t) + } + var f, h, v, b, c, r + } + + function T(e, t) { + F.isExpressionNode(e) && C(t, x.getContextualType(e)) + } + + function c(e) { + return g(a(e)) + } + + function g(e) { + var t, r; + return e.length ? (t = x.getUnionType([x.getStringType(), x.getNumberType()]), (r = (e = function(e, t) { + for (var r = [], n = 0, i = e; n < i.length; n++) + for (var a = i[n], o = 0, s = t; o < s.length; o++) { + var c = s[o], + l = c.high, + c = c.low; + l(a) && (F.Debug.assert(!c(a), "Priority can't have both low and high"), r.push(c)) + } + return e.filter(function(t) { + return r.every(function(e) { + return !e(t) + }) + }) + }(e, [{ + high: function(e) { + return e === x.getStringType() || e === x.getNumberType() + }, + low: function(e) { + return e === t + } + }, { + high: function(e) { + return !(16385 & e.flags) + }, + low: function(e) { + return !!(16385 & e.flags) + } + }, { + high: function(e) { + return !(114689 & e.flags || 16 & F.getObjectFlags(e)) + }, + low: function(e) { + return !!(16 & F.getObjectFlags(e)) + } + }])).filter(function(e) { + return 16 & F.getObjectFlags(e) + })).length && (e = e.filter(function(e) { + return !(16 & F.getObjectFlags(e)) + })).push(function(n) { + if (1 === n.length) return n[0]; + for (var e = [], t = [], r = [], i = [], a = !1, o = !1, s = F.createMultiMap(), c = 0, l = n; c < l.length; c++) { + for (var u = l[c], _ = 0, d = x.getPropertiesOfType(u); _ < d.length; _++) { + var p = d[_]; + s.add(p.name, p.valueDeclaration ? x.getTypeOfSymbolAtLocation(p, p.valueDeclaration) : x.getAnyType()) + } + e.push.apply(e, x.getSignaturesOfType(u, 0)), t.push.apply(t, x.getSignaturesOfType(u, 1)); + var f = x.getIndexInfoOfType(u, 0), + f = (f && (r.push(f.type), a = a || f.isReadonly), x.getIndexInfoOfType(u, 1)); + f && (i.push(f.type), o = o || f.isReadonly) + } + var g = F.mapEntries(s, function(e, t) { + var r = t.length < n.length ? 16777216 : 0, + r = x.createSymbol(4 | r, e); + return r.type = x.getUnionType(t), [e, r] + }), + m = []; + r.length && m.push(x.createIndexInfo(x.getStringType(), x.getUnionType(r), a)); + i.length && m.push(x.createIndexInfo(x.getNumberType(), x.getUnionType(i), o)); + return x.createAnonymousType(n[0].symbol, g, e, t, m) + }(r)), x.getWidenedType(x.getUnionType(e.map(x.getBaseTypeOfLiteralType), 2))) : x.getAnyType() + } + + function a(e) { + var t = [], + r = (e.isNumber && t.push(x.getNumberType()), e.isString && t.push(x.getStringType()), e.isNumberOrString && t.push(x.getUnionType([x.getStringType(), x.getNumberType()])), e.numberIndex && t.push(x.createArrayType(c(e.numberIndex))), (null != (r = e.properties) && r.size || null != (r = e.constructs) && r.length || e.stringIndex) && t.push(l(e)), (e.candidateTypes || []).map(function(e) { + return x.getBaseTypeOfLiteralType(e) + })), + n = null != (n = e.calls) && n.length ? l(e) : void 0; + return n && r ? t.push(x.getUnionType(__spreadArray([n], r, !0), 2)) : (n && t.push(n), F.length(r) && t.push.apply(t, r)), t.push.apply(t, function(a) { + if (a.properties && a.properties.size) { + var e = s.filter(function(e) { + return n = e, !!(e = a).properties && !F.forEachEntry(e.properties, function(e, t) { + var r, t = x.getTypeOfPropertyOfType(n, t); + return !(t && (e.calls ? x.getSignaturesOfType(t, 0).length && x.isTypeAssignableTo(t, (r = e.calls, x.createAnonymousType(void 0, F.createSymbolTable(), [u(r)], F.emptyArray, F.emptyArray))) : x.isTypeAssignableTo(t, c(e)))) + }); + var n + }); + if (0 < e.length && e.length < 3) return e.map(function(e) { + return e = e, t = a, 4 & F.getObjectFlags(e) && t.properties && (r = e.target, n = F.singleOrUndefined(r.typeParameters)) ? (i = [], t.properties.forEach(function(e, t) { + t = x.getTypeOfPropertyOfType(r, t); + F.Debug.assert(!!t, "generic should have all the properties of its reference."), i.push.apply(i, m(t, c(e), n)) + }), o[e.symbol.escapedName](g(i))) : e; + var t, r, n, i + }) + } + return [] + }(e)), t + } + + function l(e) { + var n = new F.Map, + t = (e.properties && e.properties.forEach(function(e, t) { + var r = x.createSymbol(4, t); + r.type = c(e), n.set(t, r) + }), e.calls ? [u(e.calls)] : []), + r = e.constructs ? [u(e.constructs)] : [], + e = e.stringIndex ? [x.createIndexInfo(x.getStringType(), c(e.stringIndex), !1)] : []; + return x.createAnonymousType(void 0, n, t, r, e) + } + + function m(e, t, r) { + if (e === r) return [t]; + if (3145728 & e.flags) return F.flatMap(e.types, function(e) { + return m(e, t, r) + }); + if (4 & F.getObjectFlags(e) && 4 & F.getObjectFlags(t)) { + var n = x.getTypeArguments(e), + i = x.getTypeArguments(t), + a = []; + if (n && i) + for (var o = 0; o < n.length; o++) i[o] && a.push.apply(a, m(n[o], i[o], r)); + return a + } + var e = x.getSignaturesOfType(e, 0), + s = x.getSignaturesOfType(t, 0); + if (1 !== e.length || 1 !== s.length) return []; + for (var c = e[0], l = s[0], u = r, _ = [], d = 0; d < c.parameters.length; d++) { + var p = c.parameters[d], + f = l.parameters[d], + g = c.declaration && F.isRestParameter(c.declaration.parameters[d]); + if (!f) break; + p = p.valueDeclaration ? x.getTypeOfSymbolAtLocation(p, p.valueDeclaration) : x.getAnyType(), g = g && x.getElementTypeOfArrayType(p), g = (g && (p = g), f.type || (f.valueDeclaration ? x.getTypeOfSymbolAtLocation(f, f.valueDeclaration) : x.getAnyType())); + _.push.apply(_, m(p, g, u)) + } + e = x.getReturnTypeOfSignature(c), s = x.getReturnTypeOfSignature(l); + return _.push.apply(_, m(e, s, u)), _ + } + + function u(r) { + for (var n = [], e = Math.max.apply(Math, r.map(function(e) { + return e.argumentTypes.length + })), t = 0; t < e; t++) ! function(t) { + var e = x.createSymbol(1, F.escapeLeadingUnderscores("arg".concat(t))); + e.type = g(r.map(function(e) { + return e.argumentTypes[t] || x.getUndefinedType() + })), r.some(function(e) { + return void 0 === e.argumentTypes[t] + }) && (e.flags |= 16777216), n.push(e) + }(t); + var i = c(function r(e) { + for (var n = new F.Map, t = 0, i = e; t < i.length; t++) { + var a = i[t]; + a.properties && a.properties.forEach(function(e, t) { + n.has(t) || n.set(t, []), n.get(t).push(e) + }) + } + var o = new F.Map; + return n.forEach(function(e, t) { + o.set(t, r(e)) + }), { + isNumber: e.some(function(e) { + return e.isNumber + }), + isString: e.some(function(e) { + return e.isString + }), + isNumberOrString: e.some(function(e) { + return e.isNumberOrString + }), + candidateTypes: F.flatMap(e, function(e) { + return e.candidateTypes + }), + properties: o, + calls: F.flatMap(e, function(e) { + return e.calls + }), + constructs: F.flatMap(e, function(e) { + return e.constructs + }), + numberIndex: F.forEach(e, function(e) { + return e.numberIndex + }), + stringIndex: F.forEach(e, function(e) { + return e.stringIndex + }), + candidateThisTypes: F.flatMap(e, function(e) { + return e.candidateThisTypes + }), + inferredTypes: void 0 + } + }(r.map(function(e) { + return e.return_ + }))); + return x.createSignature(void 0, void 0, void 0, n, i, void 0, e, 0) + } + + function C(e, t) { + !t || 1 & t.flags || 131072 & t.flags || (e.candidateTypes || (e.candidateTypes = [])).push(t) + } + + function E(e, t) { + !t || 1 & t.flags || 131072 & t.flags || (e.candidateThisTypes || (e.candidateThisTypes = [])).push(t) + } + } + P = F.codefix || (F.codefix = {}), u = "inferFromUsage", t = [F.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code, F.Diagnostics.Variable_0_implicitly_has_an_1_type.code, F.Diagnostics.Parameter_0_implicitly_has_an_1_type.code, F.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code, F.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code, F.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code, F.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code, F.Diagnostics.Member_0_implicitly_has_an_1_type.code, F.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code, F.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code, F.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code, F.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code, F.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code, F.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code, F.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code, F.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code, F.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code], P.registerCodeFix({ + errorCodes: t, + getCodeActions: function(e) { + var t, r = e.sourceFile, + n = e.program, + i = e.span.start, + a = e.errorCode, + o = e.cancellationToken, + s = e.host, + c = e.preferences, + l = F.getTokenAtPosition(r, i), + i = F.textChanges.ChangeTracker.with(e, function(e) { + t = _(e, r, l, a, n, o, F.returnTrue, s, c) + }), + e = t && F.getNameOfDeclaration(t); + return e && 0 !== i.length ? [P.createCodeFixAction(u, i, [function(e, t) { + switch (e) { + case F.Diagnostics.Parameter_0_implicitly_has_an_1_type.code: + case F.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code: + return F.isSetAccessorDeclaration(F.getContainingFunction(t)) ? F.Diagnostics.Infer_type_of_0_from_usage : F.Diagnostics.Infer_parameter_types_from_usage; + case F.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code: + case F.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code: + return F.Diagnostics.Infer_parameter_types_from_usage; + case F.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code: + return F.Diagnostics.Infer_this_type_of_0_from_usage; + default: + return F.Diagnostics.Infer_type_of_0_from_usage + } + }(a, l), F.getTextOfNode(e)], u, F.Diagnostics.Infer_all_types_from_usage)] : void 0 + }, + fixIds: [u], + getAllCodeActions: function(e) { + var r = e.sourceFile, + n = e.program, + i = e.cancellationToken, + a = e.host, + o = e.preferences, + s = F.nodeSeenTracker(); + return P.codeFixAll(e, t, function(e, t) { + _(e, r, F.getTokenAtPosition(t.file, t.start), t.code, n, i, s, a, o) + }) + } + }) + }(ts = ts || {}), ! function(s) { + var c, l, e; + + function u(e, t, r) { + if (!s.isInJSFile(e)) { + var n, e = s.getTokenAtPosition(e, r), + r = s.findAncestor(e, s.isFunctionLikeDeclaration), + e = null == r ? void 0 : r.type; + if (e) return r = t.getTypeFromTypeNode(e), n = t.getAwaitedType(r) || t.getVoidType(), (t = t.typeToTypeNode(n, e, void 0)) ? { + returnTypeNode: e, + returnType: r, + promisedTypeNode: t, + promisedType: n + } : void 0 + } + } + + function _(e, t, r, n) { + e.replaceNode(t, r, s.factory.createTypeReferenceNode("Promise", [n])) + } + c = s.codefix || (s.codefix = {}), l = "fixReturnTypeInAsyncFunction", e = [s.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code], c.registerCodeFix({ + errorCodes: e, + fixIds: [l], + getCodeActions: function(e) { + var t, r, n = e.sourceFile, + i = e.program, + a = e.span, + o = i.getTypeChecker(), + i = u(n, i.getTypeChecker(), a.start); + if (i) return t = i.returnTypeNode, a = i.returnType, r = i.promisedTypeNode, i = i.promisedType, e = s.textChanges.ChangeTracker.with(e, function(e) { + return _(e, n, t, r) + }), [c.createCodeFixAction(l, e, [s.Diagnostics.Replace_0_with_Promise_1, o.typeToString(a), o.typeToString(i)], l, s.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)] + }, + getAllCodeActions: function(n) { + return c.codeFixAll(n, e, function(e, t) { + var r = u(t.file, n.program.getTypeChecker(), t.start); + r && _(e, t.file, r.returnTypeNode, r.promisedTypeNode) + }) + } + }) + }(ts = ts || {}), ! function(o) { + var s, c, l, t; + + function u(e, t, r, n) { + var i = o.getLineAndCharacterOfPosition(t, r).line; + n && !o.tryAddToSet(n, i) || e.insertCommentBeforeLine(t, i, r, " @ts-ignore") + } + s = o.codefix || (o.codefix = {}), l = c = "disableJsDiagnostics", t = o.mapDefined(Object.keys(o.Diagnostics), function(e) { + e = o.Diagnostics[e]; + return e.category === o.DiagnosticCategory.Error ? e.code : void 0 + }), s.registerCodeFix({ + errorCodes: t, + getCodeActions: function(e) { + var t = e.sourceFile, + r = e.program, + n = e.span, + i = e.host, + a = e.formatContext; + if (o.isInJSFile(t) && o.isCheckJsEnabledForFile(t, r.getCompilerOptions())) return r = t.checkJsDirective ? "" : o.getNewLineOrDefaultFromHost(i, a.options), i = [s.createCodeFixActionWithoutFixAll(c, [s.createFileTextChanges(t.fileName, [o.createTextChange(t.checkJsDirective ? o.createTextSpanFromBounds(t.checkJsDirective.pos, t.checkJsDirective.end) : o.createTextSpan(0, 0), "// @ts-nocheck".concat(r))])], o.Diagnostics.Disable_checking_for_this_file)], o.textChanges.isValidLocationToAddComment(t, n.start) && i.unshift(s.createCodeFixAction(c, o.textChanges.ChangeTracker.with(e, function(e) { + return u(e, t, n.start) + }), o.Diagnostics.Ignore_this_error_message, l, o.Diagnostics.Add_ts_ignore_to_all_error_messages)), i + }, + fixIds: [l], + getAllCodeActions: function(e) { + var r = new o.Set; + return s.codeFixAll(e, t, function(e, t) { + o.textChanges.isValidLocationToAddComment(t.file, t.start) && u(e, t.file, t.start, r) + }) + } + }) + }(ts = ts || {}), ! function(O) { + var e, t; + + function M(e) { + return { + trackSymbol: function() { + return !1 + }, + moduleResolverHost: O.getModuleSpecifierResolverHost(e.program, e.host) + } + } + + function _(e, a, t, o, r, s, c, n, l, i) { + void 0 === l && (l = 3), void 0 === i && (i = !1); + var u = e.getDeclarations(), + _ = null == u ? void 0 : u[0], + d = o.program.getTypeChecker(), + p = O.getEmitScriptTarget(o.program.getCompilerOptions()), + f = null != (f = null == _ ? void 0 : _.kind) ? f : 168, + g = O.getSynthesizedDeepClone(O.getNameOfDeclaration(_), !1), + m = _ ? O.getEffectiveModifierFlags(_) : 0, + m = 4 & m ? 4 : 16 & m ? 16 : 0, + y = (_ && O.isAutoAccessorPropertyDeclaration(_) && (m |= 128), m ? O.factory.createNodeArray(O.factory.createModifiersFromModifierFlags(m)) : void 0), + h = d.getWidenedType(d.getTypeOfSymbolAtLocation(e, a)), + v = !!(16777216 & e.flags), + b = !!(16777216 & a.flags) || i, + x = O.getQuotePreference(t, r); + switch (f) { + case 168: + case 169: + var D = d.typeToTypeNode(h, a, 0 === x ? 268435456 : void 0, M(o)); + s && (k = j(D, p)) && (D = k.typeNode, J(s, k.symbols)), c(O.factory.createPropertyDeclaration(y, _ ? P(g) : e.getName(), v && 2 & l ? O.factory.createToken(57) : void 0, D, void 0)); + break; + case 174: + case 175: + O.Debug.assertIsDefined(u); + var S = d.typeToTypeNode(h, a, void 0, M(o)), + D = O.getAllAccessorDeclarations(u, _), + D = D.secondAccessor ? [D.firstAccessor, D.secondAccessor] : [D.firstAccessor]; + s && (k = j(S, p)) && (S = k.typeNode, J(s, k.symbols)); + for (var T = 0, C = D; T < C.length; T++) { + var E = C[T]; + O.isGetAccessorDeclaration(E) ? c(O.factory.createGetAccessorDeclaration(y, P(g), O.emptyArray, I(S), w(n, x, b))) : (O.Debug.assertNode(E, O.isSetAccessorDeclaration, "The counterpart to a getter should be a setter"), E = (E = O.getSetAccessorValueParameter(E)) && O.isIdentifier(E.name) ? O.idText(E.name) : void 0, c(O.factory.createSetAccessorDeclaration(y, P(g), R(1, [E], [I(S)], 1, !1), w(n, x, b)))) + } + break; + case 170: + case 171: + O.Debug.assertIsDefined(u); + var k = h.isUnion() ? O.flatMap(h.types, function(e) { + return e.getCallSignatures() + }) : h.getCallSignatures(); + if (O.some(k)) + if (1 === u.length) O.Debug.assert(1 === k.length, "One declaration implies one signature"), F(x, k[0], y, P(g), w(n, x, b)); + else { + for (var N = 0, A = k; N < A.length; N++) F(x, A[N], y, P(g)); + b || (u.length > k.length ? F(x, d.getSignatureFromDeclaration(u[u.length - 1]), y, P(g), w(n, x)) : (O.Debug.assert(u.length === k.length, "Declarations and signatures should match count"), c(function(e, t, r, n, i, a, o, s, c) { + for (var l = n[0], u = n[0].minArgumentCount, _ = !1, d = 0, p = n; d < p.length; d++) { + var f = p[d]; + u = Math.min(f.minArgumentCount, u), O.signatureHasRestParameter(f) && (_ = !0), f.parameters.length >= l.parameters.length && (!O.signatureHasRestParameter(f) || O.signatureHasRestParameter(l)) && (l = f) + } + var g = l.parameters.length - (O.signatureHasRestParameter(l) ? 1 : 0), + m = l.parameters.map(function(e) { + return e.name + }), + y = R(g, m, void 0, u, !1); + _ && (m = O.factory.createParameterDeclaration(void 0, O.factory.createToken(25), m[g] || "rest", u <= g ? O.factory.createToken(57) : void 0, O.factory.createArrayTypeNode(O.factory.createKeywordTypeNode(157)), void 0), y.push(m)); + return function(e, t, r, n, i, a, o, s) { + return O.factory.createMethodDeclaration(e, void 0, t, r ? O.factory.createToken(57) : void 0, n, i, a, s || B(o)) + }(o, i, a, void 0, y, function(e, t, r, n) { + if (O.length(e)) return e = t.getUnionType(O.map(e, t.getReturnTypeOfSignature)), t.typeToTypeNode(e, n, void 0, M(r)) + }(n, e, t, r), s, c) + }(d, o, a, k, P(g), v && !!(1 & l), y, x, n)))) + } + } + + function F(e, t, r, n, i) { + e = L(171, o, e, t, i, n, r, v && !!(1 & l), a, s); + e && c(e) + } + + function P(e) { + return O.getSynthesizedDeepClone(e, !1) + } + + function w(e, t, r) { + return r ? void 0 : O.getSynthesizedDeepClone(e, !1) || B(t) + } + + function I(e) { + return O.getSynthesizedDeepClone(e, !1) + } + } + + function L(e, t, r, n, i, a, o, s, c, l) { + var u = t.program, + _ = u.getTypeChecker(), + d = O.getEmitScriptTarget(u.getCompilerOptions()), + u = _.signatureToSignatureDeclaration(n, e, c, 524545 | (0 === r ? 268435456 : 0), M(t)); + if (u) return _ = u.typeParameters, n = u.parameters, e = u.type, l && (_ && _ !== (c = O.sameMap(_, function(e) { + var t, r = e.constraint, + n = e.default; + return r && (t = j(r, d)) && (r = t.typeNode, J(l, t.symbols)), n && (t = j(n, d)) && (n = t.typeNode, J(l, t.symbols)), O.factory.updateTypeParameterDeclaration(e, e.modifiers, e.name, r, n) + })) && (_ = O.setTextRange(O.factory.createNodeArray(c, _.hasTrailingComma), _)), n !== (r = O.sameMap(n, function(e) { + var t = j(e.type, d), + r = e.type; + return t && (r = t.typeNode, J(l, t.symbols)), O.factory.updateParameterDeclaration(e, e.modifiers, e.dotDotDotToken, e.name, e.questionToken, r, e.initializer) + })) && (n = O.setTextRange(O.factory.createNodeArray(r, n.hasTrailingComma), n)), e) && (t = j(e, d)) && (e = t.typeNode, J(l, t.symbols)), c = s ? O.factory.createToken(57) : void 0, r = u.asteriskToken, O.isFunctionExpression(u) ? O.factory.updateFunctionExpression(u, o, u.asteriskToken, O.tryCast(a, O.isIdentifier), _, n, e, null != i ? i : u.body) : O.isArrowFunction(u) ? O.factory.updateArrowFunction(u, o, _, n, e, u.equalsGreaterThanToken, null != i ? i : u.body) : O.isMethodDeclaration(u) ? O.factory.updateMethodDeclaration(u, o, r, null != a ? a : O.factory.createIdentifier(""), c, _, n, e, i) : O.isFunctionDeclaration(u) ? O.factory.updateFunctionDeclaration(u, o, u.asteriskToken, O.tryCast(a, O.isIdentifier), _, n, e, null != i ? i : u.body) : void 0 + } + + function x(e) { + return 84 + e <= 90 ? String.fromCharCode(84 + e) : "T".concat(e) + } + + function f(e, t, r, n, i, a, o) { + e = e.typeToTypeNode(r, n, a, o); + return e && O.isImportTypeNode(e) && (r = j(e, i)) && (J(t, r.symbols), e = r.typeNode), O.getSynthesizedDeepClone(e) + } + + function g(e) { + return e.isUnionOrIntersection() ? e.types.some(g) : 262144 & e.flags + } + + function D(e, t, r, n, i, a, o) { + for (var s = [], c = new O.Map, l = 0; l < r.length; l += 1) { + var u, _, d, p = r[l]; + p.isUnionOrIntersection() && p.types.some(g) ? (u = x(l), s.push(O.factory.createTypeReferenceNode(u)), c.set(u, void 0)) : (u = e.getBaseTypeOfLiteralType(p), (_ = f(e, t, u, n, i, a, o)) && (s.push(_), _ = function e(t) { + if (3145728 & t.flags) + for (var r = 0, n = t.types; r < n.length; r++) { + var i = n[r], + i = e(i); + if (i) return i + } + return !(262144 & t.flags) || null == (t = t.getSymbol()) ? void 0 : t.getName() + }(p), d = !p.isTypeParameter() || !p.constraint || 524288 & (d = p.constraint).flags && 16 === d.objectFlags ? void 0 : f(e, t, p.constraint, n, i, a, o), _) && c.set(_, { + argumentType: p, + constraint: d + })) + } + return { + argumentTypeNodes: s, + argumentTypeParameters: O.arrayFrom(c.entries()) + } + } + + function R(e, t, r, n, i) { + for (var a = [], o = new O.Map, s = 0; s < e; s++) { + var c = (null == t ? void 0 : t[s]) || "arg".concat(s), + l = o.get(c), + c = (o.set(c, (l || 0) + 1), O.factory.createParameterDeclaration(void 0, void 0, c + (l || ""), void 0 !== n && n <= s ? O.factory.createToken(57) : void 0, i ? void 0 : (null == r ? void 0 : r[s]) || O.factory.createKeywordTypeNode(157), void 0)); + a.push(c) + } + return a + } + + function B(e) { + return S(O.Diagnostics.Method_not_implemented.message, e) + } + + function S(e, t) { + return O.factory.createBlock([O.factory.createThrowStatement(O.factory.createNewExpression(O.factory.createIdentifier("Error"), void 0, [O.factory.createStringLiteral(e, 0 === t)]))], !0) + } + + function i(e, t, r) { + var n = O.getTsConfigObjectLiteralExpression(t); + if (n) { + var i = p(n, "compilerOptions"); + if (void 0 === i) e.insertNodeAtObjectStart(t, n, d("compilerOptions", O.factory.createObjectLiteralExpression(r.map(function(e) { + return d(e[0], e[1]) + }), !0))); + else { + var a = i.initializer; + if (O.isObjectLiteralExpression(a)) + for (var o = 0, s = r; o < s.length; o++) { + var c = s[o], + l = c[0], + c = c[1], + u = p(a, l); + void 0 === u ? e.insertNodeAtObjectStart(t, a, d(l, c)) : e.replaceNode(t, u.initializer, c) + } + } + } + } + + function d(e, t) { + return O.factory.createPropertyAssignment(O.factory.createStringLiteral(e), t) + } + + function p(e, t) { + return O.find(e.properties, function(e) { + return O.isPropertyAssignment(e) && !!e.name && O.isStringLiteral(e.name) && e.name.text === t + }) + } + + function j(e, i) { + var a, e = O.visitNode(e, function e(t) { + { + var r, n; + if (O.isLiteralImportTypeNode(t) && t.qualifier) return n = O.getFirstIdentifier(t.qualifier), r = O.getNameForExportedSymbol(n.symbol, i), r = r !== n.text ? o(t.qualifier, O.factory.createIdentifier(r)) : t.qualifier, a = O.append(a, n.symbol), n = null == (n = t.typeArguments) ? void 0 : n.map(e), O.factory.createTypeReferenceNode(r, n) + } + return O.visitEachChild(t, e, O.nullTransformationContext) + }); + if (a && e) return { + typeNode: e, + symbols: a + } + } + + function o(e, t) { + return 79 === e.kind ? t : O.factory.createQualifiedName(o(e.left, t), e.right) + } + + function J(t, e) { + e.forEach(function(e) { + return t.addImportFromExportedSymbol(e, !0) + }) + }(e = O.codefix || (O.codefix = {})).createMissingMemberNodes = function(e, t, r, n, i, a, o) { + for (var s = e.symbol.members, c = 0, l = t; c < l.length; c++) { + var u = l[c]; + s.has(u.escapedName) || _(u, e, r, n, i, a, o, void 0) + } + }, e.getNoopSymbolTrackerWithResolver = M, (t = e.PreserveOptionalFlags || (e.PreserveOptionalFlags = {}))[t.Method = 1] = "Method", t[t.Property = 2] = "Property", t[t.All = 3] = "All", e.addNewNodeForMemberSymbol = _, e.createSignatureDeclarationFromSignature = L, e.createSignatureDeclarationFromCallExpression = function(e, t, r, n, i, a, o) { + var s = O.getQuotePreference(t.sourceFile, t.preferences), + c = O.getEmitScriptTarget(t.program.getCompilerOptions()), + l = M(t), + u = t.program.getTypeChecker(), + t = O.isInJSFile(o), + _ = n.typeArguments, + d = n.arguments, + p = n.parent, + n = t ? void 0 : u.getContextualType(n), + f = O.map(d, function(e) { + return O.isIdentifier(e) ? e.text : O.isPropertyAccessExpression(e) && O.isIdentifier(e.name) ? e.name.text : void 0 + }), + g = t ? [] : O.map(d, function(e) { + return u.getTypeAtLocation(e) + }), + g = (r = D(u, r, g, o, c, void 0, l)).argumentTypeNodes, + c = r.argumentTypeParameters, + m = a ? O.factory.createNodeArray(O.factory.createModifiersFromModifierFlags(a)) : void 0, + y = O.isYieldExpression(p) ? O.factory.createToken(41) : void 0, + h = t ? void 0 : function(r, e, t) { + var n = new O.Set(e.map(function(e) { + return e[0] + })), + i = new O.Map(e); + if (t) + for (var t = t.filter(function(t) { + return !e.some(function(e) { + return r.getTypeAtLocation(t) === (null == (e = e[1]) ? void 0 : e.argumentType) + }) + }), a = n.size + t.length, o = 0; n.size < a; o += 1) n.add(x(o)); + return O.map(O.arrayFrom(n.values()), function(e) { + return O.factory.createTypeParameterDeclaration(void 0, e, null == (e = i.get(e)) ? void 0 : e.constraint) + }) + }(u, c, _), + v = R(d.length, f, g, void 0, t), + b = t || void 0 === n ? void 0 : u.typeToTypeNode(n, o, void 0, l); + switch (e) { + case 171: + return O.factory.createMethodDeclaration(m, y, i, void 0, h, v, b, B(s)); + case 170: + return O.factory.createMethodSignature(m, i, void 0, h, v, void 0 === b ? O.factory.createKeywordTypeNode(157) : b); + case 259: + return O.factory.createFunctionDeclaration(m, y, i, h, v, b, S(O.Diagnostics.Function_not_implemented.message, s)); + default: + O.Debug.fail("Unexpected kind") + } + }, e.typeToAutoImportableTypeNode = f, e.getArgumentTypesAndTypeParameters = D, e.createStubbedBody = S, e.setJsonCompilerOptionValues = i, e.setJsonCompilerOptionValue = function(e, t, r, n) { + i(e, t, [ + [r, n] + ]) + }, e.createJsonPropertyAssignment = d, e.findJsonProperty = p, e.tryGetAutoImportableReferenceFromTypeNode = j, e.importSymbols = J, e.findAncestorMatchingSpan = function(e, t) { + for (var r = O.textSpanEnd(t), n = O.getTokenAtPosition(e, t.start); n.end < r;) n = n.parent; + return n + } + }(ts = ts || {}), ! function(N) { + var e; + + function o(e) { + return N.isParameterPropertyDeclaration(e, e.parent) || N.isPropertyDeclaration(e) || N.isPropertyAssignment(e) + } + + function s(e, t) { + return N.isIdentifier(t) ? N.factory.createIdentifier(e) : N.factory.createStringLiteral(e) + } + + function A(e, t, r) { + t = t ? r.name : N.factory.createThis(); + return N.isIdentifier(e) ? N.factory.createPropertyAccessExpression(t, e) : N.factory.createElementAccessExpression(t, N.factory.createStringLiteralFromNode(e)) + } + + function F(e, t, r, n, i) { + void 0 === i && (i = !0); + var a = N.getTokenAtPosition(e, r), + i = r === n && i, + a = N.findAncestor(a.parent, o); + return a && (N.nodeOverlapsWithStartEnd(a.name, e, r, n) || i) ? (r = a.name, N.isIdentifier(r) || N.isStringLiteral(r) ? 124 != (126975 & N.getEffectiveModifierFlags(a) | 124) ? { + error: N.getLocaleSpecificMessage(N.Diagnostics.Can_only_convert_property_with_modifier) + } : (n = a.name.text, r = s((i = N.startsWithUnderscore(n)) ? n : N.getUniqueName("_".concat(n), e), a.name), e = s(i ? N.getUniqueName(n.substring(1), e) : n, a.name), { + isStatic: N.hasStaticModifier(a), + isReadonly: N.hasEffectiveReadonlyModifier(a), + type: function(e, t) { + var r = N.getTypeAnnotationNode(e); + if (N.isPropertyDeclaration(e) && r && e.questionToken) { + var e = t.getTypeChecker(), + t = e.getTypeFromTypeNode(r); + if (!e.isTypeAssignableTo(e.getUndefinedType(), t)) return e = N.isUnionTypeNode(r) ? r.types : [r], N.factory.createUnionTypeNode(__spreadArray(__spreadArray([], e, !0), [N.factory.createKeywordTypeNode(155)], !1)) + } + return r + }(a, t), + container: (166 === a.kind ? a.parent : a).parent, + originalName: a.name.text, + declaration: a, + fieldName: r, + accessorName: e, + renameAccessor: i + }) : { + error: N.getLocaleSpecificMessage(N.Diagnostics.Name_is_not_valid) + }) : { + error: N.getLocaleSpecificMessage(N.Diagnostics.Could_not_find_property_for_which_to_generate_accessor) + } + } + + function P(e, t, r, n, i) { + N.isParameterPropertyDeclaration(n, n.parent) ? e.insertMemberAtStart(t, i, r) : N.isPropertyAssignment(n) ? e.insertNodeAfterComma(t, n, r) : e.insertNodeAfter(t, n, r) + }(e = N.codefix || (N.codefix = {})).generateAccessorFromProperty = function(e, t, r, n, i, a) { + if ((t = F(e, t, r, n)) && !N.refactor.isRefactorErrorInfo(t)) { + var o, s, r = N.textChanges.ChangeTracker.fromContext(i), + n = t.isStatic, + i = t.isReadonly, + c = t.fieldName, + l = t.accessorName, + u = t.originalName, + _ = t.type, + d = t.container, + t = t.declaration; + if (N.suppressLeadingAndTrailingTrivia(c), N.suppressLeadingAndTrailingTrivia(l), N.suppressLeadingAndTrailingTrivia(t), N.suppressLeadingAndTrailingTrivia(d), N.isClassLike(d) && (s = N.getEffectiveModifierFlags(t), s = N.isSourceFileJS(e) ? o = N.factory.createModifiersFromModifierFlags(s) : (o = N.factory.createModifiersFromModifierFlags(function(e) { + 16 & (e = -65 & e & -9) || (e |= 4); + return e + }(s)), N.factory.createModifiersFromModifierFlags((s = s, s = -17 & (s &= -5) | 8))), N.canHaveDecorators(t)) && (s = N.concatenate(N.getDecorators(t), s)), C = r, v = e, D = t, h = _, x = c, b = s, N.isPropertyDeclaration(D)) { + var p = C; + var f = v; + var g = D; + var m = x; + var y = b; + y = N.factory.updatePropertyDeclaration(g, y, m, g.questionToken || g.exclamationToken, h, g.initializer); + p.replaceNode(f, g, y) + } else if (N.isPropertyAssignment(D)) { + m = C; + var h = v; + p = D; + f = x; + f = N.factory.updatePropertyAssignment(p, f, p.initializer); + m.replacePropertyAssignment(h, p, f) + } else C.replaceNode(v, D, N.factory.updateParameterDeclaration(D, b, D.dotDotDotToken, N.cast(x, N.isIdentifier), D.questionToken, D.type, D.initializer)); + g = o; + var v, b, x, D, S, T, C, E, k, y = N.factory.createGetAccessorDeclaration(g, l, void 0, _, N.factory.createBlock([N.factory.createReturnStatement(A(c, n, d))], !0)); + return N.suppressLeadingAndTrailingTrivia(y), P(r, e, y, t, d), i ? (h = N.getFirstConstructorWithBody(d)) && (S = r, T = e, C = h, E = c.text, k = u, C.body) && C.body.forEachChild(function e(t) { + N.isElementAccessExpression(t) && 108 === t.expression.kind && N.isStringLiteral(t.argumentExpression) && t.argumentExpression.text === k && N.isWriteAccess(t) && S.replaceNode(T, t.argumentExpression, N.factory.createStringLiteral(E)), N.isPropertyAccessExpression(t) && 108 === t.expression.kind && t.name.text === k && N.isWriteAccess(t) && S.replaceNode(T, t.name, N.factory.createIdentifier(E)), N.isFunctionLike(t) || N.isClassLike(t) || t.forEachChild(e) + }) : (v = c, b = _, x = o, D = n, i = d, h = N.factory.createSetAccessorDeclaration(x, l, [N.factory.createParameterDeclaration(void 0, void 0, N.factory.createIdentifier("value"), void 0, b)], N.factory.createBlock([N.factory.createExpressionStatement(N.factory.createAssignment(A(v, D, i), N.factory.createIdentifier("value")))], !0)), N.suppressLeadingAndTrailingTrivia(h), P(r, e, h, t, d)), r.getChanges() + } + }, e.getAccessorConvertiblePropertyAtPosition = F, e.getAllSupers = function(e, t) { + for (var r = []; e;) { + var n = N.getClassExtendsHeritageElement(e), + n = n && t.getSymbolAtLocation(n.expression); + if (!n) break; + n = 2097152 & n.flags ? t.getAliasedSymbol(n) : n, n = n.declarations && N.find(n.declarations, N.isClassLike); + if (!n) break; + r.push(n), e = n + } + return r + } + }(ts = ts || {}), ! function(u) { + var _, d; + + function p(e, t, r, n) { + e = u.textChanges.ChangeTracker.with(e, function(e) { + return e.replaceNode(t, r, n) + }); + return _.createCodeFixActionWithoutFixAll(d, e, [u.Diagnostics.Replace_import_with_0, e[0].textChanges[0].newText]) + } + + function n(e, t) { + var r, n, i, a, o, s, c, l = e.program.getTypeChecker().getTypeAtLocation(t); + return l.symbol && l.symbol.originatingImport ? (r = [], l = l.symbol.originatingImport, u.isImportCall(l) || u.addRange(r, (n = e, l = l, i = u.getSourceFileOfNode(l), a = u.getNamespaceDeclarationNode(l), c = n.program.getCompilerOptions(), (o = []).push(p(n, i, l, u.makeImport(a.name, void 0, l.moduleSpecifier, u.getQuotePreference(i, n.preferences)))), u.getEmitModuleKind(c) === u.ModuleKind.CommonJS && o.push(p(n, i, l, u.factory.createImportEqualsDeclaration(void 0, !1, a.name, u.factory.createExternalModuleReference(l.moduleSpecifier)))), o)), !u.isExpression(t) || u.isNamedDeclaration(t.parent) && t.parent.name === t || (s = e.sourceFile, c = u.textChanges.ChangeTracker.with(e, function(e) { + return e.replaceNode(s, t, u.factory.createPropertyAccessExpression(t, "default"), {}) + }), r.push(_.createCodeFixActionWithoutFixAll(d, c, u.Diagnostics.Use_synthetic_default_member))), r) : [] + } + _ = u.codefix || (u.codefix = {}), d = "invalidImportSyntax", _.registerCodeFix({ + errorCodes: [u.Diagnostics.This_expression_is_not_callable.code, u.Diagnostics.This_expression_is_not_constructable.code], + getCodeActions: function(e) { + var t = e.sourceFile, + r = u.Diagnostics.This_expression_is_not_callable.code === e.errorCode ? 210 : 211, + t = u.findAncestor(u.getTokenAtPosition(t, e.span.start), function(e) { + return e.kind === r + }); + return t ? (t = t.expression, n(e, t)) : [] + } + }), _.registerCodeFix({ + errorCodes: [u.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code, u.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code, u.Diagnostics.Type_0_is_not_assignable_to_type_1.code, u.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code, u.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code, u.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code, u.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code, u.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code, u.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code, u.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code, u.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code], + getCodeActions: function(t) { + var e = t.sourceFile, + e = u.findAncestor(u.getTokenAtPosition(e, t.span.start), function(e) { + return e.getStart() === t.span.start && e.getEnd() === t.span.start + t.span.length + }); + return e ? n(t, e) : [] + } + }) + }(ts = ts || {}), ! function(_) { + var d, p, f, g, m, e; + + function y(e, t) { + e = _.getTokenAtPosition(e, t); + if (_.isIdentifier(e) && _.isPropertyDeclaration(e.parent)) { + t = _.getEffectiveTypeAnnotationNode(e.parent); + if (t) return { + type: t, + prop: e.parent, + isJs: _.isInJSFile(e.parent) + } + } + } + + function h(e, t, r) { + _.suppressLeadingAndTrailingTrivia(r); + var n = _.factory.updatePropertyDeclaration(r, r.modifiers, r.name, _.factory.createToken(53), r.type, r.initializer); + e.replaceNode(t, r, n) + } + + function v(e, t, r) { + var n = _.factory.createKeywordTypeNode(155), + n = _.isUnionTypeNode(r.type) ? r.type.types.concat(n) : [r.type, n], + n = _.factory.createUnionTypeNode(n); + r.isJs ? e.addJSDocTags(t, r.prop, [_.factory.createJSDocTypeTag(void 0, _.factory.createJSDocTypeExpression(n))]) : e.replaceNode(t, r.type, n) + } + + function b(e, t, r, n) { + _.suppressLeadingAndTrailingTrivia(r); + n = _.factory.updatePropertyDeclaration(r, r.modifiers, r.name, r.questionToken, r.type, n); + e.replaceNode(t, r, n) + } + + function x(e, t) { + return function t(r, e) { + { + if (512 & e.flags) return e === r.getFalseType() || e === r.getFalseType(!0) ? _.factory.createFalse() : _.factory.createTrue(); + if (e.isStringLiteral()) return _.factory.createStringLiteral(e.value); + if (e.isNumberLiteral()) return _.factory.createNumericLiteral(e.value); + if (2048 & e.flags) return _.factory.createBigIntLiteral(e.value); + if (e.isUnion()) return _.firstDefined(e.types, function(e) { + return t(r, e) + }); + var n; + if (e.isClass()) return !(n = _.getClassLikeDeclarationOfSymbol(e.symbol)) || _.hasSyntacticModifier(n, 256) || (n = _.getFirstConstructorWithBody(n)) && n.parameters.length ? void 0 : _.factory.createNewExpression(_.factory.createIdentifier(e.symbol.name), void 0, void 0); + if (r.isArrayLikeType(e)) return _.factory.createArrayLiteralExpression() + } + return + }(e, e.getTypeFromTypeNode(t.type)) + } + d = _.codefix || (_.codefix = {}), p = "strictClassInitialization", f = "addMissingPropertyDefiniteAssignmentAssertions", g = "addMissingPropertyUndefinedType", m = "addMissingPropertyInitializer", e = [_.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code], d.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var t, r, n, i, a, o, s, c, l, u = y(e.sourceFile, e.span.start); + if (u) return _.append(t = [], (r = e, n = u, l = _.textChanges.ChangeTracker.with(r, function(e) { + return v(e, r.sourceFile, n) + }), d.createCodeFixAction(p, l, [_.Diagnostics.Add_undefined_type_to_property_0, n.prop.name.getText()], g, _.Diagnostics.Add_undefined_type_to_all_uninitialized_properties))), _.append(t, (i = e, (a = u).isJs ? void 0 : (l = _.textChanges.ChangeTracker.with(i, function(e) { + return h(e, i.sourceFile, a.prop) + }), d.createCodeFixAction(p, l, [_.Diagnostics.Add_definite_assignment_assertion_to_property_0, a.prop.getText()], f, _.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)))), _.append(t, (o = e, !(s = u).isJs && (c = x(o.program.getTypeChecker(), s.prop)) ? (l = _.textChanges.ChangeTracker.with(o, function(e) { + return b(e, o.sourceFile, s.prop, c) + }), d.createCodeFixAction(p, l, [_.Diagnostics.Add_initializer_to_property_0, s.prop.name.getText()], m, _.Diagnostics.Add_initializers_to_all_uninitialized_properties)) : void 0)), t + }, + fixIds: [f, g, m], + getAllCodeActions: function(i) { + return d.codeFixAll(i, e, function(e, t) { + var r = y(t.file, t.start); + if (r) switch (i.fixId) { + case f: + h(e, t.file, r.prop); + break; + case g: + v(e, t.file, r); + break; + case m: + var n = x(i.program.getTypeChecker(), r.prop); + n && b(e, t.file, r.prop, n); + break; + default: + _.Debug.fail(JSON.stringify(i.fixId)) + } + }) + } + }) + }(ts = ts || {}), ! function(s) { + var n, i, e; + + function a(e, t, r) { + var n = r.allowSyntheticDefaults, + i = r.defaultImportName, + a = r.namedImports, + o = r.statement, + r = r.required; + e.replaceNode(t, o, i && !n ? s.factory.createImportEqualsDeclaration(void 0, !1, i, s.factory.createExternalModuleReference(r)) : s.factory.createImportDeclaration(void 0, s.factory.createImportClause(!1, i, a), r, void 0)) + } + + function o(e, t, r) { + e = s.getTokenAtPosition(e, r).parent; + if (!s.isRequireCall(e, !0)) throw s.Debug.failBadSyntaxKind(e); + var r = s.cast(e.parent, s.isVariableDeclaration), + n = s.tryCast(r.name, s.isIdentifier), + i = s.isObjectBindingPattern(r.name) ? function(e) { + for (var t = [], r = 0, n = e.elements; r < n.length; r++) { + var i = n[r]; + if (!s.isIdentifier(i.name) || i.initializer) return; + t.push(s.factory.createImportSpecifier(!1, s.tryCast(i.propertyName, s.isIdentifier), i.name)) + } + if (t.length) return s.factory.createNamedImports(t) + }(r.name) : void 0; + if (n || i) return { + allowSyntheticDefaults: s.getAllowSyntheticDefaultImports(t.getCompilerOptions()), + defaultImportName: n, + namedImports: i, + statement: s.cast(r.parent.parent, s.isVariableStatement), + required: s.first(e.arguments) + } + } + n = s.codefix || (s.codefix = {}), i = "requireInTs", e = [s.Diagnostics.require_call_may_be_converted_to_an_import.code], n.registerCodeFix({ + errorCodes: e, + getCodeActions: function(t) { + var e, r = o(t.sourceFile, t.program, t.span.start); + if (r) return e = s.textChanges.ChangeTracker.with(t, function(e) { + return a(e, t.sourceFile, r) + }), [n.createCodeFixAction(i, e, s.Diagnostics.Convert_require_to_import, i, s.Diagnostics.Convert_all_require_to_import)] + }, + fixIds: [i], + getAllCodeActions: function(r) { + return n.codeFixAll(r, e, function(e, t) { + t = o(t.file, r.program, t.start); + t && a(e, r.sourceFile, t) + }) + } + }) + }(ts = ts || {}), ! function(i) { + var a, o, e; + + function s(e, t) { + e = i.getTokenAtPosition(e, t); + if (i.isIdentifier(e)) return t = e.parent, i.isImportEqualsDeclaration(t) && i.isExternalModuleReference(t.moduleReference) ? { + importNode: t, + name: e, + moduleSpecifier: t.moduleReference.expression + } : i.isNamespaceImport(t) ? { + importNode: t = t.parent.parent, + name: e, + moduleSpecifier: t.moduleSpecifier + } : void 0 + } + + function c(e, t, r, n) { + e.replaceNode(t, r.importNode, i.makeImport(r.name, void 0, r.moduleSpecifier, i.getQuotePreference(t, n))) + } + a = i.codefix || (i.codefix = {}), o = "useDefaultImport", e = [i.Diagnostics.Import_may_be_converted_to_a_default_import.code], a.registerCodeFix({ + errorCodes: e, + getCodeActions: function(t) { + var r = t.sourceFile, + e = t.span.start, + n = s(r, e); + if (n) return e = i.textChanges.ChangeTracker.with(t, function(e) { + return c(e, r, n, t.preferences) + }), [a.createCodeFixAction(o, e, i.Diagnostics.Convert_to_default_import, o, i.Diagnostics.Convert_all_to_default_imports)] + }, + fixIds: [o], + getAllCodeActions: function(n) { + return a.codeFixAll(n, e, function(e, t) { + var r = s(t.file, t.start); + r && c(e, t.file, r, n.preferences) + }) + } + }) + }(ts = ts || {}), ! function(i) { + var r, n, t; + + function a(e, t, r) { + var n, r = i.tryCast(i.getTokenAtPosition(t, r.start), i.isNumericLiteral); + r && (n = r.getText(t) + "n", e.replaceNode(t, r, i.factory.createBigIntLiteral(n))) + } + r = i.codefix || (i.codefix = {}), n = "useBigintLiteral", t = [i.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code], r.registerCodeFix({ + errorCodes: t, + getCodeActions: function(t) { + var e = i.textChanges.ChangeTracker.with(t, function(e) { + return a(e, t.sourceFile, t.span) + }); + if (0 < e.length) return [r.createCodeFixAction(n, e, i.Diagnostics.Convert_to_a_bigint_numeric_literal, n, i.Diagnostics.Convert_all_to_bigint_numeric_literals)] + }, + fixIds: [n], + getAllCodeActions: function(e) { + return r.codeFixAll(e, t, function(e, t) { + return a(e, t.file, t) + }) + } + }) + }(ts = ts || {}), ! function(i) { + var a, o, e; + + function s(e, t) { + e = i.getTokenAtPosition(e, t); + return i.Debug.assert(100 === e.kind, "This token should be an ImportKeyword"), i.Debug.assert(202 === e.parent.kind, "Token parent should be an ImportType"), e.parent + } + + function c(e, t, r) { + var n = i.factory.updateImportTypeNode(r, r.argument, r.assertions, r.qualifier, r.typeArguments, !0); + e.replaceNode(t, r, n) + } + a = i.codefix || (i.codefix = {}), o = "fixAddModuleReferTypeMissingTypeof", e = [i.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code], a.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var t = e.sourceFile, + r = e.span, + n = s(t, r.start), + r = i.textChanges.ChangeTracker.with(e, function(e) { + return c(e, t, n) + }); + return [a.createCodeFixAction(o, r, i.Diagnostics.Add_missing_typeof, o, i.Diagnostics.Add_missing_typeof)] + }, + fixIds: [o], + getAllCodeActions: function(r) { + return a.codeFixAll(r, e, function(e, t) { + return c(e, r.sourceFile, s(t.file, t.start)) + }) + } + }) + }(ts = ts || {}), ! function(i) { + var a, o, e; + + function s(e, t) { + e = i.getTokenAtPosition(e, t).parent.parent; + if ((i.isBinaryExpression(e) || (e = e.parent, i.isBinaryExpression(e))) && i.nodeIsMissing(e.operatorToken)) return e + } + + function c(e, t, r) { + var n = function(e) { + var t = [], + r = e; + for (;;) { + if (!i.isBinaryExpression(r) || !i.nodeIsMissing(r.operatorToken) || 27 !== r.operatorToken.kind) return; + if (t.push(r.left), i.isJsxChild(r.right)) return t.push(r.right), t; + if (!i.isBinaryExpression(r.right)) return; + r = r.right + } + }(r); + n && e.replaceNode(t, r, i.factory.createJsxFragment(i.factory.createJsxOpeningFragment(), n, i.factory.createJsxJsxClosingFragment())) + } + a = i.codefix || (i.codefix = {}), o = "wrapJsxInFragment", e = [i.Diagnostics.JSX_expressions_must_have_one_parent_element.code], a.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var t = e.sourceFile, + r = e.span, + n = s(t, r.start); + if (n) return r = i.textChanges.ChangeTracker.with(e, function(e) { + return c(e, t, n) + }), [a.createCodeFixAction(o, r, i.Diagnostics.Wrap_in_JSX_fragment, o, i.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)] + }, + fixIds: [o], + getAllCodeActions: function(r) { + return a.codeFixAll(r, e, function(e, t) { + t = s(r.sourceFile, t.start); + t && c(e, r.sourceFile, t) + }) + } + }) + }(ts = ts || {}), ! function(o) { + var i, a, t; + + function s(e, t) { + e = o.getTokenAtPosition(e, t), t = o.tryCast(e.parent.parent, o.isIndexSignatureDeclaration); + if (t) { + e = o.isInterfaceDeclaration(t.parent) ? t.parent : o.tryCast(t.parent.parent, o.isTypeAliasDeclaration); + if (e) return { + indexSignature: t, + container: e + } + } + } + + function c(e, t, r) { + var n = r.indexSignature, + r = r.container, + i = (o.isInterfaceDeclaration(r) ? r : r.type).members.filter(function(e) { + return !o.isIndexSignatureDeclaration(e) + }), + a = o.first(n.parameters), + a = o.factory.createTypeParameterDeclaration(void 0, o.cast(a.name, o.isIdentifier), a.type), + a = o.factory.createMappedTypeNode(o.hasEffectiveReadonlyModifier(n) ? o.factory.createModifier(146) : void 0, a, void 0, n.questionToken, n.type, void 0), + n = o.factory.createIntersectionTypeNode(__spreadArray(__spreadArray(__spreadArray([], o.getAllSuperTypeNodes(r), !0), [a], !1), i.length ? [o.factory.createTypeLiteralNode(i)] : o.emptyArray, !0)); + e.replaceNode(t, r, o.factory.createTypeAliasDeclaration(r.modifiers, r.name, r.typeParameters, n)) + } + i = o.codefix || (o.codefix = {}), a = "fixConvertToMappedObjectType", t = [o.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code], i.registerCodeFix({ + errorCodes: t, + getCodeActions: function(e) { + var t = e.sourceFile, + r = e.span, + n = s(t, r.start); + if (n) return r = o.textChanges.ChangeTracker.with(e, function(e) { + return c(e, t, n) + }), e = o.idText(n.container.name), [i.createCodeFixAction(a, r, [o.Diagnostics.Convert_0_to_mapped_object_type, e], a, [o.Diagnostics.Convert_0_to_mapped_object_type, e])] + }, + fixIds: [a], + getAllCodeActions: function(e) { + return i.codeFixAll(e, t, function(e, t) { + var r = s(t.file, t.start); + r && c(e, t.file, r) + }) + } + }) + }(ts = ts || {}), ! function(n) { + var i, a, e; + i = n.codefix || (n.codefix = {}), a = "removeAccidentalCallParentheses", e = [n.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code], i.registerCodeFix({ + errorCodes: e, + getCodeActions: function(t) { + var e, r = n.findAncestor(n.getTokenAtPosition(t.sourceFile, t.span.start), n.isCallExpression); + if (r) return e = n.textChanges.ChangeTracker.with(t, function(e) { + e.deleteRange(t.sourceFile, { + pos: r.expression.end, + end: r.end + }) + }), [i.createCodeFixActionWithoutFixAll(a, e, n.Diagnostics.Remove_parentheses)] + }, + fixIds: [a] + }) + }(ts = ts || {}), ! function(a) { + var r, n, t; + + function i(e, t, r) { + var n, i, r = a.tryCast(a.getTokenAtPosition(t, r.start), function(e) { + return 133 === e.kind + }), + r = r && a.tryCast(r.parent, a.isAwaitExpression); + r && (a.isParenthesizedExpression((n = r).parent) && (i = a.getLeftmostExpression(r.expression, !1), a.isIdentifier(i)) && (i = a.findPrecedingToken(r.parent.pos, t)) && 103 !== i.kind && (n = r.parent), e.replaceNode(t, n, r.expression)) + } + r = a.codefix || (a.codefix = {}), n = "removeUnnecessaryAwait", t = [a.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code], r.registerCodeFix({ + errorCodes: t, + getCodeActions: function(t) { + var e = a.textChanges.ChangeTracker.with(t, function(e) { + return i(e, t.sourceFile, t.span) + }); + if (0 < e.length) return [r.createCodeFixAction(n, e, a.Diagnostics.Remove_unnecessary_await, n, a.Diagnostics.Remove_all_unnecessary_uses_of_await)] + }, + fixIds: [n], + getAllCodeActions: function(e) { + return r.codeFixAll(e, t, function(e, t) { + return i(e, t.file, t) + }) + } + }) + }(ts = ts || {}), ! function(i) { + var n, e, r; + + function a(e, t) { + return i.findAncestor(i.getTokenAtPosition(e, t.start), i.isImportDeclaration) + } + + function o(e, t, r) { + var n; + t && (n = i.Debug.checkDefined(t.importClause), e.replaceNode(r.sourceFile, t, i.factory.updateImportDeclaration(t, t.modifiers, i.factory.updateImportClause(n, n.isTypeOnly, n.name, void 0), t.moduleSpecifier, t.assertClause)), e.insertNodeAfter(r.sourceFile, t, i.factory.createImportDeclaration(void 0, i.factory.updateImportClause(n, n.isTypeOnly, void 0, n.namedBindings), t.moduleSpecifier, t.assertClause))) + } + n = i.codefix || (i.codefix = {}), e = [i.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code], r = "splitTypeOnlyImport", n.registerCodeFix({ + errorCodes: e, + fixIds: [r], + getCodeActions: function(t) { + var e = i.textChanges.ChangeTracker.with(t, function(e) { + return o(e, a(t.sourceFile, t.span), t) + }); + if (e.length) return [n.createCodeFixAction(r, e, i.Diagnostics.Split_into_two_separate_import_declarations, r, i.Diagnostics.Split_all_invalid_type_only_imports)] + }, + getAllCodeActions: function(r) { + return n.codeFixAll(r, e, function(e, t) { + o(e, a(r.sourceFile, t), r) + }) + } + }) + }(ts = ts || {}), ! function(a) { + var o, s, t; + + function c(e, t, r) { + r = r.getTypeChecker().getSymbolAtLocation(a.getTokenAtPosition(e, t)); + if (void 0 !== r) { + t = a.tryCast(null == (t = null == r ? void 0 : r.valueDeclaration) ? void 0 : t.parent, a.isVariableDeclarationList); + if (void 0 !== t) { + t = a.findChildOfKind(t, 85, e); + if (void 0 !== t) return { + symbol: r, + token: t + } + } + } + } + + function l(e, t, r) { + e.replaceNode(t, r, a.factory.createToken(119)) + } + o = a.codefix || (a.codefix = {}), s = "fixConvertConstToLet", t = [a.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code], o.registerCodeFix({ + errorCodes: t, + getCodeActions: function(e) { + var t = e.sourceFile, + r = e.span, + n = e.program, + i = c(t, r.start, n); + if (void 0 !== i) return r = a.textChanges.ChangeTracker.with(e, function(e) { + return l(e, t, i.token) + }), [o.createCodeFixActionMaybeFixAll(s, r, a.Diagnostics.Convert_const_to_let, s, a.Diagnostics.Convert_all_const_to_let)] + }, + getAllCodeActions: function(e) { + var n = e.program, + i = new a.Map; + return o.createCombinedCodeActions(a.textChanges.ChangeTracker.with(e, function(r) { + o.eachDiagnostic(e, t, function(e) { + var t = c(e.file, e.start, n); + if (t && a.addToSeen(i, a.getSymbolId(t.symbol))) return l(r, e.file, t.token) + }) + })) + }, + fixIds: [s] + }) + }(ts = ts || {}), ! function(i) { + var n, a, e; + + function o(e, t) { + e = i.getTokenAtPosition(e, t); + return 26 === e.kind && e.parent && (i.isObjectLiteralExpression(e.parent) || i.isArrayLiteralExpression(e.parent)) ? { + node: e + } : void 0 + } + + function s(e, t, r) { + var r = r.node, + n = i.factory.createToken(27); + e.replaceNode(t, r, n) + } + n = i.codefix || (i.codefix = {}), a = "fixExpectedComma", e = [i.Diagnostics._0_expected.code], n.registerCodeFix({ + errorCodes: e, + getCodeActions: function(e) { + var t = e.sourceFile, + r = o(t, e.span.start, e.errorCode); + if (r) return e = i.textChanges.ChangeTracker.with(e, function(e) { + return s(e, t, r) + }), [n.createCodeFixAction(a, e, [i.Diagnostics.Change_0_to_1, ";", ","], a, [i.Diagnostics.Change_0_to_1, ";", ","])] + }, + fixIds: [a], + getAllCodeActions: function(r) { + return n.codeFixAll(r, e, function(e, t) { + t = o(t.file, t.start, t.code); + t && s(e, r.sourceFile, t) + }) + } + }) + }(ts = ts || {}), ! function(s) { + var n, r, e; + + function i(e, t, r, n, i) { + var a, o, r = s.getTokenAtPosition(t, r.start); + s.isIdentifier(r) && s.isCallExpression(r.parent) && r.parent.expression === r && 0 === r.parent.arguments.length && (a = null == (a = (n = n.getTypeChecker()).getSymbolAtLocation(r)) ? void 0 : a.valueDeclaration) && s.isParameter(a) && s.isNewExpression(a.parent.parent) && (null != i && i.has(a) || (null != i && i.add(a), i = function(e) { + { + if (!s.isInJSFile(e)) return e.typeArguments; + if (s.isParenthesizedExpression(e.parent)) { + e = null == (e = s.getJSDocTypeTag(e.parent)) ? void 0 : e.typeExpression.type; + if (e && s.isTypeReferenceNode(e) && s.isIdentifier(e.typeName) && "Promise" === s.idText(e.typeName)) return e.typeArguments + } + } + }(a.parent.parent), s.some(i) ? (i = i[0], (o = !s.isUnionTypeNode(i) && !s.isParenthesizedTypeNode(i) && s.isParenthesizedTypeNode(s.factory.createUnionTypeNode([i, s.factory.createKeywordTypeNode(114)]).types[0])) && e.insertText(t, i.pos, "("), e.insertText(t, i.end, o ? ") | void" : " | void")) : (r = (o = null == (i = n.getResolvedSignature(r.parent)) ? void 0 : i.parameters[0]) && n.getTypeOfSymbolAtLocation(o, a.parent.parent), s.isInJSFile(a) ? (!r || 3 & r.flags) && (e.insertText(t, a.parent.parent.end, ")"), e.insertText(t, s.skipTrivia(t.text, a.parent.parent.pos), "/** @type {Promise} */(")) : (!r || 2 & r.flags) && e.insertText(t, a.parent.parent.expression.end, "")))) + } + n = s.codefix || (s.codefix = {}), r = "addVoidToPromise", e = [s.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code, s.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code], n.registerCodeFix({ + errorCodes: e, + fixIds: [r], + getCodeActions: function(t) { + var e = s.textChanges.ChangeTracker.with(t, function(e) { + return i(e, t.sourceFile, t.span, t.program) + }); + if (0 < e.length) return [n.createCodeFixAction("addVoidToPromise", e, s.Diagnostics.Add_void_to_Promise_resolved_without_a_value, r, s.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)] + }, + getAllCodeActions: function(r) { + return n.codeFixAll(r, e, function(e, t) { + return i(e, t.file, t, r.program, new s.Set) + }) + } + }) + }(ts = ts || {}), ! function(v) { + var r, n, i, a; + + function o(e, t) { + void 0 === t && (t = !0); + var r = e.file, + n = e.program, + e = v.getRefactorContextSpan(e), + i = v.getTokenAtPosition(r, e.start), + a = i.parent && 1 & v.getSyntacticModifierFlags(i.parent) && t ? i.parent : v.getParentNodeInSpan(i, r, e); + if (!(a && (v.isSourceFile(a.parent) || v.isModuleBlock(a.parent) && v.isAmbientModule(a.parent.parent)))) return { + error: v.getLocaleSpecificMessage(v.Diagnostics.Could_not_find_export_statement) + }; + var o = n.getTypeChecker(), + s = function(e, t) { + e = e.parent; + if (v.isSourceFile(e)) return e.symbol; + e = e.parent.symbol; + if (e.valueDeclaration && v.isExternalModuleAugmentation(e.valueDeclaration)) return t.getMergedSymbol(e); + return e + }(a, o), + t = v.getSyntacticModifierFlags(a) || (v.isExportAssignment(a) && !a.isExportEquals ? 1025 : 0), + c = !!(1024 & t); + if (!(1 & t) || !c && s.exports.has("default")) return { + error: v.getLocaleSpecificMessage(v.Diagnostics.This_file_already_has_a_default_export) + }; + + function l(e) { + return v.isIdentifier(e) && o.getSymbolAtLocation(e) ? void 0 : { + error: v.getLocaleSpecificMessage(v.Diagnostics.Can_only_convert_named_export) + } + } + var u; + switch (a.kind) { + case 259: + case 260: + case 261: + case 263: + case 262: + case 264: + return (u = a).name ? l(u.name) || { + exportNode: u, + exportName: u.name, + wasDefault: c, + exportingModuleSymbol: s + } : void 0; + case 240: + var _, d = a; + return 2 & d.declarationList.flags && 1 === d.declarationList.declarations.length ? (_ = v.first(d.declarationList.declarations)).initializer ? (v.Debug.assert(!c, "Can't have a default flag here"), l(_.name) || { + exportNode: d, + exportName: _.name, + wasDefault: c, + exportingModuleSymbol: s + }) : void 0 : void 0; + case 274: + return (u = a).isExportEquals ? void 0 : l(u.expression) || { + exportNode: u, + exportName: u.expression, + wasDefault: c, + exportingModuleSymbol: s + }; + default: + return + } + } + + function b(e, t) { + return v.factory.createImportSpecifier(!1, e === t ? void 0 : v.factory.createIdentifier(e), v.factory.createIdentifier(t)) + } + + function x(e, t) { + return v.factory.createExportSpecifier(!1, e === t ? void 0 : v.factory.createIdentifier(e), v.factory.createIdentifier(t)) + } + r = v.refactor || (v.refactor = {}), n = "Convert export", i = { + name: "Convert default export to named export", + description: v.Diagnostics.Convert_default_export_to_named_export.message, + kind: "refactor.rewrite.export.named" + }, a = { + name: "Convert named export to default export", + description: v.Diagnostics.Convert_named_export_to_default_export.message, + kind: "refactor.rewrite.export.default" + }, r.registerRefactor(n, { + kinds: [i.kind, a.kind], + getAvailableActions: function(e) { + var t = o(e, "invoked" === e.triggerReason); + return t ? r.isRefactorErrorInfo(t) ? e.preferences.provideRefactorNotApplicableReason ? [{ + name: n, + description: v.Diagnostics.Convert_default_export_to_named_export.message, + actions: [__assign(__assign({}, i), { + notApplicableReason: t.error + }), __assign(__assign({}, a), { + notApplicableReason: t.error + })] + }] : v.emptyArray : (e = t.wasDefault ? i : a, [{ + name: n, + description: e.description, + actions: [e] + }]) : v.emptyArray + }, + getEditsForAction: function(p, e) { + v.Debug.assert(e === i.name || e === a.name, "Unexpected action name"); + var f = o(p); + return v.Debug.assert(f && !r.isRefactorErrorInfo(f), "Expected applicable refactor info"), { + edits: v.textChanges.ChangeTracker.with(p, function(e) { + r = p.file, _ = p.program, u = f, e = e, d = p.cancellationToken; + var t = r, + r = u, + n = e, + i = _.getTypeChecker(), + a = r.wasDefault, + o = r.exportNode, + s = r.exportName; + if (a) v.isExportAssignment(o) && !o.isExportEquals ? (r = o.expression, a = x(r.text, r.text), n.replaceNode(t, o, v.factory.createExportDeclaration(void 0, !1, v.factory.createNamedExports([a])))) : n.delete(t, v.Debug.checkDefined(v.findModifier(o, 88), "Should find a default keyword in modifier list")); + else { + var c = v.Debug.checkDefined(v.findModifier(o, 93), "Should find an export keyword in modifier list"); + switch (o.kind) { + case 259: + case 260: + case 261: + n.insertNodeAfter(t, c, v.factory.createToken(88)); + break; + case 240: + var l = v.first(o.declarationList.declarations); + if (!v.FindAllReferences.Core.isSymbolReferencedInFile(s, i, t) && !l.type) { + n.replaceNode(t, o, v.factory.createExportDefault(v.Debug.checkDefined(l.initializer, "Initializer was previously known to be present"))); + break + } + case 263: + case 262: + case 264: + n.deleteModifier(t, c), n.insertNodeAfter(t, o, v.factory.createExportDefault(v.factory.createIdentifier(s.text))); + break; + default: + v.Debug.fail("Unexpected exportNode kind ".concat(o.kind)) + } + } + var u, r = _, + m = e, + a = d, + y = (_ = u).wasDefault, + h = _.exportName, + _ = _.exportingModuleSymbol, + e = r.getTypeChecker(), + d = v.Debug.checkDefined(e.getSymbolAtLocation(h), "Export name should resolve to a symbol"); + v.FindAllReferences.Core.eachExportReference(r.getSourceFiles(), e, a, d, _, h.text, y, function(e) { + if (h !== e) { + var t = e.getSourceFile(); + if (y) { + var r = t, + n = e, + i = m, + a = h.text, + o = n.parent; + switch (o.kind) { + case 208: + i.replaceNode(r, n, v.factory.createIdentifier(a)); + break; + case 273: + case 278: + var s = o; + i.replaceNode(r, s, b(a, s.name.text)); + break; + case 270: + var c, l = o, + s = (v.Debug.assert(l.name === n, "Import clause name should match provided ref"), b(a, n.text)), + u = l.namedBindings; + u ? 271 === u.kind ? (i.deleteRange(r, { + pos: n.getStart(r), + end: u.getStart(r) + }), c = v.isStringLiteral(l.parent.moduleSpecifier) ? v.quotePreferenceFromString(l.parent.moduleSpecifier, r) : 1, c = v.makeImport(void 0, [b(a, n.text)], l.parent.moduleSpecifier, c), i.insertNodeAfter(r, l.parent, c)) : (i.delete(r, n), i.insertNodeAtEndOfList(r, u.elements, s)) : i.replaceNode(r, n, v.factory.createNamedImports([s])); + break; + case 202: + l = o; + i.replaceNode(r, o, v.factory.createImportTypeNode(l.argument, l.assertions, v.factory.createIdentifier(a), l.typeArguments, l.isTypeOf)); + break; + default: + v.Debug.failBadSyntaxKind(o) + } + } else { + var _ = t, + d = e, + p = m, + f = d.parent; + switch (f.kind) { + case 208: + p.replaceNode(_, d, v.factory.createIdentifier("default")); + break; + case 273: + var g = v.factory.createIdentifier(f.name.text); + 1 === f.parent.elements.length ? p.replaceNode(_, f.parent, g) : (p.delete(_, f), p.insertNodeBefore(_, f.parent, g)); + break; + case 278: + p.replaceNode(_, f, x("default", f.name.text)); + break; + default: + v.Debug.assertNever(f, "Unexpected parent kind ".concat(f.kind)) + } + } + } + }) + }), + renameFilename: void 0, + renameLocation: void 0 + } + } + }) + }(ts = ts || {}), ! function(D) { + var r, e, n, i; + + function a(e, t) { + void 0 === t && (t = !0); + var r = e.file, + n = D.getRefactorContextSpan(e), + i = D.getTokenAtPosition(r, n.start), + t = t ? D.findAncestor(i, D.isImportDeclaration) : D.getParentNodeInSpan(i, r, n); + return t && D.isImportDeclaration(t) ? (i = n.start + n.length, (n = D.findNextToken(t, t.parent, r)) && i > n.getStart() ? void 0 : (r = t.importClause) ? r.namedBindings ? 271 === r.namedBindings.kind ? { + convertTo: 0, + import: r.namedBindings + } : p(e.program, r) ? { + convertTo: 1, + import: r.namedBindings + } : { + convertTo: 2, + import: r.namedBindings + } : { + error: D.getLocaleSpecificMessage(D.Diagnostics.Could_not_find_namespace_import_or_named_imports) + } : { + error: D.getLocaleSpecificMessage(D.Diagnostics.Could_not_find_import_clause) + }) : { + error: "Selection is not an import declaration." + } + } + + function p(e, t) { + return D.getAllowSyntheticDefaultImports(e.getCompilerOptions()) && function(e, t) { + e = t.resolveExternalModuleName(e); + return !!e && (t = t.resolveExternalModuleSymbol(e), e !== t) + }(t.parent.moduleSpecifier, e.getTypeChecker()) + } + + function S(e) { + return D.isPropertyAccessExpression(e) ? e.name : e.right + } + + function T(i, e, a, t, r) { + void 0 === r && (r = p(e, t.parent)); + var o = e.getTypeChecker(), + e = t.parent.parent, + n = e.moduleSpecifier, + s = new D.Set, + c = (t.elements.forEach(function(e) { + e = o.getSymbolAtLocation(e.name); + e && s.add(e) + }), n && D.isStringLiteral(n) ? D.codefix.moduleSpecifierToValidIdentifier(n.text, 99) : "module"); + for (var l = t.elements.some(function(e) { + return !!D.FindAllReferences.Core.eachSymbolReferenceInFile(e.name, o, i, function(e) { + var t = o.resolveName(c, e, 67108863, !0); + return !!t && (!s.has(t) || D.isExportSpecifier(e.parent)) + }) + }) ? D.getUniqueName(c, i) : c, u = new D.Set, _ = 0, d = t.elements; _ < d.length; _++) ! function(r) { + var n = (r.propertyName || r.name).text; + D.FindAllReferences.Core.eachSymbolReferenceInFile(r.name, o, i, function(e) { + var t = D.factory.createPropertyAccessExpression(D.factory.createIdentifier(l), n); + D.isShorthandPropertyAssignment(e.parent) ? a.replaceNode(i, e.parent, D.factory.createPropertyAssignment(e.text, t)) : D.isExportSpecifier(e.parent) ? u.add(r) : a.replaceNode(i, e, t) + }) + }(d[_]); + a.replaceNode(i, t, r ? D.factory.createIdentifier(l) : D.factory.createNamespaceImport(D.factory.createIdentifier(l))), u.size && (n = D.arrayFrom(u.values()).map(function(e) { + return D.factory.createImportSpecifier(e.isTypeOnly, e.propertyName && D.factory.createIdentifier(e.propertyName.text), D.factory.createIdentifier(e.name.text)) + }), a.insertNodeAfter(i, t.parent.parent, C(e, void 0, n))) + } + + function C(e, t, r) { + return D.factory.createImportDeclaration(void 0, D.factory.createImportClause(!1, t, r && r.length ? D.factory.createNamedImports(r) : void 0), e.moduleSpecifier, void 0) + } + r = D.refactor || (D.refactor = {}), n = "Convert import", (e = {})[0] = { + name: "Convert namespace import to named imports", + description: D.Diagnostics.Convert_namespace_import_to_named_imports.message, + kind: "refactor.rewrite.import.named" + }, e[2] = { + name: "Convert named imports to namespace import", + description: D.Diagnostics.Convert_named_imports_to_namespace_import.message, + kind: "refactor.rewrite.import.namespace" + }, e[1] = { + name: "Convert named imports to default import", + description: D.Diagnostics.Convert_named_imports_to_default_import.message, + kind: "refactor.rewrite.import.default" + }, i = e, r.registerRefactor(n, { + kinds: D.getOwnValues(i).map(function(e) { + return e.kind + }), + getAvailableActions: function(e) { + var t = a(e, "invoked" === e.triggerReason); + return t ? r.isRefactorErrorInfo(t) ? e.preferences.provideRefactorNotApplicableReason ? D.getOwnValues(i).map(function(e) { + return { + name: n, + description: e.description, + actions: [__assign(__assign({}, e), { + notApplicableReason: t.error + })] + } + }) : D.emptyArray : (e = i[t.convertTo], [{ + name: n, + description: e.description, + actions: [e] + }]) : D.emptyArray + }, + getEditsForAction: function(b, t) { + D.Debug.assert(D.some(D.getOwnValues(i), function(e) { + return e.name === t + }), "Unexpected action name"); + var x = a(b); + return D.Debug.assert(x && !r.isRefactorErrorInfo(x), "Expected applicable refactor info"), { + edits: D.textChanges.ChangeTracker.with(b, function(e) { + if (m = b.file, y = b.program, e = e, h = x, v = y.getTypeChecker(), 0 === h.convertTo) { + for (var t = m, r = v, n = e, i = (v = h.import, D.getAllowSyntheticDefaultImports(y.getCompilerOptions())), a = !1, o = [], s = new D.Map, c = (D.FindAllReferences.Core.eachSymbolReferenceInFile(v.name, r, t, function(e) { + var t; + D.isPropertyAccessOrQualifiedName(e.parent) ? (t = S(e.parent).text, r.resolveName(t, e, 67108863, !0) && s.set(t, !0), D.Debug.assert((t = e.parent, (D.isPropertyAccessExpression(t) ? t.expression : t.left) === e), "Parent expression should match id"), o.push(e.parent)) : a = !0 + }), new D.Map), l = 0, u = o; l < u.length; l++) { + var _ = u[l], + d = S(_).text, + p = c.get(d); + void 0 === p && c.set(d, p = s.has(d) ? D.getUniqueName(d, t) : d), n.replaceNode(t, _, D.factory.createIdentifier(p)) + } + var f = [], + g = (c.forEach(function(e, t) { + f.push(D.factory.createImportSpecifier(!1, e === t ? void 0 : D.factory.createIdentifier(t), D.factory.createIdentifier(e))) + }), v.parent.parent); + a && !i ? n.insertNodeAfter(t, g, C(g, void 0, f)) : n.replaceNode(t, g, C(g, a ? D.factory.createIdentifier(v.name.text) : void 0, f)) + } else T(m, y, e, h.import, 1 === h.convertTo); + var m, y, h, v + }), + renameFilename: void 0, + renameLocation: void 0 + } + } + }), r.doChangeNamedToNamespaceOrDefault = T + }(ts = ts || {}), ! function(l) { + var r, n, i, a; + + function o(e) { + return l.isBinaryExpression(e) || l.isConditionalExpression(e) + } + + function s(e) { + return o(e) || (e = e, l.isExpressionStatement(e)) || l.isReturnStatement(e) || l.isVariableStatement(e) + } + + function u(e, t) { + void 0 === t && (t = !0); + var r = e.file, + n = e.program, + e = l.getRefactorContextSpan(e), + i = 0 === e.length; + if (!i || t) { + t = l.getTokenAtPosition(r, e.start), r = l.findTokenOnLeftOfPosition(r, e.start + e.length), e = l.createTextSpanFromBounds(t.pos, (r && r.end >= t.pos ? r : t).getEnd()), r = i ? function(e) { + for (; e.parent;) { + if (s(e) && !s(e.parent)) return e; + e = e.parent + } + return + }(t) : function(e, t) { + for (; e.parent;) { + if (s(e) && 0 !== t.length && e.end >= t.start + t.length) return e; + e = e.parent + } + return + }(t, e), i = r && s(r) ? function(e) { + if (o(e)) return e; { + var t; + if (l.isVariableStatement(e)) return t = l.getSingleVariableOfVariableStatement(e), (t = null == t ? void 0 : t.initializer) && o(t) ? t : void 0 + } + return e.expression && o(e.expression) ? e.expression : void 0 + }(r) : void 0; + if (i) { + t = n.getTypeChecker(); + if (l.isConditionalExpression(i)) { + e = i; + r = t; + n = e.condition, t = p(e.whenTrue); + if (!t || r.isNullableType(r.getTypeAtLocation(t))) return { + error: l.getLocaleSpecificMessage(l.Diagnostics.Could_not_find_convertible_access_expression) + }; + return (l.isPropertyAccessExpression(n) || l.isIdentifier(n)) && _(n, t.expression) ? { + finalExpression: t, + occurrences: [n], + expression: e + } : l.isBinaryExpression(n) ? (r = c(t.expression, n)) ? { + finalExpression: t, + occurrences: r, + expression: e + } : { + error: l.getLocaleSpecificMessage(l.Diagnostics.Could_not_find_matching_access_expressions) + } : void 0; + return + } else { + n = i; + if (55 !== n.operatorToken.kind) return { + error: l.getLocaleSpecificMessage(l.Diagnostics.Can_only_convert_logical_AND_access_chains) + }; + t = p(n.right); + return t ? (r = c(t.expression, n.left)) ? { + finalExpression: t, + occurrences: r, + expression: n + } : { + error: l.getLocaleSpecificMessage(l.Diagnostics.Could_not_find_matching_access_expressions) + } : { + error: l.getLocaleSpecificMessage(l.Diagnostics.Could_not_find_convertible_access_expression) + }; + return + } + } + return { + error: l.getLocaleSpecificMessage(l.Diagnostics.Could_not_find_convertible_access_expression) + } + } + } + + function c(e, t) { + for (var r = []; l.isBinaryExpression(t) && 55 === t.operatorToken.kind;) { + var n = _(l.skipParentheses(e), l.skipParentheses(t.right)); + if (!n) break; + r.push(n), e = n, t = t.left + } + var i = _(e, t); + return i && r.push(i), 0 < r.length ? r : void 0 + } + + function _(e, t) { + return (l.isIdentifier(t) || l.isPropertyAccessExpression(t) || l.isElementAccessExpression(t)) && function(e, t) { + for (; + (l.isCallExpression(e) || l.isPropertyAccessExpression(e) || l.isElementAccessExpression(e)) && d(e) !== d(t);) e = e.expression; + for (; l.isPropertyAccessExpression(e) && l.isPropertyAccessExpression(t) || l.isElementAccessExpression(e) && l.isElementAccessExpression(t);) { + if (d(e) !== d(t)) return; + e = e.expression, t = t.expression + } + return l.isIdentifier(e) && l.isIdentifier(t) && e.getText() === t.getText() + }(e, t) ? t : void 0 + } + + function d(e) { + return l.isIdentifier(e) || l.isStringOrNumericLiteralLike(e) ? e.getText() : l.isPropertyAccessExpression(e) ? d(e.name) : l.isElementAccessExpression(e) ? d(e.argumentExpression) : void 0 + } + + function p(e) { + return e = l.skipParentheses(e), l.isBinaryExpression(e) ? p(e.left) : (l.isPropertyAccessExpression(e) || l.isElementAccessExpression(e) || l.isCallExpression(e)) && !l.isOptionalChain(e) ? e : void 0 + }(r = l.refactor || (l.refactor = {})).convertToOptionalChainExpression || (r.convertToOptionalChainExpression = {}), n = "Convert to optional chain expression", i = l.getLocaleSpecificMessage(l.Diagnostics.Convert_to_optional_chain_expression), a = { + name: n, + description: i, + kind: "refactor.rewrite.expression.optionalChain" + }, r.registerRefactor(n, { + kinds: [a.kind], + getEditsForAction: function(s, e) { + var c = u(s); + return l.Debug.assert(c && !r.isRefactorErrorInfo(c), "Expected applicable refactor info"), { + edits: l.textChanges.ChangeTracker.with(s, function(e) { + var t, r, n, i, a, o; + t = s.file, r = s.program.getTypeChecker(), e = e, i = (n = c).finalExpression, a = n.occurrences, n = n.expression, o = a[a.length - 1], (r = function e(t, r, n) { + if (l.isPropertyAccessExpression(r) || l.isElementAccessExpression(r) || l.isCallExpression(r)) { + var t = e(t, r.expression, n), + i = 0 < n.length ? n[n.length - 1] : void 0, + i = (null == i ? void 0 : i.getText()) === r.expression.getText(); + if (i && n.pop(), l.isCallExpression(r)) return i ? l.factory.createCallChain(t, l.factory.createToken(28), r.typeArguments, r.arguments) : l.factory.createCallChain(t, r.questionDotToken, r.typeArguments, r.arguments); + if (l.isPropertyAccessExpression(r)) return i ? l.factory.createPropertyAccessChain(t, l.factory.createToken(28), r.name) : l.factory.createPropertyAccessChain(t, r.questionDotToken, r.name); + if (l.isElementAccessExpression(r)) return i ? l.factory.createElementAccessChain(t, l.factory.createToken(28), r.argumentExpression) : l.factory.createElementAccessChain(t, r.questionDotToken, r.argumentExpression) + } + return r + }(r, i, a)) && (l.isPropertyAccessExpression(r) || l.isElementAccessExpression(r) || l.isCallExpression(r)) && (l.isBinaryExpression(n) ? e.replaceNodeRange(t, o, i, r) : l.isConditionalExpression(n) && e.replaceNode(t, n, l.factory.createBinaryExpression(r, l.factory.createToken(60), n.whenFalse))) + }), + renameFilename: void 0, + renameLocation: void 0 + } + }, + getAvailableActions: function(e) { + var t = u(e, "invoked" === e.triggerReason); + if (t) { + if (!r.isRefactorErrorInfo(t)) return [{ + name: n, + description: i, + actions: [a] + }]; + if (e.preferences.provideRefactorNotApplicableReason) return [{ + name: n, + description: i, + actions: [__assign(__assign({}, a), { + notApplicableReason: t.error + })] + }] + } + return l.emptyArray + } + }) + }(ts = ts || {}), ! function(_) { + var e, n, i, a; + + function s(e) { + switch (e.kind) { + case 170: + case 171: + case 176: + case 173: + case 177: + case 259: + return !0 + } + return !1 + } + + function d(t, e, r) { + var n = _.getTokenAtPosition(t, e), + n = _.findAncestor(n, s); + if (n && !(_.isFunctionLikeDeclaration(n) && n.body && _.rangeContainsPosition(n.body, e))) { + var i = r.getTypeChecker(), + e = n.symbol; + if (e) { + r = e.declarations; + if (!(_.length(r) <= 1) && _.every(r, function(e) { + return _.getSourceFileOfNode(e) === t + }) && s(r[0])) { + var a = r[0].kind; + if (_.every(r, function(e) { + return e.kind === a + })) { + n = r; + if (!_.some(n, function(e) { + return !!e.typeParameters || _.some(e.parameters, function(e) { + return !!e.modifiers || !_.isIdentifier(e.name) + }) + })) { + e = _.mapDefined(n, function(e) { + return i.getSignatureFromDeclaration(e) + }); + if (_.length(e) === _.length(r)) { + var o = i.getReturnTypeOfSignature(e[0]); + if (_.every(e, function(e) { + return i.getReturnTypeOfSignature(e) === o + })) return n + } + } + } + } + } + } + }(e = _.refactor || (_.refactor = {})).addOrRemoveBracesToArrowFunction || (e.addOrRemoveBracesToArrowFunction = {}), n = "Convert overload list to single signature", i = _.Diagnostics.Convert_overload_list_to_single_signature.message, a = { + name: n, + description: i, + kind: "refactor.rewrite.function.overloadList" + }, e.registerRefactor(n, { + kinds: [a.kind], + getEditsForAction: function(e) { + var t = e.file, + r = e.startPosition, + n = e.program, + i = d(t, r, n); + if (!i) return; + var a = n.getTypeChecker(), + o = i[i.length - 1], + s = o; + switch (o.kind) { + case 170: + s = _.factory.updateMethodSignature(o, o.modifiers, o.name, o.questionToken, o.typeParameters, c(i), o.type); + break; + case 171: + s = _.factory.updateMethodDeclaration(o, o.modifiers, o.asteriskToken, o.name, o.questionToken, o.typeParameters, c(i), o.type, o.body); + break; + case 176: + s = _.factory.updateCallSignature(o, o.typeParameters, c(i), o.type); + break; + case 173: + s = _.factory.updateConstructorDeclaration(o, o.modifiers, c(i), o.body); + break; + case 177: + s = _.factory.updateConstructSignature(o, o.typeParameters, c(i), o.type); + break; + case 259: + s = _.factory.updateFunctionDeclaration(o, o.modifiers, o.asteriskToken, o.name, o.typeParameters, c(i), o.type, o.body); + break; + default: + return _.Debug.failBadSyntaxKind(o, "Unhandled signature kind in overload list conversion refactoring") + } + return s !== o ? { + renameFilename: void 0, + renameLocation: void 0, + edits: _.textChanges.ChangeTracker.with(e, function(e) { + e.replaceNodeRange(t, i[0], i[i.length - 1], s) + }) + } : void 0; + + function c(e) { + var t = e[e.length - 1]; + return _.isFunctionLikeDeclaration(t) && t.body && (e = e.slice(0, e.length - 1)), _.factory.createNodeArray([_.factory.createParameterDeclaration(void 0, _.factory.createToken(25), "args", void 0, _.factory.createUnionTypeNode(_.map(e, l)))]) + } + + function l(e) { + e = _.map(e.parameters, u); + return _.setEmitFlags(_.factory.createTupleTypeNode(e), _.some(e, function(e) { + return !!_.length(_.getSyntheticLeadingComments(e)) + }) ? 0 : 1) + } + + function u(e) { + _.Debug.assert(_.isIdentifier(e.name)); + var t = _.setTextRange(_.factory.createNamedTupleMember(e.dotDotDotToken, e.name, e.questionToken, e.type || _.factory.createKeywordTypeNode(131)), e), + e = e.symbol && e.symbol.getDocumentationComment(a); + return e && (e = _.displayPartsToString(e)).length && _.setSyntheticLeadingComments(t, [{ + text: "*\n".concat(e.split("\n").map(function(e) { + return " * ".concat(e) + }).join("\n"), "\n "), + kind: 3, + pos: -1, + end: -1, + hasTrailingNewLine: !0, + hasLeadingNewline: !0 + }]), t + } + }, + getAvailableActions: function(e) { + var t = e.file, + r = e.startPosition, + e = e.program; + return d(t, r, e) ? [{ + name: n, + description: i, + actions: [a] + }] : _.emptyArray + } + }) + }(ts = ts || {}), ! function(V) { + var b, e, M, q, t, x, D, S; + + function r(e) { + var t = e.kind, + r = W(e.file, V.getRefactorContextSpan(e), "invoked" === e.triggerReason), + n = r.targetRange; + if (void 0 === n) return r.errors && 0 !== r.errors.length && e.preferences.provideRefactorNotApplicableReason ? (i = [], b.refactorKindBeginsWith(S.kind, t) && i.push({ + name: x, + description: S.description, + actions: [__assign(__assign({}, S), { + notApplicableReason: v(r.errors) + })] + }), b.refactorKindBeginsWith(D.kind, t) && i.push({ + name: x, + description: D.description, + actions: [__assign(__assign({}, D), { + notApplicableReason: v(r.errors) + })] + }), i) : V.emptyArray; + i = (r = G(r = n, i = e)).scopes, r = r.readsAndWrites, s = r.functionErrorsPerScope, c = r.constantErrorsPerScope; + var i, s, c, n = i.map(function(e, t) { + i = e; + var r, n, i = V.isFunctionLikeDeclaration(i) ? "inner function" : V.isClassLike(i) ? "method" : "function", + a = V.isClassLike(e) ? "readonly field" : "constant", + o = V.isFunctionLikeDeclaration(e) ? function(e) { + switch (e.kind) { + case 173: + return "constructor"; + case 215: + case 259: + return e.name ? "function '".concat(e.name.text, "'") : V.ANONYMOUS; + case 216: + return "arrow function"; + case 171: + return "method '".concat(e.name.getText(), "'"); + case 174: + return "'get ".concat(e.name.getText(), "'"); + case 175: + return "'set ".concat(e.name.getText(), "'"); + default: + throw V.Debug.assertNever(e, "Unexpected scope kind ".concat(e.kind)) + } + }(e) : V.isClassLike(e) ? 260 === (r = e).kind ? r.name ? "class '".concat(r.name.text, "'") : "anonymous class declaration" : r.name ? "class expression '".concat(r.name.text, "'") : "anonymous class expression" : 265 === (r = e).kind ? "namespace '".concat(r.parent.name.getText(), "'") : r.externalModuleIndicator ? 0 : 1, + i = 1 === o ? (n = V.formatStringFromArgs(V.getLocaleSpecificMessage(V.Diagnostics.Extract_to_0_in_1_scope), [i, "global"]), V.formatStringFromArgs(V.getLocaleSpecificMessage(V.Diagnostics.Extract_to_0_in_1_scope), [a, "global"])) : 0 === o ? (n = V.formatStringFromArgs(V.getLocaleSpecificMessage(V.Diagnostics.Extract_to_0_in_1_scope), [i, "module"]), V.formatStringFromArgs(V.getLocaleSpecificMessage(V.Diagnostics.Extract_to_0_in_1_scope), [a, "module"])) : (n = V.formatStringFromArgs(V.getLocaleSpecificMessage(V.Diagnostics.Extract_to_0_in_1), [i, o]), V.formatStringFromArgs(V.getLocaleSpecificMessage(V.Diagnostics.Extract_to_0_in_1), [a, o])); + return 0 !== t || V.isClassLike(e) || (i = V.formatStringFromArgs(V.getLocaleSpecificMessage(V.Diagnostics.Extract_to_0_in_enclosing_scope), [a])), { + functionExtraction: { + description: n, + errors: s[t] + }, + constantExtraction: { + description: i, + errors: c[t] + } + } + }); + if (void 0 === n) return V.emptyArray; + for (var a, o, l = [], u = new V.Map, _ = [], d = new V.Map, p = 0, f = 0, g = n; f < g.length; f++) { + var m, y = g[f], + h = y.functionExtraction, + y = y.constantExtraction; + b.refactorKindBeginsWith(S.kind, t) && (m = h.description, 0 === h.errors.length ? u.has(m) || (u.set(m, !0), l.push({ + description: m, + name: "function_scope_".concat(p), + kind: S.kind + })) : a = a || { + description: m, + name: "function_scope_".concat(p), + notApplicableReason: v(h.errors), + kind: S.kind + }), b.refactorKindBeginsWith(D.kind, t) && (m = y.description, 0 === y.errors.length ? d.has(m) || (d.set(m, !0), _.push({ + description: m, + name: "constant_scope_".concat(p), + kind: D.kind + })) : o = o || { + description: m, + name: "constant_scope_".concat(p), + notApplicableReason: v(y.errors), + kind: D.kind + }), p++ + } + r = []; + return l.length ? r.push({ + name: x, + description: V.getLocaleSpecificMessage(V.Diagnostics.Extract_function), + actions: l + }) : e.preferences.provideRefactorNotApplicableReason && a && r.push({ + name: x, + description: V.getLocaleSpecificMessage(V.Diagnostics.Extract_function), + actions: [a] + }), _.length ? r.push({ + name: x, + description: V.getLocaleSpecificMessage(V.Diagnostics.Extract_constant), + actions: _ + }) : e.preferences.provideRefactorNotApplicableReason && o && r.push({ + name: x, + description: V.getLocaleSpecificMessage(V.Diagnostics.Extract_constant), + actions: [o] + }), r.length ? r : V.emptyArray; + + function v(e) { + e = e[0].messageText; + return e = "string" != typeof e ? e.messageText : e + } + } + + function n(e, t) { + var r = W(e.file, V.getRefactorContextSpan(e)).targetRange, + n = /^function_scope_(\d+)$/.exec(t); + if (n) { + var i, a = +n[1], + o = (V.Debug.assert(isFinite(a), "Expected to parse a finite number from the function scope index"), n = a, _ = G(d = r, g = e), l = _.scopes, _ = _.readsAndWrites, c = _.target, u = _.usagesPerScope, o = _.functionErrorsPerScope, _ = _.exposedVariableDeclarations, V.Debug.assert(!o[n].length, "The extraction went missing? How?"), g.cancellationToken.throwIfCancellationRequested(), c), + s = l[n], + c = u[n], + l = _, + u = d, + n = g, + _ = c.usages, + d = c.typeParameterUsages, + c = c.substitutions, + p = n.program.getTypeChecker(), + L = V.getEmitScriptTarget(n.program.getCompilerOptions()), + f = V.codefix.createImportAdder(n.file, n.program, n.preferences, n.host), + g = s.getSourceFile(), + g = V.getUniqueName(V.isClassLike(s) ? "newMethod" : "newFunction", g), + m = V.isInJSFile(s), + y = V.factory.createIdentifier(g), + h = [], + v = []; + _.forEach(function(e, t) { + m || (r = p.getTypeOfSymbolAtLocation(e.symbol, e.node), r = p.getBaseTypeOfLiteralType(r), r = V.codefix.typeToAutoImportableTypeNode(p, f, r, s, L, 1)); + var r = V.factory.createParameterDeclaration(void 0, void 0, t, void 0, r); + h.push(r), 2 === e.usage && (i = i || []).push(e), v.push(V.factory.createIdentifier(t)) + }), _ = void 0 !== (d = 0 === (_ = V.arrayFrom(d.values()).map(function(e) { + return { + type: e, + declaration: function(e) { + var t, e = e.symbol; + if (e && e.declarations) + for (var r = 0, n = e.declarations; r < n.length; r++) { + var i = n[r]; + (void 0 === t || i.pos < t.pos) && (t = i) + } + return t + }(e) + } + }).sort(Q)).length ? void 0 : _.map(function(e) { + return e.declaration + })) ? d.map(function(e) { + return V.factory.createTypeReferenceNode(e.name, void 0) + }) : void 0, V.isExpression(o) && !m && (M = p.getContextualType(o), M = p.typeToTypeNode(M, s, 1)); + var b = (c = function(e, i, a, o, t) { + var s, c = void 0 !== a || 0 < i.length; + if (V.isBlock(e) && !c && 0 === o.size) return { + body: V.factory.createBlock(e.statements, !0), + returnValueProperty: void 0 + }; + var l = !1, + r = V.factory.createNodeArray(V.isBlock(e) ? e.statements.slice(0) : [V.isStatement(e) ? e : V.factory.createReturnStatement(V.skipParentheses(e))]); { + var n; + return c || o.size ? (n = V.visitNodes(r, function e(t) { + { + var r, n; + return !l && V.isReturnStatement(t) && c ? (r = X(i, a), t.expression && (s = s || "__return", r.unshift(V.factory.createPropertyAssignment(s, V.visitNode(t.expression, e)))), 1 === r.length ? V.factory.createReturnStatement(r[0].name) : V.factory.createReturnStatement(V.factory.createObjectLiteralExpression(r))) : (l = (r = l) || V.isFunctionLikeDeclaration(t) || V.isClassLike(t), n = o.get(V.getNodeId(t).toString()), n = n ? V.getSynthesizedDeepClone(n) : V.visitEachChild(t, e, V.nullTransformationContext), l = r, n) + } + }).slice(), c && !t && V.isStatement(e) && (1 === (t = X(i, a)).length ? n.push(V.factory.createReturnStatement(t[0].name)) : n.push(V.factory.createReturnStatement(V.factory.createObjectLiteralExpression(t)))), { + body: V.factory.createBlock(n, !0), + returnValueProperty: s + }) : { + body: V.factory.createBlock(r, !0), + returnValueProperty: void 0 + } + } + }(o, l, i, c, !!(u.facts & q.HasReturn))).body, + c = c.returnValueProperty, + x = (V.suppressLeadingAndTrailingTrivia(b), !!(u.facts & q.UsesThisInFunction)), + D = (E = V.isClassLike(s) ? (E = m ? [] : [V.factory.createModifier(121)], u.facts & q.InStaticRegion && E.push(V.factory.createModifier(124)), u.facts & q.IsAsyncFunction && E.push(V.factory.createModifier(132)), V.factory.createMethodDeclaration(E.length ? E : void 0, u.facts & q.IsGenerator ? V.factory.createToken(41) : void 0, y, void 0, d, h, M, b)) : (x && h.unshift(V.factory.createParameterDeclaration(void 0, void 0, "this", void 0, p.typeToTypeNode(p.getTypeAtLocation(u.thisNode), s, 1), void 0)), V.factory.createFunctionDeclaration(u.facts & q.IsAsyncFunction ? [V.factory.createToken(132)] : void 0, u.facts & q.IsGenerator ? V.factory.createToken(41) : void 0, y, d, h, M, b)), y = V.textChanges.ChangeTracker.fromContext(n), (d = function(t, e) { + return V.find(function(e) { + if (V.isFunctionLikeDeclaration(e)) { + var t = e.body; + if (V.isBlock(t)) return t.statements + } else { + if (V.isModuleBlock(e) || V.isSourceFile(e)) return e.statements; + if (V.isClassLike(e)) return e.members; + V.assertType(e) + } + return V.emptyArray + }(e), function(e) { + return e.pos >= t && V.isFunctionLikeDeclaration(e) && !V.isConstructorDeclaration(e) + }) + }((Y(u.range) ? V.last(u.range) : u.range).end, s)) ? y.insertNodeBefore(n.file, d, E, !0) : y.insertNodeAtEndOfScope(n.file, s, E), f.writeFixes(y), []), + b = function(e, t, r) { + r = V.factory.createIdentifier(r); + return V.isClassLike(e) ? (t = t.facts & q.InStaticRegion ? V.factory.createIdentifier(e.name.text) : V.factory.createThis(), V.factory.createPropertyAccessExpression(t, r)) : r + }(s, u, g); + if (x && v.unshift(V.factory.createIdentifier("this")), d = V.factory.createCallExpression(x ? V.factory.createPropertyAccessExpression(b, "call") : b, _, v), u.facts & q.IsGenerator && (d = V.factory.createYieldExpression(V.factory.createToken(41), d)), u.facts & q.IsAsyncFunction && (d = V.factory.createAwaitExpression(d)), $(o) && (d = V.factory.createJsxExpression(void 0, d)), l.length && !i) + if (V.Debug.assert(!c, "Expected no returnValueProperty"), V.Debug.assert(!(u.facts & q.HasReturn), "Expected RangeFacts.HasReturn flag to be unset"), 1 === l.length) { + var S = l[0]; + D.push(V.factory.createVariableStatement(void 0, V.factory.createVariableDeclarationList([V.factory.createVariableDeclaration(V.getSynthesizedDeepClone(S.name), void 0, V.getSynthesizedDeepClone(S.type), d)], S.parent.flags))) + } else { + for (var R = [], B = [], j = l[0].parent.flags, T = !1, C = 0, J = l; C < J.length; C++) { + var S = J[C], + z = (R.push(V.factory.createBindingElement(void 0, void 0, V.getSynthesizedDeepClone(S.name))), p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(S)), s, 1)); + B.push(V.factory.createPropertySignature(void 0, S.symbol.name, void 0, z)), T = T || void 0 !== S.type, j &= S.parent.flags + } + var E = T ? V.factory.createTypeLiteralNode(B) : void 0; + E && V.setEmitFlags(E, 1), D.push(V.factory.createVariableStatement(void 0, V.factory.createVariableDeclarationList([V.factory.createVariableDeclaration(V.factory.createObjectBindingPattern(R), void 0, E, d)], j))) + } + else if (l.length || i) { + if (l.length) + for (var k = 0, U = l; k < U.length; k++) { + var N = (S = U[k]).parent.flags; + 2 & N && (N = -3 & N | 1), D.push(V.factory.createVariableStatement(void 0, V.factory.createVariableDeclarationList([V.factory.createVariableDeclaration(S.symbol.name, void 0, K(S.type))], N))) + } + c && D.push(V.factory.createVariableStatement(void 0, V.factory.createVariableDeclarationList([V.factory.createVariableDeclaration(c, void 0, K(M))], 1))); + x = X(l, i); + c && x.unshift(V.factory.createShorthandPropertyAssignment(c)), 1 === x.length ? (V.Debug.assert(!c, "Shouldn't have returnValueProperty here"), D.push(V.factory.createExpressionStatement(V.factory.createAssignment(x[0].name, d))), u.facts & q.HasReturn && D.push(V.factory.createReturnStatement())) : (D.push(V.factory.createExpressionStatement(V.factory.createAssignment(V.factory.createObjectLiteralExpression(x), d))), c && D.push(V.factory.createReturnStatement(V.factory.createIdentifier(c)))) + } else u.facts & q.HasReturn ? D.push(V.factory.createReturnStatement(d)) : Y(u.range) ? D.push(V.factory.createExpressionStatement(d)) : D.push(d); + return Y(u.range) ? y.replaceNodeRangeWithNodes(n.file, V.first(u.range), V.last(u.range), D) : y.replaceNodeWithNodes(n.file, u.range, D), b = y.getChanges(), _ = (Y(u.range) ? V.first(u.range) : u.range).getSourceFile().fileName, o = V.getRenameLocation(b, _, g, !1), { + renameFilename: _, + renameLocation: o, + edits: b + }; + + function K(e) { + if (void 0 !== e) { + for (var e = V.getSynthesizedDeepClone(e), t = e; V.isParenthesizedTypeNode(t);) t = t.type; + return V.isUnionTypeNode(t) && V.find(t.types, function(e) { + return 155 === e.kind + }) ? e : V.factory.createUnionTypeNode([e, V.factory.createKeywordTypeNode(155)]) + } + } + } + var A, F, P, w, I, _, O, M, E = /^constant_scope_(\d+)$/.exec(t); + if (E) return a = +E[1], V.Debug.assert(isFinite(a), "Expected to parse a finite number from the constant scope index"), M = a, c = G(l = r, x = e), d = c.scopes, c = c.readsAndWrites, n = c.target, y = c.usagesPerScope, u = c.constantErrorsPerScope, c = c.exposedVariableDeclarations, V.Debug.assert(!u[M].length, "The extraction went missing? How?"), V.Debug.assert(0 === c.length, "Extract constant accepted a range containing a variable declaration?"), x.cancellationToken.throwIfCancellationRequested(), w = V.isExpression(n) ? n : n.statements[0].expression, I = d[M], g = y[M], _ = l.facts, o = x, g = g.substitutions, O = o.program.getTypeChecker(), b = I.getSourceFile(), b = !V.isPropertyAccessExpression(w) || V.isClassLike(I) || O.resolveName(w.name.text, w, 111551, !1) || V.isPrivateIdentifier(w.name) || V.isKeyword(w.name.originalKeywordKind) ? V.getUniqueName(V.isClassLike(I) ? "newProperty" : "newLocal", b) : w.name.text, t = V.isInJSFile(I), a = t || !O.isContextSensitive(w) ? void 0 : O.typeToTypeNode(O.getContextualType(w), I, 1), g = function(e, n) { + return n.size ? function e(t) { + var r = n.get(V.getNodeId(t).toString()); + return r ? V.getSynthesizedDeepClone(r) : V.visitEachChild(t, e, V.nullTransformationContext) + }(e) : e + }(V.skipParentheses(w), g), r = function(e, t) { + if (void 0 !== e && (V.isFunctionExpression(t) || V.isArrowFunction(t)) && !t.typeParameters) { + var r = O.getTypeAtLocation(w), + r = V.singleOrUndefined(O.getSignaturesOfType(r, 0)); + if (r && !r.getTypeParameters()) { + for (var n, i = [], a = !1, o = 0, s = t.parameters; o < s.length; o++) { + var c, l = s[o]; + l.type ? i.push(l) : ((c = O.getTypeAtLocation(l)) === O.getAnyType() && (a = !0), i.push(V.factory.updateParameterDeclaration(l, l.modifiers, l.dotDotDotToken, l.name, l.questionToken, l.type || O.typeToTypeNode(c, I, 1), l.initializer))) + } + a || (e = void 0, t = V.isArrowFunction(t) ? V.factory.updateArrowFunction(t, V.canHaveModifiers(w) ? V.getModifiers(w) : void 0, t.typeParameters, i, t.type || O.typeToTypeNode(r.getReturnType(), I, 1), t.equalsGreaterThanToken, t.body) : (r && r.thisParameter && (!(n = V.firstOrUndefined(i)) || V.isIdentifier(n.name) && "this" !== n.name.escapedText) && (n = O.getTypeOfSymbolAtLocation(r.thisParameter, w), i.splice(0, 0, V.factory.createParameterDeclaration(void 0, void 0, "this", void 0, O.typeToTypeNode(n, I, 1)))), V.factory.updateFunctionExpression(t, V.canHaveModifiers(w) ? V.getModifiers(w) : void 0, t.asteriskToken, t.name, t.typeParameters, i, t.type || O.typeToTypeNode(r.getReturnType(), I, 1), t.body))) + } + } + return { + variableType: e, + initializer: t + } + }(a, g), a = r.variableType, g = r.initializer, V.suppressLeadingAndTrailingTrivia(g), r = V.textChanges.ChangeTracker.fromContext(o), V.isClassLike(I) ? (V.Debug.assert(!t, "Cannot extract to a JS class"), (t = []).push(V.factory.createModifier(121)), _ & q.InStaticRegion && t.push(V.factory.createModifier(124)), t.push(V.factory.createModifier(146)), t = V.factory.createPropertyDeclaration(t, b, void 0, a, g), P = V.factory.createPropertyAccessExpression(_ & q.InStaticRegion ? V.factory.createIdentifier(I.name.getText()) : V.factory.createThis(), V.factory.createIdentifier(b)), $(w) && (P = V.factory.createJsxExpression(void 0, P)), F = function(e, t) { + for (var r, n = t.members, i = (V.Debug.assert(0 < n.length, "Found no members"), !0), a = 0, o = n; a < o.length; a++) { + var s = o[a]; + if (s.pos > e) return r || n[0]; + if (i && !V.isPropertyDeclaration(s)) { + if (void 0 !== r) return s; + i = !1 + } + r = s + } + return void 0 === r ? V.Debug.fail() : r + }(w.pos, I), r.insertNodeBefore(o.file, F, t, !0), r.replaceNode(o.file, w, P)) : (_ = V.factory.createVariableDeclaration(b, void 0, a, g), (t = function(e, t) { + var r; + for (; void 0 !== e && e !== t;) { + if (V.isVariableDeclaration(e) && e.initializer === r && V.isVariableDeclarationList(e.parent) && 1 < e.parent.declarations.length) return e; + e = (r = e).parent + } + }(w, I)) ? (r.insertNodeBefore(o.file, t, _), P = V.factory.createIdentifier(b), r.replaceNode(o.file, w, P)) : 241 === w.parent.kind && I === V.findAncestor(w, H) ? (A = V.factory.createVariableStatement(void 0, V.factory.createVariableDeclarationList([_], 2)), r.replaceNode(o.file, w.parent, A)) : (A = V.factory.createVariableStatement(void 0, V.factory.createVariableDeclarationList([_], 2)), 0 === (F = function(e, t) { + var r; + V.Debug.assert(!V.isClassLike(t)); + for (var n = e; n !== t; n = n.parent) H(n) && (r = n); + for (n = (r || e).parent;; n = n.parent) { + if (Z(n)) { + for (var i = void 0, a = 0, o = n.statements; a < o.length; a++) { + var s = o[a]; + if (s.pos > e.pos) break; + i = s + } + return !i && V.isCaseClause(n) ? (V.Debug.assert(V.isSwitchStatement(n.parent.parent), "Grandparent isn't a switch statement"), n.parent.parent) : V.Debug.checkDefined(i, "prevStatement failed to get set") + } + V.Debug.assert(n !== t, "Didn't encounter a block-like before encountering scope") + } + }(w, I)).pos ? r.insertNodeAtTopOfFile(o.file, A, !1) : r.insertNodeBefore(o.file, F, A, !1), 241 === w.parent.kind ? r.delete(o.file, w.parent) : (P = V.factory.createIdentifier(b), $(w) && (P = V.factory.createJsxExpression(void 0, P)), r.replaceNode(o.file, w, P)))), a = r.getChanges(), g = w.getSourceFile().fileName, t = V.getRenameLocation(a, g, b, !0), { + renameFilename: g, + renameLocation: t, + edits: a + }; + V.Debug.fail("Unrecognized action name") + } + + function i(e) { + return { + message: e, + code: 0, + category: V.DiagnosticCategory.Message, + key: e + } + } + + function W(e, c, t) { + void 0 === t && (t = !0); + var r = c.length; + if (0 === r && !t) return { + errors: [V.createFileDiagnostic(e, c.start, r, M.cannotExtractEmpty)] + }; + var l, n = 0 === r && t, + i = V.findFirstNonJsxWhitespaceToken(e, c.start), + a = V.findTokenOnLeftOfPosition(e, V.textSpanEnd(c)), + t = i && a && t ? function(e, t, r) { + e = e.getStart(r), t = t.getEnd(); + 59 === r.text.charCodeAt(t) && t++; + return { + start: e, + length: t - e + } + }(i, a, e) : c, + o = n ? V.findAncestor(i, function(e) { + return e.parent && y(e) && !V.isBinaryExpression(e.parent) + }) : V.getParentNodeInSpan(i, e, t), + s = n ? o : V.getParentNodeInSpan(a, e, t), + u = q.None; + if (!o || !s) return { + errors: [V.createFileDiagnostic(e, c.start, r, M.cannotExtractRange)] + }; + if (8388608 & o.flags) return { + errors: [V.createFileDiagnostic(e, c.start, r, M.cannotExtractJSDoc)] + }; + if (o.parent !== s.parent) return { + errors: [V.createFileDiagnostic(e, c.start, r, M.cannotExtractRange)] + }; + if (o === s) return V.isReturnStatement(o) && !o.expression ? { + errors: [V.createFileDiagnostic(e, c.start, r, M.cannotExtractRange)] + } : (n = function(e) { + if (V.isIdentifier(V.isExpressionStatement(e) ? e.expression : e)) return [V.createDiagnosticForNode(e, M.cannotExtractIdentifier)]; + return + }(i = function(e) { + if (V.isReturnStatement(e)) { + if (e.expression) return e.expression + } else if (V.isVariableStatement(e) || V.isVariableDeclarationList(e)) { + for (var t = (V.isVariableStatement(e) ? e.declarationList : e).declarations, r = 0, n = void 0, i = 0, a = t; i < a.length; i++) { + var o = a[i]; + o.initializer && (r++, n = o.initializer) + } + if (1 === r) return n + } else if (V.isVariableDeclaration(e) && e.initializer) return e.initializer; + return e + }(o)) || m(i)) ? { + errors: n + } : { + targetRange: { + range: function(e) { + if (V.isStatement(e)) return [e]; + if (V.isExpressionNode(e)) return V.isExpressionStatement(e.parent) ? [e.parent] : e; + if (h(e)) return e; + return + }(i), + facts: u, + thisNode: l + } + }; + if (!Z(o.parent)) return { + errors: [V.createFileDiagnostic(e, c.start, r, M.cannotExtractRange)] + }; + for (var _ = [], d = 0, p = o.parent.statements; d < p.length; d++) { + var f = p[d]; + if (f === o || _.length) { + var g = m(f); + if (g) return { + errors: g + }; + _.push(f) + } + if (f === s) break + } + return _.length ? { + targetRange: { + range: _, + facts: u, + thisNode: l + } + } : { + errors: [V.createFileDiagnostic(e, c.start, r, M.cannotExtractRange)] + }; + + function m(e) { + if (0, V.Debug.assert(e.pos <= e.end, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"), V.Debug.assert(!V.positionIsSynthesized(e.pos), "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"), !(V.isStatement(e) || V.isExpressionNode(e) && y(e) || h(e))) return [V.createDiagnosticForNode(e, M.statementOrExpressionExpected)]; + if (16777216 & e.flags) return [V.createDiagnosticForNode(e, M.cannotExtractAmbientBlock)]; + var a, t = V.getContainingClass(e); + if (t) + for (var r = t, n = e; n !== r;) { + if (169 === n.kind) { + V.isStatic(n) && (u |= q.InStaticRegion); + break + } + if (166 === n.kind) { + 173 === V.getContainingFunction(n).kind && (u |= q.InStaticRegion); + break + } + 171 === n.kind && V.isStatic(n) && (u |= q.InStaticRegion), n = n.parent + } + var o, s = 4; + return function e(r) { + if (a) return !0; + if (V.isDeclaration(r)) { + var t = 257 === r.kind ? r.parent.parent : r; + if (V.hasSyntacticModifier(t, 1)) return (a = a || []).push(V.createDiagnosticForNode(r, M.cannotExtractExportedEntity)), !0 + } + switch (r.kind) { + case 269: + return (a = a || []).push(V.createDiagnosticForNode(r, M.cannotExtractImport)), !0; + case 274: + return (a = a || []).push(V.createDiagnosticForNode(r, M.cannotExtractExportedEntity)), !0; + case 106: + if (210 === r.parent.kind) { + var n = V.getContainingClass(r); + if (void 0 === n || n.pos < c.start || n.end >= c.start + c.length) return (a = a || []).push(V.createDiagnosticForNode(r, M.cannotExtractSuper)), !0 + } else u |= q.UsesThis, l = r; + break; + case 216: + V.forEachChild(r, function e(t) { + if (V.isThis(t)) u |= q.UsesThis, l = r; + else { + if (V.isClassLike(t) || V.isFunctionLike(t) && !V.isArrowFunction(t)) return !1; + V.forEachChild(t, e) + } + }); + case 260: + case 259: + V.isSourceFile(r.parent) && void 0 === r.parent.externalModuleIndicator && (a = a || []).push(V.createDiagnosticForNode(r, M.functionWillNotBeVisibleInTheNewScope)); + case 228: + case 215: + case 171: + case 173: + case 174: + case 175: + return !1 + } + t = s; + switch (r.kind) { + case 242: + s &= -5; + break; + case 255: + s = 0; + break; + case 238: + r.parent && 255 === r.parent.kind && r.parent.finallyBlock === r && (s = 4); + break; + case 293: + case 292: + s |= 1; + break; + default: + V.isIterationStatement(r, !1) && (s |= 3) + } + switch (r.kind) { + case 194: + case 108: + u |= q.UsesThis, l = r; + break; + case 253: + var i = r.label; + (o = o || []).push(i.escapedText), V.forEachChild(r, e), o.pop(); + break; + case 249: + case 248: + (i = r.label) ? V.contains(o, i.escapedText) || (a = a || []).push(V.createDiagnosticForNode(r, M.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)): s & (249 === r.kind ? 1 : 2) || (a = a || []).push(V.createDiagnosticForNode(r, M.cannotExtractRangeContainingConditionalBreakOrContinueStatements)); + break; + case 220: + u |= q.IsAsyncFunction; + break; + case 226: + u |= q.IsGenerator; + break; + case 250: + 4 & s ? u |= q.HasReturn : (a = a || []).push(V.createDiagnosticForNode(r, M.cannotExtractRangeContainingConditionalReturnStatement)); + break; + default: + V.forEachChild(r, e) + } + s = t + }(e), u & q.UsesThis && (259 === (t = V.getThisContainer(e, !1)).kind || 171 === t.kind && 207 === t.parent.kind || 215 === t.kind) && (u |= q.UsesThisInFunction), a + } + } + + function H(e) { + return V.isArrowFunction(e) ? V.isFunctionBody(e.body) : V.isFunctionLikeDeclaration(e) || V.isSourceFile(e) || V.isModuleBlock(e) || V.isClassLike(e) + } + + function G(e, t) { + var r, n = t.file, + i = function(e) { + var t = Y(e.range) ? V.first(e.range) : e.range; + if (e.facts & q.UsesThis && !(e.facts & q.UsesThisInFunction)) { + var r, e = V.getContainingClass(t); + if (e) return (r = V.findAncestor(t, V.isFunctionLikeDeclaration)) ? [r, e] : [e] + } + for (var n = [];;) + if (H(t = 166 === (t = t.parent).kind ? V.findAncestor(t, function(e) { + return V.isFunctionLikeDeclaration(e) + }).parent : t) && (n.push(t), 308 === t.kind)) return n + }(e), + a = (a = n, Y((r = e).range) ? { + pos: V.first(r.range).getStart(a), + end: V.last(r.range).getEnd() + } : r.range); + return { + scopes: i, + readsAndWrites: function(m, y, h, v, b, i) { + var a, e, o = new V.Map, + x = [], + D = [], + S = [], + T = [], + s = [], + c = new V.Map, + l = [], + t = Y(m.range) ? 1 === m.range.length && V.isExpressionStatement(m.range[0]) ? m.range[0].expression : void 0 : m.range; + void 0 === t ? (d = m.range, p = V.first(d).getStart(), d = V.last(d).end, e = V.createFileDiagnostic(v, p, d - p, M.expressionExpected)) : 147456 & b.getTypeAtLocation(t).flags && (e = V.createDiagnosticForNode(t, M.uselessConstantType)); + for (var r = 0, n = y; r < n.length; r++) { + var u = n[r], + _ = (x.push({ + usages: new V.Map, + typeParameterUsages: new V.Map, + substitutions: new V.Map + }), D.push(new V.Map), S.push([]), []); + e && _.push(e), V.isClassLike(u) && V.isInJSFile(u) && _.push(V.createDiagnosticForNode(u, M.cannotExtractToJSClass)), V.isArrowFunction(u) && !V.isBlock(u.body) && _.push(V.createDiagnosticForNode(u, M.cannotExtractToExpressionArrowFunction)), T.push(_) + } + var C = new V.Map, + d = Y(m.range) ? V.factory.createBlock(m.range) : m.range, + p = Y(m.range) ? V.first(m.range) : m.range, + f = function(e) { + return !!V.findAncestor(e, function(e) { + return V.isDeclarationWithTypeParameters(e) && 0 !== V.getEffectiveTypeParameterDeclarations(e).length + }) + }(p); + (function e(t, r) { + void 0 === r && (r = 1); + f && w(b.getTypeAtLocation(t)); + V.isDeclaration(t) && t.symbol && s.push(t); + V.isAssignmentExpression(t) ? (e(t.left, 2), e(t.right)) : V.isUnaryExpressionWithWrite(t) ? e(t.operand, 2) : !V.isPropertyAccessExpression(t) && !V.isElementAccessExpression(t) && V.isIdentifier(t) ? !t.parent || V.isQualifiedName(t.parent) && t !== t.parent.left || V.isPropertyAccessExpression(t.parent) && t !== t.parent.expression || I(t, r, V.isPartOfTypeNode(t)) : V.forEachChild(t, e) + })(d), !f || Y(m.range) || V.isJsxAttribute(m.range) || w(b.getContextualType(m.range)); + if (0 < o.size) { + for (var g = new V.Map, E = 0, k = p; void 0 !== k && E < y.length; k = k.parent) + if (k === y[E] && (g.forEach(function(e, t) { + x[E].typeParameterUsages.set(t, e) + }), E++), V.isDeclarationWithTypeParameters(k)) + for (var N = 0, A = V.getEffectiveTypeParameterDeclarations(k); N < A.length; N++) { + var F = A[N], + F = b.getTypeAtLocation(F); + o.has(F.id.toString()) && g.set(F.id.toString(), F) + } + V.Debug.assert(E === y.length, "Should have iterated all scopes") + } + s.length && (t = V.isBlockScope(y[0], y[0].parent) ? y[0] : V.getEnclosingBlockScopeContainer(y[0]), V.forEachChild(t, function e(t) { + if (t === m.range || Y(m.range) && 0 <= m.range.indexOf(t)) return; + var r = V.isIdentifier(t) ? O(t) : b.getSymbolAtLocation(t); { + var n, i; + r && (n = V.find(s, function(e) { + return e.symbol === r + })) && (V.isVariableDeclaration(n) ? (i = n.symbol.id.toString(), c.has(i) || (l.push(n), c.set(i, !0))) : a = a || n) + } + V.forEachChild(t, e) + })); + for (var P = 0; P < y.length; P++) ! function(e) { + var t, r, n = x[e], + i = (0 < e && (0 < n.usages.size || 0 < n.typeParameterUsages.size) && (n = Y(m.range) ? m.range[0] : m.range, T[e].push(V.createDiagnosticForNode(n, M.cannotAccessVariablesFromNestedScopes))), m.facts & q.UsesThisInFunction && V.isClassLike(y[e]) && S[e].push(V.createDiagnosticForNode(m.thisNode, M.cannotExtractFunctionsContainingThisToMethod)), !1); + x[e].usages.forEach(function(e) { + 2 === e.usage && (i = !0, 106500 & e.symbol.flags) && e.symbol.valueDeclaration && V.hasEffectiveModifier(e.symbol.valueDeclaration, 64) && (t = e.symbol.valueDeclaration) + }), V.Debug.assert(Y(m.range) || 0 === l.length, "No variable declarations expected if something was extracted"), i && !Y(m.range) ? (r = V.createDiagnosticForNode(m.range, M.cannotWriteInExpression), S[e].push(r), T[e].push(r)) : t && 0 < e ? (r = V.createDiagnosticForNode(t, M.cannotExtractReadonlyPropertyInitializerOutsideConstructor), S[e].push(r), T[e].push(r)) : a && (r = V.createDiagnosticForNode(a, M.cannotExtractExportedEntity), S[e].push(r), T[e].push(r)) + }(P); + return { + target: d, + usagesPerScope: x, + functionErrorsPerScope: S, + constantErrorsPerScope: T, + exposedVariableDeclarations: l + }; + + function w(e) { + for (var t = 0, r = b.getSymbolWalker(function() { + return i.throwIfCancellationRequested(), !0 + }).walkType(e).visitedTypes; t < r.length; t++) { + var n = r[t]; + n.isTypeParameter() && o.set(n.id.toString(), n) + } + } + + function I(e, t, r) { + var n = function(e, t, r) { + var n = O(e); + if (!n) return; + var i = V.getSymbolId(n).toString(), + a = C.get(i); + if (!(a && t <= a)) + if (C.set(i, t), a) + for (var o = 0, s = x; o < s.length; o++) { + var c = s[o]; + c.usages.get(e.text) && c.usages.set(e.text, { + usage: t, + symbol: n, + node: e + }) + } else { + a = n.getDeclarations(), a = a && V.find(a, function(e) { + return e.getSourceFile() === v + }); + if (!a) return; + if (V.rangeContainsStartEnd(h, a.getStart(), a.end)) return; + if (m.facts & q.IsGenerator && 2 === t) { + for (var l = V.createDiagnosticForNode(e, M.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators), u = 0, _ = S; u < _.length; u++) _[u].push(l); + for (var d = 0, p = T; d < p.length; d++) p[d].push(l) + } + for (var f = 0; f < y.length; f++) { + var g = y[f]; + b.resolveName(n.name, g, n.flags, !1) === n || D[f].has(i) || ((g = function e(t, r, n) { + if (!t) return; + var i = t.getDeclarations(); + if (i && i.some(function(e) { + return e.parent === r + })) return V.factory.createIdentifier(t.name); + i = e(t.parent, r, n); + if (void 0 === i) return; + return n ? V.factory.createQualifiedName(i, V.factory.createIdentifier(t.name)) : V.factory.createPropertyAccessExpression(i, t.name) + }(n.exportSymbol || n, g, r)) ? D[f].set(i, g) : r ? 262144 & n.flags || (l = V.createDiagnosticForNode(e, M.typeWillNotBeVisibleInTheNewScope), S[f].push(l), T[f].push(l)) : x[f].usages.set(e.text, { + usage: t, + symbol: n, + node: e + })) + } + } + return i + }(e, t, r); + if (n) + for (var i = 0; i < y.length; i++) { + var a = D[i].get(n); + a && x[i].substitutions.set(V.getNodeId(e).toString(), a) + } + } + + function O(e) { + return e.parent && V.isShorthandPropertyAssignment(e.parent) && e.parent.name === e ? b.getShorthandAssignmentValueSymbol(e.parent) : b.getSymbolAtLocation(e) + } + }(e, i, a, n, t.program.getTypeChecker(), t.cancellationToken) + } + } + + function Q(e, t) { + var r = e.type, + e = e.declaration, + n = t.type, + t = t.declaration; + return V.compareProperties(e, t, "pos", V.compareValues) || V.compareStringsCaseSensitive(r.symbol ? r.symbol.getName() : "", n.symbol ? n.symbol.getName() : "") || V.compareValues(r.id, n.id) + } + + function X(e, t) { + e = V.map(e, function(e) { + return V.factory.createShorthandPropertyAssignment(e.symbol.name) + }), t = V.map(t, function(e) { + return V.factory.createShorthandPropertyAssignment(e.symbol.name) + }); + return void 0 === e ? t : void 0 === t ? e : e.concat(t) + } + + function Y(e) { + return V.isArray(e) + } + + function y(e) { + var t = e.parent; + if (302 === t.kind) return !1; + switch (e.kind) { + case 10: + return 269 !== t.kind && 273 !== t.kind; + case 227: + case 203: + case 205: + return !1; + case 79: + return 205 !== t.kind && 273 !== t.kind && 278 !== t.kind + } + return !0 + } + + function Z(e) { + switch (e.kind) { + case 238: + case 308: + case 265: + case 292: + return 1; + default: + return + } + } + + function $(e) { + return h(e) || (V.isJsxElement(e) || V.isJsxSelfClosingElement(e) || V.isJsxFragment(e)) && (V.isJsxElement(e.parent) || V.isJsxFragment(e.parent)) + } + + function h(e) { + return V.isStringLiteral(e) && e.parent && V.isJsxAttribute(e.parent) + } + b = V.refactor || (V.refactor = {}), e = b.extractSymbol || (b.extractSymbol = {}), x = "Extract Symbol", D = { + name: "Extract Constant", + description: V.getLocaleSpecificMessage(V.Diagnostics.Extract_constant), + kind: "refactor.extract.constant" + }, S = { + name: "Extract Function", + description: V.getLocaleSpecificMessage(V.Diagnostics.Extract_function), + kind: "refactor.extract.function" + }, b.registerRefactor(x, { + kinds: [D.kind, S.kind], + getEditsForAction: n, + getAvailableActions: r + }), e.getRefactorActionsToExtractSymbol = r, e.getRefactorEditsToExtractSymbol = n, (t = M = e.Messages || (e.Messages = {})).cannotExtractRange = i("Cannot extract range."), t.cannotExtractImport = i("Cannot extract import statement."), t.cannotExtractSuper = i("Cannot extract super call."), t.cannotExtractJSDoc = i("Cannot extract JSDoc."), t.cannotExtractEmpty = i("Cannot extract empty range."), t.expressionExpected = i("expression expected."), t.uselessConstantType = i("No reason to extract constant of type."), t.statementOrExpressionExpected = i("Statement or expression expected."), t.cannotExtractRangeContainingConditionalBreakOrContinueStatements = i("Cannot extract range containing conditional break or continue statements."), t.cannotExtractRangeContainingConditionalReturnStatement = i("Cannot extract range containing conditional return statement."), t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange = i("Cannot extract range containing labeled break or continue with target outside of the range."), t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators = i("Cannot extract range containing writes to references located outside of the target range in generators."), t.typeWillNotBeVisibleInTheNewScope = i("Type will not visible in the new scope."), t.functionWillNotBeVisibleInTheNewScope = i("Function will not visible in the new scope."), t.cannotExtractIdentifier = i("Select more than a single identifier."), t.cannotExtractExportedEntity = i("Cannot extract exported declaration"), t.cannotWriteInExpression = i("Cannot write back side-effects when extracting an expression"), t.cannotExtractReadonlyPropertyInitializerOutsideConstructor = i("Cannot move initialization of read-only class property outside of the constructor"), t.cannotExtractAmbientBlock = i("Cannot extract code from ambient contexts"), t.cannotAccessVariablesFromNestedScopes = i("Cannot access variables from nested scopes"), t.cannotExtractToJSClass = i("Cannot extract constant to a class scope in JS"), t.cannotExtractToExpressionArrowFunction = i("Cannot extract constant to an arrow function without a block"), t.cannotExtractFunctionsContainingThisToMethod = i("Cannot extract functions containing this to method"), (t = q = q || {})[t.None = 0] = "None", t[t.HasReturn = 1] = "HasReturn", t[t.IsGenerator = 2] = "IsGenerator", t[t.IsAsyncFunction = 4] = "IsAsyncFunction", t[t.UsesThis = 8] = "UsesThis", t[t.UsesThisInFunction = 16] = "UsesThisInFunction", t[t.InStaticRegion = 32] = "InStaticRegion", e.getRangeToExtract = W + }(ts = ts || {}), ! function(x) { + var r, n, D, S, T; + + function i(e, t) { + void 0 === t && (t = !0); + var r, c, l, u, _, d, n = e.file, + i = e.startPosition, + a = x.isSourceFileJS(n), + o = x.getTokenAtPosition(n, i), + s = x.createTextRangeFromSpan(x.getRefactorContextSpan(e)), + p = s.pos === s.end && t, + i = x.findAncestor(o, function(e) { + return e.parent && x.isTypeNode(e) && !f(s, e.parent, n) && (p || x.nodeOverlapsWithStartEnd(o, n, s.pos, s.end)) + }); + return i && x.isTypeNode(i) ? (t = e.program.getTypeChecker(), e = x.Debug.checkDefined(x.findAncestor(i, x.isStatement), "Should find a statement"), c = t, u = e, _ = n, d = [], (r = function e(t) { + if (x.isTypeReferenceNode(t)) { + if (x.isIdentifier(t.typeName)) + for (var r = t.typeName, n = c.resolveName(r.text, r, 262144, !0), i = 0, a = (null == n ? void 0 : n.declarations) || x.emptyArray; i < a.length; i++) { + var o = a[i]; + if (x.isTypeParameterDeclaration(o) && o.getSourceFile() === _) { + if (o.name.escapedText === r.escapedText && f(o, l, _)) return !0; + if (f(u, o, _) && !f(l, o, _)) { + x.pushIfUnique(d, o); + break + } + } + } + } else if (x.isInferTypeNode(t)) { + var s = x.findAncestor(t, function(e) { + return x.isConditionalTypeNode(e) && f(e.extendsType, t, _) + }); + if (!s || !f(l, s, _)) return !0 + } else if (x.isTypePredicateNode(t) || x.isThisTypeNode(t)) { + s = x.findAncestor(t.parent, x.isFunctionLike); + if (s && s.type && f(s.type, t, _) && !f(l, s, _)) return !0 + } else if (x.isTypeQueryNode(t)) + if (x.isIdentifier(t.exprName)) { + if (null != (n = c.resolveName(t.exprName.text, t.exprName, 111551, !1)) && n.valueDeclaration && f(u, n.valueDeclaration, _) && !f(l, n.valueDeclaration, _)) return !0 + } else if (x.isThisIdentifier(t.exprName.left) && !f(l, t.parent, _)) return !0; + _ && x.isTupleTypeNode(t) && x.getLineAndCharacterOfPosition(_, t.pos).line === x.getLineAndCharacterOfPosition(_, t.end).line && x.setEmitFlags(t, 1); + return x.forEachChild(t, e) + }(l = i) ? void 0 : d) ? { + isJS: a, + selection: i, + firstStatement: e, + typeParameters: r, + typeElements: function e(t, r) { + if (!r) return; { + if (x.isIntersectionTypeNode(r)) { + for (var n = [], i = new x.Map, a = 0, o = r.types; a < o.length; a++) { + var s = o[a], + s = e(t, s); + if (!s || !s.every(function(e) { + return e.name && x.addToSeen(i, x.getNameFromPropertyName(e.name)) + })) return; + x.addRange(n, s) + } + return n + } + if (x.isParenthesizedTypeNode(r)) return e(t, r.type); + if (x.isTypeLiteralNode(r)) return r.members + } + return + }(t, i) + } : { + error: x.getLocaleSpecificMessage(x.Diagnostics.No_type_could_be_extracted_from_this_type_node) + }) : { + error: x.getLocaleSpecificMessage(x.Diagnostics.Selection_is_not_a_valid_type_node) + } + } + + function f(e, t, r) { + return x.rangeContainsStartEnd(e, x.skipTrivia(r.text, t.pos), t.end) + } + r = x.refactor || (x.refactor = {}), n = "Extract type", D = { + name: "Extract to type alias", + description: x.getLocaleSpecificMessage(x.Diagnostics.Extract_to_type_alias), + kind: "refactor.extract.type" + }, S = { + name: "Extract to interface", + description: x.getLocaleSpecificMessage(x.Diagnostics.Extract_to_interface), + kind: "refactor.extract.interface" + }, T = { + name: "Extract to typedef", + description: x.getLocaleSpecificMessage(x.Diagnostics.Extract_to_typedef), + kind: "refactor.extract.typedef" + }, r.registerRefactor(n, { + kinds: [D.kind, S.kind, T.kind], + getAvailableActions: function(e) { + var t = i(e, "invoked" === e.triggerReason); + return t ? r.isRefactorErrorInfo(t) ? e.preferences.provideRefactorNotApplicableReason ? [{ + name: n, + description: x.getLocaleSpecificMessage(x.Diagnostics.Extract_type), + actions: [__assign(__assign({}, T), { + notApplicableReason: t.error + }), __assign(__assign({}, D), { + notApplicableReason: t.error + }), __assign(__assign({}, S), { + notApplicableReason: t.error + })] + }] : x.emptyArray : [{ + name: n, + description: x.getLocaleSpecificMessage(x.Diagnostics.Extract_type), + actions: t.isJS ? [T] : x.append([D], t.typeElements && S) + }] : x.emptyArray + }, + getEditsForAction: function(e, y) { + var h = e.file, + v = i(e), + b = (x.Debug.assert(v && !r.isRefactorErrorInfo(v), "Expected to find a range to extract"), x.getUniqueName("NewType", h)), + e = x.textChanges.ChangeTracker.with(e, function(e) { + switch (y) { + case D.name: + return x.Debug.assert(!v.isJS, "Invalid actionName/JS combo"), u = e, _ = h, d = b, f = (p = v).firstStatement, g = p.selection, p = p.typeParameters, m = x.factory.createTypeAliasDeclaration(void 0, d, p.map(function(e) { + return x.factory.updateTypeParameterDeclaration(e, e.modifiers, e.name, e.constraint, void 0) + }), g), u.insertNodeBefore(_, f, x.ignoreSourceNewlines(m), !0), void u.replaceNode(_, g, x.factory.createTypeReferenceNode(d, p.map(function(e) { + return x.factory.createTypeReferenceNode(e.name, void 0) + })), { + leadingTriviaOption: x.textChanges.LeadingTriviaOption.Exclude, + trailingTriviaOption: x.textChanges.TrailingTriviaOption.ExcludeWhitespace + }); + case T.name: + return x.Debug.assert(v.isJS, "Invalid actionName/JS combo"), f = e, m = h, u = b, g = (_ = v).firstStatement, d = _.selection, _ = _.typeParameters, x.setEmitFlags(d, 3584), p = x.factory.createJSDocTypedefTag(x.factory.createIdentifier("typedef"), x.factory.createJSDocTypeExpression(d), x.factory.createIdentifier(u)), l = [], x.forEach(_, function(e) { + var t = x.getEffectiveConstraintOfTypeParameter(e), + e = x.factory.createTypeParameterDeclaration(void 0, e.name), + t = x.factory.createJSDocTemplateTag(x.factory.createIdentifier("template"), t && x.cast(t, x.isJSDocTypeExpression), [e]); + l.push(t) + }), f.insertNodeBefore(m, g, x.factory.createJSDocComment(void 0, x.factory.createNodeArray(x.concatenate(l, [p]))), !0), void f.replaceNode(m, d, x.factory.createTypeReferenceNode(u, _.map(function(e) { + return x.factory.createTypeReferenceNode(e.name, void 0) + }))); + case S.name: + return x.Debug.assert(!v.isJS && !!v.typeElements, "Invalid actionName/JS combo"), t = e, r = h, n = b, a = (i = v).firstStatement, o = i.selection, s = i.typeParameters, i = i.typeElements, c = x.factory.createInterfaceDeclaration(void 0, n, s, void 0, i), x.setTextRange(c, null == (i = i[0]) ? void 0 : i.parent), t.insertNodeBefore(r, a, x.ignoreSourceNewlines(c), !0), void t.replaceNode(r, o, x.factory.createTypeReferenceNode(n, s.map(function(e) { + return x.factory.createTypeReferenceNode(e.name, void 0) + })), { + leadingTriviaOption: x.textChanges.LeadingTriviaOption.Exclude, + trailingTriviaOption: x.textChanges.TrailingTriviaOption.ExcludeWhitespace + }); + default: + x.Debug.fail("Unexpected action name") + } + var t, r, n, i, a, o, s, c, l, u, _, d, p, f, g, m + }), + t = h.fileName; + return { + edits: e, + renameFilename: t, + renameLocation: x.getRenameLocation(e, t, b, !1) + } + } + }) + }(ts = ts || {}), ! function(i) { + var r, n, a, o = i.refactor || (i.refactor = {}); + o.generateGetAccessorAndSetAccessor || (o.generateGetAccessorAndSetAccessor = {}), r = "Generate 'get' and 'set' accessors", n = i.Diagnostics.Generate_get_and_set_accessors.message, a = { + name: r, + description: n, + kind: "refactor.rewrite.property.generateAccessors" + }, o.registerRefactor(r, { + kinds: [a.kind], + getEditsForAction: function(e, t) { + if (e.endPosition) { + var r, n = i.codefix.getAccessorConvertiblePropertyAtPosition(e.file, e.program, e.startPosition, e.endPosition), + t = (i.Debug.assert(n && !o.isRefactorErrorInfo(n), "Expected applicable refactor info"), i.codefix.generateAccessorFromProperty(e.file, e.program, e.startPosition, e.endPosition, e, t)); + if (t) return e = e.file.fileName, r = n.renameAccessor ? n.accessorName : n.fieldName, { + renameFilename: e, + renameLocation: (i.isIdentifier(r) ? 0 : -1) + i.getRenameLocation(t, e, r.text, i.isParameter(n.declaration)), + edits: t + } + } + }, + getAvailableActions: function(e) { + var t; + return e.endPosition && (t = i.codefix.getAccessorConvertiblePropertyAtPosition(e.file, e.program, e.startPosition, e.endPosition, "invoked" === e.triggerReason)) ? o.isRefactorErrorInfo(t) ? e.preferences.provideRefactorNotApplicableReason ? [{ + name: r, + description: n, + actions: [__assign(__assign({}, a), { + notApplicableReason: t.error + })] + }] : i.emptyArray : [{ + name: r, + description: n, + actions: [a] + }] : i.emptyArray + } + }) + }(ts = ts || {}), ! function(e) { + (e = e.refactor || (e.refactor = {})).isRefactorErrorInfo = function(e) { + return void 0 !== e.error + }, e.refactorKindBeginsWith = function(e, t) { + return !t || e.substr(0, t.length) === t + } + }(ts = ts || {}), ! function(S) { + var e = S.refactor || (S.refactor = {}), + r = "Move to a new file", + n = S.getLocaleSpecificMessage(S.Diagnostics.Move_to_a_new_file), + i = { + name: r, + description: n, + kind: "refactor.move.newFile" + }; + + function a(e) { + var n, i, a, o, e = function(e) { + var t = e.file, + r = S.createTextRangeFromSpan(S.getRefactorContextSpan(e)), + e = t.statements, + n = S.findIndex(e, function(e) { + return e.end > r.pos + }); + if (-1 !== n) { + var i = e[n]; + if (S.isNamedDeclaration(i) && i.name && S.rangeContainsRange(i.name, r)) return { + toMove: [e[n]], + afterLast: e[n + 1] + }; + if (!(r.pos > i.getStart(t))) { + i = S.findIndex(e, function(e) { + return e.end > r.end + }, n); + if (-1 === i || !(0 === i || e[i].getStart(t) < r.end)) return { + toMove: e.slice(n, -1 === i ? e.length : i), + afterLast: -1 === i ? void 0 : e[i] + } + } + } + }(e); + if (void 0 !== e) return n = [], i = [], a = e.toMove, o = e.afterLast, S.getRangesWhere(a, t, function(e, t) { + for (var r = e; r < t; r++) n.push(a[r]); + i.push({ + first: a[e], + afterLast: o + }) + }), 0 === n.length ? void 0 : { + all: n, + ranges: i + } + } + + function t(e) { + return ! function(e) { + switch (e.kind) { + case 269: + return 1; + case 268: + return !S.hasSyntacticModifier(e, 1); + case 240: + return e.declarationList.declarations.every(function(e) { + return !!e.initializer && S.isRequireCall(e.initializer, !0) + }); + default: + return + } + }(e) && !S.isPrologueDirective(e) + } + + function d(e, t, r) { + for (var n = 0, i = t; n < i.length; n++) { + var a = i[n], + o = a.first, + a = a.afterLast; + r.deleteNodeRangeExcludingEnd(e, o, a) + } + } + + function D(e) { + return 269 === e.kind ? e.moduleSpecifier : 268 === e.kind ? e.moduleReference.expression : e.initializer.arguments[0] + } + + function T(e, t) { + if (S.isImportDeclaration(e)) S.isStringLiteral(e.moduleSpecifier) && t(e); + else if (S.isImportEqualsDeclaration(e)) S.isExternalModuleReference(e.moduleReference) && S.isStringLiteralLike(e.moduleReference.expression) && t(e); + else if (S.isVariableStatement(e)) + for (var r = 0, n = e.declarationList.declarations; r < n.length; r++) { + var i = n[r]; + i.initializer && S.isRequireCall(i.initializer, !0) && t(i) + } + } + + function m(e, t, r, n, i) { + return r = S.ensurePathIsNonModuleName(r), n ? (n = t.map(function(e) { + return S.factory.createImportSpecifier(!1, void 0, S.factory.createIdentifier(e)) + }), S.makeImportIfNecessary(e, n, r, i)) : (S.Debug.assert(!e, "No default import should exist"), (n = t.map(function(e) { + return S.factory.createBindingElement(void 0, void 0, e) + })).length ? o(S.factory.createObjectBindingPattern(n), void 0, C(S.factory.createStringLiteral(r))) : void 0) + } + + function o(e, t, r, n) { + return void 0 === n && (n = 2), S.factory.createVariableStatement(void 0, S.factory.createVariableDeclarationList([S.factory.createVariableDeclaration(e, void 0, t, r)], n)) + } + + function C(e) { + return S.factory.createCallExpression(S.factory.createIdentifier("require"), void 0, [e]) + } + + function E(e, t, r, n) { + switch (t.kind) { + case 269: + var i = e, + a = t, + o = r, + s = n; + if (a.importClause) { + var c = a.importClause, + l = c.name, + c = c.namedBindings, + u = !l || s(l), + _ = !c || (271 === c.kind ? s(c.name) : 0 !== c.elements.length && c.elements.every(function(e) { + return s(e.name) + })); + if (u && _) o.delete(i, a); + else if (l && u && o.delete(i, l), c) + if (_) o.replaceNode(i, a.importClause, S.factory.updateImportClause(a.importClause, a.importClause.isTypeOnly, l, void 0)); + else if (272 === c.kind) + for (var d = 0, p = c.elements; d < p.length; d++) { + var f = p[d]; + s(f.name) && o.delete(i, f) + } + } + break; + case 268: + n(t.name) && r.delete(e, t); + break; + case 257: + var g = e, + m = t, + y = r, + h = n, + v = m.name; + switch (v.kind) { + case 79: + h(v) && (m.initializer && S.isRequireCall(m.initializer, !0) ? y.delete(g, S.isVariableDeclarationList(m.parent) && 1 === S.length(m.parent.declarations) ? m.parent.parent : m) : y.delete(g, v)); + break; + case 204: + break; + case 203: + if (v.elements.every(function(e) { + return S.isIdentifier(e.name) && h(e.name) + })) y.delete(g, S.isVariableDeclarationList(m.parent) && 1 === m.parent.declarations.length ? m.parent.parent : m); + else + for (var b = 0, x = v.elements; b < x.length; b++) { + var D = x[b]; + S.isIdentifier(D.name) && h(D.name) && y.delete(g, D.name) + } + } + break; + default: + S.Debug.assertNever(t, "Unexpected import decl kind ".concat(t.kind)) + } + } + + function y(e) { + switch (e.kind) { + case 268: + case 273: + case 270: + case 271: + return !0; + case 257: + return s(e); + case 205: + return S.isVariableDeclaration(e.parent.parent) && s(e.parent.parent); + default: + return !1 + } + } + + function s(e) { + return S.isSourceFile(e.parent.parent.parent) && !!e.initializer && S.isRequireCall(e.initializer, !0) + } + + function k(e, t, r) { + switch (e.kind) { + case 269: + var n = e.importClause; + return n ? (i = n.name && r(n.name) ? n.name : void 0, n = n.namedBindings && (n = n.namedBindings, a = r, 271 === n.kind ? a(n.name) ? n : void 0 : (n = n.elements.filter(function(e) { + return a(e.name) + })).length ? S.factory.createNamedImports(n) : void 0), i || n ? S.factory.createImportDeclaration(void 0, S.factory.createImportClause(!1, i, n), t, void 0) : void 0) : void 0; + case 268: + return r(e.name) ? e : void 0; + case 257: + var i = function(e, t) { + switch (e.kind) { + case 79: + return t(e) ? e : void 0; + case 204: + return e; + case 203: + var r = e.elements.filter(function(e) { + return e.propertyName || !S.isIdentifier(e.name) || t(e.name) + }); + return r.length ? S.factory.createObjectBindingPattern(r) : void 0 + } + }(e.name, r); + return i ? o(i, e.type, C(t), e.parent.flags) : void 0; + default: + return S.Debug.assertNever(e, "Unexpected import kind ".concat(e.kind)) + } + var a + } + + function h(e, n, i) { + e.forEachChild(function e(t) { + var r; + S.isIdentifier(t) && !S.isDeclarationName(t) ? (r = n.getSymbolAtLocation(t)) && i(r) : t.forEachChild(e) + }) + } + e.registerRefactor(r, { + kinds: [i.kind], + getAvailableActions: function(e) { + var t = a(e); + return e.preferences.allowTextChangesInNewFiles && t ? [{ + name: r, + description: n, + actions: [i] + }] : e.preferences.provideRefactorNotApplicableReason ? [{ + name: r, + description: n, + actions: [__assign(__assign({}, i), { + notApplicableReason: S.getLocaleSpecificMessage(S.Diagnostics.Selection_is_not_a_valid_statement_or_statements) + })] + }] : S.emptyArray + }, + getEditsForAction: function(u, e) { + S.Debug.assert(e === r, "Wrong refactor invoked"); + var _ = S.Debug.checkDefined(a(u)); + return { + edits: S.textChanges.ChangeTracker.with(u, function(e) { + t = u.file, r = u.program, s = _, e = e, n = u.host, l = u.preferences, o = r.getTypeChecker(), o = function(i, e, r) { + var a = new v, + o = new v, + s = new v, + t = function(e) { + if (void 0 === e) return; + var t = r.getJsxNamespace(e), + t = r.resolveName(t, e, 1920, !0); + return t && S.some(t.declarations, y) ? t : void 0 + }(S.find(e, function(e) { + return !!(2 & e.transformFlags) + })); + t && o.add(t); + for (var n = 0, c = e; n < c.length; n++) x(g = c[n], function(e) { + a.add(S.Debug.checkDefined(S.isExpressionStatement(e) ? r.getSymbolAtLocation(e.expression.left) : e.symbol, "Need a symbol here")) + }); + for (var l = 0, u = e; l < u.length; l++) h(g = u[l], r, function(e) { + if (e.declarations) + for (var t = 0, r = e.declarations; t < r.length; t++) { + var n = r[t]; + y(n) ? o.add(e) : b(n) && (n = n, (S.isVariableDeclaration(n) ? n.parent.parent : n).parent === i) && !a.has(e) && s.add(e) + } + }); + for (var _ = o.clone(), d = new v, p = 0, f = i.statements; p < f.length; p++) { + var g = f[p]; + S.contains(e, g) || (t && 2 & g.transformFlags && _.delete(t), h(g, r, function(e) { + a.has(e) && d.add(e), _.delete(e) + })) + } + return { + movedSymbols: a, + newFileImportsFromOldFile: s, + oldFileImportsFromNewFile: d, + oldImportsNeededByNewFile: o, + unusedImportsFromOldFile: _ + } + }(t, s.all, o), a = S.getDirectoryPath(t.fileName), i = S.extensionFromPath(t.fileName), c = function(e, t, r, n) { + for (var i = e, a = 1;; a++) { + var o = S.combinePaths(r, i + t); + if (!n.fileExists(o)) return i; + i = "".concat(e, ".").concat(a) + } + }(function(e, t) { + return e.forEachEntry(S.symbolNameNoDefault) || t.forEachEntry(S.symbolNameNoDefault) || "newFile" + }(o.oldFileImportsFromNewFile, o.movedSymbols), i, a, n), i = c + i, e.createNewFile(t, S.combinePaths(a, i), function(e, t, r, n, i, a, o) { + var s = i.getTypeChecker(), + c = S.takeWhile(e.statements, S.isPrologueDirective); + if (void 0 === e.externalModuleIndicator && void 0 === e.commonJsModuleIndicator && 0 === t.oldImportsNeededByNewFile.size()) return d(e, n.ranges, r), __spreadArray(__spreadArray([], c, !0), n.all, !0); + var l = !!e.externalModuleIndicator, + o = S.getQuotePreference(e, o), + u = function(e, t, r, n) { + var i, a = []; + return e.forEach(function(e) { + "default" === e.escapedName ? i = S.factory.createIdentifier(S.symbolNameNoDefault(e)) : a.push(e.name) + }), m(i, a, t, r, n) + }(t.oldFileImportsFromNewFile, a, l, o); + u && S.insertImports(r, e, u, !0); + (function(t, e, r, n, i) { + for (var a = 0, o = t.statements; a < o.length; a++) { + var s = o[a]; + S.contains(e, s) || T(s, function(e) { + E(t, e, r, function(e) { + return n.has(i.getSymbolAtLocation(e)) + }) + }) + } + })(e, n.all, r, t.unusedImportsFromOldFile, s), d(e, n.ranges, r), + function(y, e, h, v, b) { + for (var x = e.getTypeChecker(), t = function(m) { + if (m === h) return "continue"; + for (var e = function(g) { + T(g, function(e) { + if (x.getSymbolAtLocation(D(e)) === h.symbol) { + var t = function(e) { + e = S.isBindingElement(e.parent) ? S.getPropertySymbolFromBindingElement(x, e.parent) : S.skipAlias(x.getSymbolAtLocation(e), x); + return !!e && v.has(e) + }, + r = (E(m, e, y, t), S.combinePaths(S.getDirectoryPath(D(e).text), b)), + t = k(e, S.factory.createStringLiteral(r), t), + t = (t && y.insertNodeAfter(m, g, t), function(e) { + switch (e.kind) { + case 269: + return e.importClause && e.importClause.namedBindings && 271 === e.importClause.namedBindings.kind ? e.importClause.namedBindings.name : void 0; + case 268: + return e.name; + case 257: + return S.tryCast(e.name, S.isIdentifier); + default: + return S.Debug.assertNever(e, "Unexpected node kind ".concat(e.kind)) + } + }(e)); + if (t) { + var n = y, + i = m, + a = x, + o = v, + s = b, + c = S.codefix.moduleSpecifierToValidIdentifier(s, 99), + l = !1, + u = []; + if (S.FindAllReferences.Core.eachSymbolReferenceInFile(t, a, i, function(e) { + S.isPropertyAccessExpression(e.parent) && (l = l || !!a.resolveName(c, e, 67108863, !0), o.has(a.getSymbolAtLocation(e.parent.name))) && u.push(e) + }), u.length) { + for (var _ = l ? S.getUniqueName(c, i) : c, d = 0, p = u; d < p.length; d++) { + var f = p[d]; + n.replaceNode(i, f, S.factory.createIdentifier(_)) + } + n.insertNodeAfter(i, e, function(e, t, r) { + var n = S.factory.createIdentifier(t), + i = S.factory.createStringLiteral(r); + switch (e.kind) { + case 269: + return S.factory.createImportDeclaration(void 0, S.factory.createImportClause(!1, void 0, S.factory.createNamespaceImport(n)), i, void 0); + case 268: + return S.factory.createImportEqualsDeclaration(void 0, !1, n, S.factory.createExternalModuleReference(i)); + case 257: + return S.factory.createVariableDeclaration(n, void 0, void 0, C(i)); + default: + return S.Debug.assertNever(e, "Unexpected node kind ".concat(e.kind)) + } + }(e, s, r)) + } + } + } + }) + }, t = 0, r = m.statements; t < r.length; t++) e(r[t]) + }, r = 0, n = e.getSourceFiles(); r < n.length; r++) { + var i = n[r]; + t(i) + } + }(r, i, e, t.movedSymbols, a); + u = function(u, t, e, _, r, d, n) { + for (var p, i = [], a = 0, o = u.statements; a < o.length; a++) T(o[a], function(e) { + S.append(i, k(e, D(e), function(e) { + return t.has(r.getSymbolAtLocation(e)) + })) + }); + var f = [], + g = S.nodeSeenTracker(); + return e.forEach(function(e) { + if (e.declarations) + for (var t, r, n, i, a = 0, o = e.declarations; a < o.length; a++) { + var s, c, l = o[a]; + b(l) && (s = l, s = S.isExpressionStatement(s) ? S.tryCast(s.expression.left.name, S.isIdentifier) : S.tryCast(s.name, S.isIdentifier)) && (c = function e(t) { + switch (t.kind) { + case 257: + return t.parent.parent; + case 205: + return e(S.cast(t.parent.parent, function(e) { + return S.isVariableDeclaration(e) || S.isBindingElement(e) + })); + default: + return t + } + }(l), g(c) && (n = _, N(t = u, c = c, i = d, r = s) || (i ? S.isExpressionStatement(c) || n.insertExportModifier(t, c) : 0 !== (r = A(c)).length && n.insertNodesAfter(t, c, r.map(F)))), S.hasSyntacticModifier(l, 1024) ? p = s : f.push(s.text)) + } + }), S.append(i, m(p, f, S.removeFileExtension(S.getBaseFileName(u.fileName)), d, n)), i + }(e, t.oldImportsNeededByNewFile, t.newFileImportsFromOldFile, r, s, l, o), i = function(r, e, n, i) { + return S.flatMap(e, function(e) { + if (t = e, S.Debug.assert(S.isSourceFile(t.parent), "Node parent should be a SourceFile"), (p(t) || S.isVariableStatement(t)) && !N(r, e, i) && x(e, function(e) { + return n.has(S.Debug.checkDefined(e.symbol)) + })) { + t = e; + t = i ? [function(e) { + var t = S.canHaveModifiers(e) ? S.concatenate([S.factory.createModifier(93)], S.getModifiers(e)) : void 0; + switch (e.kind) { + case 259: + return S.factory.updateFunctionDeclaration(e, t, e.asteriskToken, e.name, e.typeParameters, e.parameters, e.type, e.body); + case 260: + var r = S.canHaveDecorators(e) ? S.getDecorators(e) : void 0; + return S.factory.updateClassDeclaration(e, S.concatenate(r, t), e.name, e.typeParameters, e.heritageClauses, e.members); + case 240: + return S.factory.updateVariableStatement(e, t, e.declarationList); + case 264: + return S.factory.updateModuleDeclaration(e, t, e.name, e.body); + case 263: + return S.factory.updateEnumDeclaration(e, t, e.name, e.members); + case 262: + return S.factory.updateTypeAliasDeclaration(e, t, e.name, e.typeParameters, e.type); + case 261: + return S.factory.updateInterfaceDeclaration(e, t, e.name, e.typeParameters, e.heritageClauses, e.members); + case 268: + return S.factory.updateImportEqualsDeclaration(e, t, e.isTypeOnly, e.name, e.moduleReference); + case 241: + return S.Debug.fail(); + default: + return S.Debug.assertNever(e, "Unexpected declaration kind ".concat(e.kind)) + } + }(t)] : function(e) { + return __spreadArray([e], A(e).map(F), !0) + }(t); + if (t) return t + } + var t; + return e + }) + }(e, n.all, t.oldFileImportsFromNewFile, l); + if (u.length && i.length) return __spreadArray(__spreadArray(__spreadArray(__spreadArray([], c, !0), u, !0), [4], !1), i, !0); + return __spreadArray(__spreadArray(__spreadArray([], c, !0), u, !0), i, !0) + }(t, o, e, s, r, c, l)); + var t, r, n, i, a = r, + o = e, + s = t.fileName, + c = i, + l = S.hostGetCanonicalFileName(n); + (a = a.getCompilerOptions().configFile) && (s = S.normalizePath(S.combinePaths(s, "..", c)), c = S.getRelativePathFromFile(a.fileName, s, l), s = a.statements[0] && S.tryCast(a.statements[0].expression, S.isObjectLiteralExpression), l = s && S.find(s.properties, function(e) { + return S.isPropertyAssignment(e) && S.isStringLiteral(e.name) && "files" === e.name.text + })) && S.isArrayLiteralExpression(l.initializer) && o.insertNodeInListAfter(a, S.last(l.initializer.elements), S.factory.createStringLiteral(c), l.initializer.elements) + }), + renameFilename: void 0, + renameLocation: void 0 + } + } + }), c.prototype.add = function(e) { + this.map.set(String(S.getSymbolId(e)), e) + }, c.prototype.has = function(e) { + return this.map.has(String(S.getSymbolId(e))) + }, c.prototype.delete = function(e) { + this.map.delete(String(S.getSymbolId(e))) + }, c.prototype.forEach = function(e) { + this.map.forEach(e) + }, c.prototype.forEachEntry = function(e) { + return S.forEachEntry(this.map, e) + }, c.prototype.clone = function() { + var e = new c; + return S.copyEntries(this.map, e.map), e + }, c.prototype.size = function() { + return this.map.size + }; + var v = c; + + function c() { + this.map = new S.Map + } + + function b(e) { + return p(e) && S.isSourceFile(e.parent) || S.isVariableDeclaration(e) && S.isSourceFile(e.parent.parent.parent) + } + + function p(e) { + switch (e.kind) { + case 259: + case 260: + case 264: + case 263: + case 262: + case 261: + case 268: + return !0; + default: + return !1 + } + } + + function x(e, t) { + switch (e.kind) { + case 259: + case 260: + case 264: + case 263: + case 262: + case 261: + case 268: + return t(e); + case 240: + return S.firstDefined(e.declarationList.declarations, function(e) { + return function t(e, r) { + switch (e.kind) { + case 79: + return r(S.cast(e.parent, function(e) { + return S.isVariableDeclaration(e) || S.isBindingElement(e) + })); + case 204: + case 203: + return S.firstDefined(e.elements, function(e) { + return S.isOmittedExpression(e) ? void 0 : t(e.name, r) + }); + default: + return S.Debug.assertNever(e, "Unexpected name kind ".concat(e.kind)) + } + }(e.name, t) + }); + case 241: + var r = e.expression; + return S.isBinaryExpression(r) && 1 === S.getAssignmentDeclarationKind(r) && t(e) + } + } + + function N(t, e, r, n) { + return r ? !S.isExpressionStatement(e) && S.hasSyntacticModifier(e, 1) || n && null != (r = t.symbol.exports) && r.has(n.escapedText) : t.symbol && t.symbol.exports && A(e).some(function(e) { + return t.symbol.exports.has(S.escapeLeadingUnderscores(e)) + }) + } + + function A(e) { + switch (e.kind) { + case 259: + case 260: + return [e.name.text]; + case 240: + return S.mapDefined(e.declarationList.declarations, function(e) { + return S.isIdentifier(e.name) ? e.name.text : void 0 + }); + case 264: + case 263: + case 262: + case 261: + case 268: + return S.emptyArray; + case 241: + return S.Debug.fail("Can't export an ExpressionStatement"); + default: + return S.Debug.assertNever(e, "Unexpected decl kind ".concat(e.kind)) + } + } + + function F(e) { + return S.factory.createExpressionStatement(S.factory.createBinaryExpression(S.factory.createPropertyAccessExpression(S.factory.createIdentifier("exports"), S.factory.createIdentifier(e)), 63, S.factory.createIdentifier(e))) + } + }(ts = ts || {}), ! function(c) { + var l, i, a, u, _; + + function d(e, t, r, n) { + void 0 === r && (r = !0); + e = c.getTokenAtPosition(e, t), t = c.getContainingFunction(e); + if (!t) return { + error: c.getLocaleSpecificMessage(c.Diagnostics.Could_not_find_a_containing_arrow_function) + }; + if (!c.isArrowFunction(t)) return { + error: c.getLocaleSpecificMessage(c.Diagnostics.Containing_function_is_not_an_arrow_function) + }; + if (c.rangeContainsRange(t, e) && (!c.rangeContainsRange(t.body, e) || r)) { + if (l.refactorKindBeginsWith(u.kind, n) && c.isExpression(t.body)) return { + func: t, + addBraces: !0, + expression: t.body + }; + if (l.refactorKindBeginsWith(_.kind, n) && c.isBlock(t.body) && 1 === t.body.statements.length) { + e = c.first(t.body.statements); + if (c.isReturnStatement(e)) return { + func: t, + addBraces: !1, + expression: e.expression, + returnStatement: e + } + } + } + }(l = c.refactor || (c.refactor = {})).addOrRemoveBracesToArrowFunction || (l.addOrRemoveBracesToArrowFunction = {}), i = "Add or remove braces in an arrow function", a = c.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message, u = { + name: "Add braces to arrow function", + description: c.Diagnostics.Add_braces_to_arrow_function.message, + kind: "refactor.rewrite.arrow.braces.add" + }, _ = { + name: "Remove braces from arrow function", + description: c.Diagnostics.Remove_braces_from_arrow_function.message, + kind: "refactor.rewrite.arrow.braces.remove" + }, l.registerRefactor(i, { + kinds: [_.kind], + getEditsForAction: function(e, t) { + var r, n = e.file, + i = e.startPosition, + i = d(n, i), + a = (c.Debug.assert(i && !l.isRefactorErrorInfo(i), "Expected applicable refactor info"), i.expression), + o = i.returnStatement, + s = i.func; + t === u.name ? (i = c.factory.createReturnStatement(a), r = c.factory.createBlock([i], !0), c.copyLeadingComments(a, i, n, 3, !0)) : t === _.name && o ? (i = a || c.factory.createVoidZero(), r = c.needsParentheses(i) ? c.factory.createParenthesizedExpression(i) : i, c.copyTrailingAsLeadingComments(o, r, n, 3, !1), c.copyLeadingComments(o, r, n, 3, !1), c.copyTrailingComments(o, r, n, 3, !1)) : c.Debug.fail("invalid action"); + t = c.textChanges.ChangeTracker.with(e, function(e) { + e.replaceNode(n, s.body, r) + }); + return { + renameFilename: void 0, + renameLocation: void 0, + edits: t + } + }, + getAvailableActions: function(e) { + var t = e.file, + r = e.startPosition, + n = e.triggerReason, + t = d(t, r, "invoked" === n); + if (t) { + if (!l.isRefactorErrorInfo(t)) return [{ + name: i, + description: a, + actions: [t.addBraces ? u : _] + }]; + if (e.preferences.provideRefactorNotApplicableReason) return [{ + name: i, + description: a, + actions: [__assign(__assign({}, u), { + notApplicableReason: t.error + }), __assign(__assign({}, _), { + notApplicableReason: t.error + })] + }] + } + return c.emptyArray + } + }) + }(ts = ts || {}), ! function(h) { + var e, n, i, a, o; + + function v(e, t) { + e = h.getContainingObjectLiteralElement(e); + if (e) { + t = t.getContextualTypeForObjectLiteralElement(e), e = null == t ? void 0 : t.getSymbol(); + if (e && !(6 & h.getCheckFlags(e))) return e + } + } + + function b(e) { + e = e.node; + return h.isImportSpecifier(e.parent) || h.isImportClause(e.parent) || h.isImportEqualsDeclaration(e.parent) || h.isNamespaceImport(e.parent) || h.isExportSpecifier(e.parent) || h.isExportAssignment(e.parent) ? e : void 0 + } + + function x(e) { + if (h.isDeclaration(e.node.parent)) return e.node + } + + function D(e) { + if (e.node.parent) { + var t = e.node, + r = t.parent; + switch (r.kind) { + case 210: + case 211: + var n = h.tryCast(r, h.isCallOrNewExpression); + if (n && n.expression === t) return n; + break; + case 208: + n = h.tryCast(r, h.isPropertyAccessExpression); + if (n && n.parent && n.name === t) { + var i = h.tryCast(n.parent, h.isCallOrNewExpression); + if (i && i.expression === n) return i + } + break; + case 209: + n = h.tryCast(r, h.isElementAccessExpression); + if (n && n.parent && n.argumentExpression === t) { + i = h.tryCast(n.parent, h.isCallOrNewExpression); + if (i && i.expression === n) return i + } + } + } + } + + function s(e, t, r) { + e = h.getTouchingToken(e, t), t = h.getContainingFunctionDeclaration(e); + return function(e) { + e = h.findAncestor(e, h.isJSDocNode); + if (e) return (e = h.findAncestor(e, function(e) { + return !h.isJSDocNode(e) + })) && h.isFunctionLikeDeclaration(e); + return + }(e) || !(t && function(e, t) { + var r; + if (function(e, n) { + return function(e) { + if (_(e)) return e.length - 1; + return e.length + }(e) >= i && h.every(e, function(e) { + var t = n; + if (h.isRestParameter(e)) { + var r = t.getTypeAtLocation(e); + if (!t.isArrayType(r) && !t.isTupleType(r)) return !1 + } + return !e.modifiers && h.isIdentifier(e.name) + }) + }(e.parameters, t)) switch (e.kind) { + case 259: + return l(e) && c(e, t); + case 171: + return h.isObjectLiteralExpression(e.parent) ? (r = v(e.name, t), 1 === (null == (r = null == r ? void 0 : r.declarations) ? void 0 : r.length) && c(e, t)) : c(e, t); + case 173: + return h.isClassDeclaration(e.parent) ? l(e.parent) && c(e, t) : u(e.parent.parent) && c(e, t); + case 215: + case 216: + return u(e.parent) + } + return + }(t, r) && h.rangeContainsRange(t, e)) || t.body && h.rangeContainsRange(t.body, e) ? void 0 : t + } + + function c(e, t) { + return !!e.body && !t.isImplementationOfOverload(e) + } + + function l(e) { + return !!e.name || !!h.findModifier(e, 88) + } + + function u(e) { + return h.isVariableDeclaration(e) && h.isVarConst(e) && h.isIdentifier(e.name) && !e.type + } + + function _(e) { + return 0 < e.length && h.isThis(e[0].name) + } + + function S(e) { + return e = _(e) ? h.factory.createNodeArray(e.slice(1), e.hasTrailingComma) : e + } + + function T(e, i, a) { + var t, o = i.getTypeChecker(), + r = S(e.parameters), + n = h.map(r, function(e) { + var t = h.factory.createBindingElement(void 0, void 0, C(e), h.isRestParameter(e) && l(e) ? h.factory.createArrayLiteralExpression() : e.initializer); + h.suppressLeadingAndTrailingTrivia(t), e.initializer && t.initializer && h.copyComments(e.initializer, t.initializer); + return t + }), + n = h.factory.createObjectBindingPattern(n), + s = function(e) { + e = h.map(e, c); + return h.addEmitFlags(h.factory.createTypeLiteralNode(e), 1) + }(r), + r = (h.every(r, l) && (t = h.factory.createObjectLiteralExpression()), h.factory.createParameterDeclaration(void 0, void 0, n, void 0, s, t)); + return _(e.parameters) ? (n = e.parameters[0], s = h.factory.createParameterDeclaration(void 0, void 0, n.name, void 0, n.type), h.suppressLeadingAndTrailingTrivia(s.name), h.copyComments(n.name, s.name), n.type && (h.suppressLeadingAndTrailingTrivia(s.type), h.copyComments(n.type, s.type)), h.factory.createNodeArray([s, r])) : h.factory.createNodeArray([r]); + + function c(e) { + var t, r = e.type, + n = (r || !e.initializer && !h.isRestParameter(e) || (t = e, n = o.getTypeAtLocation(t), r = h.getTypeNodeIfAccessible(n, t, i, a)), h.factory.createPropertySignature(void 0, C(e), l(e) ? h.factory.createToken(57) : e.questionToken, r)); + return h.suppressLeadingAndTrailingTrivia(n), h.copyComments(e.name, n.name), e.type && n.type && h.copyComments(e.type, n.type), n + } + + function l(e) { + var t; + return h.isRestParameter(e) ? (t = o.getTypeAtLocation(e), !o.isTupleType(t)) : o.isOptionalParameter(e) + } + } + + function C(e) { + return h.getTextOfIdentifierOrLiteral(e.name) + }(e = h.refactor || (h.refactor = {})).convertParamsToDestructuredObject || (e.convertParamsToDestructuredObject = {}), n = "Convert parameters to destructured object", i = 1, a = h.getLocaleSpecificMessage(h.Diagnostics.Convert_parameters_to_destructured_object), o = { + name: n, + description: a, + kind: "refactor.rewrite.parameters.toDestructured" + }, e.registerRefactor(n, { + kinds: [o.kind], + getEditsForAction: function(e, t) { + h.Debug.assert(t === n, "Unexpected action name"); + var p = e.file, + t = e.startPosition, + f = e.program, + r = e.cancellationToken, + g = e.host, + m = s(p, t, f.getTypeChecker()); + if (!m || !r) return; + var y = function(p, t, r) { + var f = function(e) { + switch (e.kind) { + case 259: + return e.name ? [e.name] : [h.Debug.checkDefined(h.findModifier(e, 88), "Nameless function declaration should be a default export")]; + case 171: + return [e.name]; + case 173: + var t = h.Debug.checkDefined(h.findChildOfKind(e, 135, e.getSourceFile()), "Constructor declaration should have constructor keyword"); + return 228 === e.parent.kind ? [e.parent.parent.name, t] : [t]; + case 216: + return [e.parent.name]; + case 215: + return e.name ? [e.name, e.parent.name] : [e.parent.name]; + default: + return h.Debug.assertNever(e, "Unexpected function declaration kind ".concat(e.kind)) + } + }(p), + g = h.isConstructorDeclaration(p) ? function(e) { + switch (e.parent.kind) { + case 260: + var t = e.parent; + return t.name ? [t.name] : [h.Debug.checkDefined(h.findModifier(t, 88), "Nameless class declaration should be a default export")]; + case 228: + var t = e.parent, + r = e.parent.parent, + t = t.name; + return t ? [t, r.name] : [r.name] + } + }(p) : [], + n = h.deduplicate(__spreadArray(__spreadArray([], f, !0), g, !0), h.equateValues), + m = t.getTypeChecker(), + e = function(e) { + for (var t = { + accessExpressions: [], + typeUsages: [] + }, r = { + functionCalls: [], + declarations: [], + classReferences: t, + valid: !0 + }, n = h.map(f, y), i = h.map(g, y), a = h.isConstructorDeclaration(p), o = h.map(f, function(e) { + return v(e, m) + }), s = 0, c = e; s < c.length; s++) { + var l = c[s]; + if (0 === l.kind); + else { + if (h.contains(o, y(l.node))) { + if (function(e) { + return h.isMethodSignature(e) && (h.isInterfaceDeclaration(e.parent) || h.isTypeLiteralNode(e.parent)) + }(l.node.parent)) { + r.signature = l.node.parent; + continue + } + if (u = D(l)) { + r.functionCalls.push(u); + continue + } + } + var u, _, d = v(l.node, m); + if (d && h.contains(o, d)) + if (_ = x(l)) { + r.declarations.push(_); + continue + } + if (h.contains(n, y(l.node)) || h.isNewExpressionTarget(l.node)) { + if (b(l)) continue; + if (_ = x(l)) { + r.declarations.push(_); + continue + } + if (u = D(l)) { + r.functionCalls.push(u); + continue + } + } + if (a && h.contains(i, y(l.node))) { + if (b(l)) continue; + if (_ = x(l)) { + r.declarations.push(_); + continue + } + d = function(e) { + if (e.node.parent) { + var t = e.node, + r = t.parent; + switch (r.kind) { + case 208: + var n = h.tryCast(r, h.isPropertyAccessExpression); + if (n && n.expression === t) return n; + break; + case 209: + n = h.tryCast(r, h.isElementAccessExpression); + if (n && n.expression === t) return n + } + } + return + }(l); + if (d) { + t.accessExpressions.push(d); + continue + } + if (h.isClassDeclaration(p.parent)) { + d = function(e) { + e = e.node; + if (2 === h.getMeaningFromLocation(e) || h.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)) return e; + return + }(l); + if (d) { + t.typeUsages.push(d); + continue + } + } + } + } + r.valid = !1 + } + return r + }(h.flatMap(n, function(e) { + return h.FindAllReferences.getReferenceEntriesForNode(-1, e, t, t.getSourceFiles(), r) + })); + h.every(e.declarations, function(e) { + return h.contains(n, e) + }) || (e.valid = !1); + return e; + + function y(e) { + e = m.getSymbolAtLocation(e); + return e && h.getSymbolTarget(e, m) + } + }(m, f, r); + if (y.valid) return { + renameFilename: void 0, + renameLocation: void 0, + edits: h.textChanges.ChangeTracker.with(e, function(e) { + var r = p, + t = f, + n = g, + i = e, + a = m, + e = y, + o = e.signature, + s = h.map(T(a, t, n), function(e) { + return h.getSynthesizedDeepClone(e) + }); + o && (t = h.map(T(o, t, n), function(e) { + return h.getSynthesizedDeepClone(e) + }), d(o, t)), d(a, s); + for (var n = h.sortAndDeduplicate(e.functionCalls, function(e, t) { + return h.compareValues(e.pos, t.pos) + }), c = 0, l = n; c < l.length; c++) { + var u, _ = l[c]; + _.arguments && _.arguments.length && (u = h.getSynthesizedDeepClone(function(e, t) { + var r = S(e.parameters), + e = h.isRestParameter(h.last(r)), + n = e ? t.slice(0, r.length - 1) : t, + n = h.map(n, function(e, t) { + t = function(e, t) { + if (h.isIdentifier(t) && h.getTextOfIdentifierOrLiteral(t) === e) return h.factory.createShorthandPropertyAssignment(e); + return h.factory.createPropertyAssignment(e, t) + }(C(r[t]), e); + return h.suppressLeadingAndTrailingTrivia(t.name), h.isPropertyAssignment(t) && h.suppressLeadingAndTrailingTrivia(t.initializer), h.copyComments(e, t), t + }); + e && t.length >= r.length && (e = t.slice(r.length - 1), t = h.factory.createPropertyAssignment(C(h.last(r)), h.factory.createArrayLiteralExpression(e)), n.push(t)); + return h.factory.createObjectLiteralExpression(n, !1) + }(a, _.arguments), !0), i.replaceNodeRange(h.getSourceFileOfNode(_), h.first(_.arguments), h.last(_.arguments), u, { + leadingTriviaOption: h.textChanges.LeadingTriviaOption.IncludeAll, + trailingTriviaOption: h.textChanges.TrailingTriviaOption.Include + })) + } + + function d(e, t) { + i.replaceNodeRangeWithNodes(r, h.first(e.parameters), h.last(e.parameters), t, { + joiner: ", ", + indentation: 0, + leadingTriviaOption: h.textChanges.LeadingTriviaOption.IncludeAll, + trailingTriviaOption: h.textChanges.TrailingTriviaOption.Include + }) + } + }) + }; + return { + edits: [] + } + }, + getAvailableActions: function(e) { + var t = e.file, + r = e.startPosition; + return !h.isSourceFileJS(t) && s(t, r, e.program.getTypeChecker()) ? [{ + name: n, + description: a, + actions: [o] + }] : h.emptyArray + } + }) + }(ts = ts || {}), ! function(d) { + var e, n, i, a; + + function o(e, t) { + e = d.getTokenAtPosition(e, t), t = s(e); + return !c(t).isValidConcatenation && d.isParenthesizedExpression(t.parent) && d.isBinaryExpression(t.parent.parent) ? t.parent.parent : e + } + + function s(e) { + return d.findAncestor(e.parent, function(e) { + switch (e.kind) { + case 208: + case 209: + return !1; + case 225: + case 223: + return !(d.isBinaryExpression(e.parent) && 63 !== e.parent.operatorToken.kind); + default: + return "quit" + } + }) || e + } + + function c(e) { + function a(e) { + var t, r, n, i; + return d.isBinaryExpression(e) ? (t = (i = a(e.left)).nodes, r = i.operators, n = i.hasString, i = i.validOperators, n || d.isStringLiteral(e.right) || d.isTemplateExpression(e.right) ? (n = 39 === e.operatorToken.kind, i = i && n, t.push(e.right), r.push(e.operatorToken), { + nodes: t, + operators: r, + hasString: !0, + validOperators: i + }) : { + nodes: [e], + operators: [], + hasString: !1, + validOperators: !0 + }) : { + nodes: [e], + operators: [], + validOperators: !0, + hasString: d.isStringLiteral(e) || d.isNoSubstitutionTemplateLiteral(e) + } + } + var e = a(e), + t = e.nodes, + r = e.operators, + n = e.validOperators, + e = e.hasString; + return { + nodes: t, + operators: r, + isValidConcatenation: n && e + } + } + + function p(r, n) { + return function(e, t) { + e < r.length && d.copyTrailingComments(r[e], t, n, 3, !1) + } + } + + function f(n, i, a) { + return function(e, t) { + for (; 0 < e.length;) { + var r = e.shift(); + d.copyTrailingComments(n[r], t, i, 3, !1), a(r, t) + } + } + } + + function g(e) { + var t = d.isTemplateHead(e) || d.isTemplateMiddle(e) ? -2 : -1; + return d.getTextOfNode(e).slice(1, t) + } + + function m(e, t) { + for (var r = [], n = "", i = ""; e < t.length;) { + var a = t[e]; + if (!d.isStringLiteralLike(a)) { + if (d.isTemplateExpression(a)) { + n += a.head.text, i += g(a.head); + break + } + break + } + n += a.text, i += d.getTextOfNode(a).slice(1, -1).replace(/\\.|[$`]/g, function(e) { + return "\\" === e[0] ? e : "\\" + e + }), r.push(e), e++ + } + return [e, n, i, r] + } + + function y(e) { + var t = e.getSourceFile(); + d.copyTrailingComments(e, e.expression, t, 3, !1), d.copyTrailingAsLeadingComments(e.expression, e.expression, t, 3, !1) + }(e = d.refactor || (d.refactor = {})).convertStringOrTemplateLiteral || (e.convertStringOrTemplateLiteral = {}), n = "Convert to template string", i = d.getLocaleSpecificMessage(d.Diagnostics.Convert_to_template_string), a = { + name: n, + description: i, + kind: "refactor.rewrite.string" + }, e.registerRefactor(n, { + kinds: [a.kind], + getEditsForAction: function(e, t) { + var r = e.file, + n = e.startPosition, + r = o(r, n); { + if (t !== i) return d.Debug.fail("invalid action"); + return { + edits: function(e, t) { + var r = s(t), + n = e.file, + i = function(e, t) { + var n = e.nodes, + e = e.operators, + c = p(e, t), + l = f(n, t, c), + e = m(0, n), + t = e[0], + r = e[1], + i = e[2], + e = e[3]; + if (t === n.length) return a = d.factory.createNoSubstitutionTemplateLiteral(r, i), l(e, a), a; + for (var u, _ = [], a = d.factory.createTemplateHead(r, i), o = (l(e, a), function(e) { + var i = function(e) { + d.isParenthesizedExpression(e) && (y(e), e = e.expression); + return e + }(n[e]), + t = (c(e, i), m(e + 1, n)), + r = t[0], + a = t[1], + o = t[2], + t = t[3], + s = (e = r - 1) === n.length - 1; + d.isTemplateExpression(i) ? (r = d.map(i.templateSpans, function(e, t) { + y(e); + var t = t === i.templateSpans.length - 1, + r = e.literal.text + (t ? a : ""), + n = g(e.literal) + (t ? o : ""); + return d.factory.createTemplateSpan(e.expression, s && t ? d.factory.createTemplateTail(r, n) : d.factory.createTemplateMiddle(r, n)) + }), _.push.apply(_, r)) : (r = s ? d.factory.createTemplateTail(a, o) : d.factory.createTemplateMiddle(a, o), l(t, r), _.push(d.factory.createTemplateSpan(i, r))), u = e + }), s = t; s < n.length; s++) o(s), s = u; + return d.factory.createTemplateExpression(a, _) + }(c(r), n), + t = d.getTrailingCommentRanges(n.text, r.end); { + var a, o; + return t ? (a = t[t.length - 1], o = { + pos: t[0].pos, + end: a.end + }, d.textChanges.ChangeTracker.with(e, function(e) { + e.deleteRange(n, o), e.replaceNode(n, r, i) + })) : d.textChanges.ChangeTracker.with(e, function(e) { + return e.replaceNode(n, r, i) + }) + } + }(e, r) + } + } + }, + getAvailableActions: function(e) { + var t = e.file, + r = e.startPosition, + t = s(o(t, r)), + r = { + name: n, + description: i, + actions: [] + }; { + if (d.isBinaryExpression(t) && c(t).isValidConcatenation) return r.actions.push(a), [r]; + if (e.preferences.provideRefactorNotApplicableReason) return r.actions.push(__assign(__assign({}, a), { + notApplicableReason: d.getLocaleSpecificMessage(d.Diagnostics.Can_only_convert_string_concatenation) + })), [r] + } + return d.emptyArray + } + }) + }(ts = ts || {}), ! function(u) { + var s, c, l, _, d, p; + + function a(e) { + var r = !1; + return e.forEachChild(function e(t) { + u.isThis(t) ? r = !0 : u.isClassLike(t) || u.isFunctionDeclaration(t) || u.isFunctionExpression(t) || u.forEachChild(t, e) + }), r + } + + function f(e, t, r) { + var n, t = u.getTokenAtPosition(e, t), + r = r.getTypeChecker(), + i = function(e, t, r) { + if (function(e) { + return u.isVariableDeclaration(e) || u.isVariableDeclarationList(e) && 1 === e.declarations.length + }(r)) { + r = (u.isVariableDeclaration(r) ? r : u.first(r.declarations)).initializer; + if (r && (u.isArrowFunction(r) || u.isFunctionExpression(r) && !o(e, t, r))) return r + } + return + }(e, r, t.parent); + return !i || a(i.body) || r.containsArgumentsReference(i) ? !(n = u.getContainingFunction(t)) || !u.isFunctionExpression(n) && !u.isArrowFunction(n) || u.rangeContainsRange(n.body, t) || a(n.body) || r.containsArgumentsReference(n) || u.isFunctionExpression(n) && o(e, r, n) ? void 0 : { + selectedVariableDeclaration: !1, + func: n + } : { + selectedVariableDeclaration: !0, + func: i + } + } + + function g(e) { + var t, r; + return u.isExpression(e) ? (t = u.factory.createReturnStatement(e), r = e.getSourceFile(), u.suppressLeadingAndTrailingTrivia(t), u.copyTrailingAsLeadingComments(e, t, r, void 0, !0), u.factory.createBlock([t], !0)) : e + } + + function o(e, t, r) { + return r.name && u.FindAllReferences.Core.isSymbolReferencedInFile(r.name, t, e) + }(s = u.refactor || (u.refactor = {})).convertArrowFunctionOrFunctionExpression || (s.convertArrowFunctionOrFunctionExpression = {}), c = "Convert arrow function or function expression", l = u.getLocaleSpecificMessage(u.Diagnostics.Convert_arrow_function_or_function_expression), _ = { + name: "Convert to anonymous function", + description: u.getLocaleSpecificMessage(u.Diagnostics.Convert_to_anonymous_function), + kind: "refactor.rewrite.function.anonymous" + }, d = { + name: "Convert to named function", + description: u.getLocaleSpecificMessage(u.Diagnostics.Convert_to_named_function), + kind: "refactor.rewrite.function.named" + }, p = { + name: "Convert to arrow function", + description: u.getLocaleSpecificMessage(u.Diagnostics.Convert_to_arrow_function), + kind: "refactor.rewrite.function.arrow" + }, s.registerRefactor(c, { + kinds: [_.kind, d.kind, p.kind], + getEditsForAction: function(e, t) { + var r = e.file, + n = e.startPosition, + i = e.program, + r = f(r, n, i); + if (!r) return; + var a = r.func, + o = []; + switch (t) { + case _.name: + o.push.apply(o, function(e, t) { + var r = e.file, + n = g(t.body), + i = u.factory.createFunctionExpression(t.modifiers, t.asteriskToken, void 0, t.typeParameters, t.parameters, t.type, n); + return u.textChanges.ChangeTracker.with(e, function(e) { + return e.replaceNode(r, t, i) + }) + }(e, a)); + break; + case d.name: + var s = function(e) { + var t, r, e = e.parent; + if (u.isVariableDeclaration(e) && u.isVariableDeclarationInVariableStatement(e)) return t = e.parent, r = t.parent, u.isVariableDeclarationList(t) && u.isVariableStatement(r) && u.isIdentifier(e.name) ? { + variableDeclaration: e, + variableDeclarationList: t, + statement: r, + name: e.name + } : void 0 + }(a); + if (!s) return; + o.push.apply(o, function(e, t, r) { + var n = e.file, + i = g(t.body), + a = r.variableDeclaration, + o = r.variableDeclarationList, + s = r.statement, + r = r.name, + c = (u.suppressLeadingTrivia(s), 1 & u.getCombinedModifierFlags(a) | u.getEffectiveModifierFlags(t)), + c = u.factory.createModifiersFromModifierFlags(c), + l = u.factory.createFunctionDeclaration(u.length(c) ? c : void 0, t.asteriskToken, r, t.typeParameters, t.parameters, t.type, i); + return 1 === o.declarations.length ? u.textChanges.ChangeTracker.with(e, function(e) { + return e.replaceNode(n, s, l) + }) : u.textChanges.ChangeTracker.with(e, function(e) { + e.delete(n, a), e.insertNodeAfter(n, s, l) + }) + }(e, a, s)); + break; + case p.name: + if (!u.isFunctionExpression(a)) return; + o.push.apply(o, function(e, t) { + var r, n = e.file, + i = t.body.statements[0]; + ! function(e, t) { + return 1 === e.statements.length && u.isReturnStatement(t) && t.expression + }(t.body, i) ? r = t.body: (r = i.expression, u.suppressLeadingAndTrailingTrivia(r), u.copyComments(i, r)); + var a = u.factory.createArrowFunction(t.modifiers, t.typeParameters, t.parameters, t.type, u.factory.createToken(38), r); + return u.textChanges.ChangeTracker.with(e, function(e) { + return e.replaceNode(n, t, a) + }) + }(e, a)); + break; + default: + return u.Debug.fail("invalid action") + } + return { + renameFilename: void 0, + renameLocation: void 0, + edits: o + } + }, + getAvailableActions: function(e) { + var t = e.file, + r = e.startPosition, + n = e.program, + i = e.kind, + t = f(t, r, n); + if (!t) return u.emptyArray; + var r = t.selectedVariableDeclaration, + n = t.func, + t = [], + a = []; + s.refactorKindBeginsWith(d.kind, i) && ((o = r || u.isArrowFunction(n) && u.isVariableDeclaration(n.parent) ? void 0 : u.getLocaleSpecificMessage(u.Diagnostics.Could_not_convert_to_named_function)) ? a.push(__assign(__assign({}, d), { + notApplicableReason: o + })) : t.push(d)); + s.refactorKindBeginsWith(_.kind, i) && ((o = !r && u.isArrowFunction(n) ? void 0 : u.getLocaleSpecificMessage(u.Diagnostics.Could_not_convert_to_anonymous_function)) ? a.push(__assign(__assign({}, _), { + notApplicableReason: o + })) : t.push(_)); { + var o; + s.refactorKindBeginsWith(p.kind, i) && ((o = u.isFunctionExpression(n) ? void 0 : u.getLocaleSpecificMessage(u.Diagnostics.Could_not_convert_to_arrow_function)) ? a.push(__assign(__assign({}, p), { + notApplicableReason: o + })) : t.push(p)) + } + return [{ + name: c, + description: l, + actions: 0 === t.length && e.preferences.provideRefactorNotApplicableReason ? a : t + }] + } + }) + }(ts = ts || {}), ! function(c) { + var n, r, i, a; + + function l(e) { + var t, r; + if (!c.isInJSFile(e.file) && n.refactorKindBeginsWith(a.kind, e.kind)) return t = c.getTokenAtPosition(e.file, e.startPosition), (t = c.findAncestor(t, function(e) { + if (c.isBlock(e) || e.parent && c.isArrowFunction(e.parent) && (38 === e.kind || e.parent.body === e)) return "quit"; + switch (e.kind) { + case 259: + case 215: + case 216: + case 171: + return !0; + default: + return !1 + } + })) && t.body && !t.type ? (r = function(e, t) { + if (e.isImplementationOfOverload(t)) { + var r = e.getTypeAtLocation(t).getCallSignatures(); + if (1 < r.length) return e.getUnionType(c.mapDefined(r, function(e) { + return e.getReturnType() + })) + } + r = e.getSignatureFromDeclaration(t); + if (r) return e.getReturnTypeOfSignature(r) + }(e = e.program.getTypeChecker(), t)) ? (e = e.typeToTypeNode(r, t, 1)) ? { + declaration: t, + returnTypeNode: e + } : void 0 : { + error: c.getLocaleSpecificMessage(c.Diagnostics.Could_not_determine_function_return_type) + } : { + error: c.getLocaleSpecificMessage(c.Diagnostics.Return_type_must_be_inferred_from_a_function) + } + }(n = c.refactor || (c.refactor = {})).inferFunctionReturnType || (n.inferFunctionReturnType = {}), r = "Infer function return type", i = c.Diagnostics.Infer_function_return_type.message, a = { + name: r, + description: i, + kind: "refactor.rewrite.function.returnType" + }, n.registerRefactor(r, { + kinds: [a.kind], + getEditsForAction: function(o) { + var s = l(o); + if (s && !n.isRefactorErrorInfo(s)) return { + renameFilename: void 0, + renameLocation: void 0, + edits: c.textChanges.ChangeTracker.with(o, function(e) { + var t, r, n, i, a; + t = o.file, e = e, r = s.declaration, n = s.returnTypeNode, i = c.findChildOfKind(r, 21, t), a = c.isArrowFunction(r) && void 0 === i, (r = a ? c.first(r.parameters) : i) && (a && (e.insertNodeBefore(t, r, c.factory.createToken(20)), e.insertNodeAfter(t, r, c.factory.createToken(21))), e.insertNodeAt(t, r.end, n, { + prefix: ": " + })) + }) + } + }, + getAvailableActions: function(e) { + var t = l(e); + if (t) { + if (!n.isRefactorErrorInfo(t)) return [{ + name: r, + description: i, + actions: [a] + }]; + if (e.preferences.provideRefactorNotApplicableReason) return [{ + name: r, + description: i, + actions: [__assign(__assign({}, a), { + notApplicableReason: t.error + })] + }] + } + return c.emptyArray + } + }) + }(ts = ts || {}), ! function(F) { + function s(e, t, r, n) { + e = F.isNodeKind(e) ? new i(e, t, r) : 79 === e ? new _(79, t, r) : 80 === e ? new f(80, t, r) : new o(e, t, r); + return e.parent = n, e.flags = 50720768 & n.flags, e + } + F.servicesVersion = "0.8"; + e.prototype.assertHasRealPosition = function(e) { + F.Debug.assert(!F.positionIsSynthesized(this.pos) && !F.positionIsSynthesized(this.end), e || "Node must have a real position for this operation") + }, e.prototype.getSourceFile = function() { + return F.getSourceFileOfNode(this) + }, e.prototype.getStart = function(e, t) { + return this.assertHasRealPosition(), F.getTokenPosOfNode(this, e, t) + }, e.prototype.getFullStart = function() { + return this.assertHasRealPosition(), this.pos + }, e.prototype.getEnd = function() { + return this.assertHasRealPosition(), this.end + }, e.prototype.getWidth = function(e) { + return this.assertHasRealPosition(), this.getEnd() - this.getStart(e) + }, e.prototype.getFullWidth = function() { + return this.assertHasRealPosition(), this.end - this.pos + }, e.prototype.getLeadingTriviaWidth = function(e) { + return this.assertHasRealPosition(), this.getStart(e) - this.pos + }, e.prototype.getFullText = function(e) { + return this.assertHasRealPosition(), (e || this.getSourceFile()).text.substring(this.pos, this.end) + }, e.prototype.getText = function(e) { + return this.assertHasRealPosition(), (e = e || this.getSourceFile()).text.substring(this.getStart(e), this.getEnd()) + }, e.prototype.getChildCount = function(e) { + return this.getChildren(e).length + }, e.prototype.getChildAt = function(e, t) { + return this.getChildren(t)[e] + }, e.prototype.getChildren = function(e) { + return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"), this._children || (this._children = (t = this, e = e, F.isNodeKind(t.kind) ? (r = [], F.isJSDocCommentContainingNode(t) ? t.forEachChild(function(e) { + r.push(e) + }) : (F.scanner.setText((e || t.getSourceFile()).text), n = t.pos, e = function(e) { + c(r, n, e.pos, t), r.push(e), n = e.end + }, F.forEach(t.jsDoc, e), n = t.pos, t.forEachChild(e, function(e) { + c(r, n, e.pos, t), r.push(function(e, t) { + for (var r = s(351, e.pos, e.end, t), n = (r._children = [], e.pos), i = 0, a = e; i < a.length; i++) { + var o = a[i]; + c(r._children, n, o.pos, t), r._children.push(o), n = o.end + } + return c(r._children, n, e.end, t), r + }(e, t)), n = e.end + }), c(r, n, t.end, t), F.scanner.setText(void 0)), r) : F.emptyArray)); + var t, r, n + }, e.prototype.getFirstToken = function(e) { + this.assertHasRealPosition(); + var t = this.getChildren(e); + if (t.length) return (t = F.find(t, function(e) { + return e.kind < 312 || 350 < e.kind + })).kind < 163 ? t : t.getFirstToken(e) + }, e.prototype.getLastToken = function(e) { + this.assertHasRealPosition(); + var t = this.getChildren(e), + t = F.lastOrUndefined(t); + if (t) return t.kind < 163 ? t : t.getLastToken(e) + }, e.prototype.forEachChild = function(e, t) { + return F.forEachChild(this, e, t) + }; + var i = e; + + function e(e, t, r) { + this.pos = t, this.end = r, this.flags = 0, this.modifierFlagsCache = 0, this.transformFlags = 0, this.parent = void 0, this.kind = e + } + + function c(e, t, r, n) { + for (F.scanner.setTextPos(t); t < r;) { + var i = F.scanner.scan(), + a = F.scanner.getTextPos(); + if (a <= r && (79 === i && F.Debug.fail("Did not expect ".concat(F.Debug.formatSyntaxKind(n.kind), " to have an Identifier in its trivia")), e.push(s(i, t, a, n))), t = a, 1 === i) break + } + } + r.prototype.getSourceFile = function() { + return F.getSourceFileOfNode(this) + }, r.prototype.getStart = function(e, t) { + return F.getTokenPosOfNode(this, e, t) + }, r.prototype.getFullStart = function() { + return this.pos + }, r.prototype.getEnd = function() { + return this.end + }, r.prototype.getWidth = function(e) { + return this.getEnd() - this.getStart(e) + }, r.prototype.getFullWidth = function() { + return this.end - this.pos + }, r.prototype.getLeadingTriviaWidth = function(e) { + return this.getStart(e) - this.pos + }, r.prototype.getFullText = function(e) { + return (e || this.getSourceFile()).text.substring(this.pos, this.end) + }, r.prototype.getText = function(e) { + return (e = e || this.getSourceFile()).text.substring(this.getStart(e), this.getEnd()) + }, r.prototype.getChildCount = function() { + return this.getChildren().length + }, r.prototype.getChildAt = function(e) { + return this.getChildren()[e] + }, r.prototype.getChildren = function() { + return 1 === this.kind && this.jsDoc || F.emptyArray + }, r.prototype.getFirstToken = function() {}, r.prototype.getLastToken = function() {}, r.prototype.forEachChild = function() {}; + var t = r; + + function r(e, t) { + this.pos = e, this.end = t, this.flags = 0, this.modifierFlagsCache = 0, this.transformFlags = 0, this.parent = void 0 + } + n.prototype.getFlags = function() { + return this.flags + }, Object.defineProperty(n.prototype, "name", { + get: function() { + return F.symbolName(this) + }, + enumerable: !1, + configurable: !0 + }), n.prototype.getEscapedName = function() { + return this.escapedName + }, n.prototype.getName = function() { + return this.name + }, n.prototype.getDeclarations = function() { + return this.declarations + }, n.prototype.getDocumentationComment = function(e) { + var t; + return this.documentationComment || (this.documentationComment = F.emptyArray, !this.declarations && this.target && this.target.tupleLabelDeclaration ? (t = this.target.tupleLabelDeclaration, this.documentationComment = b([t], e)) : this.documentationComment = b(this.declarations, e)), this.documentationComment + }, n.prototype.getContextualDocumentationComment = function(e, t) { + if (e) { + if (F.isGetAccessor(e) && (this.contextualGetAccessorDocumentationComment || (this.contextualGetAccessorDocumentationComment = b(F.filter(this.declarations, F.isGetAccessor), t)), F.length(this.contextualGetAccessorDocumentationComment))) return this.contextualGetAccessorDocumentationComment; + if (F.isSetAccessor(e) && (this.contextualSetAccessorDocumentationComment || (this.contextualSetAccessorDocumentationComment = b(F.filter(this.declarations, F.isSetAccessor), t)), F.length(this.contextualSetAccessorDocumentationComment))) return this.contextualSetAccessorDocumentationComment + } + return this.getDocumentationComment(t) + }, n.prototype.getJsDocTags = function(e) { + return void 0 === this.tags && (this.tags = v(this.declarations, e)), this.tags + }, n.prototype.getContextualJsDocTags = function(e, t) { + if (e) { + if (F.isGetAccessor(e) && (this.contextualGetAccessorTags || (this.contextualGetAccessorTags = v(F.filter(this.declarations, F.isGetAccessor), t)), F.length(this.contextualGetAccessorTags))) return this.contextualGetAccessorTags; + if (F.isSetAccessor(e) && (this.contextualSetAccessorTags || (this.contextualSetAccessorTags = v(F.filter(this.declarations, F.isSetAccessor), t)), F.length(this.contextualSetAccessorTags))) return this.contextualSetAccessorTags + } + return this.getJsDocTags(t) + }; + var L = n; + + function n(e, t) { + this.flags = e, this.escapedName = t + } + __extends(l, a = t); + var a, o = l; + + function l(e, t, r) { + t = a.call(this, t, r) || this; + return t.kind = e, t + } + __extends(d, u = t), Object.defineProperty(d.prototype, "text", { + get: function() { + return F.idText(this) + }, + enumerable: !1, + configurable: !0 + }); + var u, _ = d; + + function d(e, t, r) { + t = u.call(this, t, r) || this; + return t.kind = 79, t + } + _.prototype.kind = 79; + __extends(g, p = t), Object.defineProperty(g.prototype, "text", { + get: function() { + return F.idText(this) + }, + enumerable: !1, + configurable: !0 + }); + var p, f = g; + + function g(e, t, r) { + return p.call(this, t, r) || this + } + f.prototype.kind = 80; + m.prototype.getFlags = function() { + return this.flags + }, m.prototype.getSymbol = function() { + return this.symbol + }, m.prototype.getProperties = function() { + return this.checker.getPropertiesOfType(this) + }, m.prototype.getProperty = function(e) { + return this.checker.getPropertyOfType(this, e) + }, m.prototype.getApparentProperties = function() { + return this.checker.getAugmentedPropertiesOfType(this) + }, m.prototype.getCallSignatures = function() { + return this.checker.getSignaturesOfType(this, 0) + }, m.prototype.getConstructSignatures = function() { + return this.checker.getSignaturesOfType(this, 1) + }, m.prototype.getStringIndexType = function() { + return this.checker.getIndexTypeOfType(this, 0) + }, m.prototype.getNumberIndexType = function() { + return this.checker.getIndexTypeOfType(this, 1) + }, m.prototype.getBaseTypes = function() { + return this.isClassOrInterface() ? this.checker.getBaseTypes(this) : void 0 + }, m.prototype.isNullableType = function() { + return this.checker.isNullableType(this) + }, m.prototype.getNonNullableType = function() { + return this.checker.getNonNullableType(this) + }, m.prototype.getNonOptionalType = function() { + return this.checker.getNonOptionalType(this) + }, m.prototype.getConstraint = function() { + return this.checker.getBaseConstraintOfType(this) + }, m.prototype.getDefault = function() { + return this.checker.getDefaultFromTypeParameter(this) + }, m.prototype.isUnion = function() { + return !!(1048576 & this.flags) + }, m.prototype.isIntersection = function() { + return !!(2097152 & this.flags) + }, m.prototype.isUnionOrIntersection = function() { + return !!(3145728 & this.flags) + }, m.prototype.isLiteral = function() { + return !!(384 & this.flags) + }, m.prototype.isStringLiteral = function() { + return !!(128 & this.flags) + }, m.prototype.isNumberLiteral = function() { + return !!(256 & this.flags) + }, m.prototype.isTypeParameter = function() { + return !!(262144 & this.flags) + }, m.prototype.isClassOrInterface = function() { + return !!(3 & F.getObjectFlags(this)) + }, m.prototype.isClass = function() { + return !!(1 & F.getObjectFlags(this)) + }, m.prototype.isIndexType = function() { + return !!(4194304 & this.flags) + }, Object.defineProperty(m.prototype, "typeArguments", { + get: function() { + if (4 & F.getObjectFlags(this)) return this.checker.getTypeArguments(this) + }, + enumerable: !1, + configurable: !0 + }); + var R = m; + + function m(e, t) { + this.checker = e, this.flags = t + } + y.prototype.getDeclaration = function() { + return this.declaration + }, y.prototype.getTypeParameters = function() { + return this.typeParameters + }, y.prototype.getParameters = function() { + return this.parameters + }, y.prototype.getReturnType = function() { + return this.checker.getReturnTypeOfSignature(this) + }, y.prototype.getTypeParameterAtPosition = function(e) { + e = this.checker.getParameterType(this, e); + if (e.isIndexType() && F.isThisTypeParameter(e.type)) { + var t = e.type.getConstraint(); + if (t) return this.checker.getIndexType(t) + } + return e + }, y.prototype.getDocumentationComment = function() { + return this.documentationComment || (this.documentationComment = b(F.singleElementArray(this.declaration), this.checker)) + }, y.prototype.getJsDocTags = function() { + return this.jsDocTags || (this.jsDocTags = v(F.singleElementArray(this.declaration), this.checker)) + }; + var B = y; + + function y(e, t) { + this.checker = e, this.flags = t + } + + function h(e) { + return F.getJSDocTags(e).some(function(e) { + return "inheritDoc" === e.tagName.text || "inheritdoc" === e.tagName.text + }) + } + + function v(e, n) { + if (!e) return F.emptyArray; + var t = F.JsDoc.getJsDocTagsFromDeclarations(e, n); + if (n && (0 === t.length || e.some(h))) + for (var i = new F.Set, r = 0, a = e; r < a.length; r++) ! function(r) { + var e = x(n, r, function(e) { + var t; + if (!i.has(e)) return i.add(e), 174 === r.kind || 175 === r.kind ? e.getContextualJsDocTags(r, n) : 1 === (null == (t = e.declarations) ? void 0 : t.length) ? e.getJsDocTags() : void 0 + }); + e && (t = __spreadArray(__spreadArray([], e, !0), t, !0)) + }(a[r]); + return t + } + + function b(e, r) { + if (!e) return F.emptyArray; + var n = F.JsDoc.getJsDocCommentsFromDeclarations(e, r); + if (r && (0 === n.length || e.some(h))) + for (var i = new F.Set, t = 0, a = e; t < a.length; t++) ! function(t) { + var e = x(r, t, function(e) { + if (!i.has(e)) return i.add(e), 174 === t.kind || 175 === t.kind ? e.getContextualDocumentationComment(t, r) : e.getDocumentationComment(r) + }); + e && (n = 0 === n.length ? e.slice() : e.concat(F.lineBreakPart(), n)) + }(a[t]); + return n + } + + function x(t, r, n) { + var i, e = (173 === (null == (e = r.parent) ? void 0 : e.kind) ? r.parent : r).parent; + if (e) return i = F.hasStaticModifier(r), F.firstDefined(F.getAllSuperTypeNodes(e), function(e) { + e = t.getTypeAtLocation(e), e = i && e.symbol ? t.getTypeOfSymbol(e.symbol) : e, e = t.getPropertyOfType(e, r.symbol.name); + return e ? n(e) : void 0 + }) + } + __extends(S, D = i), S.prototype.update = function(e, t) { + return F.updateSourceFile(this, e, t) + }, S.prototype.getLineAndCharacterOfPosition = function(e) { + return F.getLineAndCharacterOfPosition(this, e) + }, S.prototype.getLineStarts = function() { + return F.getLineStarts(this) + }, S.prototype.getPositionOfLineAndCharacter = function(e, t, r) { + return F.computePositionOfLineAndCharacter(F.getLineStarts(this), e, t, this.text, r) + }, S.prototype.getLineEndOfPosition = function(e) { + var t, e = this.getLineAndCharacterOfPosition(e).line, + r = this.getLineStarts(), + r = (t = (t = e + 1 >= r.length ? this.getEnd() : t) || r[e + 1] - 1, this.getFullText()); + return "\n" === r[t] && "\r" === r[t - 1] ? t - 1 : t + }, S.prototype.getNamedDeclarations = function() { + return this.namedDeclarations || (this.namedDeclarations = this.computeNamedDeclarations()), this.namedDeclarations + }, S.prototype.computeNamedDeclarations = function() { + var r = F.createMultiMap(); + return this.forEachChild(function e(t) { + switch (t.kind) { + case 259: + case 215: + case 171: + case 170: + var r = t, + n = s(r); + n && (n = o(n), (i = F.lastOrUndefined(n)) && r.parent === i.parent && r.symbol === i.symbol ? r.body && !i.body && (n[n.length - 1] = r) : n.push(r)), F.forEachChild(t, e); + break; + case 260: + case 228: + case 261: + case 262: + case 263: + case 264: + case 268: + case 278: + case 273: + case 270: + case 271: + case 174: + case 175: + case 184: + a(t), F.forEachChild(t, e); + break; + case 166: + if (!F.hasSyntacticModifier(t, 16476)) break; + case 257: + case 205: + var i = t; + if (F.isBindingPattern(i.name)) { + F.forEachChild(i.name, e); + break + } + i.initializer && e(i.initializer); + case 302: + case 169: + case 168: + a(t); + break; + case 275: + n = t; + n.exportClause && (F.isNamedExports(n.exportClause) ? F.forEach(n.exportClause.elements, e) : e(n.exportClause.name)); + break; + case 269: + r = t.importClause; + r && (r.name && a(r.name), r.namedBindings) && (271 === r.namedBindings.kind ? a(r.namedBindings) : F.forEach(r.namedBindings.elements, e)); + break; + case 223: + 0 !== F.getAssignmentDeclarationKind(t) && a(t); + default: + F.forEachChild(t, e) + } + }), r; + + function a(e) { + var t = s(e); + t && r.add(t, e) + } + + function o(e) { + var t = r.get(e); + return t || r.set(e, t = []), t + } + + function s(e) { + e = F.getNonAssignedNameOfDeclaration(e); + return e && (F.isComputedPropertyName(e) && F.isPropertyAccessExpression(e.expression) ? e.expression.name.text : F.isPropertyName(e) ? F.getNameFromPropertyName(e) : void 0) + } + }; + var D, j = S; + + function S(e, t, r) { + e = D.call(this, e, t, r) || this; + return e.kind = 308, e + } + T.prototype.getLineAndCharacterOfPosition = function(e) { + return F.getLineAndCharacterOfPosition(this, e) + }; + var J = T; + + function T(e, t, r) { + this.fileName = e, this.text = t, this.skipTrivia = r + } + + function P(e) { + var t = !0; + for (r in e) + if (F.hasProperty(e, r) && !C(r)) { + t = !1; + break + } + if (t) return e; + var r, n = {}; + for (r in e) F.hasProperty(e, r) && (n[C(r) ? r : r.charAt(0).toLowerCase() + r.substr(1)] = e[r]); + return n + } + + function C(e) { + return !e.length || e.charAt(0) === e.charAt(0).toLowerCase() + } + + function w() { + return { + target: 1, + jsx: 1 + } + } + F.toEditorSettings = P, F.displayPartsToString = function(e) { + return e ? F.map(e, function(e) { + return e.text + }).join("") : "" + }, F.getDefaultCompilerOptions = w, F.getSupportedCodeFixes = function() { + return F.codefix.getSupportedErrorCodes() + }; + E.prototype.getCurrentSourceFile = function(e) { + var t, r, n, i, a = this.host.getScriptSnapshot(e); + if (a) return t = F.getScriptKind(e, this.host), r = this.host.getScriptVersion(e), this.currentFileName !== e ? n = N(e, a, { + languageVersion: 99, + impliedNodeFormat: F.getImpliedNodeFormatForFile(F.toPath(e, this.host.getCurrentDirectory(), (null == (n = null == (n = (i = this.host).getCompilerHost) ? void 0 : n.call(i)) ? void 0 : n.getCanonicalFileName) || F.hostGetCanonicalFileName(this.host)), null == (i = null == (i = null == (n = null == (n = (i = this.host).getCompilerHost) ? void 0 : n.call(i)) ? void 0 : n.getModuleResolutionCache) ? void 0 : i.call(n)) ? void 0 : i.getPackageJsonInfoCache(), this.host, this.host.getCompilationSettings()), + setExternalModuleIndicator: F.getSetExternalModuleIndicator(this.host.getCompilationSettings()) + }, r, !0, t) : this.currentFileVersion !== r && (i = a.getChangeRange(this.currentFileScriptSnapshot), n = A(this.currentSourceFile, a, r, i)), n && (this.currentFileVersion = r, this.currentFileName = e, this.currentFileScriptSnapshot = a, this.currentSourceFile = n), this.currentSourceFile; + throw new Error("Could not find file: '" + e + "'.") + }; + var z = E; + + function E(e) { + this.host = e + } + + function k(e, t, r) { + e.version = r, e.scriptSnapshot = t + } + + function N(e, t, r, n, i, a) { + e = F.createSourceFile(e, F.getSnapshotText(t), r, i, a); + return k(e, t, n), e + } + + function A(e, t, r, n, i) { + var a, o, s; + if (n && r !== e.version) return o = void 0, s = 0 !== n.span.start ? e.text.substr(0, n.span.start) : "", a = F.textSpanEnd(n.span) !== e.text.length ? e.text.substr(F.textSpanEnd(n.span)) : "", o = 0 === n.newLength ? s && a ? s + a : s || a : (c = t.getText(n.span.start, n.span.start + n.newLength), s && a ? s + c + a : s ? s + c : c + a), k(s = F.updateSourceFile(e, o, n, i), t, r), s.nameTable = void 0, e !== s && e.scriptSnapshot && (e.scriptSnapshot.dispose && e.scriptSnapshot.dispose(), e.scriptSnapshot = void 0), s; + var c = { + languageVersion: e.languageVersion, + impliedNodeFormat: e.impliedNodeFormat, + setExternalModuleIndicator: e.setExternalModuleIndicator + }; + return N(e.fileName, t, c, r, !0, e.scriptKind) + } + F.createLanguageServiceSourceFile = N, F.updateLanguageServiceSourceFile = A; + var U = { + isCancellationRequested: F.returnFalse, + throwIfCancellationRequested: F.noop + }, + K = (I.prototype.isCancellationRequested = function() { + return this.cancellationToken.isCancellationRequested() + }, I.prototype.throwIfCancellationRequested = function() { + if (this.isCancellationRequested()) throw null !== F.tracing && void 0 !== F.tracing && F.tracing.instant("session", "cancellationThrown", { + kind: "CancellationTokenObject" + }), new F.OperationCanceledException + }, I); + + function I(e) { + this.cancellationToken = e + } + + function O(e, t) { + void 0 === t && (t = 20), this.hostCancellationToken = e, this.throttleWaitMilliseconds = t, this.lastCancellationCheckTime = 0 + } + O.prototype.isCancellationRequested = function() { + var e = F.timestamp(); + return Math.abs(e - this.lastCancellationCheckTime) >= this.throttleWaitMilliseconds && (this.lastCancellationCheckTime = e, this.hostCancellationToken.isCancellationRequested()) + }, O.prototype.throwIfCancellationRequested = function() { + if (this.isCancellationRequested()) throw null !== F.tracing && void 0 !== F.tracing && F.tracing.instant("session", "cancellationThrown", { + kind: "ThrottledCancellationToken" + }), new F.OperationCanceledException + }, F.ThrottledCancellationToken = O; + var M = ["getSemanticDiagnostics", "getSuggestionDiagnostics", "getCompilerOptionsDiagnostics", "getSemanticClassifications", "getEncodedSemanticClassifications", "getCodeFixesAtPosition", "getCombinedCodeFix", "applyCodeActionCommand", "organizeImports", "getEditsForFileRename", "getEmitOutput", "getApplicableRefactors", "getEditsForRefactor", "prepareCallHierarchy", "provideCallHierarchyIncomingCalls", "provideCallHierarchyOutgoingCalls", "provideInlayHints"], + V = __spreadArray(__spreadArray([], M, !0), ["getCompletionsAtPosition", "getCompletionEntryDetails", "getCompletionEntrySymbol", "getSignatureHelpItems", "getQuickInfoAtPosition", "getDefinitionAtPosition", "getDefinitionAndBoundSpan", "getImplementationAtPosition", "getTypeDefinitionAtPosition", "getReferencesAtPosition", "findReferences", "getOccurrencesAtPosition", "getDocumentHighlights", "getNavigateToItems", "getRenameInfo", "findRenameLocations", "getApplicableRefactors"], !1); + + function q(e) { + e = function(e) { + switch (e.kind) { + case 10: + case 14: + case 8: + if (164 === e.parent.kind) return F.isObjectLiteralElement(e.parent.parent) ? e.parent.parent : void 0; + case 79: + return !F.isObjectLiteralElement(e.parent) || 207 !== e.parent.parent.kind && 289 !== e.parent.parent.kind || e.parent.name !== e ? void 0 : e.parent + } + return + }(e); + return e && (F.isObjectLiteralExpression(e.parent) || F.isJsxAttributes(e.parent)) ? e : void 0 + } + + function W(t, r, e, n) { + var i = F.getNameFromPropertyName(t.name); + if (!i) return F.emptyArray; + if (!e.isUnion()) return (a = e.getProperty(i)) ? [a] : F.emptyArray; + var a, o = F.mapDefined(e.types, function(e) { + return (F.isObjectLiteralExpression(t.parent) || F.isJsxAttributes(t.parent)) && r.isTypeInvalidDueToUnionDiscriminant(e, t.parent) ? void 0 : e.getProperty(i) + }); + if (n && (0 === o.length || o.length === e.types.length) && (a = e.getProperty(i))) return [a]; + return 0 === o.length ? F.mapDefined(e.types, function(e) { + return e.getProperty(i) + }) : o + } + F.createLanguageService = function(g, m, e) { + void 0 === m && (m = F.createDocumentRegistry(g.useCaseSensitiveFileNames && g.useCaseSensitiveFileNames(), g.getCurrentDirectory())), y = void 0 === e ? F.LanguageServiceMode.Semantic : "boolean" == typeof e ? e ? F.LanguageServiceMode.Syntactic : F.LanguageServiceMode.Semantic : e; + var y, h, v, D = new z(g), + b = 0, + x = g.getCancellationToken ? new K(g.getCancellationToken()) : U, + S = g.getCurrentDirectory(); + + function T(e) { + g.log && g.log(e) + } + F.maybeSetLocalizedDiagnosticMessages(null == (e = g.getLocalizedDiagnosticMessages) ? void 0 : e.bind(g)); + var C = F.hostUsesCaseSensitiveFileNames(g), + E = F.createGetCanonicalFileName(C), + k = F.getSourceMapper({ + useCaseSensitiveFileNames: function() { + return C + }, + getCurrentDirectory: function() { + return S + }, + getProgram: o, + fileExists: F.maybeBind(g, g.fileExists), + readFile: F.maybeBind(g, g.readFile), + getDocumentPositionMapper: F.maybeBind(g, g.getDocumentPositionMapper), + getSourceFileLike: F.maybeBind(g, g.getSourceFileLike), + log: T + }); + + function d(e) { + var t = h.getSourceFile(e); + if (t) return t; + throw (t = new Error("Could not find source file: '".concat(e, "'."))).ProgramFiles = h.getSourceFiles().map(function(e) { + return e.fileName + }), t + } + + function p() { + if (F.Debug.assert(y !== F.LanguageServiceMode.Syntactic), g.getProjectVersion) { + var e = g.getProjectVersion(); + if (e) { + if (v === e && (null == (t = g.hasChangedAutomaticTypeDirectiveNames) || !t.call(g))) return; + v = e + } + } + var n, t = g.getTypeRootsVersion ? g.getTypeRootsVersion() : 0, + e = (b !== t && (T("TypeRoots version has changed; provide new program"), h = void 0, b = t), g.getScriptFileNames().slice()), + r = g.getCompilationSettings() || w(), + t = g.hasInvalidatedResolutions || F.returnFalse, + i = F.maybeBind(g, g.hasChangedAutomaticTypeDirectiveNames), + a = null == (a = g.getProjectReferences) ? void 0 : a.call(g), + c = { + getSourceFile: p, + getSourceFileByPath: f, + getCancellationToken: function() { + return x + }, + getCanonicalFileName: E, + useCaseSensitiveFileNames: function() { + return C + }, + getNewLine: function() { + return F.getNewLineCharacter(r, function() { + return F.getNewLineOrDefaultFromHost(g) + }) + }, + getDefaultLibFileName: function(e) { + return g.getDefaultLibFileName(e) + }, + writeFile: F.noop, + getCurrentDirectory: function() { + return S + }, + fileExists: function(e) { + return g.fileExists(e) + }, + readFile: function(e) { + return g.readFile && g.readFile(e) + }, + getSymlinkCache: F.maybeBind(g, g.getSymlinkCache), + realpath: F.maybeBind(g, g.realpath), + directoryExists: function(e) { + return F.directoryProbablyExists(e, g) + }, + getDirectories: function(e) { + return g.getDirectories ? g.getDirectories(e) : [] + }, + readDirectory: function(e, t, r, n, i) { + return F.Debug.checkDefined(g.readDirectory, "'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"), g.readDirectory(e, t, r, n, i) + }, + onReleaseOldSourceFile: d, + onReleaseParsedCommandLine: function(e, t, r) { + var n; + g.getParsedCommandLine ? null != (n = g.onReleaseParsedCommandLine) && n.call(g, e, t, r) : t && d(t.sourceFile, r) + }, + hasInvalidatedResolutions: t, + hasChangedAutomaticTypeDirectiveNames: i, + trace: F.maybeBind(g, g.trace), + resolveModuleNames: F.maybeBind(g, g.resolveModuleNames), + getModuleResolutionCache: F.maybeBind(g, g.getModuleResolutionCache), + resolveTypeReferenceDirectives: F.maybeBind(g, g.resolveTypeReferenceDirectives), + useSourceOfProjectReferenceRedirect: F.maybeBind(g, g.useSourceOfProjectReferenceRedirect), + getParsedCommandLine: _ + }, + o = c.getSourceFile, + s = F.changeCompilerHostLikeToUseCache(c, function(e) { + return F.toPath(e, S, E) + }, function() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + return o.call.apply(o, __spreadArray([c], e, !1)) + }).getSourceFileWithCache, + l = (c.getSourceFile = s, null != (s = g.setCompilerHost) && s.call(g, c), { + useCaseSensitiveFileNames: C, + fileExists: function(e) { + return c.fileExists(e) + }, + readFile: function(e) { + return c.readFile(e) + }, + readDirectory: function() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + return c.readDirectory.apply(c, e) + }, + trace: c.trace, + getCurrentDirectory: c.getCurrentDirectory, + onUnRecoverableConfigFileDiagnostic: F.noop + }), + u = m.getKeyForCompilationSettings(r); + + function _(e) { + var t = F.toPath(e, S, E), + r = null == n ? void 0 : n.get(t); + return void 0 !== r ? r || void 0 : (r = g.getParsedCommandLine ? g.getParsedCommandLine(e) : function(e) { + var t = p(e, 100); + if (t) return t.path = F.toPath(e, S, E), t.resolvedPath = t.path, t.originalFileName = t.fileName, F.parseJsonSourceFileConfigFileContent(t, l, F.getNormalizedAbsolutePath(F.getDirectoryPath(e), S), void 0, F.getNormalizedAbsolutePath(e, S)) + }(e), (n = n || new F.Map).set(t, r || !1), r) + } + + function d(e, t) { + t = m.getKeyForCompilationSettings(t); + m.releaseDocumentWithKey(e.resolvedPath, t, e.scriptKind, e.impliedNodeFormat) + } + + function p(e, t, r, n) { + return f(e, F.toPath(e, S, E), t, 0, n) + } + + function f(e, t, r, n, i) { + F.Debug.assert(c, "getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host."); + var a = g.getScriptSnapshot(e); + if (a) { + var o = F.getScriptKind(e, g), + s = g.getScriptVersion(e); + if (!i) { + i = h && h.getSourceFileByPath(t); + if (i) { + if (o === i.scriptKind) return m.updateDocumentWithKey(e, t, g, u, a, s, o, r); + m.releaseDocumentWithKey(i.resolvedPath, m.getKeyForCompilationSettings(h.getCompilerOptions()), i.scriptKind, i.impliedNodeFormat) + } + } + return m.acquireDocumentWithKey(e, t, g, u, a, s, o, r) + } + } + F.isProgramUptoDate(h, e, r, function(e, t) { + return g.getScriptVersion(t) + }, function(e) { + return c.fileExists(e) + }, t, i, _, a) || (s = { + rootNames: e, + options: r, + host: c, + oldProgram: h, + projectReferences: a + }, h = F.createProgram(s), n = c = void 0, k.clearCache(), h.getTypeChecker()) + } + + function o() { + if (y !== F.LanguageServiceMode.Syntactic) return p(), h; + F.Debug.assert(void 0 === h) + } + + function r(e, t, r) { + var n = F.normalizePath(e), + r = (F.Debug.assert(r.some(function(e) { + return F.normalizePath(e) === n + })), p(), F.mapDefined(r, function(e) { + return h.getSourceFile(e) + })), + e = d(e); + return F.DocumentHighlights.getDocumentHighlights(h, x, e, t, r) + } + + function s(e, t, r, n) { + p(); + var i = r && 2 === r.use ? h.getSourceFiles().filter(function(e) { + return !h.isSourceFileDefaultLibrary(e) + }) : h.getSourceFiles(); + return F.FindAllReferences.findReferenceOrRenameEntries(h, x, i, e, t, r, n) + } + var n = new F.Map(F.getEntries(((e = {})[18] = 19, e[20] = 21, e[22] = 23, e[31] = 29, e))); + + function i(e) { + var t; + return F.Debug.assertEqual(e.type, "install package"), g.installPackage ? g.installPackage({ + fileName: (t = e.file, F.toPath(t, S, E)), + packageName: e.packageName + }) : Promise.reject("Host does not implement `installPackage`") + } + + function N(e, t) { + return { + lineStarts: e.getLineStarts(), + firstLine: e.getLineAndCharacterOfPosition(t.pos).line, + lastLine: e.getLineAndCharacterOfPosition(t.end).line + } + } + + function c(e, t, r) { + for (var n = D.getCurrentSourceFile(e), i = [], a = N(n, t), o = a.lineStarts, s = a.firstLine, c = a.lastLine, l = r || !1, u = Number.MAX_VALUE, _ = new F.Map, d = new RegExp(/\S/), p = F.isInsideJsxElement(n, o[s]), f = p ? "{/*" : "//", g = s; g <= c; g++) { + var m = n.text.substring(o[g], n.getLineEndOfPosition(o[g])), + y = d.exec(m); + y && (u = Math.min(u, y.index), _.set(g.toString(), y.index), m.substr(y.index, f.length) !== f) && (l = void 0 === r || r) + } + for (var h, g = s; g <= c; g++) s !== c && o[g] === t.end || void 0 !== (h = _.get(g.toString())) && (p ? i.push.apply(i, A(e, { + pos: o[g] + u, + end: n.getLineEndOfPosition(o[g]) + }, l, p)) : l ? i.push({ + newText: f, + span: { + length: 0, + start: o[g] + u + } + }) : n.text.substr(o[g] + h, f.length) === f && i.push({ + newText: "", + span: { + length: f.length, + start: o[g] + h + } + })); + return i + } + + function A(e, t, r, n) { + for (var i = D.getCurrentSourceFile(e), a = [], o = i.text, s = !1, c = r || !1, l = [], u = t.pos, _ = void 0 !== n ? n : F.isInsideJsxElement(i, u), d = _ ? "{/*" : "/*", p = _ ? "*/}" : "*/", f = _ ? "\\{\\/\\*" : "\\/\\*", g = _ ? "\\*\\/\\}" : "\\*\\/"; u <= t.end;) { + var m = o.substr(u, d.length) === d ? d.length : 0, + y = F.isInComment(i, u + m); + u = y ? (_ && (y.pos--, y.end++), l.push(y.pos), 3 === y.kind && l.push(y.end), s = !0, y.end + 1) : (y = o.substring(u, t.end).search("(".concat(f, ")|(").concat(g, ")")), c = void 0 !== r ? r : c || !F.isTextWhiteSpaceLike(o, u, -1 === y ? t.end : u + y), -1 === y ? t.end + 1 : u + y + p.length) + } + if (c || !s) { + 2 !== (null == (e = F.isInComment(i, t.pos)) ? void 0 : e.kind) && F.insertSorted(l, t.pos, F.compareValues), F.insertSorted(l, t.end, F.compareValues); + n = l[0]; + o.substr(n, d.length) !== d && a.push({ + newText: d, + span: { + length: 0, + start: n + } + }); + for (var h = 1; h < l.length - 1; h++) o.substr(l[h] - p.length, p.length) !== p && a.push({ + newText: p, + span: { + length: 0, + start: l[h] + } + }), o.substr(l[h], d.length) !== d && a.push({ + newText: d, + span: { + length: 0, + start: l[h] + } + }); + a.length % 2 != 0 && a.push({ + newText: p, + span: { + length: 0, + start: l[l.length - 1] + } + }) + } else + for (var v = 0, b = l; v < b.length; v++) { + var x = b[v], + m = o.substr(0 < x - p.length ? x - p.length : 0, p.length) === p ? p.length : 0; + a.push({ + newText: "", + span: { + length: d.length, + start: x - m + } + }) + } + return a + } + + function l(e, t, r, n, i, a) { + t = "number" == typeof t ? [t, void 0] : [t.pos, t.end]; + return { + file: e, + startPosition: t[0], + endPosition: t[1], + program: o(), + host: g, + formatContext: F.formatting.getFormatContext(n, g), + cancellationToken: x, + preferences: r, + triggerReason: i, + kind: a + } + } + n.forEach(function(e, t) { + return n.set(e.toString(), Number(t)) + }); + var t = { + dispose: function() { + var t; + h && (t = m.getKeyForCompilationSettings(h.getCompilerOptions()), F.forEach(h.getSourceFiles(), function(e) { + return m.releaseDocumentWithKey(e.resolvedPath, t, e.scriptKind, e.impliedNodeFormat) + }), h = void 0), g = void 0 + }, + cleanupSemanticCache: function() { + h = void 0 + }, + getSyntacticDiagnostics: function(e) { + return p(), h.getSyntacticDiagnostics(d(e), x).slice() + }, + getSemanticDiagnostics: function(e) { + p(); + var e = d(e), + t = h.getSemanticDiagnostics(e, x); + return F.getEmitDeclarations(h.getCompilerOptions()) ? (e = h.getDeclarationDiagnostics(e, x), __spreadArray(__spreadArray([], t, !0), e, !0)) : t.slice() + }, + getSuggestionDiagnostics: function(e) { + return p(), F.computeSuggestionDiagnostics(d(e), h, x) + }, + getCompilerOptionsDiagnostics: function() { + return p(), __spreadArray(__spreadArray([], h.getOptionsDiagnostics(x), !0), h.getGlobalDiagnostics(x), !0) + }, + getSyntacticClassifications: function(e, t) { + return F.getSyntacticClassifications(x, D.getCurrentSourceFile(e), t) + }, + getSemanticClassifications: function(e, t, r) { + return p(), "2020" === (r || "original") ? F.classifier.v2020.getSemanticClassifications(h, x, d(e), t) : F.getSemanticClassifications(h.getTypeChecker(), x, d(e), h.getClassifiableNames(), t) + }, + getEncodedSyntacticClassifications: function(e, t) { + return F.getEncodedSyntacticClassifications(x, D.getCurrentSourceFile(e), t) + }, + getEncodedSemanticClassifications: function(e, t, r) { + return p(), "original" === (r || "original") ? F.getEncodedSemanticClassifications(h.getTypeChecker(), x, d(e), h.getClassifiableNames(), t) : F.classifier.v2020.getEncodedSemanticClassifications(h, x, d(e), t) + }, + getCompletionsAtPosition: function(e, t, r, n) { + void 0 === r && (r = F.emptyOptions); + var i = __assign(__assign({}, F.identity(r)), { + includeCompletionsForModuleExports: r.includeCompletionsForModuleExports || r.includeExternalModuleExports, + includeCompletionsWithInsertText: r.includeCompletionsWithInsertText || r.includeInsertTextCompletions + }); + return p(), F.Completions.getCompletionsAtPosition(g, h, T, d(e), t, i, r.triggerCharacter, r.triggerKind, x, n && F.formatting.getFormatContext(n, g)) + }, + getCompletionEntryDetails: function(e, t, r, n, i, a, o) { + return void 0 === a && (a = F.emptyOptions), p(), F.Completions.getCompletionEntryDetails(h, T, d(e), t, { + name: r, + source: i, + data: o + }, g, n && F.formatting.getFormatContext(n, g), a, x) + }, + getCompletionEntrySymbol: function(e, t, r, n, i) { + return void 0 === i && (i = F.emptyOptions), p(), F.Completions.getCompletionEntrySymbol(h, T, d(e), t, { + name: r, + source: n + }, g, i) + }, + getSignatureHelpItems: function(e, t, r) { + return r = (void 0 === r ? F.emptyOptions : r).triggerReason, p(), e = d(e), F.SignatureHelp.getSignatureHelpItems(h, e, t, r, x) + }, + getQuickInfoAtPosition: function(e, t) { + p(); + var r, n, i, a, o, s, c = d(e), + e = F.getTouchingPropertyName(c, t); + if (e !== c) return r = h.getTypeChecker(), n = function(e) { + if (F.isNewExpression(e.parent) && e.pos === e.parent.pos) return e.parent.expression; + if (F.isNamedTupleMember(e.parent) && e.pos === e.parent.pos) return e.parent; + if (F.isImportMeta(e.parent) && e.parent.name === e) return e.parent; + return e + }(e), !(i = function(e, t) { + var r = q(e); + if (r) { + var n = t.getContextualType(r.parent), + r = n && W(r, t, n, !1); + if (r && 1 === r.length) return F.first(r) + } + return t.getSymbolAtLocation(e) + }(n, r)) || r.isUnknownSymbol(i) ? (a = function(e, t, r) { + switch (t.kind) { + case 79: + return !F.isLabelName(t) && !F.isTagName(t) && !F.isConstTypeReference(t.parent); + case 208: + case 163: + return !F.isInComment(e, r); + case 108: + case 194: + case 106: + case 199: + return 1; + case 233: + return F.isImportMeta(t); + default: + return + } + }(c, n, t) ? r.getTypeAtLocation(n) : void 0) && { + kind: "", + kindModifiers: "", + textSpan: F.createTextSpanFromNode(n, c), + displayParts: r.runWithCancellationToken(x, function(e) { + return F.typeToDisplayParts(e, a, F.getContainerNode(n)) + }), + documentation: a.symbol ? a.symbol.getDocumentationComment(r) : void 0, + tags: a.symbol ? a.symbol.getJsDocTags(r) : void 0 + } : (t = (e = r.runWithCancellationToken(x, function(e) { + return F.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(e, i, c, F.getContainerNode(n), n) + })).symbolKind, o = e.displayParts, s = e.documentation, e = e.tags, { + kind: t, + kindModifiers: F.SymbolDisplay.getSymbolModifiers(r, i), + textSpan: F.createTextSpanFromNode(n, c), + displayParts: o, + documentation: s, + tags: e + }) + }, + getDefinitionAtPosition: function(e, t, r, n) { + return p(), F.GoToDefinition.getDefinitionAtPosition(h, d(e), t, r, n) + }, + getDefinitionAndBoundSpan: function(e, t) { + return p(), F.GoToDefinition.getDefinitionAndBoundSpan(h, d(e), t) + }, + getImplementationAtPosition: function(e, t) { + return p(), F.FindAllReferences.getImplementationsAtPosition(h, x, h.getSourceFiles(), d(e), t) + }, + getTypeDefinitionAtPosition: function(e, t) { + return p(), F.GoToDefinition.getTypeDefinitionAtPosition(h.getTypeChecker(), d(e), t) + }, + getReferencesAtPosition: function(e, t) { + return p(), s(F.getTouchingPropertyName(d(e), t), t, { + use: 1 + }, F.FindAllReferences.toReferenceEntry) + }, + findReferences: function(e, t) { + return p(), F.FindAllReferences.findReferencedSymbols(h, x, h.getSourceFiles(), d(e), t) + }, + getFileReferences: function(e) { + return p(), F.FindAllReferences.Core.getReferencesForFileName(e, h, h.getSourceFiles()).map(F.FindAllReferences.toReferenceEntry) + }, + getOccurrencesAtPosition: function(e, t) { + return F.flatMap(r(e, t, [e]), function(t) { + return t.highlightSpans.map(function(e) { + return __assign(__assign({ + fileName: t.fileName, + textSpan: e.textSpan, + isWriteAccess: "writtenReference" === e.kind + }, e.isInString && { + isInString: !0 + }), e.contextSpan && { + contextSpan: e.contextSpan + }) + }) + }) + }, + getDocumentHighlights: r, + getNameOrDottedNameSpan: function(e, t, r) { + if (e = D.getCurrentSourceFile(e), (t = F.getTouchingPropertyName(e, t)) !== e) { + switch (t.kind) { + case 208: + case 163: + case 10: + case 95: + case 110: + case 104: + case 106: + case 108: + case 194: + case 79: + break; + default: + return + } + for (var n = t;;) + if (F.isRightSideOfPropertyAccess(n) || F.isRightSideOfQualifiedName(n)) n = n.parent; + else { + if (!F.isNameOfModuleDeclaration(n)) break; + if (264 !== n.parent.parent.kind || n.parent.parent.body !== n.parent) break; + n = n.parent.parent.name + } + return F.createTextSpanFromBounds(n.getStart(), t.getEnd()) + } + }, + getBreakpointStatementAtPosition: function(e, t) { + return e = D.getCurrentSourceFile(e), F.BreakpointResolver.spanInSourceFileAtLocation(e, t) + }, + getNavigateToItems: function(e, t, r, n) { + return void 0 === n && (n = !1), p(), r = r ? [d(r)] : h.getSourceFiles(), F.NavigateTo.getNavigateToItems(r, h.getTypeChecker(), x, e, t, n) + }, + getRenameInfo: function(e, t, r) { + return p(), F.Rename.getRenameInfo(h, d(e), t, r || {}) + }, + getSmartSelectionRange: function(e, t) { + return F.SmartSelectionRange.getSmartSelectionRange(t, D.getCurrentSourceFile(e)) + }, + findRenameLocations: function(e, t, r, n, i) { + p(); + var a, o = d(e), + e = F.getAdjustedRenameLocation(F.getTouchingPropertyName(o, t)); + if (F.Rename.nodeIsEligibleForRename(e)) return F.isIdentifier(e) && (F.isJsxOpeningElement(e.parent) || F.isJsxClosingElement(e.parent)) && F.isIntrinsicJsxName(e.escapedText) ? [(a = e.parent.parent).openingElement, a.closingElement].map(function(e) { + var t = F.createTextSpanFromNode(e.tagName, o); + return __assign({ + fileName: o.fileName, + textSpan: t + }, F.FindAllReferences.toContextSpan(t, o, e.parent)) + }) : s(e, t, { + findInStrings: r, + findInComments: n, + providePrefixAndSuffixTextForRename: i, + use: 2 + }, function(e, t, r) { + return F.FindAllReferences.toRenameLocation(e, t, r, i || !1) + }) + }, + getNavigationBarItems: function(e) { + return F.NavigationBar.getNavigationBarItems(D.getCurrentSourceFile(e), x) + }, + getNavigationTree: function(e) { + return F.NavigationBar.getNavigationTree(D.getCurrentSourceFile(e), x) + }, + getOutliningSpans: function(e) { + return e = D.getCurrentSourceFile(e), F.OutliningElementsCollector.collectElements(e, x) + }, + getTodoComments: function(e, t) { + p(); + var r, n = d(e), + i = (x.throwIfCancellationRequested(), n.text), + a = []; + if (0 < t.length && (e = n.fileName, !F.stringContains(e, "/node_modules/"))) { + e = "(" + /(?:^(?:\s|\*)*)/.source + "|" + /(?:\/\/+\s*)/.source + "|" + /(?:\/\*+\s*)/.source + ")", r = "(?:" + F.map(t, function(e) { + return "(" + e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&") + ")" + }).join("|") + ")"; + for (var o, s = new RegExp(e + "(" + r + /(?:.*?)/.source + ")" + /(?:$|\*\/)/.source, "gim"); o = s.exec(i);) { + x.throwIfCancellationRequested(); + F.Debug.assert(o.length === t.length + 3); + var c = o[1], + c = o.index + c.length; + if (F.isInComment(n, c)) { + for (var l, u = void 0, _ = 0; _ < t.length; _++) o[_ + 3] && (u = t[_]); + if (void 0 === u) return F.Debug.fail(); + 97 <= (l = i.charCodeAt(c + u.text.length)) && l <= 122 || 65 <= l && l <= 90 || 48 <= l && l <= 57 || (l = o[2], a.push({ + descriptor: u, + message: l, + position: c + })) + } + } + } + return a + }, + getBraceMatchingAtPosition: function(e, t) { + var e = D.getCurrentSourceFile(e), + r = F.getTouchingToken(e, t); + return (t = (t = r.getStart(e) === t ? n.get(r.kind.toString()) : void 0) && F.findChildOfKind(r.parent, t, e)) ? [F.createTextSpanFromNode(r, e), F.createTextSpanFromNode(t, e)].sort(function(e, t) { + return e.start - t.start + }) : F.emptyArray + }, + getIndentationAtPosition: function(e, t, r) { + var n = F.timestamp(), + r = P(r), + e = D.getCurrentSourceFile(e), + t = (T("getIndentationAtPosition: getCurrentSourceFile: " + (F.timestamp() - n)), n = F.timestamp(), F.formatting.SmartIndenter.getIndentation(t, e, r)); + return T("getIndentationAtPosition: computeIndentation : " + (F.timestamp() - n)), t + }, + getFormattingEditsForRange: function(e, t, r, n) { + return e = D.getCurrentSourceFile(e), F.formatting.formatSelection(t, r, e, F.formatting.getFormatContext(P(n), g)) + }, + getFormattingEditsForDocument: function(e, t) { + return F.formatting.formatDocument(D.getCurrentSourceFile(e), F.formatting.getFormatContext(P(t), g)) + }, + getFormattingEditsAfterKeystroke: function(e, t, r, n) { + var i = D.getCurrentSourceFile(e), + a = F.formatting.getFormatContext(P(n), g); + if (!F.isInComment(i, t)) switch (r) { + case "{": + return F.formatting.formatOnOpeningCurly(t, i, a); + case "}": + return F.formatting.formatOnClosingCurly(t, i, a); + case ";": + return F.formatting.formatOnSemicolon(t, i, a); + case "\n": + return F.formatting.formatOnEnter(t, i, a) + } + return [] + }, + getDocCommentTemplateAtPosition: function(e, t, r) { + return F.JsDoc.getDocCommentTemplateAtPosition(F.getNewLineOrDefaultFromHost(g), D.getCurrentSourceFile(e), t, r) + }, + isValidBraceCompletionAtPosition: function(e, t, r) { + if (60 === r) return !1; + var n = D.getCurrentSourceFile(e); + if (F.isInString(n, t)) return !1; + if (F.isInsideJsxElementOrAttribute(n, t)) return 123 === r; + if (F.isInTemplateString(n, t)) return !1; + switch (r) { + case 39: + case 34: + case 96: + return !F.isInComment(n, t) + } + return !0 + }, + getJsxClosingTagAtPosition: function(e, t) { + var r, e = D.getCurrentSourceFile(e); + if (t = F.findPrecedingToken(t, e)) return (r = 31 === t.kind && F.isJsxOpeningElement(t.parent) ? t.parent.parent : F.isJsxText(t) && F.isJsxElement(t.parent) ? t.parent : void 0) && function e(t) { + var r = t.openingElement, + n = t.closingElement, + t = t.parent; + return !F.tagNamesAreEquivalent(r.tagName, n.tagName) || F.isJsxElement(t) && F.tagNamesAreEquivalent(r.tagName, t.openingElement.tagName) && e(t) + }(r) ? { + newText: "") + } : (r = 31 === t.kind && F.isJsxOpeningFragment(t.parent) ? t.parent.parent : F.isJsxText(t) && F.isJsxFragment(t.parent) ? t.parent : void 0) && function e(t) { + var r = t.closingFragment, + t = t.parent; + return !!(131072 & r.flags) || F.isJsxFragment(t) && e(t) + }(r) ? { + newText: "" + } : void 0 + }, + getSpanOfEnclosingComment: function(e, t, r) { + return e = D.getCurrentSourceFile(e), !(e = F.formatting.getRangeOfEnclosingComment(e, t)) || r && 3 !== e.kind ? void 0 : F.createTextSpanFromRange(e) + }, + getCodeFixesAtPosition: function(e, t, r, n, i, a) { + void 0 === a && (a = F.emptyOptions), p(); + var o = d(e), + s = F.createTextSpanFromBounds(t, r), + c = F.formatting.getFormatContext(i, g); + return F.flatMap(F.deduplicate(n, F.equateValues, F.compareValues), function(e) { + return x.throwIfCancellationRequested(), F.codefix.getFixes({ + errorCode: e, + sourceFile: o, + span: s, + program: h, + host: g, + cancellationToken: x, + formatContext: c, + preferences: a + }) + }) + }, + getCombinedCodeFix: function(e, t, r, n) { + return void 0 === n && (n = F.emptyOptions), p(), F.Debug.assert("file" === e.type), e = d(e.fileName), r = F.formatting.getFormatContext(r, g), F.codefix.getAllFixes({ + fixId: t, + sourceFile: e, + program: h, + host: g, + cancellationToken: x, + formatContext: r, + preferences: n + }) + }, + applyCodeActionCommand: function(e, t) { + return t = "string" == typeof e ? t : e, F.isArray(t) ? Promise.all(t.map(i)) : i(t) + }, + organizeImports: function(e, t, r) { + void 0 === r && (r = F.emptyOptions), p(), F.Debug.assert("file" === e.type); + var n = d(e.fileName), + t = F.formatting.getFormatContext(t, g), + i = null != (i = e.mode) ? i : e.skipDestructiveCodeActions ? "SortAndCombine" : "All"; + return F.OrganizeImports.organizeImports(n, t, g, h, r, i) + }, + getEditsForFileRename: function(e, t, r, n) { + return void 0 === n && (n = F.emptyOptions), F.getEditsForFileRename(o(), e, t, g, F.formatting.getFormatContext(r, g), n, k) + }, + getEmitOutput: function(e, t, r) { + p(); + var e = d(e), + n = g.getCustomTransformers && g.getCustomTransformers(); + return F.getFileEmitOutput(h, e, !!t, x, n, r) + }, + getNonBoundSourceFile: function(e) { + return D.getCurrentSourceFile(e) + }, + getProgram: o, + getCurrentProgram: function() { + return h + }, + getAutoImportProvider: function() { + var e; + return null == (e = g.getPackageJsonAutoImportProvider) ? void 0 : e.call(g) + }, + updateIsDefinitionOfReferencedSymbols: function(s, c) { + var l = h.getTypeChecker(), + e = function() { + for (var e = 0, t = s; e < t.length; e++) + for (var r = t[e], n = 0, i = r.references; n < i.length; n++) { + var a = i[n]; + if (c.has(a)) return o = u(a), F.Debug.assertIsDefined(o), l.getSymbolAtLocation(o); + var o, a = F.getMappedDocumentSpan(a, k, F.maybeBind(g, g.fileExists)); + if (a && c.has(a)) + if (o = u(a)) return l.getSymbolAtLocation(o) + } + return + }(); + if (!e) return !1; + for (var t = 0, r = s; t < r.length; t++) + for (var n = 0, i = r[t].references; n < i.length; n++) { + var a = i[n], + o = u(a); + F.Debug.assertIsDefined(o), c.has(a) || F.FindAllReferences.isDeclarationOfSymbol(o, e) ? (c.add(a), a.isDefinition = !0, (o = F.getMappedDocumentSpan(a, k, F.maybeBind(g, g.fileExists))) && c.add(o)) : a.isDefinition = !1 + } + return !0; + + function u(e) { + var t = h.getSourceFile(e.fileName); + if (t) return t = F.getTouchingPropertyName(t, e.textSpan.start), F.FindAllReferences.Core.getAdjustedNode(t, { + use: 1 + }) + } + }, + getApplicableRefactors: function(e, t, r, n, i) { + return void 0 === r && (r = F.emptyOptions), p(), e = d(e), F.refactor.getApplicableRefactors(l(e, t, r, F.emptyOptions, n, i)) + }, + getEditsForRefactor: function(e, t, r, n, i, a) { + return void 0 === a && (a = F.emptyOptions), p(), e = d(e), F.refactor.getEditsForRefactor(l(e, r, a, t), n, i) + }, + toLineColumnOffset: function(e, t) { + return 0 === t ? { + line: 0, + character: 0 + } : k.toLineColumnOffset(e, t) + }, + getSourceMapper: function() { + return k + }, + clearSourceMapperCache: function() { + return k.clearCache() + }, + prepareCallHierarchy: function(e, t) { + return p(), (e = F.CallHierarchy.resolveCallHierarchyDeclaration(h, F.getTouchingPropertyName(d(e), t))) && F.mapOneOrMany(e, function(e) { + return F.CallHierarchy.createCallHierarchyItem(h, e) + }) + }, + provideCallHierarchyIncomingCalls: function(e, t) { + return p(), e = d(e), (e = F.firstOrOnly(F.CallHierarchy.resolveCallHierarchyDeclaration(h, 0 === t ? e : F.getTouchingPropertyName(e, t)))) ? F.CallHierarchy.getIncomingCalls(h, e, x) : [] + }, + provideCallHierarchyOutgoingCalls: function(e, t) { + return p(), e = d(e), (e = F.firstOrOnly(F.CallHierarchy.resolveCallHierarchyDeclaration(h, 0 === t ? e : F.getTouchingPropertyName(e, t)))) ? F.CallHierarchy.getOutgoingCalls(h, e) : [] + }, + toggleLineComment: c, + toggleMultilineComment: A, + commentSelection: function(e, t) { + var r = N(D.getCurrentSourceFile(e), t); + return (r.firstLine === r.lastLine && t.pos !== t.end ? A : c)(e, t, !0) + }, + uncommentSelection: function(e, t) { + var r = D.getCurrentSourceFile(e), + n = [], + i = t.pos, + a = t.end; + i === a && (a += F.isInsideJsxElement(r, i) ? 2 : 1); + for (var o = i; o <= a; o++) { + var s = F.isInComment(r, o); + if (s) { + switch (s.kind) { + case 2: + n.push.apply(n, c(e, { + end: s.end, + pos: s.pos + 1 + }, !1)); + break; + case 3: + n.push.apply(n, A(e, { + end: s.end, + pos: s.pos + 1 + }, !1)) + } + o = s.end + 1 + } + } + return n + }, + provideInlayHints: function(e, t, r) { + return void 0 === r && (r = F.emptyOptions), p(), e = d(e), F.InlayHints.provideInlayHints((t = t, r = r, { + file: e, + program: o(), + host: g, + span: t, + preferences: r, + cancellationToken: x + })) + } + }; + switch (y) { + case F.LanguageServiceMode.Semantic: + break; + case F.LanguageServiceMode.PartialSemantic: + M.forEach(function(e) { + return t[e] = function() { + throw new Error("LanguageService Operation: ".concat(e, " not allowed in LanguageServiceMode.PartialSemantic")) + } + }); + break; + case F.LanguageServiceMode.Syntactic: + V.forEach(function(e) { + return t[e] = function() { + throw new Error("LanguageService Operation: ".concat(e, " not allowed in LanguageServiceMode.Syntactic")) + } + }); + break; + default: + F.Debug.assertNever(y) + } + return t + }, F.getNameTable = function(e) { + var t, s; + return e.nameTable || (s = (t = e).nameTable = new F.Map, t.forEachChild(function e(t) { + var r, n; + if (F.isIdentifier(t) && !F.isTagName(t) && t.escapedText || F.isStringOrNumericLiteralLike(t) && (n = t, F.isDeclarationName(n) || 280 === n.parent.kind || function(e) { + return e && e.parent && 209 === e.parent.kind && e.parent.argumentExpression === e + }(n) || F.isLiteralComputedPropertyDeclarationName(n)) ? (r = F.getEscapedTextOfIdentifierOrLiteral(t), s.set(r, void 0 === s.get(r) ? t.pos : -1)) : F.isPrivateIdentifier(t) && (r = t.escapedText, s.set(r, void 0 === s.get(r) ? t.pos : -1)), F.forEachChild(t, e), F.hasJSDocNodes(t)) + for (var i = 0, a = t.jsDoc; i < a.length; i++) { + var o = a[i]; + F.forEachChild(o, e) + } + })), e.nameTable + }, F.getContainingObjectLiteralElement = q, F.getPropertySymbolsFromContextualType = W, F.getDefaultLibFilePath = function(e) { + if ("undefined" != typeof __dirname) return F.combinePaths(__dirname, F.getDefaultLibFileName(e)); + throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ") + }, F.setObjectAllocator({ + getNodeConstructor: function() { + return i + }, + getTokenConstructor: function() { + return o + }, + getIdentifierConstructor: function() { + return _ + }, + getPrivateIdentifierConstructor: function() { + return f + }, + getSourceFileConstructor: function() { + return j + }, + getSymbolConstructor: function() { + return L + }, + getTypeConstructor: function() { + return R + }, + getSignatureConstructor: function() { + return B + }, + getSourceMapSourceConstructor: function() { + return J + } + }) + }(ts = ts || {}), ! function(L) { + (L.BreakpointResolver || (L.BreakpointResolver = {})).spanInSourceFileAtLocation = function(A, e) { + if (!A.isDeclarationFile) { + var t = L.getTokenAtPosition(A, e), + r = A.getLineAndCharacterOfPosition(e).line; + if (A.getLineAndCharacterOfPosition(t.getStart(A)).line > r) { + e = L.findPrecedingToken(t.pos, A); + if (!e || A.getLineAndCharacterOfPosition(e.getEnd()).line !== r) return; + t = e + } + if (!(16777216 & t.flags)) return M(t) + } + + function F(e, t) { + var r = L.canHaveDecorators(e) ? L.findLast(e.modifiers, L.isDecorator) : void 0, + r = r ? L.skipTrivia(A.text, r.end) : e.getStart(A); + return L.createTextSpanFromBounds(r, (t || e).getEnd()) + } + + function P(e, t) { + return F(e, L.findNextToken(t, t.parent, A)) + } + + function w(e, t) { + return e && r === A.getLineAndCharacterOfPosition(e.getStart(A)).line ? M(e) : M(t) + } + + function I(e) { + return M(L.findPrecedingToken(e.pos, A)) + } + + function O(e) { + return M(L.findNextToken(e, e.parent, A)) + } + + function M(e) { + if (e) { + var t = e.parent; + switch (e.kind) { + case 240: + return D(e.declarationList.declarations[0]); + case 257: + case 169: + case 168: + return D(e); + case 166: + return function e(t) { + { + var r; + return L.isBindingPattern(t.name) ? k(t.name) : S(t) ? F(t) : (r = t.parent, t = r.parameters.indexOf(t), L.Debug.assert(-1 !== t), 0 !== t ? e(r.parameters[t - 1]) : M(r.body)) + } + }(e); + case 259: + case 171: + case 170: + case 174: + case 175: + case 173: + case 215: + case 216: + var r = e; + return r.body ? T(r) ? F(r) : M(r.body) : void 0; + case 238: + if (L.isFunctionBlock(e)) return n = (r = e).statements.length ? r.statements[0] : r.getLastToken(), T(r.parent) ? w(r.parent, n) : M(n); + case 265: + return C(e); + case 295: + return C(e.block); + case 241: + return F(e.expression); + case 250: + return F(e.getChildAt(0), e.expression); + case 244: + return P(e, e.expression); + case 243: + return M(e.statement); + case 256: + return F(e.getChildAt(0)); + case 242: + return P(e, e.expression); + case 253: + return M(e.statement); + case 249: + case 248: + return F(e.getChildAt(0), e.label); + case 245: + var n = e; + return n.initializer ? E(n) : n.condition ? F(n.condition) : n.incrementor ? F(n.incrementor) : void 0; + case 246: + return P(e, e.expression); + case 247: + return E(e); + case 252: + return P(e, e.expression); + case 292: + case 293: + return M(e.statements[0]); + case 255: + return C(e.tryBlock); + case 254: + case 274: + return F(e, e.expression); + case 268: + return F(e, e.moduleReference); + case 269: + case 275: + return F(e, e.moduleSpecifier); + case 264: + if (1 !== L.getModuleInstanceState(e)) return; + case 260: + case 263: + case 302: + case 205: + return F(e); + case 251: + return M(e.statement); + case 167: + var i = t.modifiers, + a = e, + o = L.isDecorator; + if (i) { + var s = i.indexOf(a); + if (0 <= s) { + for (var c = s, l = s + 1; 0 < c && o(i[c - 1]);) c--; + for (; l < i.length && o(i[l]);) l++; + return L.createTextSpanFromBounds(L.skipTrivia(A.text, i[c].pos), i[l - 1].end) + } + } + return F(a); + case 203: + case 204: + return k(e); + case 261: + case 262: + return; + case 26: + case 1: + return w(L.findPrecedingToken(e.pos, A)); + case 27: + return I(e); + case 18: + var u = e; + switch (u.parent.kind) { + case 263: + var _ = u.parent; + return w(L.findPrecedingToken(u.pos, A, u.parent), _.members.length ? _.members[0] : _.getLastToken(A)); + case 260: + _ = u.parent; + return w(L.findPrecedingToken(u.pos, A, u.parent), _.members.length ? _.members[0] : _.getLastToken(A)); + case 266: + return w(u.parent.parent, u.parent.clauses[0]) + } + return M(u.parent); + case 19: + var d = e; + switch (d.parent.kind) { + case 265: + if (1 !== L.getModuleInstanceState(d.parent.parent)) return; + case 263: + case 260: + return F(d); + case 238: + if (L.isFunctionBlock(d.parent)) return F(d); + case 295: + return M(L.lastOrUndefined(d.parent.statements)); + case 266: + var p = d.parent, + p = L.lastOrUndefined(p.clauses); + return p ? M(L.lastOrUndefined(p.statements)) : void 0; + case 203: + p = d.parent; + return M(L.lastOrUndefined(p.elements) || p); + default: + return L.isArrayLiteralOrObjectLiteralDestructuringPattern(d.parent) ? (p = d.parent, F(L.lastOrUndefined(p.properties) || p)) : M(d.parent) + } + return; + case 23: + s = e; + return 204 === s.parent.kind ? (g = s.parent, F(L.lastOrUndefined(g.elements) || g)) : L.isArrayLiteralOrObjectLiteralDestructuringPattern(s.parent) ? (g = s.parent, F(L.lastOrUndefined(g.elements) || g)) : M(s.parent); + case 20: + return 243 !== (a = e).parent.kind && 210 !== a.parent.kind && 211 !== a.parent.kind ? 214 !== a.parent.kind ? M(a.parent) : O(a) : I(a); + case 21: + var f = e; + switch (f.parent.kind) { + case 215: + case 259: + case 216: + case 171: + case 170: + case 174: + case 175: + case 173: + case 244: + case 243: + case 245: + case 247: + case 210: + case 211: + case 214: + return I(f); + default: + return M(f.parent) + } + return; + case 58: + var g = e; + return L.isFunctionLike(g.parent) || 299 === g.parent.kind || 166 === g.parent.kind ? I(g) : M(g.parent); + case 31: + case 29: + return 213 !== (b = e).parent.kind ? M(b.parent) : O(b); + case 115: + return 243 !== (b = e).parent.kind ? M(b.parent) : P(b, b.parent.expression); + case 91: + case 83: + case 96: + return O(e); + case 162: + return 247 !== (y = e).parent.kind ? M(y.parent) : O(y); + default: + if (L.isArrayLiteralOrObjectLiteralDestructuringPattern(e)) return N(e); + if ((79 === e.kind || 227 === e.kind || 299 === e.kind || 300 === e.kind) && L.isArrayLiteralOrObjectLiteralDestructuringPattern(t)) return F(e); + if (223 === e.kind) { + var m = e.left, + y = e.operatorToken; + if (L.isArrayLiteralOrObjectLiteralDestructuringPattern(m)) return N(m); + if (63 === y.kind && L.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent)) return F(e); + if (27 === y.kind) return M(m) + } + if (L.isExpressionNode(e)) switch (t.kind) { + case 243: + return I(e); + case 167: + return M(e.parent); + case 245: + case 247: + return F(e); + case 223: + if (27 === e.parent.operatorToken.kind) return F(e); + break; + case 216: + if (e.parent.body === e) return F(e) + } + switch (e.parent.kind) { + case 299: + if (e.parent.name !== e || L.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent.parent)) break; + return M(e.parent.initializer); + case 213: + if (e.parent.type === e) return O(e.parent.type); + break; + case 257: + case 166: + var h = e.parent, + v = h.initializer, + h = h.type; + if (v === e || h === e || L.isAssignmentOperator(e.kind)) return I(e); + break; + case 223: + m = e.parent.left; + if (L.isArrayLiteralOrObjectLiteralDestructuringPattern(m) && e !== m) return I(e); + break; + default: + if (L.isFunctionLike(e.parent) && e.parent.type === e) return I(e) + } + return M(e.parent) + } + } + var y, b; + + function x(e) { + return L.isVariableDeclarationList(e.parent) && e.parent.declarations[0] === e ? F(L.findPrecedingToken(e.pos, A, e.parent), e) : F(e) + } + + function D(e) { + var t; + return 246 === e.parent.parent.kind ? M(e.parent.parent) : (t = e.parent, L.isBindingPattern(e.name) ? k(e.name) : L.hasOnlyExpressionInitializer(e) && e.initializer || L.hasSyntacticModifier(e, 1) || 247 === t.parent.kind ? x(e) : L.isVariableDeclarationList(e.parent) && e.parent.declarations[0] !== e ? M(L.findPrecedingToken(e.pos, A, e.parent)) : void 0) + } + + function S(e) { + return !!e.initializer || void 0 !== e.dotDotDotToken || L.hasSyntacticModifier(e, 12) + } + + function T(e) { + return L.hasSyntacticModifier(e, 1) || 260 === e.parent.kind && 173 !== e.kind + } + + function C(e) { + switch (e.parent.kind) { + case 264: + if (1 !== L.getModuleInstanceState(e.parent)) return; + case 244: + case 242: + case 246: + return w(e.parent, e.statements[0]); + case 245: + case 247: + return w(L.findPrecedingToken(e.pos, A, e.parent), e.statements[0]) + } + return M(e.statements[0]) + } + + function E(e) { + return 258 !== e.initializer.kind ? M(e.initializer) : 0 < (e = e.initializer).declarations.length ? M(e.declarations[0]) : void 0 + } + + function k(e) { + var t = L.forEach(e.elements, function(e) { + return 229 !== e.kind ? e : void 0 + }); + return t ? M(t) : (205 === e.parent.kind ? F : x)(e.parent) + } + + function N(e) { + L.Debug.assert(204 !== e.kind && 203 !== e.kind); + var t = 206 === e.kind ? e.elements : e.properties, + t = L.forEach(t, function(e) { + return 229 !== e.kind ? e : void 0 + }); + return t ? M(t) : F(223 === e.parent.kind ? e.parent : e) + } + } + } + }(ts = ts || {}), ! function(i) { + i.transform = function(e, t, r) { + var n = [], + e = (r = i.fixupCompilerOptions(r, n), i.isArray(e) ? e : [e]); + return (r = i.transformNodes(void 0, void 0, i.factory, r, e, t, !0)).diagnostics = i.concatenate(r.diagnostics, n), r + } + }(ts = ts || {}), function() { + return this + }()); +if (! function(_) { + function d(e, t) { + e && e.log("*INTERNAL ERROR* - Exception in typescript services: " + t.message) + } + e.prototype.getText = function(e, t) { + return this.scriptSnapshotShim.getText(e, t) + }, e.prototype.getLength = function() { + return this.scriptSnapshotShim.getLength() + }, e.prototype.getChangeRange = function(e) { + var e = this.scriptSnapshotShim.getChangeRange(e.scriptSnapshotShim); + return null === e ? null : (e = JSON.parse(e), _.createTextChangeRange(_.createTextSpan(e.span.start, e.span.length), e.newLength)) + }, e.prototype.dispose = function() { + "dispose" in this.scriptSnapshotShim && this.scriptSnapshotShim.dispose() + }; + var t = e; + + function e(e) { + this.scriptSnapshotShim = e + } + r.prototype.log = function(e) { + this.loggingEnabled && this.shimHost.log(e) + }, r.prototype.trace = function(e) { + this.tracingEnabled && this.shimHost.trace(e) + }, r.prototype.error = function(e) { + this.shimHost.error(e) + }, r.prototype.getProjectVersion = function() { + if (this.shimHost.getProjectVersion) return this.shimHost.getProjectVersion() + }, r.prototype.getTypeRootsVersion = function() { + return this.shimHost.getTypeRootsVersion ? this.shimHost.getTypeRootsVersion() : 0 + }, r.prototype.useCaseSensitiveFileNames = function() { + return !!this.shimHost.useCaseSensitiveFileNames && this.shimHost.useCaseSensitiveFileNames() + }, r.prototype.getCompilationSettings = function() { + var e = this.shimHost.getCompilationSettings(); + if (null === e || "" === e) throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings"); + e = JSON.parse(e); + return e.allowNonTsExtensions = !0, e + }, r.prototype.getScriptFileNames = function() { + var e = this.shimHost.getScriptFileNames(); + return JSON.parse(e) + }, r.prototype.getScriptSnapshot = function(e) { + e = this.shimHost.getScriptSnapshot(e); + return e && new t(e) + }, r.prototype.getScriptKind = function(e) { + return "getScriptKind" in this.shimHost ? this.shimHost.getScriptKind(e) : 0 + }, r.prototype.getScriptVersion = function(e) { + return this.shimHost.getScriptVersion(e) + }, r.prototype.getLocalizedDiagnosticMessages = function() { + var e = this.shimHost.getLocalizedDiagnosticMessages(); + if (null === e || "" === e) return null; + try { + return JSON.parse(e) + } catch (e) { + return this.log(e.description || "diagnosticMessages.generated.json has invalid JSON format"), null + } + }, r.prototype.getCancellationToken = function() { + var e = this.shimHost.getCancellationToken(); + return new _.ThrottledCancellationToken(e) + }, r.prototype.getCurrentDirectory = function() { + return this.shimHost.getCurrentDirectory() + }, r.prototype.getDirectories = function(e) { + return JSON.parse(this.shimHost.getDirectories(e)) + }, r.prototype.getDefaultLibFileName = function(e) { + return this.shimHost.getDefaultLibFileName(JSON.stringify(e)) + }, r.prototype.readDirectory = function(e, t, r, n, i) { + r = _.getFileMatcherPatterns(e, r, n, this.shimHost.useCaseSensitiveFileNames(), this.shimHost.getCurrentDirectory()); + return JSON.parse(this.shimHost.readDirectory(e, JSON.stringify(t), JSON.stringify(r.basePaths), r.excludePattern, r.includeFilePattern, r.includeDirectoryPattern, i)) + }, r.prototype.readFile = function(e, t) { + return this.shimHost.readFile(e, t) + }, r.prototype.fileExists = function(e) { + return this.shimHost.fileExists(e) + }; + var n = r; + + function r(e) { + var n = this; + this.shimHost = e, this.loggingEnabled = !1, this.tracingEnabled = !1, "getModuleResolutionsForFile" in this.shimHost && (this.resolveModuleNames = function(e, t) { + var r = JSON.parse(n.shimHost.getModuleResolutionsForFile(t)); + return _.map(e, function(e) { + e = _.getProperty(r, e); + return e ? { + resolvedFileName: e, + extension: _.extensionFromPath(e), + isExternalLibraryImport: !1 + } : void 0 + }) + }), "directoryExists" in this.shimHost && (this.directoryExists = function(e) { + return n.shimHost.directoryExists(e) + }), "getTypeReferenceDirectiveResolutionsForFile" in this.shimHost && (this.resolveTypeReferenceDirectives = function(e, t) { + var r = JSON.parse(n.shimHost.getTypeReferenceDirectiveResolutionsForFile(t)); + return _.map(e, function(e) { + return _.getProperty(r, _.isString(e) ? e : e.fileName.toLowerCase()) + }) + }) + } + _.LanguageServiceShimHostAdapter = n; + a.prototype.readDirectory = function(e, t, r, n, i) { + r = _.getFileMatcherPatterns(e, r, n, this.shimHost.useCaseSensitiveFileNames(), this.shimHost.getCurrentDirectory()); + return JSON.parse(this.shimHost.readDirectory(e, JSON.stringify(t), JSON.stringify(r.basePaths), r.excludePattern, r.includeFilePattern, r.includeDirectoryPattern, i)) + }, a.prototype.fileExists = function(e) { + return this.shimHost.fileExists(e) + }, a.prototype.readFile = function(e) { + return this.shimHost.readFile(e) + }, a.prototype.getDirectories = function(e) { + return JSON.parse(this.shimHost.getDirectories(e)) + }; + var i = a; + + function a(e) { + var t = this; + this.shimHost = e, this.useCaseSensitiveFileNames = !!this.shimHost.useCaseSensitiveFileNames && this.shimHost.useCaseSensitiveFileNames(), "directoryExists" in this.shimHost ? this.directoryExists = function(e) { + return t.shimHost.directoryExists(e) + } : this.directoryExists = void 0, "realpath" in this.shimHost ? this.realpath = function(e) { + return t.shimHost.realpath(e) + } : this.realpath = void 0 + } + + function o(e, t, r, n) { + return s(e, t, !0, r, n) + } + + function s(t, r, e, n, i) { + try { + o = t, s = r, c = n, (l = i) && (o.log(s), u = _.timestamp()), c = c(), l && (l = _.timestamp(), o.log("".concat(s, " completed in ").concat(l - u, " msec")), _.isString(c)) && (128 < (s = c).length && (s = s.substring(0, 128) + "..."), o.log(" result.length=".concat(s.length, ", result='").concat(JSON.stringify(s), "'"))); + var a = c; + return e ? JSON.stringify({ + result: a + }) : a + } catch (e) { + return e instanceof _.OperationCanceledException ? JSON.stringify({ + canceled: !0 + }) : (d(t, e), e.description = r, JSON.stringify({ + error: e + })) + } + var o, s, c, l, u + } + _.CoreServicesShimHostAdapter = i; + l.prototype.dispose = function(e) { + this.factory.unregisterShim(this) + }; + var c = l; + + function l(e) { + (this.factory = e).registerShim(this) + } + + function u(e, t) { + return e.map(function(e) { + return e = e, { + message: _.flattenDiagnosticMessageText(e.messageText, t), + start: e.start, + length: e.length, + category: _.diagnosticCategoryName(e), + code: e.code, + reportsUnnecessary: e.reportsUnnecessary, + reportsDeprecated: e.reportsDeprecated + } + }) + } + _.realizeDiagnostics = u; + __extends(g, p = c), g.prototype.forwardJSONCall = function(e, t) { + return o(this.logger, e, t, this.logPerformance) + }, g.prototype.dispose = function(e) { + this.logger.log("dispose()"), this.languageService.dispose(), this.languageService = null, debugObjectHost && debugObjectHost.CollectGarbage && (debugObjectHost.CollectGarbage(), this.logger.log("CollectGarbage()")), this.logger = null, p.prototype.dispose.call(this, e) + }, g.prototype.refresh = function(e) { + this.forwardJSONCall("refresh(".concat(e, ")"), function() { + return null + }) + }, g.prototype.cleanupSemanticCache = function() { + var e = this; + this.forwardJSONCall("cleanupSemanticCache()", function() { + return e.languageService.cleanupSemanticCache(), null + }) + }, g.prototype.realizeDiagnostics = function(e) { + return u(e, _.getNewLineOrDefaultFromHost(this.host)) + }, g.prototype.getSyntacticClassifications = function(e, t, r) { + var n = this; + return this.forwardJSONCall("getSyntacticClassifications('".concat(e, "', ").concat(t, ", ").concat(r, ")"), function() { + return n.languageService.getSyntacticClassifications(e, _.createTextSpan(t, r)) + }) + }, g.prototype.getSemanticClassifications = function(e, t, r) { + var n = this; + return this.forwardJSONCall("getSemanticClassifications('".concat(e, "', ").concat(t, ", ").concat(r, ")"), function() { + return n.languageService.getSemanticClassifications(e, _.createTextSpan(t, r)) + }) + }, g.prototype.getEncodedSyntacticClassifications = function(e, t, r) { + var n = this; + return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(e, "', ").concat(t, ", ").concat(r, ")"), function() { + return m(n.languageService.getEncodedSyntacticClassifications(e, _.createTextSpan(t, r))) + }) + }, g.prototype.getEncodedSemanticClassifications = function(e, t, r) { + var n = this; + return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(e, "', ").concat(t, ", ").concat(r, ")"), function() { + return m(n.languageService.getEncodedSemanticClassifications(e, _.createTextSpan(t, r))) + }) + }, g.prototype.getSyntacticDiagnostics = function(t) { + var r = this; + return this.forwardJSONCall("getSyntacticDiagnostics('".concat(t, "')"), function() { + var e = r.languageService.getSyntacticDiagnostics(t); + return r.realizeDiagnostics(e) + }) + }, g.prototype.getSemanticDiagnostics = function(t) { + var r = this; + return this.forwardJSONCall("getSemanticDiagnostics('".concat(t, "')"), function() { + var e = r.languageService.getSemanticDiagnostics(t); + return r.realizeDiagnostics(e) + }) + }, g.prototype.getSuggestionDiagnostics = function(e) { + var t = this; + return this.forwardJSONCall("getSuggestionDiagnostics('".concat(e, "')"), function() { + return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e)) + }) + }, g.prototype.getCompilerOptionsDiagnostics = function() { + var t = this; + return this.forwardJSONCall("getCompilerOptionsDiagnostics()", function() { + var e = t.languageService.getCompilerOptionsDiagnostics(); + return t.realizeDiagnostics(e) + }) + }, g.prototype.getQuickInfoAtPosition = function(e, t) { + var r = this; + return this.forwardJSONCall("getQuickInfoAtPosition('".concat(e, "', ").concat(t, ")"), function() { + return r.languageService.getQuickInfoAtPosition(e, t) + }) + }, g.prototype.getNameOrDottedNameSpan = function(e, t, r) { + var n = this; + return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(e, "', ").concat(t, ", ").concat(r, ")"), function() { + return n.languageService.getNameOrDottedNameSpan(e, t, r) + }) + }, g.prototype.getBreakpointStatementAtPosition = function(e, t) { + var r = this; + return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(e, "', ").concat(t, ")"), function() { + return r.languageService.getBreakpointStatementAtPosition(e, t) + }) + }, g.prototype.getSignatureHelpItems = function(e, t, r) { + var n = this; + return this.forwardJSONCall("getSignatureHelpItems('".concat(e, "', ").concat(t, ")"), function() { + return n.languageService.getSignatureHelpItems(e, t, r) + }) + }, g.prototype.getDefinitionAtPosition = function(e, t) { + var r = this; + return this.forwardJSONCall("getDefinitionAtPosition('".concat(e, "', ").concat(t, ")"), function() { + return r.languageService.getDefinitionAtPosition(e, t) + }) + }, g.prototype.getDefinitionAndBoundSpan = function(e, t) { + var r = this; + return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(e, "', ").concat(t, ")"), function() { + return r.languageService.getDefinitionAndBoundSpan(e, t) + }) + }, g.prototype.getTypeDefinitionAtPosition = function(e, t) { + var r = this; + return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(e, "', ").concat(t, ")"), function() { + return r.languageService.getTypeDefinitionAtPosition(e, t) + }) + }, g.prototype.getImplementationAtPosition = function(e, t) { + var r = this; + return this.forwardJSONCall("getImplementationAtPosition('".concat(e, "', ").concat(t, ")"), function() { + return r.languageService.getImplementationAtPosition(e, t) + }) + }, g.prototype.getRenameInfo = function(e, t, r) { + var n = this; + return this.forwardJSONCall("getRenameInfo('".concat(e, "', ").concat(t, ")"), function() { + return n.languageService.getRenameInfo(e, t, r) + }) + }, g.prototype.getSmartSelectionRange = function(e, t) { + var r = this; + return this.forwardJSONCall("getSmartSelectionRange('".concat(e, "', ").concat(t, ")"), function() { + return r.languageService.getSmartSelectionRange(e, t) + }) + }, g.prototype.findRenameLocations = function(e, t, r, n, i) { + var a = this; + return this.forwardJSONCall("findRenameLocations('".concat(e, "', ").concat(t, ", ").concat(r, ", ").concat(n, ", ").concat(i, ")"), function() { + return a.languageService.findRenameLocations(e, t, r, n, i) + }) + }, g.prototype.getBraceMatchingAtPosition = function(e, t) { + var r = this; + return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(e, "', ").concat(t, ")"), function() { + return r.languageService.getBraceMatchingAtPosition(e, t) + }) + }, g.prototype.isValidBraceCompletionAtPosition = function(e, t, r) { + var n = this; + return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(e, "', ").concat(t, ", ").concat(r, ")"), function() { + return n.languageService.isValidBraceCompletionAtPosition(e, t, r) + }) + }, g.prototype.getSpanOfEnclosingComment = function(e, t, r) { + var n = this; + return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(e, "', ").concat(t, ")"), function() { + return n.languageService.getSpanOfEnclosingComment(e, t, r) + }) + }, g.prototype.getIndentationAtPosition = function(t, r, n) { + var i = this; + return this.forwardJSONCall("getIndentationAtPosition('".concat(t, "', ").concat(r, ")"), function() { + var e = JSON.parse(n); + return i.languageService.getIndentationAtPosition(t, r, e) + }) + }, g.prototype.getReferencesAtPosition = function(e, t) { + var r = this; + return this.forwardJSONCall("getReferencesAtPosition('".concat(e, "', ").concat(t, ")"), function() { + return r.languageService.getReferencesAtPosition(e, t) + }) + }, g.prototype.findReferences = function(e, t) { + var r = this; + return this.forwardJSONCall("findReferences('".concat(e, "', ").concat(t, ")"), function() { + return r.languageService.findReferences(e, t) + }) + }, g.prototype.getFileReferences = function(e) { + var t = this; + return this.forwardJSONCall("getFileReferences('".concat(e, ")"), function() { + return t.languageService.getFileReferences(e) + }) + }, g.prototype.getOccurrencesAtPosition = function(e, t) { + var r = this; + return this.forwardJSONCall("getOccurrencesAtPosition('".concat(e, "', ").concat(t, ")"), function() { + return r.languageService.getOccurrencesAtPosition(e, t) + }) + }, g.prototype.getDocumentHighlights = function(r, n, i) { + var a = this; + return this.forwardJSONCall("getDocumentHighlights('".concat(r, "', ").concat(n, ")"), function() { + var e = a.languageService.getDocumentHighlights(r, n, JSON.parse(i)), + t = _.toFileNameLowerCase(_.normalizeSlashes(r)); + return _.filter(e, function(e) { + return _.toFileNameLowerCase(_.normalizeSlashes(e.fileName)) === t + }) + }) + }, g.prototype.getCompletionsAtPosition = function(e, t, r, n) { + var i = this; + return this.forwardJSONCall("getCompletionsAtPosition('".concat(e, "', ").concat(t, ", ").concat(r, ", ").concat(n, ")"), function() { + return i.languageService.getCompletionsAtPosition(e, t, r, n) + }) + }, g.prototype.getCompletionEntryDetails = function(t, r, n, i, a, o, s) { + var c = this; + return this.forwardJSONCall("getCompletionEntryDetails('".concat(t, "', ").concat(r, ", '").concat(n, "')"), function() { + var e = void 0 === i ? void 0 : JSON.parse(i); + return c.languageService.getCompletionEntryDetails(t, r, n, e, a, o, s) + }) + }, g.prototype.getFormattingEditsForRange = function(t, r, n, i) { + var a = this; + return this.forwardJSONCall("getFormattingEditsForRange('".concat(t, "', ").concat(r, ", ").concat(n, ")"), function() { + var e = JSON.parse(i); + return a.languageService.getFormattingEditsForRange(t, r, n, e) + }) + }, g.prototype.getFormattingEditsForDocument = function(t, r) { + var n = this; + return this.forwardJSONCall("getFormattingEditsForDocument('".concat(t, "')"), function() { + var e = JSON.parse(r); + return n.languageService.getFormattingEditsForDocument(t, e) + }) + }, g.prototype.getFormattingEditsAfterKeystroke = function(t, r, n, i) { + var a = this; + return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(t, "', ").concat(r, ", '").concat(n, "')"), function() { + var e = JSON.parse(i); + return a.languageService.getFormattingEditsAfterKeystroke(t, r, n, e) + }) + }, g.prototype.getDocCommentTemplateAtPosition = function(e, t, r) { + var n = this; + return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(e, "', ").concat(t, ")"), function() { + return n.languageService.getDocCommentTemplateAtPosition(e, t, r) + }) + }, g.prototype.getNavigateToItems = function(e, t, r) { + var n = this; + return this.forwardJSONCall("getNavigateToItems('".concat(e, "', ").concat(t, ", ").concat(r, ")"), function() { + return n.languageService.getNavigateToItems(e, t, r) + }) + }, g.prototype.getNavigationBarItems = function(e) { + var t = this; + return this.forwardJSONCall("getNavigationBarItems('".concat(e, "')"), function() { + return t.languageService.getNavigationBarItems(e) + }) + }, g.prototype.getNavigationTree = function(e) { + var t = this; + return this.forwardJSONCall("getNavigationTree('".concat(e, "')"), function() { + return t.languageService.getNavigationTree(e) + }) + }, g.prototype.getOutliningSpans = function(e) { + var t = this; + return this.forwardJSONCall("getOutliningSpans('".concat(e, "')"), function() { + return t.languageService.getOutliningSpans(e) + }) + }, g.prototype.getTodoComments = function(e, t) { + var r = this; + return this.forwardJSONCall("getTodoComments('".concat(e, "')"), function() { + return r.languageService.getTodoComments(e, JSON.parse(t)) + }) + }, g.prototype.prepareCallHierarchy = function(e, t) { + var r = this; + return this.forwardJSONCall("prepareCallHierarchy('".concat(e, "', ").concat(t, ")"), function() { + return r.languageService.prepareCallHierarchy(e, t) + }) + }, g.prototype.provideCallHierarchyIncomingCalls = function(e, t) { + var r = this; + return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(e, "', ").concat(t, ")"), function() { + return r.languageService.provideCallHierarchyIncomingCalls(e, t) + }) + }, g.prototype.provideCallHierarchyOutgoingCalls = function(e, t) { + var r = this; + return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(e, "', ").concat(t, ")"), function() { + return r.languageService.provideCallHierarchyOutgoingCalls(e, t) + }) + }, g.prototype.provideInlayHints = function(e, t, r) { + var n = this; + return this.forwardJSONCall("provideInlayHints('".concat(e, "', '").concat(JSON.stringify(t), "', ").concat(JSON.stringify(r), ")"), function() { + return n.languageService.provideInlayHints(e, t, r) + }) + }, g.prototype.getEmitOutput = function(r) { + var n = this; + return this.forwardJSONCall("getEmitOutput('".concat(r, "')"), function() { + var e = n.languageService.getEmitOutput(r), + t = e.diagnostics, + e = __rest(e, ["diagnostics"]); + return __assign(__assign({}, e), { + diagnostics: n.realizeDiagnostics(t) + }) + }) + }, g.prototype.getEmitOutputObject = function(e) { + var t = this; + return s(this.logger, "getEmitOutput('".concat(e, "')"), !1, function() { + return t.languageService.getEmitOutput(e) + }, this.logPerformance) + }, g.prototype.toggleLineComment = function(e, t) { + var r = this; + return this.forwardJSONCall("toggleLineComment('".concat(e, "', '").concat(JSON.stringify(t), "')"), function() { + return r.languageService.toggleLineComment(e, t) + }) + }, g.prototype.toggleMultilineComment = function(e, t) { + var r = this; + return this.forwardJSONCall("toggleMultilineComment('".concat(e, "', '").concat(JSON.stringify(t), "')"), function() { + return r.languageService.toggleMultilineComment(e, t) + }) + }, g.prototype.commentSelection = function(e, t) { + var r = this; + return this.forwardJSONCall("commentSelection('".concat(e, "', '").concat(JSON.stringify(t), "')"), function() { + return r.languageService.commentSelection(e, t) + }) + }, g.prototype.uncommentSelection = function(e, t) { + var r = this; + return this.forwardJSONCall("uncommentSelection('".concat(e, "', '").concat(JSON.stringify(t), "')"), function() { + return r.languageService.uncommentSelection(e, t) + }) + }; + var p, f = g; + + function g(e, t, r) { + e = p.call(this, e) || this; + return e.host = t, e.languageService = r, e.logPerformance = !1, e.logger = e.host, e + } + + function m(e) { + return { + spans: e.spans.join(","), + endOfLineState: e.endOfLineState + } + } + __extends(v, y = c), v.prototype.getEncodedLexicalClassifications = function(e, t, r) { + var n = this; + return void 0 === r && (r = !1), o(this.logger, "getEncodedLexicalClassifications", function() { + return m(n.classifier.getEncodedLexicalClassifications(e, t, r)) + }, this.logPerformance) + }, v.prototype.getClassificationsForLine = function(e, t, r) { + for (var e = this.classifier.getClassificationsForLine(e, t, r = void 0 === r ? !1 : r), n = "", i = 0, a = e.entries; i < a.length; i++) var o = a[i], + n = (n += o.length + "\n") + (o.classification + "\n"); + return n += e.finalLexState + }; + var y, h = v; + + function v(e, t) { + e = y.call(this, e) || this; + return e.logger = t, e.logPerformance = !1, e.classifier = _.createClassifier(), e + } + __extends(D, b = c), D.prototype.forwardJSONCall = function(e, t) { + return o(this.logger, e, t, this.logPerformance) + }, D.prototype.resolveModuleName = function(r, n, i) { + var a = this; + return this.forwardJSONCall("resolveModuleName('".concat(r, "')"), function() { + var e = JSON.parse(i), + e = _.resolveModuleName(n, _.normalizeSlashes(r), e, a.host), + t = e.resolvedModule ? e.resolvedModule.resolvedFileName : void 0; + return { + resolvedFileName: t = e.resolvedModule && ".ts" !== e.resolvedModule.extension && ".tsx" !== e.resolvedModule.extension && ".d.ts" !== e.resolvedModule.extension ? void 0 : t, + failedLookupLocations: e.failedLookupLocations, + affectingLocations: e.affectingLocations + } + }) + }, D.prototype.resolveTypeReferenceDirective = function(t, r, n) { + var i = this; + return this.forwardJSONCall("resolveTypeReferenceDirective(".concat(t, ")"), function() { + var e = JSON.parse(n), + e = _.resolveTypeReferenceDirective(r, _.normalizeSlashes(t), e, i.host); + return { + resolvedFileName: e.resolvedTypeReferenceDirective ? e.resolvedTypeReferenceDirective.resolvedFileName : void 0, + primary: !e.resolvedTypeReferenceDirective || e.resolvedTypeReferenceDirective.primary, + failedLookupLocations: e.failedLookupLocations + } + }) + }, D.prototype.getPreProcessedFileInfo = function(e, t) { + var r = this; + return this.forwardJSONCall("getPreProcessedFileInfo('".concat(e, "')"), function() { + var e = _.preProcessFile(_.getSnapshotText(t), !0, !0); + return { + referencedFiles: r.convertFileReferences(e.referencedFiles), + importedFiles: r.convertFileReferences(e.importedFiles), + ambientExternalModules: e.ambientExternalModules, + isLibFile: e.isLibFile, + typeReferenceDirectives: r.convertFileReferences(e.typeReferenceDirectives), + libReferenceDirectives: r.convertFileReferences(e.libReferenceDirectives) + } + }) + }, D.prototype.getAutomaticTypeDirectiveNames = function(t) { + var r = this; + return this.forwardJSONCall("getAutomaticTypeDirectiveNames('".concat(t, "')"), function() { + var e = JSON.parse(t); + return _.getAutomaticTypeDirectiveNames(e, r.host) + }) + }, D.prototype.convertFileReferences = function(e) { + if (e) { + for (var t = [], r = 0, n = e; r < n.length; r++) { + var i = n[r]; + t.push({ + path: _.normalizeSlashes(i.fileName), + position: i.pos, + length: i.end - i.pos + }) + } + return t + } + }, D.prototype.getTSConfigFileInfo = function(r, n) { + var i = this; + return this.forwardJSONCall("getTSConfigFileInfo('".concat(r, "')"), function() { + var e = _.parseJsonText(r, _.getSnapshotText(n)), + t = _.normalizeSlashes(r), + t = _.parseJsonSourceFileConfigFileContent(e, i.host, _.getDirectoryPath(t), {}, t); + return { + options: t.options, + typeAcquisition: t.typeAcquisition, + files: t.fileNames, + raw: t.raw, + errors: u(__spreadArray(__spreadArray([], e.parseDiagnostics, !0), t.errors, !0), "\r\n") + } + }) + }, D.prototype.getDefaultCompilationSettings = function() { + return this.forwardJSONCall("getDefaultCompilationSettings()", function() { + return _.getDefaultCompilerOptions() + }) + }, D.prototype.discoverTypings = function(t) { + var r = this, + n = _.createGetCanonicalFileName(!1); + return this.forwardJSONCall("discoverTypings()", function() { + var e = JSON.parse(t); + return void 0 === r.safeList && (r.safeList = _.JsTyping.loadSafeList(r.host, _.toPath(e.safeListPath, e.safeListPath, n))), _.JsTyping.discoverTypings(r.host, function(e) { + return r.logger.log(e) + }, e.fileNames, _.toPath(e.projectRootPath, e.projectRootPath, n), r.safeList, e.packageNameToTypingLocation, e.typeAcquisition, e.unresolvedImports, e.typesRegistry, _.emptyOptions) + }) + }; + var b, x = D; + + function D(e, t, r) { + e = b.call(this, e) || this; + return e.logger = t, e.host = r, e.logPerformance = !1, e + } + + function S() { + this._shims = [] + } + S.prototype.getServicesVersion = function() { + return _.servicesVersion + }, S.prototype.createLanguageServiceShim = function(t) { + try { + void 0 === this.documentRegistry && (this.documentRegistry = _.createDocumentRegistry(t.useCaseSensitiveFileNames && t.useCaseSensitiveFileNames(), t.getCurrentDirectory())); + var e = new n(t), + r = _.createLanguageService(e, this.documentRegistry, !1); + return new f(this, t, r) + } catch (e) { + throw d(t, e), e + } + }, S.prototype.createClassifierShim = function(t) { + try { + return new h(this, t) + } catch (e) { + throw d(t, e), e + } + }, S.prototype.createCoreServicesShim = function(t) { + try { + var e = new i(t); + return new x(this, t, e) + } catch (e) { + throw d(t, e), e + } + }, S.prototype.close = function() { + _.clear(this._shims), this.documentRegistry = void 0 + }, S.prototype.registerShim = function(e) { + this._shims.push(e) + }, S.prototype.unregisterShim = function(e) { + for (var t = 0; t < this._shims.length; t++) + if (this._shims[t] === e) return void delete this._shims[t]; + throw new Error("Invalid operation") + }, _.TypeScriptServicesFactory = S + }(ts = ts || {}), "object" != typeof globalThis) try { + Object.defineProperty(Object.prototype, "__magic__", { + get: function() { + return this + }, + configurable: !0 + }), __magic__.globalThis = __magic__, "undefined" == typeof globalThis && (window.globalThis = window), delete Object.prototype.__magic__ +} catch (e) { + window.globalThis = window +} +"undefined" != typeof process && !process.browser || (globalThis.TypeScript = globalThis.TypeScript || {}, globalThis.TypeScript.Services = globalThis.TypeScript.Services || {}, globalThis.TypeScript.Services.TypeScriptServicesFactory = ts.TypeScriptServicesFactory, globalThis.toolsVersion = ts.versionMajorMinor), "undefined" != typeof module && module.exports && (module.exports = ts), + function(_) { + function i(e, n, t, r) { + if (Object.defineProperty(u, "name", __assign(__assign({}, Object.getOwnPropertyDescriptor(u, "name")), { + value: e + })), r) + for (var i = 0, a = Object.keys(r); i < a.length; i++) { + var o = +a[i]; + !isNaN(o) && _.hasProperty(n, "".concat(o)) && (n[o] = _.Debug.deprecate(n[o], __assign(__assign({}, r[o]), { + name: e + }))) + } + s = n, c = t; + var s, c, l = function(e) { + for (var t = 0; _.hasProperty(s, "".concat(t)) && _.hasProperty(c, "".concat(t)); t++) + if ((0, c[t])(e)) return t + }; + return u; + + function u() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + var r = l(e), + r = void 0 !== r ? n[r] : void 0; + if ("function" == typeof r) return r.apply(void 0, e); + throw new TypeError("Invalid arguments") + } + } + _.createOverload = i, _.buildOverload = function(n) { + return { + overload: function(r) { + return { + bind: function(t) { + return { + finish: function() { + return i(n, r, t) + }, + deprecate: function(e) { + return { + finish: function() { + return i(n, r, t, e) + } + } + } + } + } + } + } + } + } + }(ts = ts || {}), + function(s) { + var e = { + since: "4.0", + warnAfter: "4.1", + message: "Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead." + }; + s.createNodeArray = s.Debug.deprecate(s.factory.createNodeArray, e), s.createNumericLiteral = s.Debug.deprecate(s.factory.createNumericLiteral, e), s.createBigIntLiteral = s.Debug.deprecate(s.factory.createBigIntLiteral, e), s.createStringLiteral = s.Debug.deprecate(s.factory.createStringLiteral, e), s.createStringLiteralFromNode = s.Debug.deprecate(s.factory.createStringLiteralFromNode, e), s.createRegularExpressionLiteral = s.Debug.deprecate(s.factory.createRegularExpressionLiteral, e), s.createLoopVariable = s.Debug.deprecate(s.factory.createLoopVariable, e), s.createUniqueName = s.Debug.deprecate(s.factory.createUniqueName, e), s.createPrivateIdentifier = s.Debug.deprecate(s.factory.createPrivateIdentifier, e), s.createSuper = s.Debug.deprecate(s.factory.createSuper, e), s.createThis = s.Debug.deprecate(s.factory.createThis, e), s.createNull = s.Debug.deprecate(s.factory.createNull, e), s.createTrue = s.Debug.deprecate(s.factory.createTrue, e), s.createFalse = s.Debug.deprecate(s.factory.createFalse, e), s.createModifier = s.Debug.deprecate(s.factory.createModifier, e), s.createModifiersFromModifierFlags = s.Debug.deprecate(s.factory.createModifiersFromModifierFlags, e), s.createQualifiedName = s.Debug.deprecate(s.factory.createQualifiedName, e), s.updateQualifiedName = s.Debug.deprecate(s.factory.updateQualifiedName, e), s.createComputedPropertyName = s.Debug.deprecate(s.factory.createComputedPropertyName, e), s.updateComputedPropertyName = s.Debug.deprecate(s.factory.updateComputedPropertyName, e), s.createTypeParameterDeclaration = s.Debug.deprecate(s.factory.createTypeParameterDeclaration, e), s.updateTypeParameterDeclaration = s.Debug.deprecate(s.factory.updateTypeParameterDeclaration, e), s.createParameter = s.Debug.deprecate(s.factory.createParameterDeclaration, e), s.updateParameter = s.Debug.deprecate(s.factory.updateParameterDeclaration, e), s.createDecorator = s.Debug.deprecate(s.factory.createDecorator, e), s.updateDecorator = s.Debug.deprecate(s.factory.updateDecorator, e), s.createProperty = s.Debug.deprecate(s.factory.createPropertyDeclaration, e), s.updateProperty = s.Debug.deprecate(s.factory.updatePropertyDeclaration, e), s.createMethod = s.Debug.deprecate(s.factory.createMethodDeclaration, e), s.updateMethod = s.Debug.deprecate(s.factory.updateMethodDeclaration, e), s.createConstructor = s.Debug.deprecate(s.factory.createConstructorDeclaration, e), s.updateConstructor = s.Debug.deprecate(s.factory.updateConstructorDeclaration, e), s.createGetAccessor = s.Debug.deprecate(s.factory.createGetAccessorDeclaration, e), s.updateGetAccessor = s.Debug.deprecate(s.factory.updateGetAccessorDeclaration, e), s.createSetAccessor = s.Debug.deprecate(s.factory.createSetAccessorDeclaration, e), s.updateSetAccessor = s.Debug.deprecate(s.factory.updateSetAccessorDeclaration, e), s.createCallSignature = s.Debug.deprecate(s.factory.createCallSignature, e), s.updateCallSignature = s.Debug.deprecate(s.factory.updateCallSignature, e), s.createConstructSignature = s.Debug.deprecate(s.factory.createConstructSignature, e), s.updateConstructSignature = s.Debug.deprecate(s.factory.updateConstructSignature, e), s.updateIndexSignature = s.Debug.deprecate(s.factory.updateIndexSignature, e), s.createKeywordTypeNode = s.Debug.deprecate(s.factory.createKeywordTypeNode, e), s.createTypePredicateNodeWithModifier = s.Debug.deprecate(s.factory.createTypePredicateNode, e), s.updateTypePredicateNodeWithModifier = s.Debug.deprecate(s.factory.updateTypePredicateNode, e), s.createTypeReferenceNode = s.Debug.deprecate(s.factory.createTypeReferenceNode, e), s.updateTypeReferenceNode = s.Debug.deprecate(s.factory.updateTypeReferenceNode, e), s.createFunctionTypeNode = s.Debug.deprecate(s.factory.createFunctionTypeNode, e), s.updateFunctionTypeNode = s.Debug.deprecate(s.factory.updateFunctionTypeNode, e), s.createConstructorTypeNode = s.Debug.deprecate(function(e, t, r) { + return s.factory.createConstructorTypeNode(void 0, e, t, r) + }, e), s.updateConstructorTypeNode = s.Debug.deprecate(function(e, t, r, n) { + return s.factory.updateConstructorTypeNode(e, e.modifiers, t, r, n) + }, e), s.createTypeQueryNode = s.Debug.deprecate(s.factory.createTypeQueryNode, e), s.updateTypeQueryNode = s.Debug.deprecate(s.factory.updateTypeQueryNode, e), s.createTypeLiteralNode = s.Debug.deprecate(s.factory.createTypeLiteralNode, e), s.updateTypeLiteralNode = s.Debug.deprecate(s.factory.updateTypeLiteralNode, e), s.createArrayTypeNode = s.Debug.deprecate(s.factory.createArrayTypeNode, e), s.updateArrayTypeNode = s.Debug.deprecate(s.factory.updateArrayTypeNode, e), s.createTupleTypeNode = s.Debug.deprecate(s.factory.createTupleTypeNode, e), s.updateTupleTypeNode = s.Debug.deprecate(s.factory.updateTupleTypeNode, e), s.createOptionalTypeNode = s.Debug.deprecate(s.factory.createOptionalTypeNode, e), s.updateOptionalTypeNode = s.Debug.deprecate(s.factory.updateOptionalTypeNode, e), s.createRestTypeNode = s.Debug.deprecate(s.factory.createRestTypeNode, e), s.updateRestTypeNode = s.Debug.deprecate(s.factory.updateRestTypeNode, e), s.createUnionTypeNode = s.Debug.deprecate(s.factory.createUnionTypeNode, e), s.updateUnionTypeNode = s.Debug.deprecate(s.factory.updateUnionTypeNode, e), s.createIntersectionTypeNode = s.Debug.deprecate(s.factory.createIntersectionTypeNode, e), s.updateIntersectionTypeNode = s.Debug.deprecate(s.factory.updateIntersectionTypeNode, e), s.createConditionalTypeNode = s.Debug.deprecate(s.factory.createConditionalTypeNode, e), s.updateConditionalTypeNode = s.Debug.deprecate(s.factory.updateConditionalTypeNode, e), s.createInferTypeNode = s.Debug.deprecate(s.factory.createInferTypeNode, e), s.updateInferTypeNode = s.Debug.deprecate(s.factory.updateInferTypeNode, e), s.createImportTypeNode = s.Debug.deprecate(s.factory.createImportTypeNode, e), s.updateImportTypeNode = s.Debug.deprecate(s.factory.updateImportTypeNode, e), s.createParenthesizedType = s.Debug.deprecate(s.factory.createParenthesizedType, e), s.updateParenthesizedType = s.Debug.deprecate(s.factory.updateParenthesizedType, e), s.createThisTypeNode = s.Debug.deprecate(s.factory.createThisTypeNode, e), s.updateTypeOperatorNode = s.Debug.deprecate(s.factory.updateTypeOperatorNode, e), s.createIndexedAccessTypeNode = s.Debug.deprecate(s.factory.createIndexedAccessTypeNode, e), s.updateIndexedAccessTypeNode = s.Debug.deprecate(s.factory.updateIndexedAccessTypeNode, e), s.createMappedTypeNode = s.Debug.deprecate(s.factory.createMappedTypeNode, e), s.updateMappedTypeNode = s.Debug.deprecate(s.factory.updateMappedTypeNode, e), s.createLiteralTypeNode = s.Debug.deprecate(s.factory.createLiteralTypeNode, e), s.updateLiteralTypeNode = s.Debug.deprecate(s.factory.updateLiteralTypeNode, e), s.createObjectBindingPattern = s.Debug.deprecate(s.factory.createObjectBindingPattern, e), s.updateObjectBindingPattern = s.Debug.deprecate(s.factory.updateObjectBindingPattern, e), s.createArrayBindingPattern = s.Debug.deprecate(s.factory.createArrayBindingPattern, e), s.updateArrayBindingPattern = s.Debug.deprecate(s.factory.updateArrayBindingPattern, e), s.createBindingElement = s.Debug.deprecate(s.factory.createBindingElement, e), s.updateBindingElement = s.Debug.deprecate(s.factory.updateBindingElement, e), s.createArrayLiteral = s.Debug.deprecate(s.factory.createArrayLiteralExpression, e), s.updateArrayLiteral = s.Debug.deprecate(s.factory.updateArrayLiteralExpression, e), s.createObjectLiteral = s.Debug.deprecate(s.factory.createObjectLiteralExpression, e), s.updateObjectLiteral = s.Debug.deprecate(s.factory.updateObjectLiteralExpression, e), s.createPropertyAccess = s.Debug.deprecate(s.factory.createPropertyAccessExpression, e), s.updatePropertyAccess = s.Debug.deprecate(s.factory.updatePropertyAccessExpression, e), s.createPropertyAccessChain = s.Debug.deprecate(s.factory.createPropertyAccessChain, e), s.updatePropertyAccessChain = s.Debug.deprecate(s.factory.updatePropertyAccessChain, e), s.createElementAccess = s.Debug.deprecate(s.factory.createElementAccessExpression, e), s.updateElementAccess = s.Debug.deprecate(s.factory.updateElementAccessExpression, e), s.createElementAccessChain = s.Debug.deprecate(s.factory.createElementAccessChain, e), s.updateElementAccessChain = s.Debug.deprecate(s.factory.updateElementAccessChain, e), s.createCall = s.Debug.deprecate(s.factory.createCallExpression, e), s.updateCall = s.Debug.deprecate(s.factory.updateCallExpression, e), s.createCallChain = s.Debug.deprecate(s.factory.createCallChain, e), s.updateCallChain = s.Debug.deprecate(s.factory.updateCallChain, e), s.createNew = s.Debug.deprecate(s.factory.createNewExpression, e), s.updateNew = s.Debug.deprecate(s.factory.updateNewExpression, e), s.createTypeAssertion = s.Debug.deprecate(s.factory.createTypeAssertion, e), s.updateTypeAssertion = s.Debug.deprecate(s.factory.updateTypeAssertion, e), s.createParen = s.Debug.deprecate(s.factory.createParenthesizedExpression, e), s.updateParen = s.Debug.deprecate(s.factory.updateParenthesizedExpression, e), s.createFunctionExpression = s.Debug.deprecate(s.factory.createFunctionExpression, e), s.updateFunctionExpression = s.Debug.deprecate(s.factory.updateFunctionExpression, e), s.createDelete = s.Debug.deprecate(s.factory.createDeleteExpression, e), s.updateDelete = s.Debug.deprecate(s.factory.updateDeleteExpression, e), s.createTypeOf = s.Debug.deprecate(s.factory.createTypeOfExpression, e), s.updateTypeOf = s.Debug.deprecate(s.factory.updateTypeOfExpression, e), s.createVoid = s.Debug.deprecate(s.factory.createVoidExpression, e), s.updateVoid = s.Debug.deprecate(s.factory.updateVoidExpression, e), s.createAwait = s.Debug.deprecate(s.factory.createAwaitExpression, e), s.updateAwait = s.Debug.deprecate(s.factory.updateAwaitExpression, e), s.createPrefix = s.Debug.deprecate(s.factory.createPrefixUnaryExpression, e), s.updatePrefix = s.Debug.deprecate(s.factory.updatePrefixUnaryExpression, e), s.createPostfix = s.Debug.deprecate(s.factory.createPostfixUnaryExpression, e), s.updatePostfix = s.Debug.deprecate(s.factory.updatePostfixUnaryExpression, e), s.createBinary = s.Debug.deprecate(s.factory.createBinaryExpression, e), s.updateConditional = s.Debug.deprecate(s.factory.updateConditionalExpression, e), s.createTemplateExpression = s.Debug.deprecate(s.factory.createTemplateExpression, e), s.updateTemplateExpression = s.Debug.deprecate(s.factory.updateTemplateExpression, e), s.createTemplateHead = s.Debug.deprecate(s.factory.createTemplateHead, e), s.createTemplateMiddle = s.Debug.deprecate(s.factory.createTemplateMiddle, e), s.createTemplateTail = s.Debug.deprecate(s.factory.createTemplateTail, e), s.createNoSubstitutionTemplateLiteral = s.Debug.deprecate(s.factory.createNoSubstitutionTemplateLiteral, e), s.updateYield = s.Debug.deprecate(s.factory.updateYieldExpression, e), s.createSpread = s.Debug.deprecate(s.factory.createSpreadElement, e), s.updateSpread = s.Debug.deprecate(s.factory.updateSpreadElement, e), s.createOmittedExpression = s.Debug.deprecate(s.factory.createOmittedExpression, e), s.createAsExpression = s.Debug.deprecate(s.factory.createAsExpression, e), s.updateAsExpression = s.Debug.deprecate(s.factory.updateAsExpression, e), s.createNonNullExpression = s.Debug.deprecate(s.factory.createNonNullExpression, e), s.updateNonNullExpression = s.Debug.deprecate(s.factory.updateNonNullExpression, e), s.createNonNullChain = s.Debug.deprecate(s.factory.createNonNullChain, e), s.updateNonNullChain = s.Debug.deprecate(s.factory.updateNonNullChain, e), s.createMetaProperty = s.Debug.deprecate(s.factory.createMetaProperty, e), s.updateMetaProperty = s.Debug.deprecate(s.factory.updateMetaProperty, e), s.createTemplateSpan = s.Debug.deprecate(s.factory.createTemplateSpan, e), s.updateTemplateSpan = s.Debug.deprecate(s.factory.updateTemplateSpan, e), s.createSemicolonClassElement = s.Debug.deprecate(s.factory.createSemicolonClassElement, e), s.createBlock = s.Debug.deprecate(s.factory.createBlock, e), s.updateBlock = s.Debug.deprecate(s.factory.updateBlock, e), s.createVariableStatement = s.Debug.deprecate(s.factory.createVariableStatement, e), s.updateVariableStatement = s.Debug.deprecate(s.factory.updateVariableStatement, e), s.createEmptyStatement = s.Debug.deprecate(s.factory.createEmptyStatement, e), s.createExpressionStatement = s.Debug.deprecate(s.factory.createExpressionStatement, e), s.updateExpressionStatement = s.Debug.deprecate(s.factory.updateExpressionStatement, e), s.createStatement = s.Debug.deprecate(s.factory.createExpressionStatement, e), s.updateStatement = s.Debug.deprecate(s.factory.updateExpressionStatement, e), s.createIf = s.Debug.deprecate(s.factory.createIfStatement, e), s.updateIf = s.Debug.deprecate(s.factory.updateIfStatement, e), s.createDo = s.Debug.deprecate(s.factory.createDoStatement, e), s.updateDo = s.Debug.deprecate(s.factory.updateDoStatement, e), s.createWhile = s.Debug.deprecate(s.factory.createWhileStatement, e), s.updateWhile = s.Debug.deprecate(s.factory.updateWhileStatement, e), s.createFor = s.Debug.deprecate(s.factory.createForStatement, e), s.updateFor = s.Debug.deprecate(s.factory.updateForStatement, e), s.createForIn = s.Debug.deprecate(s.factory.createForInStatement, e), s.updateForIn = s.Debug.deprecate(s.factory.updateForInStatement, e), s.createForOf = s.Debug.deprecate(s.factory.createForOfStatement, e), s.updateForOf = s.Debug.deprecate(s.factory.updateForOfStatement, e), s.createContinue = s.Debug.deprecate(s.factory.createContinueStatement, e), s.updateContinue = s.Debug.deprecate(s.factory.updateContinueStatement, e), s.createBreak = s.Debug.deprecate(s.factory.createBreakStatement, e), s.updateBreak = s.Debug.deprecate(s.factory.updateBreakStatement, e), s.createReturn = s.Debug.deprecate(s.factory.createReturnStatement, e), s.updateReturn = s.Debug.deprecate(s.factory.updateReturnStatement, e), s.createWith = s.Debug.deprecate(s.factory.createWithStatement, e), s.updateWith = s.Debug.deprecate(s.factory.updateWithStatement, e), s.createSwitch = s.Debug.deprecate(s.factory.createSwitchStatement, e), s.updateSwitch = s.Debug.deprecate(s.factory.updateSwitchStatement, e), s.createLabel = s.Debug.deprecate(s.factory.createLabeledStatement, e), s.updateLabel = s.Debug.deprecate(s.factory.updateLabeledStatement, e), s.createThrow = s.Debug.deprecate(s.factory.createThrowStatement, e), s.updateThrow = s.Debug.deprecate(s.factory.updateThrowStatement, e), s.createTry = s.Debug.deprecate(s.factory.createTryStatement, e), s.updateTry = s.Debug.deprecate(s.factory.updateTryStatement, e), s.createDebuggerStatement = s.Debug.deprecate(s.factory.createDebuggerStatement, e), s.createVariableDeclarationList = s.Debug.deprecate(s.factory.createVariableDeclarationList, e), s.updateVariableDeclarationList = s.Debug.deprecate(s.factory.updateVariableDeclarationList, e), s.createFunctionDeclaration = s.Debug.deprecate(s.factory.createFunctionDeclaration, e), s.updateFunctionDeclaration = s.Debug.deprecate(s.factory.updateFunctionDeclaration, e), s.createClassDeclaration = s.Debug.deprecate(s.factory.createClassDeclaration, e), s.updateClassDeclaration = s.Debug.deprecate(s.factory.updateClassDeclaration, e), s.createInterfaceDeclaration = s.Debug.deprecate(s.factory.createInterfaceDeclaration, e), s.updateInterfaceDeclaration = s.Debug.deprecate(s.factory.updateInterfaceDeclaration, e), s.createTypeAliasDeclaration = s.Debug.deprecate(s.factory.createTypeAliasDeclaration, e), s.updateTypeAliasDeclaration = s.Debug.deprecate(s.factory.updateTypeAliasDeclaration, e), s.createEnumDeclaration = s.Debug.deprecate(s.factory.createEnumDeclaration, e), s.updateEnumDeclaration = s.Debug.deprecate(s.factory.updateEnumDeclaration, e), s.createModuleDeclaration = s.Debug.deprecate(s.factory.createModuleDeclaration, e), s.updateModuleDeclaration = s.Debug.deprecate(s.factory.updateModuleDeclaration, e), s.createModuleBlock = s.Debug.deprecate(s.factory.createModuleBlock, e), s.updateModuleBlock = s.Debug.deprecate(s.factory.updateModuleBlock, e), s.createCaseBlock = s.Debug.deprecate(s.factory.createCaseBlock, e), s.updateCaseBlock = s.Debug.deprecate(s.factory.updateCaseBlock, e), s.createNamespaceExportDeclaration = s.Debug.deprecate(s.factory.createNamespaceExportDeclaration, e), s.updateNamespaceExportDeclaration = s.Debug.deprecate(s.factory.updateNamespaceExportDeclaration, e), s.createImportEqualsDeclaration = s.Debug.deprecate(s.factory.createImportEqualsDeclaration, e), s.updateImportEqualsDeclaration = s.Debug.deprecate(s.factory.updateImportEqualsDeclaration, e), s.createImportDeclaration = s.Debug.deprecate(s.factory.createImportDeclaration, e), s.updateImportDeclaration = s.Debug.deprecate(s.factory.updateImportDeclaration, e), s.createNamespaceImport = s.Debug.deprecate(s.factory.createNamespaceImport, e), s.updateNamespaceImport = s.Debug.deprecate(s.factory.updateNamespaceImport, e), s.createNamedImports = s.Debug.deprecate(s.factory.createNamedImports, e), s.updateNamedImports = s.Debug.deprecate(s.factory.updateNamedImports, e), s.createImportSpecifier = s.Debug.deprecate(s.factory.createImportSpecifier, e), s.updateImportSpecifier = s.Debug.deprecate(s.factory.updateImportSpecifier, e), s.createExportAssignment = s.Debug.deprecate(s.factory.createExportAssignment, e), s.updateExportAssignment = s.Debug.deprecate(s.factory.updateExportAssignment, e), s.createNamedExports = s.Debug.deprecate(s.factory.createNamedExports, e), s.updateNamedExports = s.Debug.deprecate(s.factory.updateNamedExports, e), s.createExportSpecifier = s.Debug.deprecate(s.factory.createExportSpecifier, e), s.updateExportSpecifier = s.Debug.deprecate(s.factory.updateExportSpecifier, e), s.createExternalModuleReference = s.Debug.deprecate(s.factory.createExternalModuleReference, e), s.updateExternalModuleReference = s.Debug.deprecate(s.factory.updateExternalModuleReference, e), s.createJSDocTypeExpression = s.Debug.deprecate(s.factory.createJSDocTypeExpression, e), s.createJSDocTypeTag = s.Debug.deprecate(s.factory.createJSDocTypeTag, e), s.createJSDocReturnTag = s.Debug.deprecate(s.factory.createJSDocReturnTag, e), s.createJSDocThisTag = s.Debug.deprecate(s.factory.createJSDocThisTag, e), s.createJSDocComment = s.Debug.deprecate(s.factory.createJSDocComment, e), s.createJSDocParameterTag = s.Debug.deprecate(s.factory.createJSDocParameterTag, e), s.createJSDocClassTag = s.Debug.deprecate(s.factory.createJSDocClassTag, e), s.createJSDocAugmentsTag = s.Debug.deprecate(s.factory.createJSDocAugmentsTag, e), s.createJSDocEnumTag = s.Debug.deprecate(s.factory.createJSDocEnumTag, e), s.createJSDocTemplateTag = s.Debug.deprecate(s.factory.createJSDocTemplateTag, e), s.createJSDocTypedefTag = s.Debug.deprecate(s.factory.createJSDocTypedefTag, e), s.createJSDocCallbackTag = s.Debug.deprecate(s.factory.createJSDocCallbackTag, e), s.createJSDocSignature = s.Debug.deprecate(s.factory.createJSDocSignature, e), s.createJSDocPropertyTag = s.Debug.deprecate(s.factory.createJSDocPropertyTag, e), s.createJSDocTypeLiteral = s.Debug.deprecate(s.factory.createJSDocTypeLiteral, e), s.createJSDocImplementsTag = s.Debug.deprecate(s.factory.createJSDocImplementsTag, e), s.createJSDocAuthorTag = s.Debug.deprecate(s.factory.createJSDocAuthorTag, e), s.createJSDocPublicTag = s.Debug.deprecate(s.factory.createJSDocPublicTag, e), s.createJSDocPrivateTag = s.Debug.deprecate(s.factory.createJSDocPrivateTag, e), s.createJSDocProtectedTag = s.Debug.deprecate(s.factory.createJSDocProtectedTag, e), s.createJSDocReadonlyTag = s.Debug.deprecate(s.factory.createJSDocReadonlyTag, e), s.createJSDocTag = s.Debug.deprecate(s.factory.createJSDocUnknownTag, e), s.createJsxElement = s.Debug.deprecate(s.factory.createJsxElement, e), s.updateJsxElement = s.Debug.deprecate(s.factory.updateJsxElement, e), s.createJsxSelfClosingElement = s.Debug.deprecate(s.factory.createJsxSelfClosingElement, e), s.updateJsxSelfClosingElement = s.Debug.deprecate(s.factory.updateJsxSelfClosingElement, e), s.createJsxOpeningElement = s.Debug.deprecate(s.factory.createJsxOpeningElement, e), s.updateJsxOpeningElement = s.Debug.deprecate(s.factory.updateJsxOpeningElement, e), s.createJsxClosingElement = s.Debug.deprecate(s.factory.createJsxClosingElement, e), s.updateJsxClosingElement = s.Debug.deprecate(s.factory.updateJsxClosingElement, e), s.createJsxFragment = s.Debug.deprecate(s.factory.createJsxFragment, e), s.createJsxText = s.Debug.deprecate(s.factory.createJsxText, e), s.updateJsxText = s.Debug.deprecate(s.factory.updateJsxText, e), s.createJsxOpeningFragment = s.Debug.deprecate(s.factory.createJsxOpeningFragment, e), s.createJsxJsxClosingFragment = s.Debug.deprecate(s.factory.createJsxJsxClosingFragment, e), s.updateJsxFragment = s.Debug.deprecate(s.factory.updateJsxFragment, e), s.createJsxAttribute = s.Debug.deprecate(s.factory.createJsxAttribute, e), s.updateJsxAttribute = s.Debug.deprecate(s.factory.updateJsxAttribute, e), s.createJsxAttributes = s.Debug.deprecate(s.factory.createJsxAttributes, e), s.updateJsxAttributes = s.Debug.deprecate(s.factory.updateJsxAttributes, e), s.createJsxSpreadAttribute = s.Debug.deprecate(s.factory.createJsxSpreadAttribute, e), s.updateJsxSpreadAttribute = s.Debug.deprecate(s.factory.updateJsxSpreadAttribute, e), s.createJsxExpression = s.Debug.deprecate(s.factory.createJsxExpression, e), s.updateJsxExpression = s.Debug.deprecate(s.factory.updateJsxExpression, e), s.createCaseClause = s.Debug.deprecate(s.factory.createCaseClause, e), s.updateCaseClause = s.Debug.deprecate(s.factory.updateCaseClause, e), s.createDefaultClause = s.Debug.deprecate(s.factory.createDefaultClause, e), s.updateDefaultClause = s.Debug.deprecate(s.factory.updateDefaultClause, e), s.createHeritageClause = s.Debug.deprecate(s.factory.createHeritageClause, e), s.updateHeritageClause = s.Debug.deprecate(s.factory.updateHeritageClause, e), s.createCatchClause = s.Debug.deprecate(s.factory.createCatchClause, e), s.updateCatchClause = s.Debug.deprecate(s.factory.updateCatchClause, e), s.createPropertyAssignment = s.Debug.deprecate(s.factory.createPropertyAssignment, e), s.updatePropertyAssignment = s.Debug.deprecate(s.factory.updatePropertyAssignment, e), s.createShorthandPropertyAssignment = s.Debug.deprecate(s.factory.createShorthandPropertyAssignment, e), s.updateShorthandPropertyAssignment = s.Debug.deprecate(s.factory.updateShorthandPropertyAssignment, e), s.createSpreadAssignment = s.Debug.deprecate(s.factory.createSpreadAssignment, e), s.updateSpreadAssignment = s.Debug.deprecate(s.factory.updateSpreadAssignment, e), s.createEnumMember = s.Debug.deprecate(s.factory.createEnumMember, e), s.updateEnumMember = s.Debug.deprecate(s.factory.updateEnumMember, e), s.updateSourceFileNode = s.Debug.deprecate(s.factory.updateSourceFile, e), s.createNotEmittedStatement = s.Debug.deprecate(s.factory.createNotEmittedStatement, e), s.createPartiallyEmittedExpression = s.Debug.deprecate(s.factory.createPartiallyEmittedExpression, e), s.updatePartiallyEmittedExpression = s.Debug.deprecate(s.factory.updatePartiallyEmittedExpression, e), s.createCommaList = s.Debug.deprecate(s.factory.createCommaListExpression, e), s.updateCommaList = s.Debug.deprecate(s.factory.updateCommaListExpression, e), s.createBundle = s.Debug.deprecate(s.factory.createBundle, e), s.updateBundle = s.Debug.deprecate(s.factory.updateBundle, e), s.createImmediatelyInvokedFunctionExpression = s.Debug.deprecate(s.factory.createImmediatelyInvokedFunctionExpression, e), s.createImmediatelyInvokedArrowFunction = s.Debug.deprecate(s.factory.createImmediatelyInvokedArrowFunction, e), s.createVoidZero = s.Debug.deprecate(s.factory.createVoidZero, e), s.createExportDefault = s.Debug.deprecate(s.factory.createExportDefault, e), s.createExternalModuleExport = s.Debug.deprecate(s.factory.createExternalModuleExport, e), s.createNamespaceExport = s.Debug.deprecate(s.factory.createNamespaceExport, e), s.updateNamespaceExport = s.Debug.deprecate(s.factory.updateNamespaceExport, e), s.createToken = s.Debug.deprecate(function(e) { + return s.factory.createToken(e) + }, e), s.createIdentifier = s.Debug.deprecate(function(e) { + return s.factory.createIdentifier(e, void 0, void 0) + }, e), s.createTempVariable = s.Debug.deprecate(function(e) { + return s.factory.createTempVariable(e, void 0) + }, e), s.getGeneratedNameForNode = s.Debug.deprecate(function(e) { + return s.factory.getGeneratedNameForNode(e, void 0) + }, e), s.createOptimisticUniqueName = s.Debug.deprecate(function(e) { + return s.factory.createUniqueName(e, 16) + }, e), s.createFileLevelUniqueName = s.Debug.deprecate(function(e) { + return s.factory.createUniqueName(e, 48) + }, e), s.createIndexSignature = s.Debug.deprecate(function(e, t, r, n) { + return s.factory.createIndexSignature(e, t, r, n) + }, e), s.createTypePredicateNode = s.Debug.deprecate(function(e, t) { + return s.factory.createTypePredicateNode(void 0, e, t) + }, e), s.updateTypePredicateNode = s.Debug.deprecate(function(e, t, r) { + return s.factory.updateTypePredicateNode(e, void 0, t, r) + }, e), s.createLiteral = s.Debug.deprecate(function(e) { + return "number" == typeof e ? s.factory.createNumericLiteral(e) : "object" == typeof e && "base10Value" in e ? s.factory.createBigIntLiteral(e) : "boolean" == typeof e ? e ? s.factory.createTrue() : s.factory.createFalse() : "string" == typeof e ? s.factory.createStringLiteral(e, void 0) : s.factory.createStringLiteralFromNode(e) + }, { + since: "4.0", + warnAfter: "4.1", + message: "Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead." + }), s.createMethodSignature = s.Debug.deprecate(function(e, t, r, n, i) { + return s.factory.createMethodSignature(void 0, n, i, e, t, r) + }, e), s.updateMethodSignature = s.Debug.deprecate(function(e, t, r, n, i, a) { + return s.factory.updateMethodSignature(e, e.modifiers, i, a, t, r, n) + }, e), s.createTypeOperatorNode = s.Debug.deprecate(function(e, t) { + e = t ? e : (t = e, 141); + return s.factory.createTypeOperatorNode(e, t) + }, e), s.createTaggedTemplate = s.Debug.deprecate(function(e, t, r) { + var n; + return r ? n = t : r = t, s.factory.createTaggedTemplateExpression(e, n, r) + }, e), s.updateTaggedTemplate = s.Debug.deprecate(function(e, t, r, n) { + var i; + return n ? i = r : n = r, s.factory.updateTaggedTemplateExpression(e, t, i, n) + }, e), s.updateBinary = s.Debug.deprecate(function(e, t, r, n) { + return "number" == typeof(n = void 0 === n ? e.operatorToken : n) && (n = n === e.operatorToken.kind ? e.operatorToken : s.factory.createToken(n)), s.factory.updateBinaryExpression(e, t, n, r) + }, e), s.createConditional = s.Debug.deprecate(function(e, t, r, n, i) { + return 5 === arguments.length ? s.factory.createConditionalExpression(e, t, r, n, i) : 3 === arguments.length ? s.factory.createConditionalExpression(e, s.factory.createToken(57), t, s.factory.createToken(58), r) : s.Debug.fail("Argument count mismatch") + }, e), s.createYield = s.Debug.deprecate(function(e, t) { + var r; + return t ? r = e : t = e, s.factory.createYieldExpression(r, t) + }, e), s.createClassExpression = s.Debug.deprecate(function(e, t, r, n, i) { + return s.factory.createClassExpression(void 0, e, t, r, n, i) + }, e), s.updateClassExpression = s.Debug.deprecate(function(e, t, r, n, i, a) { + return s.factory.updateClassExpression(e, void 0, t, r, n, i, a) + }, e), s.createPropertySignature = s.Debug.deprecate(function(e, t, r, n, i) { + e = s.factory.createPropertySignature(e, t, r, n); + return e.initializer = i, e + }, e), s.updatePropertySignature = s.Debug.deprecate(function(e, t, r, n, i, a) { + t = s.factory.updatePropertySignature(e, t, r, n, i); + return e.initializer !== a && ((t = t === e ? s.factory.cloneNode(e) : t).initializer = a), t + }, e), s.createExpressionWithTypeArguments = s.Debug.deprecate(function(e, t) { + return s.factory.createExpressionWithTypeArguments(t, e) + }, e), s.updateExpressionWithTypeArguments = s.Debug.deprecate(function(e, t, r) { + return s.factory.updateExpressionWithTypeArguments(e, r, t) + }, e), s.createArrowFunction = s.Debug.deprecate(function(e, t, r, n, i, a) { + return 6 === arguments.length ? s.factory.createArrowFunction(e, t, r, n, i, a) : 5 === arguments.length ? s.factory.createArrowFunction(e, t, r, n, void 0, i) : s.Debug.fail("Argument count mismatch") + }, e), s.updateArrowFunction = s.Debug.deprecate(function(e, t, r, n, i, a, o) { + return 7 === arguments.length ? s.factory.updateArrowFunction(e, t, r, n, i, a, o) : 6 === arguments.length ? s.factory.updateArrowFunction(e, t, r, n, i, e.equalsGreaterThanToken, a) : s.Debug.fail("Argument count mismatch") + }, e), s.createVariableDeclaration = s.Debug.deprecate(function(e, t, r, n) { + return 4 === arguments.length ? s.factory.createVariableDeclaration(e, t, r, n) : 1 <= arguments.length && arguments.length <= 3 ? s.factory.createVariableDeclaration(e, void 0, t, r) : s.Debug.fail("Argument count mismatch") + }, e), s.updateVariableDeclaration = s.Debug.deprecate(function(e, t, r, n, i) { + return 5 === arguments.length ? s.factory.updateVariableDeclaration(e, t, r, n, i) : 4 === arguments.length ? s.factory.updateVariableDeclaration(e, t, e.exclamationToken, r, n) : s.Debug.fail("Argument count mismatch") + }, e), s.createImportClause = s.Debug.deprecate(function(e, t, r) { + return s.factory.createImportClause(r = void 0 === r ? !1 : r, e, t) + }, e), s.updateImportClause = s.Debug.deprecate(function(e, t, r, n) { + return s.factory.updateImportClause(e, n, t, r) + }, e), s.createExportDeclaration = s.Debug.deprecate(function(e, t, r, n, i) { + return s.factory.createExportDeclaration(e, t, i = void 0 === i ? !1 : i, r, n) + }, e), s.updateExportDeclaration = s.Debug.deprecate(function(e, t, r, n, i, a) { + return s.factory.updateExportDeclaration(e, t, r, a, n, i, e.assertClause) + }, e), s.createJSDocParamTag = s.Debug.deprecate(function(e, t, r, n) { + return s.factory.createJSDocParameterTag(void 0, e, t, r, !1, n ? s.factory.createNodeArray([s.factory.createJSDocText(n)]) : void 0) + }, e), s.createComma = s.Debug.deprecate(function(e, t) { + return s.factory.createComma(e, t) + }, e), s.createLessThan = s.Debug.deprecate(function(e, t) { + return s.factory.createLessThan(e, t) + }, e), s.createAssignment = s.Debug.deprecate(function(e, t) { + return s.factory.createAssignment(e, t) + }, e), s.createStrictEquality = s.Debug.deprecate(function(e, t) { + return s.factory.createStrictEquality(e, t) + }, e), s.createStrictInequality = s.Debug.deprecate(function(e, t) { + return s.factory.createStrictInequality(e, t) + }, e), s.createAdd = s.Debug.deprecate(function(e, t) { + return s.factory.createAdd(e, t) + }, e), s.createSubtract = s.Debug.deprecate(function(e, t) { + return s.factory.createSubtract(e, t) + }, e), s.createLogicalAnd = s.Debug.deprecate(function(e, t) { + return s.factory.createLogicalAnd(e, t) + }, e), s.createLogicalOr = s.Debug.deprecate(function(e, t) { + return s.factory.createLogicalOr(e, t) + }, e), s.createPostfixIncrement = s.Debug.deprecate(function(e) { + return s.factory.createPostfixIncrement(e) + }, e), s.createLogicalNot = s.Debug.deprecate(function(e) { + return s.factory.createLogicalNot(e) + }, e), s.createNode = s.Debug.deprecate(function(e, t, r) { + return void 0 === t && (t = 0), void 0 === r && (r = 0), s.setTextRangePosEnd(308 === e ? s.parseBaseNodeFactory.createBaseSourceFileNode(e) : 79 === e ? s.parseBaseNodeFactory.createBaseIdentifierNode(e) : 80 === e ? s.parseBaseNodeFactory.createBasePrivateIdentifierNode(e) : s.isNodeKind(e) ? s.parseBaseNodeFactory.createBaseNode(e) : s.parseBaseNodeFactory.createBaseTokenNode(e), t, r) + }, { + since: "4.0", + warnAfter: "4.1", + message: "Use an appropriate `factory` method instead." + }), s.getMutableClone = s.Debug.deprecate(function(e) { + var t = s.factory.cloneNode(e); + return s.setTextRange(t, e), s.setParent(t, e.parent), t + }, { + since: "4.0", + warnAfter: "4.1", + message: "Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`." + }) + }(ts = ts || {}), + function(e) { + e.isTypeAssertion = e.Debug.deprecate(function(e) { + return 213 === e.kind + }, { + since: "4.0", + warnAfter: "4.1", + message: "Use `isTypeAssertionExpression` instead." + }) + }(ts = ts || {}), + function(t) { + t.isIdentifierOrPrivateIdentifier = t.Debug.deprecate(function(e) { + return t.isMemberName(e) + }, { + since: "4.2", + warnAfter: "4.3", + message: "Use `isMemberName` instead." + }) + }(ts = ts || {}), + function(t) { + function r(e) { + var i = e.createConstructorTypeNode, + a = e.updateConstructorTypeNode; + e.createConstructorTypeNode = t.buildOverload("createConstructorTypeNode").overload({ + 0: function(e, t, r, n) { + return i(e, t, r, n) + }, + 1: function(e, t, r) { + return i(void 0, e, t, r) + } + }).bind({ + 0: function(e) { + return 4 === e.length + }, + 1: function(e) { + return 3 === e.length + } + }).deprecate({ + 1: { + since: "4.2", + warnAfter: "4.3", + message: "Use the overload that accepts 'modifiers'" + } + }).finish(), e.updateConstructorTypeNode = t.buildOverload("updateConstructorTypeNode").overload({ + 0: function(e, t, r, n, i) { + return a(e, t, r, n, i) + }, + 1: function(e, t, r, n) { + return a(e, e.modifiers, t, r, n) + } + }).bind({ + 0: function(e) { + return 5 === e.length + }, + 1: function(e) { + return 4 === e.length + } + }).deprecate({ + 1: { + since: "4.2", + warnAfter: "4.3", + message: "Use the overload that accepts 'modifiers'" + } + }).finish() + } + var n = t.createNodeFactory; + t.createNodeFactory = function(e, t) { + e = n(e, t); + return r(e), e + }, r(t.factory) + }(ts = ts || {}), + function(i) { + function r(e) { + var a = e.createImportTypeNode, + o = e.updateImportTypeNode; + e.createImportTypeNode = i.buildOverload("createImportTypeNode").overload({ + 0: function(e, t, r, n, i) { + return a(e, t, r, n, i) + }, + 1: function(e, t, r, n) { + return a(e, void 0, t, r, n) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3], + e = e[4]; + return (void 0 === t || i.isImportTypeAssertionContainer(t)) && (void 0 === r || !i.isArray(r)) && (void 0 === n || i.isArray(n)) && (void 0 === e || "boolean" == typeof e) + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3]; + return void 0 === e[4] && (void 0 === t || i.isEntityName(t)) && (void 0 === r || i.isArray(r)) && (void 0 === n || "boolean" == typeof n) + } + }).deprecate({ + 1: { + since: "4.6", + warnAfter: "4.7", + message: "Use the overload that accepts 'assertions'" + } + }).finish(), e.updateImportTypeNode = i.buildOverload("updateImportTypeNode").overload({ + 0: function(e, t, r, n, i, a) { + return o(e, t, r, n, i, a) + }, + 1: function(e, t, r, n, i) { + return o(e, t, e.assertions, r, n, i) + } + }).bind({ + 0: function(e) { + var t = e[2], + r = e[3], + n = e[4], + e = e[5]; + return (void 0 === t || i.isImportTypeAssertionContainer(t)) && (void 0 === r || !i.isArray(r)) && (void 0 === n || i.isArray(n)) && (void 0 === e || "boolean" == typeof e) + }, + 1: function(e) { + var t = e[2], + r = e[3], + n = e[4]; + return void 0 === e[5] && (void 0 === t || i.isEntityName(t)) && (void 0 === r || i.isArray(r)) && (void 0 === n || "boolean" == typeof n) + } + }).deprecate({ + 1: { + since: "4.6", + warnAfter: "4.7", + message: "Use the overload that accepts 'assertions'" + } + }).finish() + } + var n = i.createNodeFactory; + i.createNodeFactory = function(e, t) { + e = n(e, t); + return r(e), e + }, r(i.factory) + }(ts = ts || {}), + function(t) { + function r(e) { + var i = e.createTypeParameterDeclaration, + a = e.updateTypeParameterDeclaration; + e.createTypeParameterDeclaration = t.buildOverload("createTypeParameterDeclaration").overload({ + 0: function(e, t, r, n) { + return i(e, t, r, n) + }, + 1: function(e, t, r) { + return i(void 0, e, t, r) + } + }).bind({ + 0: function(e) { + e = e[0]; + return void 0 === e || t.isArray(e) + }, + 1: function(e) { + e = e[0]; + return void 0 !== e && !t.isArray(e) + } + }).deprecate({ + 1: { + since: "4.7", + warnAfter: "4.8", + message: "Use the overload that accepts 'modifiers'" + } + }).finish(), e.updateTypeParameterDeclaration = t.buildOverload("updateTypeParameterDeclaration").overload({ + 0: function(e, t, r, n, i) { + return a(e, t, r, n, i) + }, + 1: function(e, t, r, n) { + return a(e, e.modifiers, t, r, n) + } + }).bind({ + 0: function(e) { + e = e[1]; + return void 0 === e || t.isArray(e) + }, + 1: function(e) { + e = e[1]; + return void 0 !== e && !t.isArray(e) + } + }).deprecate({ + 1: { + since: "4.7", + warnAfter: "4.8", + message: "Use the overload that accepts 'modifiers'" + } + }).finish() + } + var n = t.createNodeFactory; + t.createNodeFactory = function(e, t) { + e = n(e, t); + return r(e), e + }, r(t.factory) + }(ts = ts || {}), + function(z) { + var t = { + since: "4.8", + warnAfter: "4.9.0-0", + message: "Decorators have been combined with modifiers. Callers should switch to an overload that does not accept a 'decorators' parameter." + }, + r = { + since: "4.8", + warnAfter: "4.9.0-0", + message: "Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter." + }, + U = { + since: "4.8", + warnAfter: "4.9.0-0", + message: "Decorators and modifiers are no longer supported for this function. Callers should switch to an overload that does not accept the 'decorators' and 'modifiers' parameters." + }; + + function n(e) { + var s = e.createParameterDeclaration, + c = e.updateParameterDeclaration, + o = e.createPropertyDeclaration, + l = e.updatePropertyDeclaration, + u = e.createMethodDeclaration, + _ = e.updateMethodDeclaration, + i = e.createConstructorDeclaration, + a = e.updateConstructorDeclaration, + d = e.createGetAccessorDeclaration, + p = e.updateGetAccessorDeclaration, + f = e.createSetAccessorDeclaration, + g = e.updateSetAccessorDeclaration, + m = e.createIndexSignature, + y = e.updateIndexSignature, + n = e.createClassStaticBlockDeclaration, + h = e.updateClassStaticBlockDeclaration, + v = e.createClassExpression, + b = e.updateClassExpression, + x = e.createFunctionDeclaration, + D = e.updateFunctionDeclaration, + S = e.createClassDeclaration, + T = e.updateClassDeclaration, + C = e.createInterfaceDeclaration, + E = e.updateInterfaceDeclaration, + k = e.createTypeAliasDeclaration, + N = e.updateTypeAliasDeclaration, + A = e.createEnumDeclaration, + F = e.updateEnumDeclaration, + P = e.createModuleDeclaration, + w = e.updateModuleDeclaration, + I = e.createImportEqualsDeclaration, + O = e.updateImportEqualsDeclaration, + M = e.createImportDeclaration, + L = e.updateImportDeclaration, + R = e.createExportAssignment, + B = e.updateExportAssignment, + j = e.createExportDeclaration, + J = e.updateExportDeclaration; + e.createParameterDeclaration = z.buildOverload("createParameterDeclaration").overload({ + 0: function(e, t, r, n, i, a) { + return s(e, t, r, n, i, a) + }, + 1: function(e, t, r, n, i, a, o) { + return s(z.concatenate(e, t), r, n, i, a, o) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4], + a = e[5]; + return void 0 === e[6] && (void 0 === t || !z.isArray(t)) && (void 0 === r || "string" == typeof r || z.isBindingName(r)) && (void 0 === n || "object" == typeof n && z.isQuestionToken(n)) && (void 0 === i || z.isTypeNode(i)) && (void 0 === a || z.isExpression(a)) + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4], + a = e[5], + e = e[6]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || "object" == typeof r && z.isDotDotDotToken(r)) && (void 0 === n || "string" == typeof n || z.isBindingName(n)) && (void 0 === i || z.isQuestionToken(i)) && (void 0 === a || z.isTypeNode(a)) && (void 0 === e || z.isExpression(e)) + } + }).deprecate({ + 1: t + }).finish(), e.updateParameterDeclaration = z.buildOverload("updateParameterDeclaration").overload({ + 0: function(e, t, r, n, i, a, o) { + return c(e, t, r, n, i, a, o) + }, + 1: function(e, t, r, n, i, a, o, s) { + return c(e, z.concatenate(t, r), n, i, a, o, s) + } + }).bind({ + 0: function(e) { + var t = e[2], + r = e[3], + n = e[4], + i = e[5], + a = e[6]; + return void 0 === e[7] && (void 0 === t || !z.isArray(t)) && (void 0 === r || "string" == typeof r || z.isBindingName(r)) && (void 0 === n || "object" == typeof n && z.isQuestionToken(n)) && (void 0 === i || z.isTypeNode(i)) && (void 0 === a || z.isExpression(a)) + }, + 1: function(e) { + var t = e[2], + r = e[3], + n = e[4], + i = e[5], + a = e[6], + e = e[7]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || "object" == typeof r && z.isDotDotDotToken(r)) && (void 0 === n || "string" == typeof n || z.isBindingName(n)) && (void 0 === i || z.isQuestionToken(i)) && (void 0 === a || z.isTypeNode(a)) && (void 0 === e || z.isExpression(e)) + } + }).deprecate({ + 1: t + }).finish(), e.createPropertyDeclaration = z.buildOverload("createPropertyDeclaration").overload({ + 0: function(e, t, r, n, i) { + return o(e, t, r, n, i) + }, + 1: function(e, t, r, n, i, a) { + return o(z.concatenate(e, t), r, n, i, a) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4]; + return void 0 === e[5] && (void 0 === t || !z.isArray(t)) && (void 0 === r || "object" == typeof r && z.isQuestionOrExclamationToken(r)) && (void 0 === n || z.isTypeNode(n)) && (void 0 === i || z.isExpression(i)) + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4], + e = e[5]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || "string" == typeof r || z.isPropertyName(r)) && (void 0 === n || z.isQuestionOrExclamationToken(n)) && (void 0 === i || z.isTypeNode(i)) && (void 0 === e || z.isExpression(e)) + } + }).deprecate({ + 1: t + }).finish(), e.updatePropertyDeclaration = z.buildOverload("updatePropertyDeclaration").overload({ + 0: function(e, t, r, n, i, a) { + return l(e, t, r, n, i, a) + }, + 1: function(e, t, r, n, i, a, o) { + return l(e, z.concatenate(t, r), n, i, a, o) + } + }).bind({ + 0: function(e) { + var t = e[2], + r = e[3], + n = e[4], + i = e[5]; + return void 0 === e[6] && (void 0 === t || !z.isArray(t)) && (void 0 === r || "object" == typeof r && z.isQuestionOrExclamationToken(r)) && (void 0 === n || z.isTypeNode(n)) && (void 0 === i || z.isExpression(i)) + }, + 1: function(e) { + var t = e[2], + r = e[3], + n = e[4], + i = e[5], + e = e[6]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || "string" == typeof r || z.isPropertyName(r)) && (void 0 === n || z.isQuestionOrExclamationToken(n)) && (void 0 === i || z.isTypeNode(i)) && (void 0 === e || z.isExpression(e)) + } + }).deprecate({ + 1: t + }).finish(), e.createMethodDeclaration = z.buildOverload("createMethodDeclaration").overload({ + 0: function(e, t, r, n, i, a, o, s) { + return u(e, t, r, n, i, a, o, s) + }, + 1: function(e, t, r, n, i, a, o, s, c) { + return u(z.concatenate(e, t), r, n, i, a, o, s, c) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4], + a = e[5], + o = e[6], + s = e[7]; + return void 0 === e[8] && (void 0 === t || !z.isArray(t)) && (void 0 === r || "string" == typeof r || z.isPropertyName(r)) && (void 0 === n || "object" == typeof n && z.isQuestionToken(n)) && (void 0 === i || z.isArray(i)) && (void 0 === a || !z.some(a, z.isTypeParameterDeclaration)) && (void 0 === o || !z.isArray(o)) && (void 0 === s || z.isBlock(s)) + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4], + a = e[5], + o = e[6], + s = e[7], + e = e[8]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || "object" == typeof r && z.isAsteriskToken(r)) && (void 0 === n || "string" == typeof n || z.isPropertyName(n)) && (void 0 === i || !z.isArray(i)) && (void 0 === a || !z.some(a, z.isParameter)) && (void 0 === o || z.isArray(o)) && (void 0 === s || z.isTypeNode(s)) && (void 0 === e || z.isBlock(e)) + } + }).deprecate({ + 1: t + }).finish(), e.updateMethodDeclaration = z.buildOverload("updateMethodDeclaration").overload({ + 0: function(e, t, r, n, i, a, o, s, c) { + return _(e, t, r, n, i, a, o, s, c) + }, + 1: function(e, t, r, n, i, a, o, s, c, l) { + return _(e, z.concatenate(t, r), n, i, a, o, s, c, l) + } + }).bind({ + 0: function(e) { + var t = e[2], + r = e[3], + n = e[4], + i = e[5], + a = e[6], + o = e[7], + s = e[8]; + return void 0 === e[9] && (void 0 === t || !z.isArray(t)) && (void 0 === r || "string" == typeof r || z.isPropertyName(r)) && (void 0 === n || "object" == typeof n && z.isQuestionToken(n)) && (void 0 === i || z.isArray(i)) && (void 0 === a || !z.some(a, z.isTypeParameterDeclaration)) && (void 0 === o || !z.isArray(o)) && (void 0 === s || z.isBlock(s)) + }, + 1: function(e) { + var t = e[2], + r = e[3], + n = e[4], + i = e[5], + a = e[6], + o = e[7], + s = e[8], + e = e[9]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || "object" == typeof r && z.isAsteriskToken(r)) && (void 0 === n || "string" == typeof n || z.isPropertyName(n)) && (void 0 === i || !z.isArray(i)) && (void 0 === a || !z.some(a, z.isParameter)) && (void 0 === o || z.isArray(o)) && (void 0 === s || z.isTypeNode(s)) && (void 0 === e || z.isBlock(e)) + } + }).deprecate({ + 1: t + }).finish(), e.createConstructorDeclaration = z.buildOverload("createConstructorDeclaration").overload({ + 0: function(e, t, r) { + return i(e, t, r) + }, + 1: function(e, t, r, n) { + return i(t, r, n) + } + }).bind({ + 0: function(e) { + var t = e[0], + r = e[1], + n = e[2]; + return !(void 0 !== e[3] || void 0 !== t && z.some(t, z.isDecorator) || void 0 !== r && z.some(r, z.isModifier) || void 0 !== n && z.isArray(n)) + }, + 1: function(e) { + var t = e[0], + r = e[1], + n = e[2], + e = e[3]; + return (void 0 === t || !z.some(t, z.isModifier)) && (void 0 === r || !z.some(r, z.isParameter)) && (void 0 === n || z.isArray(n)) && (void 0 === e || z.isBlock(e)) + } + }).deprecate({ + 1: r + }).finish(), e.updateConstructorDeclaration = z.buildOverload("updateConstructorDeclaration").overload({ + 0: function(e, t, r, n) { + return a(e, t, r, n) + }, + 1: function(e, t, r, n, i) { + return a(e, r, n, i) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3]; + return !(void 0 !== e[4] || void 0 !== t && z.some(t, z.isDecorator) || void 0 !== r && z.some(r, z.isModifier) || void 0 !== n && z.isArray(n)) + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3], + e = e[4]; + return (void 0 === t || !z.some(t, z.isModifier)) && (void 0 === r || !z.some(r, z.isParameter)) && (void 0 === n || z.isArray(n)) && (void 0 === e || z.isBlock(e)) + } + }).deprecate({ + 1: r + }).finish(), e.createGetAccessorDeclaration = z.buildOverload("createGetAccessorDeclaration").overload({ + 0: function(e, t, r, n, i) { + return d(e, t, r, n, i) + }, + 1: function(e, t, r, n, i, a) { + return d(z.concatenate(e, t), r, n, i, a) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4]; + return void 0 === e[5] && (void 0 === t || !z.isArray(t)) && (void 0 === r || z.isArray(r)) && (void 0 === n || !z.isArray(n)) && (void 0 === i || z.isBlock(i)) + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4], + e = e[5]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || !z.isArray(r)) && (void 0 === n || z.isArray(n)) && (void 0 === i || z.isTypeNode(i)) && (void 0 === e || z.isBlock(e)) + } + }).deprecate({ + 1: t + }).finish(), e.updateGetAccessorDeclaration = z.buildOverload("updateGetAccessorDeclaration").overload({ + 0: function(e, t, r, n, i, a) { + return p(e, t, r, n, i, a) + }, + 1: function(e, t, r, n, i, a, o) { + return p(e, z.concatenate(t, r), n, i, a, o) + } + }).bind({ + 0: function(e) { + var t = e[2], + r = e[3], + n = e[4], + i = e[5]; + return void 0 === e[6] && (void 0 === t || !z.isArray(t)) && (void 0 === r || z.isArray(r)) && (void 0 === n || !z.isArray(n)) && (void 0 === i || z.isBlock(i)) + }, + 1: function(e) { + var t = e[2], + r = e[3], + n = e[4], + i = e[5], + e = e[6]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || !z.isArray(r)) && (void 0 === n || z.isArray(n)) && (void 0 === i || z.isTypeNode(i)) && (void 0 === e || z.isBlock(e)) + } + }).deprecate({ + 1: t + }).finish(), e.createSetAccessorDeclaration = z.buildOverload("createSetAccessorDeclaration").overload({ + 0: function(e, t, r, n) { + return f(e, t, r, n) + }, + 1: function(e, t, r, n, i) { + return f(z.concatenate(e, t), r, n, i) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3]; + return void 0 === e[4] && (void 0 === t || !z.isArray(t)) && (void 0 === r || z.isArray(r)) && (void 0 === n || !z.isArray(n)) + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3], + e = e[4]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || !z.isArray(r)) && (void 0 === n || z.isArray(n)) && (void 0 === e || z.isBlock(e)) + } + }).deprecate({ + 1: t + }).finish(), e.updateSetAccessorDeclaration = z.buildOverload("updateSetAccessorDeclaration").overload({ + 0: function(e, t, r, n, i) { + return g(e, t, r, n, i) + }, + 1: function(e, t, r, n, i, a) { + return g(e, z.concatenate(t, r), n, i, a) + } + }).bind({ + 0: function(e) { + var t = e[2], + r = e[3], + n = e[4]; + return void 0 === e[5] && (void 0 === t || !z.isArray(t)) && (void 0 === r || z.isArray(r)) && (void 0 === n || !z.isArray(n)) + }, + 1: function(e) { + var t = e[2], + r = e[3], + n = e[4], + e = e[5]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || !z.isArray(r)) && (void 0 === n || z.isArray(n)) && (void 0 === e || z.isBlock(e)) + } + }).deprecate({ + 1: t + }).finish(), e.createIndexSignature = z.buildOverload("createIndexSignature").overload({ + 0: function(e, t, r) { + return m(e, t, r) + }, + 1: function(e, t, r, n) { + return m(t, r, n) + } + }).bind({ + 0: function(e) { + var t = e[0], + r = e[1], + n = e[2]; + return void 0 === e[3] && (void 0 === t || z.every(t, z.isModifier)) && (void 0 === r || z.every(r, z.isParameter)) && (void 0 === n || !z.isArray(n)) + }, + 1: function(e) { + var t = e[0], + r = e[1], + n = e[2], + e = e[3]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.every(r, z.isModifier)) && (void 0 === n || z.isArray(n)) && (void 0 === e || z.isTypeNode(e)) + } + }).deprecate({ + 1: r + }).finish(), e.updateIndexSignature = z.buildOverload("updateIndexSignature").overload({ + 0: function(e, t, r, n) { + return y(e, t, r, n) + }, + 1: function(e, t, r, n, i) { + return y(e, r, n, i) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3]; + return void 0 === e[4] && (void 0 === t || z.every(t, z.isModifier)) && (void 0 === r || z.every(r, z.isParameter)) && (void 0 === n || !z.isArray(n)) + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3], + e = e[4]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.every(r, z.isModifier)) && (void 0 === n || z.isArray(n)) && (void 0 === e || z.isTypeNode(e)) + } + }).deprecate({ + 1: r + }).finish(), e.createClassStaticBlockDeclaration = z.buildOverload("createClassStaticBlockDeclaration").overload({ + 0: function(e) { + return n(e) + }, + 1: function(e, t, r) { + return n(r) + } + }).bind({ + 0: function(e) { + var t = e[0], + r = e[1], + e = e[2]; + return void 0 === r && void 0 === e && (void 0 === t || !z.isArray(t)) + }, + 1: function(e) { + var t = e[0], + r = e[1], + e = e[2]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || z.isArray(t)) && (void 0 === e || z.isBlock(e)) + } + }).deprecate({ + 1: U + }).finish(), e.updateClassStaticBlockDeclaration = z.buildOverload("updateClassStaticBlockDeclaration").overload({ + 0: function(e, t) { + return h(e, t) + }, + 1: function(e, t, r, n) { + return h(e, n) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + e = e[3]; + return void 0 === r && void 0 === e && (void 0 === t || !z.isArray(t)) + }, + 1: function(e) { + var t = e[1], + r = e[2], + e = e[3]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || z.isArray(t)) && (void 0 === e || z.isBlock(e)) + } + }).deprecate({ + 1: U + }).finish(), e.createClassExpression = z.buildOverload("createClassExpression").overload({ + 0: function(e, t, r, n, i) { + return v(e, t, r, n, i) + }, + 1: function(e, t, r, n, i, a) { + return v(z.concatenate(e, t), r, n, i, a) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4]; + return void 0 === e[5] && (void 0 === t || !z.isArray(t)) && (void 0 === r || z.isArray(r)) && (void 0 === n || z.every(n, z.isHeritageClause)) && (void 0 === i || z.every(i, z.isClassElement)) + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4], + e = e[5]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || !z.isArray(r)) && (void 0 === n || z.every(n, z.isTypeParameterDeclaration)) && (void 0 === i || z.every(i, z.isHeritageClause)) && (void 0 === e || z.isArray(e)) + } + }).deprecate({ + 1: r + }).finish(), e.updateClassExpression = z.buildOverload("updateClassExpression").overload({ + 0: function(e, t, r, n, i, a) { + return b(e, t, r, n, i, a) + }, + 1: function(e, t, r, n, i, a, o) { + return b(e, z.concatenate(t, r), n, i, a, o) + } + }).bind({ + 0: function(e) { + var t = e[2], + r = e[3], + n = e[4], + i = e[5]; + return void 0 === e[6] && (void 0 === t || !z.isArray(t)) && (void 0 === r || z.isArray(r)) && (void 0 === n || z.every(n, z.isHeritageClause)) && (void 0 === i || z.every(i, z.isClassElement)) + }, + 1: function(e) { + var t = e[2], + r = e[3], + n = e[4], + i = e[5], + e = e[6]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || !z.isArray(r)) && (void 0 === n || z.every(n, z.isTypeParameterDeclaration)) && (void 0 === i || z.every(i, z.isHeritageClause)) && (void 0 === e || z.isArray(e)) + } + }).deprecate({ + 1: r + }).finish(), e.createFunctionDeclaration = z.buildOverload("createFunctionDeclaration").overload({ + 0: function(e, t, r, n, i, a, o) { + return x(e, t, r, n, i, a, o) + }, + 1: function(e, t, r, n, i, a, o, s) { + return x(t, r, n, i, a, o, s) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4], + a = e[5], + o = e[6]; + return void 0 === e[7] && (void 0 === t || !z.isArray(t)) && (void 0 === r || "string" == typeof r || z.isIdentifier(r)) && (void 0 === n || z.isArray(n)) && (void 0 === i || z.every(i, z.isParameter)) && (void 0 === a || !z.isArray(a)) && (void 0 === o || z.isBlock(o)) + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4], + a = e[5], + o = e[6], + e = e[7]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || "string" != typeof r && z.isAsteriskToken(r)) && (void 0 === n || !z.isArray(n)) && (void 0 === i || z.every(i, z.isTypeParameterDeclaration)) && (void 0 === a || z.isArray(a)) && (void 0 === o || z.isTypeNode(o)) && (void 0 === e || z.isBlock(e)) + } + }).deprecate({ + 1: r + }).finish(), e.updateFunctionDeclaration = z.buildOverload("updateFunctionDeclaration").overload({ + 0: function(e, t, r, n, i, a, o, s) { + return D(e, t, r, n, i, a, o, s) + }, + 1: function(e, t, r, n, i, a, o, s, c) { + return D(e, r, n, i, a, o, s, c) + } + }).bind({ + 0: function(e) { + var t = e[2], + r = e[3], + n = e[4], + i = e[5], + a = e[6], + o = e[7]; + return void 0 === e[8] && (void 0 === t || !z.isArray(t)) && (void 0 === r || z.isIdentifier(r)) && (void 0 === n || z.isArray(n)) && (void 0 === i || z.every(i, z.isParameter)) && (void 0 === a || !z.isArray(a)) && (void 0 === o || z.isBlock(o)) + }, + 1: function(e) { + var t = e[2], + r = e[3], + n = e[4], + i = e[5], + a = e[6], + o = e[7], + e = e[8]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || "string" != typeof r && z.isAsteriskToken(r)) && (void 0 === n || !z.isArray(n)) && (void 0 === i || z.every(i, z.isTypeParameterDeclaration)) && (void 0 === a || z.isArray(a)) && (void 0 === o || z.isTypeNode(o)) && (void 0 === e || z.isBlock(e)) + } + }).deprecate({ + 1: r + }).finish(), e.createClassDeclaration = z.buildOverload("createClassDeclaration").overload({ + 0: function(e, t, r, n, i) { + return S(e, t, r, n, i) + }, + 1: function(e, t, r, n, i, a) { + return S(z.concatenate(e, t), r, n, i, a) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4]; + return void 0 === e[5] && (void 0 === t || !z.isArray(t)) && (void 0 === r || z.isArray(r)) && (void 0 === n || z.every(n, z.isHeritageClause)) && (void 0 === i || z.every(i, z.isClassElement)) + }, + 1: function() { + return !0 + } + }).deprecate({ + 1: t + }).finish(), e.updateClassDeclaration = z.buildOverload("updateClassDeclaration").overload({ + 0: function(e, t, r, n, i, a) { + return T(e, t, r, n, i, a) + }, + 1: function(e, t, r, n, i, a, o) { + return T(e, z.concatenate(t, r), n, i, a, o) + } + }).bind({ + 0: function(e) { + var t = e[2], + r = e[3], + n = e[4], + i = e[5]; + return void 0 === e[6] && (void 0 === t || !z.isArray(t)) && (void 0 === r || z.isArray(r)) && (void 0 === n || z.every(n, z.isHeritageClause)) && (void 0 === i || z.every(i, z.isClassElement)) + }, + 1: function(e) { + var t = e[2], + r = e[3], + n = e[4], + i = e[5], + e = e[6]; + return (void 0 === t || z.isArray(t)) && (void 0 === r || !z.isArray(r)) && (void 0 === n || z.every(n, z.isTypeParameterDeclaration)) && (void 0 === i || z.every(i, z.isHeritageClause)) && (void 0 === e || z.isArray(e)) + } + }).deprecate({ + 1: t + }).finish(), e.createInterfaceDeclaration = z.buildOverload("createInterfaceDeclaration").overload({ + 0: function(e, t, r, n, i) { + return C(e, t, r, n, i) + }, + 1: function(e, t, r, n, i, a) { + return C(t, r, n, i, a) + } + }).bind({ + 0: function(e) { + var t = e[0], + r = e[1], + n = e[2], + i = e[3], + a = e[4]; + return void 0 === e[5] && (void 0 === t || z.every(t, z.isModifier)) && (void 0 === r || !z.isArray(r)) && (void 0 === n || z.isArray(n)) && (void 0 === i || z.every(i, z.isHeritageClause)) && (void 0 === a || z.every(a, z.isTypeElement)) + }, + 1: function(e) { + var t = e[0], + r = e[1], + n = e[2], + i = e[3], + a = e[4], + e = e[5]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.isArray(r)) && (void 0 === n || !z.isArray(n)) && (void 0 === i || z.every(i, z.isTypeParameterDeclaration)) && (void 0 === a || z.every(a, z.isHeritageClause)) && (void 0 === e || z.every(e, z.isTypeElement)) + } + }).deprecate({ + 1: r + }).finish(), e.updateInterfaceDeclaration = z.buildOverload("updateInterfaceDeclaration").overload({ + 0: function(e, t, r, n, i, a) { + return E(e, t, r, n, i, a) + }, + 1: function(e, t, r, n, i, a, o) { + return E(e, r, n, i, a, o) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4], + a = e[5]; + return void 0 === e[6] && (void 0 === t || z.every(t, z.isModifier)) && (void 0 === r || !z.isArray(r)) && (void 0 === n || z.isArray(n)) && (void 0 === i || z.every(i, z.isHeritageClause)) && (void 0 === a || z.every(a, z.isTypeElement)) + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4], + a = e[5], + e = e[6]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.isArray(r)) && (void 0 === n || !z.isArray(n)) && (void 0 === i || z.every(i, z.isTypeParameterDeclaration)) && (void 0 === a || z.every(a, z.isHeritageClause)) && (void 0 === e || z.every(e, z.isTypeElement)) + } + }).deprecate({ + 1: r + }).finish(), e.createTypeAliasDeclaration = z.buildOverload("createTypeAliasDeclaration").overload({ + 0: function(e, t, r, n) { + return k(e, t, r, n) + }, + 1: function(e, t, r, n, i) { + return k(t, r, n, i) + } + }).bind({ + 0: function(e) { + var t = e[0], + r = e[1], + n = e[2], + i = e[3]; + return void 0 === e[4] && (void 0 === t || z.every(t, z.isModifier)) && (void 0 === r || !z.isArray(r)) && (void 0 === n || z.isArray(n)) && (void 0 === i || !z.isArray(i)) + }, + 1: function(e) { + var t = e[0], + r = e[1], + n = e[2], + i = e[3], + e = e[4]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.isArray(r)) && (void 0 === n || !z.isArray(n)) && (void 0 === i || z.isArray(i)) && (void 0 === e || z.isTypeNode(e)) + } + }).deprecate({ + 1: r + }).finish(), e.updateTypeAliasDeclaration = z.buildOverload("updateTypeAliasDeclaration").overload({ + 0: function(e, t, r, n, i) { + return N(e, t, r, n, i) + }, + 1: function(e, t, r, n, i, a) { + return N(e, r, n, i, a) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4]; + return void 0 === e[5] && (void 0 === t || z.every(t, z.isModifier)) && (void 0 === r || !z.isArray(r)) && (void 0 === n || z.isArray(n)) && (void 0 === i || !z.isArray(i)) + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4], + e = e[5]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.isArray(r)) && (void 0 === n || !z.isArray(n)) && (void 0 === i || z.isArray(i)) && (void 0 === e || z.isTypeNode(e)) + } + }).deprecate({ + 1: r + }).finish(), e.createEnumDeclaration = z.buildOverload("createEnumDeclaration").overload({ + 0: function(e, t, r) { + return A(e, t, r) + }, + 1: function(e, t, r, n) { + return A(t, r, n) + } + }).bind({ + 0: function(e) { + var t = e[0], + r = e[1], + n = e[2]; + return void 0 === e[3] && (void 0 === t || z.every(t, z.isModifier)) && (void 0 === r || !z.isArray(r)) && (void 0 === n || z.isArray(n)) + }, + 1: function(e) { + var t = e[0], + r = e[1], + n = e[2], + e = e[3]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.isArray(r)) && (void 0 === n || !z.isArray(n)) && (void 0 === e || z.isArray(e)) + } + }).deprecate({ + 1: r + }).finish(), e.updateEnumDeclaration = z.buildOverload("updateEnumDeclaration").overload({ + 0: function(e, t, r, n) { + return F(e, t, r, n) + }, + 1: function(e, t, r, n, i) { + return F(e, r, n, i) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3]; + return void 0 === e[4] && (void 0 === t || z.every(t, z.isModifier)) && (void 0 === r || !z.isArray(r)) && (void 0 === n || z.isArray(n)) + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3], + e = e[4]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.isArray(r)) && (void 0 === n || !z.isArray(n)) && (void 0 === e || z.isArray(e)) + } + }).deprecate({ + 1: r + }).finish(), e.createModuleDeclaration = z.buildOverload("createModuleDeclaration").overload({ + 0: function(e, t, r, n) { + return P(e, t, r, n) + }, + 1: function(e, t, r, n, i) { + return P(t, r, n, i) + } + }).bind({ + 0: function(e) { + var t = e[0], + r = e[1], + n = e[2], + i = e[3]; + return void 0 === e[4] && (void 0 === t || z.every(t, z.isModifier)) && void 0 !== r && !z.isArray(r) && (void 0 === n || z.isModuleBody(n)) && (void 0 === i || "number" == typeof i) + }, + 1: function(e) { + var t = e[0], + r = e[1], + n = e[2], + i = e[3], + e = e[4]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.isArray(r)) && void 0 !== n && z.isModuleName(n) && (void 0 === i || "object" == typeof i) && (void 0 === e || "number" == typeof e) + } + }).deprecate({ + 1: r + }).finish(), e.updateModuleDeclaration = z.buildOverload("updateModuleDeclaration").overload({ + 0: function(e, t, r, n) { + return w(e, t, r, n) + }, + 1: function(e, t, r, n, i) { + return w(e, r, n, i) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3]; + return void 0 === e[4] && (void 0 === t || z.every(t, z.isModifier)) && (void 0 === r || !z.isArray(r)) && (void 0 === n || z.isModuleBody(n)) + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3], + e = e[4]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.isArray(r)) && void 0 !== n && z.isModuleName(n) && (void 0 === e || z.isModuleBody(e)) + } + }).deprecate({ + 1: r + }).finish(), e.createImportEqualsDeclaration = z.buildOverload("createImportEqualsDeclaration").overload({ + 0: function(e, t, r, n) { + return I(e, t, r, n) + }, + 1: function(e, t, r, n, i) { + return I(t, r, n, i) + } + }).bind({ + 0: function(e) { + var t = e[0], + r = e[1], + n = e[2], + i = e[3]; + return void 0 === e[4] && (void 0 === t || z.every(t, z.isModifier)) && (void 0 === r || "boolean" == typeof r) && "boolean" != typeof n && "string" != typeof i + }, + 1: function(e) { + var t = e[0], + r = e[1], + n = e[2], + i = e[3], + e = e[4]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.isArray(r)) && (void 0 === n || "boolean" == typeof n) && ("string" == typeof i || z.isIdentifier(i)) && void 0 !== e && z.isModuleReference(e) + } + }).deprecate({ + 1: r + }).finish(), e.updateImportEqualsDeclaration = z.buildOverload("updateImportEqualsDeclaration").overload({ + 0: function(e, t, r, n, i) { + return O(e, t, r, n, i) + }, + 1: function(e, t, r, n, i, a) { + return O(e, r, n, i, a) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4]; + return void 0 === e[5] && (void 0 === t || z.every(t, z.isModifier)) && (void 0 === r || "boolean" == typeof r) && "boolean" != typeof n && "string" != typeof i + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4], + e = e[5]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.isArray(r)) && (void 0 === n || "boolean" == typeof n) && ("string" == typeof i || z.isIdentifier(i)) && void 0 !== e && z.isModuleReference(e) + } + }).deprecate({ + 1: r + }).finish(), e.createImportDeclaration = z.buildOverload("createImportDeclaration").overload({ + 0: function(e, t, r, n) { + return M(e, t, r, n) + }, + 1: function(e, t, r, n, i) { + return M(t, r, n, i) + } + }).bind({ + 0: function(e) { + var t = e[0], + r = e[1], + n = e[2], + i = e[3]; + return void 0 === e[4] && (void 0 === t || z.every(t, z.isModifier)) && (void 0 === r || !z.isArray(r)) && void 0 !== n && z.isExpression(n) && (void 0 === i || z.isAssertClause(i)) + }, + 1: function(e) { + var t = e[0], + r = e[1], + n = e[2], + i = e[3], + e = e[4]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.isArray(r)) && (void 0 === n || z.isImportClause(n)) && void 0 !== i && z.isExpression(i) && (void 0 === e || z.isAssertClause(e)) + } + }).deprecate({ + 1: r + }).finish(), e.updateImportDeclaration = z.buildOverload("updateImportDeclaration").overload({ + 0: function(e, t, r, n, i) { + return L(e, t, r, n, i) + }, + 1: function(e, t, r, n, i, a) { + return L(e, r, n, i, a) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4]; + return void 0 === e[5] && (void 0 === t || z.every(t, z.isModifier)) && (void 0 === r || !z.isArray(r)) && (void 0 === n || z.isExpression(n)) && (void 0 === i || z.isAssertClause(i)) + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4], + e = e[5]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.isArray(r)) && (void 0 === n || z.isImportClause(n)) && void 0 !== i && z.isExpression(i) && (void 0 === e || z.isAssertClause(e)) + } + }).deprecate({ + 1: r + }).finish(), e.createExportAssignment = z.buildOverload("createExportAssignment").overload({ + 0: function(e, t, r) { + return R(e, t, r) + }, + 1: function(e, t, r, n) { + return R(t, r, n) + } + }).bind({ + 0: function(e) { + var t = e[0], + r = e[1], + n = e[2]; + return void 0 === e[3] && (void 0 === t || z.every(t, z.isModifier)) && (void 0 === r || "boolean" == typeof r) && "object" == typeof n + }, + 1: function(e) { + var t = e[0], + r = e[1], + n = e[2], + e = e[3]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.isArray(r)) && (void 0 === n || "boolean" == typeof n) && void 0 !== e && z.isExpression(e) + } + }).deprecate({ + 1: r + }).finish(), e.updateExportAssignment = z.buildOverload("updateExportAssignment").overload({ + 0: function(e, t, r) { + return B(e, t, r) + }, + 1: function(e, t, r, n) { + return B(e, r, n) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2]; + return void 0 === e[3] && (void 0 === t || z.every(t, z.isModifier)) && void 0 !== r && !z.isArray(r) + }, + 1: function(e) { + var t = e[1], + r = e[2], + e = e[3]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.isArray(r)) && void 0 !== e && z.isExpression(e) + } + }).deprecate({ + 1: r + }).finish(), e.createExportDeclaration = z.buildOverload("createExportDeclaration").overload({ + 0: function(e, t, r, n, i) { + return j(e, t, r, n, i) + }, + 1: function(e, t, r, n, i, a) { + return j(t, r, n, i, a) + } + }).bind({ + 0: function(e) { + var t = e[0], + r = e[1], + n = e[2], + i = e[3], + a = e[4]; + return void 0 === e[5] && (void 0 === t || z.every(t, z.isModifier)) && "boolean" == typeof r && "boolean" != typeof n && (void 0 === i || z.isExpression(i)) && (void 0 === a || z.isAssertClause(a)) + }, + 1: function(e) { + var t = e[0], + r = e[1], + n = e[2], + i = e[3], + a = e[4], + e = e[5]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.isArray(r)) && "boolean" == typeof n && (void 0 === i || z.isNamedExportBindings(i)) && (void 0 === a || z.isExpression(a)) && (void 0 === e || z.isAssertClause(e)) + } + }).deprecate({ + 1: r + }).finish(), e.updateExportDeclaration = z.buildOverload("updateExportDeclaration").overload({ + 0: function(e, t, r, n, i, a) { + return J(e, t, r, n, i, a) + }, + 1: function(e, t, r, n, i, a, o) { + return J(e, r, n, i, a, o) + } + }).bind({ + 0: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4], + a = e[5]; + return void 0 === e[6] && (void 0 === t || z.every(t, z.isModifier)) && "boolean" == typeof r && "boolean" != typeof n && (void 0 === i || z.isExpression(i)) && (void 0 === a || z.isAssertClause(a)) + }, + 1: function(e) { + var t = e[1], + r = e[2], + n = e[3], + i = e[4], + a = e[5], + e = e[6]; + return (void 0 === t || z.every(t, z.isDecorator)) && (void 0 === r || z.isArray(r)) && "boolean" == typeof n && (void 0 === i || z.isNamedExportBindings(i)) && (void 0 === a || z.isExpression(a)) && (void 0 === e || z.isAssertClause(e)) + } + }).deprecate({ + 1: r + }).finish() + } + var i = z.createNodeFactory; + z.createNodeFactory = function(e, t) { + e = i(e, t); + return n(e), e + }, n(z.factory) + }(ts = ts || {}), + function(r) { + "undefined" != typeof console && (r.Debug.loggingHost = { + log: function(e, t) { + switch (e) { + case r.LogLevel.Error: + return console.error(t); + case r.LogLevel.Warning: + return console.warn(t); + case r.LogLevel.Info: + case r.LogLevel.Verbose: + return console.log(t) + } + } + }) + }(ts = ts || {}); + +return ts; \ No newline at end of file diff --git a/src/me/topchetoeu/jscript/lib/ArrayLib.java b/src/me/topchetoeu/jscript/lib/ArrayLib.java index 1d2bd65..4ccd282 100644 --- a/src/me/topchetoeu/jscript/lib/ArrayLib.java +++ b/src/me/topchetoeu/jscript/lib/ArrayLib.java @@ -69,7 +69,7 @@ public class ArrayLib { @Native(thisArg = true) public static ArrayValue concat(Context ctx, ArrayValue thisArg, Object ...others) { // TODO: Fully implement with non-array spreadable objects - var size = 0; + var size = thisArg.size(); for (int i = 0; i < others.length; i++) { if (others[i] instanceof ArrayValue) size += ((ArrayValue)others[i]).size(); @@ -77,8 +77,9 @@ public class ArrayLib { } var res = new ArrayValue(size); + thisArg.copyTo(ctx, res, 0, 0, thisArg.size()); - for (int i = 0, j = 0; i < others.length; i++) { + for (int i = 0, j = thisArg.size(); i < others.length; i++) { if (others[i] instanceof ArrayValue) { int n = ((ArrayValue)others[i]).size(); ((ArrayValue)others[i]).copyTo(ctx, res, 0, j, n); diff --git a/src/me/topchetoeu/jscript/lib/Internals.java b/src/me/topchetoeu/jscript/lib/Internals.java index 5fa83e2..3714a1f 100644 --- a/src/me/topchetoeu/jscript/lib/Internals.java +++ b/src/me/topchetoeu/jscript/lib/Internals.java @@ -91,6 +91,16 @@ public class Internals { return NumberLib.parseFloat(ctx, val); } + @Native public static boolean isNaN(Context ctx, double val) { + return NumberLib.isNaN(ctx, val); + } + @Native public static boolean isFinite(Context ctx, double val) { + return NumberLib.isFinite(ctx, val); + } + @Native public static boolean isInfinite(Context ctx, double val) { + return NumberLib.isInfinite(ctx, val); + } + public void apply(Environment env) { var wp = env.wrappers; var glob = env.global = new GlobalScope(wp.getNamespace(Internals.class)); @@ -133,6 +143,7 @@ public class Internals { env.setProto("rangeErr", wp.getProto(RangeErrorLib.class)); wp.getProto(ObjectLib.class).setPrototype(null, null); + env.regexConstructor = wp.getConstr(RegExpLib.class); System.out.println("Loaded polyfills!"); } diff --git a/src/me/topchetoeu/jscript/lib/MapLib.java b/src/me/topchetoeu/jscript/lib/MapLib.java index bd1217e..5a8a879 100644 --- a/src/me/topchetoeu/jscript/lib/MapLib.java +++ b/src/me/topchetoeu/jscript/lib/MapLib.java @@ -61,7 +61,7 @@ public class MapLib { return map.size(); } - @NativeGetter public void forEach(Context ctx, FunctionValue func, Object thisArg) { + @Native public void forEach(Context ctx, FunctionValue func, Object thisArg) { var keys = new ArrayList<>(map.keySet()); for (var el : keys) func.call(ctx, thisArg, el, map.get(el), this); diff --git a/src/me/topchetoeu/jscript/lib/SetLib.java b/src/me/topchetoeu/jscript/lib/SetLib.java index 331f023..1cd8b7f 100644 --- a/src/me/topchetoeu/jscript/lib/SetLib.java +++ b/src/me/topchetoeu/jscript/lib/SetLib.java @@ -51,7 +51,7 @@ public class SetLib { return set.size(); } - @NativeGetter public void forEach(Context ctx, FunctionValue func, Object thisArg) { + @Native public void forEach(Context ctx, FunctionValue func, Object thisArg) { var keys = new ArrayList<>(set); for (var el : keys) func.call(ctx, thisArg, el, el, this); diff --git a/src/me/topchetoeu/jscript/lib/StringLib.java b/src/me/topchetoeu/jscript/lib/StringLib.java index ae5b8f6..707d542 100644 --- a/src/me/topchetoeu/jscript/lib/StringLib.java +++ b/src/me/topchetoeu/jscript/lib/StringLib.java @@ -60,8 +60,18 @@ public class StringLib { @Native(thisArg = true) public static String charAt(Context ctx, Object thisArg, int i) { return passThis(ctx, "charAt", thisArg).charAt(i) + ""; } - @Native(thisArg = true) public static int charCodeAt(Context ctx, Object thisArg, int i) { - return passThis(ctx, "charCodeAt", thisArg).charAt(i); + // @Native(thisArg = true) public static int charCodeAt(Context ctx, Object thisArg, int i) { + // return passThis(ctx, "charCodeAt", thisArg).charAt(i); + // } + // @Native(thisArg = true) public static String charAt(Context ctx, Object thisArg, int i) { + // var str = passThis(ctx, "charAt", thisArg); + // if (i < 0 || i >= str.length()) return ""; + // else return str.charAt(i) + ""; + // } + @Native(thisArg = true) public static double charCodeAt(Context ctx, Object thisArg, int i) { + var str = passThis(ctx, "charCodeAt", thisArg); + if (i < 0 || i >= str.length()) return Double.NaN; + else return str.charAt(i); } @Native(thisArg = true) public static boolean startsWith(Context ctx, Object thisArg, String term, int pos) { diff --git a/src/me/topchetoeu/jscript/parsing/Parsing.java b/src/me/topchetoeu/jscript/parsing/Parsing.java index 5411fe4..e4391cf 100644 --- a/src/me/topchetoeu/jscript/parsing/Parsing.java +++ b/src/me/topchetoeu/jscript/parsing/Parsing.java @@ -1235,7 +1235,7 @@ public class Parsing { return ParseRes.res(new OperationStatement(loc, Operation.IN, prev, valRes.result), n); } - public static ParseRes parseComma(Filename filename, List tokens, int i, Statement prev, int precedence) { + public static ParseRes parseComma(Filename filename, List tokens, int i, Statement prev, int precedence) { var loc = getLoc(filename, tokens, i); var n = 0; @@ -1246,7 +1246,7 @@ public class Parsing { if (!res.isSuccess()) return ParseRes.error(loc, "Expected a value after the comma.", res); n += res.n; - return ParseRes.res(new CompoundStatement(loc, prev, res.result), n); + return ParseRes.res(new CommaStatement(loc, prev, res.result), n); } public static ParseRes parseTernary(Filename filename, List tokens, int i, Statement prev, int precedence) { var loc = getLoc(filename, tokens, i); @@ -1757,6 +1757,7 @@ public class Parsing { var nameRes = parseIdentifier(tokens, i + n); if (!nameRes.isSuccess()) return ParseRes.error(loc, "Expected a variable name for 'for' loop."); + var nameLoc = getLoc(filename, tokens, i + n); n += nameRes.n; Statement varVal = null; @@ -1790,7 +1791,7 @@ public class Parsing { if (!bodyRes.isSuccess()) return ParseRes.error(loc, "Expected a for body.", bodyRes); n += bodyRes.n; - return ParseRes.res(new ForInStatement(loc, labelRes.result, isDecl, nameRes.result, varVal, objRes.result, bodyRes.result), n); + return ParseRes.res(new ForInStatement(loc, nameLoc, labelRes.result, isDecl, nameRes.result, varVal, objRes.result, bodyRes.result), n); } public static ParseRes parseCatch(Filename filename, List tokens, int i) { var loc = getLoc(filename, tokens, i);