@itwin/core-i18n 5.5.0-dev.8 → 5.6.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_ogldeftyv() {
21
- var path = "C:\\agent\\_work\\1\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js";
22
- var hash = "113751a8262a3149163a15d970bf9098e64926ce";
20
+ function cov_1wctd2lw3r() {
21
+ var path = "C:\\agent\\_work\\2\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js";
22
+ var hash = "c62969131924018e5347a18fd98028451b653feb";
23
23
  var global = new Function("return this")();
24
24
  var gcv = "__coverage__";
25
25
  var coverageData = {
26
- path: "C:\\agent\\_work\\1\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js",
26
+ path: "C:\\agent\\_work\\2\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js",
27
27
  statementMap: {
28
28
  "0": {
29
29
  start: {
@@ -2120,13 +2120,13 @@ function cov_ogldeftyv() {
2120
2120
  inputSourceMap: {
2121
2121
  version: 3,
2122
2122
  file: "ITwinLocalization.js",
2123
- sources: ["C:\\agent\\_work\\1\\s\\core\\i18n\\src\\ITwinLocalization.ts"],
2123
+ sources: ["C:\\agent\\_work\\2\\s\\core\\i18n\\src\\ITwinLocalization.ts"],
2124
2124
  names: [],
2125
2125
  mappings: ";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;AAEH,sDAA2E;AAC3E,wGAAmG;AACnG,gFAAqF;AACrF,sDAA6C;AAG7C,MAAM,mBAAmB,GAAW,CAAC,CAAC,CAAC,8GAA8G;AAcrJ;;;GAGG;AACH,MAAa,iBAAiB;IACrB,OAAO,CAAO;IACJ,YAAY,CAAc;IAC1B,eAAe,CAAiB;IAChC,iBAAiB,CAAkB;IACnC,WAAW,GAAG,IAAI,GAAG,EAAyB,CAAC;IAEh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C,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,CAAC;YACrC,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;gBAC7B,OAAO,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QAChC,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC",
2126
2126
  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, { HttpBackendOptions as 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 /** 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 {\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"]
2127
2127
  },
2128
2128
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
2129
- hash: "113751a8262a3149163a15d970bf9098e64926ce"
2129
+ hash: "c62969131924018e5347a18fd98028451b653feb"
2130
2130
  };
2131
2131
  var coverage = global[gcv] || (global[gcv] = {});
2132
2132
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -2135,31 +2135,31 @@ function cov_ogldeftyv() {
2135
2135
  var actualCoverage = coverage[path];
2136
2136
  {
2137
2137
  // @ts-ignore
2138
- cov_ogldeftyv = function () {
2138
+ cov_1wctd2lw3r = function () {
2139
2139
  return actualCoverage;
2140
2140
  };
2141
2141
  }
2142
2142
  return actualCoverage;
2143
2143
  }
2144
- cov_ogldeftyv();
2145
- var __importDefault = (cov_ogldeftyv().s[0]++, (cov_ogldeftyv().b[0][0]++, this) && (cov_ogldeftyv().b[0][1]++, this.__importDefault) || (cov_ogldeftyv().b[0][2]++, function (mod) {
2146
- cov_ogldeftyv().f[0]++;
2147
- cov_ogldeftyv().s[1]++;
2148
- return (cov_ogldeftyv().b[2][0]++, mod) && (cov_ogldeftyv().b[2][1]++, mod.__esModule) ? (cov_ogldeftyv().b[1][0]++, mod) : (cov_ogldeftyv().b[1][1]++, {
2144
+ cov_1wctd2lw3r();
2145
+ var __importDefault = (cov_1wctd2lw3r().s[0]++, (cov_1wctd2lw3r().b[0][0]++, this) && (cov_1wctd2lw3r().b[0][1]++, this.__importDefault) || (cov_1wctd2lw3r().b[0][2]++, function (mod) {
2146
+ cov_1wctd2lw3r().f[0]++;
2147
+ cov_1wctd2lw3r().s[1]++;
2148
+ return (cov_1wctd2lw3r().b[2][0]++, mod) && (cov_1wctd2lw3r().b[2][1]++, mod.__esModule) ? (cov_1wctd2lw3r().b[1][0]++, mod) : (cov_1wctd2lw3r().b[1][1]++, {
2149
2149
  "default": mod
2150
2150
  });
2151
2151
  }));
2152
- cov_ogldeftyv().s[2]++;
2152
+ cov_1wctd2lw3r().s[2]++;
2153
2153
  Object.defineProperty(exports, "__esModule", ({
2154
2154
  value: true
2155
2155
  }));
2156
- cov_ogldeftyv().s[3]++;
2156
+ cov_1wctd2lw3r().s[3]++;
2157
2157
  exports.ITwinLocalization = void 0;
2158
- const i18next_1 = (cov_ogldeftyv().s[4]++, __importDefault(__webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.1/node_modules/i18next/dist/cjs/i18next.js")));
2159
- const i18next_browser_languagedetector_1 = (cov_ogldeftyv().s[5]++, __importDefault(__webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.2/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js")));
2160
- const i18next_http_backend_1 = (cov_ogldeftyv().s[6]++, __importDefault(__webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/index.js")));
2161
- const core_bentley_1 = (cov_ogldeftyv().s[7]++, __webpack_require__(/*! @itwin/core-bentley */ "../bentley/lib/esm/core-bentley.js"));
2162
- const DEFAULT_MAX_RETRIES = (cov_ogldeftyv().s[8]++, 1); // a low number prevents wasted time and potential timeouts when requesting localization files throws an error
2158
+ const i18next_1 = (cov_1wctd2lw3r().s[4]++, __importDefault(__webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.1/node_modules/i18next/dist/cjs/i18next.js")));
2159
+ const i18next_browser_languagedetector_1 = (cov_1wctd2lw3r().s[5]++, __importDefault(__webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.2/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js")));
2160
+ const i18next_http_backend_1 = (cov_1wctd2lw3r().s[6]++, __importDefault(__webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/index.js")));
2161
+ const core_bentley_1 = (cov_1wctd2lw3r().s[7]++, __webpack_require__(/*! @itwin/core-bentley */ "../bentley/lib/esm/core-bentley.js"));
2162
+ const DEFAULT_MAX_RETRIES = (cov_1wctd2lw3r().s[8]++, 1); // a low number prevents wasted time and potential timeouts when requesting localization files throws an error
2163
2163
  /** Supplies localizations for iTwin.js
2164
2164
  * @note this class uses the [i18next](https://www.i18next.com/) package.
2165
2165
  * @public
@@ -2169,25 +2169,25 @@ class ITwinLocalization {
2169
2169
  _initOptions;
2170
2170
  _backendOptions;
2171
2171
  _detectionOptions;
2172
- _namespaces = (cov_ogldeftyv().s[9]++, new Map());
2172
+ _namespaces = (cov_1wctd2lw3r().s[9]++, new Map());
2173
2173
  constructor(options) {
2174
- cov_ogldeftyv().f[1]++;
2175
- cov_ogldeftyv().s[10]++;
2174
+ cov_1wctd2lw3r().f[1]++;
2175
+ cov_1wctd2lw3r().s[10]++;
2176
2176
  this.i18next = i18next_1.default.createInstance();
2177
- cov_ogldeftyv().s[11]++;
2177
+ cov_1wctd2lw3r().s[11]++;
2178
2178
  this._backendOptions = {
2179
- loadPath: (cov_ogldeftyv().b[3][0]++, options?.urlTemplate) ?? (cov_ogldeftyv().b[3][1]++, "locales/{{lng}}/{{ns}}.json"),
2179
+ loadPath: (cov_1wctd2lw3r().b[3][0]++, options?.urlTemplate) ?? (cov_1wctd2lw3r().b[3][1]++, "locales/{{lng}}/{{ns}}.json"),
2180
2180
  crossDomain: true,
2181
2181
  ...options?.backendHttpOptions
2182
2182
  };
2183
- cov_ogldeftyv().s[12]++;
2183
+ cov_1wctd2lw3r().s[12]++;
2184
2184
  this._detectionOptions = {
2185
2185
  order: ["querystring", "navigator", "htmlTag"],
2186
2186
  lookupQuerystring: "lng",
2187
2187
  caches: [],
2188
2188
  ...options?.detectorOptions
2189
2189
  };
2190
- cov_ogldeftyv().s[13]++;
2190
+ cov_1wctd2lw3r().s[13]++;
2191
2191
  this._initOptions = {
2192
2192
  interpolation: {
2193
2193
  escapeValue: true
@@ -2198,40 +2198,40 @@ class ITwinLocalization {
2198
2198
  detection: this._detectionOptions,
2199
2199
  ...options?.initOptions
2200
2200
  };
2201
- cov_ogldeftyv().s[14]++;
2202
- this.i18next.use((cov_ogldeftyv().b[4][0]++, options?.detectorPlugin) ?? (cov_ogldeftyv().b[4][1]++, i18next_browser_languagedetector_1.default)).use((cov_ogldeftyv().b[5][0]++, options?.backendPlugin) ?? (cov_ogldeftyv().b[5][1]++, i18next_http_backend_1.default)).use(TranslationLogger);
2201
+ cov_1wctd2lw3r().s[14]++;
2202
+ this.i18next.use((cov_1wctd2lw3r().b[4][0]++, options?.detectorPlugin) ?? (cov_1wctd2lw3r().b[4][1]++, i18next_browser_languagedetector_1.default)).use((cov_1wctd2lw3r().b[5][0]++, options?.backendPlugin) ?? (cov_1wctd2lw3r().b[5][1]++, i18next_http_backend_1.default)).use(TranslationLogger);
2203
2203
  }
2204
2204
  async initialize(namespaces) {
2205
- cov_ogldeftyv().f[2]++;
2205
+ cov_1wctd2lw3r().f[2]++;
2206
2206
  // Also consider namespaces passed into constructor
2207
- const initNamespaces = (cov_ogldeftyv().s[15]++, [(cov_ogldeftyv().b[6][0]++, this._initOptions.ns) || (cov_ogldeftyv().b[6][1]++, [])].flat());
2208
- const combinedNamespaces = (cov_ogldeftyv().s[16]++, new Set([...namespaces, ...initNamespaces])); // without duplicates
2209
- const defaultNamespace = (cov_ogldeftyv().s[17]++, (cov_ogldeftyv().b[7][0]++, this._initOptions.defaultNS) ?? (cov_ogldeftyv().b[7][1]++, namespaces[0]));
2210
- cov_ogldeftyv().s[18]++;
2207
+ const initNamespaces = (cov_1wctd2lw3r().s[15]++, [(cov_1wctd2lw3r().b[6][0]++, this._initOptions.ns) || (cov_1wctd2lw3r().b[6][1]++, [])].flat());
2208
+ const combinedNamespaces = (cov_1wctd2lw3r().s[16]++, new Set([...namespaces, ...initNamespaces])); // without duplicates
2209
+ const defaultNamespace = (cov_1wctd2lw3r().s[17]++, (cov_1wctd2lw3r().b[7][0]++, this._initOptions.defaultNS) ?? (cov_1wctd2lw3r().b[7][1]++, namespaces[0]));
2210
+ cov_1wctd2lw3r().s[18]++;
2211
2211
  if (defaultNamespace) {
2212
- cov_ogldeftyv().b[8][0]++;
2213
- cov_ogldeftyv().s[19]++;
2212
+ cov_1wctd2lw3r().b[8][0]++;
2213
+ cov_1wctd2lw3r().s[19]++;
2214
2214
  combinedNamespaces.add(defaultNamespace);
2215
2215
  } else {
2216
- cov_ogldeftyv().b[8][1]++;
2216
+ cov_1wctd2lw3r().b[8][1]++;
2217
2217
  } // Make sure default namespace is in namespaces list
2218
- const initOptions = (cov_ogldeftyv().s[20]++, {
2218
+ const initOptions = (cov_1wctd2lw3r().s[20]++, {
2219
2219
  ...this._initOptions,
2220
2220
  defaultNS: defaultNamespace,
2221
2221
  ns: [...combinedNamespaces]
2222
2222
  });
2223
2223
  // if in a development environment, set debugging
2224
- cov_ogldeftyv().s[21]++;
2224
+ cov_1wctd2lw3r().s[21]++;
2225
2225
  if (false) {} else {
2226
- cov_ogldeftyv().b[9][1]++;
2226
+ cov_1wctd2lw3r().b[9][1]++;
2227
2227
  }
2228
- const initPromise = (cov_ogldeftyv().s[23]++, this.i18next.init(initOptions));
2229
- cov_ogldeftyv().s[24]++;
2228
+ const initPromise = (cov_1wctd2lw3r().s[23]++, this.i18next.init(initOptions));
2229
+ cov_1wctd2lw3r().s[24]++;
2230
2230
  for (const ns of namespaces) {
2231
- cov_ogldeftyv().s[25]++;
2231
+ cov_1wctd2lw3r().s[25]++;
2232
2232
  this._namespaces.set(ns, initPromise);
2233
2233
  }
2234
- cov_ogldeftyv().s[26]++;
2234
+ cov_1wctd2lw3r().s[26]++;
2235
2235
  return initPromise;
2236
2236
  }
2237
2237
  /** Replace all instances of `%{key}` within a string with the translations of those keys.
@@ -2251,11 +2251,11 @@ class ITwinLocalization {
2251
2251
  * @public
2252
2252
  */
2253
2253
  getLocalizedKeys(line) {
2254
- cov_ogldeftyv().f[3]++;
2255
- cov_ogldeftyv().s[27]++;
2254
+ cov_1wctd2lw3r().f[3]++;
2255
+ cov_1wctd2lw3r().s[27]++;
2256
2256
  return line.replace(/\%\{(.+?)\}/g, (_match, tag) => {
2257
- cov_ogldeftyv().f[4]++;
2258
- cov_ogldeftyv().s[28]++;
2257
+ cov_1wctd2lw3r().f[4]++;
2258
+ cov_1wctd2lw3r().s[28]++;
2259
2259
  return this.getLocalizedString(tag);
2260
2260
  });
2261
2261
  }
@@ -2273,25 +2273,25 @@ class ITwinLocalization {
2273
2273
  * @public
2274
2274
  */
2275
2275
  getLocalizedString(key, options) {
2276
- cov_ogldeftyv().f[5]++;
2277
- cov_ogldeftyv().s[29]++;
2278
- if ((cov_ogldeftyv().b[11][0]++, options?.returnDetails) || (cov_ogldeftyv().b[11][1]++, options?.returnObjects)) {
2279
- cov_ogldeftyv().b[10][0]++;
2280
- cov_ogldeftyv().s[30]++;
2276
+ cov_1wctd2lw3r().f[5]++;
2277
+ cov_1wctd2lw3r().s[29]++;
2278
+ if ((cov_1wctd2lw3r().b[11][0]++, options?.returnDetails) || (cov_1wctd2lw3r().b[11][1]++, options?.returnObjects)) {
2279
+ cov_1wctd2lw3r().b[10][0]++;
2280
+ cov_1wctd2lw3r().s[30]++;
2281
2281
  throw new Error("Translation key must map to a string, but the given options will result in an object");
2282
2282
  } else {
2283
- cov_ogldeftyv().b[10][1]++;
2283
+ cov_1wctd2lw3r().b[10][1]++;
2284
2284
  }
2285
- const value = (cov_ogldeftyv().s[31]++, this.i18next.t(key, options));
2286
- cov_ogldeftyv().s[32]++;
2285
+ const value = (cov_1wctd2lw3r().s[31]++, this.i18next.t(key, options));
2286
+ cov_1wctd2lw3r().s[32]++;
2287
2287
  if (typeof value !== "string") {
2288
- cov_ogldeftyv().b[12][0]++;
2289
- cov_ogldeftyv().s[33]++;
2288
+ cov_1wctd2lw3r().b[12][0]++;
2289
+ cov_1wctd2lw3r().s[33]++;
2290
2290
  throw new Error("Translation key(s) string not found");
2291
2291
  } else {
2292
- cov_ogldeftyv().b[12][1]++;
2292
+ cov_1wctd2lw3r().b[12][1]++;
2293
2293
  }
2294
- cov_ogldeftyv().s[34]++;
2294
+ cov_1wctd2lw3r().s[34]++;
2295
2295
  return value;
2296
2296
  }
2297
2297
  /** Gets the English translation.
@@ -2302,31 +2302,31 @@ class ITwinLocalization {
2302
2302
  * @internal
2303
2303
  */
2304
2304
  getEnglishString(namespace, key, options) {
2305
- cov_ogldeftyv().f[6]++;
2306
- cov_ogldeftyv().s[35]++;
2307
- if ((cov_ogldeftyv().b[14][0]++, options?.returnDetails) || (cov_ogldeftyv().b[14][1]++, options?.returnObjects)) {
2308
- cov_ogldeftyv().b[13][0]++;
2309
- cov_ogldeftyv().s[36]++;
2305
+ cov_1wctd2lw3r().f[6]++;
2306
+ cov_1wctd2lw3r().s[35]++;
2307
+ if ((cov_1wctd2lw3r().b[14][0]++, options?.returnDetails) || (cov_1wctd2lw3r().b[14][1]++, options?.returnObjects)) {
2308
+ cov_1wctd2lw3r().b[13][0]++;
2309
+ cov_1wctd2lw3r().s[36]++;
2310
2310
  throw new Error("Translation key must map to a string, but the given options will result in an object");
2311
2311
  } else {
2312
- cov_ogldeftyv().b[13][1]++;
2312
+ cov_1wctd2lw3r().b[13][1]++;
2313
2313
  }
2314
- cov_ogldeftyv().s[37]++;
2314
+ cov_1wctd2lw3r().s[37]++;
2315
2315
  options = {
2316
2316
  ...options,
2317
2317
  ns: namespace // ensure namespace argument is used
2318
2318
  };
2319
- const en = (cov_ogldeftyv().s[38]++, this.i18next.getFixedT("en", namespace));
2320
- const str = (cov_ogldeftyv().s[39]++, en(key, options));
2321
- cov_ogldeftyv().s[40]++;
2319
+ const en = (cov_1wctd2lw3r().s[38]++, this.i18next.getFixedT("en", namespace));
2320
+ const str = (cov_1wctd2lw3r().s[39]++, en(key, options));
2321
+ cov_1wctd2lw3r().s[40]++;
2322
2322
  if (typeof str !== "string") {
2323
- cov_ogldeftyv().b[15][0]++;
2324
- cov_ogldeftyv().s[41]++;
2323
+ cov_1wctd2lw3r().b[15][0]++;
2324
+ cov_1wctd2lw3r().s[41]++;
2325
2325
  throw new Error("Translation key(s) not found");
2326
2326
  } else {
2327
- cov_ogldeftyv().b[15][1]++;
2327
+ cov_1wctd2lw3r().b[15][1]++;
2328
2328
  }
2329
- cov_ogldeftyv().s[42]++;
2329
+ cov_1wctd2lw3r().s[42]++;
2330
2330
  return str;
2331
2331
  }
2332
2332
  /** Get the promise for an already registered Namespace.
@@ -2334,20 +2334,20 @@ class ITwinLocalization {
2334
2334
  * @public
2335
2335
  */
2336
2336
  getNamespacePromise(name) {
2337
- cov_ogldeftyv().f[7]++;
2338
- cov_ogldeftyv().s[43]++;
2337
+ cov_1wctd2lw3r().f[7]++;
2338
+ cov_1wctd2lw3r().s[43]++;
2339
2339
  return this._namespaces.get(name);
2340
2340
  }
2341
2341
  /** @internal */
2342
2342
  getLanguageList() {
2343
- cov_ogldeftyv().f[8]++;
2344
- cov_ogldeftyv().s[44]++;
2343
+ cov_1wctd2lw3r().f[8]++;
2344
+ cov_1wctd2lw3r().s[44]++;
2345
2345
  return this.i18next.languages;
2346
2346
  }
2347
2347
  /** override the language detected in the browser */
2348
2348
  async changeLanguage(language) {
2349
- cov_ogldeftyv().f[9]++;
2350
- cov_ogldeftyv().s[45]++;
2349
+ cov_1wctd2lw3r().f[9]++;
2350
+ cov_1wctd2lw3r().s[45]++;
2351
2351
  return this.i18next.changeLanguage(language);
2352
2352
  }
2353
2353
  /** Register a new Namespace and return it. If the namespace is already registered, it will be returned.
@@ -2359,120 +2359,120 @@ class ITwinLocalization {
2359
2359
  * @public
2360
2360
  */
2361
2361
  async registerNamespace(name) {
2362
- cov_ogldeftyv().f[10]++;
2363
- const existing = (cov_ogldeftyv().s[46]++, this._namespaces.get(name));
2364
- cov_ogldeftyv().s[47]++;
2362
+ cov_1wctd2lw3r().f[10]++;
2363
+ const existing = (cov_1wctd2lw3r().s[46]++, this._namespaces.get(name));
2364
+ cov_1wctd2lw3r().s[47]++;
2365
2365
  if (existing !== undefined) {
2366
- cov_ogldeftyv().b[16][0]++;
2367
- cov_ogldeftyv().s[48]++;
2366
+ cov_1wctd2lw3r().b[16][0]++;
2367
+ cov_1wctd2lw3r().s[48]++;
2368
2368
  return existing;
2369
2369
  } else {
2370
- cov_ogldeftyv().b[16][1]++;
2370
+ cov_1wctd2lw3r().b[16][1]++;
2371
2371
  }
2372
- const theReadPromise = (cov_ogldeftyv().s[49]++, new Promise(resolve => {
2373
- cov_ogldeftyv().f[11]++;
2374
- cov_ogldeftyv().s[50]++;
2372
+ const theReadPromise = (cov_1wctd2lw3r().s[49]++, new Promise(resolve => {
2373
+ cov_1wctd2lw3r().f[11]++;
2374
+ cov_1wctd2lw3r().s[50]++;
2375
2375
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
2376
2376
  this.i18next.loadNamespaces(name, err => {
2377
- cov_ogldeftyv().f[12]++;
2378
- cov_ogldeftyv().s[51]++;
2377
+ cov_1wctd2lw3r().f[12]++;
2378
+ cov_1wctd2lw3r().s[51]++;
2379
2379
  if (!err) {
2380
- cov_ogldeftyv().b[17][0]++;
2381
- cov_ogldeftyv().s[52]++;
2380
+ cov_1wctd2lw3r().b[17][0]++;
2381
+ cov_1wctd2lw3r().s[52]++;
2382
2382
  return resolve();
2383
2383
  } else {
2384
- cov_ogldeftyv().b[17][1]++;
2384
+ cov_1wctd2lw3r().b[17][1]++;
2385
2385
  }
2386
2386
  // Here we got a non-null err object.
2387
2387
  // This method is called when the system has attempted to load the resources for the namespaces for each possible locale.
2388
2388
  // For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.
2389
2389
  // Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.
2390
2390
  // 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.
2391
- let locales = (cov_ogldeftyv().s[53]++, this.getLanguageList().map(thisLocale => {
2392
- cov_ogldeftyv().f[13]++;
2393
- cov_ogldeftyv().s[54]++;
2391
+ let locales = (cov_1wctd2lw3r().s[53]++, this.getLanguageList().map(thisLocale => {
2392
+ cov_1wctd2lw3r().f[13]++;
2393
+ cov_1wctd2lw3r().s[54]++;
2394
2394
  return `/${thisLocale}/`;
2395
2395
  }));
2396
- cov_ogldeftyv().s[55]++;
2396
+ cov_1wctd2lw3r().s[55]++;
2397
2397
  try {
2398
- cov_ogldeftyv().s[56]++;
2398
+ cov_1wctd2lw3r().s[56]++;
2399
2399
  for (const thisError of err) {
2400
- cov_ogldeftyv().s[57]++;
2400
+ cov_1wctd2lw3r().s[57]++;
2401
2401
  if (typeof thisError === "string") {
2402
- cov_ogldeftyv().b[18][0]++;
2403
- cov_ogldeftyv().s[58]++;
2402
+ cov_1wctd2lw3r().b[18][0]++;
2403
+ cov_1wctd2lw3r().s[58]++;
2404
2404
  locales = locales.filter(thisLocale => {
2405
- cov_ogldeftyv().f[14]++;
2406
- cov_ogldeftyv().s[59]++;
2405
+ cov_1wctd2lw3r().f[14]++;
2406
+ cov_1wctd2lw3r().s[59]++;
2407
2407
  return !thisError.includes(thisLocale);
2408
2408
  });
2409
2409
  } else {
2410
- cov_ogldeftyv().b[18][1]++;
2410
+ cov_1wctd2lw3r().b[18][1]++;
2411
2411
  }
2412
2412
  }
2413
2413
  } catch {
2414
- cov_ogldeftyv().s[60]++;
2414
+ cov_1wctd2lw3r().s[60]++;
2415
2415
  locales = [];
2416
2416
  }
2417
2417
  // if we removed every locale from the array, it wasn't loaded.
2418
- cov_ogldeftyv().s[61]++;
2418
+ cov_1wctd2lw3r().s[61]++;
2419
2419
  if (locales.length === 0) {
2420
- cov_ogldeftyv().b[19][0]++;
2421
- cov_ogldeftyv().s[62]++;
2420
+ cov_1wctd2lw3r().b[19][0]++;
2421
+ cov_1wctd2lw3r().s[62]++;
2422
2422
  core_bentley_1.Logger.logError("i18n", `No resources for namespace ${name} could be loaded`);
2423
2423
  } else {
2424
- cov_ogldeftyv().b[19][1]++;
2424
+ cov_1wctd2lw3r().b[19][1]++;
2425
2425
  }
2426
- cov_ogldeftyv().s[63]++;
2426
+ cov_1wctd2lw3r().s[63]++;
2427
2427
  resolve();
2428
2428
  });
2429
2429
  }));
2430
- cov_ogldeftyv().s[64]++;
2430
+ cov_1wctd2lw3r().s[64]++;
2431
2431
  this._namespaces.set(name, theReadPromise);
2432
- cov_ogldeftyv().s[65]++;
2432
+ cov_1wctd2lw3r().s[65]++;
2433
2433
  return theReadPromise;
2434
2434
  }
2435
2435
  /** @internal */
2436
2436
  unregisterNamespace(name) {
2437
- cov_ogldeftyv().f[15]++;
2438
- cov_ogldeftyv().s[66]++;
2437
+ cov_1wctd2lw3r().f[15]++;
2438
+ cov_1wctd2lw3r().s[66]++;
2439
2439
  this._namespaces.delete(name);
2440
2440
  }
2441
2441
  }
2442
- cov_ogldeftyv().s[67]++;
2442
+ cov_1wctd2lw3r().s[67]++;
2443
2443
  exports.ITwinLocalization = ITwinLocalization;
2444
2444
  class TranslationLogger {
2445
- static type = (cov_ogldeftyv().s[68]++, "logger");
2445
+ static type = (cov_1wctd2lw3r().s[68]++, "logger");
2446
2446
  log(args) {
2447
- cov_ogldeftyv().f[16]++;
2448
- cov_ogldeftyv().s[69]++;
2447
+ cov_1wctd2lw3r().f[16]++;
2448
+ cov_1wctd2lw3r().s[69]++;
2449
2449
  core_bentley_1.Logger.logInfo("i18n", this.createLogMessage(args));
2450
2450
  }
2451
2451
  warn(args) {
2452
- cov_ogldeftyv().f[17]++;
2453
- cov_ogldeftyv().s[70]++;
2452
+ cov_1wctd2lw3r().f[17]++;
2453
+ cov_1wctd2lw3r().s[70]++;
2454
2454
  core_bentley_1.Logger.logWarning("i18n", this.createLogMessage(args));
2455
2455
  }
2456
2456
  error(args) {
2457
- cov_ogldeftyv().f[18]++;
2458
- cov_ogldeftyv().s[71]++;
2457
+ cov_1wctd2lw3r().f[18]++;
2458
+ cov_1wctd2lw3r().s[71]++;
2459
2459
  core_bentley_1.Logger.logError("i18n", this.createLogMessage(args));
2460
2460
  }
2461
2461
  createLogMessage(args) {
2462
- cov_ogldeftyv().f[19]++;
2463
- let message = (cov_ogldeftyv().s[72]++, args[0]);
2464
- cov_ogldeftyv().s[73]++;
2465
- for (let i = (cov_ogldeftyv().s[74]++, 1); i < args.length; ++i) {
2466
- cov_ogldeftyv().s[75]++;
2462
+ cov_1wctd2lw3r().f[19]++;
2463
+ let message = (cov_1wctd2lw3r().s[72]++, args[0]);
2464
+ cov_1wctd2lw3r().s[73]++;
2465
+ for (let i = (cov_1wctd2lw3r().s[74]++, 1); i < args.length; ++i) {
2466
+ cov_1wctd2lw3r().s[75]++;
2467
2467
  if (typeof args[i] === "string") {
2468
- cov_ogldeftyv().b[20][0]++;
2469
- cov_ogldeftyv().s[76]++;
2468
+ cov_1wctd2lw3r().b[20][0]++;
2469
+ cov_1wctd2lw3r().s[76]++;
2470
2470
  message += `\n ${args[i]}`;
2471
2471
  } else {
2472
- cov_ogldeftyv().b[20][1]++;
2472
+ cov_1wctd2lw3r().b[20][1]++;
2473
2473
  }
2474
2474
  }
2475
- cov_ogldeftyv().s[77]++;
2475
+ cov_1wctd2lw3r().s[77]++;
2476
2476
  return message;
2477
2477
  }
2478
2478
  }
@@ -12729,8 +12729,8 @@ __webpack_require__.r(__webpack_exports__);
12729
12729
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12730
12730
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
12731
12731
  /* harmony export */ });
12732
- /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
12733
- /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/createClass.js");
12732
+ /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
12733
+ /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/createClass.js");
12734
12734
 
12735
12735
 
12736
12736
 
@@ -13158,15 +13158,15 @@ Browser.type = 'languageDetector';
13158
13158
  "use strict";
13159
13159
 
13160
13160
 
13161
- var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/typeof.js");
13162
- var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/classCallCheck.js");
13163
- var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/createClass.js");
13164
- var _assertThisInitialized = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
13165
- var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/inherits.js");
13166
- var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js");
13167
- var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/getPrototypeOf.js");
13168
- var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/defineProperty.js");
13169
- var _toArray = __webpack_require__(/*! @babel/runtime/helpers/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/toArray.js");
13161
+ var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/typeof.js");
13162
+ var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/classCallCheck.js");
13163
+ var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/createClass.js");
13164
+ var _assertThisInitialized = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
13165
+ var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/inherits.js");
13166
+ var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js");
13167
+ var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/getPrototypeOf.js");
13168
+ var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/defineProperty.js");
13169
+ var _toArray = __webpack_require__(/*! @babel/runtime/helpers/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/toArray.js");
13170
13170
 
13171
13171
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13172
13172
 
@@ -24308,10 +24308,10 @@ function partitionArray(array, criterion) {
24308
24308
 
24309
24309
  /***/ }),
24310
24310
 
24311
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
24312
- /*!***************************************************************************************************************************!*\
24313
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
24314
- \***************************************************************************************************************************/
24311
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
24312
+ /*!**************************************************************************************************************************!*\
24313
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
24314
+ \**************************************************************************************************************************/
24315
24315
  /***/ ((module) => {
24316
24316
 
24317
24317
  function _arrayLikeToArray(r, a) {
@@ -24323,10 +24323,10 @@ module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exp
24323
24323
 
24324
24324
  /***/ }),
24325
24325
 
24326
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/arrayWithHoles.js":
24327
- /*!*************************************************************************************************************************!*\
24328
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
24329
- \*************************************************************************************************************************/
24326
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/arrayWithHoles.js":
24327
+ /*!************************************************************************************************************************!*\
24328
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
24329
+ \************************************************************************************************************************/
24330
24330
  /***/ ((module) => {
24331
24331
 
24332
24332
  function _arrayWithHoles(r) {
@@ -24336,10 +24336,10 @@ module.exports = _arrayWithHoles, module.exports.__esModule = true, module.expor
24336
24336
 
24337
24337
  /***/ }),
24338
24338
 
24339
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/assertThisInitialized.js":
24340
- /*!********************************************************************************************************************************!*\
24341
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
24342
- \********************************************************************************************************************************/
24339
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/assertThisInitialized.js":
24340
+ /*!*******************************************************************************************************************************!*\
24341
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
24342
+ \*******************************************************************************************************************************/
24343
24343
  /***/ ((module) => {
24344
24344
 
24345
24345
  function _assertThisInitialized(e) {
@@ -24350,10 +24350,10 @@ module.exports = _assertThisInitialized, module.exports.__esModule = true, modul
24350
24350
 
24351
24351
  /***/ }),
24352
24352
 
24353
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/classCallCheck.js":
24354
- /*!*************************************************************************************************************************!*\
24355
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/classCallCheck.js ***!
24356
- \*************************************************************************************************************************/
24353
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/classCallCheck.js":
24354
+ /*!************************************************************************************************************************!*\
24355
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/classCallCheck.js ***!
24356
+ \************************************************************************************************************************/
24357
24357
  /***/ ((module) => {
24358
24358
 
24359
24359
  function _classCallCheck(a, n) {
@@ -24363,13 +24363,13 @@ module.exports = _classCallCheck, module.exports.__esModule = true, module.expor
24363
24363
 
24364
24364
  /***/ }),
24365
24365
 
24366
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/createClass.js":
24367
- /*!**********************************************************************************************************************!*\
24368
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/createClass.js ***!
24369
- \**********************************************************************************************************************/
24366
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/createClass.js":
24367
+ /*!*********************************************************************************************************************!*\
24368
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/createClass.js ***!
24369
+ \*********************************************************************************************************************/
24370
24370
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
24371
24371
 
24372
- var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/toPropertyKey.js");
24372
+ var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/toPropertyKey.js");
24373
24373
  function _defineProperties(e, r) {
24374
24374
  for (var t = 0; t < r.length; t++) {
24375
24375
  var o = r[t];
@@ -24385,13 +24385,13 @@ module.exports = _createClass, module.exports.__esModule = true, module.exports[
24385
24385
 
24386
24386
  /***/ }),
24387
24387
 
24388
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/defineProperty.js":
24389
- /*!*************************************************************************************************************************!*\
24390
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/defineProperty.js ***!
24391
- \*************************************************************************************************************************/
24388
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/defineProperty.js":
24389
+ /*!************************************************************************************************************************!*\
24390
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/defineProperty.js ***!
24391
+ \************************************************************************************************************************/
24392
24392
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
24393
24393
 
24394
- var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/toPropertyKey.js");
24394
+ var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/toPropertyKey.js");
24395
24395
  function _defineProperty(e, r, t) {
24396
24396
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
24397
24397
  value: t,
@@ -24404,10 +24404,10 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
24404
24404
 
24405
24405
  /***/ }),
24406
24406
 
24407
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/getPrototypeOf.js":
24408
- /*!*************************************************************************************************************************!*\
24409
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
24410
- \*************************************************************************************************************************/
24407
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/getPrototypeOf.js":
24408
+ /*!************************************************************************************************************************!*\
24409
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
24410
+ \************************************************************************************************************************/
24411
24411
  /***/ ((module) => {
24412
24412
 
24413
24413
  function _getPrototypeOf(t) {
@@ -24419,13 +24419,13 @@ module.exports = _getPrototypeOf, module.exports.__esModule = true, module.expor
24419
24419
 
24420
24420
  /***/ }),
24421
24421
 
24422
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/inherits.js":
24423
- /*!*******************************************************************************************************************!*\
24424
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/inherits.js ***!
24425
- \*******************************************************************************************************************/
24422
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/inherits.js":
24423
+ /*!******************************************************************************************************************!*\
24424
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/inherits.js ***!
24425
+ \******************************************************************************************************************/
24426
24426
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
24427
24427
 
24428
- var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/setPrototypeOf.js");
24428
+ var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/setPrototypeOf.js");
24429
24429
  function _inherits(t, e) {
24430
24430
  if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
24431
24431
  t.prototype = Object.create(e && e.prototype, {
@@ -24442,10 +24442,10 @@ module.exports = _inherits, module.exports.__esModule = true, module.exports["de
24442
24442
 
24443
24443
  /***/ }),
24444
24444
 
24445
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/iterableToArray.js":
24446
- /*!**************************************************************************************************************************!*\
24447
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/iterableToArray.js ***!
24448
- \**************************************************************************************************************************/
24445
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/iterableToArray.js":
24446
+ /*!*************************************************************************************************************************!*\
24447
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/iterableToArray.js ***!
24448
+ \*************************************************************************************************************************/
24449
24449
  /***/ ((module) => {
24450
24450
 
24451
24451
  function _iterableToArray(r) {
@@ -24455,10 +24455,10 @@ module.exports = _iterableToArray, module.exports.__esModule = true, module.expo
24455
24455
 
24456
24456
  /***/ }),
24457
24457
 
24458
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/nonIterableRest.js":
24459
- /*!**************************************************************************************************************************!*\
24460
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
24461
- \**************************************************************************************************************************/
24458
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/nonIterableRest.js":
24459
+ /*!*************************************************************************************************************************!*\
24460
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
24461
+ \*************************************************************************************************************************/
24462
24462
  /***/ ((module) => {
24463
24463
 
24464
24464
  function _nonIterableRest() {
@@ -24468,14 +24468,14 @@ module.exports = _nonIterableRest, module.exports.__esModule = true, module.expo
24468
24468
 
24469
24469
  /***/ }),
24470
24470
 
24471
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
24472
- /*!************************************************************************************************************************************!*\
24473
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
24474
- \************************************************************************************************************************************/
24471
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
24472
+ /*!***********************************************************************************************************************************!*\
24473
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
24474
+ \***********************************************************************************************************************************/
24475
24475
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
24476
24476
 
24477
- var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
24478
- var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
24477
+ var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
24478
+ var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
24479
24479
  function _possibleConstructorReturn(t, e) {
24480
24480
  if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
24481
24481
  if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
@@ -24485,10 +24485,10 @@ module.exports = _possibleConstructorReturn, module.exports.__esModule = true, m
24485
24485
 
24486
24486
  /***/ }),
24487
24487
 
24488
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/setPrototypeOf.js":
24489
- /*!*************************************************************************************************************************!*\
24490
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
24491
- \*************************************************************************************************************************/
24488
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/setPrototypeOf.js":
24489
+ /*!************************************************************************************************************************!*\
24490
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
24491
+ \************************************************************************************************************************/
24492
24492
  /***/ ((module) => {
24493
24493
 
24494
24494
  function _setPrototypeOf(t, e) {
@@ -24500,16 +24500,16 @@ module.exports = _setPrototypeOf, module.exports.__esModule = true, module.expor
24500
24500
 
24501
24501
  /***/ }),
24502
24502
 
24503
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/toArray.js":
24504
- /*!******************************************************************************************************************!*\
24505
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/toArray.js ***!
24506
- \******************************************************************************************************************/
24503
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/toArray.js":
24504
+ /*!*****************************************************************************************************************!*\
24505
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/toArray.js ***!
24506
+ \*****************************************************************************************************************/
24507
24507
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
24508
24508
 
24509
- var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/arrayWithHoles.js");
24510
- var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/iterableToArray.js");
24511
- var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
24512
- var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/nonIterableRest.js");
24509
+ var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/arrayWithHoles.js");
24510
+ var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/iterableToArray.js");
24511
+ var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
24512
+ var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/nonIterableRest.js");
24513
24513
  function _toArray(r) {
24514
24514
  return arrayWithHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableRest();
24515
24515
  }
@@ -24517,13 +24517,13 @@ module.exports = _toArray, module.exports.__esModule = true, module.exports["def
24517
24517
 
24518
24518
  /***/ }),
24519
24519
 
24520
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/toPrimitive.js":
24521
- /*!**********************************************************************************************************************!*\
24522
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/toPrimitive.js ***!
24523
- \**********************************************************************************************************************/
24520
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/toPrimitive.js":
24521
+ /*!*********************************************************************************************************************!*\
24522
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/toPrimitive.js ***!
24523
+ \*********************************************************************************************************************/
24524
24524
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
24525
24525
 
24526
- var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
24526
+ var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
24527
24527
  function toPrimitive(t, r) {
24528
24528
  if ("object" != _typeof(t) || !t) return t;
24529
24529
  var e = t[Symbol.toPrimitive];
@@ -24538,14 +24538,14 @@ module.exports = toPrimitive, module.exports.__esModule = true, module.exports["
24538
24538
 
24539
24539
  /***/ }),
24540
24540
 
24541
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/toPropertyKey.js":
24542
- /*!************************************************************************************************************************!*\
24543
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
24544
- \************************************************************************************************************************/
24541
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/toPropertyKey.js":
24542
+ /*!***********************************************************************************************************************!*\
24543
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
24544
+ \***********************************************************************************************************************/
24545
24545
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
24546
24546
 
24547
- var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
24548
- var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/toPrimitive.js");
24547
+ var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
24548
+ var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/toPrimitive.js");
24549
24549
  function toPropertyKey(t) {
24550
24550
  var i = toPrimitive(t, "string");
24551
24551
  return "symbol" == _typeof(i) ? i : i + "";
@@ -24554,10 +24554,10 @@ module.exports = toPropertyKey, module.exports.__esModule = true, module.exports
24554
24554
 
24555
24555
  /***/ }),
24556
24556
 
24557
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/typeof.js":
24558
- /*!*****************************************************************************************************************!*\
24559
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/typeof.js ***!
24560
- \*****************************************************************************************************************/
24557
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/typeof.js":
24558
+ /*!****************************************************************************************************************!*\
24559
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/typeof.js ***!
24560
+ \****************************************************************************************************************/
24561
24561
  /***/ ((module) => {
24562
24562
 
24563
24563
  function _typeof(o) {
@@ -24573,13 +24573,13 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
24573
24573
 
24574
24574
  /***/ }),
24575
24575
 
24576
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
24577
- /*!*************************************************************************************************************************************!*\
24578
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
24579
- \*************************************************************************************************************************************/
24576
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
24577
+ /*!************************************************************************************************************************************!*\
24578
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
24579
+ \************************************************************************************************************************************/
24580
24580
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
24581
24581
 
24582
- var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
24582
+ var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
24583
24583
  function _unsupportedIterableToArray(r, a) {
24584
24584
  if (r) {
24585
24585
  if ("string" == typeof r) return arrayLikeToArray(r, a);
@@ -24591,10 +24591,10 @@ module.exports = _unsupportedIterableToArray, module.exports.__esModule = true,
24591
24591
 
24592
24592
  /***/ }),
24593
24593
 
24594
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
24595
- /*!*****************************************************************************************************************************!*\
24596
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
24597
- \*****************************************************************************************************************************/
24594
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
24595
+ /*!****************************************************************************************************************************!*\
24596
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
24597
+ \****************************************************************************************************************************/
24598
24598
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
24599
24599
 
24600
24600
  "use strict";
@@ -24609,10 +24609,10 @@ function _classCallCheck(a, n) {
24609
24609
 
24610
24610
  /***/ }),
24611
24611
 
24612
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/createClass.js":
24613
- /*!**************************************************************************************************************************!*\
24614
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
24615
- \**************************************************************************************************************************/
24612
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/createClass.js":
24613
+ /*!*************************************************************************************************************************!*\
24614
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
24615
+ \*************************************************************************************************************************/
24616
24616
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
24617
24617
 
24618
24618
  "use strict";
@@ -24620,7 +24620,7 @@ __webpack_require__.r(__webpack_exports__);
24620
24620
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24621
24621
  /* harmony export */ "default": () => (/* binding */ _createClass)
24622
24622
  /* harmony export */ });
24623
- /* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
24623
+ /* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
24624
24624
 
24625
24625
  function _defineProperties(e, r) {
24626
24626
  for (var t = 0; t < r.length; t++) {
@@ -24637,10 +24637,10 @@ function _createClass(e, r, t) {
24637
24637
 
24638
24638
  /***/ }),
24639
24639
 
24640
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
24641
- /*!**************************************************************************************************************************!*\
24642
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
24643
- \**************************************************************************************************************************/
24640
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
24641
+ /*!*************************************************************************************************************************!*\
24642
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
24643
+ \*************************************************************************************************************************/
24644
24644
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
24645
24645
 
24646
24646
  "use strict";
@@ -24648,7 +24648,7 @@ __webpack_require__.r(__webpack_exports__);
24648
24648
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24649
24649
  /* harmony export */ "default": () => (/* binding */ toPrimitive)
24650
24650
  /* harmony export */ });
24651
- /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/typeof.js");
24651
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.js");
24652
24652
 
24653
24653
  function toPrimitive(t, r) {
24654
24654
  if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
@@ -24664,10 +24664,10 @@ function toPrimitive(t, r) {
24664
24664
 
24665
24665
  /***/ }),
24666
24666
 
24667
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
24668
- /*!****************************************************************************************************************************!*\
24669
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
24670
- \****************************************************************************************************************************/
24667
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
24668
+ /*!***************************************************************************************************************************!*\
24669
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
24670
+ \***************************************************************************************************************************/
24671
24671
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
24672
24672
 
24673
24673
  "use strict";
@@ -24675,8 +24675,8 @@ __webpack_require__.r(__webpack_exports__);
24675
24675
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24676
24676
  /* harmony export */ "default": () => (/* binding */ toPropertyKey)
24677
24677
  /* harmony export */ });
24678
- /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/typeof.js");
24679
- /* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
24678
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.js");
24679
+ /* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
24680
24680
 
24681
24681
 
24682
24682
  function toPropertyKey(t) {
@@ -24687,10 +24687,10 @@ function toPropertyKey(t) {
24687
24687
 
24688
24688
  /***/ }),
24689
24689
 
24690
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/typeof.js":
24691
- /*!*********************************************************************************************************************!*\
24692
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
24693
- \*********************************************************************************************************************/
24690
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.js":
24691
+ /*!********************************************************************************************************************!*\
24692
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
24693
+ \********************************************************************************************************************/
24694
24694
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
24695
24695
 
24696
24696
  "use strict";