"use strict";
// TS4S terminal prep / cleanup fixesjs.on_exit("console.ctrlkey_passthru = ".concat(console.ctrlkey_passthru, ";"));
js.on_exit("console.attributes = ".concat(console.attributes, ";"));
js.on_exit("bbs.sys_status = ".concat(bbs.sys_status, ";"));
js.on_exit("console.home();");
js.on_exit('console.write("[0;37;40m");');
js.on_exit('console.write("[2J");');
js.on_exit('console.write("[?25h");');
// End of TS4S terminal prep / cleanup fixes
(function() {
  var __getOwnPropNames = Object.getOwnPropertyNames;
  var __commonJS = function(cb, mod) {
    return function __require() {
      return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
    };
  };

  // node_modules/core-js/internals/global.js
  var require_global = __commonJS({
    "node_modules/core-js/internals/global.js": function(exports, module) {
      "use strict";
      var check = function(it) {
        return it && it.Math === Math && it;
      };
      module.exports = // eslint-disable-next-line es/no-global-this -- safe
      check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
      check(typeof self == "object" && self) || check(typeof global == "object" && global) || check(typeof exports == "object" && exports) || // eslint-disable-next-line no-new-func -- fallback
      function() {
        return this;
      }() || Function("return this")();
    }
  });

  // node_modules/core-js/internals/path.js
  var require_path = __commonJS({
    "node_modules/core-js/internals/path.js": function(exports, module) {
      "use strict";
      var global2 = require_global();
      module.exports = global2;
    }
  });

  // node_modules/core-js/internals/fails.js
  var require_fails = __commonJS({
    "node_modules/core-js/internals/fails.js": function(exports, module) {
      "use strict";
      module.exports = function(exec) {
        try {
          return !!exec();
        } catch (error) {
          return true;
        }
      };
    }
  });

  // node_modules/core-js/internals/function-bind-native.js
  var require_function_bind_native = __commonJS({
    "node_modules/core-js/internals/function-bind-native.js": function(exports, module) {
      "use strict";
      var fails = require_fails();
      module.exports = !fails(function() {
        var test = function() {
        }.bind();
        return typeof test != "function" || test.hasOwnProperty("prototype");
      });
    }
  });

  // node_modules/core-js/internals/function-uncurry-this.js
  var require_function_uncurry_this = __commonJS({
    "node_modules/core-js/internals/function-uncurry-this.js": function(exports, module) {
      "use strict";
      var NATIVE_BIND = require_function_bind_native();
      var FunctionPrototype = Function.prototype;
      var call = FunctionPrototype.call;
      var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
      module.exports = NATIVE_BIND ? uncurryThisWithBind : function(fn) {
        return function() {
          return call.apply(fn, arguments);
        };
      };
    }
  });

  // node_modules/core-js/internals/is-null-or-undefined.js
  var require_is_null_or_undefined = __commonJS({
    "node_modules/core-js/internals/is-null-or-undefined.js": function(exports, module) {
      "use strict";
      module.exports = function(it) {
        return it === null || it === void 0;
      };
    }
  });

  // node_modules/core-js/internals/require-object-coercible.js
  var require_require_object_coercible = __commonJS({
    "node_modules/core-js/internals/require-object-coercible.js": function(exports, module) {
      "use strict";
      var isNullOrUndefined = require_is_null_or_undefined();
      var $TypeError = TypeError;
      module.exports = function(it) {
        if (isNullOrUndefined(it))
          throw new $TypeError("Can't call method on " + it);
        return it;
      };
    }
  });

  // node_modules/core-js/internals/to-object.js
  var require_to_object = __commonJS({
    "node_modules/core-js/internals/to-object.js": function(exports, module) {
      "use strict";
      var requireObjectCoercible = require_require_object_coercible();
      var $Object = Object;
      module.exports = function(argument) {
        return $Object(requireObjectCoercible(argument));
      };
    }
  });

  // node_modules/core-js/internals/has-own-property.js
  var require_has_own_property = __commonJS({
    "node_modules/core-js/internals/has-own-property.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      var toObject = require_to_object();
      var hasOwnProperty = uncurryThis({}.hasOwnProperty);
      module.exports = Object.hasOwn || function hasOwn(it, key) {
        return hasOwnProperty(toObject(it), key);
      };
    }
  });

  // node_modules/core-js/internals/is-pure.js
  var require_is_pure = __commonJS({
    "node_modules/core-js/internals/is-pure.js": function(exports, module) {
      "use strict";
      module.exports = false;
    }
  });

  // node_modules/core-js/internals/define-global-property.js
  var require_define_global_property = __commonJS({
    "node_modules/core-js/internals/define-global-property.js": function(exports, module) {
      "use strict";
      var global2 = require_global();
      var defineProperty = Object.defineProperty;
      module.exports = function(key, value) {
        try {
          defineProperty(global2, key, { value: value, configurable: true, writable: true });
        } catch (error) {
          global2[key] = value;
        }
        return value;
      };
    }
  });

  // node_modules/core-js/internals/shared-store.js
  var require_shared_store = __commonJS({
    "node_modules/core-js/internals/shared-store.js": function(exports, module) {
      "use strict";
      var IS_PURE = require_is_pure();
      var globalThis2 = require_global();
      var defineGlobalProperty = require_define_global_property();
      var SHARED = "__core-js_shared__";
      var store = module.exports = globalThis2[SHARED] || defineGlobalProperty(SHARED, {});
      (store.versions || (store.versions = [])).push({
        version: "3.37.1",
        mode: IS_PURE ? "pure" : "global",
        copyright: "\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",
        license: "https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",
        source: "https://github.com/zloirock/core-js"
      });
    }
  });

  // node_modules/core-js/internals/shared.js
  var require_shared = __commonJS({
    "node_modules/core-js/internals/shared.js": function(exports, module) {
      "use strict";
      var store = require_shared_store();
      module.exports = function(key, value) {
        return store[key] || (store[key] = value || {});
      };
    }
  });

  // node_modules/core-js/internals/uid.js
  var require_uid = __commonJS({
    "node_modules/core-js/internals/uid.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      var id = 0;
      var postfix = Math.random();
      var toString = uncurryThis(1 .toString);
      module.exports = function(key) {
        return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString(++id + postfix, 36);
      };
    }
  });

  // node_modules/core-js/internals/engine-user-agent.js
  var require_engine_user_agent = __commonJS({
    "node_modules/core-js/internals/engine-user-agent.js": function(exports, module) {
      "use strict";
      module.exports = typeof navigator != "undefined" && String(navigator.userAgent) || "";
    }
  });

  // node_modules/core-js/internals/engine-v8-version.js
  var require_engine_v8_version = __commonJS({
    "node_modules/core-js/internals/engine-v8-version.js": function(exports, module) {
      "use strict";
      var global2 = require_global();
      var userAgent = require_engine_user_agent();
      var process = global2.process;
      var Deno = global2.Deno;
      var versions = process && process.versions || Deno && Deno.version;
      var v8 = versions && versions.v8;
      var match;
      var version;
      if (v8) {
        match = v8.split(".");
        version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
      }
      if (!version && userAgent) {
        match = userAgent.match(/Edge\/(\d+)/);
        if (!match || match[1] >= 74) {
          match = userAgent.match(/Chrome\/(\d+)/);
          if (match)
            version = +match[1];
        }
      }
      module.exports = version;
    }
  });

  // node_modules/core-js/internals/symbol-constructor-detection.js
  var require_symbol_constructor_detection = __commonJS({
    "node_modules/core-js/internals/symbol-constructor-detection.js": function(exports, module) {
      "use strict";
      var V8_VERSION = require_engine_v8_version();
      var fails = require_fails();
      var global2 = require_global();
      var $String = global2.String;
      module.exports = !!Object.getOwnPropertySymbols && !fails(function() {
        var symbol = Symbol("symbol detection");
        return !$String(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
        !Symbol.sham && V8_VERSION && V8_VERSION < 41;
      });
    }
  });

  // node_modules/core-js/internals/use-symbol-as-uid.js
  var require_use_symbol_as_uid = __commonJS({
    "node_modules/core-js/internals/use-symbol-as-uid.js": function(exports, module) {
      "use strict";
      var NATIVE_SYMBOL = require_symbol_constructor_detection();
      module.exports = NATIVE_SYMBOL && !Symbol.sham && typeof Symbol.iterator == "symbol";
    }
  });

  // node_modules/core-js/internals/well-known-symbol.js
  var require_well_known_symbol = __commonJS({
    "node_modules/core-js/internals/well-known-symbol.js": function(exports, module) {
      "use strict";
      var global2 = require_global();
      var shared = require_shared();
      var hasOwn = require_has_own_property();
      var uid = require_uid();
      var NATIVE_SYMBOL = require_symbol_constructor_detection();
      var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();
      var Symbol2 = global2.Symbol;
      var WellKnownSymbolsStore = shared("wks");
      var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol2["for"] || Symbol2 : Symbol2 && Symbol2.withoutSetter || uid;
      module.exports = function(name) {
        if (!hasOwn(WellKnownSymbolsStore, name)) {
          WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol2, name) ? Symbol2[name] : createWellKnownSymbol("Symbol." + name);
        }
        return WellKnownSymbolsStore[name];
      };
    }
  });

  // node_modules/core-js/internals/well-known-symbol-wrapped.js
  var require_well_known_symbol_wrapped = __commonJS({
    "node_modules/core-js/internals/well-known-symbol-wrapped.js": function(exports) {
      "use strict";
      var wellKnownSymbol = require_well_known_symbol();
      exports.f = wellKnownSymbol;
    }
  });

  // node_modules/core-js/internals/descriptors.js
  var require_descriptors = __commonJS({
    "node_modules/core-js/internals/descriptors.js": function(exports, module) {
      "use strict";
      var fails = require_fails();
      module.exports = !fails(function() {
        return Object.defineProperty({}, 1, { get: function() {
          return 7;
        } })[1] !== 7;
      });
    }
  });

  // node_modules/core-js/internals/is-callable.js
  var require_is_callable = __commonJS({
    "node_modules/core-js/internals/is-callable.js": function(exports, module) {
      "use strict";
      var documentAll = typeof document == "object" && document.all;
      module.exports = typeof documentAll == "undefined" && documentAll !== void 0 ? function(argument) {
        return typeof argument == "function" || argument === documentAll;
      } : function(argument) {
        return typeof argument == "function";
      };
    }
  });

  // node_modules/core-js/internals/is-object.js
  var require_is_object = __commonJS({
    "node_modules/core-js/internals/is-object.js": function(exports, module) {
      "use strict";
      var isCallable = require_is_callable();
      module.exports = function(it) {
        return typeof it == "object" ? it !== null : isCallable(it);
      };
    }
  });

  // node_modules/core-js/internals/document-create-element.js
  var require_document_create_element = __commonJS({
    "node_modules/core-js/internals/document-create-element.js": function(exports, module) {
      "use strict";
      var global2 = require_global();
      var isObject = require_is_object();
      var document2 = global2.document;
      var EXISTS = isObject(document2) && isObject(document2.createElement);
      module.exports = function(it) {
        return EXISTS ? document2.createElement(it) : {};
      };
    }
  });

  // node_modules/core-js/internals/ie8-dom-define.js
  var require_ie8_dom_define = __commonJS({
    "node_modules/core-js/internals/ie8-dom-define.js": function(exports, module) {
      "use strict";
      var DESCRIPTORS = require_descriptors();
      var fails = require_fails();
      var createElement = require_document_create_element();
      module.exports = !DESCRIPTORS && !fails(function() {
        return Object.defineProperty(createElement("div"), "a", {
          get: function() {
            return 7;
          }
        }).a !== 7;
      });
    }
  });

  // node_modules/core-js/internals/v8-prototype-define-bug.js
  var require_v8_prototype_define_bug = __commonJS({
    "node_modules/core-js/internals/v8-prototype-define-bug.js": function(exports, module) {
      "use strict";
      var DESCRIPTORS = require_descriptors();
      var fails = require_fails();
      module.exports = DESCRIPTORS && fails(function() {
        return Object.defineProperty(function() {
        }, "prototype", {
          value: 42,
          writable: false
        }).prototype !== 42;
      });
    }
  });

  // node_modules/core-js/internals/an-object.js
  var require_an_object = __commonJS({
    "node_modules/core-js/internals/an-object.js": function(exports, module) {
      "use strict";
      var isObject = require_is_object();
      var $String = String;
      var $TypeError = TypeError;
      module.exports = function(argument) {
        if (isObject(argument))
          return argument;
        throw new $TypeError($String(argument) + " is not an object");
      };
    }
  });

  // node_modules/core-js/internals/function-call.js
  var require_function_call = __commonJS({
    "node_modules/core-js/internals/function-call.js": function(exports, module) {
      "use strict";
      var NATIVE_BIND = require_function_bind_native();
      var call = Function.prototype.call;
      module.exports = NATIVE_BIND ? call.bind(call) : function() {
        return call.apply(call, arguments);
      };
    }
  });

  // node_modules/core-js/internals/get-built-in.js
  var require_get_built_in = __commonJS({
    "node_modules/core-js/internals/get-built-in.js": function(exports, module) {
      "use strict";
      var global2 = require_global();
      var isCallable = require_is_callable();
      var aFunction = function(argument) {
        return isCallable(argument) ? argument : void 0;
      };
      module.exports = function(namespace, method) {
        return arguments.length < 2 ? aFunction(global2[namespace]) : global2[namespace] && global2[namespace][method];
      };
    }
  });

  // node_modules/core-js/internals/object-is-prototype-of.js
  var require_object_is_prototype_of = __commonJS({
    "node_modules/core-js/internals/object-is-prototype-of.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      module.exports = uncurryThis({}.isPrototypeOf);
    }
  });

  // node_modules/core-js/internals/is-symbol.js
  var require_is_symbol = __commonJS({
    "node_modules/core-js/internals/is-symbol.js": function(exports, module) {
      "use strict";
      var getBuiltIn = require_get_built_in();
      var isCallable = require_is_callable();
      var isPrototypeOf = require_object_is_prototype_of();
      var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();
      var $Object = Object;
      module.exports = USE_SYMBOL_AS_UID ? function(it) {
        return typeof it == "symbol";
      } : function(it) {
        var $Symbol = getBuiltIn("Symbol");
        return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
      };
    }
  });

  // node_modules/core-js/internals/try-to-string.js
  var require_try_to_string = __commonJS({
    "node_modules/core-js/internals/try-to-string.js": function(exports, module) {
      "use strict";
      var $String = String;
      module.exports = function(argument) {
        try {
          return $String(argument);
        } catch (error) {
          return "Object";
        }
      };
    }
  });

  // node_modules/core-js/internals/a-callable.js
  var require_a_callable = __commonJS({
    "node_modules/core-js/internals/a-callable.js": function(exports, module) {
      "use strict";
      var isCallable = require_is_callable();
      var tryToString = require_try_to_string();
      var $TypeError = TypeError;
      module.exports = function(argument) {
        if (isCallable(argument))
          return argument;
        throw new $TypeError(tryToString(argument) + " is not a function");
      };
    }
  });

  // node_modules/core-js/internals/get-method.js
  var require_get_method = __commonJS({
    "node_modules/core-js/internals/get-method.js": function(exports, module) {
      "use strict";
      var aCallable = require_a_callable();
      var isNullOrUndefined = require_is_null_or_undefined();
      module.exports = function(V, P) {
        var func = V[P];
        return isNullOrUndefined(func) ? void 0 : aCallable(func);
      };
    }
  });

  // node_modules/core-js/internals/ordinary-to-primitive.js
  var require_ordinary_to_primitive = __commonJS({
    "node_modules/core-js/internals/ordinary-to-primitive.js": function(exports, module) {
      "use strict";
      var call = require_function_call();
      var isCallable = require_is_callable();
      var isObject = require_is_object();
      var $TypeError = TypeError;
      module.exports = function(input, pref) {
        var fn, val;
        if (pref === "string" && isCallable(fn = input.toString) && !isObject(val = call(fn, input)))
          return val;
        if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input)))
          return val;
        if (pref !== "string" && isCallable(fn = input.toString) && !isObject(val = call(fn, input)))
          return val;
        throw new $TypeError("Can't convert object to primitive value");
      };
    }
  });

  // node_modules/core-js/internals/to-primitive.js
  var require_to_primitive = __commonJS({
    "node_modules/core-js/internals/to-primitive.js": function(exports, module) {
      "use strict";
      var call = require_function_call();
      var isObject = require_is_object();
      var isSymbol = require_is_symbol();
      var getMethod = require_get_method();
      var ordinaryToPrimitive = require_ordinary_to_primitive();
      var wellKnownSymbol = require_well_known_symbol();
      var $TypeError = TypeError;
      var TO_PRIMITIVE = wellKnownSymbol("toPrimitive");
      module.exports = function(input, pref) {
        if (!isObject(input) || isSymbol(input))
          return input;
        var exoticToPrim = getMethod(input, TO_PRIMITIVE);
        var result;
        if (exoticToPrim) {
          if (pref === void 0)
            pref = "default";
          result = call(exoticToPrim, input, pref);
          if (!isObject(result) || isSymbol(result))
            return result;
          throw new $TypeError("Can't convert object to primitive value");
        }
        if (pref === void 0)
          pref = "number";
        return ordinaryToPrimitive(input, pref);
      };
    }
  });

  // node_modules/core-js/internals/to-property-key.js
  var require_to_property_key = __commonJS({
    "node_modules/core-js/internals/to-property-key.js": function(exports, module) {
      "use strict";
      var toPrimitive = require_to_primitive();
      var isSymbol = require_is_symbol();
      module.exports = function(argument) {
        var key = toPrimitive(argument, "string");
        return isSymbol(key) ? key : key + "";
      };
    }
  });

  // node_modules/core-js/internals/object-define-property.js
  var require_object_define_property = __commonJS({
    "node_modules/core-js/internals/object-define-property.js": function(exports) {
      "use strict";
      var DESCRIPTORS = require_descriptors();
      var IE8_DOM_DEFINE = require_ie8_dom_define();
      var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug();
      var anObject = require_an_object();
      var toPropertyKey = require_to_property_key();
      var $TypeError = TypeError;
      var $defineProperty = Object.defineProperty;
      var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
      var ENUMERABLE = "enumerable";
      var CONFIGURABLE = "configurable";
      var WRITABLE = "writable";
      exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
        anObject(O);
        P = toPropertyKey(P);
        anObject(Attributes);
        if (typeof O === "function" && P === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
          var current = $getOwnPropertyDescriptor(O, P);
          if (current && current[WRITABLE]) {
            O[P] = Attributes.value;
            Attributes = {
              configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
              enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
              writable: false
            };
          }
        }
        return $defineProperty(O, P, Attributes);
      } : $defineProperty : function defineProperty(O, P, Attributes) {
        anObject(O);
        P = toPropertyKey(P);
        anObject(Attributes);
        if (IE8_DOM_DEFINE)
          try {
            return $defineProperty(O, P, Attributes);
          } catch (error) {
          }
        if ("get" in Attributes || "set" in Attributes)
          throw new $TypeError("Accessors not supported");
        if ("value" in Attributes)
          O[P] = Attributes.value;
        return O;
      };
    }
  });

  // node_modules/core-js/internals/well-known-symbol-define.js
  var require_well_known_symbol_define = __commonJS({
    "node_modules/core-js/internals/well-known-symbol-define.js": function(exports, module) {
      "use strict";
      var path = require_path();
      var hasOwn = require_has_own_property();
      var wrappedWellKnownSymbolModule = require_well_known_symbol_wrapped();
      var defineProperty = require_object_define_property().f;
      module.exports = function(NAME) {
        var Symbol2 = path.Symbol || (path.Symbol = {});
        if (!hasOwn(Symbol2, NAME))
          defineProperty(Symbol2, NAME, {
            value: wrappedWellKnownSymbolModule.f(NAME)
          });
      };
    }
  });

  // node_modules/core-js/modules/es.symbol.iterator.js
  var require_es_symbol_iterator = __commonJS({
    "node_modules/core-js/modules/es.symbol.iterator.js": function() {
      "use strict";
      var defineWellKnownSymbol = require_well_known_symbol_define();
      defineWellKnownSymbol("iterator");
    }
  });

  // node_modules/core-js/internals/function-name.js
  var require_function_name = __commonJS({
    "node_modules/core-js/internals/function-name.js": function(exports, module) {
      "use strict";
      var DESCRIPTORS = require_descriptors();
      var hasOwn = require_has_own_property();
      var FunctionPrototype = Function.prototype;
      var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
      var EXISTS = hasOwn(FunctionPrototype, "name");
      var PROPER = EXISTS && function something() {
      }.name === "something";
      var CONFIGURABLE = EXISTS && (!DESCRIPTORS || DESCRIPTORS && getDescriptor(FunctionPrototype, "name").configurable);
      module.exports = {
        EXISTS: EXISTS,
        PROPER: PROPER,
        CONFIGURABLE: CONFIGURABLE
      };
    }
  });

  // node_modules/core-js/internals/inspect-source.js
  var require_inspect_source = __commonJS({
    "node_modules/core-js/internals/inspect-source.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      var isCallable = require_is_callable();
      var store = require_shared_store();
      var functionToString = uncurryThis(Function.toString);
      if (!isCallable(store.inspectSource)) {
        store.inspectSource = function(it) {
          return functionToString(it);
        };
      }
      module.exports = store.inspectSource;
    }
  });

  // node_modules/core-js/internals/weak-map-basic-detection.js
  var require_weak_map_basic_detection = __commonJS({
    "node_modules/core-js/internals/weak-map-basic-detection.js": function(exports, module) {
      "use strict";
      var global2 = require_global();
      var isCallable = require_is_callable();
      var WeakMap = global2.WeakMap;
      module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
    }
  });

  // node_modules/core-js/internals/create-property-descriptor.js
  var require_create_property_descriptor = __commonJS({
    "node_modules/core-js/internals/create-property-descriptor.js": function(exports, module) {
      "use strict";
      module.exports = function(bitmap, value) {
        return {
          enumerable: !(bitmap & 1),
          configurable: !(bitmap & 2),
          writable: !(bitmap & 4),
          value: value
        };
      };
    }
  });

  // node_modules/core-js/internals/create-non-enumerable-property.js
  var require_create_non_enumerable_property = __commonJS({
    "node_modules/core-js/internals/create-non-enumerable-property.js": function(exports, module) {
      "use strict";
      var DESCRIPTORS = require_descriptors();
      var definePropertyModule = require_object_define_property();
      var createPropertyDescriptor = require_create_property_descriptor();
      module.exports = DESCRIPTORS ? function(object, key, value) {
        return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
      } : function(object, key, value) {
        object[key] = value;
        return object;
      };
    }
  });

  // node_modules/core-js/internals/shared-key.js
  var require_shared_key = __commonJS({
    "node_modules/core-js/internals/shared-key.js": function(exports, module) {
      "use strict";
      var shared = require_shared();
      var uid = require_uid();
      var keys = shared("keys");
      module.exports = function(key) {
        return keys[key] || (keys[key] = uid(key));
      };
    }
  });

  // node_modules/core-js/internals/hidden-keys.js
  var require_hidden_keys = __commonJS({
    "node_modules/core-js/internals/hidden-keys.js": function(exports, module) {
      "use strict";
      module.exports = {};
    }
  });

  // node_modules/core-js/internals/internal-state.js
  var require_internal_state = __commonJS({
    "node_modules/core-js/internals/internal-state.js": function(exports, module) {
      "use strict";
      var NATIVE_WEAK_MAP = require_weak_map_basic_detection();
      var global2 = require_global();
      var isObject = require_is_object();
      var createNonEnumerableProperty = require_create_non_enumerable_property();
      var hasOwn = require_has_own_property();
      var shared = require_shared_store();
      var sharedKey = require_shared_key();
      var hiddenKeys = require_hidden_keys();
      var OBJECT_ALREADY_INITIALIZED = "Object already initialized";
      var TypeError2 = global2.TypeError;
      var WeakMap = global2.WeakMap;
      var set;
      var get;
      var has;
      var enforce = function(it) {
        return has(it) ? get(it) : set(it, {});
      };
      var getterFor = function(TYPE) {
        return function(it) {
          var state;
          if (!isObject(it) || (state = get(it)).type !== TYPE) {
            throw new TypeError2("Incompatible receiver, " + TYPE + " required");
          }
          return state;
        };
      };
      if (NATIVE_WEAK_MAP || shared.state) {
        store = shared.state || (shared.state = new WeakMap());
        store.get = store.get;
        store.has = store.has;
        store.set = store.set;
        set = function(it, metadata) {
          if (store.has(it))
            throw new TypeError2(OBJECT_ALREADY_INITIALIZED);
          metadata.facade = it;
          store.set(it, metadata);
          return metadata;
        };
        get = function(it) {
          return store.get(it) || {};
        };
        has = function(it) {
          return store.has(it);
        };
      } else {
        STATE = sharedKey("state");
        hiddenKeys[STATE] = true;
        set = function(it, metadata) {
          if (hasOwn(it, STATE))
            throw new TypeError2(OBJECT_ALREADY_INITIALIZED);
          metadata.facade = it;
          createNonEnumerableProperty(it, STATE, metadata);
          return metadata;
        };
        get = function(it) {
          return hasOwn(it, STATE) ? it[STATE] : {};
        };
        has = function(it) {
          return hasOwn(it, STATE);
        };
      }
      var store;
      var STATE;
      module.exports = {
        set: set,
        get: get,
        has: has,
        enforce: enforce,
        getterFor: getterFor
      };
    }
  });

  // node_modules/core-js/internals/make-built-in.js
  var require_make_built_in = __commonJS({
    "node_modules/core-js/internals/make-built-in.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      var fails = require_fails();
      var isCallable = require_is_callable();
      var hasOwn = require_has_own_property();
      var DESCRIPTORS = require_descriptors();
      var CONFIGURABLE_FUNCTION_NAME = require_function_name().CONFIGURABLE;
      var inspectSource = require_inspect_source();
      var InternalStateModule = require_internal_state();
      var enforceInternalState = InternalStateModule.enforce;
      var getInternalState = InternalStateModule.get;
      var $String = String;
      var defineProperty = Object.defineProperty;
      var stringSlice = uncurryThis("".slice);
      var replace = uncurryThis("".replace);
      var join = uncurryThis([].join);
      var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function() {
        return defineProperty(function() {
        }, "length", { value: 8 }).length !== 8;
      });
      var TEMPLATE = String(String).split("String");
      var makeBuiltIn = module.exports = function(value, name, options) {
        if (stringSlice($String(name), 0, 7) === "Symbol(") {
          name = "[" + replace($String(name), /^Symbol\(([^)]*)\).*$/, "$1") + "]";
        }
        if (options && options.getter)
          name = "get " + name;
        if (options && options.setter)
          name = "set " + name;
        if (!hasOwn(value, "name") || CONFIGURABLE_FUNCTION_NAME && value.name !== name) {
          if (DESCRIPTORS)
            defineProperty(value, "name", { value: name, configurable: true });
          else
            value.name = name;
        }
        if (CONFIGURABLE_LENGTH && options && hasOwn(options, "arity") && value.length !== options.arity) {
          defineProperty(value, "length", { value: options.arity });
        }
        try {
          if (options && hasOwn(options, "constructor") && options.constructor) {
            if (DESCRIPTORS)
              defineProperty(value, "prototype", { writable: false });
          } else if (value.prototype)
            value.prototype = void 0;
        } catch (error) {
        }
        var state = enforceInternalState(value);
        if (!hasOwn(state, "source")) {
          state.source = join(TEMPLATE, typeof name == "string" ? name : "");
        }
        return value;
      };
      Function.prototype.toString = makeBuiltIn(function toString() {
        return isCallable(this) && getInternalState(this).source || inspectSource(this);
      }, "toString");
    }
  });

  // node_modules/core-js/internals/define-built-in.js
  var require_define_built_in = __commonJS({
    "node_modules/core-js/internals/define-built-in.js": function(exports, module) {
      "use strict";
      var isCallable = require_is_callable();
      var definePropertyModule = require_object_define_property();
      var makeBuiltIn = require_make_built_in();
      var defineGlobalProperty = require_define_global_property();
      module.exports = function(O, key, value, options) {
        if (!options)
          options = {};
        var simple = options.enumerable;
        var name = options.name !== void 0 ? options.name : key;
        if (isCallable(value))
          makeBuiltIn(value, name, options);
        if (options.global) {
          if (simple)
            O[key] = value;
          else
            defineGlobalProperty(key, value);
        } else {
          try {
            if (!options.unsafe)
              delete O[key];
            else if (O[key])
              simple = true;
          } catch (error) {
          }
          if (simple)
            O[key] = value;
          else
            definePropertyModule.f(O, key, {
              value: value,
              enumerable: false,
              configurable: !options.nonConfigurable,
              writable: !options.nonWritable
            });
        }
        return O;
      };
    }
  });

  // node_modules/core-js/internals/symbol-define-to-primitive.js
  var require_symbol_define_to_primitive = __commonJS({
    "node_modules/core-js/internals/symbol-define-to-primitive.js": function(exports, module) {
      "use strict";
      var call = require_function_call();
      var getBuiltIn = require_get_built_in();
      var wellKnownSymbol = require_well_known_symbol();
      var defineBuiltIn = require_define_built_in();
      module.exports = function() {
        var Symbol2 = getBuiltIn("Symbol");
        var SymbolPrototype = Symbol2 && Symbol2.prototype;
        var valueOf = SymbolPrototype && SymbolPrototype.valueOf;
        var TO_PRIMITIVE = wellKnownSymbol("toPrimitive");
        if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) {
          defineBuiltIn(SymbolPrototype, TO_PRIMITIVE, function(hint) {
            return call(valueOf, this);
          }, { arity: 1 });
        }
      };
    }
  });

  // node_modules/core-js/modules/es.symbol.to-primitive.js
  var require_es_symbol_to_primitive = __commonJS({
    "node_modules/core-js/modules/es.symbol.to-primitive.js": function() {
      "use strict";
      var defineWellKnownSymbol = require_well_known_symbol_define();
      var defineSymbolToPrimitive = require_symbol_define_to_primitive();
      defineWellKnownSymbol("toPrimitive");
      defineSymbolToPrimitive();
    }
  });

  // node_modules/core-js/internals/object-property-is-enumerable.js
  var require_object_property_is_enumerable = __commonJS({
    "node_modules/core-js/internals/object-property-is-enumerable.js": function(exports) {
      "use strict";
      var $propertyIsEnumerable = {}.propertyIsEnumerable;
      var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
      var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
      exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
        var descriptor = getOwnPropertyDescriptor(this, V);
        return !!descriptor && descriptor.enumerable;
      } : $propertyIsEnumerable;
    }
  });

  // node_modules/core-js/internals/classof-raw.js
  var require_classof_raw = __commonJS({
    "node_modules/core-js/internals/classof-raw.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      var toString = uncurryThis({}.toString);
      var stringSlice = uncurryThis("".slice);
      module.exports = function(it) {
        return stringSlice(toString(it), 8, -1);
      };
    }
  });

  // node_modules/core-js/internals/indexed-object.js
  var require_indexed_object = __commonJS({
    "node_modules/core-js/internals/indexed-object.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      var fails = require_fails();
      var classof = require_classof_raw();
      var $Object = Object;
      var split = uncurryThis("".split);
      module.exports = fails(function() {
        return !$Object("z").propertyIsEnumerable(0);
      }) ? function(it) {
        return classof(it) === "String" ? split(it, "") : $Object(it);
      } : $Object;
    }
  });

  // node_modules/core-js/internals/to-indexed-object.js
  var require_to_indexed_object = __commonJS({
    "node_modules/core-js/internals/to-indexed-object.js": function(exports, module) {
      "use strict";
      var IndexedObject = require_indexed_object();
      var requireObjectCoercible = require_require_object_coercible();
      module.exports = function(it) {
        return IndexedObject(requireObjectCoercible(it));
      };
    }
  });

  // node_modules/core-js/internals/object-get-own-property-descriptor.js
  var require_object_get_own_property_descriptor = __commonJS({
    "node_modules/core-js/internals/object-get-own-property-descriptor.js": function(exports) {
      "use strict";
      var DESCRIPTORS = require_descriptors();
      var call = require_function_call();
      var propertyIsEnumerableModule = require_object_property_is_enumerable();
      var createPropertyDescriptor = require_create_property_descriptor();
      var toIndexedObject = require_to_indexed_object();
      var toPropertyKey = require_to_property_key();
      var hasOwn = require_has_own_property();
      var IE8_DOM_DEFINE = require_ie8_dom_define();
      var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
      exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
        O = toIndexedObject(O);
        P = toPropertyKey(P);
        if (IE8_DOM_DEFINE)
          try {
            return $getOwnPropertyDescriptor(O, P);
          } catch (error) {
          }
        if (hasOwn(O, P))
          return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
      };
    }
  });

  // node_modules/core-js/internals/math-trunc.js
  var require_math_trunc = __commonJS({
    "node_modules/core-js/internals/math-trunc.js": function(exports, module) {
      "use strict";
      var ceil = Math.ceil;
      var floor = Math.floor;
      module.exports = Math.trunc || function trunc(x) {
        var n = +x;
        return (n > 0 ? floor : ceil)(n);
      };
    }
  });

  // node_modules/core-js/internals/to-integer-or-infinity.js
  var require_to_integer_or_infinity = __commonJS({
    "node_modules/core-js/internals/to-integer-or-infinity.js": function(exports, module) {
      "use strict";
      var trunc = require_math_trunc();
      module.exports = function(argument) {
        var number = +argument;
        return number !== number || number === 0 ? 0 : trunc(number);
      };
    }
  });

  // node_modules/core-js/internals/to-absolute-index.js
  var require_to_absolute_index = __commonJS({
    "node_modules/core-js/internals/to-absolute-index.js": function(exports, module) {
      "use strict";
      var toIntegerOrInfinity = require_to_integer_or_infinity();
      var max = Math.max;
      var min = Math.min;
      module.exports = function(index, length) {
        var integer = toIntegerOrInfinity(index);
        return integer < 0 ? max(integer + length, 0) : min(integer, length);
      };
    }
  });

  // node_modules/core-js/internals/to-length.js
  var require_to_length = __commonJS({
    "node_modules/core-js/internals/to-length.js": function(exports, module) {
      "use strict";
      var toIntegerOrInfinity = require_to_integer_or_infinity();
      var min = Math.min;
      module.exports = function(argument) {
        var len = toIntegerOrInfinity(argument);
        return len > 0 ? min(len, 9007199254740991) : 0;
      };
    }
  });

  // node_modules/core-js/internals/length-of-array-like.js
  var require_length_of_array_like = __commonJS({
    "node_modules/core-js/internals/length-of-array-like.js": function(exports, module) {
      "use strict";
      var toLength = require_to_length();
      module.exports = function(obj) {
        return toLength(obj.length);
      };
    }
  });

  // node_modules/core-js/internals/array-includes.js
  var require_array_includes = __commonJS({
    "node_modules/core-js/internals/array-includes.js": function(exports, module) {
      "use strict";
      var toIndexedObject = require_to_indexed_object();
      var toAbsoluteIndex = require_to_absolute_index();
      var lengthOfArrayLike = require_length_of_array_like();
      var createMethod = function(IS_INCLUDES) {
        return function($this, el, fromIndex) {
          var O = toIndexedObject($this);
          var length = lengthOfArrayLike(O);
          if (length === 0)
            return !IS_INCLUDES && -1;
          var index = toAbsoluteIndex(fromIndex, length);
          var value;
          if (IS_INCLUDES && el !== el)
            while (length > index) {
              value = O[index++];
              if (value !== value)
                return true;
            }
          else
            for (; length > index; index++) {
              if ((IS_INCLUDES || index in O) && O[index] === el)
                return IS_INCLUDES || index || 0;
            }
          return !IS_INCLUDES && -1;
        };
      };
      module.exports = {
        // `Array.prototype.includes` method
        // https://tc39.es/ecma262/#sec-array.prototype.includes
        includes: createMethod(true),
        // `Array.prototype.indexOf` method
        // https://tc39.es/ecma262/#sec-array.prototype.indexof
        indexOf: createMethod(false)
      };
    }
  });

  // node_modules/core-js/internals/object-keys-internal.js
  var require_object_keys_internal = __commonJS({
    "node_modules/core-js/internals/object-keys-internal.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      var hasOwn = require_has_own_property();
      var toIndexedObject = require_to_indexed_object();
      var indexOf = require_array_includes().indexOf;
      var hiddenKeys = require_hidden_keys();
      var push = uncurryThis([].push);
      module.exports = function(object, names) {
        var O = toIndexedObject(object);
        var i = 0;
        var result = [];
        var key;
        for (key in O)
          !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
        while (names.length > i)
          if (hasOwn(O, key = names[i++])) {
            ~indexOf(result, key) || push(result, key);
          }
        return result;
      };
    }
  });

  // node_modules/core-js/internals/enum-bug-keys.js
  var require_enum_bug_keys = __commonJS({
    "node_modules/core-js/internals/enum-bug-keys.js": function(exports, module) {
      "use strict";
      module.exports = [
        "constructor",
        "hasOwnProperty",
        "isPrototypeOf",
        "propertyIsEnumerable",
        "toLocaleString",
        "toString",
        "valueOf"
      ];
    }
  });

  // node_modules/core-js/internals/object-get-own-property-names.js
  var require_object_get_own_property_names = __commonJS({
    "node_modules/core-js/internals/object-get-own-property-names.js": function(exports) {
      "use strict";
      var internalObjectKeys = require_object_keys_internal();
      var enumBugKeys = require_enum_bug_keys();
      var hiddenKeys = enumBugKeys.concat("length", "prototype");
      exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
        return internalObjectKeys(O, hiddenKeys);
      };
    }
  });

  // node_modules/core-js/internals/object-get-own-property-symbols.js
  var require_object_get_own_property_symbols = __commonJS({
    "node_modules/core-js/internals/object-get-own-property-symbols.js": function(exports) {
      "use strict";
      exports.f = Object.getOwnPropertySymbols;
    }
  });

  // node_modules/core-js/internals/own-keys.js
  var require_own_keys = __commonJS({
    "node_modules/core-js/internals/own-keys.js": function(exports, module) {
      "use strict";
      var getBuiltIn = require_get_built_in();
      var uncurryThis = require_function_uncurry_this();
      var getOwnPropertyNamesModule = require_object_get_own_property_names();
      var getOwnPropertySymbolsModule = require_object_get_own_property_symbols();
      var anObject = require_an_object();
      var concat = uncurryThis([].concat);
      module.exports = getBuiltIn("Reflect", "ownKeys") || function ownKeys2(it) {
        var keys = getOwnPropertyNamesModule.f(anObject(it));
        var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
        return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
      };
    }
  });

  // node_modules/core-js/internals/copy-constructor-properties.js
  var require_copy_constructor_properties = __commonJS({
    "node_modules/core-js/internals/copy-constructor-properties.js": function(exports, module) {
      "use strict";
      var hasOwn = require_has_own_property();
      var ownKeys2 = require_own_keys();
      var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
      var definePropertyModule = require_object_define_property();
      module.exports = function(target, source, exceptions) {
        var keys = ownKeys2(source);
        var defineProperty = definePropertyModule.f;
        var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
        for (var i = 0; i < keys.length; i++) {
          var key = keys[i];
          if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
            defineProperty(target, key, getOwnPropertyDescriptor(source, key));
          }
        }
      };
    }
  });

  // node_modules/core-js/internals/is-forced.js
  var require_is_forced = __commonJS({
    "node_modules/core-js/internals/is-forced.js": function(exports, module) {
      "use strict";
      var fails = require_fails();
      var isCallable = require_is_callable();
      var replacement = /#|\.prototype\./;
      var isForced = function(feature, detection) {
        var value = data[normalize(feature)];
        return value === POLYFILL ? true : value === NATIVE ? false : isCallable(detection) ? fails(detection) : !!detection;
      };
      var normalize = isForced.normalize = function(string) {
        return String(string).replace(replacement, ".").toLowerCase();
      };
      var data = isForced.data = {};
      var NATIVE = isForced.NATIVE = "N";
      var POLYFILL = isForced.POLYFILL = "P";
      module.exports = isForced;
    }
  });

  // node_modules/core-js/internals/export.js
  var require_export = __commonJS({
    "node_modules/core-js/internals/export.js": function(exports, module) {
      "use strict";
      var global2 = require_global();
      var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
      var createNonEnumerableProperty = require_create_non_enumerable_property();
      var defineBuiltIn = require_define_built_in();
      var defineGlobalProperty = require_define_global_property();
      var copyConstructorProperties = require_copy_constructor_properties();
      var isForced = require_is_forced();
      module.exports = function(options, source) {
        var TARGET = options.target;
        var GLOBAL = options.global;
        var STATIC = options.stat;
        var FORCED, target, key, targetProperty, sourceProperty, descriptor;
        if (GLOBAL) {
          target = global2;
        } else if (STATIC) {
          target = global2[TARGET] || defineGlobalProperty(TARGET, {});
        } else {
          target = global2[TARGET] && global2[TARGET].prototype;
        }
        if (target)
          for (key in source) {
            sourceProperty = source[key];
            if (options.dontCallGetSet) {
              descriptor = getOwnPropertyDescriptor(target, key);
              targetProperty = descriptor && descriptor.value;
            } else
              targetProperty = target[key];
            FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
            if (!FORCED && targetProperty !== void 0) {
              if (typeof sourceProperty == typeof targetProperty)
                continue;
              copyConstructorProperties(sourceProperty, targetProperty);
            }
            if (options.sham || targetProperty && targetProperty.sham) {
              createNonEnumerableProperty(sourceProperty, "sham", true);
            }
            defineBuiltIn(target, key, sourceProperty, options);
          }
      };
    }
  });

  // node_modules/core-js/internals/function-uncurry-this-clause.js
  var require_function_uncurry_this_clause = __commonJS({
    "node_modules/core-js/internals/function-uncurry-this-clause.js": function(exports, module) {
      "use strict";
      var classofRaw = require_classof_raw();
      var uncurryThis = require_function_uncurry_this();
      module.exports = function(fn) {
        if (classofRaw(fn) === "Function")
          return uncurryThis(fn);
      };
    }
  });

  // node_modules/core-js/internals/function-bind-context.js
  var require_function_bind_context = __commonJS({
    "node_modules/core-js/internals/function-bind-context.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this_clause();
      var aCallable = require_a_callable();
      var NATIVE_BIND = require_function_bind_native();
      var bind = uncurryThis(uncurryThis.bind);
      module.exports = function(fn, that) {
        aCallable(fn);
        return that === void 0 ? fn : NATIVE_BIND ? bind(fn, that) : function() {
          return fn.apply(that, arguments);
        };
      };
    }
  });

  // node_modules/core-js/internals/is-array.js
  var require_is_array = __commonJS({
    "node_modules/core-js/internals/is-array.js": function(exports, module) {
      "use strict";
      var classof = require_classof_raw();
      module.exports = Array.isArray || function isArray(argument) {
        return classof(argument) === "Array";
      };
    }
  });

  // node_modules/core-js/internals/to-string-tag-support.js
  var require_to_string_tag_support = __commonJS({
    "node_modules/core-js/internals/to-string-tag-support.js": function(exports, module) {
      "use strict";
      var wellKnownSymbol = require_well_known_symbol();
      var TO_STRING_TAG = wellKnownSymbol("toStringTag");
      var test = {};
      test[TO_STRING_TAG] = "z";
      module.exports = String(test) === "[object z]";
    }
  });

  // node_modules/core-js/internals/classof.js
  var require_classof = __commonJS({
    "node_modules/core-js/internals/classof.js": function(exports, module) {
      "use strict";
      var TO_STRING_TAG_SUPPORT = require_to_string_tag_support();
      var isCallable = require_is_callable();
      var classofRaw = require_classof_raw();
      var wellKnownSymbol = require_well_known_symbol();
      var TO_STRING_TAG = wellKnownSymbol("toStringTag");
      var $Object = Object;
      var CORRECT_ARGUMENTS = classofRaw(function() {
        return arguments;
      }()) === "Arguments";
      var tryGet = function(it, key) {
        try {
          return it[key];
        } catch (error) {
        }
      };
      module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function(it) {
        var O, tag, result;
        return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) === "Object" && isCallable(O.callee) ? "Arguments" : result;
      };
    }
  });

  // node_modules/core-js/internals/is-constructor.js
  var require_is_constructor = __commonJS({
    "node_modules/core-js/internals/is-constructor.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      var fails = require_fails();
      var isCallable = require_is_callable();
      var classof = require_classof();
      var getBuiltIn = require_get_built_in();
      var inspectSource = require_inspect_source();
      var noop = function() {
      };
      var construct = getBuiltIn("Reflect", "construct");
      var constructorRegExp = /^\s*(?:class|function)\b/;
      var exec = uncurryThis(constructorRegExp.exec);
      var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
      var isConstructorModern = function isConstructor(argument) {
        if (!isCallable(argument))
          return false;
        try {
          construct(noop, [], argument);
          return true;
        } catch (error) {
          return false;
        }
      };
      var isConstructorLegacy = function isConstructor(argument) {
        if (!isCallable(argument))
          return false;
        switch (classof(argument)) {
          case "AsyncFunction":
          case "GeneratorFunction":
          case "AsyncGeneratorFunction":
            return false;
        }
        try {
          return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
        } catch (error) {
          return true;
        }
      };
      isConstructorLegacy.sham = true;
      module.exports = !construct || fails(function() {
        var called;
        return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() {
          called = true;
        }) || called;
      }) ? isConstructorLegacy : isConstructorModern;
    }
  });

  // node_modules/core-js/internals/array-species-constructor.js
  var require_array_species_constructor = __commonJS({
    "node_modules/core-js/internals/array-species-constructor.js": function(exports, module) {
      "use strict";
      var isArray = require_is_array();
      var isConstructor = require_is_constructor();
      var isObject = require_is_object();
      var wellKnownSymbol = require_well_known_symbol();
      var SPECIES = wellKnownSymbol("species");
      var $Array = Array;
      module.exports = function(originalArray) {
        var C;
        if (isArray(originalArray)) {
          C = originalArray.constructor;
          if (isConstructor(C) && (C === $Array || isArray(C.prototype)))
            C = void 0;
          else if (isObject(C)) {
            C = C[SPECIES];
            if (C === null)
              C = void 0;
          }
        }
        return C === void 0 ? $Array : C;
      };
    }
  });

  // node_modules/core-js/internals/array-species-create.js
  var require_array_species_create = __commonJS({
    "node_modules/core-js/internals/array-species-create.js": function(exports, module) {
      "use strict";
      var arraySpeciesConstructor = require_array_species_constructor();
      module.exports = function(originalArray, length) {
        return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
      };
    }
  });

  // node_modules/core-js/internals/array-iteration.js
  var require_array_iteration = __commonJS({
    "node_modules/core-js/internals/array-iteration.js": function(exports, module) {
      "use strict";
      var bind = require_function_bind_context();
      var uncurryThis = require_function_uncurry_this();
      var IndexedObject = require_indexed_object();
      var toObject = require_to_object();
      var lengthOfArrayLike = require_length_of_array_like();
      var arraySpeciesCreate = require_array_species_create();
      var push = uncurryThis([].push);
      var createMethod = function(TYPE) {
        var IS_MAP = TYPE === 1;
        var IS_FILTER = TYPE === 2;
        var IS_SOME = TYPE === 3;
        var IS_EVERY = TYPE === 4;
        var IS_FIND_INDEX = TYPE === 6;
        var IS_FILTER_REJECT = TYPE === 7;
        var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
        return function($this, callbackfn, that, specificCreate) {
          var O = toObject($this);
          var self2 = IndexedObject(O);
          var length = lengthOfArrayLike(self2);
          var boundFunction = bind(callbackfn, that);
          var index = 0;
          var create = specificCreate || arraySpeciesCreate;
          var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : void 0;
          var value, result;
          for (; length > index; index++)
            if (NO_HOLES || index in self2) {
              value = self2[index];
              result = boundFunction(value, index, O);
              if (TYPE) {
                if (IS_MAP)
                  target[index] = result;
                else if (result)
                  switch (TYPE) {
                    case 3:
                      return true;
                    case 5:
                      return value;
                    case 6:
                      return index;
                    case 2:
                      push(target, value);
                  }
                else
                  switch (TYPE) {
                    case 4:
                      return false;
                    case 7:
                      push(target, value);
                  }
              }
            }
          return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
        };
      };
      module.exports = {
        // `Array.prototype.forEach` method
        // https://tc39.es/ecma262/#sec-array.prototype.foreach
        forEach: createMethod(0),
        // `Array.prototype.map` method
        // https://tc39.es/ecma262/#sec-array.prototype.map
        map: createMethod(1),
        // `Array.prototype.filter` method
        // https://tc39.es/ecma262/#sec-array.prototype.filter
        filter: createMethod(2),
        // `Array.prototype.some` method
        // https://tc39.es/ecma262/#sec-array.prototype.some
        some: createMethod(3),
        // `Array.prototype.every` method
        // https://tc39.es/ecma262/#sec-array.prototype.every
        every: createMethod(4),
        // `Array.prototype.find` method
        // https://tc39.es/ecma262/#sec-array.prototype.find
        find: createMethod(5),
        // `Array.prototype.findIndex` method
        // https://tc39.es/ecma262/#sec-array.prototype.findIndex
        findIndex: createMethod(6),
        // `Array.prototype.filterReject` method
        // https://github.com/tc39/proposal-array-filtering
        filterReject: createMethod(7)
      };
    }
  });

  // node_modules/core-js/internals/array-method-is-strict.js
  var require_array_method_is_strict = __commonJS({
    "node_modules/core-js/internals/array-method-is-strict.js": function(exports, module) {
      "use strict";
      var fails = require_fails();
      module.exports = function(METHOD_NAME, argument) {
        var method = [][METHOD_NAME];
        return !!method && fails(function() {
          method.call(null, argument || function() {
            return 1;
          }, 1);
        });
      };
    }
  });

  // node_modules/core-js/internals/array-for-each.js
  var require_array_for_each = __commonJS({
    "node_modules/core-js/internals/array-for-each.js": function(exports, module) {
      "use strict";
      var $forEach = require_array_iteration().forEach;
      var arrayMethodIsStrict = require_array_method_is_strict();
      var STRICT_METHOD = arrayMethodIsStrict("forEach");
      module.exports = !STRICT_METHOD ? function forEach(callbackfn) {
        return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
      } : [].forEach;
    }
  });

  // node_modules/core-js/modules/es.array.for-each.js
  var require_es_array_for_each = __commonJS({
    "node_modules/core-js/modules/es.array.for-each.js": function() {
      "use strict";
      var $ = require_export();
      var forEach = require_array_for_each();
      $({ target: "Array", proto: true, forced: [].forEach !== forEach }, {
        forEach: forEach
      });
    }
  });

  // node_modules/core-js/internals/iterator-close.js
  var require_iterator_close = __commonJS({
    "node_modules/core-js/internals/iterator-close.js": function(exports, module) {
      "use strict";
      var call = require_function_call();
      var anObject = require_an_object();
      var getMethod = require_get_method();
      module.exports = function(iterator, kind, value) {
        var innerResult, innerError;
        anObject(iterator);
        try {
          innerResult = getMethod(iterator, "return");
          if (!innerResult) {
            if (kind === "throw")
              throw value;
            return value;
          }
          innerResult = call(innerResult, iterator);
        } catch (error) {
          innerError = true;
          innerResult = error;
        }
        if (kind === "throw")
          throw value;
        if (innerError)
          throw innerResult;
        anObject(innerResult);
        return value;
      };
    }
  });

  // node_modules/core-js/internals/call-with-safe-iteration-closing.js
  var require_call_with_safe_iteration_closing = __commonJS({
    "node_modules/core-js/internals/call-with-safe-iteration-closing.js": function(exports, module) {
      "use strict";
      var anObject = require_an_object();
      var iteratorClose = require_iterator_close();
      module.exports = function(iterator, fn, value, ENTRIES) {
        try {
          return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
        } catch (error) {
          iteratorClose(iterator, "throw", error);
        }
      };
    }
  });

  // node_modules/core-js/internals/iterators.js
  var require_iterators = __commonJS({
    "node_modules/core-js/internals/iterators.js": function(exports, module) {
      "use strict";
      module.exports = {};
    }
  });

  // node_modules/core-js/internals/is-array-iterator-method.js
  var require_is_array_iterator_method = __commonJS({
    "node_modules/core-js/internals/is-array-iterator-method.js": function(exports, module) {
      "use strict";
      var wellKnownSymbol = require_well_known_symbol();
      var Iterators = require_iterators();
      var ITERATOR = wellKnownSymbol("iterator");
      var ArrayPrototype = Array.prototype;
      module.exports = function(it) {
        return it !== void 0 && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
      };
    }
  });

  // node_modules/core-js/internals/create-property.js
  var require_create_property = __commonJS({
    "node_modules/core-js/internals/create-property.js": function(exports, module) {
      "use strict";
      var DESCRIPTORS = require_descriptors();
      var definePropertyModule = require_object_define_property();
      var createPropertyDescriptor = require_create_property_descriptor();
      module.exports = function(object, key, value) {
        if (DESCRIPTORS)
          definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
        else
          object[key] = value;
      };
    }
  });

  // node_modules/core-js/internals/get-iterator-method.js
  var require_get_iterator_method = __commonJS({
    "node_modules/core-js/internals/get-iterator-method.js": function(exports, module) {
      "use strict";
      var classof = require_classof();
      var getMethod = require_get_method();
      var isNullOrUndefined = require_is_null_or_undefined();
      var Iterators = require_iterators();
      var wellKnownSymbol = require_well_known_symbol();
      var ITERATOR = wellKnownSymbol("iterator");
      module.exports = function(it) {
        if (!isNullOrUndefined(it))
          return getMethod(it, ITERATOR) || getMethod(it, "@@iterator") || Iterators[classof(it)];
      };
    }
  });

  // node_modules/core-js/internals/get-iterator.js
  var require_get_iterator = __commonJS({
    "node_modules/core-js/internals/get-iterator.js": function(exports, module) {
      "use strict";
      var call = require_function_call();
      var aCallable = require_a_callable();
      var anObject = require_an_object();
      var tryToString = require_try_to_string();
      var getIteratorMethod = require_get_iterator_method();
      var $TypeError = TypeError;
      module.exports = function(argument, usingIterator) {
        var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
        if (aCallable(iteratorMethod))
          return anObject(call(iteratorMethod, argument));
        throw new $TypeError(tryToString(argument) + " is not iterable");
      };
    }
  });

  // node_modules/core-js/internals/array-from.js
  var require_array_from = __commonJS({
    "node_modules/core-js/internals/array-from.js": function(exports, module) {
      "use strict";
      var bind = require_function_bind_context();
      var call = require_function_call();
      var toObject = require_to_object();
      var callWithSafeIterationClosing = require_call_with_safe_iteration_closing();
      var isArrayIteratorMethod = require_is_array_iterator_method();
      var isConstructor = require_is_constructor();
      var lengthOfArrayLike = require_length_of_array_like();
      var createProperty = require_create_property();
      var getIterator = require_get_iterator();
      var getIteratorMethod = require_get_iterator_method();
      var $Array = Array;
      module.exports = function from(arrayLike) {
        var O = toObject(arrayLike);
        var IS_CONSTRUCTOR = isConstructor(this);
        var argumentsLength = arguments.length;
        var mapfn = argumentsLength > 1 ? arguments[1] : void 0;
        var mapping = mapfn !== void 0;
        if (mapping)
          mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : void 0);
        var iteratorMethod = getIteratorMethod(O);
        var index = 0;
        var length, result, step, iterator, next, value;
        if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
          result = IS_CONSTRUCTOR ? new this() : [];
          iterator = getIterator(O, iteratorMethod);
          next = iterator.next;
          for (; !(step = call(next, iterator)).done; index++) {
            value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
            createProperty(result, index, value);
          }
        } else {
          length = lengthOfArrayLike(O);
          result = IS_CONSTRUCTOR ? new this(length) : $Array(length);
          for (; length > index; index++) {
            value = mapping ? mapfn(O[index], index) : O[index];
            createProperty(result, index, value);
          }
        }
        result.length = index;
        return result;
      };
    }
  });

  // node_modules/core-js/internals/check-correctness-of-iteration.js
  var require_check_correctness_of_iteration = __commonJS({
    "node_modules/core-js/internals/check-correctness-of-iteration.js": function(exports, module) {
      "use strict";
      var wellKnownSymbol = require_well_known_symbol();
      var ITERATOR = wellKnownSymbol("iterator");
      var SAFE_CLOSING = false;
      try {
        called = 0;
        iteratorWithReturn = {
          next: function() {
            return { done: !!called++ };
          },
          "return": function() {
            SAFE_CLOSING = true;
          }
        };
        iteratorWithReturn[ITERATOR] = function() {
          return this;
        };
        Array.from(iteratorWithReturn, function() {
          throw 2;
        });
      } catch (error) {
      }
      var called;
      var iteratorWithReturn;
      module.exports = function(exec, SKIP_CLOSING) {
        try {
          if (!SKIP_CLOSING && !SAFE_CLOSING)
            return false;
        } catch (error) {
          return false;
        }
        var ITERATION_SUPPORT = false;
        try {
          var object = {};
          object[ITERATOR] = function() {
            return {
              next: function() {
                return { done: ITERATION_SUPPORT = true };
              }
            };
          };
          exec(object);
        } catch (error) {
        }
        return ITERATION_SUPPORT;
      };
    }
  });

  // node_modules/core-js/modules/es.array.from.js
  var require_es_array_from = __commonJS({
    "node_modules/core-js/modules/es.array.from.js": function() {
      "use strict";
      var $ = require_export();
      var from = require_array_from();
      var checkCorrectnessOfIteration = require_check_correctness_of_iteration();
      var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function(iterable) {
        Array.from(iterable);
      });
      $({ target: "Array", stat: true, forced: INCORRECT_ITERATION }, {
        from: from
      });
    }
  });

  // node_modules/core-js/modules/es.array.is-array.js
  var require_es_array_is_array = __commonJS({
    "node_modules/core-js/modules/es.array.is-array.js": function() {
      "use strict";
      var $ = require_export();
      var isArray = require_is_array();
      $({ target: "Array", stat: true }, {
        isArray: isArray
      });
    }
  });

  // node_modules/core-js/internals/object-keys.js
  var require_object_keys = __commonJS({
    "node_modules/core-js/internals/object-keys.js": function(exports, module) {
      "use strict";
      var internalObjectKeys = require_object_keys_internal();
      var enumBugKeys = require_enum_bug_keys();
      module.exports = Object.keys || function keys(O) {
        return internalObjectKeys(O, enumBugKeys);
      };
    }
  });

  // node_modules/core-js/internals/object-define-properties.js
  var require_object_define_properties = __commonJS({
    "node_modules/core-js/internals/object-define-properties.js": function(exports) {
      "use strict";
      var DESCRIPTORS = require_descriptors();
      var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug();
      var definePropertyModule = require_object_define_property();
      var anObject = require_an_object();
      var toIndexedObject = require_to_indexed_object();
      var objectKeys = require_object_keys();
      exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
        anObject(O);
        var props = toIndexedObject(Properties);
        var keys = objectKeys(Properties);
        var length = keys.length;
        var index = 0;
        var key;
        while (length > index)
          definePropertyModule.f(O, key = keys[index++], props[key]);
        return O;
      };
    }
  });

  // node_modules/core-js/internals/html.js
  var require_html = __commonJS({
    "node_modules/core-js/internals/html.js": function(exports, module) {
      "use strict";
      var getBuiltIn = require_get_built_in();
      module.exports = getBuiltIn("document", "documentElement");
    }
  });

  // node_modules/core-js/internals/object-create.js
  var require_object_create = __commonJS({
    "node_modules/core-js/internals/object-create.js": function(exports, module) {
      "use strict";
      var anObject = require_an_object();
      var definePropertiesModule = require_object_define_properties();
      var enumBugKeys = require_enum_bug_keys();
      var hiddenKeys = require_hidden_keys();
      var html = require_html();
      var documentCreateElement = require_document_create_element();
      var sharedKey = require_shared_key();
      var GT = ">";
      var LT = "<";
      var PROTOTYPE = "prototype";
      var SCRIPT = "script";
      var IE_PROTO = sharedKey("IE_PROTO");
      var EmptyConstructor = function() {
      };
      var scriptTag = function(content) {
        return LT + SCRIPT + GT + content + LT + "/" + SCRIPT + GT;
      };
      var NullProtoObjectViaActiveX = function(activeXDocument2) {
        activeXDocument2.write(scriptTag(""));
        activeXDocument2.close();
        var temp = activeXDocument2.parentWindow.Object;
        activeXDocument2 = null;
        return temp;
      };
      var NullProtoObjectViaIFrame = function() {
        var iframe = documentCreateElement("iframe");
        var JS = "java" + SCRIPT + ":";
        var iframeDocument;
        iframe.style.display = "none";
        html.appendChild(iframe);
        iframe.src = String(JS);
        iframeDocument = iframe.contentWindow.document;
        iframeDocument.open();
        iframeDocument.write(scriptTag("document.F=Object"));
        iframeDocument.close();
        return iframeDocument.F;
      };
      var activeXDocument;
      var NullProtoObject = function() {
        try {
          activeXDocument = new ActiveXObject("htmlfile");
        } catch (error) {
        }
        NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument);
        var length = enumBugKeys.length;
        while (length--)
          delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
        return NullProtoObject();
      };
      hiddenKeys[IE_PROTO] = true;
      module.exports = Object.create || function create(O, Properties) {
        var result;
        if (O !== null) {
          EmptyConstructor[PROTOTYPE] = anObject(O);
          result = new EmptyConstructor();
          EmptyConstructor[PROTOTYPE] = null;
          result[IE_PROTO] = O;
        } else
          result = NullProtoObject();
        return Properties === void 0 ? result : definePropertiesModule.f(result, Properties);
      };
    }
  });

  // node_modules/core-js/internals/add-to-unscopables.js
  var require_add_to_unscopables = __commonJS({
    "node_modules/core-js/internals/add-to-unscopables.js": function(exports, module) {
      "use strict";
      var wellKnownSymbol = require_well_known_symbol();
      var create = require_object_create();
      var defineProperty = require_object_define_property().f;
      var UNSCOPABLES = wellKnownSymbol("unscopables");
      var ArrayPrototype = Array.prototype;
      if (ArrayPrototype[UNSCOPABLES] === void 0) {
        defineProperty(ArrayPrototype, UNSCOPABLES, {
          configurable: true,
          value: create(null)
        });
      }
      module.exports = function(key) {
        ArrayPrototype[UNSCOPABLES][key] = true;
      };
    }
  });

  // node_modules/core-js/internals/correct-prototype-getter.js
  var require_correct_prototype_getter = __commonJS({
    "node_modules/core-js/internals/correct-prototype-getter.js": function(exports, module) {
      "use strict";
      var fails = require_fails();
      module.exports = !fails(function() {
        function F() {
        }
        F.prototype.constructor = null;
        return Object.getPrototypeOf(new F()) !== F.prototype;
      });
    }
  });

  // node_modules/core-js/internals/object-get-prototype-of.js
  var require_object_get_prototype_of = __commonJS({
    "node_modules/core-js/internals/object-get-prototype-of.js": function(exports, module) {
      "use strict";
      var hasOwn = require_has_own_property();
      var isCallable = require_is_callable();
      var toObject = require_to_object();
      var sharedKey = require_shared_key();
      var CORRECT_PROTOTYPE_GETTER = require_correct_prototype_getter();
      var IE_PROTO = sharedKey("IE_PROTO");
      var $Object = Object;
      var ObjectPrototype = $Object.prototype;
      module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function(O) {
        var object = toObject(O);
        if (hasOwn(object, IE_PROTO))
          return object[IE_PROTO];
        var constructor = object.constructor;
        if (isCallable(constructor) && object instanceof constructor) {
          return constructor.prototype;
        }
        return object instanceof $Object ? ObjectPrototype : null;
      };
    }
  });

  // node_modules/core-js/internals/iterators-core.js
  var require_iterators_core = __commonJS({
    "node_modules/core-js/internals/iterators-core.js": function(exports, module) {
      "use strict";
      var fails = require_fails();
      var isCallable = require_is_callable();
      var isObject = require_is_object();
      var create = require_object_create();
      var getPrototypeOf = require_object_get_prototype_of();
      var defineBuiltIn = require_define_built_in();
      var wellKnownSymbol = require_well_known_symbol();
      var IS_PURE = require_is_pure();
      var ITERATOR = wellKnownSymbol("iterator");
      var BUGGY_SAFARI_ITERATORS = false;
      var IteratorPrototype;
      var PrototypeOfArrayIteratorPrototype;
      var arrayIterator;
      if ([].keys) {
        arrayIterator = [].keys();
        if (!("next" in arrayIterator))
          BUGGY_SAFARI_ITERATORS = true;
        else {
          PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
          if (PrototypeOfArrayIteratorPrototype !== Object.prototype)
            IteratorPrototype = PrototypeOfArrayIteratorPrototype;
        }
      }
      var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function() {
        var test = {};
        return IteratorPrototype[ITERATOR].call(test) !== test;
      });
      if (NEW_ITERATOR_PROTOTYPE)
        IteratorPrototype = {};
      else if (IS_PURE)
        IteratorPrototype = create(IteratorPrototype);
      if (!isCallable(IteratorPrototype[ITERATOR])) {
        defineBuiltIn(IteratorPrototype, ITERATOR, function() {
          return this;
        });
      }
      module.exports = {
        IteratorPrototype: IteratorPrototype,
        BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
      };
    }
  });

  // node_modules/core-js/internals/set-to-string-tag.js
  var require_set_to_string_tag = __commonJS({
    "node_modules/core-js/internals/set-to-string-tag.js": function(exports, module) {
      "use strict";
      var defineProperty = require_object_define_property().f;
      var hasOwn = require_has_own_property();
      var wellKnownSymbol = require_well_known_symbol();
      var TO_STRING_TAG = wellKnownSymbol("toStringTag");
      module.exports = function(target, TAG, STATIC) {
        if (target && !STATIC)
          target = target.prototype;
        if (target && !hasOwn(target, TO_STRING_TAG)) {
          defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
        }
      };
    }
  });

  // node_modules/core-js/internals/iterator-create-constructor.js
  var require_iterator_create_constructor = __commonJS({
    "node_modules/core-js/internals/iterator-create-constructor.js": function(exports, module) {
      "use strict";
      var IteratorPrototype = require_iterators_core().IteratorPrototype;
      var create = require_object_create();
      var createPropertyDescriptor = require_create_property_descriptor();
      var setToStringTag = require_set_to_string_tag();
      var Iterators = require_iterators();
      var returnThis = function() {
        return this;
      };
      module.exports = function(IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
        var TO_STRING_TAG = NAME + " Iterator";
        IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
        setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
        Iterators[TO_STRING_TAG] = returnThis;
        return IteratorConstructor;
      };
    }
  });

  // node_modules/core-js/internals/function-uncurry-this-accessor.js
  var require_function_uncurry_this_accessor = __commonJS({
    "node_modules/core-js/internals/function-uncurry-this-accessor.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      var aCallable = require_a_callable();
      module.exports = function(object, key, method) {
        try {
          return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
        } catch (error) {
        }
      };
    }
  });

  // node_modules/core-js/internals/is-possible-prototype.js
  var require_is_possible_prototype = __commonJS({
    "node_modules/core-js/internals/is-possible-prototype.js": function(exports, module) {
      "use strict";
      var isObject = require_is_object();
      module.exports = function(argument) {
        return isObject(argument) || argument === null;
      };
    }
  });

  // node_modules/core-js/internals/a-possible-prototype.js
  var require_a_possible_prototype = __commonJS({
    "node_modules/core-js/internals/a-possible-prototype.js": function(exports, module) {
      "use strict";
      var isPossiblePrototype = require_is_possible_prototype();
      var $String = String;
      var $TypeError = TypeError;
      module.exports = function(argument) {
        if (isPossiblePrototype(argument))
          return argument;
        throw new $TypeError("Can't set " + $String(argument) + " as a prototype");
      };
    }
  });

  // node_modules/core-js/internals/object-set-prototype-of.js
  var require_object_set_prototype_of = __commonJS({
    "node_modules/core-js/internals/object-set-prototype-of.js": function(exports, module) {
      "use strict";
      var uncurryThisAccessor = require_function_uncurry_this_accessor();
      var isObject = require_is_object();
      var requireObjectCoercible = require_require_object_coercible();
      var aPossiblePrototype = require_a_possible_prototype();
      module.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() {
        var CORRECT_SETTER = false;
        var test = {};
        var setter;
        try {
          setter = uncurryThisAccessor(Object.prototype, "__proto__", "set");
          setter(test, []);
          CORRECT_SETTER = test instanceof Array;
        } catch (error) {
        }
        return function setPrototypeOf(O, proto) {
          requireObjectCoercible(O);
          aPossiblePrototype(proto);
          if (!isObject(O))
            return O;
          if (CORRECT_SETTER)
            setter(O, proto);
          else
            O.__proto__ = proto;
          return O;
        };
      }() : void 0);
    }
  });

  // node_modules/core-js/internals/iterator-define.js
  var require_iterator_define = __commonJS({
    "node_modules/core-js/internals/iterator-define.js": function(exports, module) {
      "use strict";
      var $ = require_export();
      var call = require_function_call();
      var IS_PURE = require_is_pure();
      var FunctionName = require_function_name();
      var isCallable = require_is_callable();
      var createIteratorConstructor = require_iterator_create_constructor();
      var getPrototypeOf = require_object_get_prototype_of();
      var setPrototypeOf = require_object_set_prototype_of();
      var setToStringTag = require_set_to_string_tag();
      var createNonEnumerableProperty = require_create_non_enumerable_property();
      var defineBuiltIn = require_define_built_in();
      var wellKnownSymbol = require_well_known_symbol();
      var Iterators = require_iterators();
      var IteratorsCore = require_iterators_core();
      var PROPER_FUNCTION_NAME = FunctionName.PROPER;
      var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
      var IteratorPrototype = IteratorsCore.IteratorPrototype;
      var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
      var ITERATOR = wellKnownSymbol("iterator");
      var KEYS = "keys";
      var VALUES = "values";
      var ENTRIES = "entries";
      var returnThis = function() {
        return this;
      };
      module.exports = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
        createIteratorConstructor(IteratorConstructor, NAME, next);
        var getIterationMethod = function(KIND) {
          if (KIND === DEFAULT && defaultIterator)
            return defaultIterator;
          if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype)
            return IterablePrototype[KIND];
          switch (KIND) {
            case KEYS:
              return function keys() {
                return new IteratorConstructor(this, KIND);
              };
            case VALUES:
              return function values() {
                return new IteratorConstructor(this, KIND);
              };
            case ENTRIES:
              return function entries() {
                return new IteratorConstructor(this, KIND);
              };
          }
          return function() {
            return new IteratorConstructor(this);
          };
        };
        var TO_STRING_TAG = NAME + " Iterator";
        var INCORRECT_VALUES_NAME = false;
        var IterablePrototype = Iterable.prototype;
        var nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype["@@iterator"] || DEFAULT && IterablePrototype[DEFAULT];
        var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
        var anyNativeIterator = NAME === "Array" ? IterablePrototype.entries || nativeIterator : nativeIterator;
        var CurrentIteratorPrototype, methods, KEY;
        if (anyNativeIterator) {
          CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
          if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
            if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
              if (setPrototypeOf) {
                setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
              } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {
                defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);
              }
            }
            setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
            if (IS_PURE)
              Iterators[TO_STRING_TAG] = returnThis;
          }
        }
        if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
          if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {
            createNonEnumerableProperty(IterablePrototype, "name", VALUES);
          } else {
            INCORRECT_VALUES_NAME = true;
            defaultIterator = function values() {
              return call(nativeIterator, this);
            };
          }
        }
        if (DEFAULT) {
          methods = {
            values: getIterationMethod(VALUES),
            keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
            entries: getIterationMethod(ENTRIES)
          };
          if (FORCED)
            for (KEY in methods) {
              if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
                defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
              }
            }
          else
            $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
        }
        if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
          defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });
        }
        Iterators[NAME] = defaultIterator;
        return methods;
      };
    }
  });

  // node_modules/core-js/internals/create-iter-result-object.js
  var require_create_iter_result_object = __commonJS({
    "node_modules/core-js/internals/create-iter-result-object.js": function(exports, module) {
      "use strict";
      module.exports = function(value, done) {
        return { value: value, done: done };
      };
    }
  });

  // node_modules/core-js/modules/es.array.iterator.js
  var require_es_array_iterator = __commonJS({
    "node_modules/core-js/modules/es.array.iterator.js": function(exports, module) {
      "use strict";
      var toIndexedObject = require_to_indexed_object();
      var addToUnscopables = require_add_to_unscopables();
      var Iterators = require_iterators();
      var InternalStateModule = require_internal_state();
      var defineProperty = require_object_define_property().f;
      var defineIterator = require_iterator_define();
      var createIterResultObject = require_create_iter_result_object();
      var IS_PURE = require_is_pure();
      var DESCRIPTORS = require_descriptors();
      var ARRAY_ITERATOR = "Array Iterator";
      var setInternalState = InternalStateModule.set;
      var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
      module.exports = defineIterator(Array, "Array", function(iterated, kind) {
        setInternalState(this, {
          type: ARRAY_ITERATOR,
          target: toIndexedObject(iterated),
          // target
          index: 0,
          // next index
          kind: kind
          // kind
        });
      }, function() {
        var state = getInternalState(this);
        var target = state.target;
        var index = state.index++;
        if (!target || index >= target.length) {
          state.target = void 0;
          return createIterResultObject(void 0, true);
        }
        switch (state.kind) {
          case "keys":
            return createIterResultObject(index, false);
          case "values":
            return createIterResultObject(target[index], false);
        }
        return createIterResultObject([index, target[index]], false);
      }, "values");
      var values = Iterators.Arguments = Iterators.Array;
      addToUnscopables("keys");
      addToUnscopables("values");
      addToUnscopables("entries");
      if (!IS_PURE && DESCRIPTORS && values.name !== "values")
        try {
          defineProperty(values, "name", { value: "values" });
        } catch (error) {
        }
    }
  });

  // node_modules/core-js/internals/date-to-primitive.js
  var require_date_to_primitive = __commonJS({
    "node_modules/core-js/internals/date-to-primitive.js": function(exports, module) {
      "use strict";
      var anObject = require_an_object();
      var ordinaryToPrimitive = require_ordinary_to_primitive();
      var $TypeError = TypeError;
      module.exports = function(hint) {
        anObject(this);
        if (hint === "string" || hint === "default")
          hint = "string";
        else if (hint !== "number")
          throw new $TypeError("Incorrect hint");
        return ordinaryToPrimitive(this, hint);
      };
    }
  });

  // node_modules/core-js/modules/es.date.to-primitive.js
  var require_es_date_to_primitive = __commonJS({
    "node_modules/core-js/modules/es.date.to-primitive.js": function() {
      "use strict";
      var hasOwn = require_has_own_property();
      var defineBuiltIn = require_define_built_in();
      var dateToPrimitive = require_date_to_primitive();
      var wellKnownSymbol = require_well_known_symbol();
      var TO_PRIMITIVE = wellKnownSymbol("toPrimitive");
      var DatePrototype = Date.prototype;
      if (!hasOwn(DatePrototype, TO_PRIMITIVE)) {
        defineBuiltIn(DatePrototype, TO_PRIMITIVE, dateToPrimitive);
      }
    }
  });

  // node_modules/core-js/internals/inherit-if-required.js
  var require_inherit_if_required = __commonJS({
    "node_modules/core-js/internals/inherit-if-required.js": function(exports, module) {
      "use strict";
      var isCallable = require_is_callable();
      var isObject = require_is_object();
      var setPrototypeOf = require_object_set_prototype_of();
      module.exports = function($this, dummy, Wrapper) {
        var NewTarget, NewTargetPrototype;
        if (
          // it can work only with native `setPrototypeOf`
          setPrototypeOf && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
          isCallable(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype
        )
          setPrototypeOf($this, NewTargetPrototype);
        return $this;
      };
    }
  });

  // node_modules/core-js/internals/this-number-value.js
  var require_this_number_value = __commonJS({
    "node_modules/core-js/internals/this-number-value.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      module.exports = uncurryThis(1 .valueOf);
    }
  });

  // node_modules/core-js/internals/to-string.js
  var require_to_string = __commonJS({
    "node_modules/core-js/internals/to-string.js": function(exports, module) {
      "use strict";
      var classof = require_classof();
      var $String = String;
      module.exports = function(argument) {
        if (classof(argument) === "Symbol")
          throw new TypeError("Cannot convert a Symbol value to a string");
        return $String(argument);
      };
    }
  });

  // node_modules/core-js/internals/whitespaces.js
  var require_whitespaces = __commonJS({
    "node_modules/core-js/internals/whitespaces.js": function(exports, module) {
      "use strict";
      module.exports = "	\n\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF";
    }
  });

  // node_modules/core-js/internals/string-trim.js
  var require_string_trim = __commonJS({
    "node_modules/core-js/internals/string-trim.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      var requireObjectCoercible = require_require_object_coercible();
      var toString = require_to_string();
      var whitespaces = require_whitespaces();
      var replace = uncurryThis("".replace);
      var ltrim = RegExp("^[" + whitespaces + "]+");
      var rtrim = RegExp("(^|[^" + whitespaces + "])[" + whitespaces + "]+$");
      var createMethod = function(TYPE) {
        return function($this) {
          var string = toString(requireObjectCoercible($this));
          if (TYPE & 1)
            string = replace(string, ltrim, "");
          if (TYPE & 2)
            string = replace(string, rtrim, "$1");
          return string;
        };
      };
      module.exports = {
        // `String.prototype.{ trimLeft, trimStart }` methods
        // https://tc39.es/ecma262/#sec-string.prototype.trimstart
        start: createMethod(1),
        // `String.prototype.{ trimRight, trimEnd }` methods
        // https://tc39.es/ecma262/#sec-string.prototype.trimend
        end: createMethod(2),
        // `String.prototype.trim` method
        // https://tc39.es/ecma262/#sec-string.prototype.trim
        trim: createMethod(3)
      };
    }
  });

  // node_modules/core-js/modules/es.number.constructor.js
  var require_es_number_constructor = __commonJS({
    "node_modules/core-js/modules/es.number.constructor.js": function() {
      "use strict";
      var $ = require_export();
      var IS_PURE = require_is_pure();
      var DESCRIPTORS = require_descriptors();
      var global2 = require_global();
      var path = require_path();
      var uncurryThis = require_function_uncurry_this();
      var isForced = require_is_forced();
      var hasOwn = require_has_own_property();
      var inheritIfRequired = require_inherit_if_required();
      var isPrototypeOf = require_object_is_prototype_of();
      var isSymbol = require_is_symbol();
      var toPrimitive = require_to_primitive();
      var fails = require_fails();
      var getOwnPropertyNames = require_object_get_own_property_names().f;
      var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
      var defineProperty = require_object_define_property().f;
      var thisNumberValue = require_this_number_value();
      var trim = require_string_trim().trim;
      var NUMBER = "Number";
      var NativeNumber = global2[NUMBER];
      var PureNumberNamespace = path[NUMBER];
      var NumberPrototype = NativeNumber.prototype;
      var TypeError2 = global2.TypeError;
      var stringSlice = uncurryThis("".slice);
      var charCodeAt = uncurryThis("".charCodeAt);
      var toNumeric = function(value) {
        var primValue = toPrimitive(value, "number");
        return typeof primValue == "bigint" ? primValue : toNumber(primValue);
      };
      var toNumber = function(argument) {
        var it = toPrimitive(argument, "number");
        var first, third, radix, maxCode, digits, length, index, code;
        if (isSymbol(it))
          throw new TypeError2("Cannot convert a Symbol value to a number");
        if (typeof it == "string" && it.length > 2) {
          it = trim(it);
          first = charCodeAt(it, 0);
          if (first === 43 || first === 45) {
            third = charCodeAt(it, 2);
            if (third === 88 || third === 120)
              return NaN;
          } else if (first === 48) {
            switch (charCodeAt(it, 1)) {
              case 66:
              case 98:
                radix = 2;
                maxCode = 49;
                break;
              case 79:
              case 111:
                radix = 8;
                maxCode = 55;
                break;
              default:
                return +it;
            }
            digits = stringSlice(it, 2);
            length = digits.length;
            for (index = 0; index < length; index++) {
              code = charCodeAt(digits, index);
              if (code < 48 || code > maxCode)
                return NaN;
            }
            return parseInt(digits, radix);
          }
        }
        return +it;
      };
      var FORCED = isForced(NUMBER, !NativeNumber(" 0o1") || !NativeNumber("0b1") || NativeNumber("+0x1"));
      var calledWithNew = function(dummy) {
        return isPrototypeOf(NumberPrototype, dummy) && fails(function() {
          thisNumberValue(dummy);
        });
      };
      var NumberWrapper = function Number2(value) {
        var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
        return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;
      };
      NumberWrapper.prototype = NumberPrototype;
      if (FORCED && !IS_PURE)
        NumberPrototype.constructor = NumberWrapper;
      $({ global: true, constructor: true, wrap: true, forced: FORCED }, {
        Number: NumberWrapper
      });
      var copyConstructorProperties = function(target, source) {
        for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (
          // ES3:
          "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(",")
        ), j = 0, key; keys.length > j; j++) {
          if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {
            defineProperty(target, key, getOwnPropertyDescriptor(source, key));
          }
        }
      };
      if (IS_PURE && PureNumberNamespace)
        copyConstructorProperties(path[NUMBER], PureNumberNamespace);
      if (FORCED || IS_PURE)
        copyConstructorProperties(path[NUMBER], NativeNumber);
    }
  });

  // node_modules/core-js/modules/es.object.create.js
  var require_es_object_create = __commonJS({
    "node_modules/core-js/modules/es.object.create.js": function() {
      "use strict";
      var $ = require_export();
      var DESCRIPTORS = require_descriptors();
      var create = require_object_create();
      $({ target: "Object", stat: true, sham: !DESCRIPTORS }, {
        create: create
      });
    }
  });

  // node_modules/core-js/modules/es.object.define-properties.js
  var require_es_object_define_properties = __commonJS({
    "node_modules/core-js/modules/es.object.define-properties.js": function() {
      "use strict";
      var $ = require_export();
      var DESCRIPTORS = require_descriptors();
      var defineProperties = require_object_define_properties().f;
      $({ target: "Object", stat: true, forced: Object.defineProperties !== defineProperties, sham: !DESCRIPTORS }, {
        defineProperties: defineProperties
      });
    }
  });

  // node_modules/core-js/modules/es.object.get-own-property-descriptor.js
  var require_es_object_get_own_property_descriptor = __commonJS({
    "node_modules/core-js/modules/es.object.get-own-property-descriptor.js": function() {
      "use strict";
      var $ = require_export();
      var fails = require_fails();
      var toIndexedObject = require_to_indexed_object();
      var nativeGetOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
      var DESCRIPTORS = require_descriptors();
      var FORCED = !DESCRIPTORS || fails(function() {
        nativeGetOwnPropertyDescriptor(1);
      });
      $({ target: "Object", stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
        getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
          return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
        }
      });
    }
  });

  // node_modules/core-js/modules/es.object.get-own-property-descriptors.js
  var require_es_object_get_own_property_descriptors = __commonJS({
    "node_modules/core-js/modules/es.object.get-own-property-descriptors.js": function() {
      "use strict";
      var $ = require_export();
      var DESCRIPTORS = require_descriptors();
      var ownKeys2 = require_own_keys();
      var toIndexedObject = require_to_indexed_object();
      var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
      var createProperty = require_create_property();
      $({ target: "Object", stat: true, sham: !DESCRIPTORS }, {
        getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
          var O = toIndexedObject(object);
          var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
          var keys = ownKeys2(O);
          var result = {};
          var index = 0;
          var key, descriptor;
          while (keys.length > index) {
            descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);
            if (descriptor !== void 0)
              createProperty(result, key, descriptor);
          }
          return result;
        }
      });
    }
  });

  // node_modules/core-js/modules/es.object.get-prototype-of.js
  var require_es_object_get_prototype_of = __commonJS({
    "node_modules/core-js/modules/es.object.get-prototype-of.js": function() {
      "use strict";
      var $ = require_export();
      var fails = require_fails();
      var toObject = require_to_object();
      var nativeGetPrototypeOf = require_object_get_prototype_of();
      var CORRECT_PROTOTYPE_GETTER = require_correct_prototype_getter();
      var FAILS_ON_PRIMITIVES = fails(function() {
        nativeGetPrototypeOf(1);
      });
      $({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {
        getPrototypeOf: function getPrototypeOf(it) {
          return nativeGetPrototypeOf(toObject(it));
        }
      });
    }
  });

  // node_modules/core-js/internals/define-built-in-accessor.js
  var require_define_built_in_accessor = __commonJS({
    "node_modules/core-js/internals/define-built-in-accessor.js": function(exports, module) {
      "use strict";
      var makeBuiltIn = require_make_built_in();
      var defineProperty = require_object_define_property();
      module.exports = function(target, name, descriptor) {
        if (descriptor.get)
          makeBuiltIn(descriptor.get, name, { getter: true });
        if (descriptor.set)
          makeBuiltIn(descriptor.set, name, { setter: true });
        return defineProperty.f(target, name, descriptor);
      };
    }
  });

  // node_modules/core-js/modules/es.object.proto.js
  var require_es_object_proto = __commonJS({
    "node_modules/core-js/modules/es.object.proto.js": function() {
      "use strict";
      var DESCRIPTORS = require_descriptors();
      var defineBuiltInAccessor = require_define_built_in_accessor();
      var isObject = require_is_object();
      var isPossiblePrototype = require_is_possible_prototype();
      var toObject = require_to_object();
      var requireObjectCoercible = require_require_object_coercible();
      var getPrototypeOf = Object.getPrototypeOf;
      var setPrototypeOf = Object.setPrototypeOf;
      var ObjectPrototype = Object.prototype;
      var PROTO = "__proto__";
      if (DESCRIPTORS && getPrototypeOf && setPrototypeOf && !(PROTO in ObjectPrototype))
        try {
          defineBuiltInAccessor(ObjectPrototype, PROTO, {
            configurable: true,
            get: function __proto__() {
              return getPrototypeOf(toObject(this));
            },
            set: function __proto__(proto) {
              var O = requireObjectCoercible(this);
              if (isPossiblePrototype(proto) && isObject(O)) {
                setPrototypeOf(O, proto);
              }
            }
          });
        } catch (error) {
        }
    }
  });

  // node_modules/core-js/modules/es.object.set-prototype-of.js
  var require_es_object_set_prototype_of = __commonJS({
    "node_modules/core-js/modules/es.object.set-prototype-of.js": function() {
      "use strict";
      var $ = require_export();
      var setPrototypeOf = require_object_set_prototype_of();
      $({ target: "Object", stat: true }, {
        setPrototypeOf: setPrototypeOf
      });
    }
  });

  // node_modules/core-js/internals/function-apply.js
  var require_function_apply = __commonJS({
    "node_modules/core-js/internals/function-apply.js": function(exports, module) {
      "use strict";
      var NATIVE_BIND = require_function_bind_native();
      var FunctionPrototype = Function.prototype;
      var apply = FunctionPrototype.apply;
      var call = FunctionPrototype.call;
      module.exports = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function() {
        return call.apply(apply, arguments);
      });
    }
  });

  // node_modules/core-js/internals/array-slice.js
  var require_array_slice = __commonJS({
    "node_modules/core-js/internals/array-slice.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      module.exports = uncurryThis([].slice);
    }
  });

  // node_modules/core-js/internals/function-bind.js
  var require_function_bind = __commonJS({
    "node_modules/core-js/internals/function-bind.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      var aCallable = require_a_callable();
      var isObject = require_is_object();
      var hasOwn = require_has_own_property();
      var arraySlice = require_array_slice();
      var NATIVE_BIND = require_function_bind_native();
      var $Function = Function;
      var concat = uncurryThis([].concat);
      var join = uncurryThis([].join);
      var factories = {};
      var construct = function(C, argsLength, args) {
        if (!hasOwn(factories, argsLength)) {
          var list = [];
          var i = 0;
          for (; i < argsLength; i++)
            list[i] = "a[" + i + "]";
          factories[argsLength] = $Function("C,a", "return new C(" + join(list, ",") + ")");
        }
        return factories[argsLength](C, args);
      };
      module.exports = NATIVE_BIND ? $Function.bind : function bind(that) {
        var F = aCallable(this);
        var Prototype = F.prototype;
        var partArgs = arraySlice(arguments, 1);
        var boundFunction = function bound() {
          var args = concat(partArgs, arraySlice(arguments));
          return this instanceof boundFunction ? construct(F, args.length, args) : F.apply(that, args);
        };
        if (isObject(Prototype))
          boundFunction.prototype = Prototype;
        return boundFunction;
      };
    }
  });

  // node_modules/core-js/internals/a-constructor.js
  var require_a_constructor = __commonJS({
    "node_modules/core-js/internals/a-constructor.js": function(exports, module) {
      "use strict";
      var isConstructor = require_is_constructor();
      var tryToString = require_try_to_string();
      var $TypeError = TypeError;
      module.exports = function(argument) {
        if (isConstructor(argument))
          return argument;
        throw new $TypeError(tryToString(argument) + " is not a constructor");
      };
    }
  });

  // node_modules/core-js/modules/es.reflect.construct.js
  var require_es_reflect_construct = __commonJS({
    "node_modules/core-js/modules/es.reflect.construct.js": function() {
      "use strict";
      var $ = require_export();
      var getBuiltIn = require_get_built_in();
      var apply = require_function_apply();
      var bind = require_function_bind();
      var aConstructor = require_a_constructor();
      var anObject = require_an_object();
      var isObject = require_is_object();
      var create = require_object_create();
      var fails = require_fails();
      var nativeConstruct = getBuiltIn("Reflect", "construct");
      var ObjectPrototype = Object.prototype;
      var push = [].push;
      var NEW_TARGET_BUG = fails(function() {
        function F() {
        }
        return !(nativeConstruct(function() {
        }, [], F) instanceof F);
      });
      var ARGS_BUG = !fails(function() {
        nativeConstruct(function() {
        });
      });
      var FORCED = NEW_TARGET_BUG || ARGS_BUG;
      $({ target: "Reflect", stat: true, forced: FORCED, sham: FORCED }, {
        construct: function construct(Target, args) {
          aConstructor(Target);
          anObject(args);
          var newTarget = arguments.length < 3 ? Target : aConstructor(arguments[2]);
          if (ARGS_BUG && !NEW_TARGET_BUG)
            return nativeConstruct(Target, args, newTarget);
          if (Target === newTarget) {
            switch (args.length) {
              case 0:
                return new Target();
              case 1:
                return new Target(args[0]);
              case 2:
                return new Target(args[0], args[1]);
              case 3:
                return new Target(args[0], args[1], args[2]);
              case 4:
                return new Target(args[0], args[1], args[2], args[3]);
            }
            var $args = [null];
            apply(push, $args, args);
            return new (apply(bind, Target, $args))();
          }
          var proto = newTarget.prototype;
          var instance = create(isObject(proto) ? proto : ObjectPrototype);
          var result = apply(Target, instance, args);
          return isObject(result) ? result : instance;
        }
      });
    }
  });

  // node_modules/core-js/internals/regexp-flags.js
  var require_regexp_flags = __commonJS({
    "node_modules/core-js/internals/regexp-flags.js": function(exports, module) {
      "use strict";
      var anObject = require_an_object();
      module.exports = function() {
        var that = anObject(this);
        var result = "";
        if (that.hasIndices)
          result += "d";
        if (that.global)
          result += "g";
        if (that.ignoreCase)
          result += "i";
        if (that.multiline)
          result += "m";
        if (that.dotAll)
          result += "s";
        if (that.unicode)
          result += "u";
        if (that.unicodeSets)
          result += "v";
        if (that.sticky)
          result += "y";
        return result;
      };
    }
  });

  // node_modules/core-js/internals/regexp-sticky-helpers.js
  var require_regexp_sticky_helpers = __commonJS({
    "node_modules/core-js/internals/regexp-sticky-helpers.js": function(exports, module) {
      "use strict";
      var fails = require_fails();
      var global2 = require_global();
      var $RegExp = global2.RegExp;
      var UNSUPPORTED_Y = fails(function() {
        var re = $RegExp("a", "y");
        re.lastIndex = 2;
        return re.exec("abcd") !== null;
      });
      var MISSED_STICKY = UNSUPPORTED_Y || fails(function() {
        return !$RegExp("a", "y").sticky;
      });
      var BROKEN_CARET = UNSUPPORTED_Y || fails(function() {
        var re = $RegExp("^r", "gy");
        re.lastIndex = 2;
        return re.exec("str") !== null;
      });
      module.exports = {
        BROKEN_CARET: BROKEN_CARET,
        MISSED_STICKY: MISSED_STICKY,
        UNSUPPORTED_Y: UNSUPPORTED_Y
      };
    }
  });

  // node_modules/core-js/internals/regexp-unsupported-dot-all.js
  var require_regexp_unsupported_dot_all = __commonJS({
    "node_modules/core-js/internals/regexp-unsupported-dot-all.js": function(exports, module) {
      "use strict";
      var fails = require_fails();
      var global2 = require_global();
      var $RegExp = global2.RegExp;
      module.exports = fails(function() {
        var re = $RegExp(".", "s");
        return !(re.dotAll && re.test("\n") && re.flags === "s");
      });
    }
  });

  // node_modules/core-js/internals/regexp-unsupported-ncg.js
  var require_regexp_unsupported_ncg = __commonJS({
    "node_modules/core-js/internals/regexp-unsupported-ncg.js": function(exports, module) {
      "use strict";
      var fails = require_fails();
      var global2 = require_global();
      var $RegExp = global2.RegExp;
      module.exports = fails(function() {
        var re = $RegExp("(?<a>b)", "g");
        return re.exec("b").groups.a !== "b" || "b".replace(re, "$<a>c") !== "bc";
      });
    }
  });

  // node_modules/core-js/internals/regexp-exec.js
  var require_regexp_exec = __commonJS({
    "node_modules/core-js/internals/regexp-exec.js": function(exports, module) {
      "use strict";
      var call = require_function_call();
      var uncurryThis = require_function_uncurry_this();
      var toString = require_to_string();
      var regexpFlags = require_regexp_flags();
      var stickyHelpers = require_regexp_sticky_helpers();
      var shared = require_shared();
      var create = require_object_create();
      var getInternalState = require_internal_state().get;
      var UNSUPPORTED_DOT_ALL = require_regexp_unsupported_dot_all();
      var UNSUPPORTED_NCG = require_regexp_unsupported_ncg();
      var nativeReplace = shared("native-string-replace", String.prototype.replace);
      var nativeExec = RegExp.prototype.exec;
      var patchedExec = nativeExec;
      var charAt = uncurryThis("".charAt);
      var indexOf = uncurryThis("".indexOf);
      var replace = uncurryThis("".replace);
      var stringSlice = uncurryThis("".slice);
      var UPDATES_LAST_INDEX_WRONG = function() {
        var re1 = /a/;
        var re2 = /b*/g;
        call(nativeExec, re1, "a");
        call(nativeExec, re2, "a");
        return re1.lastIndex !== 0 || re2.lastIndex !== 0;
      }();
      var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
      var NPCG_INCLUDED = /()??/.exec("")[1] !== void 0;
      var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
      if (PATCH) {
        patchedExec = function exec(string) {
          var re = this;
          var state = getInternalState(re);
          var str = toString(string);
          var raw = state.raw;
          var result, reCopy, lastIndex, match, i, object, group;
          if (raw) {
            raw.lastIndex = re.lastIndex;
            result = call(patchedExec, raw, str);
            re.lastIndex = raw.lastIndex;
            return result;
          }
          var groups = state.groups;
          var sticky = UNSUPPORTED_Y && re.sticky;
          var flags = call(regexpFlags, re);
          var source = re.source;
          var charsAdded = 0;
          var strCopy = str;
          if (sticky) {
            flags = replace(flags, "y", "");
            if (indexOf(flags, "g") === -1) {
              flags += "g";
            }
            strCopy = stringSlice(str, re.lastIndex);
            if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== "\n")) {
              source = "(?: " + source + ")";
              strCopy = " " + strCopy;
              charsAdded++;
            }
            reCopy = new RegExp("^(?:" + source + ")", flags);
          }
          if (NPCG_INCLUDED) {
            reCopy = new RegExp("^" + source + "$(?!\\s)", flags);
          }
          if (UPDATES_LAST_INDEX_WRONG)
            lastIndex = re.lastIndex;
          match = call(nativeExec, sticky ? reCopy : re, strCopy);
          if (sticky) {
            if (match) {
              match.input = stringSlice(match.input, charsAdded);
              match[0] = stringSlice(match[0], charsAdded);
              match.index = re.lastIndex;
              re.lastIndex += match[0].length;
            } else
              re.lastIndex = 0;
          } else if (UPDATES_LAST_INDEX_WRONG && match) {
            re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
          }
          if (NPCG_INCLUDED && match && match.length > 1) {
            call(nativeReplace, match[0], reCopy, function() {
              for (i = 1; i < arguments.length - 2; i++) {
                if (arguments[i] === void 0)
                  match[i] = void 0;
              }
            });
          }
          if (match && groups) {
            match.groups = object = create(null);
            for (i = 0; i < groups.length; i++) {
              group = groups[i];
              object[group[0]] = match[group[1]];
            }
          }
          return match;
        };
      }
      module.exports = patchedExec;
    }
  });

  // node_modules/core-js/modules/es.regexp.exec.js
  var require_es_regexp_exec = __commonJS({
    "node_modules/core-js/modules/es.regexp.exec.js": function() {
      "use strict";
      var $ = require_export();
      var exec = require_regexp_exec();
      $({ target: "RegExp", proto: true, forced: /./.exec !== exec }, {
        exec: exec
      });
    }
  });

  // node_modules/core-js/modules/es.regexp.test.js
  var require_es_regexp_test = __commonJS({
    "node_modules/core-js/modules/es.regexp.test.js": function() {
      "use strict";
      require_es_regexp_exec();
      var $ = require_export();
      var call = require_function_call();
      var isCallable = require_is_callable();
      var anObject = require_an_object();
      var toString = require_to_string();
      var DELEGATES_TO_EXEC = function() {
        var execCalled = false;
        var re = /[ac]/;
        re.exec = function() {
          execCalled = true;
          return /./.exec.apply(this, arguments);
        };
        return re.test("abc") === true && execCalled;
      }();
      var nativeTest = /./.test;
      $({ target: "RegExp", proto: true, forced: !DELEGATES_TO_EXEC }, {
        test: function(S) {
          var R = anObject(this);
          var string = toString(S);
          var exec = R.exec;
          if (!isCallable(exec))
            return call(nativeTest, R, string);
          var result = call(exec, R, string);
          if (result === null)
            return false;
          anObject(result);
          return true;
        }
      });
    }
  });

  // node_modules/core-js/internals/string-multibyte.js
  var require_string_multibyte = __commonJS({
    "node_modules/core-js/internals/string-multibyte.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      var toIntegerOrInfinity = require_to_integer_or_infinity();
      var toString = require_to_string();
      var requireObjectCoercible = require_require_object_coercible();
      var charAt = uncurryThis("".charAt);
      var charCodeAt = uncurryThis("".charCodeAt);
      var stringSlice = uncurryThis("".slice);
      var createMethod = function(CONVERT_TO_STRING) {
        return function($this, pos) {
          var S = toString(requireObjectCoercible($this));
          var position = toIntegerOrInfinity(pos);
          var size = S.length;
          var first, second;
          if (position < 0 || position >= size)
            return CONVERT_TO_STRING ? "" : void 0;
          first = charCodeAt(S, position);
          return first < 55296 || first > 56319 || position + 1 === size || (second = charCodeAt(S, position + 1)) < 56320 || second > 57343 ? CONVERT_TO_STRING ? charAt(S, position) : first : CONVERT_TO_STRING ? stringSlice(S, position, position + 2) : (first - 55296 << 10) + (second - 56320) + 65536;
        };
      };
      module.exports = {
        // `String.prototype.codePointAt` method
        // https://tc39.es/ecma262/#sec-string.prototype.codepointat
        codeAt: createMethod(false),
        // `String.prototype.at` method
        // https://github.com/mathiasbynens/String.prototype.at
        charAt: createMethod(true)
      };
    }
  });

  // node_modules/core-js/modules/es.string.iterator.js
  var require_es_string_iterator = __commonJS({
    "node_modules/core-js/modules/es.string.iterator.js": function() {
      "use strict";
      var charAt = require_string_multibyte().charAt;
      var toString = require_to_string();
      var InternalStateModule = require_internal_state();
      var defineIterator = require_iterator_define();
      var createIterResultObject = require_create_iter_result_object();
      var STRING_ITERATOR = "String Iterator";
      var setInternalState = InternalStateModule.set;
      var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
      defineIterator(String, "String", function(iterated) {
        setInternalState(this, {
          type: STRING_ITERATOR,
          string: toString(iterated),
          index: 0
        });
      }, function next() {
        var state = getInternalState(this);
        var string = state.string;
        var index = state.index;
        var point;
        if (index >= string.length)
          return createIterResultObject(void 0, true);
        point = charAt(string, index);
        state.index += point.length;
        return createIterResultObject(point, false);
      });
    }
  });

  // node_modules/core-js/internals/dom-iterables.js
  var require_dom_iterables = __commonJS({
    "node_modules/core-js/internals/dom-iterables.js": function(exports, module) {
      "use strict";
      module.exports = {
        CSSRuleList: 0,
        CSSStyleDeclaration: 0,
        CSSValueList: 0,
        ClientRectList: 0,
        DOMRectList: 0,
        DOMStringList: 0,
        DOMTokenList: 1,
        DataTransferItemList: 0,
        FileList: 0,
        HTMLAllCollection: 0,
        HTMLCollection: 0,
        HTMLFormElement: 0,
        HTMLSelectElement: 0,
        MediaList: 0,
        MimeTypeArray: 0,
        NamedNodeMap: 0,
        NodeList: 1,
        PaintRequestList: 0,
        Plugin: 0,
        PluginArray: 0,
        SVGLengthList: 0,
        SVGNumberList: 0,
        SVGPathSegList: 0,
        SVGPointList: 0,
        SVGStringList: 0,
        SVGTransformList: 0,
        SourceBufferList: 0,
        StyleSheetList: 0,
        TextTrackCueList: 0,
        TextTrackList: 0,
        TouchList: 0
      };
    }
  });

  // node_modules/core-js/internals/dom-token-list-prototype.js
  var require_dom_token_list_prototype = __commonJS({
    "node_modules/core-js/internals/dom-token-list-prototype.js": function(exports, module) {
      "use strict";
      var documentCreateElement = require_document_create_element();
      var classList = documentCreateElement("span").classList;
      var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
      module.exports = DOMTokenListPrototype === Object.prototype ? void 0 : DOMTokenListPrototype;
    }
  });

  // node_modules/core-js/modules/web.dom-collections.for-each.js
  var require_web_dom_collections_for_each = __commonJS({
    "node_modules/core-js/modules/web.dom-collections.for-each.js": function() {
      "use strict";
      var global2 = require_global();
      var DOMIterables = require_dom_iterables();
      var DOMTokenListPrototype = require_dom_token_list_prototype();
      var forEach = require_array_for_each();
      var createNonEnumerableProperty = require_create_non_enumerable_property();
      var handlePrototype = function(CollectionPrototype) {
        if (CollectionPrototype && CollectionPrototype.forEach !== forEach)
          try {
            createNonEnumerableProperty(CollectionPrototype, "forEach", forEach);
          } catch (error) {
            CollectionPrototype.forEach = forEach;
          }
      };
      for (COLLECTION_NAME in DOMIterables) {
        if (DOMIterables[COLLECTION_NAME]) {
          handlePrototype(global2[COLLECTION_NAME] && global2[COLLECTION_NAME].prototype);
        }
      }
      var COLLECTION_NAME;
      handlePrototype(DOMTokenListPrototype);
    }
  });

  // node_modules/core-js/modules/web.dom-collections.iterator.js
  var require_web_dom_collections_iterator = __commonJS({
    "node_modules/core-js/modules/web.dom-collections.iterator.js": function() {
      "use strict";
      var global2 = require_global();
      var DOMIterables = require_dom_iterables();
      var DOMTokenListPrototype = require_dom_token_list_prototype();
      var ArrayIteratorMethods = require_es_array_iterator();
      var createNonEnumerableProperty = require_create_non_enumerable_property();
      var setToStringTag = require_set_to_string_tag();
      var wellKnownSymbol = require_well_known_symbol();
      var ITERATOR = wellKnownSymbol("iterator");
      var ArrayValues = ArrayIteratorMethods.values;
      var handlePrototype = function(CollectionPrototype, COLLECTION_NAME2) {
        if (CollectionPrototype) {
          if (CollectionPrototype[ITERATOR] !== ArrayValues)
            try {
              createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
            } catch (error) {
              CollectionPrototype[ITERATOR] = ArrayValues;
            }
          setToStringTag(CollectionPrototype, COLLECTION_NAME2, true);
          if (DOMIterables[COLLECTION_NAME2])
            for (var METHOD_NAME in ArrayIteratorMethods) {
              if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME])
                try {
                  createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
                } catch (error) {
                  CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
                }
            }
        }
      };
      for (COLLECTION_NAME in DOMIterables) {
        handlePrototype(global2[COLLECTION_NAME] && global2[COLLECTION_NAME].prototype, COLLECTION_NAME);
      }
      var COLLECTION_NAME;
      handlePrototype(DOMTokenListPrototype, "DOMTokenList");
    }
  });

  // node_modules/core-js/internals/object-get-own-property-names-external.js
  var require_object_get_own_property_names_external = __commonJS({
    "node_modules/core-js/internals/object-get-own-property-names-external.js": function(exports, module) {
      "use strict";
      var classof = require_classof_raw();
      var toIndexedObject = require_to_indexed_object();
      var $getOwnPropertyNames = require_object_get_own_property_names().f;
      var arraySlice = require_array_slice();
      var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
      var getWindowNames = function(it) {
        try {
          return $getOwnPropertyNames(it);
        } catch (error) {
          return arraySlice(windowNames);
        }
      };
      module.exports.f = function getOwnPropertyNames(it) {
        return windowNames && classof(it) === "Window" ? getWindowNames(it) : $getOwnPropertyNames(toIndexedObject(it));
      };
    }
  });

  // node_modules/core-js/modules/es.symbol.constructor.js
  var require_es_symbol_constructor = __commonJS({
    "node_modules/core-js/modules/es.symbol.constructor.js": function() {
      "use strict";
      var $ = require_export();
      var global2 = require_global();
      var call = require_function_call();
      var uncurryThis = require_function_uncurry_this();
      var IS_PURE = require_is_pure();
      var DESCRIPTORS = require_descriptors();
      var NATIVE_SYMBOL = require_symbol_constructor_detection();
      var fails = require_fails();
      var hasOwn = require_has_own_property();
      var isPrototypeOf = require_object_is_prototype_of();
      var anObject = require_an_object();
      var toIndexedObject = require_to_indexed_object();
      var toPropertyKey = require_to_property_key();
      var $toString = require_to_string();
      var createPropertyDescriptor = require_create_property_descriptor();
      var nativeObjectCreate = require_object_create();
      var objectKeys = require_object_keys();
      var getOwnPropertyNamesModule = require_object_get_own_property_names();
      var getOwnPropertyNamesExternal = require_object_get_own_property_names_external();
      var getOwnPropertySymbolsModule = require_object_get_own_property_symbols();
      var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
      var definePropertyModule = require_object_define_property();
      var definePropertiesModule = require_object_define_properties();
      var propertyIsEnumerableModule = require_object_property_is_enumerable();
      var defineBuiltIn = require_define_built_in();
      var defineBuiltInAccessor = require_define_built_in_accessor();
      var shared = require_shared();
      var sharedKey = require_shared_key();
      var hiddenKeys = require_hidden_keys();
      var uid = require_uid();
      var wellKnownSymbol = require_well_known_symbol();
      var wrappedWellKnownSymbolModule = require_well_known_symbol_wrapped();
      var defineWellKnownSymbol = require_well_known_symbol_define();
      var defineSymbolToPrimitive = require_symbol_define_to_primitive();
      var setToStringTag = require_set_to_string_tag();
      var InternalStateModule = require_internal_state();
      var $forEach = require_array_iteration().forEach;
      var HIDDEN = sharedKey("hidden");
      var SYMBOL = "Symbol";
      var PROTOTYPE = "prototype";
      var setInternalState = InternalStateModule.set;
      var getInternalState = InternalStateModule.getterFor(SYMBOL);
      var ObjectPrototype = Object[PROTOTYPE];
      var $Symbol = global2.Symbol;
      var SymbolPrototype = $Symbol && $Symbol[PROTOTYPE];
      var RangeError = global2.RangeError;
      var TypeError2 = global2.TypeError;
      var QObject = global2.QObject;
      var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
      var nativeDefineProperty = definePropertyModule.f;
      var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
      var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
      var push = uncurryThis([].push);
      var AllSymbols = shared("symbols");
      var ObjectPrototypeSymbols = shared("op-symbols");
      var WellKnownSymbolsStore = shared("wks");
      var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
      var fallbackDefineProperty = function(O, P, Attributes) {
        var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
        if (ObjectPrototypeDescriptor)
          delete ObjectPrototype[P];
        nativeDefineProperty(O, P, Attributes);
        if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
          nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
        }
      };
      var setSymbolDescriptor = DESCRIPTORS && fails(function() {
        return nativeObjectCreate(nativeDefineProperty({}, "a", {
          get: function() {
            return nativeDefineProperty(this, "a", { value: 7 }).a;
          }
        })).a !== 7;
      }) ? fallbackDefineProperty : nativeDefineProperty;
      var wrap = function(tag, description) {
        var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype);
        setInternalState(symbol, {
          type: SYMBOL,
          tag: tag,
          description: description
        });
        if (!DESCRIPTORS)
          symbol.description = description;
        return symbol;
      };
      var $defineProperty = function defineProperty(O, P, Attributes) {
        if (O === ObjectPrototype)
          $defineProperty(ObjectPrototypeSymbols, P, Attributes);
        anObject(O);
        var key = toPropertyKey(P);
        anObject(Attributes);
        if (hasOwn(AllSymbols, key)) {
          if (!Attributes.enumerable) {
            if (!hasOwn(O, HIDDEN))
              nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, nativeObjectCreate(null)));
            O[HIDDEN][key] = true;
          } else {
            if (hasOwn(O, HIDDEN) && O[HIDDEN][key])
              O[HIDDEN][key] = false;
            Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
          }
          return setSymbolDescriptor(O, key, Attributes);
        }
        return nativeDefineProperty(O, key, Attributes);
      };
      var $defineProperties = function defineProperties(O, Properties) {
        anObject(O);
        var properties = toIndexedObject(Properties);
        var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
        $forEach(keys, function(key) {
          if (!DESCRIPTORS || call($propertyIsEnumerable, properties, key))
            $defineProperty(O, key, properties[key]);
        });
        return O;
      };
      var $create = function create(O, Properties) {
        return Properties === void 0 ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
      };
      var $propertyIsEnumerable = function propertyIsEnumerable(V) {
        var P = toPropertyKey(V);
        var enumerable = call(nativePropertyIsEnumerable, this, P);
        if (this === ObjectPrototype && hasOwn(AllSymbols, P) && !hasOwn(ObjectPrototypeSymbols, P))
          return false;
        return enumerable || !hasOwn(this, P) || !hasOwn(AllSymbols, P) || hasOwn(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
      };
      var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
        var it = toIndexedObject(O);
        var key = toPropertyKey(P);
        if (it === ObjectPrototype && hasOwn(AllSymbols, key) && !hasOwn(ObjectPrototypeSymbols, key))
          return;
        var descriptor = nativeGetOwnPropertyDescriptor(it, key);
        if (descriptor && hasOwn(AllSymbols, key) && !(hasOwn(it, HIDDEN) && it[HIDDEN][key])) {
          descriptor.enumerable = true;
        }
        return descriptor;
      };
      var $getOwnPropertyNames = function getOwnPropertyNames(O) {
        var names = nativeGetOwnPropertyNames(toIndexedObject(O));
        var result = [];
        $forEach(names, function(key) {
          if (!hasOwn(AllSymbols, key) && !hasOwn(hiddenKeys, key))
            push(result, key);
        });
        return result;
      };
      var $getOwnPropertySymbols = function(O) {
        var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
        var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
        var result = [];
        $forEach(names, function(key) {
          if (hasOwn(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn(ObjectPrototype, key))) {
            push(result, AllSymbols[key]);
          }
        });
        return result;
      };
      if (!NATIVE_SYMBOL) {
        $Symbol = function Symbol2() {
          if (isPrototypeOf(SymbolPrototype, this))
            throw new TypeError2("Symbol is not a constructor");
          var description = !arguments.length || arguments[0] === void 0 ? void 0 : $toString(arguments[0]);
          var tag = uid(description);
          var setter = function(value) {
            var $this = this === void 0 ? global2 : this;
            if ($this === ObjectPrototype)
              call(setter, ObjectPrototypeSymbols, value);
            if (hasOwn($this, HIDDEN) && hasOwn($this[HIDDEN], tag))
              $this[HIDDEN][tag] = false;
            var descriptor = createPropertyDescriptor(1, value);
            try {
              setSymbolDescriptor($this, tag, descriptor);
            } catch (error) {
              if (!(error instanceof RangeError))
                throw error;
              fallbackDefineProperty($this, tag, descriptor);
            }
          };
          if (DESCRIPTORS && USE_SETTER)
            setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
          return wrap(tag, description);
        };
        SymbolPrototype = $Symbol[PROTOTYPE];
        defineBuiltIn(SymbolPrototype, "toString", function toString() {
          return getInternalState(this).tag;
        });
        defineBuiltIn($Symbol, "withoutSetter", function(description) {
          return wrap(uid(description), description);
        });
        propertyIsEnumerableModule.f = $propertyIsEnumerable;
        definePropertyModule.f = $defineProperty;
        definePropertiesModule.f = $defineProperties;
        getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
        getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
        getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
        wrappedWellKnownSymbolModule.f = function(name) {
          return wrap(wellKnownSymbol(name), name);
        };
        if (DESCRIPTORS) {
          defineBuiltInAccessor(SymbolPrototype, "description", {
            configurable: true,
            get: function description() {
              return getInternalState(this).description;
            }
          });
          if (!IS_PURE) {
            defineBuiltIn(ObjectPrototype, "propertyIsEnumerable", $propertyIsEnumerable, { unsafe: true });
          }
        }
      }
      $({ global: true, constructor: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
        Symbol: $Symbol
      });
      $forEach(objectKeys(WellKnownSymbolsStore), function(name) {
        defineWellKnownSymbol(name);
      });
      $({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
        useSetter: function() {
          USE_SETTER = true;
        },
        useSimple: function() {
          USE_SETTER = false;
        }
      });
      $({ target: "Object", stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
        // `Object.create` method
        // https://tc39.es/ecma262/#sec-object.create
        create: $create,
        // `Object.defineProperty` method
        // https://tc39.es/ecma262/#sec-object.defineproperty
        defineProperty: $defineProperty,
        // `Object.defineProperties` method
        // https://tc39.es/ecma262/#sec-object.defineproperties
        defineProperties: $defineProperties,
        // `Object.getOwnPropertyDescriptor` method
        // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
        getOwnPropertyDescriptor: $getOwnPropertyDescriptor
      });
      $({ target: "Object", stat: true, forced: !NATIVE_SYMBOL }, {
        // `Object.getOwnPropertyNames` method
        // https://tc39.es/ecma262/#sec-object.getownpropertynames
        getOwnPropertyNames: $getOwnPropertyNames
      });
      defineSymbolToPrimitive();
      setToStringTag($Symbol, SYMBOL);
      hiddenKeys[HIDDEN] = true;
    }
  });

  // node_modules/core-js/internals/symbol-registry-detection.js
  var require_symbol_registry_detection = __commonJS({
    "node_modules/core-js/internals/symbol-registry-detection.js": function(exports, module) {
      "use strict";
      var NATIVE_SYMBOL = require_symbol_constructor_detection();
      module.exports = NATIVE_SYMBOL && !!Symbol["for"] && !!Symbol.keyFor;
    }
  });

  // node_modules/core-js/modules/es.symbol.for.js
  var require_es_symbol_for = __commonJS({
    "node_modules/core-js/modules/es.symbol.for.js": function() {
      "use strict";
      var $ = require_export();
      var getBuiltIn = require_get_built_in();
      var hasOwn = require_has_own_property();
      var toString = require_to_string();
      var shared = require_shared();
      var NATIVE_SYMBOL_REGISTRY = require_symbol_registry_detection();
      var StringToSymbolRegistry = shared("string-to-symbol-registry");
      var SymbolToStringRegistry = shared("symbol-to-string-registry");
      $({ target: "Symbol", stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {
        "for": function(key) {
          var string = toString(key);
          if (hasOwn(StringToSymbolRegistry, string))
            return StringToSymbolRegistry[string];
          var symbol = getBuiltIn("Symbol")(string);
          StringToSymbolRegistry[string] = symbol;
          SymbolToStringRegistry[symbol] = string;
          return symbol;
        }
      });
    }
  });

  // node_modules/core-js/modules/es.symbol.key-for.js
  var require_es_symbol_key_for = __commonJS({
    "node_modules/core-js/modules/es.symbol.key-for.js": function() {
      "use strict";
      var $ = require_export();
      var hasOwn = require_has_own_property();
      var isSymbol = require_is_symbol();
      var tryToString = require_try_to_string();
      var shared = require_shared();
      var NATIVE_SYMBOL_REGISTRY = require_symbol_registry_detection();
      var SymbolToStringRegistry = shared("symbol-to-string-registry");
      $({ target: "Symbol", stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {
        keyFor: function keyFor(sym) {
          if (!isSymbol(sym))
            throw new TypeError(tryToString(sym) + " is not a symbol");
          if (hasOwn(SymbolToStringRegistry, sym))
            return SymbolToStringRegistry[sym];
        }
      });
    }
  });

  // node_modules/core-js/internals/get-json-replacer-function.js
  var require_get_json_replacer_function = __commonJS({
    "node_modules/core-js/internals/get-json-replacer-function.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      var isArray = require_is_array();
      var isCallable = require_is_callable();
      var classof = require_classof_raw();
      var toString = require_to_string();
      var push = uncurryThis([].push);
      module.exports = function(replacer) {
        if (isCallable(replacer))
          return replacer;
        if (!isArray(replacer))
          return;
        var rawLength = replacer.length;
        var keys = [];
        for (var i = 0; i < rawLength; i++) {
          var element = replacer[i];
          if (typeof element == "string")
            push(keys, element);
          else if (typeof element == "number" || classof(element) === "Number" || classof(element) === "String")
            push(keys, toString(element));
        }
        var keysLength = keys.length;
        var root = true;
        return function(key, value) {
          if (root) {
            root = false;
            return value;
          }
          if (isArray(this))
            return value;
          for (var j = 0; j < keysLength; j++)
            if (keys[j] === key)
              return value;
        };
      };
    }
  });

  // node_modules/core-js/modules/es.json.stringify.js
  var require_es_json_stringify = __commonJS({
    "node_modules/core-js/modules/es.json.stringify.js": function() {
      "use strict";
      var $ = require_export();
      var getBuiltIn = require_get_built_in();
      var apply = require_function_apply();
      var call = require_function_call();
      var uncurryThis = require_function_uncurry_this();
      var fails = require_fails();
      var isCallable = require_is_callable();
      var isSymbol = require_is_symbol();
      var arraySlice = require_array_slice();
      var getReplacerFunction = require_get_json_replacer_function();
      var NATIVE_SYMBOL = require_symbol_constructor_detection();
      var $String = String;
      var $stringify = getBuiltIn("JSON", "stringify");
      var exec = uncurryThis(/./.exec);
      var charAt = uncurryThis("".charAt);
      var charCodeAt = uncurryThis("".charCodeAt);
      var replace = uncurryThis("".replace);
      var numberToString = uncurryThis(1 .toString);
      var tester = /[\uD800-\uDFFF]/g;
      var low = /^[\uD800-\uDBFF]$/;
      var hi = /^[\uDC00-\uDFFF]$/;
      var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function() {
        var symbol = getBuiltIn("Symbol")("stringify detection");
        return $stringify([symbol]) !== "[null]" || $stringify({ a: symbol }) !== "{}" || $stringify(Object(symbol)) !== "{}";
      });
      var ILL_FORMED_UNICODE = fails(function() {
        return $stringify("\uDF06\uD834") !== '"\\udf06\\ud834"' || $stringify("\uDEAD") !== '"\\udead"';
      });
      var stringifyWithSymbolsFix = function(it, replacer) {
        var args = arraySlice(arguments);
        var $replacer = getReplacerFunction(replacer);
        if (!isCallable($replacer) && (it === void 0 || isSymbol(it)))
          return;
        args[1] = function(key, value) {
          if (isCallable($replacer))
            value = call($replacer, this, $String(key), value);
          if (!isSymbol(value))
            return value;
        };
        return apply($stringify, null, args);
      };
      var fixIllFormed = function(match, offset, string) {
        var prev = charAt(string, offset - 1);
        var next = charAt(string, offset + 1);
        if (exec(low, match) && !exec(hi, next) || exec(hi, match) && !exec(low, prev)) {
          return "\\u" + numberToString(charCodeAt(match, 0), 16);
        }
        return match;
      };
      if ($stringify) {
        $({ target: "JSON", stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
          // eslint-disable-next-line no-unused-vars -- required for `.length`
          stringify: function stringify(it, replacer, space) {
            var args = arraySlice(arguments);
            var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
            return ILL_FORMED_UNICODE && typeof result == "string" ? replace(result, tester, fixIllFormed) : result;
          }
        });
      }
    }
  });

  // node_modules/core-js/modules/es.object.get-own-property-symbols.js
  var require_es_object_get_own_property_symbols = __commonJS({
    "node_modules/core-js/modules/es.object.get-own-property-symbols.js": function() {
      "use strict";
      var $ = require_export();
      var NATIVE_SYMBOL = require_symbol_constructor_detection();
      var fails = require_fails();
      var getOwnPropertySymbolsModule = require_object_get_own_property_symbols();
      var toObject = require_to_object();
      var FORCED = !NATIVE_SYMBOL || fails(function() {
        getOwnPropertySymbolsModule.f(1);
      });
      $({ target: "Object", stat: true, forced: FORCED }, {
        getOwnPropertySymbols: function getOwnPropertySymbols(it) {
          var $getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
          return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject(it)) : [];
        }
      });
    }
  });

  // node_modules/core-js/modules/es.symbol.js
  var require_es_symbol = __commonJS({
    "node_modules/core-js/modules/es.symbol.js": function() {
      "use strict";
      require_es_symbol_constructor();
      require_es_symbol_for();
      require_es_symbol_key_for();
      require_es_json_stringify();
      require_es_object_get_own_property_symbols();
    }
  });

  // node_modules/core-js/modules/es.symbol.description.js
  var require_es_symbol_description = __commonJS({
    "node_modules/core-js/modules/es.symbol.description.js": function() {
      "use strict";
      var $ = require_export();
      var DESCRIPTORS = require_descriptors();
      var global2 = require_global();
      var uncurryThis = require_function_uncurry_this();
      var hasOwn = require_has_own_property();
      var isCallable = require_is_callable();
      var isPrototypeOf = require_object_is_prototype_of();
      var toString = require_to_string();
      var defineBuiltInAccessor = require_define_built_in_accessor();
      var copyConstructorProperties = require_copy_constructor_properties();
      var NativeSymbol = global2.Symbol;
      var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
      if (DESCRIPTORS && isCallable(NativeSymbol) && (!("description" in SymbolPrototype) || // Safari 12 bug
      NativeSymbol().description !== void 0)) {
        EmptyStringDescriptionStore = {};
        SymbolWrapper = function Symbol2() {
          var description = arguments.length < 1 || arguments[0] === void 0 ? void 0 : toString(arguments[0]);
          var result = isPrototypeOf(SymbolPrototype, this) ? new NativeSymbol(description) : description === void 0 ? NativeSymbol() : NativeSymbol(description);
          if (description === "")
            EmptyStringDescriptionStore[result] = true;
          return result;
        };
        copyConstructorProperties(SymbolWrapper, NativeSymbol);
        SymbolWrapper.prototype = SymbolPrototype;
        SymbolPrototype.constructor = SymbolWrapper;
        NATIVE_SYMBOL = String(NativeSymbol("description detection")) === "Symbol(description detection)";
        thisSymbolValue = uncurryThis(SymbolPrototype.valueOf);
        symbolDescriptiveString = uncurryThis(SymbolPrototype.toString);
        regexp = /^Symbol\((.*)\)[^)]+$/;
        replace = uncurryThis("".replace);
        stringSlice = uncurryThis("".slice);
        defineBuiltInAccessor(SymbolPrototype, "description", {
          configurable: true,
          get: function description() {
            var symbol = thisSymbolValue(this);
            if (hasOwn(EmptyStringDescriptionStore, symbol))
              return "";
            var string = symbolDescriptiveString(symbol);
            var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, "$1");
            return desc === "" ? void 0 : desc;
          }
        });
        $({ global: true, constructor: true, forced: true }, {
          Symbol: SymbolWrapper
        });
      }
      var EmptyStringDescriptionStore;
      var SymbolWrapper;
      var NATIVE_SYMBOL;
      var thisSymbolValue;
      var symbolDescriptiveString;
      var regexp;
      var replace;
      var stringSlice;
    }
  });

  // node_modules/core-js/internals/proxy-accessor.js
  var require_proxy_accessor = __commonJS({
    "node_modules/core-js/internals/proxy-accessor.js": function(exports, module) {
      "use strict";
      var defineProperty = require_object_define_property().f;
      module.exports = function(Target, Source, key) {
        key in Target || defineProperty(Target, key, {
          configurable: true,
          get: function() {
            return Source[key];
          },
          set: function(it) {
            Source[key] = it;
          }
        });
      };
    }
  });

  // node_modules/core-js/internals/normalize-string-argument.js
  var require_normalize_string_argument = __commonJS({
    "node_modules/core-js/internals/normalize-string-argument.js": function(exports, module) {
      "use strict";
      var toString = require_to_string();
      module.exports = function(argument, $default) {
        return argument === void 0 ? arguments.length < 2 ? "" : $default : toString(argument);
      };
    }
  });

  // node_modules/core-js/internals/install-error-cause.js
  var require_install_error_cause = __commonJS({
    "node_modules/core-js/internals/install-error-cause.js": function(exports, module) {
      "use strict";
      var isObject = require_is_object();
      var createNonEnumerableProperty = require_create_non_enumerable_property();
      module.exports = function(O, options) {
        if (isObject(options) && "cause" in options) {
          createNonEnumerableProperty(O, "cause", options.cause);
        }
      };
    }
  });

  // node_modules/core-js/internals/error-stack-clear.js
  var require_error_stack_clear = __commonJS({
    "node_modules/core-js/internals/error-stack-clear.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      var $Error = Error;
      var replace = uncurryThis("".replace);
      var TEST = function(arg) {
        return String(new $Error(arg).stack);
      }("zxcasd");
      var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
      var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
      module.exports = function(stack, dropEntries) {
        if (IS_V8_OR_CHAKRA_STACK && typeof stack == "string" && !$Error.prepareStackTrace) {
          while (dropEntries--)
            stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, "");
        }
        return stack;
      };
    }
  });

  // node_modules/core-js/internals/error-stack-installable.js
  var require_error_stack_installable = __commonJS({
    "node_modules/core-js/internals/error-stack-installable.js": function(exports, module) {
      "use strict";
      var fails = require_fails();
      var createPropertyDescriptor = require_create_property_descriptor();
      module.exports = !fails(function() {
        var error = new Error("a");
        if (!("stack" in error))
          return true;
        Object.defineProperty(error, "stack", createPropertyDescriptor(1, 7));
        return error.stack !== 7;
      });
    }
  });

  // node_modules/core-js/internals/error-stack-install.js
  var require_error_stack_install = __commonJS({
    "node_modules/core-js/internals/error-stack-install.js": function(exports, module) {
      "use strict";
      var createNonEnumerableProperty = require_create_non_enumerable_property();
      var clearErrorStack = require_error_stack_clear();
      var ERROR_STACK_INSTALLABLE = require_error_stack_installable();
      var captureStackTrace = Error.captureStackTrace;
      module.exports = function(error, C, stack, dropEntries) {
        if (ERROR_STACK_INSTALLABLE) {
          if (captureStackTrace)
            captureStackTrace(error, C);
          else
            createNonEnumerableProperty(error, "stack", clearErrorStack(stack, dropEntries));
        }
      };
    }
  });

  // node_modules/core-js/internals/wrap-error-constructor-with-cause.js
  var require_wrap_error_constructor_with_cause = __commonJS({
    "node_modules/core-js/internals/wrap-error-constructor-with-cause.js": function(exports, module) {
      "use strict";
      var getBuiltIn = require_get_built_in();
      var hasOwn = require_has_own_property();
      var createNonEnumerableProperty = require_create_non_enumerable_property();
      var isPrototypeOf = require_object_is_prototype_of();
      var setPrototypeOf = require_object_set_prototype_of();
      var copyConstructorProperties = require_copy_constructor_properties();
      var proxyAccessor = require_proxy_accessor();
      var inheritIfRequired = require_inherit_if_required();
      var normalizeStringArgument = require_normalize_string_argument();
      var installErrorCause = require_install_error_cause();
      var installErrorStack = require_error_stack_install();
      var DESCRIPTORS = require_descriptors();
      var IS_PURE = require_is_pure();
      module.exports = function(FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
        var STACK_TRACE_LIMIT = "stackTraceLimit";
        var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
        var path = FULL_NAME.split(".");
        var ERROR_NAME = path[path.length - 1];
        var OriginalError = getBuiltIn.apply(null, path);
        if (!OriginalError)
          return;
        var OriginalErrorPrototype = OriginalError.prototype;
        if (!IS_PURE && hasOwn(OriginalErrorPrototype, "cause"))
          delete OriginalErrorPrototype.cause;
        if (!FORCED)
          return OriginalError;
        var BaseError = getBuiltIn("Error");
        var WrappedError = wrapper(function(a, b) {
          var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, void 0);
          var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
          if (message !== void 0)
            createNonEnumerableProperty(result, "message", message);
          installErrorStack(result, WrappedError, result.stack, 2);
          if (this && isPrototypeOf(OriginalErrorPrototype, this))
            inheritIfRequired(result, this, WrappedError);
          if (arguments.length > OPTIONS_POSITION)
            installErrorCause(result, arguments[OPTIONS_POSITION]);
          return result;
        });
        WrappedError.prototype = OriginalErrorPrototype;
        if (ERROR_NAME !== "Error") {
          if (setPrototypeOf)
            setPrototypeOf(WrappedError, BaseError);
          else
            copyConstructorProperties(WrappedError, BaseError, { name: true });
        } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
          proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
          proxyAccessor(WrappedError, OriginalError, "prepareStackTrace");
        }
        copyConstructorProperties(WrappedError, OriginalError);
        if (!IS_PURE)
          try {
            if (OriginalErrorPrototype.name !== ERROR_NAME) {
              createNonEnumerableProperty(OriginalErrorPrototype, "name", ERROR_NAME);
            }
            OriginalErrorPrototype.constructor = WrappedError;
          } catch (error) {
          }
        return WrappedError;
      };
    }
  });

  // node_modules/core-js/modules/es.error.cause.js
  var require_es_error_cause = __commonJS({
    "node_modules/core-js/modules/es.error.cause.js": function() {
      "use strict";
      var $ = require_export();
      var global2 = require_global();
      var apply = require_function_apply();
      var wrapErrorConstructorWithCause = require_wrap_error_constructor_with_cause();
      var WEB_ASSEMBLY = "WebAssembly";
      var WebAssembly = global2[WEB_ASSEMBLY];
      var FORCED = new Error("e", { cause: 7 }).cause !== 7;
      var exportGlobalErrorCauseWrapper = function(ERROR_NAME, wrapper) {
        var O = {};
        O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
        $({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
      };
      var exportWebAssemblyErrorCauseWrapper = function(ERROR_NAME, wrapper) {
        if (WebAssembly && WebAssembly[ERROR_NAME]) {
          var O = {};
          O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + "." + ERROR_NAME, wrapper, FORCED);
          $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
        }
      };
      exportGlobalErrorCauseWrapper("Error", function(init) {
        return function Error2(message) {
          return apply(init, this, arguments);
        };
      });
      exportGlobalErrorCauseWrapper("EvalError", function(init) {
        return function EvalError(message) {
          return apply(init, this, arguments);
        };
      });
      exportGlobalErrorCauseWrapper("RangeError", function(init) {
        return function RangeError(message) {
          return apply(init, this, arguments);
        };
      });
      exportGlobalErrorCauseWrapper("ReferenceError", function(init) {
        return function ReferenceError2(message) {
          return apply(init, this, arguments);
        };
      });
      exportGlobalErrorCauseWrapper("SyntaxError", function(init) {
        return function SyntaxError(message) {
          return apply(init, this, arguments);
        };
      });
      exportGlobalErrorCauseWrapper("TypeError", function(init) {
        return function TypeError2(message) {
          return apply(init, this, arguments);
        };
      });
      exportGlobalErrorCauseWrapper("URIError", function(init) {
        return function URIError(message) {
          return apply(init, this, arguments);
        };
      });
      exportWebAssemblyErrorCauseWrapper("CompileError", function(init) {
        return function CompileError(message) {
          return apply(init, this, arguments);
        };
      });
      exportWebAssemblyErrorCauseWrapper("LinkError", function(init) {
        return function LinkError(message) {
          return apply(init, this, arguments);
        };
      });
      exportWebAssemblyErrorCauseWrapper("RuntimeError", function(init) {
        return function RuntimeError(message) {
          return apply(init, this, arguments);
        };
      });
    }
  });

  // node_modules/core-js/internals/error-to-string.js
  var require_error_to_string = __commonJS({
    "node_modules/core-js/internals/error-to-string.js": function(exports, module) {
      "use strict";
      var DESCRIPTORS = require_descriptors();
      var fails = require_fails();
      var anObject = require_an_object();
      var normalizeStringArgument = require_normalize_string_argument();
      var nativeErrorToString = Error.prototype.toString;
      var INCORRECT_TO_STRING = fails(function() {
        if (DESCRIPTORS) {
          var object = Object.create(Object.defineProperty({}, "name", { get: function() {
            return this === object;
          } }));
          if (nativeErrorToString.call(object) !== "true")
            return true;
        }
        return nativeErrorToString.call({ message: 1, name: 2 }) !== "2: 1" || nativeErrorToString.call({}) !== "Error";
      });
      module.exports = INCORRECT_TO_STRING ? function toString() {
        var O = anObject(this);
        var name = normalizeStringArgument(O.name, "Error");
        var message = normalizeStringArgument(O.message);
        return !name ? message : !message ? name : name + ": " + message;
      } : nativeErrorToString;
    }
  });

  // node_modules/core-js/modules/es.error.to-string.js
  var require_es_error_to_string = __commonJS({
    "node_modules/core-js/modules/es.error.to-string.js": function() {
      "use strict";
      var defineBuiltIn = require_define_built_in();
      var errorToString = require_error_to_string();
      var ErrorPrototype = Error.prototype;
      if (ErrorPrototype.toString !== errorToString) {
        defineBuiltIn(ErrorPrototype, "toString", errorToString);
      }
    }
  });

  // node_modules/core-js/internals/does-not-exceed-safe-integer.js
  var require_does_not_exceed_safe_integer = __commonJS({
    "node_modules/core-js/internals/does-not-exceed-safe-integer.js": function(exports, module) {
      "use strict";
      var $TypeError = TypeError;
      var MAX_SAFE_INTEGER = 9007199254740991;
      module.exports = function(it) {
        if (it > MAX_SAFE_INTEGER)
          throw $TypeError("Maximum allowed index exceeded");
        return it;
      };
    }
  });

  // node_modules/core-js/internals/array-method-has-species-support.js
  var require_array_method_has_species_support = __commonJS({
    "node_modules/core-js/internals/array-method-has-species-support.js": function(exports, module) {
      "use strict";
      var fails = require_fails();
      var wellKnownSymbol = require_well_known_symbol();
      var V8_VERSION = require_engine_v8_version();
      var SPECIES = wellKnownSymbol("species");
      module.exports = function(METHOD_NAME) {
        return V8_VERSION >= 51 || !fails(function() {
          var array = [];
          var constructor = array.constructor = {};
          constructor[SPECIES] = function() {
            return { foo: 1 };
          };
          return array[METHOD_NAME](Boolean).foo !== 1;
        });
      };
    }
  });

  // node_modules/core-js/modules/es.array.concat.js
  var require_es_array_concat = __commonJS({
    "node_modules/core-js/modules/es.array.concat.js": function() {
      "use strict";
      var $ = require_export();
      var fails = require_fails();
      var isArray = require_is_array();
      var isObject = require_is_object();
      var toObject = require_to_object();
      var lengthOfArrayLike = require_length_of_array_like();
      var doesNotExceedSafeInteger = require_does_not_exceed_safe_integer();
      var createProperty = require_create_property();
      var arraySpeciesCreate = require_array_species_create();
      var arrayMethodHasSpeciesSupport = require_array_method_has_species_support();
      var wellKnownSymbol = require_well_known_symbol();
      var V8_VERSION = require_engine_v8_version();
      var IS_CONCAT_SPREADABLE = wellKnownSymbol("isConcatSpreadable");
      var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function() {
        var array = [];
        array[IS_CONCAT_SPREADABLE] = false;
        return array.concat()[0] !== array;
      });
      var isConcatSpreadable = function(O) {
        if (!isObject(O))
          return false;
        var spreadable = O[IS_CONCAT_SPREADABLE];
        return spreadable !== void 0 ? !!spreadable : isArray(O);
      };
      var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport("concat");
      $({ target: "Array", proto: true, arity: 1, forced: FORCED }, {
        // eslint-disable-next-line no-unused-vars -- required for `.length`
        concat: function concat(arg) {
          var O = toObject(this);
          var A = arraySpeciesCreate(O, 0);
          var n = 0;
          var i, k, length, len, E;
          for (i = -1, length = arguments.length; i < length; i++) {
            E = i === -1 ? O : arguments[i];
            if (isConcatSpreadable(E)) {
              len = lengthOfArrayLike(E);
              doesNotExceedSafeInteger(n + len);
              for (k = 0; k < len; k++, n++)
                if (k in E)
                  createProperty(A, n, E[k]);
            } else {
              doesNotExceedSafeInteger(n + 1);
              createProperty(A, n++, E);
            }
          }
          A.length = n;
          return A;
        }
      });
    }
  });

  // node_modules/core-js/modules/es.array.filter.js
  var require_es_array_filter = __commonJS({
    "node_modules/core-js/modules/es.array.filter.js": function() {
      "use strict";
      var $ = require_export();
      var $filter = require_array_iteration().filter;
      var arrayMethodHasSpeciesSupport = require_array_method_has_species_support();
      var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("filter");
      $({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, {
        filter: function filter(callbackfn) {
          return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
        }
      });
    }
  });

  // node_modules/core-js/modules/es.array.includes.js
  var require_es_array_includes = __commonJS({
    "node_modules/core-js/modules/es.array.includes.js": function() {
      "use strict";
      var $ = require_export();
      var $includes = require_array_includes().includes;
      var fails = require_fails();
      var addToUnscopables = require_add_to_unscopables();
      var BROKEN_ON_SPARSE = fails(function() {
        return !Array(1).includes();
      });
      $({ target: "Array", proto: true, forced: BROKEN_ON_SPARSE }, {
        includes: function includes(el) {
          return $includes(this, el, arguments.length > 1 ? arguments[1] : void 0);
        }
      });
      addToUnscopables("includes");
    }
  });

  // node_modules/core-js/modules/es.array.index-of.js
  var require_es_array_index_of = __commonJS({
    "node_modules/core-js/modules/es.array.index-of.js": function() {
      "use strict";
      var $ = require_export();
      var uncurryThis = require_function_uncurry_this_clause();
      var $indexOf = require_array_includes().indexOf;
      var arrayMethodIsStrict = require_array_method_is_strict();
      var nativeIndexOf = uncurryThis([].indexOf);
      var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
      var FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict("indexOf");
      $({ target: "Array", proto: true, forced: FORCED }, {
        indexOf: function indexOf(searchElement) {
          var fromIndex = arguments.length > 1 ? arguments[1] : void 0;
          return NEGATIVE_ZERO ? nativeIndexOf(this, searchElement, fromIndex) || 0 : $indexOf(this, searchElement, fromIndex);
        }
      });
    }
  });

  // node_modules/core-js/modules/es.array.join.js
  var require_es_array_join = __commonJS({
    "node_modules/core-js/modules/es.array.join.js": function() {
      "use strict";
      var $ = require_export();
      var uncurryThis = require_function_uncurry_this();
      var IndexedObject = require_indexed_object();
      var toIndexedObject = require_to_indexed_object();
      var arrayMethodIsStrict = require_array_method_is_strict();
      var nativeJoin = uncurryThis([].join);
      var ES3_STRINGS = IndexedObject !== Object;
      var FORCED = ES3_STRINGS || !arrayMethodIsStrict("join", ",");
      $({ target: "Array", proto: true, forced: FORCED }, {
        join: function join(separator) {
          return nativeJoin(toIndexedObject(this), separator === void 0 ? "," : separator);
        }
      });
    }
  });

  // node_modules/core-js/modules/es.array.map.js
  var require_es_array_map = __commonJS({
    "node_modules/core-js/modules/es.array.map.js": function() {
      "use strict";
      var $ = require_export();
      var $map = require_array_iteration().map;
      var arrayMethodHasSpeciesSupport = require_array_method_has_species_support();
      var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("map");
      $({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, {
        map: function map(callbackfn) {
          return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
        }
      });
    }
  });

  // node_modules/core-js/internals/array-set-length.js
  var require_array_set_length = __commonJS({
    "node_modules/core-js/internals/array-set-length.js": function(exports, module) {
      "use strict";
      var DESCRIPTORS = require_descriptors();
      var isArray = require_is_array();
      var $TypeError = TypeError;
      var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
      var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function() {
        if (this !== void 0)
          return true;
        try {
          Object.defineProperty([], "length", { writable: false }).length = 1;
        } catch (error) {
          return error instanceof TypeError;
        }
      }();
      module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function(O, length) {
        if (isArray(O) && !getOwnPropertyDescriptor(O, "length").writable) {
          throw new $TypeError("Cannot set read only .length");
        }
        return O.length = length;
      } : function(O, length) {
        return O.length = length;
      };
    }
  });

  // node_modules/core-js/modules/es.array.push.js
  var require_es_array_push = __commonJS({
    "node_modules/core-js/modules/es.array.push.js": function() {
      "use strict";
      var $ = require_export();
      var toObject = require_to_object();
      var lengthOfArrayLike = require_length_of_array_like();
      var setArrayLength = require_array_set_length();
      var doesNotExceedSafeInteger = require_does_not_exceed_safe_integer();
      var fails = require_fails();
      var INCORRECT_TO_LENGTH = fails(function() {
        return [].push.call({ length: 4294967296 }, 1) !== 4294967297;
      });
      var properErrorOnNonWritableLength = function() {
        try {
          Object.defineProperty([], "length", { writable: false }).push();
        } catch (error) {
          return error instanceof TypeError;
        }
      };
      var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
      $({ target: "Array", proto: true, arity: 1, forced: FORCED }, {
        // eslint-disable-next-line no-unused-vars -- required for `.length`
        push: function push(item) {
          var O = toObject(this);
          var len = lengthOfArrayLike(O);
          var argCount = arguments.length;
          doesNotExceedSafeInteger(len + argCount);
          for (var i = 0; i < argCount; i++) {
            O[len] = arguments[i];
            len++;
          }
          setArrayLength(O, len);
          return len;
        }
      });
    }
  });

  // node_modules/core-js/modules/es.array.slice.js
  var require_es_array_slice = __commonJS({
    "node_modules/core-js/modules/es.array.slice.js": function() {
      "use strict";
      var $ = require_export();
      var isArray = require_is_array();
      var isConstructor = require_is_constructor();
      var isObject = require_is_object();
      var toAbsoluteIndex = require_to_absolute_index();
      var lengthOfArrayLike = require_length_of_array_like();
      var toIndexedObject = require_to_indexed_object();
      var createProperty = require_create_property();
      var wellKnownSymbol = require_well_known_symbol();
      var arrayMethodHasSpeciesSupport = require_array_method_has_species_support();
      var nativeSlice = require_array_slice();
      var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("slice");
      var SPECIES = wellKnownSymbol("species");
      var $Array = Array;
      var max = Math.max;
      $({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, {
        slice: function slice(start, end) {
          var O = toIndexedObject(this);
          var length = lengthOfArrayLike(O);
          var k = toAbsoluteIndex(start, length);
          var fin = toAbsoluteIndex(end === void 0 ? length : end, length);
          var Constructor, result, n;
          if (isArray(O)) {
            Constructor = O.constructor;
            if (isConstructor(Constructor) && (Constructor === $Array || isArray(Constructor.prototype))) {
              Constructor = void 0;
            } else if (isObject(Constructor)) {
              Constructor = Constructor[SPECIES];
              if (Constructor === null)
                Constructor = void 0;
            }
            if (Constructor === $Array || Constructor === void 0) {
              return nativeSlice(O, k, fin);
            }
          }
          result = new (Constructor === void 0 ? $Array : Constructor)(max(fin - k, 0));
          for (n = 0; k < fin; k++, n++)
            if (k in O)
              createProperty(result, n, O[k]);
          result.length = n;
          return result;
        }
      });
    }
  });

  // node_modules/core-js/internals/delete-property-or-throw.js
  var require_delete_property_or_throw = __commonJS({
    "node_modules/core-js/internals/delete-property-or-throw.js": function(exports, module) {
      "use strict";
      var tryToString = require_try_to_string();
      var $TypeError = TypeError;
      module.exports = function(O, P) {
        if (!delete O[P])
          throw new $TypeError("Cannot delete property " + tryToString(P) + " of " + tryToString(O));
      };
    }
  });

  // node_modules/core-js/internals/array-sort.js
  var require_array_sort = __commonJS({
    "node_modules/core-js/internals/array-sort.js": function(exports, module) {
      "use strict";
      var arraySlice = require_array_slice();
      var floor = Math.floor;
      var sort = function(array, comparefn) {
        var length = array.length;
        if (length < 8) {
          var i = 1;
          var element, j;
          while (i < length) {
            j = i;
            element = array[i];
            while (j && comparefn(array[j - 1], element) > 0) {
              array[j] = array[--j];
            }
            if (j !== i++)
              array[j] = element;
          }
        } else {
          var middle = floor(length / 2);
          var left = sort(arraySlice(array, 0, middle), comparefn);
          var right = sort(arraySlice(array, middle), comparefn);
          var llength = left.length;
          var rlength = right.length;
          var lindex = 0;
          var rindex = 0;
          while (lindex < llength || rindex < rlength) {
            array[lindex + rindex] = lindex < llength && rindex < rlength ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++] : lindex < llength ? left[lindex++] : right[rindex++];
          }
        }
        return array;
      };
      module.exports = sort;
    }
  });

  // node_modules/core-js/internals/engine-ff-version.js
  var require_engine_ff_version = __commonJS({
    "node_modules/core-js/internals/engine-ff-version.js": function(exports, module) {
      "use strict";
      var userAgent = require_engine_user_agent();
      var firefox = userAgent.match(/firefox\/(\d+)/i);
      module.exports = !!firefox && +firefox[1];
    }
  });

  // node_modules/core-js/internals/engine-is-ie-or-edge.js
  var require_engine_is_ie_or_edge = __commonJS({
    "node_modules/core-js/internals/engine-is-ie-or-edge.js": function(exports, module) {
      "use strict";
      var UA = require_engine_user_agent();
      module.exports = /MSIE|Trident/.test(UA);
    }
  });

  // node_modules/core-js/internals/engine-webkit-version.js
  var require_engine_webkit_version = __commonJS({
    "node_modules/core-js/internals/engine-webkit-version.js": function(exports, module) {
      "use strict";
      var userAgent = require_engine_user_agent();
      var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
      module.exports = !!webkit && +webkit[1];
    }
  });

  // node_modules/core-js/modules/es.array.sort.js
  var require_es_array_sort = __commonJS({
    "node_modules/core-js/modules/es.array.sort.js": function() {
      "use strict";
      var $ = require_export();
      var uncurryThis = require_function_uncurry_this();
      var aCallable = require_a_callable();
      var toObject = require_to_object();
      var lengthOfArrayLike = require_length_of_array_like();
      var deletePropertyOrThrow = require_delete_property_or_throw();
      var toString = require_to_string();
      var fails = require_fails();
      var internalSort = require_array_sort();
      var arrayMethodIsStrict = require_array_method_is_strict();
      var FF = require_engine_ff_version();
      var IE_OR_EDGE = require_engine_is_ie_or_edge();
      var V8 = require_engine_v8_version();
      var WEBKIT = require_engine_webkit_version();
      var test = [];
      var nativeSort = uncurryThis(test.sort);
      var push = uncurryThis(test.push);
      var FAILS_ON_UNDEFINED = fails(function() {
        test.sort(void 0);
      });
      var FAILS_ON_NULL = fails(function() {
        test.sort(null);
      });
      var STRICT_METHOD = arrayMethodIsStrict("sort");
      var STABLE_SORT = !fails(function() {
        if (V8)
          return V8 < 70;
        if (FF && FF > 3)
          return;
        if (IE_OR_EDGE)
          return true;
        if (WEBKIT)
          return WEBKIT < 603;
        var result = "";
        var code, chr, value, index;
        for (code = 65; code < 76; code++) {
          chr = String.fromCharCode(code);
          switch (code) {
            case 66:
            case 69:
            case 70:
            case 72:
              value = 3;
              break;
            case 68:
            case 71:
              value = 4;
              break;
            default:
              value = 2;
          }
          for (index = 0; index < 47; index++) {
            test.push({ k: chr + index, v: value });
          }
        }
        test.sort(function(a, b) {
          return b.v - a.v;
        });
        for (index = 0; index < test.length; index++) {
          chr = test[index].k.charAt(0);
          if (result.charAt(result.length - 1) !== chr)
            result += chr;
        }
        return result !== "DGBEFHACIJK";
      });
      var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
      var getSortCompare = function(comparefn) {
        return function(x, y) {
          if (y === void 0)
            return -1;
          if (x === void 0)
            return 1;
          if (comparefn !== void 0)
            return +comparefn(x, y) || 0;
          return toString(x) > toString(y) ? 1 : -1;
        };
      };
      $({ target: "Array", proto: true, forced: FORCED }, {
        sort: function sort(comparefn) {
          if (comparefn !== void 0)
            aCallable(comparefn);
          var array = toObject(this);
          if (STABLE_SORT)
            return comparefn === void 0 ? nativeSort(array) : nativeSort(array, comparefn);
          var items = [];
          var arrayLength = lengthOfArrayLike(array);
          var itemsLength, index;
          for (index = 0; index < arrayLength; index++) {
            if (index in array)
              push(items, array[index]);
          }
          internalSort(items, getSortCompare(comparefn));
          itemsLength = lengthOfArrayLike(items);
          index = 0;
          while (index < itemsLength)
            array[index] = items[index++];
          while (index < arrayLength)
            deletePropertyOrThrow(array, index++);
          return array;
        }
      });
    }
  });

  // node_modules/core-js/modules/es.array.splice.js
  var require_es_array_splice = __commonJS({
    "node_modules/core-js/modules/es.array.splice.js": function() {
      "use strict";
      var $ = require_export();
      var toObject = require_to_object();
      var toAbsoluteIndex = require_to_absolute_index();
      var toIntegerOrInfinity = require_to_integer_or_infinity();
      var lengthOfArrayLike = require_length_of_array_like();
      var setArrayLength = require_array_set_length();
      var doesNotExceedSafeInteger = require_does_not_exceed_safe_integer();
      var arraySpeciesCreate = require_array_species_create();
      var createProperty = require_create_property();
      var deletePropertyOrThrow = require_delete_property_or_throw();
      var arrayMethodHasSpeciesSupport = require_array_method_has_species_support();
      var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("splice");
      var max = Math.max;
      var min = Math.min;
      $({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, {
        splice: function splice(start, deleteCount) {
          var O = toObject(this);
          var len = lengthOfArrayLike(O);
          var actualStart = toAbsoluteIndex(start, len);
          var argumentsLength = arguments.length;
          var insertCount, actualDeleteCount, A, k, from, to;
          if (argumentsLength === 0) {
            insertCount = actualDeleteCount = 0;
          } else if (argumentsLength === 1) {
            insertCount = 0;
            actualDeleteCount = len - actualStart;
          } else {
            insertCount = argumentsLength - 2;
            actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
          }
          doesNotExceedSafeInteger(len + insertCount - actualDeleteCount);
          A = arraySpeciesCreate(O, actualDeleteCount);
          for (k = 0; k < actualDeleteCount; k++) {
            from = actualStart + k;
            if (from in O)
              createProperty(A, k, O[from]);
          }
          A.length = actualDeleteCount;
          if (insertCount < actualDeleteCount) {
            for (k = actualStart; k < len - actualDeleteCount; k++) {
              from = k + actualDeleteCount;
              to = k + insertCount;
              if (from in O)
                O[to] = O[from];
              else
                deletePropertyOrThrow(O, to);
            }
            for (k = len; k > len - actualDeleteCount + insertCount; k--)
              deletePropertyOrThrow(O, k - 1);
          } else if (insertCount > actualDeleteCount) {
            for (k = len - actualDeleteCount; k > actualStart; k--) {
              from = k + actualDeleteCount - 1;
              to = k + insertCount - 1;
              if (from in O)
                O[to] = O[from];
              else
                deletePropertyOrThrow(O, to);
            }
          }
          for (k = 0; k < insertCount; k++) {
            O[k + actualStart] = arguments[k + 2];
          }
          setArrayLength(O, len - actualDeleteCount + insertCount);
          return A;
        }
      });
    }
  });

  // node_modules/core-js/modules/es.date.to-json.js
  var require_es_date_to_json = __commonJS({
    "node_modules/core-js/modules/es.date.to-json.js": function() {
      "use strict";
      var $ = require_export();
      var fails = require_fails();
      var toObject = require_to_object();
      var toPrimitive = require_to_primitive();
      var FORCED = fails(function() {
        return new Date(NaN).toJSON() !== null || Date.prototype.toJSON.call({ toISOString: function() {
          return 1;
        } }) !== 1;
      });
      $({ target: "Date", proto: true, arity: 1, forced: FORCED }, {
        // eslint-disable-next-line no-unused-vars -- required for `.length`
        toJSON: function toJSON(key) {
          var O = toObject(this);
          var pv = toPrimitive(O, "number");
          return typeof pv == "number" && !isFinite(pv) ? null : O.toISOString();
        }
      });
    }
  });

  // node_modules/core-js/modules/es.date.to-string.js
  var require_es_date_to_string = __commonJS({
    "node_modules/core-js/modules/es.date.to-string.js": function() {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      var defineBuiltIn = require_define_built_in();
      var DatePrototype = Date.prototype;
      var INVALID_DATE = "Invalid Date";
      var TO_STRING = "toString";
      var nativeDateToString = uncurryThis(DatePrototype[TO_STRING]);
      var thisTimeValue = uncurryThis(DatePrototype.getTime);
      if (String(new Date(NaN)) !== INVALID_DATE) {
        defineBuiltIn(DatePrototype, TO_STRING, function toString() {
          var value = thisTimeValue(this);
          return value === value ? nativeDateToString(this) : INVALID_DATE;
        });
      }
    }
  });

  // node_modules/core-js/modules/es.function.bind.js
  var require_es_function_bind = __commonJS({
    "node_modules/core-js/modules/es.function.bind.js": function() {
      "use strict";
      var $ = require_export();
      var bind = require_function_bind();
      $({ target: "Function", proto: true, forced: Function.bind !== bind }, {
        bind: bind
      });
    }
  });

  // node_modules/core-js/modules/es.function.name.js
  var require_es_function_name = __commonJS({
    "node_modules/core-js/modules/es.function.name.js": function() {
      "use strict";
      var DESCRIPTORS = require_descriptors();
      var FUNCTION_NAME_EXISTS = require_function_name().EXISTS;
      var uncurryThis = require_function_uncurry_this();
      var defineBuiltInAccessor = require_define_built_in_accessor();
      var FunctionPrototype = Function.prototype;
      var functionToString = uncurryThis(FunctionPrototype.toString);
      var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
      var regExpExec = uncurryThis(nameRE.exec);
      var NAME = "name";
      if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {
        defineBuiltInAccessor(FunctionPrototype, NAME, {
          configurable: true,
          get: function() {
            try {
              return regExpExec(nameRE, functionToString(this))[1];
            } catch (error) {
              return "";
            }
          }
        });
      }
    }
  });

  // node_modules/core-js/modules/es.object.define-property.js
  var require_es_object_define_property = __commonJS({
    "node_modules/core-js/modules/es.object.define-property.js": function() {
      "use strict";
      var $ = require_export();
      var DESCRIPTORS = require_descriptors();
      var defineProperty = require_object_define_property().f;
      $({ target: "Object", stat: true, forced: Object.defineProperty !== defineProperty, sham: !DESCRIPTORS }, {
        defineProperty: defineProperty
      });
    }
  });

  // node_modules/core-js/modules/es.object.keys.js
  var require_es_object_keys = __commonJS({
    "node_modules/core-js/modules/es.object.keys.js": function() {
      "use strict";
      var $ = require_export();
      var toObject = require_to_object();
      var nativeKeys = require_object_keys();
      var fails = require_fails();
      var FAILS_ON_PRIMITIVES = fails(function() {
        nativeKeys(1);
      });
      $({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES }, {
        keys: function keys(it) {
          return nativeKeys(toObject(it));
        }
      });
    }
  });

  // node_modules/core-js/internals/object-to-string.js
  var require_object_to_string = __commonJS({
    "node_modules/core-js/internals/object-to-string.js": function(exports, module) {
      "use strict";
      var TO_STRING_TAG_SUPPORT = require_to_string_tag_support();
      var classof = require_classof();
      module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
        return "[object " + classof(this) + "]";
      };
    }
  });

  // node_modules/core-js/modules/es.object.to-string.js
  var require_es_object_to_string = __commonJS({
    "node_modules/core-js/modules/es.object.to-string.js": function() {
      "use strict";
      var TO_STRING_TAG_SUPPORT = require_to_string_tag_support();
      var defineBuiltIn = require_define_built_in();
      var toString = require_object_to_string();
      if (!TO_STRING_TAG_SUPPORT) {
        defineBuiltIn(Object.prototype, "toString", toString, { unsafe: true });
      }
    }
  });

  // node_modules/core-js/internals/number-parse-int.js
  var require_number_parse_int = __commonJS({
    "node_modules/core-js/internals/number-parse-int.js": function(exports, module) {
      "use strict";
      var global2 = require_global();
      var fails = require_fails();
      var uncurryThis = require_function_uncurry_this();
      var toString = require_to_string();
      var trim = require_string_trim().trim;
      var whitespaces = require_whitespaces();
      var $parseInt = global2.parseInt;
      var Symbol2 = global2.Symbol;
      var ITERATOR = Symbol2 && Symbol2.iterator;
      var hex = /^[+-]?0x/i;
      var exec = uncurryThis(hex.exec);
      var FORCED = $parseInt(whitespaces + "08") !== 8 || $parseInt(whitespaces + "0x16") !== 22 || ITERATOR && !fails(function() {
        $parseInt(Object(ITERATOR));
      });
      module.exports = FORCED ? function parseInt2(string, radix) {
        var S = trim(toString(string));
        return $parseInt(S, radix >>> 0 || (exec(hex, S) ? 16 : 10));
      } : $parseInt;
    }
  });

  // node_modules/core-js/modules/es.parse-int.js
  var require_es_parse_int = __commonJS({
    "node_modules/core-js/modules/es.parse-int.js": function() {
      "use strict";
      var $ = require_export();
      var $parseInt = require_number_parse_int();
      $({ global: true, forced: parseInt !== $parseInt }, {
        parseInt: $parseInt
      });
    }
  });

  // node_modules/core-js/internals/regexp-get-flags.js
  var require_regexp_get_flags = __commonJS({
    "node_modules/core-js/internals/regexp-get-flags.js": function(exports, module) {
      "use strict";
      var call = require_function_call();
      var hasOwn = require_has_own_property();
      var isPrototypeOf = require_object_is_prototype_of();
      var regExpFlags = require_regexp_flags();
      var RegExpPrototype = RegExp.prototype;
      module.exports = function(R) {
        var flags = R.flags;
        return flags === void 0 && !("flags" in RegExpPrototype) && !hasOwn(R, "flags") && isPrototypeOf(RegExpPrototype, R) ? call(regExpFlags, R) : flags;
      };
    }
  });

  // node_modules/core-js/modules/es.regexp.to-string.js
  var require_es_regexp_to_string = __commonJS({
    "node_modules/core-js/modules/es.regexp.to-string.js": function() {
      "use strict";
      var PROPER_FUNCTION_NAME = require_function_name().PROPER;
      var defineBuiltIn = require_define_built_in();
      var anObject = require_an_object();
      var $toString = require_to_string();
      var fails = require_fails();
      var getRegExpFlags = require_regexp_get_flags();
      var TO_STRING = "toString";
      var RegExpPrototype = RegExp.prototype;
      var nativeToString = RegExpPrototype[TO_STRING];
      var NOT_GENERIC = fails(function() {
        return nativeToString.call({ source: "a", flags: "b" }) !== "/a/b";
      });
      var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
      if (NOT_GENERIC || INCORRECT_NAME) {
        defineBuiltIn(RegExpPrototype, TO_STRING, function toString() {
          var R = anObject(this);
          var pattern = $toString(R.source);
          var flags = $toString(getRegExpFlags(R));
          return "/" + pattern + "/" + flags;
        }, { unsafe: true });
      }
    }
  });

  // node_modules/core-js/internals/is-regexp.js
  var require_is_regexp = __commonJS({
    "node_modules/core-js/internals/is-regexp.js": function(exports, module) {
      "use strict";
      var isObject = require_is_object();
      var classof = require_classof_raw();
      var wellKnownSymbol = require_well_known_symbol();
      var MATCH = wellKnownSymbol("match");
      module.exports = function(it) {
        var isRegExp;
        return isObject(it) && ((isRegExp = it[MATCH]) !== void 0 ? !!isRegExp : classof(it) === "RegExp");
      };
    }
  });

  // node_modules/core-js/internals/not-a-regexp.js
  var require_not_a_regexp = __commonJS({
    "node_modules/core-js/internals/not-a-regexp.js": function(exports, module) {
      "use strict";
      var isRegExp = require_is_regexp();
      var $TypeError = TypeError;
      module.exports = function(it) {
        if (isRegExp(it)) {
          throw new $TypeError("The method doesn't accept regular expressions");
        }
        return it;
      };
    }
  });

  // node_modules/core-js/internals/correct-is-regexp-logic.js
  var require_correct_is_regexp_logic = __commonJS({
    "node_modules/core-js/internals/correct-is-regexp-logic.js": function(exports, module) {
      "use strict";
      var wellKnownSymbol = require_well_known_symbol();
      var MATCH = wellKnownSymbol("match");
      module.exports = function(METHOD_NAME) {
        var regexp = /./;
        try {
          "/./"[METHOD_NAME](regexp);
        } catch (error1) {
          try {
            regexp[MATCH] = false;
            return "/./"[METHOD_NAME](regexp);
          } catch (error2) {
          }
        }
        return false;
      };
    }
  });

  // node_modules/core-js/modules/es.string.includes.js
  var require_es_string_includes = __commonJS({
    "node_modules/core-js/modules/es.string.includes.js": function() {
      "use strict";
      var $ = require_export();
      var uncurryThis = require_function_uncurry_this();
      var notARegExp = require_not_a_regexp();
      var requireObjectCoercible = require_require_object_coercible();
      var toString = require_to_string();
      var correctIsRegExpLogic = require_correct_is_regexp_logic();
      var stringIndexOf = uncurryThis("".indexOf);
      $({ target: "String", proto: true, forced: !correctIsRegExpLogic("includes") }, {
        includes: function includes(searchString) {
          return !!~stringIndexOf(
            toString(requireObjectCoercible(this)),
            toString(notARegExp(searchString)),
            arguments.length > 1 ? arguments[1] : void 0
          );
        }
      });
    }
  });

  // node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js
  var require_fix_regexp_well_known_symbol_logic = __commonJS({
    "node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js": function(exports, module) {
      "use strict";
      require_es_regexp_exec();
      var call = require_function_call();
      var defineBuiltIn = require_define_built_in();
      var regexpExec = require_regexp_exec();
      var fails = require_fails();
      var wellKnownSymbol = require_well_known_symbol();
      var createNonEnumerableProperty = require_create_non_enumerable_property();
      var SPECIES = wellKnownSymbol("species");
      var RegExpPrototype = RegExp.prototype;
      module.exports = function(KEY, exec, FORCED, SHAM) {
        var SYMBOL = wellKnownSymbol(KEY);
        var DELEGATES_TO_SYMBOL = !fails(function() {
          var O = {};
          O[SYMBOL] = function() {
            return 7;
          };
          return ""[KEY](O) !== 7;
        });
        var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function() {
          var execCalled = false;
          var re = /a/;
          if (KEY === "split") {
            re = {};
            re.constructor = {};
            re.constructor[SPECIES] = function() {
              return re;
            };
            re.flags = "";
            re[SYMBOL] = /./[SYMBOL];
          }
          re.exec = function() {
            execCalled = true;
            return null;
          };
          re[SYMBOL]("");
          return !execCalled;
        });
        if (!DELEGATES_TO_SYMBOL || !DELEGATES_TO_EXEC || FORCED) {
          var nativeRegExpMethod = /./[SYMBOL];
          var methods = exec(SYMBOL, ""[KEY], function(nativeMethod, regexp, str, arg2, forceStringMethod) {
            var $exec = regexp.exec;
            if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
              if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
                return { done: true, value: call(nativeRegExpMethod, regexp, str, arg2) };
              }
              return { done: true, value: call(nativeMethod, str, regexp, arg2) };
            }
            return { done: false };
          });
          defineBuiltIn(String.prototype, KEY, methods[0]);
          defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
        }
        if (SHAM)
          createNonEnumerableProperty(RegExpPrototype[SYMBOL], "sham", true);
      };
    }
  });

  // node_modules/core-js/internals/advance-string-index.js
  var require_advance_string_index = __commonJS({
    "node_modules/core-js/internals/advance-string-index.js": function(exports, module) {
      "use strict";
      var charAt = require_string_multibyte().charAt;
      module.exports = function(S, index, unicode) {
        return index + (unicode ? charAt(S, index).length : 1);
      };
    }
  });

  // node_modules/core-js/internals/regexp-exec-abstract.js
  var require_regexp_exec_abstract = __commonJS({
    "node_modules/core-js/internals/regexp-exec-abstract.js": function(exports, module) {
      "use strict";
      var call = require_function_call();
      var anObject = require_an_object();
      var isCallable = require_is_callable();
      var classof = require_classof_raw();
      var regexpExec = require_regexp_exec();
      var $TypeError = TypeError;
      module.exports = function(R, S) {
        var exec = R.exec;
        if (isCallable(exec)) {
          var result = call(exec, R, S);
          if (result !== null)
            anObject(result);
          return result;
        }
        if (classof(R) === "RegExp")
          return call(regexpExec, R, S);
        throw new $TypeError("RegExp#exec called on incompatible receiver");
      };
    }
  });

  // node_modules/core-js/modules/es.string.match.js
  var require_es_string_match = __commonJS({
    "node_modules/core-js/modules/es.string.match.js": function() {
      "use strict";
      var call = require_function_call();
      var fixRegExpWellKnownSymbolLogic = require_fix_regexp_well_known_symbol_logic();
      var anObject = require_an_object();
      var isNullOrUndefined = require_is_null_or_undefined();
      var toLength = require_to_length();
      var toString = require_to_string();
      var requireObjectCoercible = require_require_object_coercible();
      var getMethod = require_get_method();
      var advanceStringIndex = require_advance_string_index();
      var regExpExec = require_regexp_exec_abstract();
      fixRegExpWellKnownSymbolLogic("match", function(MATCH, nativeMatch, maybeCallNative) {
        return [
          // `String.prototype.match` method
          // https://tc39.es/ecma262/#sec-string.prototype.match
          function match(regexp) {
            var O = requireObjectCoercible(this);
            var matcher = isNullOrUndefined(regexp) ? void 0 : getMethod(regexp, MATCH);
            return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString(O));
          },
          // `RegExp.prototype[@@match]` method
          // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
          function(string) {
            var rx = anObject(this);
            var S = toString(string);
            var res = maybeCallNative(nativeMatch, rx, S);
            if (res.done)
              return res.value;
            if (!rx.global)
              return regExpExec(rx, S);
            var fullUnicode = rx.unicode;
            rx.lastIndex = 0;
            var A = [];
            var n = 0;
            var result;
            while ((result = regExpExec(rx, S)) !== null) {
              var matchStr = toString(result[0]);
              A[n] = matchStr;
              if (matchStr === "")
                rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
              n++;
            }
            return n === 0 ? null : A;
          }
        ];
      });
    }
  });

  // node_modules/core-js/internals/get-substitution.js
  var require_get_substitution = __commonJS({
    "node_modules/core-js/internals/get-substitution.js": function(exports, module) {
      "use strict";
      var uncurryThis = require_function_uncurry_this();
      var toObject = require_to_object();
      var floor = Math.floor;
      var charAt = uncurryThis("".charAt);
      var replace = uncurryThis("".replace);
      var stringSlice = uncurryThis("".slice);
      var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
      var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
      module.exports = function(matched, str, position, captures, namedCaptures, replacement) {
        var tailPos = position + matched.length;
        var m = captures.length;
        var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
        if (namedCaptures !== void 0) {
          namedCaptures = toObject(namedCaptures);
          symbols = SUBSTITUTION_SYMBOLS;
        }
        return replace(replacement, symbols, function(match, ch) {
          var capture;
          switch (charAt(ch, 0)) {
            case "$":
              return "$";
            case "&":
              return matched;
            case "`":
              return stringSlice(str, 0, position);
            case "'":
              return stringSlice(str, tailPos);
            case "<":
              capture = namedCaptures[stringSlice(ch, 1, -1)];
              break;
            default:
              var n = +ch;
              if (n === 0)
                return match;
              if (n > m) {
                var f = floor(n / 10);
                if (f === 0)
                  return match;
                if (f <= m)
                  return captures[f - 1] === void 0 ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
                return match;
              }
              capture = captures[n - 1];
          }
          return capture === void 0 ? "" : capture;
        });
      };
    }
  });

  // node_modules/core-js/modules/es.string.replace.js
  var require_es_string_replace = __commonJS({
    "node_modules/core-js/modules/es.string.replace.js": function() {
      "use strict";
      var apply = require_function_apply();
      var call = require_function_call();
      var uncurryThis = require_function_uncurry_this();
      var fixRegExpWellKnownSymbolLogic = require_fix_regexp_well_known_symbol_logic();
      var fails = require_fails();
      var anObject = require_an_object();
      var isCallable = require_is_callable();
      var isNullOrUndefined = require_is_null_or_undefined();
      var toIntegerOrInfinity = require_to_integer_or_infinity();
      var toLength = require_to_length();
      var toString = require_to_string();
      var requireObjectCoercible = require_require_object_coercible();
      var advanceStringIndex = require_advance_string_index();
      var getMethod = require_get_method();
      var getSubstitution = require_get_substitution();
      var regExpExec = require_regexp_exec_abstract();
      var wellKnownSymbol = require_well_known_symbol();
      var REPLACE = wellKnownSymbol("replace");
      var max = Math.max;
      var min = Math.min;
      var concat = uncurryThis([].concat);
      var push = uncurryThis([].push);
      var stringIndexOf = uncurryThis("".indexOf);
      var stringSlice = uncurryThis("".slice);
      var maybeToString = function(it) {
        return it === void 0 ? it : String(it);
      };
      var REPLACE_KEEPS_$0 = function() {
        return "a".replace(/./, "$0") === "$0";
      }();
      var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = function() {
        if (/./[REPLACE]) {
          return /./[REPLACE]("a", "$0") === "";
        }
        return false;
      }();
      var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function() {
        var re = /./;
        re.exec = function() {
          var result = [];
          result.groups = { a: "7" };
          return result;
        };
        return "".replace(re, "$<a>") !== "7";
      });
      fixRegExpWellKnownSymbolLogic("replace", function(_, nativeReplace, maybeCallNative) {
        var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? "$" : "$0";
        return [
          // `String.prototype.replace` method
          // https://tc39.es/ecma262/#sec-string.prototype.replace
          function replace(searchValue, replaceValue) {
            var O = requireObjectCoercible(this);
            var replacer = isNullOrUndefined(searchValue) ? void 0 : getMethod(searchValue, REPLACE);
            return replacer ? call(replacer, searchValue, O, replaceValue) : call(nativeReplace, toString(O), searchValue, replaceValue);
          },
          // `RegExp.prototype[@@replace]` method
          // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
          function(string, replaceValue) {
            var rx = anObject(this);
            var S = toString(string);
            if (typeof replaceValue == "string" && stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 && stringIndexOf(replaceValue, "$<") === -1) {
              var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
              if (res.done)
                return res.value;
            }
            var functionalReplace = isCallable(replaceValue);
            if (!functionalReplace)
              replaceValue = toString(replaceValue);
            var global2 = rx.global;
            var fullUnicode;
            if (global2) {
              fullUnicode = rx.unicode;
              rx.lastIndex = 0;
            }
            var results = [];
            var result;
            while (true) {
              result = regExpExec(rx, S);
              if (result === null)
                break;
              push(results, result);
              if (!global2)
                break;
              var matchStr = toString(result[0]);
              if (matchStr === "")
                rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
            }
            var accumulatedResult = "";
            var nextSourcePosition = 0;
            for (var i = 0; i < results.length; i++) {
              result = results[i];
              var matched = toString(result[0]);
              var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
              var captures = [];
              var replacement;
              for (var j = 1; j < result.length; j++)
                push(captures, maybeToString(result[j]));
              var namedCaptures = result.groups;
              if (functionalReplace) {
                var replacerArgs = concat([matched], captures, position, S);
                if (namedCaptures !== void 0)
                  push(replacerArgs, namedCaptures);
                replacement = toString(apply(replaceValue, void 0, replacerArgs));
              } else {
                replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
              }
              if (position >= nextSourcePosition) {
                accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
                nextSourcePosition = position + matched.length;
              }
            }
            return accumulatedResult + stringSlice(S, nextSourcePosition);
          }
        ];
      }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
    }
  });

  // node_modules/core-js/modules/es.string.starts-with.js
  var require_es_string_starts_with = __commonJS({
    "node_modules/core-js/modules/es.string.starts-with.js": function() {
      "use strict";
      var $ = require_export();
      var uncurryThis = require_function_uncurry_this_clause();
      var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
      var toLength = require_to_length();
      var toString = require_to_string();
      var notARegExp = require_not_a_regexp();
      var requireObjectCoercible = require_require_object_coercible();
      var correctIsRegExpLogic = require_correct_is_regexp_logic();
      var IS_PURE = require_is_pure();
      var stringSlice = uncurryThis("".slice);
      var min = Math.min;
      var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic("startsWith");
      var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function() {
        var descriptor = getOwnPropertyDescriptor(String.prototype, "startsWith");
        return descriptor && !descriptor.writable;
      }();
      $({ target: "String", proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
        startsWith: function startsWith(searchString) {
          var that = toString(requireObjectCoercible(this));
          notARegExp(searchString);
          var index = toLength(min(arguments.length > 1 ? arguments[1] : void 0, that.length));
          var search = toString(searchString);
          return stringSlice(that, index, index + search.length) === search;
        }
      });
    }
  });

  // .tmp/es5/bullshit.js
  require_es_symbol_iterator();
  require_es_symbol_to_primitive();
  require_es_array_for_each();
  require_es_array_from();
  require_es_array_is_array();
  require_es_array_iterator();
  require_es_date_to_primitive();
  require_es_number_constructor();
  require_es_object_create();
  require_es_object_define_properties();
  require_es_object_get_own_property_descriptor();
  require_es_object_get_own_property_descriptors();
  require_es_object_get_prototype_of();
  require_es_object_proto();
  require_es_object_set_prototype_of();
  require_es_reflect_construct();
  require_es_regexp_test();
  require_es_string_iterator();
  require_web_dom_collections_for_each();
  require_web_dom_collections_iterator();
  function _typeof(o) {
    "@babel/helpers - typeof";
    return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
      return typeof o2;
    } : function(o2) {
      return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
    }, _typeof(o);
  }
  require_es_symbol();
  require_es_symbol_description();
  require_es_error_cause();
  require_es_error_to_string();
  require_es_array_concat();
  require_es_array_filter();
  require_es_array_includes();
  require_es_array_index_of();
  require_es_array_join();
  require_es_array_map();
  require_es_array_push();
  require_es_array_slice();
  require_es_array_sort();
  require_es_array_splice();
  require_es_date_to_json();
  require_es_date_to_string();
  require_es_function_bind();
  require_es_function_name();
  require_es_json_stringify();
  require_es_object_define_property();
  require_es_object_keys();
  require_es_object_to_string();
  require_es_parse_int();
  require_es_regexp_exec();
  require_es_regexp_to_string();
  require_es_string_includes();
  require_es_string_match();
  require_es_string_replace();
  require_es_string_starts_with();
  function ownKeys(e, r) {
    var t = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
      var o = Object.getOwnPropertySymbols(e);
      r && (o = o.filter(function(r2) {
        return Object.getOwnPropertyDescriptor(e, r2).enumerable;
      })), t.push.apply(t, o);
    }
    return t;
  }
  function _objectSpread(e) {
    for (var r = 1; r < arguments.length; r++) {
      var t = null != arguments[r] ? arguments[r] : {};
      r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
        _defineProperty(e, r2, t[r2]);
      }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
        Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
      });
    }
    return e;
  }
  function _toConsumableArray(r) {
    return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
  }
  function _nonIterableSpread() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  }
  function _iterableToArray(r) {
    if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"])
      return Array.from(r);
  }
  function _arrayWithoutHoles(r) {
    if (Array.isArray(r))
      return _arrayLikeToArray(r);
  }
  function _callSuper(t, o, e) {
    return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  }
  function _possibleConstructorReturn(t, e) {
    if (e && ("object" == _typeof(e) || "function" == typeof e))
      return e;
    if (void 0 !== e)
      throw new TypeError("Derived constructors may only return object or undefined");
    return _assertThisInitialized(t);
  }
  function _assertThisInitialized(e) {
    if (void 0 === e)
      throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
    return e;
  }
  function _isNativeReflectConstruct() {
    try {
      var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
      }));
    } catch (t2) {
    }
    return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
      return !!t;
    })();
  }
  function _getPrototypeOf(t) {
    return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
      return t2.__proto__ || Object.getPrototypeOf(t2);
    }, _getPrototypeOf(t);
  }
  function _inherits(t, e) {
    if ("function" != typeof e && null !== e)
      throw new TypeError("Super expression must either be null or a function");
    t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: true, configurable: true } }), Object.defineProperty(t, "prototype", { writable: false }), e && _setPrototypeOf(t, e);
  }
  function _setPrototypeOf(t, e) {
    return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
      return t2.__proto__ = e2, t2;
    }, _setPrototypeOf(t, e);
  }
  function _createForOfIteratorHelper(r, e) {
    var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
    if (!t) {
      if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
        t && (r = t);
        var _n = 0, F = function F2() {
        };
        return { s: F, n: function n() {
          return _n >= r.length ? { done: true } : { done: false, value: r[_n++] };
        }, e: function e2(r2) {
          throw r2;
        }, f: F };
      }
      throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
    }
    var o, a = true, u = false;
    return { s: function s() {
      t = t.call(r);
    }, n: function n() {
      var r2 = t.next();
      return a = r2.done, r2;
    }, e: function e2(r2) {
      u = true, o = r2;
    }, f: function f() {
      try {
        a || null == t["return"] || t["return"]();
      } finally {
        if (u)
          throw o;
      }
    } };
  }
  function _unsupportedIterableToArray(r, a) {
    if (r) {
      if ("string" == typeof r)
        return _arrayLikeToArray(r, a);
      var t = {}.toString.call(r).slice(8, -1);
      return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
    }
  }
  function _arrayLikeToArray(r, a) {
    (null == a || a > r.length) && (a = r.length);
    for (var e = 0, n = Array(a); e < a; e++)
      n[e] = r[e];
    return n;
  }
  function _classCallCheck(a, n) {
    if (!(a instanceof n))
      throw new TypeError("Cannot call a class as a function");
  }
  function _defineProperties(e, r) {
    for (var t = 0; t < r.length; t++) {
      var o = r[t];
      o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
    }
  }
  function _createClass(e, r, t) {
    return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: false }), e;
  }
  function _defineProperty(e, r, t) {
    return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
  }
  function _toPropertyKey(t) {
    var i = _toPrimitive(t, "string");
    return "symbol" == _typeof(i) ? i : i + "";
  }
  function _toPrimitive(t, r) {
    if ("object" != _typeof(t) || !t)
      return t;
    var e = t[Symbol.toPrimitive];
    if (void 0 !== e) {
      var i = e.call(t, r || "default");
      if ("object" != _typeof(i))
        return i;
      throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t);
  }
  (function() {
    var __defProp = Object.defineProperty;
    var __export = function __export2(target, all) {
      for (var name in all)
        __defProp(target, name, {
          get: all[name],
          enumerable: true
        });
    };
    js.global.load(js.global, "event-emitter.js");
    function load(filename) {
      var _js$global;
      var scope = {};
      for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
        args[_key - 1] = arguments[_key];
      }
      (_js$global = js.global).load.apply(_js$global, [scope, filename].concat(args));
      return scope;
    }
    var defs_exports = {};
    __export(defs_exports, {
      ALIGNMENT: function ALIGNMENT() {
        return _ALIGNMENT;
      },
      ANSIToCGA: function ANSIToCGA() {
        return _ANSIToCGA;
      },
      ATTR_TO_ANSI: function ATTR_TO_ANSI() {
        return _ATTR_TO_ANSI;
      },
      BORDER_PATTERN: function BORDER_PATTERN() {
        return _BORDER_PATTERN;
      },
      BORDER_STYLE: function BORDER_STYLE() {
        return _BORDER_STYLE;
      },
      LINE_DRAWING: function LINE_DRAWING() {
        return _LINE_DRAWING;
      },
      WRAP: function WRAP() {
        return _WRAP;
      }
    });
    var _ATTR_TO_ANSI = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "\x1B[0;30;44m", "\x1B[0;34;44m", "\x1B[0;32;44m", "\x1B[0;36;44m", "\x1B[0;31;44m", "\x1B[0;35;44m", "\x1B[0;33;44m", "\x1B[0;37;44m", "\x1B[1;30;44m", "\x1B[1;34;44m", "\x1B[1;32;44m", "\x1B[1;36;44m", "\x1B[1;31;44m", "\x1B[1;35;44m", "\x1B[1;33;44m", "\x1B[1;37;44m", "\x1B[0;30;42m", "\x1B[0;34;42m", "\x1B[0;32;42m", "\x1B[0;36;42m", "\x1B[0;31;42m", "\x1B[0;35;42m", "\x1B[0;33;42m", "\x1B[0;37;42m", "\x1B[1;30;42m", "\x1B[1;34;42m", "\x1B[1;32;42m", "\x1B[1;36;42m", "\x1B[1;31;42m", "\x1B[1;35;42m", "\x1B[1;33;42m", "\x1B[1;37;42m", "\x1B[0;30;46m", "\x1B[0;34;46m", "\x1B[0;32;46m", "\x1B[0;36;46m", "\x1B[0;31;46m", "\x1B[0;35;46m", "\x1B[0;33;46m", "\x1B[0;37;46m", "\x1B[1;30;46m", "\x1B[1;34;46m", "\x1B[1;32;46m", "\x1B[1;36;46m", "\x1B[1;31;46m", "\x1B[1;35;46m", "\x1B[1;33;46m", "\x1B[1;37;46m", "\x1B[0;30;41m", "\x1B[0;34;41m", "\x1B[0;32;41m", "\x1B[0;36;41m", "\x1B[0;31;41m", "\x1B[0;35;41m", "\x1B[0;33;41m", "\x1B[0;37;41m", "\x1B[1;30;41m", "\x1B[1;34;41m", "\x1B[1;32;41m", "\x1B[1;36;41m", "\x1B[1;31;41m", "\x1B[1;35;41m", "\x1B[1;33;41m", "\x1B[1;37;41m", "\x1B[0;30;45m", "\x1B[0;34;45m", "\x1B[0;32;45m", "\x1B[0;36;45m", "\x1B[0;31;45m", "\x1B[0;35;45m", "\x1B[0;33;45m", "\x1B[0;37;45m", "\x1B[1;30;45m", "\x1B[1;34;45m", "\x1B[1;32;45m", "\x1B[1;36;45m", "\x1B[1;31;45m", "\x1B[1;35;45m", "\x1B[1;33;45m", "\x1B[1;37;45m", "\x1B[0;30;43m", "\x1B[0;34;43m", "\x1B[0;32;43m", "\x1B[0;36;43m", "\x1B[0;31;43m", "\x1B[0;35;43m", "\x1B[0;33;43m", "\x1B[0;37;43m", "\x1B[1;30;43m", "\x1B[1;34;43m", "\x1B[1;32;43m", "\x1B[1;36;43m", "\x1B[1;31;43m", "\x1B[1;35;43m", "\x1B[1;33;43m", "\x1B[1;37;43m", "\x1B[0;30;47m", "\x1B[0;34;47m", "\x1B[0;32;47m", "\x1B[0;36;47m", "\x1B[0;31;47m", "\x1B[0;35;47m", "\x1B[0;33;47m", "\x1B[0;37;47m", "\x1B[1;30;47m", "\x1B[1;34;47m", "\x1B[1;32;47m", "\x1B[1;36;47m", "\x1B[1;31;47m", "\x1B[1;35;47m", "\x1B[1;33;47m", "\x1B[1;37;47m", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "\x1B[5;30;44m", "\x1B[5;34;44m", "\x1B[5;32;44m", "\x1B[5;36;44m", "\x1B[5;31;44m", "\x1B[5;35;44m", "\x1B[5;33;44m", "\x1B[5;37;44m", "", "", "", "", "", "", "", "", "\x1B[5;30;42m", "\x1B[5;34;42m", "\x1B[5;32;42m", "\x1B[5;36;42m", "\x1B[5;31;42m", "\x1B[5;35;42m", "\x1B[5;33;42m", "\x1B[5;37;42m", "", "", "", "", "", "", "", "", "\x1B[5;30;46m", "\x1B[5;34;46m", "\x1B[5;32;46m", "\x1B[5;36;46m", "\x1B[5;31;46m", "\x1B[5;35;46m", "\x1B[5;33;46m", "\x1B[5;37;46m", "", "", "", "", "", "", "", "", "\x1B[5;30;41m", "\x1B[5;34;41m", "\x1B[5;32;41m", "\x1B[5;36;41m", "\x1B[5;31;41m", "\x1B[5;35;41m", "\x1B[5;33;41m", "\x1B[5;37;41m", "", "", "", "", "", "", "", "", "\x1B[5;30;45m", "\x1B[5;34;45m", "\x1B[5;32;45m", "\x1B[5;36;45m", "\x1B[5;31;45m", "\x1B[5;35;45m", "\x1B[5;33;45m", "\x1B[5;37;45m", "", "", "", "", "", "", "", "", "\x1B[5;30;43m", "\x1B[5;34;43m", "\x1B[5;32;43m", "\x1B[5;36;43m", "\x1B[5;31;43m", "\x1B[5;35;43m", "\x1B[5;33;43m", "\x1B[5;37;43m", "", "", "", "", "", "", "", "", "\x1B[5;30;47m", "\x1B[5;34;47m", "\x1B[5;32;47m", "\x1B[5;36;47m", "\x1B[5;31;47m", "\x1B[5;35;47m", "\x1B[5;33;47m", "\x1B[5;37;47m", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "\x1B[0;30;44m", "\x1B[0;34;44m", "\x1B[0;32;44m", "\x1B[0;36;44m", "\x1B[0;31;44m", "\x1B[0;35;44m", "\x1B[0;33;44m", "\x1B[0;37;44m", "", "", "", "", "", "", "", "", "\x1B[0;30;42m", "\x1B[0;34;42m", "\x1B[0;32;42m", "\x1B[0;36;42m", "\x1B[0;31;42m", "\x1B[0;35;42m", "\x1B[0;33;42m", "\x1B[0;37;42m", "", "", "", "", "", "", "", "", "\x1B[0;30;46m", "\x1B[0;34;46m", "\x1B[0;32;46m", "\x1B[0;36;46m", "\x1B[0;31;46m", "\x1B[0;35;46m", "\x1B[0;33;46m", "\x1B[0;37;46m", "", "", "", "", "", "", "", "", "\x1B[0;30;41m", "\x1B[0;34;41m", "\x1B[0;32;41m", "\x1B[0;36;41m", "\x1B[0;31;41m", "\x1B[0;35;41m", "\x1B[0;33;41m", "\x1B[0;37;41m", "", "", "", "", "", "", "", "", "\x1B[0;30;45m", "\x1B[0;34;45m", "\x1B[0;32;45m", "\x1B[0;36;45m", "\x1B[0;31;45m", "\x1B[0;35;45m", "\x1B[0;33;45m", "\x1B[0;37;45m", "", "", "", "", "", "", "", "", "\x1B[0;30;43m", "\x1B[0;34;43m", "\x1B[0;32;43m", "\x1B[0;36;43m", "\x1B[0;31;43m", "\x1B[0;35;43m", "\x1B[0;33;43m", "\x1B[0;37;43m", "", "", "", "", "", "", "", "", "\x1B[0;30;47m", "\x1B[0;34;47m", "\x1B[0;32;47m", "\x1B[0;36;47m", "\x1B[0;31;47m", "\x1B[0;35;47m", "\x1B[0;33;47m", "\x1B[0;37;47m", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "\x1B[0;30;40m", "\x1B[0;34;40m", "\x1B[0;32;40m", "\x1B[0;36;40m", "\x1B[0;31;40m", "\x1B[0;35;40m", "\x1B[0;33;40m", "\x1B[0;37;40m", "\x1B[1;30;40m", "\x1B[1;34;40m", "\x1B[1;32;40m", "\x1B[1;36;40m", "\x1B[1;31;40m", "\x1B[1;35;40m", "\x1B[1;33;40m", "\x1B[1;37;40m", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "\x1B[5;30;40m", "\x1B[5;34;40m", "\x1B[5;32;40m", "\x1B[5;36;40m", "\x1B[5;31;40m", "\x1B[5;35;40m", "\x1B[5;33;40m", "\x1B[5;37;40m", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "\x1B[0;30;40m", "\x1B[0;34;40m", "\x1B[0;32;40m", "\x1B[0;36;40m", "\x1B[0;31;40m", "\x1B[0;35;40m", "\x1B[0;33;40m", "\x1B[0;37;40m", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "\x1B[5;30;44m", "\x1B[5;34;44m", "\x1B[5;32;44m", "\x1B[5;36;44m", "\x1B[5;31;44m", "\x1B[5;35;44m", "\x1B[5;33;44m", "\x1B[5;37;44m", "", "", "", "", "", "", "", "", "\x1B[5;30;42m", "\x1B[5;34;42m", "\x1B[5;32;42m", "\x1B[5;36;42m", "\x1B[5;31;42m", "\x1B[5;35;42m", "\x1B[5;33;42m", "\x1B[5;37;42m", "", "", "", "", "", "", "", "", "\x1B[5;30;46m", "\x1B[5;34;46m", "\x1B[5;32;46m", "\x1B[5;36;46m", "\x1B[5;31;46m", "\x1B[5;35;46m", "\x1B[5;33;46m", "\x1B[5;37;46m", "", "", "", "", "", "", "", "", "\x1B[5;30;41m", "\x1B[5;34;41m", "\x1B[5;32;41m", "\x1B[5;36;41m", "\x1B[5;31;41m", "\x1B[5;35;41m", "\x1B[5;33;41m", "\x1B[5;37;41m", "", "", "", "", "", "", "", "", "\x1B[5;30;45m", "\x1B[5;34;45m", "\x1B[5;32;45m", "\x1B[5;36;45m", "\x1B[5;31;45m", "\x1B[5;35;45m", "\x1B[5;33;45m", "\x1B[5;37;45m", "", "", "", "", "", "", "", "", "\x1B[5;30;43m", "\x1B[5;34;43m", "\x1B[5;32;43m", "\x1B[5;36;43m", "\x1B[5;31;43m", "\x1B[5;35;43m", "\x1B[5;33;43m", "\x1B[5;37;43m", "", "", "", "", "", "", "", "", "\x1B[5;30;47m", "\x1B[5;34;47m", "\x1B[5;32;47m", "\x1B[5;36;47m", "\x1B[5;31;47m", "\x1B[5;35;47m", "\x1B[5;33;47m", "\x1B[5;37;47m", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "\x1B[5;30;40m", "\x1B[5;34;40m", "\x1B[5;32;40m", "\x1B[5;36;40m", "\x1B[5;31;40m", "\x1B[5;35;40m", "\x1B[5;33;40m", "\x1B[5;37;40m"];
    var _WRAP = /* @__PURE__ */ function(WRAP3) {
      WRAP3[WRAP3["NONE"] = 0] = "NONE";
      WRAP3[WRAP3["WORD"] = 1] = "WORD";
      WRAP3[WRAP3["HARD"] = 2] = "HARD";
      return WRAP3;
    }(_WRAP || {});
    var _BORDER_STYLE = /* @__PURE__ */ function(BORDER_STYLE2) {
      BORDER_STYLE2[BORDER_STYLE2["ASCII"] = 0] = "ASCII";
      BORDER_STYLE2[BORDER_STYLE2["SINGLE"] = 1] = "SINGLE";
      BORDER_STYLE2[BORDER_STYLE2["DOUBLE"] = 2] = "DOUBLE";
      BORDER_STYLE2[BORDER_STYLE2["DOUBLE_X"] = 3] = "DOUBLE_X";
      BORDER_STYLE2[BORDER_STYLE2["DOUBLE_Y"] = 4] = "DOUBLE_Y";
      return BORDER_STYLE2;
    }(_BORDER_STYLE || {});
    var _BORDER_PATTERN = /* @__PURE__ */ function(BORDER_PATTERN2) {
      BORDER_PATTERN2[BORDER_PATTERN2["HORIZONTAL"] = 0] = "HORIZONTAL";
      BORDER_PATTERN2[BORDER_PATTERN2["VERTICAL"] = 1] = "VERTICAL";
      BORDER_PATTERN2[BORDER_PATTERN2["DIAGONAL"] = 2] = "DIAGONAL";
      return BORDER_PATTERN2;
    }(_BORDER_PATTERN || {});
    var _ALIGNMENT = /* @__PURE__ */ function(ALIGNMENT2) {
      ALIGNMENT2[ALIGNMENT2["LEFT"] = 0] = "LEFT";
      ALIGNMENT2[ALIGNMENT2["RIGHT"] = 1] = "RIGHT";
      ALIGNMENT2[ALIGNMENT2["CENTER"] = 2] = "CENTER";
      return ALIGNMENT2;
    }(_ALIGNMENT || {});
    var _LINE_DRAWING = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, 0, {
      TOP_LEFT: ".",
      // ┌
      TOP_RIGHT: ".",
      // ┐
      BOTTOM_RIGHT: ".",
      // ┘
      BOTTOM_LEFT: ".",
      // └
      HORIZONTAL: "-",
      // ─
      VERTICAL: "|",
      // │
      LEFT_T: "|",
      // ┤
      TOP_T: "-",
      // ┴
      RIGHT_T: "|",
      // ├
      BOTTOM_T: "-",
      // ┬
      CROSS: "+"
      // ┼
    }), 1, {
      TOP_LEFT: "\xDA",
      // ┌
      TOP_RIGHT: "\xBF",
      // ┐
      BOTTOM_RIGHT: "\xD9",
      // ┘
      BOTTOM_LEFT: "\xC0",
      // └
      HORIZONTAL: "\xC4",
      // ─
      VERTICAL: "\xB3",
      // │
      LEFT_T: "\xB4",
      // ┤
      TOP_T: "\xC1",
      // ┴
      RIGHT_T: "\xC3",
      // ├
      BOTTOM_T: "\xC2",
      // ┬
      CROSS: "\xC5"
      // ┼
    }), 2, {
      TOP_LEFT: "\xC9",
      // ╔
      TOP_RIGHT: "\xBB",
      // ╗
      BOTTOM_RIGHT: "\xBC",
      // ╝
      BOTTOM_LEFT: "\xC8",
      // ╚
      HORIZONTAL: "\xCD",
      // ═
      VERTICAL: "\xBA",
      // ║
      LEFT_T: "\xB9",
      // ╣
      TOP_T: "\xCA",
      // ╩
      RIGHT_T: "\xCC",
      // ╠
      BOTTOM_T: "\xCB",
      // ╦
      CROSS: "\xCE"
      // ╬
    }), 3, {
      TOP_LEFT: "\xD5",
      // ╒
      TOP_RIGHT: "\xB8",
      // ╕
      BOTTOM_RIGHT: "\xBE",
      // ╛
      BOTTOM_LEFT: "\xD4",
      // ╘
      HORIZONTAL: "\xCD",
      // ═
      VERTICAL: "\xB3",
      // │
      LEFT_T: "\xB5",
      // ╡
      TOP_T: "\xCF",
      // ╧
      RIGHT_T: "\xC6",
      // ╞
      BOTTOM_T: "\xD1",
      // ╤
      CROSS: "\xD8"
      // ╪
    }), 4, {
      TOP_LEFT: "\xD6",
      // ╓
      TOP_RIGHT: "\xB7",
      // ╖
      BOTTOM_RIGHT: "\xBD",
      // ╜
      BOTTOM_LEFT: "\xD3",
      // ╙
      HORIZONTAL: "\xC4",
      // ─
      VERTICAL: "\xBA",
      // ║
      LEFT_T: "\xB6",
      // ╢
      TOP_T: "\xD0",
      // ╨
      RIGHT_T: "\xC7",
      // ╟
      BOTTOM_T: "\xD2",
      // ╥
      CROSS: "\xD7"
      // ╫
    });
    var _ANSIToCGA = {
      30: 0,
      31: 4,
      32: 2,
      33: 6,
      34: 1,
      35: 5,
      36: 3,
      37: 7,
      40: 0,
      41: 4,
      42: 2,
      43: 6,
      44: 1,
      45: 5,
      46: 3,
      47: 7
    };
    var cgadefs = load("cga_defs.js");
    var console = js.global.console;
    var DEFAULT_POSITION = {
      x: 0,
      y: 0
    };
    var DEFAULT_SIZE = {
      width: console.screen_columns,
      height: console.screen_rows
    };
    var DEFAULT_ATTR = cgadefs.BG_BLACK | cgadefs.LIGHTGRAY;
    function getBufferRow(len, attr) {
      var row = [];
      for (var x = 0; x < len; x++) {
        row.push({
          "char": " ",
          attr: attr
        });
      }
      return row;
    }
    function getBuffer(size, attr) {
      var ret = [];
      for (var y = 0; y < size.height; y++) {
        var row = getBufferRow(size.width, attr);
        ret.push(row);
      }
      return ret;
    }
    var BaseWindow = /* @__PURE__ */ function() {
      function BaseWindow2(options) {
        var _options$attr, _options$position, _options$size;
        _classCallCheck(this, BaseWindow2);
        this.updated = false;
        this._cursor = {
          x: 0,
          y: 0
        };
        this._attr = DEFAULT_ATTR;
        this._position = {
          x: 0,
          y: 0
        };
        this._endStop = {
          x: 0,
          y: 0
        };
        this._size = {
          width: 0,
          height: 0
        };
        this._type = "BaseWindow";
        this.attr = (_options$attr = options === null || options === void 0 ? void 0 : options.attr) !== null && _options$attr !== void 0 ? _options$attr : DEFAULT_ATTR;
        this._position = (_options$position = options === null || options === void 0 ? void 0 : options.position) !== null && _options$position !== void 0 ? _options$position : DEFAULT_POSITION;
        if (this._position.x < 0 || this._position.y < 0)
          "".concat(this._type, " position must be >= 0");
        this._size = (_options$size = options === null || options === void 0 ? void 0 : options.size) !== null && _options$size !== void 0 ? _options$size : DEFAULT_SIZE;
        this._endStop = {
          x: this._position.x + this._size.width,
          y: this._position.y + this._size.height
        };
        this._buffer = getBuffer(this._size, this.attr);
      }
      return _createClass(BaseWindow2, [{
        key: "setEndStop",
        value: function setEndStop() {
          this._endStop = {
            x: this._position.x + this._size.width,
            y: this._position.y + this._size.height
          };
        }
      }, {
        key: "attr",
        get: function get() {
          return this._attr;
        },
        set: function set(attr) {
          var a = attr & 255;
          if ((a & 7 << 4) === 0) {
            a |= cgadefs.BG_BLACK;
          }
          this._attr = a;
        }
      }, {
        key: "cursor",
        get: function get() {
          return this._cursor;
        },
        set: function set(cursor) {
          this._cursor = cursor;
        }
      }, {
        key: "position",
        get: function get() {
          return this._position;
        }
      }, {
        key: "endStop",
        get: function get() {
          return this._endStop;
        }
      }, {
        key: "size",
        get: function get() {
          return this._size;
        }
      }, {
        key: "buffer",
        get: function get() {
          return this._buffer;
        }
      }, {
        key: "dataHeight",
        get: function get() {
          return this._buffer.length;
        }
      }, {
        key: "dataWidth",
        get: function get() {
          var lr = 0;
          var _iterator = _createForOfIteratorHelper(this._buffer), _step;
          try {
            for (_iterator.s(); !(_step = _iterator.n()).done; ) {
              var row = _step.value;
              if (row.length > lr)
                lr = row.length;
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }
          return lr;
        }
      }, {
        key: "addRow",
        value: function addRow(y) {
          while (this._buffer.length - 1 < y) {
            this._buffer.push([]);
          }
        }
      }, {
        key: "clear",
        value: function clear() {
          this._buffer = getBuffer(this._size, this.attr);
          this.cursor = {
            x: 0,
            y: 0
          };
        }
      }]);
    }();
    var console2 = js.global.console;
    function getWindowMap(size) {
      var windowMap = [];
      for (var y = 0; y < size.height; y++) {
        var row = [];
        windowMap.push(row);
      }
      return windowMap;
    }
    var WindowManager = /* @__PURE__ */ function(_BaseWindow) {
      function WindowManager2(options) {
        var _this;
        _classCallCheck(this, WindowManager2);
        _this = _callSuper(this, WindowManager2, [options]);
        _this._stack = [];
        _this._windows = {};
        _this._updateBuffer = [];
        _this._updates = 0;
        _this._cells = 0;
        if (_this._position.x + _this._size.width > console2.screen_columns || _this._position.y + _this._size.height > console2.screen_rows) {
          throw new Error("WindowManager cannot exceed terminal dimensions");
        }
        _this._windowMap = getWindowMap(_this._size);
        _this._cells = _this._size.width * _this._size.height;
        _this._type = "WindowManager";
        return _this;
      }
      _inherits(WindowManager2, _BaseWindow);
      return _createClass(WindowManager2, [{
        key: "assertWindow",
        value: function assertWindow(window2) {
          var position = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : window2.position;
          var endStop = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : window2.endStop;
          if (!window2.isOpen)
            return;
          var wz = this._stack.indexOf(window2.id);
          var lastRow = Math.min(endStop.y, this._endStop.y);
          var lastColumn = Math.min(endStop.x, this._endStop.x);
          var wb = window2.view;
          for (var y = position.y; y < lastRow; y++) {
            for (var x = position.x; x < lastColumn; x++) {
              if (this._windowMap[y][x] === void 0 || this._stack.indexOf(this._windowMap[y][x]) < wz) {
                this._windowMap[y][x] = window2.id;
              }
              if (this._windowMap[y][x] === window2.id) {
                var _wb, _wb2;
                this.setData(window2, {
                  x: x,
                  y: y
                }, (_wb = (_wb2 = wb[y - position.y]) === null || _wb2 === void 0 ? void 0 : _wb2[x - position.x]) !== null && _wb !== void 0 ? _wb : {
                  "char": " ",
                  attr: window2.attr
                });
              }
            }
          }
        }
      }, {
        key: "deassertWindow",
        value: function deassertWindow(window2) {
          var lastRow = Math.min(window2.endStop.y, this._endStop.y);
          var lastColumn = Math.min(window2.endStop.x, this._endStop.x);
          for (var y = window2.position.y; y < lastRow; y++) {
            for (var x = window2.position.x; x < lastColumn; x++) {
              if (this._windowMap[y][x] === window2.id) {
                this._windowMap[y][x] = void 0;
              }
            }
          }
          var stackWindow;
          var sr;
          var sb;
          var sx;
          var sy;
          var ex;
          var ey;
          var windowBuffers = {};
          var z = this._stack.indexOf(window2.id) - 1;
          for (z; z >= 0; z--) {
            stackWindow = this._windows[this._stack[z]];
            if (!stackWindow.isOpen)
              continue;
            if (stackWindow.position.x >= lastColumn)
              continue;
            if (stackWindow.position.y >= lastRow)
              continue;
            sr = stackWindow.position.x + stackWindow.size.width;
            if (sr <= window2.position.x)
              continue;
            sb = stackWindow.position.y + stackWindow.size.height;
            if (sb <= window2.position.y)
              continue;
            sx = Math.max(stackWindow.position.x, window2.position.x);
            sy = Math.max(stackWindow.position.y, window2.position.y);
            ex = sr >= lastColumn ? lastColumn : sr;
            ey = sb >= lastRow ? lastRow : sb;
            if (windowBuffers[stackWindow.id] === void 0)
              windowBuffers[stackWindow.id] = stackWindow.view;
            for (var _y = sy; _y < ey; _y++) {
              for (var _x = sx; _x < ex; _x++) {
                if (this._windowMap[_y][_x] === void 0) {
                  var _windowBuffers$stackW;
                  this._windowMap[_y][_x] = stackWindow.id;
                  this.setData(stackWindow, {
                    x: _x,
                    y: _y
                  }, (_windowBuffers$stackW = windowBuffers[stackWindow.id][_y - stackWindow.position.y]) === null || _windowBuffers$stackW === void 0 ? void 0 : _windowBuffers$stackW[_x - stackWindow.position.x]);
                }
              }
            }
          }
        }
        // Returns IDs of 'window' and all descendents sorted by their position in the WindowManager's stack
      }, {
        key: "getWindowStack",
        value: function getWindowStack(window2) {
          var _this2 = this;
          var ws = [window2.id];
          var _iterator2 = _createForOfIteratorHelper(window2.children), _step2;
          try {
            for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
              var child = _step2.value;
              ws = ws.concat(this.getWindowStack(this._windows[child]));
            }
          } catch (err) {
            _iterator2.e(err);
          } finally {
            _iterator2.f();
          }
          ws = ws.sort(function(a, b) {
            var ia = _this2._stack.indexOf(a);
            var ib = _this2._stack.indexOf(b);
            if (ia < ib)
              return -1;
            if (ia > ib)
              return 1;
            return 0;
          });
          return ws;
        }
      }, {
        key: "rebuildBuffer",
        value: function rebuildBuffer() {
          this._buffer = [];
          var defaultCell = {
            "char": " ",
            attr: this._attr
          };
          var windowBuffers = {};
          var overlaps = {};
          var mapRow;
          var window2;
          var windowId;
          var windowRow;
          var windowCell;
          var y;
          var x;
          for (y = 0; y < this._size.height; y++) {
            mapRow = this._windowMap[y];
            for (x = 0; x < this._size.width; x++) {
              windowCell = void 0;
              if (mapRow[x] === void 0) {
                windowCell = defaultCell;
              } else {
                window2 = this._windows[mapRow[x]];
                windowId = window2.id;
                if (windowBuffers[windowId] === void 0)
                  windowBuffers[windowId] = window2.view;
                windowRow = windowBuffers[windowId][y - window2.position.y];
                if (windowRow !== void 0)
                  windowCell = windowRow[x - window2.position.x];
                if (windowCell === void 0)
                  windowCell = defaultCell;
                if (window2.transparent && windowCell["char"] === " ") {
                  var wz = this._stack.indexOf(window2.id);
                  for (var i = wz - 1; i >= 0; i--) {
                    var _windowBuffers$this$_;
                    if (overlaps[this._stack[i]] === void 0)
                      overlaps[this._stack[i]] = this.checkOverlap(window2, this._windows[this._stack[i]]);
                    if (!overlaps[this._stack[i]])
                      continue;
                    if (windowBuffers[this._stack[i]] === void 0)
                      windowBuffers[this._stack[i]] = this._windows[this._stack[i]].view;
                    if (((_windowBuffers$this$_ = windowBuffers[this._stack[i]][y]) === null || _windowBuffers$this$_ === void 0 ? void 0 : _windowBuffers$this$_[x]) === void 0)
                      continue;
                    if (this._windows[this._stack[i]].transparent && windowBuffers[this._stack[i]][y][x]["char"] === " ")
                      continue;
                    windowCell = windowBuffers[this._stack[i]][y][x];
                    break;
                  }
                }
              }
              if (this._buffer[y] === void 0)
                this._buffer[y] = [];
              this._buffer[y][x] = windowCell;
            }
          }
        }
      }, {
        key: "hideCursor",
        value: function hideCursor() {
          console2.write("\x1B[?25l");
        }
      }, {
        key: "showCursor",
        value: function showCursor() {
          console2.write("\x1B[?25h");
        }
      }, {
        key: "checkOverlap",
        value: function checkOverlap(w1, w2) {
          var p1 = w1.position;
          var p2 = w2.position;
          var s1 = w1.size;
          var s2 = w2.size;
          if (p1.x + s1.width <= p2.x || p2.x + s2.width <= p1.x)
            return false;
          if (p1.y + s1.height <= p2.y || p2.y + s2.height <= p1.y)
            return false;
          return true;
        }
      }, {
        key: "getWindowZ",
        value: function getWindowZ(window2) {
          return this._stack.indexOf(window2.id);
        }
      }, {
        key: "setData",
        value: function setData(window2, position, data) {
          if (data === void 0)
            data = {
              "char": " ",
              attr: window2.attr
            };
          if (position.y >= this._size.height)
            return;
          if (position.x >= this._size.width)
            return;
          if (this._windowMap[position.y][position.x] !== window2.id)
            return;
          if (window2.transparent && data["char"] === " ") {
            var wz = this._stack.indexOf(window2.id);
            var w;
            var wb;
            var wc;
            for (var i = wz - 1; i >= 0; i--) {
              var _wb$position$y;
              w = this._windows[this._stack[i]];
              if (!this.checkOverlap(window2, w))
                continue;
              wb = w.view;
              wc = (_wb$position$y = wb[position.y]) === null || _wb$position$y === void 0 ? void 0 : _wb$position$y[position.x];
              if (wc === void 0)
                continue;
              if (w.transparent && wc["char"] === " ")
                continue;
              data = wc;
              break;
            }
          }
          if (this._buffer[position.y][position.x]["char"] === data["char"] && this._buffer[position.y][position.x].attr === data.attr)
            return;
          if (this._updateBuffer[position.y] === void 0)
            this._updateBuffer[position.y] = [];
          this._updateBuffer[position.y][position.x] = data;
          this._buffer[position.y][position.x] = data;
          this._updates++;
        }
      }, {
        key: "addWindow",
        value: function addWindow(window2) {
          if (this._stack.includes(window2.id))
            return;
          this._windows[window2.id] = window2;
          if (window2.parent !== void 0) {
            this._windows[window2.parent].children.push(window2.id);
            var ws = this.getWindowStack(this._windows[window2.parent]);
            var idx = this._stack.indexOf(ws[ws.length - 1]) + 1;
            this._stack.splice(idx, 0, window2.id);
          } else {
            this._stack.push(window2.id);
          }
          this.assertWindow(window2);
        }
      }, {
        key: "openWindow",
        value: function openWindow(window2) {
          if (window2.isOpen)
            return;
          window2.isOpen = true;
          this.assertWindow(window2);
          var _iterator3 = _createForOfIteratorHelper(window2.children), _step3;
          try {
            for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {
              var _this$_windows$child;
              var child = _step3.value;
              (_this$_windows$child = this._windows[child]) === null || _this$_windows$child === void 0 || _this$_windows$child.open();
            }
          } catch (err) {
            _iterator3.e(err);
          } finally {
            _iterator3.f();
          }
        }
      }, {
        key: "moveWindowTo",
        value: function moveWindowTo(window2, newPosition) {
          if (!window2.isOpen)
            return;
          this.deassertWindow(window2);
          var newLastRow = Math.min(newPosition.y + window2.size.height, this._endStop.y);
          var newLastColumn = Math.min(newPosition.x + window2.size.width, this._endStop.x);
          this.assertWindow(window2, newPosition, {
            x: newLastColumn,
            y: newLastRow
          });
        }
      }, {
        key: "moveWindow",
        value: function moveWindow(window2) {
          var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
          var y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
          return this.moveWindowTo(window2, {
            x: window2.position.x + x,
            y: window2.position.y + y
          });
        }
      }, {
        key: "closeWindow",
        value: function closeWindow(window2) {
          if (!window2.isOpen)
            return;
          var _iterator4 = _createForOfIteratorHelper(window2.children), _step4;
          try {
            for (_iterator4.s(); !(_step4 = _iterator4.n()).done; ) {
              var child = _step4.value;
              this._windows[child].close();
            }
          } catch (err) {
            _iterator4.e(err);
          } finally {
            _iterator4.f();
          }
          this.deassertWindow(window2);
          window2.isOpen = false;
        }
      }, {
        key: "removeWindow",
        value: function removeWindow(window2) {
          var wz = this._stack.indexOf(window2.id);
          if (wz > -1)
            this._stack.splice(wz, 1);
          delete this._windows[window2.id];
          var _iterator5 = _createForOfIteratorHelper(window2.children), _step5;
          try {
            for (_iterator5.s(); !(_step5 = _iterator5.n()).done; ) {
              var _this$_windows$child2;
              var child = _step5.value;
              (_this$_windows$child2 = this._windows[child]) === null || _this$_windows$child2 === void 0 || _this$_windows$child2.remove();
            }
          } catch (err) {
            _iterator5.e(err);
          } finally {
            _iterator5.f();
          }
          if (window2.parent !== void 0) {
            this._windows[window2.parent].children = this._windows[window2.parent].children.filter(function(e) {
              return e !== window2.id;
            });
          }
          return this.closeWindow(window2);
        }
      }, {
        key: "resizeWindow",
        value: function resizeWindow(window2, newSize) {
          if (!window2.isOpen)
            return;
          var wz = this._stack.indexOf(window2.id);
          if (wz < 0)
            return;
          var newEndStop = {
            x: window2.position.x + newSize.width,
            y: window2.position.y + newSize.height
          };
          var lastRow = Math.min(Math.max(window2.endStop.y, newEndStop.y), this._endStop.y);
          var lastColumn = Math.min(Math.max(window2.endStop.x, newEndStop.x), this._endStop.x);
          var stackWindow;
          var wb = window2.view;
          for (var y = window2.position.y; y < lastRow; y++) {
            for (var x = window2.position.x; x < lastColumn; x++) {
              if ((y >= newEndStop.y || x >= newEndStop.x) && this._windowMap[y][x] === window2.id) {
                this._windowMap[y][x] = void 0;
                for (var z = wz - 1; z >= 0; z--) {
                  var _swb;
                  stackWindow = this._windows[this._stack[z]];
                  if (!stackWindow.isOpen)
                    continue;
                  if (y < stackWindow.position.y || y >= stackWindow.position.y + stackWindow.size.height)
                    continue;
                  if (x < stackWindow.position.x || x >= stackWindow.position.x + stackWindow.size.width)
                    continue;
                  this._windowMap[y][x] = stackWindow.id;
                  var swb = stackWindow.view;
                  this.setData(stackWindow, {
                    x: x,
                    y: y
                  }, (_swb = swb[y - window2.position.y]) === null || _swb === void 0 ? void 0 : _swb[x - window2.position.x]);
                  break;
                }
              } else if (y >= window2.endStop.y || x >= window2.endStop.x) {
                if (this._windowMap[y][x] === void 0 || this._stack.indexOf(this._windowMap[y][x]) < wz) {
                  this._windowMap[y][x] = window2.id;
                }
                if (this._windowMap[y][x] === window2.id) {
                  var _wb3;
                  this.setData(window2, {
                    x: x,
                    y: y
                  }, (_wb3 = wb[y - window2.position.y]) === null || _wb3 === void 0 ? void 0 : _wb3[x - window2.position.x]);
                }
              }
            }
          }
        }
      }, {
        key: "raiseWindow",
        value: function raiseWindow(window2) {
          var top = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
          var wz = this._stack.indexOf(window2.id);
          var ws = this.getWindowStack(window2);
          this._stack = this._stack.filter(function(e) {
            return ws.indexOf(e) < 0;
          });
          if (window2.parent !== void 0) {
            var _this$_stack;
            var i = wz;
            for (i; i < this._stack.length; i++) {
              if (this._windows[this._stack[i]].parent !== window2.parent)
                break;
            }
            (_this$_stack = this._stack).splice.apply(_this$_stack, [i, 0].concat(_toConsumableArray(ws)));
          } else {
            if (top || wz >= this._stack.length - 1) {
              this._stack = this._stack.concat(ws);
            } else {
              var _this$_stack2;
              var _i = wz;
              for (_i; _i < this._stack.length; _i++) {
                if (this._windows[this._stack[_i]].parent === void 0)
                  break;
              }
              var ss = this.getWindowStack(this._windows[this._stack[_i]]);
              var ni = this._stack.indexOf(ss[ss.length - 1]) + 1;
              (_this$_stack2 = this._stack).splice.apply(_this$_stack2, [ni, 0].concat(_toConsumableArray(ws)));
            }
          }
          for (var _i2 = ws.length - 1; _i2 >= 0; _i2--) {
            this.assertWindow(this._windows[ws[_i2]]);
          }
        }
      }, {
        key: "lowerWindow",
        value: function lowerWindow(window2) {
          var bottom = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
          var wz = this._stack.indexOf(window2.id);
          var ws = this.getWindowStack(window2);
          this._stack = this._stack.filter(function(e) {
            return ws.indexOf(e) < 0;
          });
          if (window2.parent !== void 0) {
            var _this$_stack3;
            var pi = this._stack.indexOf(window2.parent);
            (_this$_stack3 = this._stack).splice.apply(_this$_stack3, [pi + 1, 0].concat(_toConsumableArray(ws)));
          } else {
            if (bottom || wz - 1 <= 0) {
              var _this$_stack4;
              (_this$_stack4 = this._stack).splice.apply(_this$_stack4, [0, 0].concat(_toConsumableArray(ws)));
            } else {
              var _this$_stack5;
              var i = wz - 1;
              for (i; i > 0; i--) {
                if (this._windows[this._stack[i]].parent === void 0)
                  break;
              }
              (_this$_stack5 = this._stack).splice.apply(_this$_stack5, [i - 1, 0].concat(_toConsumableArray(ws)));
            }
          }
          for (var _i3 = this._stack.length - 1; _i3 >= 0; _i3--) {
            this.assertWindow(this._windows[this._stack[_i3]]);
          }
        }
      }, {
        key: "refresh",
        value: function refresh() {
          var y;
          var x;
          var sx = 0;
          var cell;
          var row;
          var rowString;
          var lastAttr;
          var lx;
          var lastColumn = this._endStop.x - 1;
          var lastRow = this._endStop.y - 1;
          var lr = this._updateBuffer.length;
          for (y = 0; y < lr; y++) {
            row = this._updateBuffer[y];
            if (row === void 0)
              continue;
            sx = 0;
            rowString = "";
            lx = this._updateBuffer[y].length;
            for (x = 0; x < lx; x++) {
              cell = row[x];
              if (cell === void 0) {
                sx++;
              } else {
                if (cell.attr !== lastAttr) {
                  rowString += _ATTR_TO_ANSI[cell.attr];
                  lastAttr = cell.attr;
                }
                if (sx > 0) {
                  rowString += "\x1B[".concat(sx, "C");
                  sx = 0;
                }
                rowString += cell["char"];
              }
            }
            if (y === lastRow && x >= lastColumn) {
              console2.write("\x1B[".concat(this.position.y + y + 1, ";").concat(this.position.x + 1, "H\x1B[?7l").concat(rowString, "\x1B[?7h"));
            } else {
              console2.write("\x1B[".concat(this.position.y + y + 1, ";").concat(this.position.x + 1, "H").concat(rowString));
            }
          }
          this._updateBuffer = [];
          this._updates = 0;
        }
      }, {
        key: "draw",
        value: function draw() {
          var rebuild = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
          if (rebuild)
            this.rebuildBuffer();
          var y;
          var x;
          var cell;
          var row;
          var rowString;
          var lastAttr;
          var lx;
          var lastColumn = this._endStop.x - 1;
          var lastRow = this._endStop.y - 1;
          var lr = this._buffer.length;
          for (y = 0; y < lr; y++) {
            row = this._buffer[y];
            rowString = "";
            lx = this._buffer[y].length;
            for (x = 0; x < lx; x++) {
              cell = row[x];
              if (cell.attr !== lastAttr) {
                rowString += _ATTR_TO_ANSI[cell.attr];
                lastAttr = cell.attr;
              }
              rowString += cell["char"];
            }
            if (y === lastRow && x >= lastColumn) {
              console2.write("\x1B[".concat(this.position.y + y + 1, ";").concat(this.position.x + 1, "H\x1B[?7l").concat(rowString, "\x1B[?7h"));
            } else {
              console2.write("\x1B[".concat(this.position.y + y + 1, ";").concat(this.position.x + 1, "H").concat(rowString));
            }
          }
          this._updateBuffer = [];
          this._updates = 0;
        }
        // Sometimes 'draw' is faster overall depending on number of updates
        // Need to test with both methods and different numbers of cells updated and see how long each takes
        // For now we'll use 50% of cells updated as the threshold, but it may be more or less than that
      }, {
        key: "update",
        value: function update() {
          if (this._updates > this._cells / 2) {
            this.draw();
          } else {
            this.refresh();
          }
        }
      }]);
    }(BaseWindow);
    var cgadefs2 = load("cga_defs.js");
    var _js$global2 = js.global, lfexpand = _js$global2.lfexpand, word_wrap = _js$global2.word_wrap, str_is_utf8 = _js$global2.str_is_utf8;
    var Window = /* @__PURE__ */ function(_BaseWindow2) {
      function Window2(options) {
        var _this3;
        _classCallCheck(this, Window2);
        _this3 = _callSuper(this, Window2, [options]);
        _this3.isOpen = true;
        _this3.children = [];
        _this3.offset = {
          x: 0,
          y: 0
        };
        _this3.autoScroll = true;
        _this3.transparent = false;
        _this3._scrollBack = {
          width: Infinity,
          height: Infinity
        };
        _this3._wrap = 1;
        _this3.id = Symbol(options.name);
        _this3.windowManager = options.windowManager;
        _this3._parent = options.parent;
        _this3._type = "Window";
        _this3._buffer = [];
        _this3.windowManager.addWindow(_this3);
        return _this3;
      }
      _inherits(Window2, _BaseWindow2);
      return _createClass(Window2, [{
        key: "parent",
        get: function get() {
          return this._parent;
        }
      }, {
        key: "view",
        get: function get() {
          var yy = Math.max(0, Math.min(this.offset.y, this._buffer.length - this._size.height));
          var buffer = this._buffer.slice(yy);
          for (var y = 0; y < buffer.length; y++) {
            buffer[y] = buffer[y].slice(this.offset.x, this.endStop.x);
          }
          return buffer;
        }
      }, {
        key: "position",
        get: function get() {
          return this._position;
        },
        set: function set(position) {
          this.moveTo(position);
        }
      }, {
        key: "size",
        get: function get() {
          return this._size;
        },
        set: function set(size) {
          this.resize(size);
        }
      }, {
        key: "z",
        get: function get() {
          return this.windowManager.getWindowZ(this);
        }
      }, {
        key: "wrap",
        get: function get() {
          return this._wrap;
        },
        set: function set(wrap) {
          this._wrap = wrap;
        }
      }, {
        key: "scrollBack",
        get: function get() {
          return this._scrollBack;
        },
        set: function set(size) {
          if (size.width < 1 || size.height < 1)
            throw new Error("".concat(this.id.toString(), " invalid scrollBack dimensions"));
          this._scrollBack = size;
        }
      }, {
        key: "open",
        value: function open() {
          this.windowManager.openWindow(this);
        }
      }, {
        key: "close",
        value: function close() {
          this.windowManager.closeWindow(this);
        }
      }, {
        key: "remove",
        value: function remove() {
          this.windowManager.removeWindow(this);
        }
      }, {
        key: "_clear",
        value: function _clear() {
          this._buffer = [];
          this.cursor = {
            x: 0,
            y: 0
          };
          this.offset = {
            x: 0,
            y: 0
          };
          for (var y = 0; y < this._size.height; y++) {
            for (var x = 0; x < this._size.width; x++) {
              this.windowManager.setData(this, {
                x: this.position.x + x,
                y: this.position.y + y
              }, {
                "char": " ",
                attr: this._attr
              });
            }
          }
        }
      }, {
        key: "clear",
        value: function clear() {
          this._clear();
        }
      }, {
        key: "_setData",
        value: function _setData(position, data) {
          if (this._buffer[position.y] === void 0)
            this.addRow(position.y);
          var cell = this._buffer[position.y][position.x];
          if (cell === void 0 || cell["char"] !== data["char"] || cell.attr !== data.attr) {
            this._buffer[position.y][position.x] = data;
            var offsetPosition = {
              x: this.position.x + position.x - this.offset.x,
              y: this.position.y + position.y - this.offset.y
            };
            if (offsetPosition.x < this._endStop.x && offsetPosition.y < this._endStop.y) {
              this.windowManager.setData(this, offsetPosition, data);
            }
          }
          if (this._buffer.length >= this._scrollBack.height) {
            this._buffer.shift();
            this.scroll(0, -1);
            if (this.offset.y > 0)
              this.offset.y = this.offset.y - 1;
            if (this._cursor.y > 0)
              this._cursor.y--;
          }
        }
      }, {
        key: "setData",
        value: function setData(position, data) {
          this._setData(position, data);
        }
      }, {
        key: "_scrollTo",
        value: function _scrollTo(position) {
          if (position.x < 0) {
            position.x = 0;
          } else {
            var dw = this.dataWidth;
            if (position.x + this._size.width > dw) {
              position.x = Math.max(0, dw - this._size.width);
            }
          }
          if (position.y < 0) {
            position.y = 0;
          } else {
            var dh = this.dataHeight;
            if (position.y + this._size.height > dh) {
              position.y = Math.max(0, dh - this._size.height);
            }
          }
          var defaultData = {
            "char": " ",
            attr: this._attr
          };
          var oldData;
          var newData;
          for (var y = 0; y < this._size.height; y++) {
            for (var x = 0; x < this._size.width; x++) {
              var _this$_buffer, _this$_buffer2;
              oldData = (_this$_buffer = this._buffer[y + this.offset.y]) === null || _this$_buffer === void 0 ? void 0 : _this$_buffer[x + this.offset.x];
              newData = (_this$_buffer2 = this._buffer[y + position.y]) === null || _this$_buffer2 === void 0 ? void 0 : _this$_buffer2[x + position.x];
              if (newData === void 0)
                newData = defaultData;
              if (oldData === void 0 || newData["char"] !== oldData["char"] || newData.attr !== oldData.attr) {
                this.windowManager.setData(this, {
                  x: this.position.x + x,
                  y: this.position.y + y
                }, newData);
              }
            }
          }
          this.offset = position;
        }
      }, {
        key: "scrollTo",
        value: function scrollTo(position) {
          if (position.x < 0 && position.y < 0)
            return;
          this._scrollTo(position);
        }
      }, {
        key: "_scroll",
        value: function _scroll(x, y) {
          var xx = this.offset.x + x;
          var yy = this.offset.y + y;
          if (yy < 0 && xx < 0)
            return;
          this.scrollTo({
            x: xx,
            y: yy
          });
        }
      }, {
        key: "scroll",
        value: function scroll(x, y) {
          this._scroll(x, y);
        }
      }, {
        key: "wrapString",
        value: function wrapString(str) {
          var arr = lfexpand(str).split("\r\n");
          var u = str_is_utf8(str);
          var l = arr.length;
          arr[0] = lfexpand(word_wrap(arr[0], this.size.width - this._cursor.x, arr[0].length, true, u)).replace(/\r\n$/, "");
          for (var s = 1; s < l; s++) {
            if (arr[s] === "")
              continue;
            arr[s] = lfexpand(word_wrap(arr[s], this.size.width, arr[s].length, true, u)).replace(/\r\n$/, "");
          }
          str = arr.join("\r\n");
          return str;
        }
      }, {
        key: "_write",
        value: function _write(str, attr) {
          var handleCtrlA = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
          var width = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Infinity;
          if (attr !== void 0)
            this._attr = attr;
          if (this.wrap === 1)
            str = this.wrapString(str);
          var ctrlA = false;
          var c;
          var p;
          for (var n = 0; n < str.length; n++) {
            p = false;
            c = str.charAt(n);
            if (ctrlA && handleCtrlA) {
              ctrlA = false;
              switch (c.toUpperCase()) {
                case "K":
                  this._attr &= ~7;
                  this._attr &= cgadefs2.BLACK;
                  break;
                case "R":
                  this._attr &= ~7;
                  this._attr |= cgadefs2.RED;
                  break;
                case "G":
                  this._attr &= ~7;
                  this._attr |= cgadefs2.GREEN;
                  break;
                case "Y":
                  this._attr &= ~7;
                  this._attr |= cgadefs2.BROWN;
                  break;
                case "B":
                  this._attr &= ~7;
                  this._attr |= cgadefs2.BLUE;
                  break;
                case "M":
                  this._attr &= ~7;
                  this._attr |= cgadefs2.MAGENTA;
                  break;
                case "C":
                  this._attr &= ~7;
                  this._attr |= cgadefs2.CYAN;
                  break;
                case "W":
                  this._attr &= ~7;
                  this._attr |= cgadefs2.LIGHTGRAY;
                  break;
                case "0":
                  this._attr &= ~(7 << 4);
                  this._attr |= cgadefs2.BG_BLACK;
                  break;
                case "1":
                  this._attr &= ~(7 << 4);
                  this._attr |= cgadefs2.BG_RED;
                  break;
                case "2":
                  this._attr &= ~(7 << 4);
                  this._attr |= cgadefs2.BG_GREEN;
                  break;
                case "3":
                  this._attr &= ~(7 << 4);
                  this._attr |= cgadefs2.BG_BROWN;
                  break;
                case "4":
                  this._attr &= ~(7 << 4);
                  this._attr |= cgadefs2.BG_BLUE;
                  break;
                case "5":
                  this._attr &= ~(7 << 4);
                  this._attr |= cgadefs2.BG_MAGENTA;
                  break;
                case "6":
                  this._attr &= ~(7 << 4);
                  this._attr |= cgadefs2.BG_CYAN;
                  break;
                case "7":
                  this._attr &= ~(7 << 4);
                  this._attr |= cgadefs2.BG_LIGHTGRAY;
                  break;
                case "H":
                  this._attr |= 1 << 3;
                  break;
                case "N":
                case "-":
                case "_":
                  this._attr &= ~(1 << 3);
                  break;
                default:
                  break;
              }
            } else {
              switch (c) {
                case "\0":
                case "":
                case "":
                case "":
                case "":
                case "":
                case "\x07":
                case "\v":
                case "\f":
                case "":
                case "":
                case "":
                case "":
                case "":
                case "":
                case "":
                case "":
                case "":
                case "":
                case "":
                case "":
                case "":
                case "\x1B":
                case "":
                case "":
                case "":
                case "":
                  break;
                case "":
                  ctrlA = true;
                  break;
                case "\b":
                  if (this._cursor.x > 0)
                    this._cursor.x--;
                  break;
                case "\n":
                  this._cursor.x = 0;
                  break;
                case "\r":
                  this._cursor.y++;
                  break;
                case "	":
                  break;
                default:
                  p = true;
                  break;
              }
              if (!p)
                continue;
              this._setData({
                x: this._cursor.x,
                y: this._cursor.y
              }, {
                "char": c,
                attr: this._attr
              });
              this._cursor.x++;
              if (this.wrap === 2 && this._cursor.x >= this.size.width || width < Infinity && this._cursor.x >= width) {
                this._cursor.x = 0;
                this._cursor.y++;
              }
            }
          }
          if (this.autoScroll && this._cursor.y >= this.offset.y + this._size.height) {
            this.scrollTo({
              x: this.offset.x,
              y: this._buffer.length - this._size.height
            });
          }
        }
      }, {
        key: "write",
        value: function write(str, attr, handleCtrlA, width) {
          this._write(str, attr, handleCtrlA, width);
        }
      }, {
        key: "_writeAnsi",
        value: function _writeAnsi(str) {
          var _opts$2, _opts$3, _opts$5, _opts$6, _opts$7, _opts$8;
          var width = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Infinity;
          var match;
          var s;
          var p1;
          var p2;
          var opts;
          var popCursor = _objectSpread({}, this.cursor);
          var re = /\x1b\[((?:[\x30-\x3f]{0,2};?)*)([\x20-\x2f]*)([\x40-\x7c])/;
          this.autoScroll = false;
          this.wrap = 0;
          while (str.length > 0) {
            match = str.match(re);
            if (match === null || match.index === void 0)
              break;
            this.write(str.substring(0, match.index), this._attr, false, width);
            str = str.substring(match.index + match[0].length);
            opts = match[1].split(";").map(function(e) {
              var n = parseInt(e, 10);
              if (isNaN(n))
                return null;
              return n;
            });
            switch (match[3]) {
              case "A":
                if (this._cursor.y > 0) {
                  var _opts$;
                  var p12 = (_opts$ = opts[0]) !== null && _opts$ !== void 0 ? _opts$ : 1;
                  this._cursor.y = Math.max(0, this._cursor.y - p12);
                }
                break;
              case "B":
                p1 = (_opts$2 = opts[0]) !== null && _opts$2 !== void 0 ? _opts$2 : 1;
                this._cursor.y += p1;
                break;
              case "C":
                p1 = (_opts$3 = opts[0]) !== null && _opts$3 !== void 0 ? _opts$3 : 1;
                this._cursor.x += p1;
                break;
              case "D":
                if (this._cursor.x > 0) {
                  var _opts$4;
                  p1 = (_opts$4 = opts[0]) !== null && _opts$4 !== void 0 ? _opts$4 : 1;
                  this._cursor.x = Math.max(0, this._cursor.x - p1);
                }
                break;
              case "f":
              case "H":
                p1 = (_opts$5 = opts[0]) !== null && _opts$5 !== void 0 ? _opts$5 : 1;
                p2 = (_opts$6 = opts[1]) !== null && _opts$6 !== void 0 ? _opts$6 : 1;
                this._cursor = {
                  x: p2,
                  y: p1
                };
                break;
              case "J":
                p1 = (_opts$7 = opts[0]) !== null && _opts$7 !== void 0 ? _opts$7 : 0;
                if (p1 === 0) {
                  for (var x = this._cursor.x; x < this._buffer[this._cursor.y].length; x++) {
                    this._setData({
                      x: x,
                      y: this._cursor.y
                    }, {
                      "char": " ",
                      attr: this.attr
                    });
                  }
                  for (var y = this._cursor.y + 1; y < this.dataHeight; y++) {
                    for (var _x2 = 0; _x2 < this._buffer[y].length; _x2++) {
                      this._setData({
                        x: _x2,
                        y: y
                      }, {
                        "char": " ",
                        attr: this.attr
                      });
                    }
                  }
                } else if (p1 === 1) {
                  var cy = this._cursor.y;
                  for (var _y2 = 0; _y2 < cy; _y2++) {
                    var cw = this._buffer[_y2].length;
                    for (var _x3 = 0; _x3 < cw; _x3++) {
                      this._setData({
                        x: _x3,
                        y: _y2
                      }, {
                        "char": " ",
                        attr: this.attr
                      });
                    }
                  }
                  for (var _x4 = 0; _x4 <= this._cursor.x; _x4++) {
                    this._setData({
                      x: _x4,
                      y: cy
                    }, {
                      "char": " ",
                      attr: this.attr
                    });
                  }
                } else if (p1 === 2) {
                  this.clear();
                }
                break;
              case "K":
                p1 = (_opts$8 = opts[0]) !== null && _opts$8 !== void 0 ? _opts$8 : 0;
                if (p1 === 0) {
                  for (var _x5 = this._cursor.x; _x5 < this._buffer[this._cursor.y].length; _x5++) {
                    this._setData({
                      x: _x5,
                      y: this._cursor.y
                    }, {
                      "char": " ",
                      attr: this.attr
                    });
                  }
                } else if (p1 === 1) {
                  for (var _x6 = 0; _x6 <= this._cursor.x; _x6++) {
                    this._setData({
                      x: _x6,
                      y: this._cursor.y
                    }, {
                      "char": " ",
                      attr: this.attr
                    });
                  }
                } else if (p1 === 2) {
                  for (var _x7 = 0; _x7 < this._buffer[this._cursor.y].length; _x7++) {
                    this._setData({
                      x: _x7,
                      y: this._cursor.y
                    }, {
                      "char": " ",
                      attr: this.attr
                    });
                  }
                }
                break;
              case "m":
                var _iterator6 = _createForOfIteratorHelper(opts), _step6;
                try {
                  for (_iterator6.s(); !(_step6 = _iterator6.n()).done; ) {
                    var o = _step6.value;
                    if (o === null)
                      continue;
                    if (o === 0) {
                      this.attr = cgadefs2.BG_BLACK | cgadefs2.LIGHTGRAY;
                    } else if (o === 1) {
                      this.attr |= 1 << 3;
                    } else if (o === 2 || o === 22) {
                      this.attr &= ~(1 << 3);
                    } else if (o === 7 || o === 27) {
                      this.attr &= ~(7 | 7 << 4);
                      this.attr |= (this.attr & 7 << 4) >>> 4;
                      this.attr |= (this.attr & 7) << 4;
                    } else if (o === 8) {
                      this.attr &= ~3;
                      this.attr |= (this.attr & 7 << 4) >>> 4;
                    } else if (o >= 30 && o <= 37) {
                      this.attr &= ~7;
                      this.attr |= _ANSIToCGA[o];
                    } else if (o >= 40 && o <= 47) {
                      this.attr &= ~(7 << 4);
                      this.attr |= _ANSIToCGA[o] << 4;
                    }
                  }
                } catch (err) {
                  _iterator6.e(err);
                } finally {
                  _iterator6.f();
                }
                break;
              case "s":
                this.cursor = _objectSpread({}, popCursor);
                break;
              case "u":
                popCursor = _objectSpread({}, this.cursor);
                break;
              case "@":
              case "L":
              case "M":
              case "P":
              case "X":
              case "S":
              case "T":
              case "n":
              case "Z":
              default:
                break;
            }
          }
          this.write(str, this.attr, false, width);
        }
      }, {
        key: "writeAnsi",
        value: function writeAnsi(str, width) {
          this._writeAnsi(str, width);
        }
      }, {
        key: "_moveTo",
        value: function _moveTo(position) {
          this.windowManager.moveWindowTo(this, position);
          this._position = position;
          this.setEndStop();
        }
      }, {
        key: "moveTo",
        value: function moveTo(position) {
          this._moveTo(position);
        }
      }, {
        key: "_move",
        value: function _move() {
          var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
          var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
          this.windowManager.moveWindow(this, x, y);
          this._position = {
            x: this._position.x + x,
            y: this._position.y + y
          };
          this.setEndStop();
        }
      }, {
        key: "move",
        value: function move() {
          var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
          var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
          this._move(x, y);
        }
      }, {
        key: "_resize",
        value: function _resize(size) {
          this.windowManager.resizeWindow(this, size);
          this._size = size;
          this.setEndStop();
        }
      }, {
        key: "resize",
        value: function resize(size) {
          this._resize(size);
        }
      }, {
        key: "_raise",
        value: function _raise(top) {
          this.windowManager.raiseWindow(this, top);
        }
      }, {
        key: "raise",
        value: function raise(top) {
          this._raise(top);
        }
      }, {
        key: "_lower",
        value: function _lower(bottom) {
          this.windowManager.lowerWindow(this, bottom);
        }
      }, {
        key: "lower",
        value: function lower(bottom) {
          this._lower(bottom);
        }
      }]);
    }(BaseWindow);
    var cgadefs3 = load("cga_defs.js");
    var ScrollBar = /* @__PURE__ */ function() {
      function ScrollBar2(scrollable, attr) {
        _classCallCheck(this, ScrollBar2);
        this.position = {
          x: 0,
          y: 0
        };
        this.size = {
          width: 0,
          height: 0
        };
        this.attr = cgadefs3.BG_BLACK | cgadefs3.LIGHTGRAY;
        this.scrollable = scrollable;
        if (attr !== void 0)
          this.attr = attr;
      }
      return _createClass(ScrollBar2, [{
        key: "draw",
        value: function draw() {
        }
      }, {
        key: "resize",
        value: function resize() {
        }
      }, {
        key: "update",
        value: function update() {
        }
      }]);
    }();
    var VScrollBar = /* @__PURE__ */ function(_ScrollBar) {
      function VScrollBar2(scrollable, attr) {
        var _this4;
        _classCallCheck(this, VScrollBar2);
        _this4 = _callSuper(this, VScrollBar2, [scrollable, attr]);
        _this4.scrollable.resize({
          width: _this4.scrollable.size.width - 1,
          height: _this4.scrollable.size.height
        });
        _this4.position = {
          x: _this4.scrollable.position.x + _this4.scrollable.size.width,
          y: _this4.scrollable.position.y
        };
        _this4.size = {
          width: 1,
          height: _this4.scrollable.size.height
        };
        _this4.track = new Window({
          position: _this4.position,
          size: _this4.size,
          windowManager: _this4.scrollable.windowManager,
          attr: attr,
          parent: scrollable.id,
          name: "Track"
        });
        _this4.handle = new Window({
          position: {
            x: _this4.position.x,
            y: _this4.position.y + 1
          },
          size: {
            width: 1,
            height: 1
          },
          windowManager: _this4.scrollable.windowManager,
          attr: attr,
          parent: _this4.track.id,
          name: "Handle"
        });
        _this4.draw();
        return _this4;
      }
      _inherits(VScrollBar2, _ScrollBar);
      return _createClass(VScrollBar2, [{
        key: "resize",
        value: function resize() {
          this.size = {
            width: 1,
            height: this.scrollable.size.height
          };
          this.track.resize(this.size);
          this.track.moveTo(this.position);
          this.draw();
        }
      }, {
        key: "draw",
        value: function draw() {
          this.track.setData({
            x: 0,
            y: 0
          }, {
            "char": "",
            attr: this.attr
          });
          var trackCell = {
            "char": "\xB0",
            attr: this.attr
          };
          for (var y = 1; y < this.track.size.height; y++) {
            this.track.setData({
              x: 0,
              y: y
            }, trackCell);
          }
          this.track.setData({
            x: 0,
            y: this.track.size.height - 1
          }, {
            "char": "",
            attr: this.attr
          });
          this.update();
        }
      }, {
        key: "scaleHandle",
        value: function scaleHandle() {
          var scrollArea = this.track.size.height - 2;
          var height;
          if (this.scrollable.size.height >= this.scrollable.dataHeight) {
            height = scrollArea;
          } else {
            height = Math.ceil(scrollArea * (this.scrollable.size.height / this.scrollable.dataHeight));
          }
          this.handle.resize({
            width: 1,
            height: height
          });
        }
      }, {
        key: "positionHandle",
        value: function positionHandle() {
          var y = this.track.position.y + 1;
          if (this.scrollable.offset.y > 0) {
            y += Math.round(this.scrollable.offset.y * (this.scrollable.size.height / this.scrollable.dataHeight));
          }
          if (y + this.handle.size.height >= this.track.position.y + this.track.size.height - 1) {
            y = this.track.position.y + this.track.size.height - this.handle.size.height - 1;
          }
          this.handle.moveTo({
            x: this.handle.position.x,
            y: y
          });
        }
      }, {
        key: "update",
        value: function update() {
          if (this.scrollable.size.height >= this.scrollable.dataHeight) {
            if (this.track.isOpen) {
              this.track.close();
              this.scrollable.resize({
                width: this.scrollable.size.width + 1,
                height: this.scrollable.size.height
              });
            }
          } else {
            if (!this.track.isOpen) {
              this.scrollable.resize({
                width: this.scrollable.size.width - 1,
                height: this.scrollable.size.height
              });
              this.track.open();
            }
            this.scaleHandle();
            this.positionHandle();
            var handleCell = {
              "char": "\xDB",
              attr: this.attr
            };
            for (var y = 0; y < this.handle.size.height; y++) {
              this.handle.setData({
                x: 0,
                y: y
              }, handleCell);
            }
          }
        }
      }]);
    }(ScrollBar);
    var HScrollBar = /* @__PURE__ */ function(_ScrollBar2) {
      function HScrollBar2(scrollable, attr) {
        var _this5;
        _classCallCheck(this, HScrollBar2);
        _this5 = _callSuper(this, HScrollBar2, [scrollable, attr]);
        _this5.scrollable.resize({
          width: _this5.scrollable.size.width,
          height: _this5.scrollable.size.height - 1
        });
        _this5.position = {
          x: _this5.scrollable.position.x,
          y: _this5.scrollable.position.y + _this5.scrollable.size.height
        };
        _this5.size = {
          width: _this5.scrollable.size.width,
          height: 1
        };
        _this5.track = new Window({
          position: _this5.position,
          size: _this5.size,
          windowManager: _this5.scrollable.windowManager,
          attr: attr,
          parent: scrollable.id,
          name: "Track"
        });
        _this5.handle = new Window({
          position: {
            x: _this5.position.x + 1,
            y: _this5.position.y
          },
          size: {
            width: 1,
            height: 1
          },
          windowManager: _this5.scrollable.windowManager,
          attr: attr,
          parent: _this5.track.id,
          name: "Handle"
        });
        _this5.draw();
        return _this5;
      }
      _inherits(HScrollBar2, _ScrollBar2);
      return _createClass(HScrollBar2, [{
        key: "resize",
        value: function resize() {
          this.size = {
            width: this.scrollable.size.width,
            height: 1
          };
          this.track.resize(this.size);
          this.track.moveTo(this.position);
          this.draw();
        }
      }, {
        key: "draw",
        value: function draw() {
          this.track.setData({
            x: 0,
            y: 0
          }, {
            "char": "",
            attr: this.attr
          });
          var trackCell = {
            "char": "\xB0",
            attr: this.attr
          };
          for (var x = 1; x < this.track.size.width - 1; x++) {
            this.track.setData({
              x: x,
              y: 0
            }, trackCell);
          }
          this.track.setData({
            x: this.track.size.width - 1,
            y: 0
          }, {
            "char": "",
            attr: this.attr
          });
          this.update();
        }
      }, {
        key: "scaleHandle",
        value: function scaleHandle() {
          var dw = this.scrollable.dataWidth;
          var scrollArea = this.track.size.width - 2;
          var width;
          if (this.scrollable.size.width >= dw) {
            width = scrollArea;
          } else {
            width = Math.ceil(scrollArea * (this.scrollable.size.width / dw));
          }
          this.handle.resize({
            width: width,
            height: 1
          });
        }
      }, {
        key: "positionHandle",
        value: function positionHandle() {
          var x = this.track.position.x + 1;
          if (this.scrollable.offset.x > 0) {
            x += Math.round(this.scrollable.offset.x * (this.scrollable.size.width / this.scrollable.dataWidth));
          }
          if (x + this.handle.size.width >= this.track.position.x + this.track.size.width - 1) {
            x = this.track.position.x + this.track.size.width - this.handle.size.width - 1;
          }
          this.handle.moveTo({
            x: x,
            y: this.handle.position.y
          });
        }
      }, {
        key: "update",
        value: function update() {
          var dw = this.scrollable.dataWidth;
          if (this.scrollable.size.width >= dw) {
            if (this.track.isOpen) {
              this.track.close();
              this.scrollable.resize({
                width: this.scrollable.size.width,
                height: this.scrollable.size.height + 1
              });
            }
          } else {
            if (!this.track.isOpen) {
              this.scrollable.resize({
                width: this.scrollable.size.width,
                height: this.scrollable.size.height - 1
              });
              this.track.open();
            }
            this.scaleHandle();
            this.positionHandle();
            var handleCell = {
              "char": "\xDB",
              attr: this.attr
            };
            for (var x = 0; x < this.handle.size.width; x++) {
              this.handle.setData({
                x: x,
                y: 0
              }, handleCell);
            }
          }
        }
      }]);
    }(ScrollBar);
    var ControlledWindow = /* @__PURE__ */ function(_Window) {
      function ControlledWindow2(options) {
        var _options$scrollBar, _options$scrollBar2;
        var _this6;
        _classCallCheck(this, ControlledWindow2);
        _this6 = _callSuper(this, ControlledWindow2, [options]);
        _this6._scrollBars = {};
        _this6._type = "ControlledWindow";
        var contentWindowOptions = {
          position: {
            x: _this6._position.x,
            y: _this6._position.y
          },
          size: {
            width: _this6._size.width,
            height: _this6._size.height
          },
          windowManager: options.windowManager,
          attr: options.attr,
          parent: _this6.id,
          name: "ContentWindow"
        };
        if (options.border !== void 0) {
          contentWindowOptions.position.x += 1;
          contentWindowOptions.position.y += 1;
          contentWindowOptions.size.width -= 2;
          contentWindowOptions.size.height -= 2;
        }
        _this6.contentWindow = new Window(contentWindowOptions);
        _this6._title = options.title;
        _this6._footer = options.footer;
        if (options.border !== void 0) {
          _this6._border = options.border;
          _this6.drawBorder();
        }
        if ((_options$scrollBar = options.scrollBar) !== null && _options$scrollBar !== void 0 && (_options$scrollBar = _options$scrollBar.vertical) !== null && _options$scrollBar !== void 0 && _options$scrollBar.enabled) {
          _this6._scrollBars.vertical = new VScrollBar(_this6.contentWindow, options.scrollBar.vertical.attr);
        }
        if ((_options$scrollBar2 = options.scrollBar) !== null && _options$scrollBar2 !== void 0 && (_options$scrollBar2 = _options$scrollBar2.horizontal) !== null && _options$scrollBar2 !== void 0 && _options$scrollBar2.enabled) {
          _this6._scrollBars.horizontal = new HScrollBar(_this6.contentWindow, options.scrollBar.horizontal.attr);
        }
        return _this6;
      }
      _inherits(ControlledWindow2, _Window);
      return _createClass(ControlledWindow2, [{
        key: "border",
        get: function get() {
          return this._border;
        },
        set: function set(options) {
          if (this._border === void 0 && options !== void 0) {
            this.contentWindow.resize({
              width: this.contentWindow.size.width - 2,
              height: this.contentWindow.size.height - 2
            });
            this.contentWindow.move(1, 1);
          }
          this._border = options;
          this.drawBorder();
        }
      }, {
        key: "wrap",
        get: function get() {
          return this.contentWindow.wrap;
        },
        set: function set(wrap) {
          this.contentWindow.wrap = wrap;
        }
      }, {
        key: "drawBorder",
        value: function drawBorder() {
          var _this$_border$attr;
          if (this._border === void 0)
            return;
          var attr = (_this$_border$attr = this._border.attr) !== null && _this$_border$attr !== void 0 ? _this$_border$attr : [this._attr];
          var line = _LINE_DRAWING[this._border.style];
          var lx = this._size.width - 1;
          var ly = this._size.height - 1;
          var fa = attr[0];
          var la = attr[attr.length - 1];
          var xPatternSegment = Math.ceil(this._size.width / attr.length);
          var yPatternSegment = Math.ceil(this._size.height / attr.length);
          if (this._border.pattern === 0) {
            this._setData({
              x: 0,
              y: 0
            }, {
              "char": line.TOP_LEFT,
              attr: fa
            });
            this._setData({
              x: lx,
              y: 0
            }, {
              "char": line.TOP_RIGHT,
              attr: la
            });
            this._setData({
              x: lx,
              y: ly
            }, {
              "char": line.BOTTOM_RIGHT,
              attr: la
            });
            this._setData({
              x: 0,
              y: ly
            }, {
              "char": line.BOTTOM_LEFT,
              attr: fa
            });
            for (var x = 1; x < lx; x++) {
              var idx = Math.floor(x / xPatternSegment);
              this._setData({
                x: x,
                y: 0
              }, {
                "char": line.HORIZONTAL,
                attr: attr[idx]
              });
              this._setData({
                x: x,
                y: ly
              }, {
                "char": line.HORIZONTAL,
                attr: attr[idx]
              });
            }
            for (var y = 1; y < ly; y++) {
              this._setData({
                x: 0,
                y: y
              }, {
                "char": line.VERTICAL,
                attr: fa
              });
              this._setData({
                x: lx,
                y: y
              }, {
                "char": line.VERTICAL,
                attr: la
              });
            }
          } else if (this._border.pattern === 1) {
            this._setData({
              x: 0,
              y: 0
            }, {
              "char": line.TOP_LEFT,
              attr: fa
            });
            this._setData({
              x: lx,
              y: 0
            }, {
              "char": line.TOP_RIGHT,
              attr: fa
            });
            this._setData({
              x: lx,
              y: ly
            }, {
              "char": line.BOTTOM_RIGHT,
              attr: la
            });
            this._setData({
              x: 0,
              y: ly
            }, {
              "char": line.BOTTOM_LEFT,
              attr: la
            });
            for (var _x8 = 1; _x8 < lx; _x8++) {
              this._setData({
                x: _x8,
                y: 0
              }, {
                "char": line.HORIZONTAL,
                attr: fa
              });
              this._setData({
                x: _x8,
                y: ly
              }, {
                "char": line.HORIZONTAL,
                attr: la
              });
            }
            for (var _y3 = 1; _y3 < ly; _y3++) {
              var _idx = Math.floor(_y3 / yPatternSegment);
              this._setData({
                x: 0,
                y: _y3
              }, {
                "char": line.VERTICAL,
                attr: attr[_idx]
              });
              this._setData({
                x: lx,
                y: _y3
              }, {
                "char": line.VERTICAL,
                attr: attr[_idx]
              });
            }
          } else if (this._border.pattern === 2) {
            this._setData({
              x: 0,
              y: 0
            }, {
              "char": line.TOP_LEFT,
              attr: fa
            });
            this._setData({
              x: lx,
              y: 0
            }, {
              "char": line.TOP_RIGHT,
              attr: la
            });
            this._setData({
              x: lx,
              y: ly
            }, {
              "char": line.BOTTOM_RIGHT,
              attr: la
            });
            this._setData({
              x: 0,
              y: ly
            }, {
              "char": line.BOTTOM_LEFT,
              attr: la
            });
            for (var _x9 = 1; _x9 < lx; _x9++) {
              var _idx2 = Math.floor(_x9 / xPatternSegment);
              this._setData({
                x: _x9,
                y: 0
              }, {
                "char": line.HORIZONTAL,
                attr: attr[_idx2]
              });
              this._setData({
                x: _x9,
                y: ly
              }, {
                "char": line.HORIZONTAL,
                attr: la
              });
            }
            for (var _y4 = 1; _y4 < ly; _y4++) {
              var _idx3 = Math.floor(_y4 / yPatternSegment);
              this._setData({
                x: 0,
                y: _y4
              }, {
                "char": line.VERTICAL,
                attr: attr[_idx3]
              });
              this._setData({
                x: lx,
                y: _y4
              }, {
                "char": line.VERTICAL,
                attr: la
              });
            }
          }
          if (this._title !== void 0)
            this.title = this._title;
          if (this._footer !== void 0)
            this.footer = this._footer;
        }
      }, {
        key: "title",
        get: function get() {
          return this._title;
        },
        set: function set(title) {
          this._title = title;
          if (this._title === void 0)
            return;
          if (this._border === void 0)
            return;
          var maxLen = this._size.width - 4;
          var line = _LINE_DRAWING[this._border.style];
          var text = this._title.text;
          if (text.length > maxLen)
            text = text.substring(0, maxLen - 3) + "...";
          var xpos;
          if (this._title.alignment === void 0 || this._title.alignment === 0) {
            xpos = 1;
          } else if (this._title.alignment === 2) {
            xpos = Math.floor((maxLen - text.length) / 2) + 1;
          } else {
            xpos = this._size.width - 3 - text.length;
          }
          this._setData({
            x: xpos,
            y: 0
          }, {
            "char": line.LEFT_T,
            attr: this._buffer[0][xpos].attr
          });
          this._setData({
            x: xpos + text.length + 1,
            y: 0
          }, {
            "char": line.RIGHT_T,
            attr: this._buffer[0][xpos + text.length + 1].attr
          });
          this._cursor = {
            x: xpos + 1,
            y: 0
          };
          this._write(text, this._title.attr);
        }
      }, {
        key: "footer",
        get: function get() {
          return this._footer;
        },
        set: function set(footer) {
          this._footer = footer;
          if (this._footer === void 0)
            return;
          if (this._border === void 0)
            return;
          var ly = this._endStop.y - 1;
          var line = _LINE_DRAWING[this._border.style];
          var maxLen = this._size.width - 4;
          var text = this._footer.text;
          if (text.length > maxLen)
            text = text.substring(0, maxLen - 3) + "...";
          var xpos;
          if (this._footer.alignment === void 0 || this._footer.alignment === 0) {
            xpos = 1;
          } else if (this._footer.alignment === 2) {
            xpos = Math.floor((maxLen - text.length) / 2) + 1;
          } else {
            xpos = this._size.width - 3 - text.length;
          }
          this._setData({
            x: xpos,
            y: ly
          }, {
            "char": line.LEFT_T,
            attr: this._buffer[ly][xpos].attr
          });
          this._setData({
            x: xpos + text.length + 1,
            y: ly
          }, {
            "char": line.RIGHT_T,
            attr: this._buffer[ly][xpos + text.length + 1].attr
          });
          this._cursor = {
            x: xpos + 1,
            y: ly
          };
          this._write(text, this._footer.attr);
        }
      }, {
        key: "cursor",
        get: function get() {
          return this.contentWindow.cursor;
        },
        set: function set(cursor) {
          this.contentWindow.cursor = cursor;
        }
      }, {
        key: "scrollBack",
        get: function get() {
          return this.contentWindow.scrollBack;
        },
        set: function set(size) {
          this.contentWindow.scrollBack = size;
        }
      }, {
        key: "setData",
        value: function setData(position, data) {
          var _this$_scrollBars, _this$_scrollBars2;
          var commit = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
          this.contentWindow.setData(position, data);
          (_this$_scrollBars = this._scrollBars) === null || _this$_scrollBars === void 0 || (_this$_scrollBars = _this$_scrollBars.vertical) === null || _this$_scrollBars === void 0 || _this$_scrollBars.update();
          (_this$_scrollBars2 = this._scrollBars) === null || _this$_scrollBars2 === void 0 || (_this$_scrollBars2 = _this$_scrollBars2.horizontal) === null || _this$_scrollBars2 === void 0 || _this$_scrollBars2.update();
        }
      }, {
        key: "write",
        value: function write(str, attr) {
          var _this$_scrollBars3, _this$_scrollBars4;
          this.contentWindow.write(str, attr);
          (_this$_scrollBars3 = this._scrollBars) === null || _this$_scrollBars3 === void 0 || (_this$_scrollBars3 = _this$_scrollBars3.vertical) === null || _this$_scrollBars3 === void 0 || _this$_scrollBars3.update();
          (_this$_scrollBars4 = this._scrollBars) === null || _this$_scrollBars4 === void 0 || (_this$_scrollBars4 = _this$_scrollBars4.horizontal) === null || _this$_scrollBars4 === void 0 || _this$_scrollBars4.update();
        }
      }, {
        key: "resize",
        value: function resize(size) {
          var _this$_scrollBars5, _this$_scrollBars6;
          var cwSize = _objectSpread({}, size);
          if (this.border !== void 0) {
            cwSize.width -= 2;
            cwSize.height -= 2;
          }
          this.contentWindow.resize(cwSize);
          (_this$_scrollBars5 = this._scrollBars) === null || _this$_scrollBars5 === void 0 || (_this$_scrollBars5 = _this$_scrollBars5.vertical) === null || _this$_scrollBars5 === void 0 || _this$_scrollBars5.resize();
          (_this$_scrollBars6 = this._scrollBars) === null || _this$_scrollBars6 === void 0 || (_this$_scrollBars6 = _this$_scrollBars6.horizontal) === null || _this$_scrollBars6 === void 0 || _this$_scrollBars6.resize();
          this._resize(size);
          this.drawBorder();
        }
      }, {
        key: "scrollTo",
        value: function scrollTo(position) {
          var _this$_scrollBars7, _this$_scrollBars8;
          this.contentWindow.scrollTo(position);
          (_this$_scrollBars7 = this._scrollBars) === null || _this$_scrollBars7 === void 0 || (_this$_scrollBars7 = _this$_scrollBars7.vertical) === null || _this$_scrollBars7 === void 0 || _this$_scrollBars7.update();
          (_this$_scrollBars8 = this._scrollBars) === null || _this$_scrollBars8 === void 0 || (_this$_scrollBars8 = _this$_scrollBars8.horizontal) === null || _this$_scrollBars8 === void 0 || _this$_scrollBars8.update();
        }
      }, {
        key: "scroll",
        value: function scroll(x, y) {
          var _this$_scrollBars9, _this$_scrollBars10;
          this.contentWindow.scroll(x, y);
          (_this$_scrollBars9 = this._scrollBars) === null || _this$_scrollBars9 === void 0 || (_this$_scrollBars9 = _this$_scrollBars9.vertical) === null || _this$_scrollBars9 === void 0 || _this$_scrollBars9.update();
          (_this$_scrollBars10 = this._scrollBars) === null || _this$_scrollBars10 === void 0 || (_this$_scrollBars10 = _this$_scrollBars10.horizontal) === null || _this$_scrollBars10 === void 0 || _this$_scrollBars10.update();
        }
      }, {
        key: "clear",
        value: function clear() {
          this.contentWindow.clear();
        }
      }]);
    }(Window);
    var cgadefs4 = load("cga_defs.js");
    var keydefs = load("key_defs.js");
    var DEFAULT_COLORS = {
      normal: cgadefs4.BG_BLACK | cgadefs4.LIGHTGRAY,
      highlight: cgadefs4.BG_BLUE | cgadefs4.LIGHTBLUE
    };
    var LightBar = /* @__PURE__ */ function() {
      function LightBar2(options) {
        var _options$colors, _options$colors2;
        _classCallCheck(this, LightBar2);
        this._items = [];
        this._colors = _objectSpread({}, DEFAULT_COLORS);
        this._index = 0;
        this._cmdstr = "";
        this._lastcmd = 0;
        this.id = Symbol(options.name);
        this._window = options.window;
        this._window.contentWindow.wrap = 0;
        this._window.contentWindow.autoScroll = false;
        if (((_options$colors = options.colors) === null || _options$colors === void 0 ? void 0 : _options$colors.normal) !== void 0)
          this._colors.normal = options.colors.normal;
        if (((_options$colors2 = options.colors) === null || _options$colors2 === void 0 ? void 0 : _options$colors2.highlight) !== void 0)
          this._colors.highlight = options.colors.highlight;
        if (options.items !== void 0) {
          var _iterator7 = _createForOfIteratorHelper(options.items), _step7;
          try {
            for (_iterator7.s(); !(_step7 = _iterator7.n()).done; ) {
              var item = _step7.value;
              this.addItem(item);
            }
          } catch (err) {
            _iterator7.e(err);
          } finally {
            _iterator7.f();
          }
        }
      }
      return _createClass(LightBar2, [{
        key: "items",
        get: function get() {
          return this._items;
        },
        set: function set(items) {
          this._items = [];
          var _iterator8 = _createForOfIteratorHelper(items), _step8;
          try {
            for (_iterator8.s(); !(_step8 = _iterator8.n()).done; ) {
              var item = _step8.value;
              this.addItem(item);
            }
          } catch (err) {
            _iterator8.e(err);
          } finally {
            _iterator8.f();
          }
          this._window.cursor = {
            x: 0,
            y: 0
          };
          this._window.scrollTo({
            x: 0,
            y: 0
          });
        }
      }, {
        key: "addItem",
        value: function addItem(item) {
          var li = _objectSpread(_objectSpread({}, item), {}, {
            id: Symbol("LightBarItem: ".concat(item.text))
          });
          this._items.push(li);
          return li.id;
        }
      }, {
        key: "removeItem",
        value: function removeItem(id) {
          this._items = this._items.filter(function(e) {
            return e.id !== id;
          });
        }
      }, {
        key: "draw",
        value: function draw() {
          this._window.contentWindow.clear();
          var attr;
          var text = "";
          var fmt = "%-0".concat(this._window.contentWindow.size.width, "s");
          for (var y = 0; y < this._items.length; y++) {
            attr = y === this._index ? this._colors.highlight : this._colors.normal;
            text = js.global.format(fmt, this._items[y].text);
            this._window.cursor = {
              x: 0,
              y: y
            };
            this._window.write(text, attr);
          }
          this._window.contentWindow.attr = this._colors.normal;
        }
      }, {
        key: "update",
        value: function update(n) {
          var ni = this._index + n;
          if (ni < 0) {
            ni = 0;
          } else if (ni >= this._items.length) {
            ni = this._items.length - 1;
          }
          if (ni === this._index)
            return;
          var fmt = "%-0".concat(this._window.contentWindow.size.width, "s");
          this._window.cursor = {
            x: 0,
            y: this._index
          };
          this._window.write(js.global.format(fmt, this._items[this._index].text), this._colors.normal);
          this._index = ni;
          this._window.cursor = {
            x: 0,
            y: this._index
          };
          this._window.write(js.global.format(fmt, this._items[this._index].text), this._colors.highlight);
          this._window.contentWindow.attr = this._colors.normal;
          if (this._index >= this._window.contentWindow.offset.y + this._window.contentWindow.size.height) {
            this._window.scrollTo({
              x: 0,
              y: this._index - this._window.contentWindow.size.height + 1
            });
          } else if (this._index < this._window.contentWindow.offset.y) {
            this._window.scrollTo({
              x: 0,
              y: this._index
            });
          }
          if (this._items[this._index].onHighlight !== void 0) {
            var _this$_items$this$_in, _this$_items$this$_in2;
            (_this$_items$this$_in = (_this$_items$this$_in2 = this._items[this._index]).onHighlight) === null || _this$_items$this$_in === void 0 || _this$_items$this$_in.call(_this$_items$this$_in2, this._items[this._index]);
          }
        }
      }, {
        key: "getCmd",
        value: function getCmd(s) {
          if (js.global.time() - this._lastcmd > 1)
            this._cmdstr = "";
          this._lastcmd = js.global.time();
          switch (s) {
            case keydefs.KEY_UP:
              this._cmdstr = "";
              this.update(-1);
              break;
            case keydefs.KEY_DOWN:
              this._cmdstr = "";
              this.update(1);
              break;
            case keydefs.KEY_PAGEUP:
              this._cmdstr = "";
              this.update(-this._window.contentWindow.size.height);
              break;
            case keydefs.KEY_PAGEDN:
              this._cmdstr = "";
              this.update(this._window.contentWindow.size.height);
              break;
            case keydefs.KEY_HOME:
              this._cmdstr = "";
              this.update(0);
              break;
            case keydefs.KEY_END:
              this._cmdstr = "";
              this.update(this._window.dataHeight);
              break;
            case keydefs.KEY_DEL:
              this._cmdstr = "";
              break;
            case "\r":
              this._cmdstr = "";
              this._items[this._index].onSelect(this._items[this._index]);
              break;
            case "\b":
              this._cmdstr = this._cmdstr.substring(0, this._cmdstr.length);
              break;
            default:
              this._cmdstr += s.toLowerCase();
              for (var n = 0; n < this._items.length; n++) {
                if (!this._items[n].text.toLowerCase().startsWith(this._cmdstr))
                  continue;
                if (n > this._index) {
                  this.update(n - this._index);
                } else if (n < this._index) {
                  this.update(-(this._index - n));
                }
                break;
              }
              break;
          }
        }
      }]);
    }();
    var keydefs2 = load("key_defs.js");
    var console3 = js.global.console;
    var cgadefs5 = load("cga_defs.js");
    var _js$global3 = js.global, file_exists = _js$global3.file_exists, file_rename = _js$global3.file_rename, system = _js$global3.system, File = _js$global3.File;
    function parseColorOption(color) {
      var c = color.split("|");
      var ret = cgadefs5[c[0]];
      if (c.length > 1)
        ret |= cgadefs5[c[1]];
      if ((ret & 7 << 4) === 0)
        ret |= cgadefs5.BG_BLACK;
      return ret;
    }
    function migrate() {
      var _oldRoot$messageBase, _oldRoot$maxMessages, _oldColors$title, _oldColors$text, _oldColors$lightbarFo, _oldColors$lightbarBa, _oldColors$border;
      var oldFile = "".concat(js.exec_dir, "bullshit.ini");
      if (!file_exists(oldFile))
        return;
      var f = new File(oldFile);
      if (!f.open("r"))
        return;
      var oldRoot = f.iniGetObject();
      var oldColors = f.iniGetObject("colors");
      var oldFiles = f.iniGetObject("files");
      f.close();
      var opts = {
        bullshit: {
          messageBase: (_oldRoot$messageBase = oldRoot === null || oldRoot === void 0 ? void 0 : oldRoot.messageBase) !== null && _oldRoot$messageBase !== void 0 ? _oldRoot$messageBase : "",
          maxMessages: (_oldRoot$maxMessages = oldRoot === null || oldRoot === void 0 ? void 0 : oldRoot.maxMessages) !== null && _oldRoot$maxMessages !== void 0 ? _oldRoot$maxMessages : 100,
          newOnly: (oldRoot === null || oldRoot === void 0 ? void 0 : oldRoot.newOnly) === void 0 ? false : true,
          title: "Bulletins"
        },
        colors: {
          title: (_oldColors$title = oldColors === null || oldColors === void 0 ? void 0 : oldColors.title) !== null && _oldColors$title !== void 0 ? _oldColors$title : "WHITE",
          text: (_oldColors$text = oldColors === null || oldColors === void 0 ? void 0 : oldColors.text) !== null && _oldColors$text !== void 0 ? _oldColors$text : "LIGHTGRAY",
          lightBar: "".concat((_oldColors$lightbarFo = oldColors === null || oldColors === void 0 ? void 0 : oldColors.lightbarForeground) !== null && _oldColors$lightbarFo !== void 0 ? _oldColors$lightbarFo : "WHITE", "|").concat((_oldColors$lightbarBa = oldColors === null || oldColors === void 0 ? void 0 : oldColors.lightbarBackground) !== null && _oldColors$lightbarBa !== void 0 ? _oldColors$lightbarBa : "BG_CYAN"),
          border: (_oldColors$border = oldColors === null || oldColors === void 0 ? void 0 : oldColors.border) !== null && _oldColors$border !== void 0 ? _oldColors$border : "WHITE,LIGHTCYAN,CYAN,LIGHTBLUE"
        },
        files: oldFiles !== null && oldFiles !== void 0 ? oldFiles : {}
      };
      f = new File("".concat(system.ctrl_dir, "modopts.d/bullshit.ini"));
      if (!f.open(f.exists ? "r+" : "w+"))
        return;
      f.iniSetObject("bullshit", opts.bullshit);
      f.iniSetObject("bullshit:colors", opts.colors);
      f.iniSetObject("bullshit:files", opts.files);
      f.close();
      file_rename(oldFile, "".concat(oldFile, ".old"));
    }
    function getOptions() {
      var ret = {
        bullshit: {
          messageBase: "",
          maxMessages: 100,
          newOnly: false,
          title: "Bulletins"
        },
        colors: {
          title: cgadefs5.BG_BLACK | cgadefs5.WHITE,
          text: cgadefs5.BG_BLACK | cgadefs5.LIGHTGRAY,
          heading: cgadefs5.BG_BLACK | cgadefs5.DARKGRAY,
          lightBar: cgadefs5.BG_CYAN | cgadefs5.WHITE,
          list: cgadefs5.BG_BLACK | cgadefs5.LIGHTGRAY,
          border: [cgadefs5.BG_BLACK | cgadefs5.WHITE, cgadefs5.BG_BLACK | cgadefs5.LIGHTCYAN, cgadefs5.BG_BLACK | cgadefs5.CYAN, cgadefs5.BG_BLACK | cgadefs5.LIGHTBLUE]
        },
        files: {}
      };
      var f = new File("".concat(system.ctrl_dir, "modopts.d/bullshit.ini"));
      if (!f.open("r"))
        throw new Error("Failed to open ".concat(f.name, " for reading"));
      var bullshitIni = f.iniGetObject("bullshit");
      var colorsIni = f.iniGetObject("bullshit:colors");
      var filesIni = f.iniGetObject("bullshit:files");
      f.close();
      if (typeof (bullshitIni === null || bullshitIni === void 0 ? void 0 : bullshitIni.messageBase) === "string")
        ret.bullshit.messageBase = bullshitIni.messageBase;
      if (typeof (bullshitIni === null || bullshitIni === void 0 ? void 0 : bullshitIni.maxMessages) === "number")
        ret.bullshit.maxMessages = bullshitIni.maxMessages;
      if (ret.bullshit.maxMessages < 1)
        ret.bullshit.maxMessages = Infinity;
      if (typeof (bullshitIni === null || bullshitIni === void 0 ? void 0 : bullshitIni.newOnly) === "boolean")
        ret.bullshit.newOnly = bullshitIni.newOnly;
      if (typeof (bullshitIni === null || bullshitIni === void 0 ? void 0 : bullshitIni.title) === "string")
        ret.bullshit.title = bullshitIni.title;
      if (typeof (colorsIni === null || colorsIni === void 0 ? void 0 : colorsIni.title) === "string")
        ret.colors.title = parseColorOption(colorsIni.title);
      if (typeof (colorsIni === null || colorsIni === void 0 ? void 0 : colorsIni.text) === "string")
        ret.colors.title = parseColorOption(colorsIni.text);
      if (typeof (colorsIni === null || colorsIni === void 0 ? void 0 : colorsIni.heading) === "string")
        ret.colors.title = parseColorOption(colorsIni.heading);
      if (typeof (colorsIni === null || colorsIni === void 0 ? void 0 : colorsIni.lightBar) === "string")
        ret.colors.title = parseColorOption(colorsIni.lightBar);
      if (typeof (colorsIni === null || colorsIni === void 0 ? void 0 : colorsIni.list) === "string")
        ret.colors.title = parseColorOption(colorsIni.list);
      if (typeof (colorsIni === null || colorsIni === void 0 ? void 0 : colorsIni.border) === "string" && colorsIni.border.length > 0) {
        ret.colors.border = [];
        var border = colorsIni.border.split(",");
        var _iterator9 = _createForOfIteratorHelper(border), _step9;
        try {
          for (_iterator9.s(); !(_step9 = _iterator9.n()).done; ) {
            var b = _step9.value;
            ret.colors.border.push(parseColorOption(b));
          }
        } catch (err) {
          _iterator9.e(err);
        } finally {
          _iterator9.f();
        }
      }
      for (var file in filesIni) {
        ret.files[file] = filesIni[file];
      }
      return ret;
    }
    function getWindowOptions(windowManager, border, title, footer) {
      return {
        border: {
          style: defs_exports.BORDER_STYLE.SINGLE,
          pattern: defs_exports.BORDER_PATTERN.DIAGONAL,
          attr: border
        },
        title: {
          text: title !== null && title !== void 0 ? title : "",
          attr: cgadefs5.BG_BLACK | cgadefs5.WHITE
        },
        footer: {
          text: footer !== null && footer !== void 0 ? footer : "",
          attr: cgadefs5.BG_BLACK | cgadefs5.WHITE,
          alignment: defs_exports.ALIGNMENT.RIGHT
        },
        position: {
          x: 0,
          y: 0
        },
        size: {
          width: windowManager.size.width,
          height: windowManager.size.height
        },
        scrollBar: {
          vertical: {
            enabled: true
          }
        },
        windowManager: windowManager,
        name: ""
      };
    }
    var nodedefs = load("nodedefs.js");
    var smbdefs = load("smbdefs.js");
    var _js$global4 = js.global, file_exists2 = _js$global4.file_exists, file_date = _js$global4.file_date, format = _js$global4.format, strftime = _js$global4.strftime, time = _js$global4.time, bbs = _js$global4.bbs, system2 = _js$global4.system, user = _js$global4.user, MsgBase = _js$global4.MsgBase, File2 = _js$global4.File;
    var historyFile = format("".concat(system2.data_dir, "user/%04d.bullshit"), user.number);
    function formatDate(date) {
      return strftime("%b %d %Y %H:%M", date);
    }
    function formatItem(text, date, width) {
      return format("%-".concat(width - 17, "s%s"), text.substring(0, width - 18), formatDate(date));
    }
    function getUserHistory() {
      var ret = {
        files: {},
        messages: []
      };
      if (!file_exists2(historyFile))
        return ret;
      var f = new File2(historyFile);
      if (!f.open("r"))
        return ret;
      var history = JSON.parse(f.read());
      f.close();
      return history;
    }
    function setUserHistory(history) {
      var f = new File2(historyFile);
      if (!f.open("w"))
        return;
      f.write(JSON.stringify(history));
      f.close();
    }
    function getList(options, windowManager, itemHandler) {
      var width = windowManager.size.width - 3;
      var sortables = [];
      var history = getUserHistory();
      var _loop = function _loop3(file2) {
        if (!file_exists2(options.files[file2]))
          return 0;
        if (bbs.node_action & nodedefs.NODE_LOGN && options.bullshit.newOnly && history.files[file2] !== void 0 && file_date(options.files[file2]) <= history.files[file2])
          return 0;
        var title = file2;
        var date = file_date(options.files[file2]);
        var sortable = {
          item: {
            text: formatItem(title, date, width),
            onSelect: function onSelect() {
              var f = new File2(options.files[file2]);
              if (!f.open("rb"))
                return;
              var body = f.read();
              f.close();
              itemHandler("".concat(title, " (").concat(formatDate(date), ")"), body, false);
              var history2 = getUserHistory();
              history2.files[file2] = time();
              setUserHistory(history2);
            }
          },
          date: file_date(options.files[file2])
        };
        sortables.push(sortable);
      }, _ret;
      for (var file in options.files) {
        _ret = _loop(file);
        if (_ret === 0)
          continue;
      }
      var msgBase = new MsgBase(options.bullshit.messageBase);
      if (msgBase.open()) {
        var messages = [];
        var _loop2 = function _loop22(n2) {
          var h = msgBase.get_msg_header(false, n2);
          if (h === null || (h.attr & smbdefs.MSG_DELETE) > 0)
            return 0;
          if (bbs.node_action & nodedefs.NODE_LOGN && options.bullshit.newOnly && history.messages.includes(n2))
            return 0;
          var sortable = {
            item: {
              text: formatItem(h.subject, h.when_written_time, width),
              onSelect: function onSelect() {
                if (!msgBase.open())
                  return;
                var body = msgBase.get_msg_body(false, n2);
                if (body === null)
                  return;
                itemHandler("".concat(h.subject, " (").concat(formatDate(h.when_written_time), ")"), body, true);
                var history2 = getUserHistory();
                if (!history2.messages.includes(n2)) {
                  history2.messages.push(n2);
                  setUserHistory(history2);
                }
              }
            },
            date: h.when_written_time
          };
          messages.push(sortable);
        }, _ret2;
        for (var n = msgBase.first_msg; n <= msgBase.last_msg; n++) {
          _ret2 = _loop2(n);
          if (_ret2 === 0)
            continue;
        }
        msgBase.close();
        if (messages.length > options.bullshit.maxMessages)
          messages = messages.splice(-options.bullshit.maxMessages);
        sortables.push.apply(sortables, _toConsumableArray(messages));
      }
      return sortables.sort(function(a, b) {
        return b.date - a.date;
      }).map(function(e) {
        return e.item;
      });
    }
    var keydefs3 = load("key_defs.js");
    var UI = /* @__PURE__ */ function() {
      function UI2(windowManager, options) {
        _classCallCheck(this, UI2);
        _defineProperty(this, "options", void 0);
        _defineProperty(this, "windowManager", void 0);
        _defineProperty(this, "listWindow", void 0);
        _defineProperty(this, "listMenu", void 0);
        _defineProperty(this, "itemWindow", void 0);
        _defineProperty(this, "activeWindow", "list");
        _defineProperty(this, "noNewItems", false);
        this.options = options;
        this.windowManager = windowManager;
        var listWindowOptions = getWindowOptions(windowManager, options.colors.border, options.bullshit.title, "Q to quit");
        this.listWindow = new ControlledWindow(listWindowOptions);
        var items = getList(options, windowManager, this.itemHandler.bind(this));
        if (items.length < 1) {
          items.push({
            text: "No new bulletins",
            onSelect: function onSelect() {
            }
          });
          this.noNewItems = true;
        }
        this.listMenu = new LightBar({
          items: items,
          window: this.listWindow,
          colors: {
            normal: options.colors.list,
            highlight: options.colors.lightBar
          }
        });
        this.listMenu.draw();
      }
      return _createClass(UI2, [{
        key: "itemHandler",
        value: function itemHandler(title, body, wrap) {
          var itemWindowOptions = getWindowOptions(this.windowManager, this.options.colors.border, title, "Q to quit");
          itemWindowOptions.attr = this.options.colors.text;
          this.itemWindow = new ControlledWindow(itemWindowOptions);
          if (wrap) {
            this.itemWindow.wrap = defs_exports.WRAP.WORD;
            this.itemWindow.write(js.global.lfexpand(body));
          } else {
            this.itemWindow.wrap = defs_exports.WRAP.NONE;
            this.itemWindow.contentWindow.writeAnsi(body, 80);
          }
          this.itemWindow.scrollTo({
            x: 0,
            y: 0
          });
          this.activeWindow = "item";
        }
      }, {
        key: "getCmd",
        value: function getCmd(cmd) {
          var _this$itemWindow;
          if (this.activeWindow === "list") {
            if (cmd === "q")
              return false;
            this.listMenu.getCmd(cmd);
          } else if (this.itemWindow !== void 0) {
            switch (cmd) {
              case "q":
                (_this$itemWindow = this.itemWindow) === null || _this$itemWindow === void 0 || _this$itemWindow.close();
                this.activeWindow = "list";
                break;
              case keydefs3.KEY_UP:
                this.itemWindow.scroll(0, -1);
                break;
              case keydefs3.KEY_PAGEUP:
                this.itemWindow.scroll(0, -this.itemWindow.contentWindow.size.height);
                break;
              case keydefs3.KEY_HOME:
                this.itemWindow.scrollTo({
                  x: 0,
                  y: 0
                });
                break;
              case keydefs3.KEY_DOWN:
                this.itemWindow.scroll(0, 1);
                break;
              case keydefs3.KEY_PAGEDN:
                this.itemWindow.scroll(0, this.itemWindow.contentWindow.size.height);
                break;
              case keydefs3.KEY_END:
                this.itemWindow.scrollTo({
                  x: 0,
                  y: this.itemWindow.contentWindow.dataHeight - this.itemWindow.contentWindow.size.height
                });
                break;
              default:
                break;
            }
          }
          return true;
        }
      }]);
    }();
    var cgadefs6 = load("cga_defs.js");
    var nodedefs2 = load("nodedefs.js");
    var sbbsdefs = load("sbbsdefs.js");
    var _js$global5 = js.global, bbs2 = _js$global5.bbs, console4 = _js$global5.console;
    function init() {
      js.on_exit("console.attributes = ".concat(console4.attributes));
      js.on_exit("bbs.sys_status = ".concat(bbs2.sys_status));
      js.on_exit("console.home();");
      js.on_exit('console.write("\x1B[0;37;40m")');
      js.on_exit('console.write("\x1B[2J")');
      js.on_exit('console.write("\x1B[?25h");');
      js.time_limit = 0;
      bbs2.sys_status |= sbbsdefs.SS_MOFF;
      console4.clear(cgadefs6.BG_BLACK | cgadefs6.LIGHTGRAY);
    }
    function main() {
      migrate();
      var windowManager = new WindowManager();
      var options = getOptions();
      var ui = new UI(windowManager, options);
      if ((bbs2.node_action & nodedefs2.NODE_LOGN) === nodedefs2.NODE_LOGN && ui.noNewItems)
        return;
      windowManager.hideCursor();
      while (!js.terminated) {
        windowManager.refresh();
        var input = console4.getkey().toLowerCase();
        if (!ui.getCmd(input))
          break;
      }
    }
    init();
    main();
  })();
})();
