UNPKG

vis-timeline

Version:

Create a fully customizable, interactive timeline with items and ranges.

1,491 lines (1,230 loc) 1.23 MB
/** * vis-timeline and vis-graph2d * https://visjs.github.io/vis-timeline/ * * Create a fully customizable, interactive timeline with items and ranges. * * @version 8.1.1 * @date 2025-07-19T11:43:14.304Z * * @copyright (c) 2011-2017 Almende B.V, http://almende.com * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs * * @license * vis.js is dual licensed under both * * 1. The Apache 2.0 License * http://www.apache.org/licenses/LICENSE-2.0 * * and * * 2. The MIT License * http://opensource.org/licenses/MIT * * vis.js may be distributed under either license. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('moment'), require('vis-data/peer/umd/vis-data.js')) : typeof define === 'function' && define.amd ? define(['exports', 'moment', 'vis-data/peer/umd/vis-data.js'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.vis = global.vis || {}, global.moment, global.vis)); })(this, (function (exports, moment$3, esnext) { 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; } var es_array_isArray = {}; var globalThis_1; var hasRequiredGlobalThis; function requireGlobalThis () { if (hasRequiredGlobalThis) return globalThis_1; hasRequiredGlobalThis = 1; var check = function (it) { return it && it.Math === Math && it; }; // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 globalThis_1 = // 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 commonjsGlobal == 'object' && commonjsGlobal) || check(typeof globalThis_1 == 'object' && globalThis_1) || // eslint-disable-next-line no-new-func -- fallback (function () { return this; })() || Function('return this')(); return globalThis_1; } var fails; var hasRequiredFails; function requireFails () { if (hasRequiredFails) return fails; hasRequiredFails = 1; fails = function (exec) { try { return !!exec(); } catch (error) { return true; } }; return fails; } var functionBindNative; var hasRequiredFunctionBindNative; function requireFunctionBindNative () { if (hasRequiredFunctionBindNative) return functionBindNative; hasRequiredFunctionBindNative = 1; var fails = /*@__PURE__*/ requireFails(); functionBindNative = !fails(function () { // eslint-disable-next-line es/no-function-prototype-bind -- safe var test = (function () { /* empty */ }).bind(); // eslint-disable-next-line no-prototype-builtins -- safe return typeof test != 'function' || test.hasOwnProperty('prototype'); }); return functionBindNative; } var functionApply; var hasRequiredFunctionApply; function requireFunctionApply () { if (hasRequiredFunctionApply) return functionApply; hasRequiredFunctionApply = 1; var NATIVE_BIND = /*@__PURE__*/ requireFunctionBindNative(); var FunctionPrototype = Function.prototype; var apply = FunctionPrototype.apply; var call = FunctionPrototype.call; // eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () { return call.apply(apply, arguments); }); return functionApply; } var functionUncurryThis; var hasRequiredFunctionUncurryThis; function requireFunctionUncurryThis () { if (hasRequiredFunctionUncurryThis) return functionUncurryThis; hasRequiredFunctionUncurryThis = 1; var NATIVE_BIND = /*@__PURE__*/ requireFunctionBindNative(); var FunctionPrototype = Function.prototype; var call = FunctionPrototype.call; // eslint-disable-next-line es/no-function-prototype-bind -- safe var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call); functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) { return function () { return call.apply(fn, arguments); }; }; return functionUncurryThis; } var classofRaw; var hasRequiredClassofRaw; function requireClassofRaw () { if (hasRequiredClassofRaw) return classofRaw; hasRequiredClassofRaw = 1; var uncurryThis = /*@__PURE__*/ requireFunctionUncurryThis(); var toString = uncurryThis({}.toString); var stringSlice = uncurryThis(''.slice); classofRaw = function (it) { return stringSlice(toString(it), 8, -1); }; return classofRaw; } var functionUncurryThisClause; var hasRequiredFunctionUncurryThisClause; function requireFunctionUncurryThisClause () { if (hasRequiredFunctionUncurryThisClause) return functionUncurryThisClause; hasRequiredFunctionUncurryThisClause = 1; var classofRaw = /*@__PURE__*/ requireClassofRaw(); var uncurryThis = /*@__PURE__*/ requireFunctionUncurryThis(); functionUncurryThisClause = function (fn) { // Nashorn bug: // https://github.com/zloirock/core-js/issues/1128 // https://github.com/zloirock/core-js/issues/1130 if (classofRaw(fn) === 'Function') return uncurryThis(fn); }; return functionUncurryThisClause; } var isCallable; var hasRequiredIsCallable; function requireIsCallable () { if (hasRequiredIsCallable) return isCallable; hasRequiredIsCallable = 1; // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot var documentAll = typeof document == 'object' && document.all; // `IsCallable` abstract operation // https://tc39.es/ecma262/#sec-iscallable // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) { return typeof argument == 'function' || argument === documentAll; } : function (argument) { return typeof argument == 'function'; }; return isCallable; } var objectGetOwnPropertyDescriptor = {}; var descriptors; var hasRequiredDescriptors; function requireDescriptors () { if (hasRequiredDescriptors) return descriptors; hasRequiredDescriptors = 1; var fails = /*@__PURE__*/ requireFails(); // Detect IE8's incomplete defineProperty implementation descriptors = !fails(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7; }); return descriptors; } var functionCall; var hasRequiredFunctionCall; function requireFunctionCall () { if (hasRequiredFunctionCall) return functionCall; hasRequiredFunctionCall = 1; var NATIVE_BIND = /*@__PURE__*/ requireFunctionBindNative(); var call = Function.prototype.call; // eslint-disable-next-line es/no-function-prototype-bind -- safe functionCall = NATIVE_BIND ? call.bind(call) : function () { return call.apply(call, arguments); }; return functionCall; } var objectPropertyIsEnumerable = {}; var hasRequiredObjectPropertyIsEnumerable; function requireObjectPropertyIsEnumerable () { if (hasRequiredObjectPropertyIsEnumerable) return objectPropertyIsEnumerable; hasRequiredObjectPropertyIsEnumerable = 1; var $propertyIsEnumerable = {}.propertyIsEnumerable; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // Nashorn ~ JDK8 bug var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1); // `Object.prototype.propertyIsEnumerable` method implementation // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) { var descriptor = getOwnPropertyDescriptor(this, V); return !!descriptor && descriptor.enumerable; } : $propertyIsEnumerable; return objectPropertyIsEnumerable; } var createPropertyDescriptor; var hasRequiredCreatePropertyDescriptor; function requireCreatePropertyDescriptor () { if (hasRequiredCreatePropertyDescriptor) return createPropertyDescriptor; hasRequiredCreatePropertyDescriptor = 1; createPropertyDescriptor = function (bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value: value }; }; return createPropertyDescriptor; } var indexedObject; var hasRequiredIndexedObject; function requireIndexedObject () { if (hasRequiredIndexedObject) return indexedObject; hasRequiredIndexedObject = 1; var uncurryThis = /*@__PURE__*/ requireFunctionUncurryThis(); var fails = /*@__PURE__*/ requireFails(); var classof = /*@__PURE__*/ requireClassofRaw(); var $Object = Object; var split = uncurryThis(''.split); // fallback for non-array-like ES3 and non-enumerable old V8 strings indexedObject = fails(function () { // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 // eslint-disable-next-line no-prototype-builtins -- safe return !$Object('z').propertyIsEnumerable(0); }) ? function (it) { return classof(it) === 'String' ? split(it, '') : $Object(it); } : $Object; return indexedObject; } var isNullOrUndefined; var hasRequiredIsNullOrUndefined; function requireIsNullOrUndefined () { if (hasRequiredIsNullOrUndefined) return isNullOrUndefined; hasRequiredIsNullOrUndefined = 1; // we can't use just `it == null` since of `document.all` special case // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec isNullOrUndefined = function (it) { return it === null || it === undefined; }; return isNullOrUndefined; } var requireObjectCoercible; var hasRequiredRequireObjectCoercible; function requireRequireObjectCoercible () { if (hasRequiredRequireObjectCoercible) return requireObjectCoercible; hasRequiredRequireObjectCoercible = 1; var isNullOrUndefined = /*@__PURE__*/ requireIsNullOrUndefined(); var $TypeError = TypeError; // `RequireObjectCoercible` abstract operation // https://tc39.es/ecma262/#sec-requireobjectcoercible requireObjectCoercible = function (it) { if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it); return it; }; return requireObjectCoercible; } var toIndexedObject; var hasRequiredToIndexedObject; function requireToIndexedObject () { if (hasRequiredToIndexedObject) return toIndexedObject; hasRequiredToIndexedObject = 1; // toObject with fallback for non-array-like ES3 strings var IndexedObject = /*@__PURE__*/ requireIndexedObject(); var requireObjectCoercible = /*@__PURE__*/ requireRequireObjectCoercible(); toIndexedObject = function (it) { return IndexedObject(requireObjectCoercible(it)); }; return toIndexedObject; } var isObject$1; var hasRequiredIsObject; function requireIsObject () { if (hasRequiredIsObject) return isObject$1; hasRequiredIsObject = 1; var isCallable = /*@__PURE__*/ requireIsCallable(); isObject$1 = function (it) { return typeof it == 'object' ? it !== null : isCallable(it); }; return isObject$1; } var path; var hasRequiredPath; function requirePath () { if (hasRequiredPath) return path; hasRequiredPath = 1; path = {}; return path; } var getBuiltIn; var hasRequiredGetBuiltIn; function requireGetBuiltIn () { if (hasRequiredGetBuiltIn) return getBuiltIn; hasRequiredGetBuiltIn = 1; var path = /*@__PURE__*/ requirePath(); var globalThis = /*@__PURE__*/ requireGlobalThis(); var isCallable = /*@__PURE__*/ requireIsCallable(); var aFunction = function (variable) { return isCallable(variable) ? variable : undefined; }; getBuiltIn = function (namespace, method) { return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(globalThis[namespace]) : path[namespace] && path[namespace][method] || globalThis[namespace] && globalThis[namespace][method]; }; return getBuiltIn; } var objectIsPrototypeOf; var hasRequiredObjectIsPrototypeOf; function requireObjectIsPrototypeOf () { if (hasRequiredObjectIsPrototypeOf) return objectIsPrototypeOf; hasRequiredObjectIsPrototypeOf = 1; var uncurryThis = /*@__PURE__*/ requireFunctionUncurryThis(); objectIsPrototypeOf = uncurryThis({}.isPrototypeOf); return objectIsPrototypeOf; } var environmentUserAgent; var hasRequiredEnvironmentUserAgent; function requireEnvironmentUserAgent () { if (hasRequiredEnvironmentUserAgent) return environmentUserAgent; hasRequiredEnvironmentUserAgent = 1; var globalThis = /*@__PURE__*/ requireGlobalThis(); var navigator = globalThis.navigator; var userAgent = navigator && navigator.userAgent; environmentUserAgent = userAgent ? String(userAgent) : ''; return environmentUserAgent; } var environmentV8Version; var hasRequiredEnvironmentV8Version; function requireEnvironmentV8Version () { if (hasRequiredEnvironmentV8Version) return environmentV8Version; hasRequiredEnvironmentV8Version = 1; var globalThis = /*@__PURE__*/ requireGlobalThis(); var userAgent = /*@__PURE__*/ requireEnvironmentUserAgent(); var process = globalThis.process; var Deno = globalThis.Deno; var versions = process && process.versions || Deno && Deno.version; var v8 = versions && versions.v8; var match, version; if (v8) { match = v8.split('.'); // in old Chrome, versions of V8 isn't V8 = Chrome / 10 // but their correct versions are not interesting for us version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); } // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0` // so check `userAgent` even if `.v8` exists, but 0 if (!version && userAgent) { match = userAgent.match(/Edge\/(\d+)/); if (!match || match[1] >= 74) { match = userAgent.match(/Chrome\/(\d+)/); if (match) version = +match[1]; } } environmentV8Version = version; return environmentV8Version; } var symbolConstructorDetection; var hasRequiredSymbolConstructorDetection; function requireSymbolConstructorDetection () { if (hasRequiredSymbolConstructorDetection) return symbolConstructorDetection; hasRequiredSymbolConstructorDetection = 1; /* eslint-disable es/no-symbol -- required for testing */ var V8_VERSION = /*@__PURE__*/ requireEnvironmentV8Version(); var fails = /*@__PURE__*/ requireFails(); var globalThis = /*@__PURE__*/ requireGlobalThis(); var $String = globalThis.String; // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () { var symbol = Symbol('symbol detection'); // Chrome 38 Symbol has incorrect toString conversion // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will, // of course, fail. 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; }); return symbolConstructorDetection; } var useSymbolAsUid; var hasRequiredUseSymbolAsUid; function requireUseSymbolAsUid () { if (hasRequiredUseSymbolAsUid) return useSymbolAsUid; hasRequiredUseSymbolAsUid = 1; /* eslint-disable es/no-symbol -- required for testing */ var NATIVE_SYMBOL = /*@__PURE__*/ requireSymbolConstructorDetection(); useSymbolAsUid = NATIVE_SYMBOL && !Symbol.sham && typeof Symbol.iterator == 'symbol'; return useSymbolAsUid; } var isSymbol; var hasRequiredIsSymbol; function requireIsSymbol () { if (hasRequiredIsSymbol) return isSymbol; hasRequiredIsSymbol = 1; var getBuiltIn = /*@__PURE__*/ requireGetBuiltIn(); var isCallable = /*@__PURE__*/ requireIsCallable(); var isPrototypeOf = /*@__PURE__*/ requireObjectIsPrototypeOf(); var USE_SYMBOL_AS_UID = /*@__PURE__*/ requireUseSymbolAsUid(); var $Object = Object; isSymbol = USE_SYMBOL_AS_UID ? function (it) { return typeof it == 'symbol'; } : function (it) { var $Symbol = getBuiltIn('Symbol'); return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it)); }; return isSymbol; } var tryToString; var hasRequiredTryToString; function requireTryToString () { if (hasRequiredTryToString) return tryToString; hasRequiredTryToString = 1; var $String = String; tryToString = function (argument) { try { return $String(argument); } catch (error) { return 'Object'; } }; return tryToString; } var aCallable; var hasRequiredACallable; function requireACallable () { if (hasRequiredACallable) return aCallable; hasRequiredACallable = 1; var isCallable = /*@__PURE__*/ requireIsCallable(); var tryToString = /*@__PURE__*/ requireTryToString(); var $TypeError = TypeError; // `Assert: IsCallable(argument) is true` aCallable = function (argument) { if (isCallable(argument)) return argument; throw new $TypeError(tryToString(argument) + ' is not a function'); }; return aCallable; } var getMethod; var hasRequiredGetMethod; function requireGetMethod () { if (hasRequiredGetMethod) return getMethod; hasRequiredGetMethod = 1; var aCallable = /*@__PURE__*/ requireACallable(); var isNullOrUndefined = /*@__PURE__*/ requireIsNullOrUndefined(); // `GetMethod` abstract operation // https://tc39.es/ecma262/#sec-getmethod getMethod = function (V, P) { var func = V[P]; return isNullOrUndefined(func) ? undefined : aCallable(func); }; return getMethod; } var ordinaryToPrimitive; var hasRequiredOrdinaryToPrimitive; function requireOrdinaryToPrimitive () { if (hasRequiredOrdinaryToPrimitive) return ordinaryToPrimitive; hasRequiredOrdinaryToPrimitive = 1; var call = /*@__PURE__*/ requireFunctionCall(); var isCallable = /*@__PURE__*/ requireIsCallable(); var isObject = /*@__PURE__*/ requireIsObject(); var $TypeError = TypeError; // `OrdinaryToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-ordinarytoprimitive ordinaryToPrimitive = 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"); }; return ordinaryToPrimitive; } var sharedStore = {exports: {}}; var isPure; var hasRequiredIsPure; function requireIsPure () { if (hasRequiredIsPure) return isPure; hasRequiredIsPure = 1; isPure = true; return isPure; } var defineGlobalProperty; var hasRequiredDefineGlobalProperty; function requireDefineGlobalProperty () { if (hasRequiredDefineGlobalProperty) return defineGlobalProperty; hasRequiredDefineGlobalProperty = 1; var globalThis = /*@__PURE__*/ requireGlobalThis(); // eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty = Object.defineProperty; defineGlobalProperty = function (key, value) { try { defineProperty(globalThis, key, { value: value, configurable: true, writable: true }); } catch (error) { globalThis[key] = value; } return value; }; return defineGlobalProperty; } var hasRequiredSharedStore; function requireSharedStore () { if (hasRequiredSharedStore) return sharedStore.exports; hasRequiredSharedStore = 1; var IS_PURE = /*@__PURE__*/ requireIsPure(); var globalThis = /*@__PURE__*/ requireGlobalThis(); var defineGlobalProperty = /*@__PURE__*/ requireDefineGlobalProperty(); var SHARED = '__core-js_shared__'; var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {}); (store.versions || (store.versions = [])).push({ version: '3.44.0', mode: IS_PURE ? 'pure' : 'global', copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)', license: 'https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE', source: 'https://github.com/zloirock/core-js' }); return sharedStore.exports; } var shared; var hasRequiredShared; function requireShared () { if (hasRequiredShared) return shared; hasRequiredShared = 1; var store = /*@__PURE__*/ requireSharedStore(); shared = function (key, value) { return store[key] || (store[key] = value || {}); }; return shared; } var toObject; var hasRequiredToObject; function requireToObject () { if (hasRequiredToObject) return toObject; hasRequiredToObject = 1; var requireObjectCoercible = /*@__PURE__*/ requireRequireObjectCoercible(); var $Object = Object; // `ToObject` abstract operation // https://tc39.es/ecma262/#sec-toobject toObject = function (argument) { return $Object(requireObjectCoercible(argument)); }; return toObject; } var hasOwnProperty_1; var hasRequiredHasOwnProperty; function requireHasOwnProperty () { if (hasRequiredHasOwnProperty) return hasOwnProperty_1; hasRequiredHasOwnProperty = 1; var uncurryThis = /*@__PURE__*/ requireFunctionUncurryThis(); var toObject = /*@__PURE__*/ requireToObject(); var hasOwnProperty = uncurryThis({}.hasOwnProperty); // `HasOwnProperty` abstract operation // https://tc39.es/ecma262/#sec-hasownproperty // eslint-disable-next-line es/no-object-hasown -- safe hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) { return hasOwnProperty(toObject(it), key); }; return hasOwnProperty_1; } var uid; var hasRequiredUid; function requireUid () { if (hasRequiredUid) return uid; hasRequiredUid = 1; var uncurryThis = /*@__PURE__*/ requireFunctionUncurryThis(); var id = 0; var postfix = Math.random(); var toString = uncurryThis(1.1.toString); uid = function (key) { return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); }; return uid; } var wellKnownSymbol; var hasRequiredWellKnownSymbol; function requireWellKnownSymbol () { if (hasRequiredWellKnownSymbol) return wellKnownSymbol; hasRequiredWellKnownSymbol = 1; var globalThis = /*@__PURE__*/ requireGlobalThis(); var shared = /*@__PURE__*/ requireShared(); var hasOwn = /*@__PURE__*/ requireHasOwnProperty(); var uid = /*@__PURE__*/ requireUid(); var NATIVE_SYMBOL = /*@__PURE__*/ requireSymbolConstructorDetection(); var USE_SYMBOL_AS_UID = /*@__PURE__*/ requireUseSymbolAsUid(); var Symbol = globalThis.Symbol; var WellKnownSymbolsStore = shared('wks'); var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid; wellKnownSymbol = function (name) { if (!hasOwn(WellKnownSymbolsStore, name)) { WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name) ? Symbol[name] : createWellKnownSymbol('Symbol.' + name); } return WellKnownSymbolsStore[name]; }; return wellKnownSymbol; } var toPrimitive$6; var hasRequiredToPrimitive$5; function requireToPrimitive$5 () { if (hasRequiredToPrimitive$5) return toPrimitive$6; hasRequiredToPrimitive$5 = 1; var call = /*@__PURE__*/ requireFunctionCall(); var isObject = /*@__PURE__*/ requireIsObject(); var isSymbol = /*@__PURE__*/ requireIsSymbol(); var getMethod = /*@__PURE__*/ requireGetMethod(); var ordinaryToPrimitive = /*@__PURE__*/ requireOrdinaryToPrimitive(); var wellKnownSymbol = /*@__PURE__*/ requireWellKnownSymbol(); var $TypeError = TypeError; var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); // `ToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-toprimitive toPrimitive$6 = function (input, pref) { if (!isObject(input) || isSymbol(input)) return input; var exoticToPrim = getMethod(input, TO_PRIMITIVE); var result; if (exoticToPrim) { if (pref === undefined) 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 === undefined) pref = 'number'; return ordinaryToPrimitive(input, pref); }; return toPrimitive$6; } var toPropertyKey$1; var hasRequiredToPropertyKey; function requireToPropertyKey () { if (hasRequiredToPropertyKey) return toPropertyKey$1; hasRequiredToPropertyKey = 1; var toPrimitive = /*@__PURE__*/ requireToPrimitive$5(); var isSymbol = /*@__PURE__*/ requireIsSymbol(); // `ToPropertyKey` abstract operation // https://tc39.es/ecma262/#sec-topropertykey toPropertyKey$1 = function (argument) { var key = toPrimitive(argument, 'string'); return isSymbol(key) ? key : key + ''; }; return toPropertyKey$1; } var documentCreateElement; var hasRequiredDocumentCreateElement; function requireDocumentCreateElement () { if (hasRequiredDocumentCreateElement) return documentCreateElement; hasRequiredDocumentCreateElement = 1; var globalThis = /*@__PURE__*/ requireGlobalThis(); var isObject = /*@__PURE__*/ requireIsObject(); var document = globalThis.document; // typeof document.createElement is 'object' in old IE var EXISTS = isObject(document) && isObject(document.createElement); documentCreateElement = function (it) { return EXISTS ? document.createElement(it) : {}; }; return documentCreateElement; } var ie8DomDefine; var hasRequiredIe8DomDefine; function requireIe8DomDefine () { if (hasRequiredIe8DomDefine) return ie8DomDefine; hasRequiredIe8DomDefine = 1; var DESCRIPTORS = /*@__PURE__*/ requireDescriptors(); var fails = /*@__PURE__*/ requireFails(); var createElement = /*@__PURE__*/ requireDocumentCreateElement(); // Thanks to IE8 for its funny defineProperty ie8DomDefine = !DESCRIPTORS && !fails(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(createElement('div'), 'a', { get: function () { return 7; } }).a !== 7; }); return ie8DomDefine; } var hasRequiredObjectGetOwnPropertyDescriptor; function requireObjectGetOwnPropertyDescriptor () { if (hasRequiredObjectGetOwnPropertyDescriptor) return objectGetOwnPropertyDescriptor; hasRequiredObjectGetOwnPropertyDescriptor = 1; var DESCRIPTORS = /*@__PURE__*/ requireDescriptors(); var call = /*@__PURE__*/ requireFunctionCall(); var propertyIsEnumerableModule = /*@__PURE__*/ requireObjectPropertyIsEnumerable(); var createPropertyDescriptor = /*@__PURE__*/ requireCreatePropertyDescriptor(); var toIndexedObject = /*@__PURE__*/ requireToIndexedObject(); var toPropertyKey = /*@__PURE__*/ requireToPropertyKey(); var hasOwn = /*@__PURE__*/ requireHasOwnProperty(); var IE8_DOM_DEFINE = /*@__PURE__*/ requireIe8DomDefine(); // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // `Object.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor objectGetOwnPropertyDescriptor.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { O = toIndexedObject(O); P = toPropertyKey(P); if (IE8_DOM_DEFINE) try { return $getOwnPropertyDescriptor(O, P); } catch (error) { /* empty */ } if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]); }; return objectGetOwnPropertyDescriptor; } var isForced_1; var hasRequiredIsForced; function requireIsForced () { if (hasRequiredIsForced) return isForced_1; hasRequiredIsForced = 1; var fails = /*@__PURE__*/ requireFails(); var isCallable = /*@__PURE__*/ requireIsCallable(); 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'; isForced_1 = isForced; return isForced_1; } var functionBindContext; var hasRequiredFunctionBindContext; function requireFunctionBindContext () { if (hasRequiredFunctionBindContext) return functionBindContext; hasRequiredFunctionBindContext = 1; var uncurryThis = /*@__PURE__*/ requireFunctionUncurryThisClause(); var aCallable = /*@__PURE__*/ requireACallable(); var NATIVE_BIND = /*@__PURE__*/ requireFunctionBindNative(); var bind = uncurryThis(uncurryThis.bind); // optional / simple context binding functionBindContext = function (fn, that) { aCallable(fn); return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) { return fn.apply(that, arguments); }; }; return functionBindContext; } var objectDefineProperty = {}; var v8PrototypeDefineBug; var hasRequiredV8PrototypeDefineBug; function requireV8PrototypeDefineBug () { if (hasRequiredV8PrototypeDefineBug) return v8PrototypeDefineBug; hasRequiredV8PrototypeDefineBug = 1; var DESCRIPTORS = /*@__PURE__*/ requireDescriptors(); var fails = /*@__PURE__*/ requireFails(); // V8 ~ Chrome 36- // https://bugs.chromium.org/p/v8/issues/detail?id=3334 v8PrototypeDefineBug = DESCRIPTORS && fails(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(function () { /* empty */ }, 'prototype', { value: 42, writable: false }).prototype !== 42; }); return v8PrototypeDefineBug; } var anObject; var hasRequiredAnObject; function requireAnObject () { if (hasRequiredAnObject) return anObject; hasRequiredAnObject = 1; var isObject = /*@__PURE__*/ requireIsObject(); var $String = String; var $TypeError = TypeError; // `Assert: Type(argument) is Object` anObject = function (argument) { if (isObject(argument)) return argument; throw new $TypeError($String(argument) + ' is not an object'); }; return anObject; } var hasRequiredObjectDefineProperty; function requireObjectDefineProperty () { if (hasRequiredObjectDefineProperty) return objectDefineProperty; hasRequiredObjectDefineProperty = 1; var DESCRIPTORS = /*@__PURE__*/ requireDescriptors(); var IE8_DOM_DEFINE = /*@__PURE__*/ requireIe8DomDefine(); var V8_PROTOTYPE_DEFINE_BUG = /*@__PURE__*/ requireV8PrototypeDefineBug(); var anObject = /*@__PURE__*/ requireAnObject(); var toPropertyKey = /*@__PURE__*/ requireToPropertyKey(); var $TypeError = TypeError; // eslint-disable-next-line es/no-object-defineproperty -- safe var $defineProperty = Object.defineProperty; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; var ENUMERABLE = 'enumerable'; var CONFIGURABLE = 'configurable'; var WRITABLE = 'writable'; // `Object.defineProperty` method // https://tc39.es/ecma262/#sec-object.defineproperty objectDefineProperty.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) { /* empty */ } if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported'); if ('value' in Attributes) O[P] = Attributes.value; return O; }; return objectDefineProperty; } var createNonEnumerableProperty; var hasRequiredCreateNonEnumerableProperty; function requireCreateNonEnumerableProperty () { if (hasRequiredCreateNonEnumerableProperty) return createNonEnumerableProperty; hasRequiredCreateNonEnumerableProperty = 1; var DESCRIPTORS = /*@__PURE__*/ requireDescriptors(); var definePropertyModule = /*@__PURE__*/ requireObjectDefineProperty(); var createPropertyDescriptor = /*@__PURE__*/ requireCreatePropertyDescriptor(); createNonEnumerableProperty = DESCRIPTORS ? function (object, key, value) { return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); } : function (object, key, value) { object[key] = value; return object; }; return createNonEnumerableProperty; } var _export; var hasRequired_export; function require_export () { if (hasRequired_export) return _export; hasRequired_export = 1; var globalThis = /*@__PURE__*/ requireGlobalThis(); var apply = /*@__PURE__*/ requireFunctionApply(); var uncurryThis = /*@__PURE__*/ requireFunctionUncurryThisClause(); var isCallable = /*@__PURE__*/ requireIsCallable(); var getOwnPropertyDescriptor = /*@__PURE__*/ requireObjectGetOwnPropertyDescriptor().f; var isForced = /*@__PURE__*/ requireIsForced(); var path = /*@__PURE__*/ requirePath(); var bind = /*@__PURE__*/ requireFunctionBindContext(); var createNonEnumerableProperty = /*@__PURE__*/ requireCreateNonEnumerableProperty(); var hasOwn = /*@__PURE__*/ requireHasOwnProperty(); var wrapConstructor = function (NativeConstructor) { var Wrapper = function (a, b, c) { if (this instanceof Wrapper) { switch (arguments.length) { case 0: return new NativeConstructor(); case 1: return new NativeConstructor(a); case 2: return new NativeConstructor(a, b); } return new NativeConstructor(a, b, c); } return apply(NativeConstructor, this, arguments); }; Wrapper.prototype = NativeConstructor.prototype; return Wrapper; }; /* options.target - name of the target object options.global - target is the global object options.stat - export as static methods of target options.proto - export as prototype methods of target options.real - real prototype method for the `pure` version options.forced - export even if the native feature is available options.bind - bind methods to the target, required for the `pure` version options.wrap - wrap constructors to preventing global pollution, required for the `pure` version options.unsafe - use the simple assignment of property instead of delete + defineProperty options.sham - add a flag to not completely full polyfills options.enumerable - export as enumerable property options.dontCallGetSet - prevent calling a getter on target options.name - the .name of the function if it does not match the key */ _export = function (options, source) { var TARGET = options.target; var GLOBAL = options.global; var STATIC = options.stat; var PROTO = options.proto; var nativeSource = GLOBAL ? globalThis : STATIC ? globalThis[TARGET] : globalThis[TARGET] && globalThis[TARGET].prototype; var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET]; var targetPrototype = target.prototype; var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE; var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor; for (key in source) { FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); // contains in native USE_NATIVE = !FORCED && nativeSource && hasOwn(nativeSource, key); targetProperty = target[key]; if (USE_NATIVE) if (options.dontCallGetSet) { descriptor = getOwnPropertyDescriptor(nativeSource, key); nativeProperty = descriptor && descriptor.value; } else nativeProperty = nativeSource[key]; // export native or implementation sourceProperty = (USE_NATIVE && nativeProperty) ? nativeProperty : source[key]; if (!FORCED && !PROTO && typeof targetProperty == typeof sourceProperty) continue; // bind methods to global for calling from export context if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, globalThis); // wrap global constructors for prevent changes in this version else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty); // make static versions for prototype methods else if (PROTO && isCallable(sourceProperty)) resultProperty = uncurryThis(sourceProperty); // default case else resultProperty = sourceProperty; // add a flag to not completely full polyfills if (options.sham || (sourceProperty && sourceProperty.sham) || (targetProperty && targetProperty.sham)) { createNonEnumerableProperty(resultProperty, 'sham', true); } createNonEnumerableProperty(target, key, resultProperty); if (PROTO) { VIRTUAL_PROTOTYPE = TARGET + 'Prototype'; if (!hasOwn(path, VIRTUAL_PROTOTYPE)) { createNonEnumerableProperty(path, VIRTUAL_PROTOTYPE, {}); } // export virtual prototype methods createNonEnumerableProperty(path[VIRTUAL_PROTOTYPE], key, sourceProperty); // export real prototype methods if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) { createNonEnumerableProperty(targetPrototype, key, sourceProperty); } } } }; return _export; } var isArray$3; var hasRequiredIsArray$3; function requireIsArray$3 () { if (hasRequiredIsArray$3) return isArray$3; hasRequiredIsArray$3 = 1; var classof = /*@__PURE__*/ requireClassofRaw(); // `IsArray` abstract operation // https://tc39.es/ecma262/#sec-isarray // eslint-disable-next-line es/no-array-isarray -- safe isArray$3 = Array.isArray || function isArray(argument) { return classof(argument) === 'Array'; }; return isArray$3; } var hasRequiredEs_array_isArray; function requireEs_array_isArray () { if (hasRequiredEs_array_isArray) return es_array_isArray; hasRequiredEs_array_isArray = 1; var $ = /*@__PURE__*/ require_export(); var isArray = /*@__PURE__*/ requireIsArray$3(); // `Array.isArray` method // https://tc39.es/ecma262/#sec-array.isarray $({ target: 'Array', stat: true }, { isArray: isArray }); return es_array_isArray; } var isArray$2; var hasRequiredIsArray$2; function requireIsArray$2 () { if (hasRequiredIsArray$2) return isArray$2; hasRequiredIsArray$2 = 1; requireEs_array_isArray(); var path = /*@__PURE__*/ requirePath(); isArray$2 = path.Array.isArray; return isArray$2; } var isArray$1; var hasRequiredIsArray$1; function requireIsArray$1 () { if (hasRequiredIsArray$1) return isArray$1; hasRequiredIsArray$1 = 1; var parent = /*@__PURE__*/ requireIsArray$2(); isArray$1 = parent; return isArray$1; } var isArray; var hasRequiredIsArray; function requireIsArray () { if (hasRequiredIsArray) return isArray; hasRequiredIsArray = 1; isArray = /*@__PURE__*/ requireIsArray$1(); return isArray; } var isArrayExports = requireIsArray(); var _Array$isArray = /*@__PURE__*/getDefaultExportFromCjs(isArrayExports); var es_function_bind = {}; var arraySlice; var hasRequiredArraySlice; function requireArraySlice () { if (hasRequiredArraySlice) return arraySlice; hasRequiredArraySlice = 1; var uncurryThis = /*@__PURE__*/ requireFunctionUncurryThis(); arraySlice = uncurryThis([].slice); return arraySlice; } var functionBind; var hasRequiredFunctionBind; function requireFunctionBind () { if (hasRequiredFunctionBind) return functionBind; hasRequiredFunctionBind = 1; var uncurryThis = /*@__PURE__*/ requireFunctionUncurryThis(); var aCallable = /*@__PURE__*/ requireACallable(); var isObject = /*@__PURE__*/ requireIsObject(); var hasOwn = /*@__PURE__*/ requireHasOwnProperty(); var arraySlice = /*@__PURE__*/ requireArraySlice(); var NATIVE_BIND = /*@__PURE__*/ requireFunctionBindNative(); 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); }; // `Function.prototype.bind` method implementation // https://tc39.es/ecma262/#sec-function.prototype.bind // eslint-disable-next-line es/no-function-prototype-bind -- detection functionBind = NATIVE_BIND ? $Function.bind : function bind(that /* , ...args */) { var F = aCallable(this); var Prototype = F.prototype; var partArgs = arraySlice(arguments, 1); var boundFunction = function bound(/* args... */) { 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; }; return functionBind; } var hasRequiredEs_function_bind; function requireEs_function_bind () { if (hasRequiredEs_function_bind) return es_function_bind; hasRequiredEs_function_bind = 1; // TODO: Remove from `core-js@4` var $ = /*@__PURE__*/ require_export(); var bind = /*@__PURE__*/ requireFunctionBind(); // `Function.prototype.bind` method // https://tc39.es/ecma262/#sec-function.prototype.bind // eslint-disable-next-line es/no-function-prototype-bind -- detection $({ target: 'Function', proto: true, forced: Function.bind !== bind }, { bind: bind }); return es_function_bind; } var getBuiltInPrototypeMethod; var hasRequiredGetBuiltInPrototypeMethod; function requireGetBuiltInPrototypeMethod () { if (hasRequiredGetBuiltInPrototypeMethod) return getBuiltInPrototypeMethod; hasRequiredGetBuiltInPrototypeMethod = 1; var globalThis = /*@__PURE__*/ requireGlobalThis(); var path = /*@__PURE__*/ requirePath(); getBuiltInPrototypeMethod = function (CONSTRUCTOR, METHOD) { var Namespace = path[CONSTRUCTOR + 'Prototype']; var pureMethod = Namespace && Namespace[METHOD]; if (pureMethod) return pureMethod; var NativeConstructor = globalThis[CONSTRUCTOR]; var NativePrototype = NativeConstructor && NativeConstructor.prototype; return NativePrototype && NativePrototype[METHOD]; }; return getBuiltInPrototypeMethod; } var bind$3; var hasRequiredBind$3; function requireBind$3 () { if (hasRequiredBind$3) return bind$3; hasRequiredBind$3 = 1; requireEs_function_bind(); var getBuiltInPrototypeMethod = /*@__PURE__*/ requireGetBuiltInPrototypeMethod(); bind$3 = getBuiltInPrototypeMethod('Function', 'bind'); return bind$3; } var bind$2; var hasRequiredBind$2; function requireBind$2 () { if (hasRequiredBind$2) return bind$2; hasRequiredBind$2 = 1; var isPrototypeOf = /*@__PURE__*/ requireObjectIsPrototypeOf(); var method = /*@__PURE__*/ requireBind$3(); var FunctionPrototype = Function.prototype; bind$2 = function (it) { var own = it.bind; return it === FunctionPrototype || (isPrototypeOf(FunctionPrototype, it) && own === FunctionPrototype.bind) ? method : own; }; return bind$2; } var bind$1; var hasRequiredBind$1; function requireBind$1 () { if (hasRequiredBind$1) return bind$1; hasRequiredBind$1 = 1; var parent = /*@__PURE__*/ requireBind$2(); bind$1 = parent; return bind$1; } var bind; var hasRequiredBind; function requireBind () { if (hasRequiredBind) return bind; hasRequiredBind = 1; bind = /*@__PURE__*/ requireBind$1(); return bind; } var bindExports = requireBind(); var _bindInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(bindExports); var web_timers = {}; var web_setInterval = {}; var environment; var hasRequiredEnvironment; function requireEnvironment () { if (hasRequiredEnvironment) return environment; hasRequiredEnvironment = 1; /* global Bun, Deno -- detection */ var globalThis = /*@__PURE__*/ requireGlobalThis(); var userAgent = /*@__PURE__*/ requireEnvironmentUserAgent(); var classof = /*@__PURE__*/ requireClassofRaw(); var userAgentStartsWith = function (string) { return userAgent.slice(0, string.length) === string; }; environment = (function () { if (userAgentStartsWith('Bun/')) return 'BUN'; if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE'; if (userAgentStartsWith('Deno/')) return 'DENO'; if (userAgentStartsWith('Node.js/')) return 'NODE'; if (globalThis.Bun && typeof Bun.version == 'string') return 'BUN'; if (globalThis.Deno && typeof Deno.version == 'object') return 'DENO'; if (classof(globalThis.process) === 'process') return 'NODE'; if (globalThis.window && globalThis.document) return 'BROWSER'; return 'REST'; })(); return environment; } var validateArgumentsLength; var hasRequiredValidateArgumentsLength; function requireValidateArgumentsLength () { if (hasRequiredValidateArgumentsLength) return validateArgumentsLength; hasRequiredValidateArgumentsLength = 1; var $TypeError = TypeError; validateArgumentsLength = function (passed, required) { if (passed < required) throw new $TypeError('Not enough arguments'); return passed; }; return validateArgumentsLength; } var schedulersFix; var hasRequiredSchedulersFix; function requireSchedulersFix () { if (hasRequiredSchedulersFix) return schedulersFix; hasRequiredSchedulersFix = 1; var globalThis = /*@__PURE__*/ requireGlobalThis(); var apply = /*@__PURE__*/ requireFunctionApply(); var isCallable = /*@__PURE__*/ requireIsCallable(); var ENVIRONMENT = /*@__PURE__*/ requireEnvironment(); var USER_AGENT = /*@__PURE__*/ requireEnvironmentUserAgent(); var arraySlice = /*@__PURE__*/ requireArraySlice(); var validateArgumentsLength = /*@__PURE__*/ requireValidateArgumentsLength(); var Function = globalThis.Function; // dirty IE9- and Bun 0.3.0- checks var WRAP = /MSIE .\./.test(USER_AGENT) || ENVIRONMENT === 'BUN' && (function () { var version = globalThis.Bun.version.split('.'); return version.length < 3 || version[0] === '0' && (version[1] < 3 || version[1] === '3' && version[2] === '0'); })(); // IE9- / Bun 0.3.0- setTimeout / setInterval / setImmediate additional parameters fix // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers // https://github.com/oven-sh/bun/issues/1633 schedulersFix = function (scheduler, hasTimeArg) { var firstParamIndex = hasTimeArg ? 2 : 1; return WRAP ? function (handler, timeout /* , ...arguments */) { var boundArgs = validateArgumentsLength(arguments.length, 1) > firstParamIndex; var fn = isCallable(handler) ? handler : Function(handler); var params = boundArgs ? arraySlice(arguments, firstParamIndex) : []; var callback = boundArgs ? function () { apply(fn, this, params); } : fn; return hasTimeArg ? scheduler(callback, timeout) : scheduler(callback); } : scheduler; }; return schedulersFix; } var hasRequiredWeb_setInterval; function requireWeb_setInterval () { if (hasRequiredWeb_setInterval) return web_setInterval; hasRequiredWeb_setInterval = 1; var $ = /*@__PURE__*/ require_export(); var globalThis = /*@__PURE__*/ requireGlobalThis(); var schedulersFix = /*@__PURE__*/ requireSchedulersFix(); var setInterval = schedulersFix(globalThis.setInterval, true); // Bun / IE9- setInterval additional parameters fix // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval $({ global: true, bind: true, forced: globalThis.setInterval !== setInterval }, { setInterval: setInterval }); return web_setInterval; } var web_setTimeout = {}; var hasRequiredWeb_setTimeout; function requireWeb_setTimeout () { if (hasRequiredWeb_setTimeout) return web_setTimeout; hasRequiredWeb_setTimeout = 1; var $ = /*@__PURE__*/ require_export(); var globalThis = /*@__PURE__*/ requireGlobalThis(); var schedulersFix = /*@__PURE__*/ requireSchedulersFix(); var setTimeout = schedulersFix(globalThis.setTimeout, true); // Bun / IE9- setTimeout additional parameters fix // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout $({ global: true, bind: true, forced: globalThis.setTimeout !== setTimeout }, { setTimeout: setTimeout }); return web_setTimeout; } var hasRequiredWeb_timers; function requireWeb_timers () {