@itwin/core-i18n 4.2.0-dev.9 → 4.3.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,13 +17,13 @@
17
17
  /** @packageDocumentation
18
18
  * @module Localization
19
19
  */
20
- function cov_1irwne2hhy() {
21
- var path = "D:\\vsts_a\\748\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js";
22
- var hash = "caed5073251f3d7d6d48f83e3eb9350416a265ee";
20
+ function cov_2awov3utze() {
21
+ var path = "D:\\vsts_a\\10\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js";
22
+ var hash = "177c4b274add24bf1c31df8579ec3ab288b9ce30";
23
23
  var global = new Function("return this")();
24
24
  var gcv = "__coverage__";
25
25
  var coverageData = {
26
- path: "D:\\vsts_a\\748\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js",
26
+ path: "D:\\vsts_a\\10\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js",
27
27
  statementMap: {
28
28
  "0": {
29
29
  start: {
@@ -2270,13 +2270,13 @@ function cov_1irwne2hhy() {
2270
2270
  inputSourceMap: {
2271
2271
  version: 3,
2272
2272
  file: "ITwinLocalization.js",
2273
- sources: ["D:\\vsts_a\\748\\s\\core\\i18n\\src\\ITwinLocalization.ts"],
2273
+ sources: ["D:\\vsts_a\\10\\s\\core\\i18n\\src\\ITwinLocalization.ts"],
2274
2274
  names: [],
2275
2275
  mappings: ";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;AAEH,sDAA2E;AAC3E,wGAAmG;AACnG,gFAA+D;AAC/D,sDAA6C;AAG7C,MAAM,mBAAmB,GAAW,CAAC,CAAC,CAAC,8GAA8G;AAcrJ;;;GAGG;AACH,MAAa,iBAAiB;IAO5B,YAAmB,OAA6B;QAF/B,gBAAW,GAAG,IAAI,GAAG,EAAyB,CAAC;QAG9D,IAAI,CAAC,OAAO,GAAG,iBAAO,CAAC,cAAc,EAAE,CAAC;QAExC,IAAI,CAAC,eAAe,GAAG;YACrB,QAAQ,EAAE,OAAO,EAAE,WAAW,IAAI,6BAA6B;YAC/D,WAAW,EAAE,IAAI;YACjB,GAAG,OAAO,EAAE,kBAAkB;SAC/B,CAAC;QAEF,IAAI,CAAC,iBAAiB,GAAG;YACvB,KAAK,EAAE,CAAC,aAAa,EAAE,WAAW,EAAE,SAAS,CAAC;YAC9C,iBAAiB,EAAE,KAAK;YACxB,MAAM,EAAE,EAAE;YACV,GAAG,OAAO,EAAE,eAAe;SAC5B,CAAC;QAEF,IAAI,CAAC,YAAY,GAAG;YAClB,aAAa,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;YACpC,WAAW,EAAE,IAAI;YACjB,UAAU,EAAE,mBAAmB;YAC/B,OAAO,EAAE,IAAI,CAAC,eAAe;YAC7B,SAAS,EAAE,IAAI,CAAC,iBAAiB;YACjC,GAAG,OAAO,EAAE,WAAW;SACxB,CAAC;QAEF,IAAI,CAAC,OAAO;aACT,GAAG,CAAC,OAAO,EAAE,cAAc,IAAI,0CAA8B,CAAC;aAC9D,GAAG,CAAC,OAAO,EAAE,aAAa,IAAI,8BAAO,CAAC;aACtC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC5B,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,UAAoB;QAE1C,mDAAmD;QACnD,MAAM,cAAc,GAAa,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QACrE,MAAM,kBAAkB,GAAgB,IAAI,GAAG,CAAC,CAAC,GAAG,UAAU,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,qBAAqB;QAE1G,MAAM,gBAAgB,GAAuC,IAAI,CAAC,YAAY,CAAC,SAAS,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;QAC1G,IAAI,gBAAgB;YAClB,kBAAkB,CAAC,GAAG,CAAC,gBAA0B,CAAC,CAAC,CAAC,oDAAoD;QAE1G,MAAM,WAAW,GAAgB;YAC/B,GAAG,IAAI,CAAC,YAAY;YACpB,SAAS,EAAE,gBAAgB;YAC3B,EAAE,EAAE,CAAC,GAAG,kBAAkB,CAAC;SAC5B,CAAC;QAEF,iDAAiD;QACjD,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa;YACxC,WAAW,CAAC,KAAK,GAAG,IAAI,CAAC;QAE3B,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAA6B,CAAC;QAE/E,KAAK,MAAM,EAAE,IAAI,UAAU;YACzB,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;QAExC,OAAO,WAAW,CAAC;IACrB,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACI,gBAAgB,CAAC,IAAY;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;OAYG;IACI,kBAAkB,CAAC,GAAsB,EAAE,OAAsB;QACtE,IAAI,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,aAAa,EAAE;YACpD,MAAM,IAAI,KAAK,CAAC,sFAAsF,CAAC,CAAC;SACzG;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAE3C,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;SACxD;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;;;;;OAOG;IACI,+BAA+B,CAAC,SAAiB,EAAE,GAAsB,EAAE,OAAsB;QACtG,IAAI,OAAO,GAAsB,EAAE,CAAC;QAEpC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;YAC3B,OAAO,GAAG,GAAG,SAAS,IAAI,GAAG,EAAE,CAAC;SACjC;aAAM;YACL,OAAO,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,MAAc,EAAE,EAAE;gBACnC,OAAO,GAAG,SAAS,IAAI,MAAM,EAAE,CAAC;YAClC,CAAC,CAAC,CAAC;SACJ;QAED,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;;;;;OAMG;IACI,gBAAgB,CAAC,SAAiB,EAAE,GAAsB,EAAE,OAAsB;QACvF,IAAI,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,aAAa,EAAE;YACpD,MAAM,IAAI,KAAK,CAAC,sFAAsF,CAAC,CAAC;SACzG;QAED,OAAO,GAAG;YACR,GAAG,OAAO;YACV,EAAE,EAAE,SAAS,EAAE,oCAAoC;SACpD,CAAC;QAEF,MAAM,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACnD,MAAM,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAC7B,IAAI,OAAO,GAAG,KAAK,QAAQ;YACzB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAElD,OAAO,GAAG,CAAC;IACb,CAAC;IAED;;;OAGG;IACI,mBAAmB,CAAC,IAAY;QACrC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAED,gBAAgB;IACT,eAAe;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;IAChC,CAAC;IAED,qDAAqD;IAC9C,KAAK,CAAC,cAAc,CAAC,QAAgB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,QAAQ,CAA6B,CAAC;IAC3E,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,iBAAiB,CAAC,IAAY;QACzC,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC5C,IAAI,QAAQ,KAAK,SAAS;YACxB,OAAO,QAAQ,CAAC;QAElB,MAAM,cAAc,GAAG,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;YACnD,mEAAmE;YACnE,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE;gBACxC,IAAI,CAAC,GAAG;oBACN,OAAO,OAAO,EAAE,CAAC;gBAEnB,qCAAqC;gBACrC,yHAAyH;gBACzH,2GAA2G;gBAC3G,8HAA8H;gBAC9H,8IAA8I;gBAC9I,IAAI,OAAO,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC,CAAC,UAAe,EAAE,EAAE,CAAC,IAAI,UAAU,GAAG,CAAC,CAAC;gBAEjF,IAAI;oBACF,KAAK,MAAM,SAAS,IAAI,GAAG,EAAE;wBAC3B,IAAI,OAAO,SAAS,KAAK,QAAQ;4BAC/B,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;qBAC7E;iBACF;gBAAC,OAAO,CAAC,EAAE;oBACV,OAAO,GAAG,EAAE,CAAC;iBACd;gBACD,+DAA+D;gBAC/D,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;oBACtB,qBAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,8BAA8B,IAAI,kBAAkB,CAAC,CAAC;gBAEhF,OAAO,EAAE,CAAC;YACZ,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;QAC3C,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,gBAAgB;IACT,mBAAmB,CAAC,IAAY;QACrC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;CACF;AAnOD,8CAmOC;AAED,MAAM,iBAAiB;IAEd,GAAG,CAAC,IAAc,IAAI,qBAAM,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5E,IAAI,CAAC,IAAc,IAAI,qBAAM,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAChF,KAAK,CAAC,IAAc,IAAI,qBAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,gBAAgB,CAAC,IAAc;QACrC,IAAI,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;YACpC,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;gBAC7B,OAAO,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;SAC/B;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;;AAXsB,sBAAI,GAAG,QAAQ,CAAC",
2276
- sourcesContent: ["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Localization\n */\n\nimport i18next, { i18n, InitOptions, Module, TOptionsBase } from \"i18next\";\nimport i18nextBrowserLanguageDetector, { DetectorOptions } from \"i18next-browser-languagedetector\";\nimport Backend, { BackendOptions } from \"i18next-http-backend\";\nimport { Logger } from \"@itwin/core-bentley\";\nimport type { Localization } from \"@itwin/core-common\";\n\nconst DEFAULT_MAX_RETRIES: number = 1; // a low number prevents wasted time and potential timeouts when requesting localization files throws an error\n\n/** Options for ITwinLocalization\n * @public\n */\nexport interface LocalizationOptions {\n urlTemplate?: string;\n backendPlugin?: Module;\n detectorPlugin?: Module;\n initOptions?: InitOptions;\n backendHttpOptions?: BackendOptions;\n detectorOptions?: DetectorOptions;\n}\n\n/** Supplies localizations for iTwin.js\n * @note this class uses the [i18next](https://www.i18next.com/) package.\n * @public\n */\nexport class ITwinLocalization implements Localization {\n public i18next: i18n;\n private readonly _initOptions: InitOptions;\n private readonly _backendOptions: BackendOptions;\n private readonly _detectionOptions: DetectorOptions;\n private readonly _namespaces = new Map<string, Promise<void>>();\n\n public constructor(options?: LocalizationOptions) {\n this.i18next = i18next.createInstance();\n\n this._backendOptions = {\n loadPath: options?.urlTemplate ?? \"locales/{{lng}}/{{ns}}.json\",\n crossDomain: true,\n ...options?.backendHttpOptions,\n };\n\n this._detectionOptions = {\n order: [\"querystring\", \"navigator\", \"htmlTag\"],\n lookupQuerystring: \"lng\",\n caches: [],\n ...options?.detectorOptions,\n };\n\n this._initOptions = {\n interpolation: { escapeValue: true },\n fallbackLng: \"en\",\n maxRetries: DEFAULT_MAX_RETRIES,\n backend: this._backendOptions,\n detection: this._detectionOptions,\n ...options?.initOptions,\n };\n\n this.i18next\n .use(options?.detectorPlugin ?? i18nextBrowserLanguageDetector)\n .use(options?.backendPlugin ?? Backend)\n .use(TranslationLogger);\n }\n\n public async initialize(namespaces: string[]): Promise<void> {\n\n // Also consider namespaces passed into constructor\n const initNamespaces: string[] = [this._initOptions.ns || []].flat();\n const combinedNamespaces: Set<string> = new Set([...namespaces, ...initNamespaces]); // without duplicates\n\n const defaultNamespace: string | false | readonly string[] = this._initOptions.defaultNS ?? namespaces[0];\n if (defaultNamespace)\n combinedNamespaces.add(defaultNamespace as string); // Make sure default namespace is in namespaces list\n\n const initOptions: InitOptions = {\n ...this._initOptions,\n defaultNS: defaultNamespace,\n ns: [...combinedNamespaces],\n };\n\n // if in a development environment, set debugging\n if (process.env.NODE_ENV === \"development\")\n initOptions.debug = true;\n\n const initPromise = this.i18next.init(initOptions) as unknown as Promise<void>;\n\n for (const ns of namespaces)\n this._namespaces.set(ns, initPromise);\n\n return initPromise;\n }\n\n /** Replace all instances of `%{key}` within a string with the translations of those keys.\n * For example:\n * ``` ts\n * \"MyKeys\": {\n * \"Key1\": \"First value\",\n * \"Key2\": \"Second value\"\n * }\n * ```\n *\n * ``` ts\n * i18.translateKeys(\"string with %{MyKeys.Key1} followed by %{MyKeys.Key2}!\"\") // returns \"string with First Value followed by Second Value!\"\n * ```\n * @param line The input line, potentially containing %{keys}.\n * @returns The line with all %{keys} translated\n * @public\n */\n public getLocalizedKeys(line: string): string {\n return line.replace(/\\%\\{(.+?)\\}/g, (_match, tag) => this.getLocalizedString(tag));\n }\n\n /** Return the translated value of a key.\n * @param key - the key that matches a property in the JSON localization file.\n * @note The key includes the namespace, which identifies the particular localization file that contains the property,\n * followed by a colon, followed by the property in the JSON file.\n * For example:\n * ``` ts\n * const dataString: string = IModelApp.localization.getLocalizedString(\"iModelJs:BackgroundMap.BingDataAttribution\");\n * ```\n * assigns to dataString the string with property BackgroundMap.BingDataAttribution from the iModelJs.json localization file.\n * @returns The string corresponding to the first key that resolves.\n * @throws Error if no keys resolve to a string.\n * @public\n */\n public getLocalizedString(key: string | string[], options?: TOptionsBase): string {\n if (options?.returnDetails || options?.returnObjects) {\n throw new Error(\"Translation key must map to a string, but the given options will result in an object\");\n }\n\n const value = this.i18next.t(key, options);\n\n if (typeof value !== \"string\") {\n throw new Error(\"Translation key(s) string not found\");\n }\n\n return value;\n }\n\n /** Similar to `getLocalizedString` but the default namespace is a separate parameter and the key does not need\n * to include a namespace. If a key includes a namespace, that namespace will be used for interpolating that key.\n * @param namespace - the namespace that identifies the particular localization file that contains the property.\n * @param key - the key that matches a property in the JSON localization file.\n * @returns The string corresponding to the first key that resolves.\n * @throws Error if no keys resolve to a string.\n * @internal\n */\n public getLocalizedStringWithNamespace(namespace: string, key: string | string[], options?: TOptionsBase): string {\n let fullKey: string | string[] = \"\";\n\n if (typeof key === \"string\") {\n fullKey = `${namespace}:${key}`;\n } else {\n fullKey = key.map((subKey: string) => {\n return `${namespace}:${subKey}`;\n });\n }\n\n return this.getLocalizedString(fullKey, options);\n }\n\n /** Gets the English translation.\n * @param namespace - the namespace that identifies the particular localization file that contains the property.\n * @param key - the key that matches a property in the JSON localization file.\n * @returns The string corresponding to the first key that resolves.\n * @throws Error if no keys resolve to a string.\n * @internal\n */\n public getEnglishString(namespace: string, key: string | string[], options?: TOptionsBase): string {\n if (options?.returnDetails || options?.returnObjects) {\n throw new Error(\"Translation key must map to a string, but the given options will result in an object\");\n }\n\n options = {\n ...options,\n ns: namespace, // ensure namespace argument is used\n };\n\n const en = this.i18next.getFixedT(\"en\", namespace);\n const str = en(key, options);\n if (typeof str !== \"string\")\n throw new Error(\"Translation key(s) not found\");\n\n return str;\n }\n\n /** Get the promise for an already registered Namespace.\n * @param name - the name of the namespace\n * @public\n */\n public getNamespacePromise(name: string): Promise<void> | undefined {\n return this._namespaces.get(name);\n }\n\n /** @internal */\n public getLanguageList(): readonly string[] {\n return this.i18next.languages;\n }\n\n /** override the language detected in the browser */\n public async changeLanguage(language: string) {\n return this.i18next.changeLanguage(language) as unknown as Promise<void>;\n }\n\n /** Register a new Namespace and return it. If the namespace is already registered, it will be returned.\n * @param name - the name of the namespace, which is the base name of the JSON file that contains the localization properties.\n * @note - The registerNamespace method starts fetching the appropriate version of the JSON localization file from the server,\n * based on the current locale. To make sure that fetch is complete before performing translations from this namespace, await\n * fulfillment of the readPromise Promise property of the returned LocalizationNamespace.\n * @see [Localization in iTwin.js]($docs/learning/frontend/Localization.md)\n * @public\n */\n public async registerNamespace(name: string): Promise<void> {\n const existing = this._namespaces.get(name);\n if (existing !== undefined)\n return existing;\n\n const theReadPromise = new Promise<void>((resolve) => {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.i18next.loadNamespaces(name, (err) => {\n if (!err)\n return resolve();\n\n // Here we got a non-null err object.\n // This method is called when the system has attempted to load the resources for the namespaces for each possible locale.\n // For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.\n // Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.\n // There might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible locale.\n let locales = this.getLanguageList().map((thisLocale: any) => `/${thisLocale}/`);\n\n try {\n for (const thisError of err) {\n if (typeof thisError === \"string\")\n locales = locales.filter((thisLocale) => !thisError.includes(thisLocale));\n }\n } catch (e) {\n locales = [];\n }\n // if we removed every locale from the array, it wasn't loaded.\n if (locales.length === 0)\n Logger.logError(\"i18n\", `No resources for namespace ${name} could be loaded`);\n\n resolve();\n });\n });\n this._namespaces.set(name, theReadPromise);\n return theReadPromise;\n }\n\n /** @internal */\n public unregisterNamespace(name: string): void {\n this._namespaces.delete(name);\n }\n}\n\nclass TranslationLogger {\n public static readonly type = \"logger\";\n public log(args: string[]) { Logger.logInfo(\"i18n\", this.createLogMessage(args)); }\n public warn(args: string[]) { Logger.logWarning(\"i18n\", this.createLogMessage(args)); }\n public error(args: string[]) { Logger.logError(\"i18n\", this.createLogMessage(args)); }\n private createLogMessage(args: string[]) {\n let message = args[0];\n for (let i = 1; i < args.length; ++i) {\n if (typeof args[i] === \"string\")\n message += `\\n ${args[i]}`;\n }\n return message;\n }\n}\n"]
2276
+ sourcesContent: ["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Localization\r\n */\r\n\r\nimport i18next, { i18n, InitOptions, Module, TOptionsBase } from \"i18next\";\r\nimport i18nextBrowserLanguageDetector, { DetectorOptions } from \"i18next-browser-languagedetector\";\r\nimport Backend, { BackendOptions } from \"i18next-http-backend\";\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport type { Localization } from \"@itwin/core-common\";\r\n\r\nconst DEFAULT_MAX_RETRIES: number = 1; // a low number prevents wasted time and potential timeouts when requesting localization files throws an error\r\n\r\n/** Options for ITwinLocalization\r\n * @public\r\n */\r\nexport interface LocalizationOptions {\r\n urlTemplate?: string;\r\n backendPlugin?: Module;\r\n detectorPlugin?: Module;\r\n initOptions?: InitOptions;\r\n backendHttpOptions?: BackendOptions;\r\n detectorOptions?: DetectorOptions;\r\n}\r\n\r\n/** Supplies localizations for iTwin.js\r\n * @note this class uses the [i18next](https://www.i18next.com/) package.\r\n * @public\r\n */\r\nexport class ITwinLocalization implements Localization {\r\n public i18next: i18n;\r\n private readonly _initOptions: InitOptions;\r\n private readonly _backendOptions: BackendOptions;\r\n private readonly _detectionOptions: DetectorOptions;\r\n private readonly _namespaces = new Map<string, Promise<void>>();\r\n\r\n public constructor(options?: LocalizationOptions) {\r\n this.i18next = i18next.createInstance();\r\n\r\n this._backendOptions = {\r\n loadPath: options?.urlTemplate ?? \"locales/{{lng}}/{{ns}}.json\",\r\n crossDomain: true,\r\n ...options?.backendHttpOptions,\r\n };\r\n\r\n this._detectionOptions = {\r\n order: [\"querystring\", \"navigator\", \"htmlTag\"],\r\n lookupQuerystring: \"lng\",\r\n caches: [],\r\n ...options?.detectorOptions,\r\n };\r\n\r\n this._initOptions = {\r\n interpolation: { escapeValue: true },\r\n fallbackLng: \"en\",\r\n maxRetries: DEFAULT_MAX_RETRIES,\r\n backend: this._backendOptions,\r\n detection: this._detectionOptions,\r\n ...options?.initOptions,\r\n };\r\n\r\n this.i18next\r\n .use(options?.detectorPlugin ?? i18nextBrowserLanguageDetector)\r\n .use(options?.backendPlugin ?? Backend)\r\n .use(TranslationLogger);\r\n }\r\n\r\n public async initialize(namespaces: string[]): Promise<void> {\r\n\r\n // Also consider namespaces passed into constructor\r\n const initNamespaces: string[] = [this._initOptions.ns || []].flat();\r\n const combinedNamespaces: Set<string> = new Set([...namespaces, ...initNamespaces]); // without duplicates\r\n\r\n const defaultNamespace: string | false | readonly string[] = this._initOptions.defaultNS ?? namespaces[0];\r\n if (defaultNamespace)\r\n combinedNamespaces.add(defaultNamespace as string); // Make sure default namespace is in namespaces list\r\n\r\n const initOptions: InitOptions = {\r\n ...this._initOptions,\r\n defaultNS: defaultNamespace,\r\n ns: [...combinedNamespaces],\r\n };\r\n\r\n // if in a development environment, set debugging\r\n if (process.env.NODE_ENV === \"development\")\r\n initOptions.debug = true;\r\n\r\n const initPromise = this.i18next.init(initOptions) as unknown as Promise<void>;\r\n\r\n for (const ns of namespaces)\r\n this._namespaces.set(ns, initPromise);\r\n\r\n return initPromise;\r\n }\r\n\r\n /** Replace all instances of `%{key}` within a string with the translations of those keys.\r\n * For example:\r\n * ``` ts\r\n * \"MyKeys\": {\r\n * \"Key1\": \"First value\",\r\n * \"Key2\": \"Second value\"\r\n * }\r\n * ```\r\n *\r\n * ``` ts\r\n * i18.translateKeys(\"string with %{MyKeys.Key1} followed by %{MyKeys.Key2}!\"\") // returns \"string with First Value followed by Second Value!\"\r\n * ```\r\n * @param line The input line, potentially containing %{keys}.\r\n * @returns The line with all %{keys} translated\r\n * @public\r\n */\r\n public getLocalizedKeys(line: string): string {\r\n return line.replace(/\\%\\{(.+?)\\}/g, (_match, tag) => this.getLocalizedString(tag));\r\n }\r\n\r\n /** Return the translated value of a key.\r\n * @param key - the key that matches a property in the JSON localization file.\r\n * @note The key includes the namespace, which identifies the particular localization file that contains the property,\r\n * followed by a colon, followed by the property in the JSON file.\r\n * For example:\r\n * ``` ts\r\n * const dataString: string = IModelApp.localization.getLocalizedString(\"iModelJs:BackgroundMap.BingDataAttribution\");\r\n * ```\r\n * assigns to dataString the string with property BackgroundMap.BingDataAttribution from the iModelJs.json localization file.\r\n * @returns The string corresponding to the first key that resolves.\r\n * @throws Error if no keys resolve to a string.\r\n * @public\r\n */\r\n public getLocalizedString(key: string | string[], options?: TOptionsBase): string {\r\n if (options?.returnDetails || options?.returnObjects) {\r\n throw new Error(\"Translation key must map to a string, but the given options will result in an object\");\r\n }\r\n\r\n const value = this.i18next.t(key, options);\r\n\r\n if (typeof value !== \"string\") {\r\n throw new Error(\"Translation key(s) string not found\");\r\n }\r\n\r\n return value;\r\n }\r\n\r\n /** Similar to `getLocalizedString` but the default namespace is a separate parameter and the key does not need\r\n * to include a namespace. If a key includes a namespace, that namespace will be used for interpolating that key.\r\n * @param namespace - the namespace that identifies the particular localization file that contains the property.\r\n * @param key - the key that matches a property in the JSON localization file.\r\n * @returns The string corresponding to the first key that resolves.\r\n * @throws Error if no keys resolve to a string.\r\n * @internal\r\n */\r\n public getLocalizedStringWithNamespace(namespace: string, key: string | string[], options?: TOptionsBase): string {\r\n let fullKey: string | string[] = \"\";\r\n\r\n if (typeof key === \"string\") {\r\n fullKey = `${namespace}:${key}`;\r\n } else {\r\n fullKey = key.map((subKey: string) => {\r\n return `${namespace}:${subKey}`;\r\n });\r\n }\r\n\r\n return this.getLocalizedString(fullKey, options);\r\n }\r\n\r\n /** Gets the English translation.\r\n * @param namespace - the namespace that identifies the particular localization file that contains the property.\r\n * @param key - the key that matches a property in the JSON localization file.\r\n * @returns The string corresponding to the first key that resolves.\r\n * @throws Error if no keys resolve to a string.\r\n * @internal\r\n */\r\n public getEnglishString(namespace: string, key: string | string[], options?: TOptionsBase): string {\r\n if (options?.returnDetails || options?.returnObjects) {\r\n throw new Error(\"Translation key must map to a string, but the given options will result in an object\");\r\n }\r\n\r\n options = {\r\n ...options,\r\n ns: namespace, // ensure namespace argument is used\r\n };\r\n\r\n const en = this.i18next.getFixedT(\"en\", namespace);\r\n const str = en(key, options);\r\n if (typeof str !== \"string\")\r\n throw new Error(\"Translation key(s) not found\");\r\n\r\n return str;\r\n }\r\n\r\n /** Get the promise for an already registered Namespace.\r\n * @param name - the name of the namespace\r\n * @public\r\n */\r\n public getNamespacePromise(name: string): Promise<void> | undefined {\r\n return this._namespaces.get(name);\r\n }\r\n\r\n /** @internal */\r\n public getLanguageList(): readonly string[] {\r\n return this.i18next.languages;\r\n }\r\n\r\n /** override the language detected in the browser */\r\n public async changeLanguage(language: string) {\r\n return this.i18next.changeLanguage(language) as unknown as Promise<void>;\r\n }\r\n\r\n /** Register a new Namespace and return it. If the namespace is already registered, it will be returned.\r\n * @param name - the name of the namespace, which is the base name of the JSON file that contains the localization properties.\r\n * @note - The registerNamespace method starts fetching the appropriate version of the JSON localization file from the server,\r\n * based on the current locale. To make sure that fetch is complete before performing translations from this namespace, await\r\n * fulfillment of the readPromise Promise property of the returned LocalizationNamespace.\r\n * @see [Localization in iTwin.js]($docs/learning/frontend/Localization.md)\r\n * @public\r\n */\r\n public async registerNamespace(name: string): Promise<void> {\r\n const existing = this._namespaces.get(name);\r\n if (existing !== undefined)\r\n return existing;\r\n\r\n const theReadPromise = new Promise<void>((resolve) => {\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this.i18next.loadNamespaces(name, (err) => {\r\n if (!err)\r\n return resolve();\r\n\r\n // Here we got a non-null err object.\r\n // This method is called when the system has attempted to load the resources for the namespaces for each possible locale.\r\n // For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.\r\n // Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.\r\n // There might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible locale.\r\n let locales = this.getLanguageList().map((thisLocale: any) => `/${thisLocale}/`);\r\n\r\n try {\r\n for (const thisError of err) {\r\n if (typeof thisError === \"string\")\r\n locales = locales.filter((thisLocale) => !thisError.includes(thisLocale));\r\n }\r\n } catch (e) {\r\n locales = [];\r\n }\r\n // if we removed every locale from the array, it wasn't loaded.\r\n if (locales.length === 0)\r\n Logger.logError(\"i18n\", `No resources for namespace ${name} could be loaded`);\r\n\r\n resolve();\r\n });\r\n });\r\n this._namespaces.set(name, theReadPromise);\r\n return theReadPromise;\r\n }\r\n\r\n /** @internal */\r\n public unregisterNamespace(name: string): void {\r\n this._namespaces.delete(name);\r\n }\r\n}\r\n\r\nclass TranslationLogger {\r\n public static readonly type = \"logger\";\r\n public log(args: string[]) { Logger.logInfo(\"i18n\", this.createLogMessage(args)); }\r\n public warn(args: string[]) { Logger.logWarning(\"i18n\", this.createLogMessage(args)); }\r\n public error(args: string[]) { Logger.logError(\"i18n\", this.createLogMessage(args)); }\r\n private createLogMessage(args: string[]) {\r\n let message = args[0];\r\n for (let i = 1; i < args.length; ++i) {\r\n if (typeof args[i] === \"string\")\r\n message += `\\n ${args[i]}`;\r\n }\r\n return message;\r\n }\r\n}\r\n"]
2277
2277
  },
2278
2278
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
2279
- hash: "caed5073251f3d7d6d48f83e3eb9350416a265ee"
2279
+ hash: "177c4b274add24bf1c31df8579ec3ab288b9ce30"
2280
2280
  };
2281
2281
  var coverage = global[gcv] || (global[gcv] = {});
2282
2282
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -2285,56 +2285,56 @@ function cov_1irwne2hhy() {
2285
2285
  var actualCoverage = coverage[path];
2286
2286
  {
2287
2287
  // @ts-ignore
2288
- cov_1irwne2hhy = function () {
2288
+ cov_2awov3utze = function () {
2289
2289
  return actualCoverage;
2290
2290
  };
2291
2291
  }
2292
2292
  return actualCoverage;
2293
2293
  }
2294
- cov_1irwne2hhy();
2295
- var __importDefault = (cov_1irwne2hhy().s[0]++, (cov_1irwne2hhy().b[0][0]++, this) && (cov_1irwne2hhy().b[0][1]++, this.__importDefault) || (cov_1irwne2hhy().b[0][2]++, function (mod) {
2296
- cov_1irwne2hhy().f[0]++;
2297
- cov_1irwne2hhy().s[1]++;
2298
- return (cov_1irwne2hhy().b[2][0]++, mod) && (cov_1irwne2hhy().b[2][1]++, mod.__esModule) ? (cov_1irwne2hhy().b[1][0]++, mod) : (cov_1irwne2hhy().b[1][1]++, {
2294
+ cov_2awov3utze();
2295
+ var __importDefault = (cov_2awov3utze().s[0]++, (cov_2awov3utze().b[0][0]++, this) && (cov_2awov3utze().b[0][1]++, this.__importDefault) || (cov_2awov3utze().b[0][2]++, function (mod) {
2296
+ cov_2awov3utze().f[0]++;
2297
+ cov_2awov3utze().s[1]++;
2298
+ return (cov_2awov3utze().b[2][0]++, mod) && (cov_2awov3utze().b[2][1]++, mod.__esModule) ? (cov_2awov3utze().b[1][0]++, mod) : (cov_2awov3utze().b[1][1]++, {
2299
2299
  "default": mod
2300
2300
  });
2301
2301
  }));
2302
- cov_1irwne2hhy().s[2]++;
2302
+ cov_2awov3utze().s[2]++;
2303
2303
  Object.defineProperty(exports, "__esModule", ({
2304
2304
  value: true
2305
2305
  }));
2306
- cov_1irwne2hhy().s[3]++;
2306
+ cov_2awov3utze().s[3]++;
2307
2307
  exports.ITwinLocalization = void 0;
2308
- const i18next_1 = (cov_1irwne2hhy().s[4]++, __importDefault(__webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.10.0/node_modules/i18next/dist/cjs/i18next.js")));
2309
- const i18next_browser_languagedetector_1 = (cov_1irwne2hhy().s[5]++, __importDefault(__webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.8/node_modules/i18next-browser-languagedetector/dist/cjs/i18nextBrowserLanguageDetector.js")));
2310
- const i18next_http_backend_1 = (cov_1irwne2hhy().s[6]++, __importDefault(__webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/index.js")));
2311
- const core_bentley_1 = (cov_1irwne2hhy().s[7]++, __webpack_require__(/*! @itwin/core-bentley */ "../bentley/lib/esm/core-bentley.js"));
2312
- const DEFAULT_MAX_RETRIES = (cov_1irwne2hhy().s[8]++, 1); // a low number prevents wasted time and potential timeouts when requesting localization files throws an error
2308
+ const i18next_1 = (cov_2awov3utze().s[4]++, __importDefault(__webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.10.0/node_modules/i18next/dist/cjs/i18next.js")));
2309
+ const i18next_browser_languagedetector_1 = (cov_2awov3utze().s[5]++, __importDefault(__webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.8/node_modules/i18next-browser-languagedetector/dist/cjs/i18nextBrowserLanguageDetector.js")));
2310
+ const i18next_http_backend_1 = (cov_2awov3utze().s[6]++, __importDefault(__webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/index.js")));
2311
+ const core_bentley_1 = (cov_2awov3utze().s[7]++, __webpack_require__(/*! @itwin/core-bentley */ "../bentley/lib/esm/core-bentley.js"));
2312
+ const DEFAULT_MAX_RETRIES = (cov_2awov3utze().s[8]++, 1); // a low number prevents wasted time and potential timeouts when requesting localization files throws an error
2313
2313
  /** Supplies localizations for iTwin.js
2314
2314
  * @note this class uses the [i18next](https://www.i18next.com/) package.
2315
2315
  * @public
2316
2316
  */
2317
2317
  class ITwinLocalization {
2318
2318
  constructor(options) {
2319
- cov_1irwne2hhy().f[1]++;
2320
- cov_1irwne2hhy().s[9]++;
2319
+ cov_2awov3utze().f[1]++;
2320
+ cov_2awov3utze().s[9]++;
2321
2321
  this._namespaces = new Map();
2322
- cov_1irwne2hhy().s[10]++;
2322
+ cov_2awov3utze().s[10]++;
2323
2323
  this.i18next = i18next_1.default.createInstance();
2324
- cov_1irwne2hhy().s[11]++;
2324
+ cov_2awov3utze().s[11]++;
2325
2325
  this._backendOptions = {
2326
- loadPath: (cov_1irwne2hhy().b[3][0]++, options?.urlTemplate) ?? (cov_1irwne2hhy().b[3][1]++, "locales/{{lng}}/{{ns}}.json"),
2326
+ loadPath: (cov_2awov3utze().b[3][0]++, options?.urlTemplate) ?? (cov_2awov3utze().b[3][1]++, "locales/{{lng}}/{{ns}}.json"),
2327
2327
  crossDomain: true,
2328
2328
  ...options?.backendHttpOptions
2329
2329
  };
2330
- cov_1irwne2hhy().s[12]++;
2330
+ cov_2awov3utze().s[12]++;
2331
2331
  this._detectionOptions = {
2332
2332
  order: ["querystring", "navigator", "htmlTag"],
2333
2333
  lookupQuerystring: "lng",
2334
2334
  caches: [],
2335
2335
  ...options?.detectorOptions
2336
2336
  };
2337
- cov_1irwne2hhy().s[13]++;
2337
+ cov_2awov3utze().s[13]++;
2338
2338
  this._initOptions = {
2339
2339
  interpolation: {
2340
2340
  escapeValue: true
@@ -2345,40 +2345,40 @@ class ITwinLocalization {
2345
2345
  detection: this._detectionOptions,
2346
2346
  ...options?.initOptions
2347
2347
  };
2348
- cov_1irwne2hhy().s[14]++;
2349
- this.i18next.use((cov_1irwne2hhy().b[4][0]++, options?.detectorPlugin) ?? (cov_1irwne2hhy().b[4][1]++, i18next_browser_languagedetector_1.default)).use((cov_1irwne2hhy().b[5][0]++, options?.backendPlugin) ?? (cov_1irwne2hhy().b[5][1]++, i18next_http_backend_1.default)).use(TranslationLogger);
2348
+ cov_2awov3utze().s[14]++;
2349
+ this.i18next.use((cov_2awov3utze().b[4][0]++, options?.detectorPlugin) ?? (cov_2awov3utze().b[4][1]++, i18next_browser_languagedetector_1.default)).use((cov_2awov3utze().b[5][0]++, options?.backendPlugin) ?? (cov_2awov3utze().b[5][1]++, i18next_http_backend_1.default)).use(TranslationLogger);
2350
2350
  }
2351
2351
  async initialize(namespaces) {
2352
- cov_1irwne2hhy().f[2]++;
2352
+ cov_2awov3utze().f[2]++;
2353
2353
  // Also consider namespaces passed into constructor
2354
- const initNamespaces = (cov_1irwne2hhy().s[15]++, [(cov_1irwne2hhy().b[6][0]++, this._initOptions.ns) || (cov_1irwne2hhy().b[6][1]++, [])].flat());
2355
- const combinedNamespaces = (cov_1irwne2hhy().s[16]++, new Set([...namespaces, ...initNamespaces])); // without duplicates
2356
- const defaultNamespace = (cov_1irwne2hhy().s[17]++, (cov_1irwne2hhy().b[7][0]++, this._initOptions.defaultNS) ?? (cov_1irwne2hhy().b[7][1]++, namespaces[0]));
2357
- cov_1irwne2hhy().s[18]++;
2354
+ const initNamespaces = (cov_2awov3utze().s[15]++, [(cov_2awov3utze().b[6][0]++, this._initOptions.ns) || (cov_2awov3utze().b[6][1]++, [])].flat());
2355
+ const combinedNamespaces = (cov_2awov3utze().s[16]++, new Set([...namespaces, ...initNamespaces])); // without duplicates
2356
+ const defaultNamespace = (cov_2awov3utze().s[17]++, (cov_2awov3utze().b[7][0]++, this._initOptions.defaultNS) ?? (cov_2awov3utze().b[7][1]++, namespaces[0]));
2357
+ cov_2awov3utze().s[18]++;
2358
2358
  if (defaultNamespace) {
2359
- cov_1irwne2hhy().b[8][0]++;
2360
- cov_1irwne2hhy().s[19]++;
2359
+ cov_2awov3utze().b[8][0]++;
2360
+ cov_2awov3utze().s[19]++;
2361
2361
  combinedNamespaces.add(defaultNamespace);
2362
2362
  } else {
2363
- cov_1irwne2hhy().b[8][1]++;
2363
+ cov_2awov3utze().b[8][1]++;
2364
2364
  } // Make sure default namespace is in namespaces list
2365
- const initOptions = (cov_1irwne2hhy().s[20]++, {
2365
+ const initOptions = (cov_2awov3utze().s[20]++, {
2366
2366
  ...this._initOptions,
2367
2367
  defaultNS: defaultNamespace,
2368
2368
  ns: [...combinedNamespaces]
2369
2369
  });
2370
2370
  // if in a development environment, set debugging
2371
- cov_1irwne2hhy().s[21]++;
2371
+ cov_2awov3utze().s[21]++;
2372
2372
  if (false) {} else {
2373
- cov_1irwne2hhy().b[9][1]++;
2373
+ cov_2awov3utze().b[9][1]++;
2374
2374
  }
2375
- const initPromise = (cov_1irwne2hhy().s[23]++, this.i18next.init(initOptions));
2376
- cov_1irwne2hhy().s[24]++;
2375
+ const initPromise = (cov_2awov3utze().s[23]++, this.i18next.init(initOptions));
2376
+ cov_2awov3utze().s[24]++;
2377
2377
  for (const ns of namespaces) {
2378
- cov_1irwne2hhy().s[25]++;
2378
+ cov_2awov3utze().s[25]++;
2379
2379
  this._namespaces.set(ns, initPromise);
2380
2380
  }
2381
- cov_1irwne2hhy().s[26]++;
2381
+ cov_2awov3utze().s[26]++;
2382
2382
  return initPromise;
2383
2383
  }
2384
2384
  /** Replace all instances of `%{key}` within a string with the translations of those keys.
@@ -2398,11 +2398,11 @@ class ITwinLocalization {
2398
2398
  * @public
2399
2399
  */
2400
2400
  getLocalizedKeys(line) {
2401
- cov_1irwne2hhy().f[3]++;
2402
- cov_1irwne2hhy().s[27]++;
2401
+ cov_2awov3utze().f[3]++;
2402
+ cov_2awov3utze().s[27]++;
2403
2403
  return line.replace(/\%\{(.+?)\}/g, (_match, tag) => {
2404
- cov_1irwne2hhy().f[4]++;
2405
- cov_1irwne2hhy().s[28]++;
2404
+ cov_2awov3utze().f[4]++;
2405
+ cov_2awov3utze().s[28]++;
2406
2406
  return this.getLocalizedString(tag);
2407
2407
  });
2408
2408
  }
@@ -2420,25 +2420,25 @@ class ITwinLocalization {
2420
2420
  * @public
2421
2421
  */
2422
2422
  getLocalizedString(key, options) {
2423
- cov_1irwne2hhy().f[5]++;
2424
- cov_1irwne2hhy().s[29]++;
2425
- if ((cov_1irwne2hhy().b[11][0]++, options?.returnDetails) || (cov_1irwne2hhy().b[11][1]++, options?.returnObjects)) {
2426
- cov_1irwne2hhy().b[10][0]++;
2427
- cov_1irwne2hhy().s[30]++;
2423
+ cov_2awov3utze().f[5]++;
2424
+ cov_2awov3utze().s[29]++;
2425
+ if ((cov_2awov3utze().b[11][0]++, options?.returnDetails) || (cov_2awov3utze().b[11][1]++, options?.returnObjects)) {
2426
+ cov_2awov3utze().b[10][0]++;
2427
+ cov_2awov3utze().s[30]++;
2428
2428
  throw new Error("Translation key must map to a string, but the given options will result in an object");
2429
2429
  } else {
2430
- cov_1irwne2hhy().b[10][1]++;
2430
+ cov_2awov3utze().b[10][1]++;
2431
2431
  }
2432
- const value = (cov_1irwne2hhy().s[31]++, this.i18next.t(key, options));
2433
- cov_1irwne2hhy().s[32]++;
2432
+ const value = (cov_2awov3utze().s[31]++, this.i18next.t(key, options));
2433
+ cov_2awov3utze().s[32]++;
2434
2434
  if (typeof value !== "string") {
2435
- cov_1irwne2hhy().b[12][0]++;
2436
- cov_1irwne2hhy().s[33]++;
2435
+ cov_2awov3utze().b[12][0]++;
2436
+ cov_2awov3utze().s[33]++;
2437
2437
  throw new Error("Translation key(s) string not found");
2438
2438
  } else {
2439
- cov_1irwne2hhy().b[12][1]++;
2439
+ cov_2awov3utze().b[12][1]++;
2440
2440
  }
2441
- cov_1irwne2hhy().s[34]++;
2441
+ cov_2awov3utze().s[34]++;
2442
2442
  return value;
2443
2443
  }
2444
2444
  /** Similar to `getLocalizedString` but the default namespace is a separate parameter and the key does not need
@@ -2450,23 +2450,23 @@ class ITwinLocalization {
2450
2450
  * @internal
2451
2451
  */
2452
2452
  getLocalizedStringWithNamespace(namespace, key, options) {
2453
- cov_1irwne2hhy().f[6]++;
2454
- let fullKey = (cov_1irwne2hhy().s[35]++, "");
2455
- cov_1irwne2hhy().s[36]++;
2453
+ cov_2awov3utze().f[6]++;
2454
+ let fullKey = (cov_2awov3utze().s[35]++, "");
2455
+ cov_2awov3utze().s[36]++;
2456
2456
  if (typeof key === "string") {
2457
- cov_1irwne2hhy().b[13][0]++;
2458
- cov_1irwne2hhy().s[37]++;
2457
+ cov_2awov3utze().b[13][0]++;
2458
+ cov_2awov3utze().s[37]++;
2459
2459
  fullKey = `${namespace}:${key}`;
2460
2460
  } else {
2461
- cov_1irwne2hhy().b[13][1]++;
2462
- cov_1irwne2hhy().s[38]++;
2461
+ cov_2awov3utze().b[13][1]++;
2462
+ cov_2awov3utze().s[38]++;
2463
2463
  fullKey = key.map(subKey => {
2464
- cov_1irwne2hhy().f[7]++;
2465
- cov_1irwne2hhy().s[39]++;
2464
+ cov_2awov3utze().f[7]++;
2465
+ cov_2awov3utze().s[39]++;
2466
2466
  return `${namespace}:${subKey}`;
2467
2467
  });
2468
2468
  }
2469
- cov_1irwne2hhy().s[40]++;
2469
+ cov_2awov3utze().s[40]++;
2470
2470
  return this.getLocalizedString(fullKey, options);
2471
2471
  }
2472
2472
  /** Gets the English translation.
@@ -2477,32 +2477,32 @@ class ITwinLocalization {
2477
2477
  * @internal
2478
2478
  */
2479
2479
  getEnglishString(namespace, key, options) {
2480
- cov_1irwne2hhy().f[8]++;
2481
- cov_1irwne2hhy().s[41]++;
2482
- if ((cov_1irwne2hhy().b[15][0]++, options?.returnDetails) || (cov_1irwne2hhy().b[15][1]++, options?.returnObjects)) {
2483
- cov_1irwne2hhy().b[14][0]++;
2484
- cov_1irwne2hhy().s[42]++;
2480
+ cov_2awov3utze().f[8]++;
2481
+ cov_2awov3utze().s[41]++;
2482
+ if ((cov_2awov3utze().b[15][0]++, options?.returnDetails) || (cov_2awov3utze().b[15][1]++, options?.returnObjects)) {
2483
+ cov_2awov3utze().b[14][0]++;
2484
+ cov_2awov3utze().s[42]++;
2485
2485
  throw new Error("Translation key must map to a string, but the given options will result in an object");
2486
2486
  } else {
2487
- cov_1irwne2hhy().b[14][1]++;
2487
+ cov_2awov3utze().b[14][1]++;
2488
2488
  }
2489
- cov_1irwne2hhy().s[43]++;
2489
+ cov_2awov3utze().s[43]++;
2490
2490
  options = {
2491
2491
  ...options,
2492
2492
  ns: namespace // ensure namespace argument is used
2493
2493
  };
2494
2494
 
2495
- const en = (cov_1irwne2hhy().s[44]++, this.i18next.getFixedT("en", namespace));
2496
- const str = (cov_1irwne2hhy().s[45]++, en(key, options));
2497
- cov_1irwne2hhy().s[46]++;
2495
+ const en = (cov_2awov3utze().s[44]++, this.i18next.getFixedT("en", namespace));
2496
+ const str = (cov_2awov3utze().s[45]++, en(key, options));
2497
+ cov_2awov3utze().s[46]++;
2498
2498
  if (typeof str !== "string") {
2499
- cov_1irwne2hhy().b[16][0]++;
2500
- cov_1irwne2hhy().s[47]++;
2499
+ cov_2awov3utze().b[16][0]++;
2500
+ cov_2awov3utze().s[47]++;
2501
2501
  throw new Error("Translation key(s) not found");
2502
2502
  } else {
2503
- cov_1irwne2hhy().b[16][1]++;
2503
+ cov_2awov3utze().b[16][1]++;
2504
2504
  }
2505
- cov_1irwne2hhy().s[48]++;
2505
+ cov_2awov3utze().s[48]++;
2506
2506
  return str;
2507
2507
  }
2508
2508
  /** Get the promise for an already registered Namespace.
@@ -2510,20 +2510,20 @@ class ITwinLocalization {
2510
2510
  * @public
2511
2511
  */
2512
2512
  getNamespacePromise(name) {
2513
- cov_1irwne2hhy().f[9]++;
2514
- cov_1irwne2hhy().s[49]++;
2513
+ cov_2awov3utze().f[9]++;
2514
+ cov_2awov3utze().s[49]++;
2515
2515
  return this._namespaces.get(name);
2516
2516
  }
2517
2517
  /** @internal */
2518
2518
  getLanguageList() {
2519
- cov_1irwne2hhy().f[10]++;
2520
- cov_1irwne2hhy().s[50]++;
2519
+ cov_2awov3utze().f[10]++;
2520
+ cov_2awov3utze().s[50]++;
2521
2521
  return this.i18next.languages;
2522
2522
  }
2523
2523
  /** override the language detected in the browser */
2524
2524
  async changeLanguage(language) {
2525
- cov_1irwne2hhy().f[11]++;
2526
- cov_1irwne2hhy().s[51]++;
2525
+ cov_2awov3utze().f[11]++;
2526
+ cov_2awov3utze().s[51]++;
2527
2527
  return this.i18next.changeLanguage(language);
2528
2528
  }
2529
2529
  /** Register a new Namespace and return it. If the namespace is already registered, it will be returned.
@@ -2535,123 +2535,123 @@ class ITwinLocalization {
2535
2535
  * @public
2536
2536
  */
2537
2537
  async registerNamespace(name) {
2538
- cov_1irwne2hhy().f[12]++;
2539
- const existing = (cov_1irwne2hhy().s[52]++, this._namespaces.get(name));
2540
- cov_1irwne2hhy().s[53]++;
2538
+ cov_2awov3utze().f[12]++;
2539
+ const existing = (cov_2awov3utze().s[52]++, this._namespaces.get(name));
2540
+ cov_2awov3utze().s[53]++;
2541
2541
  if (existing !== undefined) {
2542
- cov_1irwne2hhy().b[17][0]++;
2543
- cov_1irwne2hhy().s[54]++;
2542
+ cov_2awov3utze().b[17][0]++;
2543
+ cov_2awov3utze().s[54]++;
2544
2544
  return existing;
2545
2545
  } else {
2546
- cov_1irwne2hhy().b[17][1]++;
2546
+ cov_2awov3utze().b[17][1]++;
2547
2547
  }
2548
- const theReadPromise = (cov_1irwne2hhy().s[55]++, new Promise(resolve => {
2549
- cov_1irwne2hhy().f[13]++;
2550
- cov_1irwne2hhy().s[56]++;
2548
+ const theReadPromise = (cov_2awov3utze().s[55]++, new Promise(resolve => {
2549
+ cov_2awov3utze().f[13]++;
2550
+ cov_2awov3utze().s[56]++;
2551
2551
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
2552
2552
  this.i18next.loadNamespaces(name, err => {
2553
- cov_1irwne2hhy().f[14]++;
2554
- cov_1irwne2hhy().s[57]++;
2553
+ cov_2awov3utze().f[14]++;
2554
+ cov_2awov3utze().s[57]++;
2555
2555
  if (!err) {
2556
- cov_1irwne2hhy().b[18][0]++;
2557
- cov_1irwne2hhy().s[58]++;
2556
+ cov_2awov3utze().b[18][0]++;
2557
+ cov_2awov3utze().s[58]++;
2558
2558
  return resolve();
2559
2559
  } else {
2560
- cov_1irwne2hhy().b[18][1]++;
2560
+ cov_2awov3utze().b[18][1]++;
2561
2561
  }
2562
2562
  // Here we got a non-null err object.
2563
2563
  // This method is called when the system has attempted to load the resources for the namespaces for each possible locale.
2564
2564
  // For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.
2565
2565
  // Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.
2566
2566
  // There might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible locale.
2567
- let locales = (cov_1irwne2hhy().s[59]++, this.getLanguageList().map(thisLocale => {
2568
- cov_1irwne2hhy().f[15]++;
2569
- cov_1irwne2hhy().s[60]++;
2567
+ let locales = (cov_2awov3utze().s[59]++, this.getLanguageList().map(thisLocale => {
2568
+ cov_2awov3utze().f[15]++;
2569
+ cov_2awov3utze().s[60]++;
2570
2570
  return `/${thisLocale}/`;
2571
2571
  }));
2572
- cov_1irwne2hhy().s[61]++;
2572
+ cov_2awov3utze().s[61]++;
2573
2573
  try {
2574
- cov_1irwne2hhy().s[62]++;
2574
+ cov_2awov3utze().s[62]++;
2575
2575
  for (const thisError of err) {
2576
- cov_1irwne2hhy().s[63]++;
2576
+ cov_2awov3utze().s[63]++;
2577
2577
  if (typeof thisError === "string") {
2578
- cov_1irwne2hhy().b[19][0]++;
2579
- cov_1irwne2hhy().s[64]++;
2578
+ cov_2awov3utze().b[19][0]++;
2579
+ cov_2awov3utze().s[64]++;
2580
2580
  locales = locales.filter(thisLocale => {
2581
- cov_1irwne2hhy().f[16]++;
2582
- cov_1irwne2hhy().s[65]++;
2581
+ cov_2awov3utze().f[16]++;
2582
+ cov_2awov3utze().s[65]++;
2583
2583
  return !thisError.includes(thisLocale);
2584
2584
  });
2585
2585
  } else {
2586
- cov_1irwne2hhy().b[19][1]++;
2586
+ cov_2awov3utze().b[19][1]++;
2587
2587
  }
2588
2588
  }
2589
2589
  } catch (e) {
2590
- cov_1irwne2hhy().s[66]++;
2590
+ cov_2awov3utze().s[66]++;
2591
2591
  locales = [];
2592
2592
  }
2593
2593
  // if we removed every locale from the array, it wasn't loaded.
2594
- cov_1irwne2hhy().s[67]++;
2594
+ cov_2awov3utze().s[67]++;
2595
2595
  if (locales.length === 0) {
2596
- cov_1irwne2hhy().b[20][0]++;
2597
- cov_1irwne2hhy().s[68]++;
2596
+ cov_2awov3utze().b[20][0]++;
2597
+ cov_2awov3utze().s[68]++;
2598
2598
  core_bentley_1.Logger.logError("i18n", `No resources for namespace ${name} could be loaded`);
2599
2599
  } else {
2600
- cov_1irwne2hhy().b[20][1]++;
2600
+ cov_2awov3utze().b[20][1]++;
2601
2601
  }
2602
- cov_1irwne2hhy().s[69]++;
2602
+ cov_2awov3utze().s[69]++;
2603
2603
  resolve();
2604
2604
  });
2605
2605
  }));
2606
- cov_1irwne2hhy().s[70]++;
2606
+ cov_2awov3utze().s[70]++;
2607
2607
  this._namespaces.set(name, theReadPromise);
2608
- cov_1irwne2hhy().s[71]++;
2608
+ cov_2awov3utze().s[71]++;
2609
2609
  return theReadPromise;
2610
2610
  }
2611
2611
  /** @internal */
2612
2612
  unregisterNamespace(name) {
2613
- cov_1irwne2hhy().f[17]++;
2614
- cov_1irwne2hhy().s[72]++;
2613
+ cov_2awov3utze().f[17]++;
2614
+ cov_2awov3utze().s[72]++;
2615
2615
  this._namespaces.delete(name);
2616
2616
  }
2617
2617
  }
2618
- cov_1irwne2hhy().s[73]++;
2618
+ cov_2awov3utze().s[73]++;
2619
2619
  exports.ITwinLocalization = ITwinLocalization;
2620
2620
  class TranslationLogger {
2621
2621
  log(args) {
2622
- cov_1irwne2hhy().f[18]++;
2623
- cov_1irwne2hhy().s[74]++;
2622
+ cov_2awov3utze().f[18]++;
2623
+ cov_2awov3utze().s[74]++;
2624
2624
  core_bentley_1.Logger.logInfo("i18n", this.createLogMessage(args));
2625
2625
  }
2626
2626
  warn(args) {
2627
- cov_1irwne2hhy().f[19]++;
2628
- cov_1irwne2hhy().s[75]++;
2627
+ cov_2awov3utze().f[19]++;
2628
+ cov_2awov3utze().s[75]++;
2629
2629
  core_bentley_1.Logger.logWarning("i18n", this.createLogMessage(args));
2630
2630
  }
2631
2631
  error(args) {
2632
- cov_1irwne2hhy().f[20]++;
2633
- cov_1irwne2hhy().s[76]++;
2632
+ cov_2awov3utze().f[20]++;
2633
+ cov_2awov3utze().s[76]++;
2634
2634
  core_bentley_1.Logger.logError("i18n", this.createLogMessage(args));
2635
2635
  }
2636
2636
  createLogMessage(args) {
2637
- cov_1irwne2hhy().f[21]++;
2638
- let message = (cov_1irwne2hhy().s[77]++, args[0]);
2639
- cov_1irwne2hhy().s[78]++;
2640
- for (let i = (cov_1irwne2hhy().s[79]++, 1); i < args.length; ++i) {
2641
- cov_1irwne2hhy().s[80]++;
2637
+ cov_2awov3utze().f[21]++;
2638
+ let message = (cov_2awov3utze().s[77]++, args[0]);
2639
+ cov_2awov3utze().s[78]++;
2640
+ for (let i = (cov_2awov3utze().s[79]++, 1); i < args.length; ++i) {
2641
+ cov_2awov3utze().s[80]++;
2642
2642
  if (typeof args[i] === "string") {
2643
- cov_1irwne2hhy().b[21][0]++;
2644
- cov_1irwne2hhy().s[81]++;
2643
+ cov_2awov3utze().b[21][0]++;
2644
+ cov_2awov3utze().s[81]++;
2645
2645
  message += `\n ${args[i]}`;
2646
2646
  } else {
2647
- cov_1irwne2hhy().b[21][1]++;
2647
+ cov_2awov3utze().b[21][1]++;
2648
2648
  }
2649
2649
  }
2650
- cov_1irwne2hhy().s[82]++;
2650
+ cov_2awov3utze().s[82]++;
2651
2651
  return message;
2652
2652
  }
2653
2653
  }
2654
- cov_1irwne2hhy().s[83]++;
2654
+ cov_2awov3utze().s[83]++;
2655
2655
  TranslationLogger.type = "logger";
2656
2656
 
2657
2657
  /***/ }),
@@ -2782,21 +2782,21 @@ AssertionError.prototype.toJSON = function (stack) {
2782
2782
 
2783
2783
  /***/ }),
2784
2784
 
2785
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js":
2786
- /*!**********************************************************************************!*\
2787
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js ***!
2788
- \**********************************************************************************/
2785
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/index.js":
2786
+ /*!***********************************************************************************!*\
2787
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/index.js ***!
2788
+ \***********************************************************************************/
2789
2789
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2790
2790
 
2791
- module.exports = __webpack_require__(/*! ./lib/chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
2791
+ module.exports = __webpack_require__(/*! ./lib/chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai.js");
2792
2792
 
2793
2793
 
2794
2794
  /***/ }),
2795
2795
 
2796
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js":
2797
- /*!*************************************************************************************!*\
2798
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js ***!
2799
- \*************************************************************************************/
2796
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai.js":
2797
+ /*!**************************************************************************************!*\
2798
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai.js ***!
2799
+ \**************************************************************************************/
2800
2800
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2801
2801
 
2802
2802
  /*!
@@ -2811,7 +2811,7 @@ var used = [];
2811
2811
  * Chai version
2812
2812
  */
2813
2813
 
2814
- exports.version = '4.3.3';
2814
+ exports.version = '4.3.8';
2815
2815
 
2816
2816
  /*!
2817
2817
  * Assertion Error
@@ -2823,7 +2823,7 @@ exports.AssertionError = __webpack_require__(/*! assertion-error */ "../../commo
2823
2823
  * Utils for plugins (not exported)
2824
2824
  */
2825
2825
 
2826
- var util = __webpack_require__(/*! ./chai/utils */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/index.js");
2826
+ var util = __webpack_require__(/*! ./chai/utils */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/index.js");
2827
2827
 
2828
2828
  /**
2829
2829
  * # .use(function)
@@ -2854,51 +2854,51 @@ exports.util = util;
2854
2854
  * Configuration
2855
2855
  */
2856
2856
 
2857
- var config = __webpack_require__(/*! ./chai/config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
2857
+ var config = __webpack_require__(/*! ./chai/config */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/config.js");
2858
2858
  exports.config = config;
2859
2859
 
2860
2860
  /*!
2861
2861
  * Primary `Assertion` prototype
2862
2862
  */
2863
2863
 
2864
- var assertion = __webpack_require__(/*! ./chai/assertion */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/assertion.js");
2864
+ var assertion = __webpack_require__(/*! ./chai/assertion */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/assertion.js");
2865
2865
  exports.use(assertion);
2866
2866
 
2867
2867
  /*!
2868
2868
  * Core Assertions
2869
2869
  */
2870
2870
 
2871
- var core = __webpack_require__(/*! ./chai/core/assertions */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/core/assertions.js");
2871
+ var core = __webpack_require__(/*! ./chai/core/assertions */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/core/assertions.js");
2872
2872
  exports.use(core);
2873
2873
 
2874
2874
  /*!
2875
2875
  * Expect interface
2876
2876
  */
2877
2877
 
2878
- var expect = __webpack_require__(/*! ./chai/interface/expect */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/expect.js");
2878
+ var expect = __webpack_require__(/*! ./chai/interface/expect */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/interface/expect.js");
2879
2879
  exports.use(expect);
2880
2880
 
2881
2881
  /*!
2882
2882
  * Should interface
2883
2883
  */
2884
2884
 
2885
- var should = __webpack_require__(/*! ./chai/interface/should */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/should.js");
2885
+ var should = __webpack_require__(/*! ./chai/interface/should */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/interface/should.js");
2886
2886
  exports.use(should);
2887
2887
 
2888
2888
  /*!
2889
2889
  * Assert interface
2890
2890
  */
2891
2891
 
2892
- var assert = __webpack_require__(/*! ./chai/interface/assert */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/assert.js");
2892
+ var assert = __webpack_require__(/*! ./chai/interface/assert */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/interface/assert.js");
2893
2893
  exports.use(assert);
2894
2894
 
2895
2895
 
2896
2896
  /***/ }),
2897
2897
 
2898
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/assertion.js":
2899
- /*!***********************************************************************************************!*\
2900
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/assertion.js ***!
2901
- \***********************************************************************************************/
2898
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/assertion.js":
2899
+ /*!************************************************************************************************!*\
2900
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/assertion.js ***!
2901
+ \************************************************************************************************/
2902
2902
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2903
2903
 
2904
2904
  /*!
@@ -2908,7 +2908,7 @@ exports.use(assert);
2908
2908
  * MIT Licensed
2909
2909
  */
2910
2910
 
2911
- var config = __webpack_require__(/*! ./config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
2911
+ var config = __webpack_require__(/*! ./config */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/config.js");
2912
2912
 
2913
2913
  module.exports = function (_chai, util) {
2914
2914
  /*!
@@ -3080,10 +3080,10 @@ module.exports = function (_chai, util) {
3080
3080
 
3081
3081
  /***/ }),
3082
3082
 
3083
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js":
3084
- /*!********************************************************************************************!*\
3085
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js ***!
3086
- \********************************************************************************************/
3083
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/config.js":
3084
+ /*!*********************************************************************************************!*\
3085
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/config.js ***!
3086
+ \*********************************************************************************************/
3087
3087
  /***/ ((module) => {
3088
3088
 
3089
3089
  module.exports = {
@@ -3184,10 +3184,10 @@ module.exports = {
3184
3184
 
3185
3185
  /***/ }),
3186
3186
 
3187
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/core/assertions.js":
3188
- /*!*****************************************************************************************************!*\
3189
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/core/assertions.js ***!
3190
- \*****************************************************************************************************/
3187
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/core/assertions.js":
3188
+ /*!******************************************************************************************************!*\
3189
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/core/assertions.js ***!
3190
+ \******************************************************************************************************/
3191
3191
  /***/ ((module) => {
3192
3192
 
3193
3193
  /*!
@@ -7047,10 +7047,10 @@ module.exports = function (chai, _) {
7047
7047
 
7048
7048
  /***/ }),
7049
7049
 
7050
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/assert.js":
7051
- /*!******************************************************************************************************!*\
7052
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/assert.js ***!
7053
- \******************************************************************************************************/
7050
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/interface/assert.js":
7051
+ /*!*******************************************************************************************************!*\
7052
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/interface/assert.js ***!
7053
+ \*******************************************************************************************************/
7054
7054
  /***/ ((module) => {
7055
7055
 
7056
7056
  /*!
@@ -10170,10 +10170,10 @@ module.exports = function (chai, util) {
10170
10170
 
10171
10171
  /***/ }),
10172
10172
 
10173
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/expect.js":
10174
- /*!******************************************************************************************************!*\
10175
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/expect.js ***!
10176
- \******************************************************************************************************/
10173
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/interface/expect.js":
10174
+ /*!*******************************************************************************************************!*\
10175
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/interface/expect.js ***!
10176
+ \*******************************************************************************************************/
10177
10177
  /***/ ((module) => {
10178
10178
 
10179
10179
  /*!
@@ -10227,10 +10227,10 @@ module.exports = function (chai, util) {
10227
10227
 
10228
10228
  /***/ }),
10229
10229
 
10230
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/should.js":
10231
- /*!******************************************************************************************************!*\
10232
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/should.js ***!
10233
- \******************************************************************************************************/
10230
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/interface/should.js":
10231
+ /*!*******************************************************************************************************!*\
10232
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/interface/should.js ***!
10233
+ \*******************************************************************************************************/
10234
10234
  /***/ ((module) => {
10235
10235
 
10236
10236
  /*!
@@ -10456,10 +10456,10 @@ module.exports = function (chai, util) {
10456
10456
 
10457
10457
  /***/ }),
10458
10458
 
10459
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addChainableMethod.js":
10460
- /*!**************************************************************************************************************!*\
10461
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addChainableMethod.js ***!
10462
- \**************************************************************************************************************/
10459
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/addChainableMethod.js":
10460
+ /*!***************************************************************************************************************!*\
10461
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/addChainableMethod.js ***!
10462
+ \***************************************************************************************************************/
10463
10463
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10464
10464
 
10465
10465
  /*!
@@ -10472,11 +10472,11 @@ module.exports = function (chai, util) {
10472
10472
  * Module dependencies
10473
10473
  */
10474
10474
 
10475
- var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js");
10476
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
10477
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
10478
- var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js");
10479
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
10475
+ var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/addLengthGuard.js");
10476
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai.js");
10477
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/flag.js");
10478
+ var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/proxify.js");
10479
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/transferFlags.js");
10480
10480
 
10481
10481
  /*!
10482
10482
  * Module variables
@@ -10618,10 +10618,10 @@ module.exports = function addChainableMethod(ctx, name, method, chainingBehavior
10618
10618
 
10619
10619
  /***/ }),
10620
10620
 
10621
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js":
10622
- /*!**********************************************************************************************************!*\
10623
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js ***!
10624
- \**********************************************************************************************************/
10621
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/addLengthGuard.js":
10622
+ /*!***********************************************************************************************************!*\
10623
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/addLengthGuard.js ***!
10624
+ \***********************************************************************************************************/
10625
10625
  /***/ ((module) => {
10626
10626
 
10627
10627
  var fnLengthDesc = Object.getOwnPropertyDescriptor(function () {}, 'length');
@@ -10688,10 +10688,10 @@ module.exports = function addLengthGuard (fn, assertionName, isChainable) {
10688
10688
 
10689
10689
  /***/ }),
10690
10690
 
10691
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addMethod.js":
10692
- /*!*****************************************************************************************************!*\
10693
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addMethod.js ***!
10694
- \*****************************************************************************************************/
10691
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/addMethod.js":
10692
+ /*!******************************************************************************************************!*\
10693
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/addMethod.js ***!
10694
+ \******************************************************************************************************/
10695
10695
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10696
10696
 
10697
10697
  /*!
@@ -10700,11 +10700,11 @@ module.exports = function addLengthGuard (fn, assertionName, isChainable) {
10700
10700
  * MIT Licensed
10701
10701
  */
10702
10702
 
10703
- var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js");
10704
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
10705
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
10706
- var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js");
10707
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
10703
+ var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/addLengthGuard.js");
10704
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai.js");
10705
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/flag.js");
10706
+ var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/proxify.js");
10707
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/transferFlags.js");
10708
10708
 
10709
10709
  /**
10710
10710
  * ### .addMethod(ctx, name, method)
@@ -10766,10 +10766,10 @@ module.exports = function addMethod(ctx, name, method) {
10766
10766
 
10767
10767
  /***/ }),
10768
10768
 
10769
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addProperty.js":
10770
- /*!*******************************************************************************************************!*\
10771
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addProperty.js ***!
10772
- \*******************************************************************************************************/
10769
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/addProperty.js":
10770
+ /*!********************************************************************************************************!*\
10771
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/addProperty.js ***!
10772
+ \********************************************************************************************************/
10773
10773
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10774
10774
 
10775
10775
  /*!
@@ -10778,10 +10778,10 @@ module.exports = function addMethod(ctx, name, method) {
10778
10778
  * MIT Licensed
10779
10779
  */
10780
10780
 
10781
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
10782
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
10783
- var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
10784
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
10781
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai.js");
10782
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/flag.js");
10783
+ var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
10784
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/transferFlags.js");
10785
10785
 
10786
10786
  /**
10787
10787
  * ### .addProperty(ctx, name, getter)
@@ -10848,10 +10848,10 @@ module.exports = function addProperty(ctx, name, getter) {
10848
10848
 
10849
10849
  /***/ }),
10850
10850
 
10851
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/compareByInspect.js":
10852
- /*!************************************************************************************************************!*\
10853
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/compareByInspect.js ***!
10854
- \************************************************************************************************************/
10851
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/compareByInspect.js":
10852
+ /*!*************************************************************************************************************!*\
10853
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/compareByInspect.js ***!
10854
+ \*************************************************************************************************************/
10855
10855
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10856
10856
 
10857
10857
  /*!
@@ -10864,7 +10864,7 @@ module.exports = function addProperty(ctx, name, getter) {
10864
10864
  * Module dependencies
10865
10865
  */
10866
10866
 
10867
- var inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js");
10867
+ var inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/inspect.js");
10868
10868
 
10869
10869
  /**
10870
10870
  * ### .compareByInspect(mixed, mixed)
@@ -10889,10 +10889,10 @@ module.exports = function compareByInspect(a, b) {
10889
10889
 
10890
10890
  /***/ }),
10891
10891
 
10892
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/expectTypes.js":
10893
- /*!*******************************************************************************************************!*\
10894
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/expectTypes.js ***!
10895
- \*******************************************************************************************************/
10892
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/expectTypes.js":
10893
+ /*!********************************************************************************************************!*\
10894
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/expectTypes.js ***!
10895
+ \********************************************************************************************************/
10896
10896
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10897
10897
 
10898
10898
  /*!
@@ -10916,7 +10916,7 @@ module.exports = function compareByInspect(a, b) {
10916
10916
  */
10917
10917
 
10918
10918
  var AssertionError = __webpack_require__(/*! assertion-error */ "../../common/temp/node_modules/.pnpm/assertion-error@1.1.0/node_modules/assertion-error/index.js");
10919
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
10919
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/flag.js");
10920
10920
  var type = __webpack_require__(/*! type-detect */ "../../common/temp/node_modules/.pnpm/type-detect@4.0.8/node_modules/type-detect/type-detect.js");
10921
10921
 
10922
10922
  module.exports = function expectTypes(obj, types) {
@@ -10950,10 +10950,10 @@ module.exports = function expectTypes(obj, types) {
10950
10950
 
10951
10951
  /***/ }),
10952
10952
 
10953
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js":
10954
- /*!************************************************************************************************!*\
10955
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js ***!
10956
- \************************************************************************************************/
10953
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/flag.js":
10954
+ /*!*************************************************************************************************!*\
10955
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/flag.js ***!
10956
+ \*************************************************************************************************/
10957
10957
  /***/ ((module) => {
10958
10958
 
10959
10959
  /*!
@@ -10993,10 +10993,10 @@ module.exports = function flag(obj, key, value) {
10993
10993
 
10994
10994
  /***/ }),
10995
10995
 
10996
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getActual.js":
10997
- /*!*****************************************************************************************************!*\
10998
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getActual.js ***!
10999
- \*****************************************************************************************************/
10996
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getActual.js":
10997
+ /*!******************************************************************************************************!*\
10998
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getActual.js ***!
10999
+ \******************************************************************************************************/
11000
11000
  /***/ ((module) => {
11001
11001
 
11002
11002
  /*!
@@ -11023,10 +11023,10 @@ module.exports = function getActual(obj, args) {
11023
11023
 
11024
11024
  /***/ }),
11025
11025
 
11026
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getMessage.js":
11027
- /*!******************************************************************************************************!*\
11028
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getMessage.js ***!
11029
- \******************************************************************************************************/
11026
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getMessage.js":
11027
+ /*!*******************************************************************************************************!*\
11028
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getMessage.js ***!
11029
+ \*******************************************************************************************************/
11030
11030
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
11031
11031
 
11032
11032
  /*!
@@ -11039,9 +11039,9 @@ module.exports = function getActual(obj, args) {
11039
11039
  * Module dependencies
11040
11040
  */
11041
11041
 
11042
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js")
11043
- , getActual = __webpack_require__(/*! ./getActual */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getActual.js")
11044
- , objDisplay = __webpack_require__(/*! ./objDisplay */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/objDisplay.js");
11042
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/flag.js")
11043
+ , getActual = __webpack_require__(/*! ./getActual */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getActual.js")
11044
+ , objDisplay = __webpack_require__(/*! ./objDisplay */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/objDisplay.js");
11045
11045
 
11046
11046
  /**
11047
11047
  * ### .getMessage(object, message, negateMessage)
@@ -11083,15 +11083,15 @@ module.exports = function getMessage(obj, args) {
11083
11083
 
11084
11084
  /***/ }),
11085
11085
 
11086
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOperator.js":
11087
- /*!*******************************************************************************************************!*\
11088
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOperator.js ***!
11089
- \*******************************************************************************************************/
11086
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getOperator.js":
11087
+ /*!********************************************************************************************************!*\
11088
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getOperator.js ***!
11089
+ \********************************************************************************************************/
11090
11090
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
11091
11091
 
11092
11092
  var type = __webpack_require__(/*! type-detect */ "../../common/temp/node_modules/.pnpm/type-detect@4.0.8/node_modules/type-detect/type-detect.js");
11093
11093
 
11094
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
11094
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/flag.js");
11095
11095
 
11096
11096
  function isObjectType(obj) {
11097
11097
  var objectType = type(obj);
@@ -11148,10 +11148,10 @@ module.exports = function getOperator(obj, args) {
11148
11148
 
11149
11149
  /***/ }),
11150
11150
 
11151
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js":
11152
- /*!**********************************************************************************************************************!*\
11153
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js ***!
11154
- \**********************************************************************************************************************/
11151
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js":
11152
+ /*!***********************************************************************************************************************!*\
11153
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js ***!
11154
+ \***********************************************************************************************************************/
11155
11155
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
11156
11156
 
11157
11157
  /*!
@@ -11164,7 +11164,7 @@ module.exports = function getOperator(obj, args) {
11164
11164
  * Module dependencies
11165
11165
  */
11166
11166
 
11167
- var getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js");
11167
+ var getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js");
11168
11168
 
11169
11169
  /**
11170
11170
  * ### .getOwnEnumerableProperties(object)
@@ -11187,10 +11187,10 @@ module.exports = function getOwnEnumerableProperties(obj) {
11187
11187
 
11188
11188
  /***/ }),
11189
11189
 
11190
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js":
11191
- /*!***************************************************************************************************************************!*\
11192
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js ***!
11193
- \***************************************************************************************************************************/
11190
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js":
11191
+ /*!****************************************************************************************************************************!*\
11192
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js ***!
11193
+ \****************************************************************************************************************************/
11194
11194
  /***/ ((module) => {
11195
11195
 
11196
11196
  /*!
@@ -11224,10 +11224,10 @@ module.exports = function getOwnEnumerablePropertySymbols(obj) {
11224
11224
 
11225
11225
  /***/ }),
11226
11226
 
11227
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getProperties.js":
11228
- /*!*********************************************************************************************************!*\
11229
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getProperties.js ***!
11230
- \*********************************************************************************************************/
11227
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getProperties.js":
11228
+ /*!**********************************************************************************************************!*\
11229
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getProperties.js ***!
11230
+ \**********************************************************************************************************/
11231
11231
  /***/ ((module) => {
11232
11232
 
11233
11233
  /*!
@@ -11270,10 +11270,10 @@ module.exports = function getProperties(object) {
11270
11270
 
11271
11271
  /***/ }),
11272
11272
 
11273
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/index.js":
11274
- /*!*************************************************************************************************!*\
11275
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/index.js ***!
11276
- \*************************************************************************************************/
11273
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/index.js":
11274
+ /*!**************************************************************************************************!*\
11275
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/index.js ***!
11276
+ \**************************************************************************************************/
11277
11277
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
11278
11278
 
11279
11279
  /*!
@@ -11292,7 +11292,7 @@ var pathval = __webpack_require__(/*! pathval */ "../../common/temp/node_modules
11292
11292
  * test utility
11293
11293
  */
11294
11294
 
11295
- exports.test = __webpack_require__(/*! ./test */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/test.js");
11295
+ exports.test = __webpack_require__(/*! ./test */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/test.js");
11296
11296
 
11297
11297
  /*!
11298
11298
  * type utility
@@ -11303,43 +11303,43 @@ exports.type = __webpack_require__(/*! type-detect */ "../../common/temp/node_mo
11303
11303
  /*!
11304
11304
  * expectTypes utility
11305
11305
  */
11306
- exports.expectTypes = __webpack_require__(/*! ./expectTypes */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/expectTypes.js");
11306
+ exports.expectTypes = __webpack_require__(/*! ./expectTypes */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/expectTypes.js");
11307
11307
 
11308
11308
  /*!
11309
11309
  * message utility
11310
11310
  */
11311
11311
 
11312
- exports.getMessage = __webpack_require__(/*! ./getMessage */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getMessage.js");
11312
+ exports.getMessage = __webpack_require__(/*! ./getMessage */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getMessage.js");
11313
11313
 
11314
11314
  /*!
11315
11315
  * actual utility
11316
11316
  */
11317
11317
 
11318
- exports.getActual = __webpack_require__(/*! ./getActual */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getActual.js");
11318
+ exports.getActual = __webpack_require__(/*! ./getActual */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getActual.js");
11319
11319
 
11320
11320
  /*!
11321
11321
  * Inspect util
11322
11322
  */
11323
11323
 
11324
- exports.inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js");
11324
+ exports.inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/inspect.js");
11325
11325
 
11326
11326
  /*!
11327
11327
  * Object Display util
11328
11328
  */
11329
11329
 
11330
- exports.objDisplay = __webpack_require__(/*! ./objDisplay */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/objDisplay.js");
11330
+ exports.objDisplay = __webpack_require__(/*! ./objDisplay */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/objDisplay.js");
11331
11331
 
11332
11332
  /*!
11333
11333
  * Flag utility
11334
11334
  */
11335
11335
 
11336
- exports.flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
11336
+ exports.flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/flag.js");
11337
11337
 
11338
11338
  /*!
11339
11339
  * Flag transferring utility
11340
11340
  */
11341
11341
 
11342
- exports.transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
11342
+ exports.transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/transferFlags.js");
11343
11343
 
11344
11344
  /*!
11345
11345
  * Deep equal utility
@@ -11363,112 +11363,112 @@ exports.hasProperty = pathval.hasProperty;
11363
11363
  * Function name
11364
11364
  */
11365
11365
 
11366
- exports.getName = __webpack_require__(/*! get-func-name */ "../../common/temp/node_modules/.pnpm/get-func-name@2.0.0/node_modules/get-func-name/index.js");
11366
+ exports.getName = __webpack_require__(/*! get-func-name */ "../../common/temp/node_modules/.pnpm/get-func-name@2.0.2/node_modules/get-func-name/index.js");
11367
11367
 
11368
11368
  /*!
11369
11369
  * add Property
11370
11370
  */
11371
11371
 
11372
- exports.addProperty = __webpack_require__(/*! ./addProperty */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addProperty.js");
11372
+ exports.addProperty = __webpack_require__(/*! ./addProperty */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/addProperty.js");
11373
11373
 
11374
11374
  /*!
11375
11375
  * add Method
11376
11376
  */
11377
11377
 
11378
- exports.addMethod = __webpack_require__(/*! ./addMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addMethod.js");
11378
+ exports.addMethod = __webpack_require__(/*! ./addMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/addMethod.js");
11379
11379
 
11380
11380
  /*!
11381
11381
  * overwrite Property
11382
11382
  */
11383
11383
 
11384
- exports.overwriteProperty = __webpack_require__(/*! ./overwriteProperty */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteProperty.js");
11384
+ exports.overwriteProperty = __webpack_require__(/*! ./overwriteProperty */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/overwriteProperty.js");
11385
11385
 
11386
11386
  /*!
11387
11387
  * overwrite Method
11388
11388
  */
11389
11389
 
11390
- exports.overwriteMethod = __webpack_require__(/*! ./overwriteMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteMethod.js");
11390
+ exports.overwriteMethod = __webpack_require__(/*! ./overwriteMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/overwriteMethod.js");
11391
11391
 
11392
11392
  /*!
11393
11393
  * Add a chainable method
11394
11394
  */
11395
11395
 
11396
- exports.addChainableMethod = __webpack_require__(/*! ./addChainableMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addChainableMethod.js");
11396
+ exports.addChainableMethod = __webpack_require__(/*! ./addChainableMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/addChainableMethod.js");
11397
11397
 
11398
11398
  /*!
11399
11399
  * Overwrite chainable method
11400
11400
  */
11401
11401
 
11402
- exports.overwriteChainableMethod = __webpack_require__(/*! ./overwriteChainableMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js");
11402
+ exports.overwriteChainableMethod = __webpack_require__(/*! ./overwriteChainableMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js");
11403
11403
 
11404
11404
  /*!
11405
11405
  * Compare by inspect method
11406
11406
  */
11407
11407
 
11408
- exports.compareByInspect = __webpack_require__(/*! ./compareByInspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/compareByInspect.js");
11408
+ exports.compareByInspect = __webpack_require__(/*! ./compareByInspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/compareByInspect.js");
11409
11409
 
11410
11410
  /*!
11411
11411
  * Get own enumerable property symbols method
11412
11412
  */
11413
11413
 
11414
- exports.getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js");
11414
+ exports.getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js");
11415
11415
 
11416
11416
  /*!
11417
11417
  * Get own enumerable properties method
11418
11418
  */
11419
11419
 
11420
- exports.getOwnEnumerableProperties = __webpack_require__(/*! ./getOwnEnumerableProperties */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js");
11420
+ exports.getOwnEnumerableProperties = __webpack_require__(/*! ./getOwnEnumerableProperties */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js");
11421
11421
 
11422
11422
  /*!
11423
11423
  * Checks error against a given set of criteria
11424
11424
  */
11425
11425
 
11426
- exports.checkError = __webpack_require__(/*! check-error */ "../../common/temp/node_modules/.pnpm/check-error@1.0.2/node_modules/check-error/index.js");
11426
+ exports.checkError = __webpack_require__(/*! check-error */ "../../common/temp/node_modules/.pnpm/check-error@1.0.3/node_modules/check-error/index.js");
11427
11427
 
11428
11428
  /*!
11429
11429
  * Proxify util
11430
11430
  */
11431
11431
 
11432
- exports.proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js");
11432
+ exports.proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/proxify.js");
11433
11433
 
11434
11434
  /*!
11435
11435
  * addLengthGuard util
11436
11436
  */
11437
11437
 
11438
- exports.addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js");
11438
+ exports.addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/addLengthGuard.js");
11439
11439
 
11440
11440
  /*!
11441
11441
  * isProxyEnabled helper
11442
11442
  */
11443
11443
 
11444
- exports.isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
11444
+ exports.isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
11445
11445
 
11446
11446
  /*!
11447
11447
  * isNaN method
11448
11448
  */
11449
11449
 
11450
- exports.isNaN = __webpack_require__(/*! ./isNaN */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isNaN.js");
11450
+ exports.isNaN = __webpack_require__(/*! ./isNaN */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/isNaN.js");
11451
11451
 
11452
11452
  /*!
11453
11453
  * getOperator method
11454
11454
  */
11455
11455
 
11456
- exports.getOperator = __webpack_require__(/*! ./getOperator */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOperator.js");
11456
+ exports.getOperator = __webpack_require__(/*! ./getOperator */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getOperator.js");
11457
11457
 
11458
11458
  /***/ }),
11459
11459
 
11460
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js":
11461
- /*!***************************************************************************************************!*\
11462
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js ***!
11463
- \***************************************************************************************************/
11460
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/inspect.js":
11461
+ /*!****************************************************************************************************!*\
11462
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/inspect.js ***!
11463
+ \****************************************************************************************************/
11464
11464
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
11465
11465
 
11466
11466
  // This is (almost) directly from Node.js utils
11467
11467
  // https://github.com/joyent/node/blob/f8c335d0caf47f16d31413f89aa28eda3878e3aa/lib/util.js
11468
11468
 
11469
- var getName = __webpack_require__(/*! get-func-name */ "../../common/temp/node_modules/.pnpm/get-func-name@2.0.0/node_modules/get-func-name/index.js");
11469
+ var getName = __webpack_require__(/*! get-func-name */ "../../common/temp/node_modules/.pnpm/get-func-name@2.0.2/node_modules/get-func-name/index.js");
11470
11470
  var loupe = __webpack_require__(/*! loupe */ "../../common/temp/node_modules/.pnpm/loupe@2.3.6/node_modules/loupe/loupe.js");
11471
- var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
11471
+ var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/config.js");
11472
11472
 
11473
11473
  module.exports = inspect;
11474
11474
 
@@ -11500,10 +11500,10 @@ function inspect(obj, showHidden, depth, colors) {
11500
11500
 
11501
11501
  /***/ }),
11502
11502
 
11503
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isNaN.js":
11504
- /*!*************************************************************************************************!*\
11505
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isNaN.js ***!
11506
- \*************************************************************************************************/
11503
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/isNaN.js":
11504
+ /*!**************************************************************************************************!*\
11505
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/isNaN.js ***!
11506
+ \**************************************************************************************************/
11507
11507
  /***/ ((module) => {
11508
11508
 
11509
11509
  /*!
@@ -11536,13 +11536,13 @@ module.exports = Number.isNaN || isNaN;
11536
11536
 
11537
11537
  /***/ }),
11538
11538
 
11539
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js":
11540
- /*!**********************************************************************************************************!*\
11541
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js ***!
11542
- \**********************************************************************************************************/
11539
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/isProxyEnabled.js":
11540
+ /*!***********************************************************************************************************!*\
11541
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/isProxyEnabled.js ***!
11542
+ \***********************************************************************************************************/
11543
11543
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
11544
11544
 
11545
- var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
11545
+ var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/config.js");
11546
11546
 
11547
11547
  /*!
11548
11548
  * Chai - isProxyEnabled helper
@@ -11570,10 +11570,10 @@ module.exports = function isProxyEnabled() {
11570
11570
 
11571
11571
  /***/ }),
11572
11572
 
11573
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/objDisplay.js":
11574
- /*!******************************************************************************************************!*\
11575
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/objDisplay.js ***!
11576
- \******************************************************************************************************/
11573
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/objDisplay.js":
11574
+ /*!*******************************************************************************************************!*\
11575
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/objDisplay.js ***!
11576
+ \*******************************************************************************************************/
11577
11577
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
11578
11578
 
11579
11579
  /*!
@@ -11586,8 +11586,8 @@ module.exports = function isProxyEnabled() {
11586
11586
  * Module dependencies
11587
11587
  */
11588
11588
 
11589
- var inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js");
11590
- var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
11589
+ var inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/inspect.js");
11590
+ var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/config.js");
11591
11591
 
11592
11592
  /**
11593
11593
  * ### .objDisplay(object)
@@ -11597,6 +11597,7 @@ var config = __webpack_require__(/*! ../config */ "../../common/temp/node_module
11597
11597
  * messages or should be truncated.
11598
11598
  *
11599
11599
  * @param {Mixed} javascript object to inspect
11600
+ * @returns {string} stringified object
11600
11601
  * @name objDisplay
11601
11602
  * @namespace Utils
11602
11603
  * @api public
@@ -11630,10 +11631,10 @@ module.exports = function objDisplay(obj) {
11630
11631
 
11631
11632
  /***/ }),
11632
11633
 
11633
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js":
11634
- /*!********************************************************************************************************************!*\
11635
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js ***!
11636
- \********************************************************************************************************************/
11634
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js":
11635
+ /*!*********************************************************************************************************************!*\
11636
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js ***!
11637
+ \*********************************************************************************************************************/
11637
11638
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
11638
11639
 
11639
11640
  /*!
@@ -11642,8 +11643,8 @@ module.exports = function objDisplay(obj) {
11642
11643
  * MIT Licensed
11643
11644
  */
11644
11645
 
11645
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
11646
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
11646
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai.js");
11647
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/transferFlags.js");
11647
11648
 
11648
11649
  /**
11649
11650
  * ### .overwriteChainableMethod(ctx, name, method, chainingBehavior)
@@ -11709,10 +11710,10 @@ module.exports = function overwriteChainableMethod(ctx, name, method, chainingBe
11709
11710
 
11710
11711
  /***/ }),
11711
11712
 
11712
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteMethod.js":
11713
- /*!***********************************************************************************************************!*\
11714
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteMethod.js ***!
11715
- \***********************************************************************************************************/
11713
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/overwriteMethod.js":
11714
+ /*!************************************************************************************************************!*\
11715
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/overwriteMethod.js ***!
11716
+ \************************************************************************************************************/
11716
11717
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
11717
11718
 
11718
11719
  /*!
@@ -11721,11 +11722,11 @@ module.exports = function overwriteChainableMethod(ctx, name, method, chainingBe
11721
11722
  * MIT Licensed
11722
11723
  */
11723
11724
 
11724
- var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js");
11725
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
11726
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
11727
- var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js");
11728
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
11725
+ var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/addLengthGuard.js");
11726
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai.js");
11727
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/flag.js");
11728
+ var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/proxify.js");
11729
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/transferFlags.js");
11729
11730
 
11730
11731
  /**
11731
11732
  * ### .overwriteMethod(ctx, name, fn)
@@ -11811,10 +11812,10 @@ module.exports = function overwriteMethod(ctx, name, method) {
11811
11812
 
11812
11813
  /***/ }),
11813
11814
 
11814
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteProperty.js":
11815
- /*!*************************************************************************************************************!*\
11816
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteProperty.js ***!
11817
- \*************************************************************************************************************/
11815
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/overwriteProperty.js":
11816
+ /*!**************************************************************************************************************!*\
11817
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/overwriteProperty.js ***!
11818
+ \**************************************************************************************************************/
11818
11819
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
11819
11820
 
11820
11821
  /*!
@@ -11823,10 +11824,10 @@ module.exports = function overwriteMethod(ctx, name, method) {
11823
11824
  * MIT Licensed
11824
11825
  */
11825
11826
 
11826
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
11827
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
11828
- var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
11829
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
11827
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai.js");
11828
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/flag.js");
11829
+ var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
11830
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/transferFlags.js");
11830
11831
 
11831
11832
  /**
11832
11833
  * ### .overwriteProperty(ctx, name, fn)
@@ -11913,16 +11914,16 @@ module.exports = function overwriteProperty(ctx, name, getter) {
11913
11914
 
11914
11915
  /***/ }),
11915
11916
 
11916
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js":
11917
- /*!***************************************************************************************************!*\
11918
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js ***!
11919
- \***************************************************************************************************/
11917
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/proxify.js":
11918
+ /*!****************************************************************************************************!*\
11919
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/proxify.js ***!
11920
+ \****************************************************************************************************/
11920
11921
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
11921
11922
 
11922
- var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
11923
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
11924
- var getProperties = __webpack_require__(/*! ./getProperties */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getProperties.js");
11925
- var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
11923
+ var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/config.js");
11924
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/flag.js");
11925
+ var getProperties = __webpack_require__(/*! ./getProperties */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/getProperties.js");
11926
+ var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
11926
11927
 
11927
11928
  /*!
11928
11929
  * Chai - proxify utility
@@ -12070,10 +12071,10 @@ function stringDistanceCapped(strA, strB, cap) {
12070
12071
 
12071
12072
  /***/ }),
12072
12073
 
12073
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/test.js":
12074
- /*!************************************************************************************************!*\
12075
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/test.js ***!
12076
- \************************************************************************************************/
12074
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/test.js":
12075
+ /*!*************************************************************************************************!*\
12076
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/test.js ***!
12077
+ \*************************************************************************************************/
12077
12078
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
12078
12079
 
12079
12080
  /*!
@@ -12086,12 +12087,12 @@ function stringDistanceCapped(strA, strB, cap) {
12086
12087
  * Module dependencies
12087
12088
  */
12088
12089
 
12089
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
12090
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/flag.js");
12090
12091
 
12091
12092
  /**
12092
12093
  * ### .test(object, expression)
12093
12094
  *
12094
- * Test and object for expression.
12095
+ * Test an object for expression.
12095
12096
  *
12096
12097
  * @param {Object} object (constructed Assertion)
12097
12098
  * @param {Arguments} chai.Assertion.prototype.assert arguments
@@ -12108,10 +12109,10 @@ module.exports = function test(obj, args) {
12108
12109
 
12109
12110
  /***/ }),
12110
12111
 
12111
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js":
12112
- /*!*********************************************************************************************************!*\
12113
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js ***!
12114
- \*********************************************************************************************************/
12112
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/transferFlags.js":
12113
+ /*!**********************************************************************************************************!*\
12114
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/lib/chai/utils/transferFlags.js ***!
12115
+ \**********************************************************************************************************/
12115
12116
  /***/ ((module) => {
12116
12117
 
12117
12118
  /*!
@@ -12163,11 +12164,11 @@ module.exports = function transferFlags(assertion, object, includeAll) {
12163
12164
 
12164
12165
  /***/ }),
12165
12166
 
12166
- /***/ "../../common/temp/node_modules/.pnpm/check-error@1.0.2/node_modules/check-error/index.js":
12167
+ /***/ "../../common/temp/node_modules/.pnpm/check-error@1.0.3/node_modules/check-error/index.js":
12167
12168
  /*!************************************************************************************************!*\
12168
- !*** ../../common/temp/node_modules/.pnpm/check-error@1.0.2/node_modules/check-error/index.js ***!
12169
+ !*** ../../common/temp/node_modules/.pnpm/check-error@1.0.3/node_modules/check-error/index.js ***!
12169
12170
  \************************************************************************************************/
12170
- /***/ ((module) => {
12171
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
12171
12172
 
12172
12173
  "use strict";
12173
12174
 
@@ -12178,6 +12179,7 @@ module.exports = function transferFlags(assertion, object, includeAll) {
12178
12179
  * MIT Licensed
12179
12180
  */
12180
12181
 
12182
+ var getFunctionName = __webpack_require__(/*! get-func-name */ "../../common/temp/node_modules/.pnpm/get-func-name@2.0.2/node_modules/get-func-name/index.js");
12181
12183
  /**
12182
12184
  * ### .checkError
12183
12185
  *
@@ -12257,34 +12259,6 @@ function compatibleMessage(thrown, errMatcher) {
12257
12259
  return false;
12258
12260
  }
12259
12261
 
12260
- /**
12261
- * ### .getFunctionName(constructorFn)
12262
- *
12263
- * Returns the name of a function.
12264
- * This also includes a polyfill function if `constructorFn.name` is not defined.
12265
- *
12266
- * @name getFunctionName
12267
- * @param {Function} constructorFn
12268
- * @namespace Utils
12269
- * @api private
12270
- */
12271
-
12272
- var functionNameMatch = /\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\(\/]+)/;
12273
- function getFunctionName(constructorFn) {
12274
- var name = '';
12275
- if (typeof constructorFn.name === 'undefined') {
12276
- // Here we run a polyfill if constructorFn.name is not defined
12277
- var match = String(constructorFn).match(functionNameMatch);
12278
- if (match) {
12279
- name = match[1];
12280
- }
12281
- } else {
12282
- name = constructorFn.name;
12283
- }
12284
-
12285
- return name;
12286
- }
12287
-
12288
12262
  /**
12289
12263
  * ### .getConstructorName(errorLike)
12290
12264
  *
@@ -12304,8 +12278,11 @@ function getConstructorName(errorLike) {
12304
12278
  // If `err` is not an instance of Error it is an error constructor itself or another function.
12305
12279
  // If we've got a common function we get its name, otherwise we may need to create a new instance
12306
12280
  // of the error just in case it's a poorly-constructed error. Please see chaijs/chai/issues/45 to know more.
12307
- constructorName = getFunctionName(errorLike).trim() ||
12308
- getFunctionName(new errorLike()); // eslint-disable-line new-cap
12281
+ constructorName = getFunctionName(errorLike);
12282
+ if (constructorName === '') {
12283
+ var newConstructorName = getFunctionName(new errorLike()); // eslint-disable-line new-cap
12284
+ constructorName = newConstructorName || constructorName;
12285
+ }
12309
12286
  }
12310
12287
 
12311
12288
  return constructorName;
@@ -13414,9 +13391,9 @@ function mapSymbols(arr) {
13414
13391
 
13415
13392
  /***/ }),
13416
13393
 
13417
- /***/ "../../common/temp/node_modules/.pnpm/get-func-name@2.0.0/node_modules/get-func-name/index.js":
13394
+ /***/ "../../common/temp/node_modules/.pnpm/get-func-name@2.0.2/node_modules/get-func-name/index.js":
13418
13395
  /*!****************************************************************************************************!*\
13419
- !*** ../../common/temp/node_modules/.pnpm/get-func-name@2.0.0/node_modules/get-func-name/index.js ***!
13396
+ !*** ../../common/temp/node_modules/.pnpm/get-func-name@2.0.2/node_modules/get-func-name/index.js ***!
13420
13397
  \****************************************************************************************************/
13421
13398
  /***/ ((module) => {
13422
13399
 
@@ -13444,6 +13421,7 @@ function mapSymbols(arr) {
13444
13421
 
13445
13422
  var toString = Function.prototype.toString;
13446
13423
  var functionNameMatch = /\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;
13424
+ var maxFunctionSourceLength = 512;
13447
13425
  function getFuncName(aFunc) {
13448
13426
  if (typeof aFunc !== 'function') {
13449
13427
  return null;
@@ -13451,8 +13429,15 @@ function getFuncName(aFunc) {
13451
13429
 
13452
13430
  var name = '';
13453
13431
  if (typeof Function.prototype.name === 'undefined' && typeof aFunc.name === 'undefined') {
13432
+ // eslint-disable-next-line prefer-reflect
13433
+ var functionSource = toString.call(aFunc);
13434
+ // To avoid unconstrained resource consumption due to pathalogically large function names,
13435
+ // we limit the available return value to be less than 512 characters.
13436
+ if (functionSource.indexOf('(') > maxFunctionSourceLength) {
13437
+ return name;
13438
+ }
13454
13439
  // Here we run a polyfill if Function does not support the `name` property and if aFunc.name is not defined
13455
- var match = toString.call(aFunc).match(functionNameMatch);
13440
+ var match = functionSource.match(functionNameMatch);
13456
13441
  if (match) {
13457
13442
  name = match[1];
13458
13443
  }
@@ -24190,18 +24175,38 @@ class Tracing {
24190
24175
  static enableOpenTelemetry(tracer, api) {
24191
24176
  Tracing._tracer = tracer;
24192
24177
  Tracing._openTelemetry = api;
24193
- _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logTrace = (category, message, metaData) => Tracing.withOpenTelemetry(() => _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logTrace(category, message, metaData));
24194
- _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logInfo = (category, message, metaData) => Tracing.withOpenTelemetry(() => _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logInfo(category, message, metaData));
24195
- _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logWarning = (category, message, metaData) => Tracing.withOpenTelemetry(() => _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logWarning(category, message, metaData));
24196
- _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logError = (category, message, metaData) => Tracing.withOpenTelemetry(() => _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logError(category, message, metaData));
24178
+ _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logTrace = Tracing.withOpenTelemetry(_Logger__WEBPACK_IMPORTED_MODULE_0__.LogLevel.Trace, _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logTrace.bind(_Logger__WEBPACK_IMPORTED_MODULE_0__.Logger)).bind(_Logger__WEBPACK_IMPORTED_MODULE_0__.Logger);
24179
+ _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logInfo = Tracing.withOpenTelemetry(_Logger__WEBPACK_IMPORTED_MODULE_0__.LogLevel.Info, _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logInfo.bind(_Logger__WEBPACK_IMPORTED_MODULE_0__.Logger)).bind(_Logger__WEBPACK_IMPORTED_MODULE_0__.Logger);
24180
+ _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logWarning = Tracing.withOpenTelemetry(_Logger__WEBPACK_IMPORTED_MODULE_0__.LogLevel.Warning, _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logWarning.bind(_Logger__WEBPACK_IMPORTED_MODULE_0__.Logger)).bind(_Logger__WEBPACK_IMPORTED_MODULE_0__.Logger);
24181
+ _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logError = Tracing.withOpenTelemetry(_Logger__WEBPACK_IMPORTED_MODULE_0__.LogLevel.Error, _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logError.bind(_Logger__WEBPACK_IMPORTED_MODULE_0__.Logger)).bind(_Logger__WEBPACK_IMPORTED_MODULE_0__.Logger);
24197
24182
  }
24198
- static withOpenTelemetry(base, isError = false) {
24183
+ static withOpenTelemetry(level, base, isError = false) {
24199
24184
  return (category, message, metaData) => {
24200
- try {
24201
- Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.addEvent(message, { ...flattenObject(_Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.getMetaData(metaData)), error: isError });
24185
+ const oTelContext = Tracing._openTelemetry?.context.active();
24186
+ if (Tracing._openTelemetry === undefined || oTelContext === undefined)
24187
+ return base(category, message, metaData);
24188
+ const serializedMetadata = _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.getMetaData(metaData);
24189
+ if (_Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.isEnabled(category, level)) {
24190
+ try {
24191
+ Tracing._openTelemetry?.trace
24192
+ .getSpan(Tracing._openTelemetry.context.active())
24193
+ ?.addEvent(message, {
24194
+ ...flattenObject(serializedMetadata),
24195
+ error: isError,
24196
+ loggerCategory: category,
24197
+ });
24198
+ }
24199
+ catch (_e) { } // avoid throwing random errors (with stack trace mangled by async hooks) when openTelemetry collector doesn't work
24200
+ const spanContext = Tracing._openTelemetry.trace.getSpan(oTelContext)?.spanContext();
24201
+ base(category, message, {
24202
+ ...serializedMetadata,
24203
+ /* eslint-disable @typescript-eslint/naming-convention */
24204
+ trace_id: spanContext?.traceId,
24205
+ span_id: spanContext?.spanId,
24206
+ trace_flags: spanContext?.traceFlags,
24207
+ /* eslint-enable @typescript-eslint/naming-convention */
24208
+ });
24202
24209
  }
24203
- catch (_e) { } // avoid throwing random errors (with stack trace mangled by async hooks) when openTelemetry collector doesn't work
24204
- base(category, message, metaData);
24205
24210
  };
24206
24211
  }
24207
24212
  /** Set attributes on currently active openTelemetry span. Doesn't do anything if openTelemetry logging is not initialized.
@@ -25835,7 +25840,7 @@ var exports = __webpack_exports__;
25835
25840
  * See LICENSE.md in the project root for license terms and full copyright notice.
25836
25841
  *--------------------------------------------------------------------------------------------*/
25837
25842
  Object.defineProperty(exports, "__esModule", ({ value: true }));
25838
- const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
25843
+ const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.10/node_modules/chai/index.js");
25839
25844
  const ITwinLocalization_1 = __webpack_require__(/*! ../ITwinLocalization */ "./lib/cjs/ITwinLocalization.js");
25840
25845
  describe("ITwinLocalization", () => {
25841
25846
  let localization;