@itwin/core-i18n 4.6.0-dev.8 → 4.7.0-dev.0
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.
- package/CHANGELOG.md +11 -1
- package/lib/cjs/ITwinLocalization.js.map +1 -1
- package/lib/cjs/test/webpack/bundled-tests.instrumented.js +219 -222
- package/lib/cjs/test/webpack/bundled-tests.instrumented.js.map +1 -1
- package/lib/cjs/test/webpack/bundled-tests.js +77 -80
- package/lib/cjs/test/webpack/bundled-tests.js.map +1 -1
- package/lib/esm/ITwinLocalization.js.map +1 -1
- package/package.json +9 -9
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
/** @packageDocumentation
|
|
18
18
|
* @module Localization
|
|
19
19
|
*/
|
|
20
|
-
function
|
|
21
|
-
var path = "
|
|
22
|
-
var hash = "
|
|
20
|
+
function cov_2kc96ceomr() {
|
|
21
|
+
var path = "E:\\vsts_b\\65\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js";
|
|
22
|
+
var hash = "c85727b1bf7cde88fe7342da223d51126d59fae1";
|
|
23
23
|
var global = new Function("return this")();
|
|
24
24
|
var gcv = "__coverage__";
|
|
25
25
|
var coverageData = {
|
|
26
|
-
path: "
|
|
26
|
+
path: "E:\\vsts_b\\65\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js",
|
|
27
27
|
statementMap: {
|
|
28
28
|
"0": {
|
|
29
29
|
start: {
|
|
@@ -2270,13 +2270,13 @@ function cov_2awov3utze() {
|
|
|
2270
2270
|
inputSourceMap: {
|
|
2271
2271
|
version: 3,
|
|
2272
2272
|
file: "ITwinLocalization.js",
|
|
2273
|
-
sources: ["
|
|
2273
|
+
sources: ["E:\\vsts_b\\65\\s\\core\\i18n\\src\\ITwinLocalization.ts"],
|
|
2274
2274
|
names: [],
|
|
2275
|
-
mappings: ";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;AAEH,sDAA2E;AAC3E,wGAAmG;AACnG,gFAA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AA8B,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,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;;AAXsB,sBAAI,GAAG,QAAQ,CAAC",
|
|
2276
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"]
|
|
2277
2277
|
},
|
|
2278
2278
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
2279
|
-
hash: "
|
|
2279
|
+
hash: "c85727b1bf7cde88fe7342da223d51126d59fae1"
|
|
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_2awov3utze() {
|
|
|
2285
2285
|
var actualCoverage = coverage[path];
|
|
2286
2286
|
{
|
|
2287
2287
|
// @ts-ignore
|
|
2288
|
-
|
|
2288
|
+
cov_2kc96ceomr = function () {
|
|
2289
2289
|
return actualCoverage;
|
|
2290
2290
|
};
|
|
2291
2291
|
}
|
|
2292
2292
|
return actualCoverage;
|
|
2293
2293
|
}
|
|
2294
|
-
|
|
2295
|
-
var __importDefault = (
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
return (
|
|
2294
|
+
cov_2kc96ceomr();
|
|
2295
|
+
var __importDefault = (cov_2kc96ceomr().s[0]++, (cov_2kc96ceomr().b[0][0]++, this) && (cov_2kc96ceomr().b[0][1]++, this.__importDefault) || (cov_2kc96ceomr().b[0][2]++, function (mod) {
|
|
2296
|
+
cov_2kc96ceomr().f[0]++;
|
|
2297
|
+
cov_2kc96ceomr().s[1]++;
|
|
2298
|
+
return (cov_2kc96ceomr().b[2][0]++, mod) && (cov_2kc96ceomr().b[2][1]++, mod.__esModule) ? (cov_2kc96ceomr().b[1][0]++, mod) : (cov_2kc96ceomr().b[1][1]++, {
|
|
2299
2299
|
"default": mod
|
|
2300
2300
|
});
|
|
2301
2301
|
}));
|
|
2302
|
-
|
|
2302
|
+
cov_2kc96ceomr().s[2]++;
|
|
2303
2303
|
Object.defineProperty(exports, "__esModule", ({
|
|
2304
2304
|
value: true
|
|
2305
2305
|
}));
|
|
2306
|
-
|
|
2306
|
+
cov_2kc96ceomr().s[3]++;
|
|
2307
2307
|
exports.ITwinLocalization = void 0;
|
|
2308
|
-
const i18next_1 = (
|
|
2309
|
-
const i18next_browser_languagedetector_1 = (
|
|
2310
|
-
const i18next_http_backend_1 = (
|
|
2311
|
-
const core_bentley_1 = (
|
|
2312
|
-
const DEFAULT_MAX_RETRIES = (
|
|
2308
|
+
const i18next_1 = (cov_2kc96ceomr().s[4]++, __importDefault(__webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.1/node_modules/i18next/dist/cjs/i18next.js")));
|
|
2309
|
+
const i18next_browser_languagedetector_1 = (cov_2kc96ceomr().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")));
|
|
2310
|
+
const i18next_http_backend_1 = (cov_2kc96ceomr().s[6]++, __importDefault(__webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/index.js")));
|
|
2311
|
+
const core_bentley_1 = (cov_2kc96ceomr().s[7]++, __webpack_require__(/*! @itwin/core-bentley */ "../bentley/lib/esm/core-bentley.js"));
|
|
2312
|
+
const DEFAULT_MAX_RETRIES = (cov_2kc96ceomr().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
|
-
|
|
2320
|
-
|
|
2319
|
+
cov_2kc96ceomr().f[1]++;
|
|
2320
|
+
cov_2kc96ceomr().s[9]++;
|
|
2321
2321
|
this._namespaces = new Map();
|
|
2322
|
-
|
|
2322
|
+
cov_2kc96ceomr().s[10]++;
|
|
2323
2323
|
this.i18next = i18next_1.default.createInstance();
|
|
2324
|
-
|
|
2324
|
+
cov_2kc96ceomr().s[11]++;
|
|
2325
2325
|
this._backendOptions = {
|
|
2326
|
-
loadPath: (
|
|
2326
|
+
loadPath: (cov_2kc96ceomr().b[3][0]++, options?.urlTemplate) ?? (cov_2kc96ceomr().b[3][1]++, "locales/{{lng}}/{{ns}}.json"),
|
|
2327
2327
|
crossDomain: true,
|
|
2328
2328
|
...options?.backendHttpOptions
|
|
2329
2329
|
};
|
|
2330
|
-
|
|
2330
|
+
cov_2kc96ceomr().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
|
-
|
|
2337
|
+
cov_2kc96ceomr().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
|
-
|
|
2349
|
-
this.i18next.use((
|
|
2348
|
+
cov_2kc96ceomr().s[14]++;
|
|
2349
|
+
this.i18next.use((cov_2kc96ceomr().b[4][0]++, options?.detectorPlugin) ?? (cov_2kc96ceomr().b[4][1]++, i18next_browser_languagedetector_1.default)).use((cov_2kc96ceomr().b[5][0]++, options?.backendPlugin) ?? (cov_2kc96ceomr().b[5][1]++, i18next_http_backend_1.default)).use(TranslationLogger);
|
|
2350
2350
|
}
|
|
2351
2351
|
async initialize(namespaces) {
|
|
2352
|
-
|
|
2352
|
+
cov_2kc96ceomr().f[2]++;
|
|
2353
2353
|
// Also consider namespaces passed into constructor
|
|
2354
|
-
const initNamespaces = (
|
|
2355
|
-
const combinedNamespaces = (
|
|
2356
|
-
const defaultNamespace = (
|
|
2357
|
-
|
|
2354
|
+
const initNamespaces = (cov_2kc96ceomr().s[15]++, [(cov_2kc96ceomr().b[6][0]++, this._initOptions.ns) || (cov_2kc96ceomr().b[6][1]++, [])].flat());
|
|
2355
|
+
const combinedNamespaces = (cov_2kc96ceomr().s[16]++, new Set([...namespaces, ...initNamespaces])); // without duplicates
|
|
2356
|
+
const defaultNamespace = (cov_2kc96ceomr().s[17]++, (cov_2kc96ceomr().b[7][0]++, this._initOptions.defaultNS) ?? (cov_2kc96ceomr().b[7][1]++, namespaces[0]));
|
|
2357
|
+
cov_2kc96ceomr().s[18]++;
|
|
2358
2358
|
if (defaultNamespace) {
|
|
2359
|
-
|
|
2360
|
-
|
|
2359
|
+
cov_2kc96ceomr().b[8][0]++;
|
|
2360
|
+
cov_2kc96ceomr().s[19]++;
|
|
2361
2361
|
combinedNamespaces.add(defaultNamespace);
|
|
2362
2362
|
} else {
|
|
2363
|
-
|
|
2363
|
+
cov_2kc96ceomr().b[8][1]++;
|
|
2364
2364
|
} // Make sure default namespace is in namespaces list
|
|
2365
|
-
const initOptions = (
|
|
2365
|
+
const initOptions = (cov_2kc96ceomr().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
|
-
|
|
2371
|
+
cov_2kc96ceomr().s[21]++;
|
|
2372
2372
|
if (false) {} else {
|
|
2373
|
-
|
|
2373
|
+
cov_2kc96ceomr().b[9][1]++;
|
|
2374
2374
|
}
|
|
2375
|
-
const initPromise = (
|
|
2376
|
-
|
|
2375
|
+
const initPromise = (cov_2kc96ceomr().s[23]++, this.i18next.init(initOptions));
|
|
2376
|
+
cov_2kc96ceomr().s[24]++;
|
|
2377
2377
|
for (const ns of namespaces) {
|
|
2378
|
-
|
|
2378
|
+
cov_2kc96ceomr().s[25]++;
|
|
2379
2379
|
this._namespaces.set(ns, initPromise);
|
|
2380
2380
|
}
|
|
2381
|
-
|
|
2381
|
+
cov_2kc96ceomr().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
|
-
|
|
2402
|
-
|
|
2401
|
+
cov_2kc96ceomr().f[3]++;
|
|
2402
|
+
cov_2kc96ceomr().s[27]++;
|
|
2403
2403
|
return line.replace(/\%\{(.+?)\}/g, (_match, tag) => {
|
|
2404
|
-
|
|
2405
|
-
|
|
2404
|
+
cov_2kc96ceomr().f[4]++;
|
|
2405
|
+
cov_2kc96ceomr().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
|
-
|
|
2424
|
-
|
|
2425
|
-
if ((
|
|
2426
|
-
|
|
2427
|
-
|
|
2423
|
+
cov_2kc96ceomr().f[5]++;
|
|
2424
|
+
cov_2kc96ceomr().s[29]++;
|
|
2425
|
+
if ((cov_2kc96ceomr().b[11][0]++, options?.returnDetails) || (cov_2kc96ceomr().b[11][1]++, options?.returnObjects)) {
|
|
2426
|
+
cov_2kc96ceomr().b[10][0]++;
|
|
2427
|
+
cov_2kc96ceomr().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
|
-
|
|
2430
|
+
cov_2kc96ceomr().b[10][1]++;
|
|
2431
2431
|
}
|
|
2432
|
-
const value = (
|
|
2433
|
-
|
|
2432
|
+
const value = (cov_2kc96ceomr().s[31]++, this.i18next.t(key, options));
|
|
2433
|
+
cov_2kc96ceomr().s[32]++;
|
|
2434
2434
|
if (typeof value !== "string") {
|
|
2435
|
-
|
|
2436
|
-
|
|
2435
|
+
cov_2kc96ceomr().b[12][0]++;
|
|
2436
|
+
cov_2kc96ceomr().s[33]++;
|
|
2437
2437
|
throw new Error("Translation key(s) string not found");
|
|
2438
2438
|
} else {
|
|
2439
|
-
|
|
2439
|
+
cov_2kc96ceomr().b[12][1]++;
|
|
2440
2440
|
}
|
|
2441
|
-
|
|
2441
|
+
cov_2kc96ceomr().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
|
-
|
|
2454
|
-
let fullKey = (
|
|
2455
|
-
|
|
2453
|
+
cov_2kc96ceomr().f[6]++;
|
|
2454
|
+
let fullKey = (cov_2kc96ceomr().s[35]++, "");
|
|
2455
|
+
cov_2kc96ceomr().s[36]++;
|
|
2456
2456
|
if (typeof key === "string") {
|
|
2457
|
-
|
|
2458
|
-
|
|
2457
|
+
cov_2kc96ceomr().b[13][0]++;
|
|
2458
|
+
cov_2kc96ceomr().s[37]++;
|
|
2459
2459
|
fullKey = `${namespace}:${key}`;
|
|
2460
2460
|
} else {
|
|
2461
|
-
|
|
2462
|
-
|
|
2461
|
+
cov_2kc96ceomr().b[13][1]++;
|
|
2462
|
+
cov_2kc96ceomr().s[38]++;
|
|
2463
2463
|
fullKey = key.map(subKey => {
|
|
2464
|
-
|
|
2465
|
-
|
|
2464
|
+
cov_2kc96ceomr().f[7]++;
|
|
2465
|
+
cov_2kc96ceomr().s[39]++;
|
|
2466
2466
|
return `${namespace}:${subKey}`;
|
|
2467
2467
|
});
|
|
2468
2468
|
}
|
|
2469
|
-
|
|
2469
|
+
cov_2kc96ceomr().s[40]++;
|
|
2470
2470
|
return this.getLocalizedString(fullKey, options);
|
|
2471
2471
|
}
|
|
2472
2472
|
/** Gets the English translation.
|
|
@@ -2477,31 +2477,31 @@ class ITwinLocalization {
|
|
|
2477
2477
|
* @internal
|
|
2478
2478
|
*/
|
|
2479
2479
|
getEnglishString(namespace, key, options) {
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
if ((
|
|
2483
|
-
|
|
2484
|
-
|
|
2480
|
+
cov_2kc96ceomr().f[8]++;
|
|
2481
|
+
cov_2kc96ceomr().s[41]++;
|
|
2482
|
+
if ((cov_2kc96ceomr().b[15][0]++, options?.returnDetails) || (cov_2kc96ceomr().b[15][1]++, options?.returnObjects)) {
|
|
2483
|
+
cov_2kc96ceomr().b[14][0]++;
|
|
2484
|
+
cov_2kc96ceomr().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
|
-
|
|
2487
|
+
cov_2kc96ceomr().b[14][1]++;
|
|
2488
2488
|
}
|
|
2489
|
-
|
|
2489
|
+
cov_2kc96ceomr().s[43]++;
|
|
2490
2490
|
options = {
|
|
2491
2491
|
...options,
|
|
2492
2492
|
ns: namespace // ensure namespace argument is used
|
|
2493
2493
|
};
|
|
2494
|
-
const en = (
|
|
2495
|
-
const str = (
|
|
2496
|
-
|
|
2494
|
+
const en = (cov_2kc96ceomr().s[44]++, this.i18next.getFixedT("en", namespace));
|
|
2495
|
+
const str = (cov_2kc96ceomr().s[45]++, en(key, options));
|
|
2496
|
+
cov_2kc96ceomr().s[46]++;
|
|
2497
2497
|
if (typeof str !== "string") {
|
|
2498
|
-
|
|
2499
|
-
|
|
2498
|
+
cov_2kc96ceomr().b[16][0]++;
|
|
2499
|
+
cov_2kc96ceomr().s[47]++;
|
|
2500
2500
|
throw new Error("Translation key(s) not found");
|
|
2501
2501
|
} else {
|
|
2502
|
-
|
|
2502
|
+
cov_2kc96ceomr().b[16][1]++;
|
|
2503
2503
|
}
|
|
2504
|
-
|
|
2504
|
+
cov_2kc96ceomr().s[48]++;
|
|
2505
2505
|
return str;
|
|
2506
2506
|
}
|
|
2507
2507
|
/** Get the promise for an already registered Namespace.
|
|
@@ -2509,20 +2509,20 @@ class ITwinLocalization {
|
|
|
2509
2509
|
* @public
|
|
2510
2510
|
*/
|
|
2511
2511
|
getNamespacePromise(name) {
|
|
2512
|
-
|
|
2513
|
-
|
|
2512
|
+
cov_2kc96ceomr().f[9]++;
|
|
2513
|
+
cov_2kc96ceomr().s[49]++;
|
|
2514
2514
|
return this._namespaces.get(name);
|
|
2515
2515
|
}
|
|
2516
2516
|
/** @internal */
|
|
2517
2517
|
getLanguageList() {
|
|
2518
|
-
|
|
2519
|
-
|
|
2518
|
+
cov_2kc96ceomr().f[10]++;
|
|
2519
|
+
cov_2kc96ceomr().s[50]++;
|
|
2520
2520
|
return this.i18next.languages;
|
|
2521
2521
|
}
|
|
2522
2522
|
/** override the language detected in the browser */
|
|
2523
2523
|
async changeLanguage(language) {
|
|
2524
|
-
|
|
2525
|
-
|
|
2524
|
+
cov_2kc96ceomr().f[11]++;
|
|
2525
|
+
cov_2kc96ceomr().s[51]++;
|
|
2526
2526
|
return this.i18next.changeLanguage(language);
|
|
2527
2527
|
}
|
|
2528
2528
|
/** Register a new Namespace and return it. If the namespace is already registered, it will be returned.
|
|
@@ -2534,123 +2534,123 @@ class ITwinLocalization {
|
|
|
2534
2534
|
* @public
|
|
2535
2535
|
*/
|
|
2536
2536
|
async registerNamespace(name) {
|
|
2537
|
-
|
|
2538
|
-
const existing = (
|
|
2539
|
-
|
|
2537
|
+
cov_2kc96ceomr().f[12]++;
|
|
2538
|
+
const existing = (cov_2kc96ceomr().s[52]++, this._namespaces.get(name));
|
|
2539
|
+
cov_2kc96ceomr().s[53]++;
|
|
2540
2540
|
if (existing !== undefined) {
|
|
2541
|
-
|
|
2542
|
-
|
|
2541
|
+
cov_2kc96ceomr().b[17][0]++;
|
|
2542
|
+
cov_2kc96ceomr().s[54]++;
|
|
2543
2543
|
return existing;
|
|
2544
2544
|
} else {
|
|
2545
|
-
|
|
2545
|
+
cov_2kc96ceomr().b[17][1]++;
|
|
2546
2546
|
}
|
|
2547
|
-
const theReadPromise = (
|
|
2548
|
-
|
|
2549
|
-
|
|
2547
|
+
const theReadPromise = (cov_2kc96ceomr().s[55]++, new Promise(resolve => {
|
|
2548
|
+
cov_2kc96ceomr().f[13]++;
|
|
2549
|
+
cov_2kc96ceomr().s[56]++;
|
|
2550
2550
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
2551
2551
|
this.i18next.loadNamespaces(name, err => {
|
|
2552
|
-
|
|
2553
|
-
|
|
2552
|
+
cov_2kc96ceomr().f[14]++;
|
|
2553
|
+
cov_2kc96ceomr().s[57]++;
|
|
2554
2554
|
if (!err) {
|
|
2555
|
-
|
|
2556
|
-
|
|
2555
|
+
cov_2kc96ceomr().b[18][0]++;
|
|
2556
|
+
cov_2kc96ceomr().s[58]++;
|
|
2557
2557
|
return resolve();
|
|
2558
2558
|
} else {
|
|
2559
|
-
|
|
2559
|
+
cov_2kc96ceomr().b[18][1]++;
|
|
2560
2560
|
}
|
|
2561
2561
|
// Here we got a non-null err object.
|
|
2562
2562
|
// This method is called when the system has attempted to load the resources for the namespaces for each possible locale.
|
|
2563
2563
|
// For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.
|
|
2564
2564
|
// Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.
|
|
2565
2565
|
// 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.
|
|
2566
|
-
let locales = (
|
|
2567
|
-
|
|
2568
|
-
|
|
2566
|
+
let locales = (cov_2kc96ceomr().s[59]++, this.getLanguageList().map(thisLocale => {
|
|
2567
|
+
cov_2kc96ceomr().f[15]++;
|
|
2568
|
+
cov_2kc96ceomr().s[60]++;
|
|
2569
2569
|
return `/${thisLocale}/`;
|
|
2570
2570
|
}));
|
|
2571
|
-
|
|
2571
|
+
cov_2kc96ceomr().s[61]++;
|
|
2572
2572
|
try {
|
|
2573
|
-
|
|
2573
|
+
cov_2kc96ceomr().s[62]++;
|
|
2574
2574
|
for (const thisError of err) {
|
|
2575
|
-
|
|
2575
|
+
cov_2kc96ceomr().s[63]++;
|
|
2576
2576
|
if (typeof thisError === "string") {
|
|
2577
|
-
|
|
2578
|
-
|
|
2577
|
+
cov_2kc96ceomr().b[19][0]++;
|
|
2578
|
+
cov_2kc96ceomr().s[64]++;
|
|
2579
2579
|
locales = locales.filter(thisLocale => {
|
|
2580
|
-
|
|
2581
|
-
|
|
2580
|
+
cov_2kc96ceomr().f[16]++;
|
|
2581
|
+
cov_2kc96ceomr().s[65]++;
|
|
2582
2582
|
return !thisError.includes(thisLocale);
|
|
2583
2583
|
});
|
|
2584
2584
|
} else {
|
|
2585
|
-
|
|
2585
|
+
cov_2kc96ceomr().b[19][1]++;
|
|
2586
2586
|
}
|
|
2587
2587
|
}
|
|
2588
2588
|
} catch (e) {
|
|
2589
|
-
|
|
2589
|
+
cov_2kc96ceomr().s[66]++;
|
|
2590
2590
|
locales = [];
|
|
2591
2591
|
}
|
|
2592
2592
|
// if we removed every locale from the array, it wasn't loaded.
|
|
2593
|
-
|
|
2593
|
+
cov_2kc96ceomr().s[67]++;
|
|
2594
2594
|
if (locales.length === 0) {
|
|
2595
|
-
|
|
2596
|
-
|
|
2595
|
+
cov_2kc96ceomr().b[20][0]++;
|
|
2596
|
+
cov_2kc96ceomr().s[68]++;
|
|
2597
2597
|
core_bentley_1.Logger.logError("i18n", `No resources for namespace ${name} could be loaded`);
|
|
2598
2598
|
} else {
|
|
2599
|
-
|
|
2599
|
+
cov_2kc96ceomr().b[20][1]++;
|
|
2600
2600
|
}
|
|
2601
|
-
|
|
2601
|
+
cov_2kc96ceomr().s[69]++;
|
|
2602
2602
|
resolve();
|
|
2603
2603
|
});
|
|
2604
2604
|
}));
|
|
2605
|
-
|
|
2605
|
+
cov_2kc96ceomr().s[70]++;
|
|
2606
2606
|
this._namespaces.set(name, theReadPromise);
|
|
2607
|
-
|
|
2607
|
+
cov_2kc96ceomr().s[71]++;
|
|
2608
2608
|
return theReadPromise;
|
|
2609
2609
|
}
|
|
2610
2610
|
/** @internal */
|
|
2611
2611
|
unregisterNamespace(name) {
|
|
2612
|
-
|
|
2613
|
-
|
|
2612
|
+
cov_2kc96ceomr().f[17]++;
|
|
2613
|
+
cov_2kc96ceomr().s[72]++;
|
|
2614
2614
|
this._namespaces.delete(name);
|
|
2615
2615
|
}
|
|
2616
2616
|
}
|
|
2617
|
-
|
|
2617
|
+
cov_2kc96ceomr().s[73]++;
|
|
2618
2618
|
exports.ITwinLocalization = ITwinLocalization;
|
|
2619
2619
|
class TranslationLogger {
|
|
2620
2620
|
log(args) {
|
|
2621
|
-
|
|
2622
|
-
|
|
2621
|
+
cov_2kc96ceomr().f[18]++;
|
|
2622
|
+
cov_2kc96ceomr().s[74]++;
|
|
2623
2623
|
core_bentley_1.Logger.logInfo("i18n", this.createLogMessage(args));
|
|
2624
2624
|
}
|
|
2625
2625
|
warn(args) {
|
|
2626
|
-
|
|
2627
|
-
|
|
2626
|
+
cov_2kc96ceomr().f[19]++;
|
|
2627
|
+
cov_2kc96ceomr().s[75]++;
|
|
2628
2628
|
core_bentley_1.Logger.logWarning("i18n", this.createLogMessage(args));
|
|
2629
2629
|
}
|
|
2630
2630
|
error(args) {
|
|
2631
|
-
|
|
2632
|
-
|
|
2631
|
+
cov_2kc96ceomr().f[20]++;
|
|
2632
|
+
cov_2kc96ceomr().s[76]++;
|
|
2633
2633
|
core_bentley_1.Logger.logError("i18n", this.createLogMessage(args));
|
|
2634
2634
|
}
|
|
2635
2635
|
createLogMessage(args) {
|
|
2636
|
-
|
|
2637
|
-
let message = (
|
|
2638
|
-
|
|
2639
|
-
for (let i = (
|
|
2640
|
-
|
|
2636
|
+
cov_2kc96ceomr().f[21]++;
|
|
2637
|
+
let message = (cov_2kc96ceomr().s[77]++, args[0]);
|
|
2638
|
+
cov_2kc96ceomr().s[78]++;
|
|
2639
|
+
for (let i = (cov_2kc96ceomr().s[79]++, 1); i < args.length; ++i) {
|
|
2640
|
+
cov_2kc96ceomr().s[80]++;
|
|
2641
2641
|
if (typeof args[i] === "string") {
|
|
2642
|
-
|
|
2643
|
-
|
|
2642
|
+
cov_2kc96ceomr().b[21][0]++;
|
|
2643
|
+
cov_2kc96ceomr().s[81]++;
|
|
2644
2644
|
message += `\n ${args[i]}`;
|
|
2645
2645
|
} else {
|
|
2646
|
-
|
|
2646
|
+
cov_2kc96ceomr().b[21][1]++;
|
|
2647
2647
|
}
|
|
2648
2648
|
}
|
|
2649
|
-
|
|
2649
|
+
cov_2kc96ceomr().s[82]++;
|
|
2650
2650
|
return message;
|
|
2651
2651
|
}
|
|
2652
2652
|
}
|
|
2653
|
-
|
|
2653
|
+
cov_2kc96ceomr().s[83]++;
|
|
2654
2654
|
TranslationLogger.type = "logger";
|
|
2655
2655
|
|
|
2656
2656
|
/***/ }),
|
|
@@ -13464,8 +13464,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13464
13464
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13465
13465
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
13466
13466
|
/* harmony export */ });
|
|
13467
|
-
/* 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.
|
|
13468
|
-
/* 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.
|
|
13467
|
+
/* 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.23.8/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
13468
|
+
/* 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.23.8/node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
13469
13469
|
|
|
13470
13470
|
|
|
13471
13471
|
|
|
@@ -13893,15 +13893,15 @@ Browser.type = 'languageDetector';
|
|
|
13893
13893
|
"use strict";
|
|
13894
13894
|
|
|
13895
13895
|
|
|
13896
|
-
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13897
|
-
var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13898
|
-
var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13899
|
-
var _assertThisInitialized = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13900
|
-
var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13901
|
-
var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13902
|
-
var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13903
|
-
var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13904
|
-
var _toArray = __webpack_require__(/*! @babel/runtime/helpers/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13896
|
+
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/typeof.js");
|
|
13897
|
+
var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/classCallCheck.js");
|
|
13898
|
+
var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/createClass.js");
|
|
13899
|
+
var _assertThisInitialized = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
|
|
13900
|
+
var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/inherits.js");
|
|
13901
|
+
var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js");
|
|
13902
|
+
var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/getPrototypeOf.js");
|
|
13903
|
+
var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/defineProperty.js");
|
|
13904
|
+
var _toArray = __webpack_require__(/*! @babel/runtime/helpers/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toArray.js");
|
|
13905
13905
|
|
|
13906
13906
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13907
13907
|
|
|
@@ -19473,8 +19473,9 @@ class BentleyError extends Error {
|
|
|
19473
19473
|
return error.message;
|
|
19474
19474
|
if (typeof error.msg === "string")
|
|
19475
19475
|
return error.msg;
|
|
19476
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
19476
19477
|
if (error.toString() !== "[object Object]")
|
|
19477
|
-
return error.toString();
|
|
19478
|
+
return error.toString(); // eslint-disable-line @typescript-eslint/no-base-to-string
|
|
19478
19479
|
}
|
|
19479
19480
|
return "";
|
|
19480
19481
|
}
|
|
@@ -20790,9 +20791,9 @@ var Id64;
|
|
|
20790
20791
|
Id64.fromLocalAndBriefcaseIds = fromLocalAndBriefcaseIds;
|
|
20791
20792
|
// Used as a buffer when converting a pair of 32-bit integers to an Id64String. Significant performance optimization.
|
|
20792
20793
|
const scratchCharCodes = [
|
|
20793
|
-
0x30,
|
|
20794
|
-
0x78,
|
|
20795
|
-
0x30,
|
|
20794
|
+
0x30, // "0"
|
|
20795
|
+
0x78, // "x"
|
|
20796
|
+
0x30, // "0"
|
|
20796
20797
|
0x30,
|
|
20797
20798
|
0x30,
|
|
20798
20799
|
0x30,
|
|
@@ -22165,7 +22166,6 @@ Logger.logExceptionCallstacks = false;
|
|
|
22165
22166
|
* Use a key to identify entries in the map so the can be removed individually.
|
|
22166
22167
|
* @internal */
|
|
22167
22168
|
Logger.staticMetaData = new Map();
|
|
22168
|
-
|
|
22169
22169
|
/** Simple performance diagnostics utility.
|
|
22170
22170
|
* It measures the time from construction to disposal. On disposal it logs the routine name along with
|
|
22171
22171
|
* the duration in milliseconds.
|
|
@@ -22204,7 +22204,6 @@ class PerfLogger {
|
|
|
22204
22204
|
PerfLogger._severity = LogLevel.Info;
|
|
22205
22205
|
|
|
22206
22206
|
|
|
22207
|
-
|
|
22208
22207
|
/***/ }),
|
|
22209
22208
|
|
|
22210
22209
|
/***/ "../bentley/lib/esm/ObservableSet.js":
|
|
@@ -23301,7 +23300,6 @@ class StatusCategory {
|
|
|
23301
23300
|
}
|
|
23302
23301
|
}
|
|
23303
23302
|
StatusCategory.handlers = new Set();
|
|
23304
|
-
|
|
23305
23303
|
/***
|
|
23306
23304
|
* A success status.
|
|
23307
23305
|
* @alpha
|
|
@@ -24650,7 +24648,6 @@ UnexpectedErrors._telemetry = [];
|
|
|
24650
24648
|
UnexpectedErrors._handler = _a.errorLog; // default to error logging
|
|
24651
24649
|
|
|
24652
24650
|
|
|
24653
|
-
|
|
24654
24651
|
/***/ }),
|
|
24655
24652
|
|
|
24656
24653
|
/***/ "../bentley/lib/esm/UtilityTypes.js":
|
|
@@ -25041,9 +25038,9 @@ function partitionArray(array, criterion) {
|
|
|
25041
25038
|
|
|
25042
25039
|
/***/ }),
|
|
25043
25040
|
|
|
25044
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25041
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
|
|
25045
25042
|
/*!**************************************************************************************************************************!*\
|
|
25046
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25043
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
|
|
25047
25044
|
\**************************************************************************************************************************/
|
|
25048
25045
|
/***/ ((module) => {
|
|
25049
25046
|
|
|
@@ -25056,9 +25053,9 @@ module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exp
|
|
|
25056
25053
|
|
|
25057
25054
|
/***/ }),
|
|
25058
25055
|
|
|
25059
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25056
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/arrayWithHoles.js":
|
|
25060
25057
|
/*!************************************************************************************************************************!*\
|
|
25061
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25058
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
|
|
25062
25059
|
\************************************************************************************************************************/
|
|
25063
25060
|
/***/ ((module) => {
|
|
25064
25061
|
|
|
@@ -25069,9 +25066,9 @@ module.exports = _arrayWithHoles, module.exports.__esModule = true, module.expor
|
|
|
25069
25066
|
|
|
25070
25067
|
/***/ }),
|
|
25071
25068
|
|
|
25072
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25069
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/assertThisInitialized.js":
|
|
25073
25070
|
/*!*******************************************************************************************************************************!*\
|
|
25074
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25071
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
|
|
25075
25072
|
\*******************************************************************************************************************************/
|
|
25076
25073
|
/***/ ((module) => {
|
|
25077
25074
|
|
|
@@ -25085,9 +25082,9 @@ module.exports = _assertThisInitialized, module.exports.__esModule = true, modul
|
|
|
25085
25082
|
|
|
25086
25083
|
/***/ }),
|
|
25087
25084
|
|
|
25088
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25085
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/classCallCheck.js":
|
|
25089
25086
|
/*!************************************************************************************************************************!*\
|
|
25090
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25087
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/classCallCheck.js ***!
|
|
25091
25088
|
\************************************************************************************************************************/
|
|
25092
25089
|
/***/ ((module) => {
|
|
25093
25090
|
|
|
@@ -25100,13 +25097,13 @@ module.exports = _classCallCheck, module.exports.__esModule = true, module.expor
|
|
|
25100
25097
|
|
|
25101
25098
|
/***/ }),
|
|
25102
25099
|
|
|
25103
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25100
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/createClass.js":
|
|
25104
25101
|
/*!*********************************************************************************************************************!*\
|
|
25105
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25102
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/createClass.js ***!
|
|
25106
25103
|
\*********************************************************************************************************************/
|
|
25107
25104
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
25108
25105
|
|
|
25109
|
-
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25106
|
+
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toPropertyKey.js");
|
|
25110
25107
|
function _defineProperties(target, props) {
|
|
25111
25108
|
for (var i = 0; i < props.length; i++) {
|
|
25112
25109
|
var descriptor = props[i];
|
|
@@ -25128,13 +25125,13 @@ module.exports = _createClass, module.exports.__esModule = true, module.exports[
|
|
|
25128
25125
|
|
|
25129
25126
|
/***/ }),
|
|
25130
25127
|
|
|
25131
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25128
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/defineProperty.js":
|
|
25132
25129
|
/*!************************************************************************************************************************!*\
|
|
25133
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25130
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/defineProperty.js ***!
|
|
25134
25131
|
\************************************************************************************************************************/
|
|
25135
25132
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
25136
25133
|
|
|
25137
|
-
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25134
|
+
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toPropertyKey.js");
|
|
25138
25135
|
function _defineProperty(obj, key, value) {
|
|
25139
25136
|
key = toPropertyKey(key);
|
|
25140
25137
|
if (key in obj) {
|
|
@@ -25153,9 +25150,9 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
|
|
|
25153
25150
|
|
|
25154
25151
|
/***/ }),
|
|
25155
25152
|
|
|
25156
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25153
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/getPrototypeOf.js":
|
|
25157
25154
|
/*!************************************************************************************************************************!*\
|
|
25158
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25155
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
|
|
25159
25156
|
\************************************************************************************************************************/
|
|
25160
25157
|
/***/ ((module) => {
|
|
25161
25158
|
|
|
@@ -25169,13 +25166,13 @@ module.exports = _getPrototypeOf, module.exports.__esModule = true, module.expor
|
|
|
25169
25166
|
|
|
25170
25167
|
/***/ }),
|
|
25171
25168
|
|
|
25172
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25169
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/inherits.js":
|
|
25173
25170
|
/*!******************************************************************************************************************!*\
|
|
25174
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25171
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/inherits.js ***!
|
|
25175
25172
|
\******************************************************************************************************************/
|
|
25176
25173
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
25177
25174
|
|
|
25178
|
-
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25175
|
+
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/setPrototypeOf.js");
|
|
25179
25176
|
function _inherits(subClass, superClass) {
|
|
25180
25177
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
25181
25178
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -25196,9 +25193,9 @@ module.exports = _inherits, module.exports.__esModule = true, module.exports["de
|
|
|
25196
25193
|
|
|
25197
25194
|
/***/ }),
|
|
25198
25195
|
|
|
25199
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25196
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/iterableToArray.js":
|
|
25200
25197
|
/*!*************************************************************************************************************************!*\
|
|
25201
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25198
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/iterableToArray.js ***!
|
|
25202
25199
|
\*************************************************************************************************************************/
|
|
25203
25200
|
/***/ ((module) => {
|
|
25204
25201
|
|
|
@@ -25209,9 +25206,9 @@ module.exports = _iterableToArray, module.exports.__esModule = true, module.expo
|
|
|
25209
25206
|
|
|
25210
25207
|
/***/ }),
|
|
25211
25208
|
|
|
25212
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25209
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/nonIterableRest.js":
|
|
25213
25210
|
/*!*************************************************************************************************************************!*\
|
|
25214
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25211
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
|
|
25215
25212
|
\*************************************************************************************************************************/
|
|
25216
25213
|
/***/ ((module) => {
|
|
25217
25214
|
|
|
@@ -25222,14 +25219,14 @@ module.exports = _nonIterableRest, module.exports.__esModule = true, module.expo
|
|
|
25222
25219
|
|
|
25223
25220
|
/***/ }),
|
|
25224
25221
|
|
|
25225
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25222
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
|
|
25226
25223
|
/*!***********************************************************************************************************************************!*\
|
|
25227
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25224
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
|
|
25228
25225
|
\***********************************************************************************************************************************/
|
|
25229
25226
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
25230
25227
|
|
|
25231
|
-
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25232
|
-
var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25228
|
+
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
|
|
25229
|
+
var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
|
|
25233
25230
|
function _possibleConstructorReturn(self, call) {
|
|
25234
25231
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
25235
25232
|
return call;
|
|
@@ -25242,9 +25239,9 @@ module.exports = _possibleConstructorReturn, module.exports.__esModule = true, m
|
|
|
25242
25239
|
|
|
25243
25240
|
/***/ }),
|
|
25244
25241
|
|
|
25245
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25242
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/setPrototypeOf.js":
|
|
25246
25243
|
/*!************************************************************************************************************************!*\
|
|
25247
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25244
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
|
|
25248
25245
|
\************************************************************************************************************************/
|
|
25249
25246
|
/***/ ((module) => {
|
|
25250
25247
|
|
|
@@ -25259,16 +25256,16 @@ module.exports = _setPrototypeOf, module.exports.__esModule = true, module.expor
|
|
|
25259
25256
|
|
|
25260
25257
|
/***/ }),
|
|
25261
25258
|
|
|
25262
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25259
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toArray.js":
|
|
25263
25260
|
/*!*****************************************************************************************************************!*\
|
|
25264
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25261
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toArray.js ***!
|
|
25265
25262
|
\*****************************************************************************************************************/
|
|
25266
25263
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
25267
25264
|
|
|
25268
|
-
var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25269
|
-
var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25270
|
-
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25271
|
-
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25265
|
+
var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/arrayWithHoles.js");
|
|
25266
|
+
var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/iterableToArray.js");
|
|
25267
|
+
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
|
|
25268
|
+
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/nonIterableRest.js");
|
|
25272
25269
|
function _toArray(arr) {
|
|
25273
25270
|
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
|
|
25274
25271
|
}
|
|
@@ -25276,13 +25273,13 @@ module.exports = _toArray, module.exports.__esModule = true, module.exports["def
|
|
|
25276
25273
|
|
|
25277
25274
|
/***/ }),
|
|
25278
25275
|
|
|
25279
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25276
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toPrimitive.js":
|
|
25280
25277
|
/*!*********************************************************************************************************************!*\
|
|
25281
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25278
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toPrimitive.js ***!
|
|
25282
25279
|
\*********************************************************************************************************************/
|
|
25283
25280
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
25284
25281
|
|
|
25285
|
-
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25282
|
+
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
|
|
25286
25283
|
function toPrimitive(t, r) {
|
|
25287
25284
|
if ("object" != _typeof(t) || !t) return t;
|
|
25288
25285
|
var e = t[Symbol.toPrimitive];
|
|
@@ -25297,14 +25294,14 @@ module.exports = toPrimitive, module.exports.__esModule = true, module.exports["
|
|
|
25297
25294
|
|
|
25298
25295
|
/***/ }),
|
|
25299
25296
|
|
|
25300
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25297
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toPropertyKey.js":
|
|
25301
25298
|
/*!***********************************************************************************************************************!*\
|
|
25302
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25299
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
|
|
25303
25300
|
\***********************************************************************************************************************/
|
|
25304
25301
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
25305
25302
|
|
|
25306
|
-
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25307
|
-
var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25303
|
+
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
|
|
25304
|
+
var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toPrimitive.js");
|
|
25308
25305
|
function toPropertyKey(t) {
|
|
25309
25306
|
var i = toPrimitive(t, "string");
|
|
25310
25307
|
return "symbol" == _typeof(i) ? i : String(i);
|
|
@@ -25313,9 +25310,9 @@ module.exports = toPropertyKey, module.exports.__esModule = true, module.exports
|
|
|
25313
25310
|
|
|
25314
25311
|
/***/ }),
|
|
25315
25312
|
|
|
25316
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25313
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/typeof.js":
|
|
25317
25314
|
/*!****************************************************************************************************************!*\
|
|
25318
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25315
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/typeof.js ***!
|
|
25319
25316
|
\****************************************************************************************************************/
|
|
25320
25317
|
/***/ ((module) => {
|
|
25321
25318
|
|
|
@@ -25332,13 +25329,13 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
|
|
|
25332
25329
|
|
|
25333
25330
|
/***/ }),
|
|
25334
25331
|
|
|
25335
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25332
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
|
|
25336
25333
|
/*!************************************************************************************************************************************!*\
|
|
25337
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25334
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
|
|
25338
25335
|
\************************************************************************************************************************************/
|
|
25339
25336
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
25340
25337
|
|
|
25341
|
-
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25338
|
+
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
|
|
25342
25339
|
function _unsupportedIterableToArray(o, minLen) {
|
|
25343
25340
|
if (!o) return;
|
|
25344
25341
|
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
|
@@ -25858,9 +25855,9 @@ function makePromise(maybePromise) {
|
|
|
25858
25855
|
|
|
25859
25856
|
/***/ }),
|
|
25860
25857
|
|
|
25861
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25858
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
|
|
25862
25859
|
/*!****************************************************************************************************************************!*\
|
|
25863
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25860
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
|
|
25864
25861
|
\****************************************************************************************************************************/
|
|
25865
25862
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
25866
25863
|
|
|
@@ -25877,9 +25874,9 @@ function _classCallCheck(instance, Constructor) {
|
|
|
25877
25874
|
|
|
25878
25875
|
/***/ }),
|
|
25879
25876
|
|
|
25880
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25877
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/createClass.js":
|
|
25881
25878
|
/*!*************************************************************************************************************************!*\
|
|
25882
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25879
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
|
|
25883
25880
|
\*************************************************************************************************************************/
|
|
25884
25881
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
25885
25882
|
|
|
@@ -25888,7 +25885,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25888
25885
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
25889
25886
|
/* harmony export */ "default": () => (/* binding */ _createClass)
|
|
25890
25887
|
/* harmony export */ });
|
|
25891
|
-
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25888
|
+
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
|
|
25892
25889
|
|
|
25893
25890
|
function _defineProperties(target, props) {
|
|
25894
25891
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -25910,9 +25907,9 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
25910
25907
|
|
|
25911
25908
|
/***/ }),
|
|
25912
25909
|
|
|
25913
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25910
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
|
|
25914
25911
|
/*!*************************************************************************************************************************!*\
|
|
25915
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25912
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
|
|
25916
25913
|
\*************************************************************************************************************************/
|
|
25917
25914
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
25918
25915
|
|
|
@@ -25921,7 +25918,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25921
25918
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
25922
25919
|
/* harmony export */ "default": () => (/* binding */ toPrimitive)
|
|
25923
25920
|
/* harmony export */ });
|
|
25924
|
-
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25921
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
25925
25922
|
|
|
25926
25923
|
function toPrimitive(t, r) {
|
|
25927
25924
|
if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
|
|
@@ -25936,9 +25933,9 @@ function toPrimitive(t, r) {
|
|
|
25936
25933
|
|
|
25937
25934
|
/***/ }),
|
|
25938
25935
|
|
|
25939
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25936
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
|
|
25940
25937
|
/*!***************************************************************************************************************************!*\
|
|
25941
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25938
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
|
|
25942
25939
|
\***************************************************************************************************************************/
|
|
25943
25940
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
25944
25941
|
|
|
@@ -25947,8 +25944,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25947
25944
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
25948
25945
|
/* harmony export */ "default": () => (/* binding */ toPropertyKey)
|
|
25949
25946
|
/* harmony export */ });
|
|
25950
|
-
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25951
|
-
/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25947
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
25948
|
+
/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
|
|
25952
25949
|
|
|
25953
25950
|
|
|
25954
25951
|
function toPropertyKey(t) {
|
|
@@ -25958,9 +25955,9 @@ function toPropertyKey(t) {
|
|
|
25958
25955
|
|
|
25959
25956
|
/***/ }),
|
|
25960
25957
|
|
|
25961
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25958
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/typeof.js":
|
|
25962
25959
|
/*!********************************************************************************************************************!*\
|
|
25963
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25960
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
|
|
25964
25961
|
\********************************************************************************************************************/
|
|
25965
25962
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
25966
25963
|
|