UNPKG

@deephaven/js-plugin-plotly

Version:
1,432 lines 6.12 MB
"use strict"; var __defProp = Object.defineProperty; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __publicField = (obj, key, value) => { __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); return value; }; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const React = require("react"); const ReactDOM = require("react-dom"); var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; function getDefaultExportFromCjs(x) { return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x; } function getAugmentedNamespace(n2) { if (n2.__esModule) return n2; var f2 = n2.default; if (typeof f2 == "function") { var a = function a2() { if (this instanceof a2) { var args = [null]; args.push.apply(args, arguments); var Ctor = Function.bind.apply(f2, args); return new Ctor(); } return f2.apply(this, arguments); }; a.prototype = f2.prototype; } else a = {}; Object.defineProperty(a, "__esModule", { value: true }); Object.keys(n2).forEach(function(k2) { var d2 = Object.getOwnPropertyDescriptor(n2, k2); Object.defineProperty(a, k2, d2.get ? d2 : { enumerable: true, get: function() { return n2[k2]; } }); }); return a; } var jsxRuntimeExports = {}; var jsxRuntime = { get exports() { return jsxRuntimeExports; }, set exports(v2) { jsxRuntimeExports = v2; } }; var reactJsxRuntime_production_min = {}; /* object-assign (c) Sindre Sorhus @license MIT */ var getOwnPropertySymbols = Object.getOwnPropertySymbols; var hasOwnProperty$2 = Object.prototype.hasOwnProperty; var propIsEnumerable = Object.prototype.propertyIsEnumerable; function toObject$1(val) { if (val === null || val === void 0) { throw new TypeError("Object.assign cannot be called with null or undefined"); } return Object(val); } function shouldUseNative() { try { if (!Object.assign) { return false; } var test1 = new String("abc"); test1[5] = "de"; if (Object.getOwnPropertyNames(test1)[0] === "5") { return false; } var test2 = {}; for (var i = 0; i < 10; i++) { test2["_" + String.fromCharCode(i)] = i; } var order2 = Object.getOwnPropertyNames(test2).map(function(n2) { return test2[n2]; }); if (order2.join("") !== "0123456789") { return false; } var test3 = {}; "abcdefghijklmnopqrst".split("").forEach(function(letter) { test3[letter] = letter; }); if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") { return false; } return true; } catch (err) { return false; } } shouldUseNative() ? Object.assign : function(target, source) { var from; var to = toObject$1(target); var symbols; for (var s = 1; s < arguments.length; s++) { from = Object(arguments[s]); for (var key in from) { if (hasOwnProperty$2.call(from, key)) { to[key] = from[key]; } } if (getOwnPropertySymbols) { symbols = getOwnPropertySymbols(from); for (var i = 0; i < symbols.length; i++) { if (propIsEnumerable.call(from, symbols[i])) { to[symbols[i]] = from[symbols[i]]; } } } } return to; }; /** @license React v17.0.2 * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var f$2 = React, g$5 = 60103; reactJsxRuntime_production_min.Fragment = 60107; if ("function" === typeof Symbol && Symbol.for) { var h$2 = Symbol.for; g$5 = h$2("react.element"); reactJsxRuntime_production_min.Fragment = h$2("react.fragment"); } var m$2 = f$2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n$2 = Object.prototype.hasOwnProperty, p$3 = { key: true, ref: true, __self: true, __source: true }; function q$2(c2, a, k2) { var b2, d2 = {}, e2 = null, l2 = null; void 0 !== k2 && (e2 = "" + k2); void 0 !== a.key && (e2 = "" + a.key); void 0 !== a.ref && (l2 = a.ref); for (b2 in a) n$2.call(a, b2) && !p$3.hasOwnProperty(b2) && (d2[b2] = a[b2]); if (c2 && c2.defaultProps) for (b2 in a = c2.defaultProps, a) void 0 === d2[b2] && (d2[b2] = a[b2]); return { $$typeof: g$5, type: c2, key: e2, ref: l2, props: d2, _owner: m$2.current }; } reactJsxRuntime_production_min.jsx = q$2; reactJsxRuntime_production_min.jsxs = q$2; (function(module2) { { module2.exports = reactJsxRuntime_production_min; } })(jsxRuntime); var propTypesExports = {}; var propTypes = { get exports() { return propTypesExports; }, set exports(v2) { propTypesExports = v2; } }; var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; var ReactPropTypesSecret_1 = ReactPropTypesSecret$1; var ReactPropTypesSecret = ReactPropTypesSecret_1; function emptyFunction() { } function emptyFunctionWithReset() { } emptyFunctionWithReset.resetWarningCache = emptyFunction; var factoryWithThrowingShims = function() { function shim2(props, propName, componentName, location, propFullName, secret) { if (secret === ReactPropTypesSecret) { return; } var err = new Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types" ); err.name = "Invariant Violation"; throw err; } shim2.isRequired = shim2; function getShim() { return shim2; } var ReactPropTypes = { array: shim2, bigint: shim2, bool: shim2, func: shim2, number: shim2, object: shim2, string: shim2, symbol: shim2, any: shim2, arrayOf: getShim, element: shim2, elementType: shim2, instanceOf: getShim, node: shim2, objectOf: getShim, oneOf: getShim, oneOfType: getShim, shape: getShim, exact: getShim, checkPropTypes: emptyFunctionWithReset, resetWarningCache: emptyFunction }; ReactPropTypes.PropTypes = ReactPropTypes; return ReactPropTypes; }; { propTypes.exports = factoryWithThrowingShims(); } var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal; var freeSelf = typeof self == "object" && self && self.Object === Object && self; freeGlobal || freeSelf || Function("return this")(); function isStack(item) { return item.isStack; } function isComponent(item) { return item.isComponent; } function isRoot(item) { return item.isRoot; } const GoldenLayout$1 = ""; var toStr$9 = Object.prototype.toString; var isArguments$3 = function isArguments(value) { var str = toStr$9.call(value); var isArgs2 = str === "[object Arguments]"; if (!isArgs2) { isArgs2 = str !== "[object Array]" && value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && toStr$9.call(value.callee) === "[object Function]"; } return isArgs2; }; var implementation$b; var hasRequiredImplementation; function requireImplementation() { if (hasRequiredImplementation) return implementation$b; hasRequiredImplementation = 1; var keysShim2; if (!Object.keys) { var has2 = Object.prototype.hasOwnProperty; var toStr2 = Object.prototype.toString; var isArgs2 = isArguments$3; var isEnumerable2 = Object.prototype.propertyIsEnumerable; var hasDontEnumBug = !isEnumerable2.call({ toString: null }, "toString"); var hasProtoEnumBug = isEnumerable2.call(function() { }, "prototype"); var dontEnums = [ "toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor" ]; var equalsConstructorPrototype = function(o) { var ctor = o.constructor; return ctor && ctor.prototype === o; }; var excludedKeys = { $applicationCache: true, $console: true, $external: true, $frame: true, $frameElement: true, $frames: true, $innerHeight: true, $innerWidth: true, $onmozfullscreenchange: true, $onmozfullscreenerror: true, $outerHeight: true, $outerWidth: true, $pageXOffset: true, $pageYOffset: true, $parent: true, $scrollLeft: true, $scrollTop: true, $scrollX: true, $scrollY: true, $self: true, $webkitIndexedDB: true, $webkitStorageInfo: true, $window: true }; var hasAutomationEqualityBug = function() { if (typeof window === "undefined") { return false; } for (var k2 in window) { try { if (!excludedKeys["$" + k2] && has2.call(window, k2) && window[k2] !== null && typeof window[k2] === "object") { try { equalsConstructorPrototype(window[k2]); } catch (e2) { return true; } } } catch (e2) { return true; } } return false; }(); var equalsConstructorPrototypeIfNotBuggy = function(o) { if (typeof window === "undefined" || !hasAutomationEqualityBug) { return equalsConstructorPrototype(o); } try { return equalsConstructorPrototype(o); } catch (e2) { return false; } }; keysShim2 = function keys3(object) { var isObject = object !== null && typeof object === "object"; var isFunction2 = toStr2.call(object) === "[object Function]"; var isArguments5 = isArgs2(object); var isString3 = isObject && toStr2.call(object) === "[object String]"; var theKeys = []; if (!isObject && !isFunction2 && !isArguments5) { throw new TypeError("Object.keys called on a non-object"); } var skipProto = hasProtoEnumBug && isFunction2; if (isString3 && object.length > 0 && !has2.call(object, 0)) { for (var i = 0; i < object.length; ++i) { theKeys.push(String(i)); } } if (isArguments5 && object.length > 0) { for (var j = 0; j < object.length; ++j) { theKeys.push(String(j)); } } else { for (var name2 in object) { if (!(skipProto && name2 === "prototype") && has2.call(object, name2)) { theKeys.push(String(name2)); } } } if (hasDontEnumBug) { var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object); for (var k2 = 0; k2 < dontEnums.length; ++k2) { if (!(skipConstructor && dontEnums[k2] === "constructor") && has2.call(object, dontEnums[k2])) { theKeys.push(dontEnums[k2]); } } } return theKeys; }; } implementation$b = keysShim2; return implementation$b; } var slice$1 = Array.prototype.slice; var isArgs = isArguments$3; var origKeys = Object.keys; var keysShim = origKeys ? function keys(o) { return origKeys(o); } : requireImplementation(); var originalKeys = Object.keys; keysShim.shim = function shimObjectKeys() { if (Object.keys) { var keysWorksWithArguments = function() { var args = Object.keys(arguments); return args && args.length === arguments.length; }(1, 2); if (!keysWorksWithArguments) { Object.keys = function keys3(object) { if (isArgs(object)) { return originalKeys(slice$1.call(object)); } return originalKeys(object); }; } } else { Object.keys = keysShim; } return Object.keys || keysShim; }; var objectKeys$2 = keysShim; var shams$1 = function hasSymbols() { if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") { return false; } if (typeof Symbol.iterator === "symbol") { return true; } var obj = {}; var sym = Symbol("test"); var symObj = Object(sym); if (typeof sym === "string") { return false; } if (Object.prototype.toString.call(sym) !== "[object Symbol]") { return false; } if (Object.prototype.toString.call(symObj) !== "[object Symbol]") { return false; } var symVal = 42; obj[sym] = symVal; for (sym in obj) { return false; } if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) { return false; } if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) { return false; } var syms = Object.getOwnPropertySymbols(obj); if (syms.length !== 1 || syms[0] !== sym) { return false; } if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } if (typeof Object.getOwnPropertyDescriptor === "function") { var descriptor = Object.getOwnPropertyDescriptor(obj, sym); if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } } return true; }; var origSymbol = typeof Symbol !== "undefined" && Symbol; var hasSymbolSham = shams$1; var hasSymbols$5 = function hasNativeSymbols() { if (typeof origSymbol !== "function") { return false; } if (typeof Symbol !== "function") { return false; } if (typeof origSymbol("foo") !== "symbol") { return false; } if (typeof Symbol("bar") !== "symbol") { return false; } return hasSymbolSham(); }; var ERROR_MESSAGE = "Function.prototype.bind called on incompatible "; var slice = Array.prototype.slice; var toStr$8 = Object.prototype.toString; var funcType = "[object Function]"; var implementation$a = function bind(that) { var target = this; if (typeof target !== "function" || toStr$8.call(target) !== funcType) { throw new TypeError(ERROR_MESSAGE + target); } var args = slice.call(arguments, 1); var bound2; var binder = function() { if (this instanceof bound2) { var result = target.apply( this, args.concat(slice.call(arguments)) ); if (Object(result) === result) { return result; } return this; } else { return target.apply( that, args.concat(slice.call(arguments)) ); } }; var boundLength = Math.max(0, target.length - args.length); var boundArgs = []; for (var i = 0; i < boundLength; i++) { boundArgs.push("$" + i); } bound2 = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder); if (target.prototype) { var Empty = function Empty2() { }; Empty.prototype = target.prototype; bound2.prototype = new Empty(); Empty.prototype = null; } return bound2; }; var implementation$9 = implementation$a; var functionBind = Function.prototype.bind || implementation$9; var bind$1 = functionBind; var src = bind$1.call(Function.call, Object.prototype.hasOwnProperty); var undefined$1; var $SyntaxError$1 = SyntaxError; var $Function = Function; var $TypeError$2 = TypeError; var getEvalledConstructor = function(expressionSyntax) { try { return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")(); } catch (e2) { } }; var $gOPD$2 = Object.getOwnPropertyDescriptor; if ($gOPD$2) { try { $gOPD$2({}, ""); } catch (e2) { $gOPD$2 = null; } } var throwTypeError = function() { throw new $TypeError$2(); }; var ThrowTypeError = $gOPD$2 ? function() { try { arguments.callee; return throwTypeError; } catch (calleeThrows) { try { return $gOPD$2(arguments, "callee").get; } catch (gOPDthrows) { return throwTypeError; } } }() : throwTypeError; var hasSymbols$4 = hasSymbols$5(); var getProto$1 = Object.getPrototypeOf || function(x) { return x.__proto__; }; var needsEval = {}; var TypedArray = typeof Uint8Array === "undefined" ? undefined$1 : getProto$1(Uint8Array); var INTRINSICS = { "%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer, "%ArrayIteratorPrototype%": hasSymbols$4 ? getProto$1([][Symbol.iterator]()) : undefined$1, "%AsyncFromSyncIteratorPrototype%": undefined$1, "%AsyncFunction%": needsEval, "%AsyncGenerator%": needsEval, "%AsyncGeneratorFunction%": needsEval, "%AsyncIteratorPrototype%": needsEval, "%Atomics%": typeof Atomics === "undefined" ? undefined$1 : Atomics, "%BigInt%": typeof BigInt === "undefined" ? undefined$1 : BigInt, "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined$1 : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined$1 : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView === "undefined" ? undefined$1 : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, // eslint-disable-line no-eval "%EvalError%": EvalError, "%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array, "%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry, "%Function%": $Function, "%GeneratorFunction%": needsEval, "%Int8Array%": typeof Int8Array === "undefined" ? undefined$1 : Int8Array, "%Int16Array%": typeof Int16Array === "undefined" ? undefined$1 : Int16Array, "%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": hasSymbols$4 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1, "%JSON%": typeof JSON === "object" ? JSON : undefined$1, "%Map%": typeof Map === "undefined" ? undefined$1 : Map, "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols$4 ? undefined$1 : getProto$1((/* @__PURE__ */ new Map())[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise === "undefined" ? undefined$1 : Promise, "%Proxy%": typeof Proxy === "undefined" ? undefined$1 : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set === "undefined" ? undefined$1 : Set, "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols$4 ? undefined$1 : getProto$1((/* @__PURE__ */ new Set())[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": hasSymbols$4 ? getProto$1(""[Symbol.iterator]()) : undefined$1, "%Symbol%": hasSymbols$4 ? Symbol : undefined$1, "%SyntaxError%": $SyntaxError$1, "%ThrowTypeError%": ThrowTypeError, "%TypedArray%": TypedArray, "%TypeError%": $TypeError$2, "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$1 : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$1 : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$1 : Uint16Array, "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined$1 : Uint32Array, "%URIError%": URIError, "%WeakMap%": typeof WeakMap === "undefined" ? undefined$1 : WeakMap, "%WeakRef%": typeof WeakRef === "undefined" ? undefined$1 : WeakRef, "%WeakSet%": typeof WeakSet === "undefined" ? undefined$1 : WeakSet }; try { null.error; } catch (e2) { var errorProto = getProto$1(getProto$1(e2)); INTRINSICS["%Error.prototype%"] = errorProto; } var doEval = function doEval2(name2) { var value; if (name2 === "%AsyncFunction%") { value = getEvalledConstructor("async function () {}"); } else if (name2 === "%GeneratorFunction%") { value = getEvalledConstructor("function* () {}"); } else if (name2 === "%AsyncGeneratorFunction%") { value = getEvalledConstructor("async function* () {}"); } else if (name2 === "%AsyncGenerator%") { var fn = doEval2("%AsyncGeneratorFunction%"); if (fn) { value = fn.prototype; } } else if (name2 === "%AsyncIteratorPrototype%") { var gen = doEval2("%AsyncGenerator%"); if (gen) { value = getProto$1(gen.prototype); } } INTRINSICS[name2] = value; return value; }; var LEGACY_ALIASES = { "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }; var bind2 = functionBind; var hasOwn$1 = src; var $concat$1 = bind2.call(Function.call, Array.prototype.concat); var $spliceApply = bind2.call(Function.apply, Array.prototype.splice); var $replace$1 = bind2.call(Function.call, String.prototype.replace); var $strSlice = bind2.call(Function.call, String.prototype.slice); var $exec$1 = bind2.call(Function.call, RegExp.prototype.exec); var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; var reEscapeChar = /\\(\\)?/g; var stringToPath = function stringToPath2(string) { var first = $strSlice(string, 0, 1); var last = $strSlice(string, -1); if (first === "%" && last !== "%") { throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`"); } else if (last === "%" && first !== "%") { throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`"); } var result = []; $replace$1(string, rePropName, function(match, number, quote2, subString) { result[result.length] = quote2 ? $replace$1(subString, reEscapeChar, "$1") : number || match; }); return result; }; var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) { var intrinsicName = name2; var alias; if (hasOwn$1(LEGACY_ALIASES, intrinsicName)) { alias = LEGACY_ALIASES[intrinsicName]; intrinsicName = "%" + alias[0] + "%"; } if (hasOwn$1(INTRINSICS, intrinsicName)) { var value = INTRINSICS[intrinsicName]; if (value === needsEval) { value = doEval(intrinsicName); } if (typeof value === "undefined" && !allowMissing) { throw new $TypeError$2("intrinsic " + name2 + " exists, but is not available. Please file an issue!"); } return { alias, name: intrinsicName, value }; } throw new $SyntaxError$1("intrinsic " + name2 + " does not exist!"); }; var getIntrinsic = function GetIntrinsic(name2, allowMissing) { if (typeof name2 !== "string" || name2.length === 0) { throw new $TypeError$2("intrinsic name must be a non-empty string"); } if (arguments.length > 1 && typeof allowMissing !== "boolean") { throw new $TypeError$2('"allowMissing" argument must be a boolean'); } if ($exec$1(/^%?[^%]*%?$/, name2) === null) { throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name"); } var parts = stringToPath(name2); var intrinsicBaseName = parts.length > 0 ? parts[0] : ""; var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing); var intrinsicRealName = intrinsic.name; var value = intrinsic.value; var skipFurtherCaching = false; var alias = intrinsic.alias; if (alias) { intrinsicBaseName = alias[0]; $spliceApply(parts, $concat$1([0, 1], alias)); } for (var i = 1, isOwn = true; i < parts.length; i += 1) { var part = parts[i]; var first = $strSlice(part, 0, 1); var last = $strSlice(part, -1); if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) { throw new $SyntaxError$1("property names with quotes must have matching quotes"); } if (part === "constructor" || !isOwn) { skipFurtherCaching = true; } intrinsicBaseName += "." + part; intrinsicRealName = "%" + intrinsicBaseName + "%"; if (hasOwn$1(INTRINSICS, intrinsicRealName)) { value = INTRINSICS[intrinsicRealName]; } else if (value != null) { if (!(part in value)) { if (!allowMissing) { throw new $TypeError$2("base intrinsic for " + name2 + " exists, but the property is not available."); } return void 0; } if ($gOPD$2 && i + 1 >= parts.length) { var desc = $gOPD$2(value, part); isOwn = !!desc; if (isOwn && "get" in desc && !("originalValue" in desc.get)) { value = desc.get; } else { value = value[part]; } } else { isOwn = hasOwn$1(value, part); value = value[part]; } if (isOwn && !skipFurtherCaching) { INTRINSICS[intrinsicRealName] = value; } } } return value; }; var GetIntrinsic$8 = getIntrinsic; var $defineProperty = GetIntrinsic$8("%Object.defineProperty%", true); var hasPropertyDescriptors$1 = function hasPropertyDescriptors() { if ($defineProperty) { try { $defineProperty({}, "a", { value: 1 }); return true; } catch (e2) { return false; } } return false; }; hasPropertyDescriptors$1.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() { if (!hasPropertyDescriptors$1()) { return null; } try { return $defineProperty([], "length", { value: 1 }).length !== 1; } catch (e2) { return true; } }; var hasPropertyDescriptors_1 = hasPropertyDescriptors$1; var keys2 = objectKeys$2; var hasSymbols$3 = typeof Symbol === "function" && typeof Symbol("foo") === "symbol"; var toStr$7 = Object.prototype.toString; var concat = Array.prototype.concat; var origDefineProperty = Object.defineProperty; var isFunction = function(fn) { return typeof fn === "function" && toStr$7.call(fn) === "[object Function]"; }; var hasPropertyDescriptors2 = hasPropertyDescriptors_1(); var supportsDescriptors$2 = origDefineProperty && hasPropertyDescriptors2; var defineProperty$1 = function(object, name2, value, predicate) { if (name2 in object) { if (predicate === true) { if (object[name2] === value) { return; } } else if (!isFunction(predicate) || !predicate()) { return; } } if (supportsDescriptors$2) { origDefineProperty(object, name2, { configurable: true, enumerable: false, value, writable: true }); } else { object[name2] = value; } }; var defineProperties$1 = function(object, map) { var predicates = arguments.length > 2 ? arguments[2] : {}; var props = keys2(map); if (hasSymbols$3) { props = concat.call(props, Object.getOwnPropertySymbols(map)); } for (var i = 0; i < props.length; i += 1) { defineProperty$1(object, props[i], map[props[i]], predicates[props[i]]); } }; defineProperties$1.supportsDescriptors = !!supportsDescriptors$2; var defineProperties_1 = defineProperties$1; var callBindExports = {}; var callBind$5 = { get exports() { return callBindExports; }, set exports(v2) { callBindExports = v2; } }; (function(module2) { var bind3 = functionBind; var GetIntrinsic3 = getIntrinsic; var $apply = GetIntrinsic3("%Function.prototype.apply%"); var $call = GetIntrinsic3("%Function.prototype.call%"); var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply); var $gOPD2 = GetIntrinsic3("%Object.getOwnPropertyDescriptor%", true); var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true); var $max = GetIntrinsic3("%Math.max%"); if ($defineProperty2) { try { $defineProperty2({}, "a", { value: 1 }); } catch (e2) { $defineProperty2 = null; } } module2.exports = function callBind2(originalFunction) { var func = $reflectApply(bind3, $call, arguments); if ($gOPD2 && $defineProperty2) { var desc = $gOPD2(func, "length"); if (desc.configurable) { $defineProperty2( func, "length", { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) } ); } } return func; }; var applyBind = function applyBind2() { return $reflectApply(bind3, $apply, arguments); }; if ($defineProperty2) { $defineProperty2(module2.exports, "apply", { value: applyBind }); } else { module2.exports.apply = applyBind; } })(callBind$5); var GetIntrinsic$7 = getIntrinsic; var callBind$4 = callBindExports; var $indexOf$1 = callBind$4(GetIntrinsic$7("String.prototype.indexOf")); var callBound$d = function callBoundIntrinsic(name2, allowMissing) { var intrinsic = GetIntrinsic$7(name2, !!allowMissing); if (typeof intrinsic === "function" && $indexOf$1(name2, ".prototype.") > -1) { return callBind$4(intrinsic); } return intrinsic; }; var objectKeys$1 = objectKeys$2; var hasSymbols$2 = shams$1(); var callBound$c = callBound$d; var toObject = Object; var $push = callBound$c("Array.prototype.push"); var $propIsEnumerable = callBound$c("Object.prototype.propertyIsEnumerable"); var originalGetSymbols = hasSymbols$2 ? Object.getOwnPropertySymbols : null; var implementation$8 = function assign(target, source1) { if (target == null) { throw new TypeError("target must be an object"); } var to = toObject(target); if (arguments.length === 1) { return to; } for (var s = 1; s < arguments.length; ++s) { var from = toObject(arguments[s]); var keys3 = objectKeys$1(from); var getSymbols = hasSymbols$2 && (Object.getOwnPropertySymbols || originalGetSymbols); if (getSymbols) { var syms = getSymbols(from); for (var j = 0; j < syms.length; ++j) { var key = syms[j]; if ($propIsEnumerable(from, key)) { $push(keys3, key); } } } for (var i = 0; i < keys3.length; ++i) { var nextKey = keys3[i]; if ($propIsEnumerable(from, nextKey)) { var propValue = from[nextKey]; to[nextKey] = propValue; } } } return to; }; var implementation$7 = implementation$8; var lacksProperEnumerationOrder = function() { if (!Object.assign) { return false; } var str = "abcdefghijklmnopqrst"; var letters = str.split(""); var map = {}; for (var i = 0; i < letters.length; ++i) { map[letters[i]] = letters[i]; } var obj = Object.assign({}, map); var actual = ""; for (var k2 in obj) { actual += k2; } return str !== actual; }; var assignHasPendingExceptions = function() { if (!Object.assign || !Object.preventExtensions) { return false; } var thrower = Object.preventExtensions({ 1: 2 }); try { Object.assign(thrower, "xy"); } catch (e2) { return thrower[1] === "y"; } return false; }; var polyfill$4 = function getPolyfill() { if (!Object.assign) { return implementation$7; } if (lacksProperEnumerationOrder()) { return implementation$7; } if (assignHasPendingExceptions()) { return implementation$7; } return Object.assign; }; var define$3 = defineProperties_1; var getPolyfill$5 = polyfill$4; var shim$5 = function shimAssign() { var polyfill2 = getPolyfill$5(); define$3( Object, { assign: polyfill2 }, { assign: function() { return Object.assign !== polyfill2; } } ); return polyfill2; }; var defineProperties = defineProperties_1; var callBind$3 = callBindExports; var implementation$6 = implementation$8; var getPolyfill$4 = polyfill$4; var shim$4 = shim$5; var polyfill$3 = callBind$3.apply(getPolyfill$4()); var bound = function assign2(target, source1) { return polyfill$3(Object, arguments); }; defineProperties(bound, { getPolyfill: getPolyfill$4, implementation: implementation$6, shim: shim$4 }); var object_assign = bound; var implementationExports = {}; var implementation$5 = { get exports() { return implementationExports; }, set exports(v2) { implementationExports = v2; } }; var functionsHaveNames = function functionsHaveNames2() { return typeof function f2() { }.name === "string"; }; var gOPD$4 = Object.getOwnPropertyDescriptor; if (gOPD$4) { try { gOPD$4([], "length"); } catch (e2) { gOPD$4 = null; } } functionsHaveNames.functionsHaveConfigurableNames = function functionsHaveConfigurableNames() { if (!functionsHaveNames() || !gOPD$4) { return false; } var desc = gOPD$4(function() { }, "name"); return !!desc && !!desc.configurable; }; var $bind = Function.prototype.bind; functionsHaveNames.boundFunctionsHaveNames = function boundFunctionsHaveNames() { return functionsHaveNames() && typeof $bind === "function" && function f2() { }.bind().name !== ""; }; var functionsHaveNames_1 = functionsHaveNames; (function(module2) { var functionsHaveConfigurableNames2 = functionsHaveNames_1.functionsHaveConfigurableNames(); var $Object = Object; var $TypeError2 = TypeError; module2.exports = function flags2() { if (this != null && this !== $Object(this)) { throw new $TypeError2("RegExp.prototype.flags getter called on non-object"); } var result = ""; if (this.hasIndices) { result += "d"; } if (this.global) { result += "g"; } if (this.ignoreCase) { result += "i"; } if (this.multiline) { result += "m"; } if (this.dotAll) { result += "s"; } if (this.unicode) { result += "u"; } if (this.unicodeSets) { result += "v"; } if (this.sticky) { result += "y"; } return result; }; if (functionsHaveConfigurableNames2 && Object.defineProperty) { Object.defineProperty(module2.exports, "name", { value: "get flags" }); } })(implementation$5); var implementation$4 = implementationExports; var supportsDescriptors$1 = defineProperties_1.supportsDescriptors; var $gOPD$1 = Object.getOwnPropertyDescriptor; var polyfill$2 = function getPolyfill2() { if (supportsDescriptors$1 && /a/mig.flags === "gim") { var descriptor = $gOPD$1(RegExp.prototype, "flags"); if (descriptor && typeof descriptor.get === "function" && typeof RegExp.prototype.dotAll === "boolean" && typeof RegExp.prototype.hasIndices === "boolean") { var calls = ""; var o = {}; Object.defineProperty(o, "hasIndices", { get: function() { calls += "d"; } }); Object.defineProperty(o, "sticky", { get: function() { calls += "y"; } }); if (calls === "dy") { return descriptor.get; } } } return implementation$4; }; var supportsDescriptors = defineProperties_1.supportsDescriptors; var getPolyfill$3 = polyfill$2; var gOPD$3 = Object.getOwnPropertyDescriptor; var defineProperty = Object.defineProperty; var TypeErr = TypeError; var getProto = Object.getPrototypeOf; var regex = /a/; var shim$3 = function shimFlags() { if (!supportsDescriptors || !getProto) { throw new TypeErr("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors"); } var polyfill2 = getPolyfill$3(); var proto = getProto(regex); var descriptor = gOPD$3(proto, "flags"); if (!descriptor || descriptor.get !== polyfill2) { defineProperty(proto, "flags", { configurable: true, enumerable: false, get: polyfill2 }); } return polyfill2; }; var define$2 = defineProperties_1; var callBind$2 = callBindExports; var implementation$3 = implementationExports; var getPolyfill$2 = polyfill$2; var shim$2 = shim$3; var flagsBound = callBind$2(getPolyfill$2()); define$2(flagsBound, { getPolyfill: getPolyfill$2, implementation: implementation$3, shim: shim$2 }); var regexp_prototype_flags = flagsBound; var esGetIteratorExports = {}; var esGetIterator = { get exports() { return esGetIteratorExports; }, set exports(v2) { esGetIteratorExports = v2; } }; var hasSymbols$1 = shams$1; var shams = function hasToStringTagShams() { return hasSymbols$1() && !!Symbol.toStringTag; }; var hasToStringTag$8 = shams(); var callBound$b = callBound$d; var $toString$4 = callBound$b("Object.prototype.toString"); var isStandardArguments = function isArguments2(value) { if (hasToStringTag$8 && value && typeof value === "object" && Symbol.toStringTag in value) { return false; } return $toString$4(value) === "[object Arguments]"; }; var isLegacyArguments = function isArguments3(value) { if (isStandardArguments(value)) { return true; } return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString$4(value) !== "[object Array]" && $toString$4(value.callee) === "[object Function]"; }; var supportsStandardArguments = function() { return isStandardArguments(arguments); }(); isStandardArguments.isLegacyArguments = isLegacyArguments; var isArguments$2 = supportsStandardArguments ? isStandardArguments : isLegacyArguments; const __viteBrowserExternal = {}; const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: __viteBrowserExternal }, Symbol.toStringTag, { value: "Module" })); const require$$0 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1); var hasMap = typeof Map === "function" && Map.prototype; var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null; var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null; var mapForEach = hasMap && Map.prototype.forEach; var hasSet = typeof Set === "function" && Set.prototype; var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null; var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === "function" ? setSizeDescriptor.get : null; var setForEach = hasSet && Set.prototype.forEach; var hasWeakMap = typeof WeakMap === "function" && WeakMap.prototype; var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; var hasWeakSet = typeof WeakSet === "function" && WeakSet.prototype; var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; var hasWeakRef = typeof WeakRef === "function" && WeakRef.prototype; var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; var booleanValueOf = Boolean.prototype.valueOf; var objectToString = Object.prototype.toString; var functionToString = Function.prototype.toString; var $match = String.prototype.match; var $slice$2 = String.prototype.slice; var $replace = String.prototype.replace; var $toUpperCase = String.prototype.toUpperCase; var $toLowerCase = String.prototype.toLowerCase; var $test = RegExp.prototype.test; var $concat = Array.prototype.concat; var $join = Array.prototype.join; var $arrSlice = Array.prototype.slice; var $floor = Math.floor; var bigIntValueOf$1 = typeof BigInt === "function" ? BigInt.prototype.valueOf : null; var gOPS = Object.getOwnPropertySymbols; var symToString = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null; var hasShammedSymbols = typeof Symbol === "function" && typeof Symbol.iterator === "object"; var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? "object" : "symbol") ? Symbol.toStringTag : null; var isEnumerable = Object.prototype.propertyIsEnumerable; var gPO$1 = (typeof Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(O) { return O.__proto__; } : null); function addNumericSeparator(num, str) { if (num === Infinity || num === -Infinity || num !== num || num && num > -1e3 && num < 1e3 || $test.call(/e/, str)) { return str; } var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; if (typeof num === "number") { var int = num < 0 ? -$floor(-num) : $floor(num); if (int !== num) { var intStr = String(int); var dec = $slice$2.call(str, intStr.length + 1); return $replace.call(intStr, sepRegex, "$&_") + "." + $replace.call($replace.call(dec, /([0-9]{3})/g, "$&_"), /_$/, ""); } } return $replace.call(str, sepRegex, "$&_"); } var utilInspect = require$$0; var inspectCustom = utilInspect.custom; var inspectSymbol = isSymbol$2(inspectCustom) ? inspectCustom : null; var objectInspect = function inspect_(obj, options, depth, seen) { var opts = options || {}; if (has$2(opts, "quoteStyle") && (opts.quoteStyle !== "single" && opts.quoteStyle !== "double")) { throw new TypeError('option "quoteStyle" must be "single" or "double"'); } if (has$2(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) { throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); } var customInspect = has$2(opts, "customInspect") ? opts.customInspect : true; if (typeof customInspect !== "boolean" && customInspect !== "symbol") { throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`"); } if (has$2(opts, "indent") && opts.indent !== null && opts.indent !== " " && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) { throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); } if (has$2(opts, "numericSeparator") && typeof opts.numericSeparator !== "boolean") { throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); } var numericSeparator = opts.numericSeparator; if (typeof obj === "undefined") { return "undefined"; } if (obj === null) { return "null"; } if (typeof obj === "boolean") { return obj ? "true" : "false"; } if (typeof obj === "string") { return inspectString(obj, opts); } if (typeof obj === "number") { if (obj === 0) { return Infinity / obj > 0 ? "0" : "-0"; } var str = String(obj); return numericSeparator ? addNumericSeparator(obj, str) : str; } if (typeof obj === "bigint") { var bigIntStr = String(obj) + "n"; return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; } var maxDepth = typeof opts.depth === "undefined" ? 5 : opts.depth; if (typeof depth === "undefined") { depth = 0; } if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") { return isArray$2(obj) ? "[Array]" : "[Object]"; } var indent = getIndent(opts, depth); if (typeof seen === "undefined") { seen = []; } else if (indexOf(seen, obj) >= 0) { return "[Circular]"; } function inspect2(value, from, noIndent) { if (from) { seen = $arrSlice.call(seen); seen.push(from); } if (noIndent) { var newOpts = { depth: opts.depth }; if (has$2(opts, "quoteStyle")) { newOpts.quoteStyle = opts.quoteStyle; } return inspect_(value, newOpts, depth + 1, seen); } return inspect_(value, opts, depth + 1, seen); } if (typeof obj === "function" && !isRegExp(obj)) { var name2 = nameOf(obj); var keys3 = arrObjKeys(obj, inspect2); return "[Function" + (name2 ? ": " + name2 : " (anonymous)") + "]" + (keys3.length > 0 ? " { " + $join.call(keys3, ", ") + " }" : ""); } if (isSymbol$2(obj)) { var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj); return typeof obj === "object" && !hasShammedSymbols ? markBoxed(symString) : symString; } if (isElement(obj)) { var s = "<" + $toLowerCase.call(String(obj.nodeName)); var attrs = obj.attributes || []; for (var i = 0; i < attrs.length; i++) { s += " " + attrs[i].name + "=" + wrapQuotes(quote(attrs[i].value), "double", opts); } s += ">"; if (obj.childNodes && obj.childNodes.length) { s += "..."; } s += "</" + $toLowerCase.call(String(obj.nodeName)) + ">"; return s; } if (isArray$2(obj)) { if (obj.length === 0) { return "[]"; } var xs = arrObjKeys(obj, inspect2); if (indent && !singleLineValues(xs)) { return "[" + indentedJoin(xs, indent) + "]"; } return "[ " + $join.call(xs, ", ") + " ]"; } if (isError(obj)) { var parts = arrObjKeys(obj, inspect2); if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) { return "{ [" + String(obj) + "] " + $join.call($concat.call("[cause]: " + inspect2(obj.cause), parts), ", ") + " }"; } if (parts.length === 0) { return "[" + String(obj) + "]"; } return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }"; } if (typeof obj === "object" && customInspect) { if (inspectSymbol && typeof obj[inspectSymbol] === "function" && utilInspect) { return utilInspect(obj, { depth: maxDepth - depth }); } else if (customInspect !== "symbol" && typeof obj.inspect === "function") { return obj.inspect(); } } if (isMap$3(obj)) { var mapParts = []; if (mapForEach) { mapForEach.call(obj, function(value, key) { mapParts.push(inspect2(key, obj, true) + " => " + inspect2(value, obj)); }); } return collectionOf("Map", mapSize.call(obj), mapParts, indent); } if (isSet$3(obj)) { var setParts = []; if (setForEach) { setForEach.call(obj, function(value) { setParts.push(inspect2(value, obj)); }); } return collectionOf("Set", setSize.call(obj), setParts, indent); } if (isWeakMap$1(obj)) { return weakCollectionOf("WeakMap"); } if (isWeakSet$1(obj)) { return weakCollectionOf("WeakSet"); } if (isWeakRef(obj)) { return weakCollectionOf("WeakRef"); } if (isNumber$1(obj)) { return markBoxed(inspect2(Number(obj))); } if (isBigInt$1(obj)) { return markBoxed(inspect2(bigIntValueOf$1.call(obj))); } if (isBoolean$1(obj)) { return markBoxed(booleanValueOf.call(obj)); } if (isString$3(obj)) { return markBoxed(inspect2(String(obj))); } if (!isDate$1(obj) && !isRegExp(obj)) { var ys = arrObjKeys(obj, inspect2); var isPlainObject = gPO$1 ? gPO$1(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; var protoTag = obj instanceof Object ? "" : "null prototype"; var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice$2.call(toStr$6(obj), 8, -1) : protoTag ? "Object" : ""; var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : ""; var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat.call([], stringTag || [], protoTag || []), ": ") + "] " : ""); if (ys.length === 0) { return tag + "{}"; } if (indent) { return tag + "{" + indentedJoin(ys, indent) + "}"; } return tag + "{ " + $join.call(ys, ", ") + " }"; } return String(obj); }; function wrapQuotes(s, defaultStyle, opts) { var quoteCha